/* The app shell and Crew Connect share the type and colors of the main site. */
:root { --radius: 12px; }
body { font-size: 1rem; line-height: 1.5; }
.visually-hidden, .skip-view:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-view:focus { position: fixed; top: 8px; left: 12px; z-index: 8; padding: 10px 14px; color: var(--lime-ink); background: var(--lime); }
.sidebar { border-color: var(--line); padding: 27px 15px 18px; overflow-y: auto; }
.brand { gap: 12px; margin: 2px 3px 34px; white-space: normal; }
.brand img { width: 44px; height: 44px; flex-basis: 44px; }
.brand > span { font: 750 1.09rem/1.2 'DM Sans',system-ui,sans-serif; letter-spacing: -.04em; }
.brand b { color: var(--blue); font-weight: inherit; }
.side-label { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.nav { gap: 3px; }
.nav a { position: relative; gap: 12px; min-height: 44px; padding: 9px 12px; border-radius: 7px; color: var(--muted); font-size: .94rem; font-weight: 550; white-space: normal; overflow-wrap: anywhere; }
.nav a.active { border-color: transparent; background: var(--accent-surface); color: var(--lime); }
.nav a.active::before { content: ''; position: absolute; inset: 10px auto 10px 0; width: 3px; border-radius: 3px; background: var(--lime); }
.side-end { margin-top: auto; padding-top: 24px; }
.community-note { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 15px 3px 4px; background: transparent; }
.community-note b, .app-install-link { font-size: .875rem; }
.side-legal { gap: 5px 12px; }
.side-legal button { font-size: .78rem; }
.topbar { min-height: 64px; height: auto; padding-block: 8px; border-color: var(--line); }
.breadcrumb b { color: var(--text); }
.top-actions { gap: 8px; }
.icon-button, .user-button { width: 41px; height: 41px; border-radius: 50%; }
.demo-label { min-height: 36px; padding: 6px 12px; font-size: .82rem; }
#mobile-dock { display: none; }
.workspace-menu { display: grid; gap: 5px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.menu-link { display: flex; gap: 10px; align-items: center; min-height: 50px; text-align: start; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--control); color: var(--text); font-size: .94rem; line-height: 1.4; overflow-wrap: anywhere; }
.menu-link svg { color: var(--blue); }
.menu-link[aria-current], .menu-link:hover { border-color: var(--accent-line); color: var(--lime); background: var(--accent-surface); }
main { max-width: 1470px; padding: clamp(16px,2.4vw,38px) clamp(14px,2.5vw,40px) 0; }
main:focus:not(:focus-visible) { outline: none; }
.view-head h1, .hero h1 { font: 600 clamp(2.55rem,4.3vw,4.2rem)/1.07 var(--mc-display); letter-spacing: -.047em; overflow-wrap: anywhere; }
.view-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 20px; }
.view-head p, .panel-sub { line-height: 1.5; }
.panel-sub,.secondary { font-size: .86rem; }
.hero { border-radius: var(--radius); }
.button, .button.small, .chip, .feed-action { min-height: 40px; font-size: .875rem; }
.button.primary { font-weight: 700; }
.hero-copy h1, .hero-copy p { color: #f5f3e9; }
.hero .eyebrow { color: #afe6da; }
.panel-head { align-items: center; }
.dispatch-masthead {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  overflow: hidden; min-height: clamp(184px,16.4vw,266px); border-radius: var(--radius); border: 1px solid var(--line);
  background: #102b33 url('/assets/ship.webp') center 53% / cover no-repeat; color: #fcfbf3;
}
.dispatch-masthead::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(5,25,32,.93) 0%,rgba(5,25,32,.71) 44%,rgba(5,25,32,.1) 76%); }
.dispatch-heading { max-width: min(75%,60rem); padding: clamp(20px,2.4vw,38px); }
.dispatch-dateline { display: flex; align-items: center; gap: .6em; color: #e3f4ee; font: 600 .82rem/1.5 'DM Sans',system-ui,sans-serif; letter-spacing: .075em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.dispatch-dateline::before { content: ''; width: 21px; height: 3px; border-radius: 2px; background: #ffab79; }
.dispatch-heading h1 { margin: .06em 0 .04em; font: 600 clamp(3rem,5.3vw,5.7rem)/1.13 var(--mc-display); letter-spacing: -.052em; overflow-wrap: anywhere; }
.dispatch-heading p { color: #e1eeed; font-size: clamp(.94rem,1.3vw,1.09rem); max-width: 42ch; }
.feed-layout { grid-template-columns: minmax(0,1fr) minmax(230px,.40fr); gap: clamp(14px,1.7vw,24px); margin-top: clamp(16px,1.7vw,24px); }
#crew-timeline, .feed-rail { min-width: 0; }
.feed-composer { padding: 15px clamp(14px,1.5vw,21px) 12px; }
.feed-composer .form { gap: 8px; }
.composer-entry { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.composer-media { gap: 6px; }
.composer-controls:not([hidden]) { display: grid; gap: 9px; }
.dispatch-draft { flex: 1 1 185px; min-width: 0; display: flex; align-items: flex-start; gap: 10px; }
.draft-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--lime); background: var(--accent-surface); flex: none; }
.dispatch-draft textarea:not([hidden]) { min-height: 43px; height: 43px; flex: 1; min-width: 0; resize: vertical; padding: 9px 11px; font-size: 1rem; line-height: 1.4; }
.dispatch-draft textarea:focus, .dispatch-draft textarea:not(:placeholder-shown) { min-height: 70px; }
.feed-composer-actions { justify-content: flex-start; row-gap: 6px; }
.form .feed-picker { display: inline-flex; gap: 5px; padding: 6px 9px; }
.feed-visibility > span { font-size: .83rem; font-weight: 550; }
.feed-composer-actions .button[type=submit] { margin-inline-start: auto; }
.feed-visibility select { width: auto; min-height: 40px; padding: 6px; }
.feed-composer .secondary, .composer-notes { margin: 0; font-size: .81rem; color: var(--muted); }
.composer-notes { border: 0; padding: 0; }
.composer-notes summary { color: var(--muted); cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: .18em; }
.composer-notes p { margin-top: 5px; }
.suggestions .chip, .feed-action { font-weight: 600; }
.feed-toolbar { margin: 14px 0; gap: 6px; }
.feed-byline { padding: 16px clamp(14px,1.5vw,21px) 10px; }
.feed-byline .avatar { width: 44px; height: 44px; }
.feed-byline > div { min-width: 0; overflow-wrap: anywhere; }
.feed-byline small,.feed-audience { font-size: .81rem; }
.feed-copy { margin: 0; padding: 0 clamp(14px,1.5vw,21px) 14px; line-height: 1.58; }
.feed-post-actions { padding: 3px clamp(11px,1.4vw,18px); }
.feed-rail { gap: 14px; }
.feed-rail .panel { padding: clamp(15px,1.6vw,22px); }
.rail-head { display: flex; gap: 9px; align-items: center; }
.rail-head svg { color: var(--lime); }
.rail-head h2 { font: 600 clamp(1.4rem,1.7vw,1.8rem)/1.18 var(--mc-display); letter-spacing: -.035em; }
.feed-rail p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: 9px; }
.feed-rail .rail-meta { font-size: .81rem; margin-top: 4px; }
.dispatch-mariners { display: grid; margin-top: 6px; }
.dispatch-mariners button { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: start; padding: 10px 0; line-height: 1.35; }
.dispatch-mariners button:hover b { color: var(--lime); text-decoration: underline; }
.dispatch-mariners .avatar { width: 37px; height: 37px; }
.dispatch-mariners b, .dispatch-mariners small { display: block; overflow-wrap: anywhere; }
.dispatch-mariners b { font-size: .93rem; }
.dispatch-mariners small { color: var(--muted); font-size: .81rem; }
.rail-foot { margin-top: 12px; }
:root:lang(my) :is(.view-head h1,.dispatch-heading h1,.hero h1,.rail-head h2,.brand > span),
:root:lang(ta) :is(.view-head h1,.dispatch-heading h1,.hero h1,.rail-head h2),
:root:lang(hi) :is(.view-head h1,.dispatch-heading h1,.hero h1,.rail-head h2) { line-height: 1.35; letter-spacing: normal; }
@media (min-width:691px) and (max-width:925px) {
  .sidebar { padding: 18px 7px; }
  .brand { margin: 2px 0 24px; }
  .brand > span, .side-end { display: none; }
}
@media (min-width:691px) and (max-width:1050px) { .feed-layout { grid-template-columns: minmax(0,1fr) minmax(205px,.42fr); } }
@media (min-width:691px) and (max-width:800px) { .feed-layout { grid-template-columns: minmax(0,1fr); } .feed-rail { display: none; } }
@media (max-width:690px) {
  .sidebar { display: none; }
  .topbar { min-height: 56px; gap: 8px; padding: 5px 12px; }
  .top-brand { width: 34px; flex-basis: 34px; }
  .top-actions { gap: 4px; }
  .top-actions .icon-button, .top-actions .activity-button, .user-button { width: 40px; height: 40px; }
  .top-actions [data-route=messages] { display: none; }
  .breadcrumb { min-width: 0; }
  .breadcrumb b { font-size: .9rem; line-height: 1.25; overflow-wrap: anywhere; }
  .top-actions .demo-label { max-width: 95px; white-space: normal; font-size: .74rem; line-height: 1.2; }
  .demo-label i { display: none; }
  #mobile-dock { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 3px 5px max(4px,env(safe-area-inset-bottom)); background: var(--sidebar); border-top: 1px solid var(--line); }
  #mobile-dock a, #mobile-dock button { position: relative; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 6px 3px; min-height: 48px; border-radius: 6px; font-size: .78rem; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; text-align: center; }
  #mobile-dock [aria-current], #mobile-dock .dock-section { color: var(--lime); background: var(--accent-surface); }
  .dock-glyph { position: relative; }
  #mobile-dock .activity-count { right: -13px; top: -3px; }
  main { padding: 14px 12px 0; }
  .footer { padding: 20px 12px calc(88px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .dispatch-masthead { min-height: 164px; background-position: 65% center; }
  .dispatch-masthead::before { background: linear-gradient(90deg,#051a20ec 0%,#051a20c9 38%,#051a2044 100%); }
  .dispatch-heading { padding: 17px; max-width: 89%; }
  .dispatch-heading h1 { font-size: clamp(2.5rem,9.5vw,3.3rem); }
  .dispatch-dateline { font-size: .78rem; }
  .feed-layout { grid-template-columns: minmax(0,1fr); margin-top: 12px; }
  .feed-rail { display: none; }
  .feed-byline { gap: 8px; }
  .feed-visibility { order: 0; width: auto; flex: 1; }
  .feed-visibility select { flex: 0 1 auto; }
  .feed-composer-actions .button[type=submit] { margin-inline-start: auto; }
  .feed-audience { white-space: normal; }
  .view-head { margin-bottom: 14px; padding-bottom: 13px; }
}
@media (max-width:510px) {
  .top-actions .demo-label { display: inline-flex; align-items: center; }
  .breadcrumb { display: none; }
  .top-actions { margin-inline-start: auto; }
  .dispatch-draft { gap: 7px; }
  .feed-composer-actions .feed-visibility { flex: 0 1 auto; }
  .feed-visibility > span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
}
@media (max-width:370px) {
  .feed-composer-actions .button, .feed-visibility select { font-size: .81rem; }
  .draft-icon { width: 32px; height: 38px; }
  .topbar { gap: 5px; padding-inline: 7px; }
  .top-actions .demo-label { max-width: 94px; padding-inline: 6px; overflow-wrap: anywhere; }
  .feed-toolbar { flex-wrap: wrap; }
  .workspace-menu { grid-template-columns: minmax(0,1fr); }
}
