/* Approved ink-sketch crew direction. Base tokens and header remain shared. */
.crew-loop [hidden] { display: none !important; }
.crew-loop.note-hub-page { gap: 0; }
.crew-loop a { color: var(--ink); text-decoration: none; }
.crew-loop p { margin: 0; }
.crew-loop button, .crew-loop input { font: inherit; color: var(--ink); }
.crew-loop button { cursor: pointer; }
.crew-loop :focus-visible, .crew-scope a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.crew-loop .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.crew-scope { display: flex; gap: 12px; margin: 10px 0; }
.crew-scope a { display: grid; place-items: center; min-width: 60px; min-height: 44px; border-radius: 8px; padding: 8px 12px; font: 500 14px/1.5 var(--sans); color: var(--muted); text-decoration: none; }
.crew-scope a[aria-current="page"] { color: var(--ink); background: var(--lime-pale); }
.public-page > .crew-scope { margin-block: -10px; }
.crew-heading-row { margin: 18px 0 24px; }
.crew-heading-row h1 { margin: 0 0 10px; font: 800 27px/1.4 var(--head); letter-spacing: -.045em; overflow-wrap: anywhere; }
.crew-loop .crew-help { color: var(--muted); font-size: 13px; line-height: 1.8; }
.crew-back { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; font-size: 13px; }
.crew-namebar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 14px; border: 1px solid var(--chip-border); border-radius: 12px; }
.crew-namebar p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; min-width: 0; }
.crew-namebar strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.crew-namebar span { font-size: 13px; color: var(--muted); }
.crew-namebar a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 4px; font-size: 14px; flex-shrink: 0; }
.crew-daynav { display: grid; align-items: center; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 4px; }
.crew-daynav > a, .crew-daynav > span { display: grid; place-items: center; min-height: 44px; padding: 8px 4px; font-size: 13px; border-radius: 8px; }
.crew-daynav > span[aria-disabled] { color: var(--muted); opacity: .5; }
.crew-day-form { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; }
.crew-day-form input { min-width: 0; width: 100%; max-width: 148px; border: 1px solid var(--chip-border); border-radius: 8px; background: var(--screen); min-height: 44px; padding: 6px; font-size: 16px; }
.crew-day-form button { flex-shrink: 0; border: 0; border-radius: 8px; background: var(--tag-bg); min-height: 44px; padding: 6px 8px; font-size: 12px; }
.crew-date-picker { position: relative; min-width: 0; }
.crew-date-picker > summary { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 2px; font-size: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.crew-date-picker > summary::-webkit-details-marker { display: none; }
.crew-date-picker[open] > summary { border-radius: 8px; background: var(--tag-bg); }
.crew-date-picker .crew-day-form { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 2; padding: 10px; width: 224px; border: 1px solid var(--chip-border); border-radius: 8px; background: var(--screen); box-shadow: 0 5px 12px #1A19171A; }
.crew-loop .crew-day-help { padding: 10px 0 18px; text-align: center; font-size: 12px; }
.crew-news-briefing { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--card-border); border-radius: 18px; background: #fff; }
.crew-news-briefing .crew-heading-row { margin-bottom: 3px; }
.crew-news-briefing .crew-heading-row h2 { margin: 0; font: 800 18px var(--head); }
.crew-news-briefing .crew-heading-row a { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
.crew-news-item { display: flex; flex-direction: column; gap: 5px; padding: 13px 0; border-top: 1px solid var(--card-border); color: var(--ink); text-decoration: none; }
.crew-news-item span, .crew-news-item small { color: var(--muted); font: 500 11px/1.5 var(--sans); }
.crew-news-item strong { font: 700 15px/1.5 var(--head); overflow-wrap: anywhere; }
.crew-news-empty { padding: 14px 0 5px; border-top: 1px solid var(--card-border); }
.crew-news-empty p { margin: 0 0 4px; font: 600 13px var(--sans); }
.crew-news-empty small { color: var(--muted); font: 400 12px/1.55 var(--sans); }
.crew-column-head, .crew-member { display: grid; grid-template-columns: 66px minmax(0,1fr) minmax(0,1fr); align-items: center; column-gap: 8px; }
.crew-column-head { font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 2px; }
.crew-column-head span:first-child { text-align: left; padding-left: 6px; }
.crew-members, .crew-list, .crew-note-list { margin: 0; padding: 0; list-style: none; }
.crew-loop .crew-member { min-height: 108px; padding: 0; background: transparent; border: 0; border-bottom: 1px solid var(--chip-border); border-radius: 0; }
.crew-person { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 1.5; padding-block: 10px; min-width: 0; }
.crew-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 17px; background: var(--tag-bg); }
.crew-person[data-self="true"] .crew-avatar { background: var(--lime-pale); }
.crew-person > span:last-child { width: 60px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.crew-loop .crew-metric { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 78px; padding: 8px 3px; border: 1px solid transparent; border-radius: 8px; width: 100%; }
.crew-loop .crew-metric[aria-current="true"] { border-color: var(--chip-border); background: transparent; }
.crew-glyph { width: 56px; height: 56px; object-fit: contain; flex: 0 0 56px; }
.crew-metric strong { font: 500 26px/1 var(--mono); min-width: 20px; text-align: left; }
.crew-metric[data-zero="true"] strong { color: var(--muted); }
.crew-metric[data-zero="true"] img { opacity: .45; }
.crew-metric .crew-private { font-size: 12px; line-height: 1.6; color: var(--muted); text-align: center; }
.crew-loop .crew-privacy { color: var(--muted); font-size: 12px; line-height: 1.8; padding: 14px 0 24px; }
.crew-selection { scroll-margin-top: 16px; }
.crew-selection > .crew-back { margin-bottom: 8px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.crew-selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crew-selection-heading h2 { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.crew-selection-heading > span, .crew-loop .crew-selection-day { color: var(--muted); font-size: 12px; }
.crew-loop .crew-selection-day { padding-top: 8px; }
.crew-note-link { display: block; width: 100%; padding: 18px 0; text-align: left; border-bottom: 1px solid var(--card-border); }
.crew-note-link p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.crew-note-link h3 { font: 700 19px/1.5 var(--head); letter-spacing: -.025em; margin: 5px 0; overflow-wrap: anywhere; }
.crew-note-link .crew-excerpt { font-size: 14px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.crew-loop .crew-empty { color: var(--muted); line-height: 1.8; font-size: 14px; padding: 26px 0; }
.crew-empty h2 { color: var(--ink); margin: 14px 0 8px; font: 700 19px/1.6 var(--head); }
.crew-welcome { text-align: center; margin-bottom: 14px; }
.crew-welcome img { object-fit: contain; }
.crew-list { margin: 0 0 24px; }
.crew-list-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--chip-border); }
.crew-list-link > span:first-child { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.crew-list-link strong { font-size: 17px; overflow-wrap: anywhere; }
.crew-list-link > span > span { font-size: 12px; color: var(--muted); }
.crew-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 16px; border: 1px solid var(--chip-border); border-radius: 8px; color: var(--ink); background: var(--screen); font: 500 14px/1.5 var(--sans); text-align: center; text-decoration: none; }
.crew-loop .crew-primary { background: var(--lime); border-color: var(--lime); font-weight: 600; }
.crew-form { display: flex; flex-direction: column; gap: 12px; }
.crew-form > label:not(.crew-check) { font-size: 14px; font-weight: 500; }
.crew-form input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid var(--chip-border); border-radius: 8px; background: var(--input-bg); font-size: 16px; }
.crew-form input[aria-invalid="true"] { border-color: var(--ink); }
.crew-loop .crew-notice { padding: 14px; margin-block: 8px 12px; background: var(--tag-bg); border-radius: 8px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.crew-loop .crew-error { border: 1px solid var(--ink); }
.crew-activation { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 8px 0 28px; padding: 22px; border: 1px solid var(--ink); border-radius: 18px; background: var(--lime-pale); }
.crew-activation .eyebrow { margin: 0; }
.crew-activation h2 { margin: 0; font: 800 25px/1.28 var(--head); letter-spacing: -.035em; overflow-wrap: anywhere; }
.crew-activation > p:not(.eyebrow) { margin: 0; color: var(--muted); font: 400 14px/1.75 var(--sans); }
.crew-activation > .crew-button { width: 100%; margin-top: 2px; }
.crew-activation-result { background: var(--screen); }
.crew-activation-actions { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; }
.crew-activation-actions .crew-button { width: 100%; }
.crew-weekly { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 8px 0 28px; padding: 22px; border: 1px solid var(--card-border); border-radius: 18px; background: var(--screen); scroll-margin-top: 16px; }
.crew-weekly .eyebrow, .crew-weekly p { margin: 0; }
.crew-weekly h2 { margin: 0; font: 800 23px/1.38 var(--head); letter-spacing: -.035em; overflow-wrap: anywhere; }
.crew-weekly > p:not(.eyebrow, .crew-weekly-kicker, .crew-weekly-privacy), .crew-weekly-heading p { color: var(--muted); font: 400 14px/1.75 var(--sans); }
.crew-weekly-kicker { padding: 5px 9px; border-radius: 999px; background: var(--lime-pale); font: 600 12px/1.5 var(--sans); }
.crew-weekly > .crew-button { width: 100%; }
.crew-weekly-actions { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; }
.crew-weekly-actions .crew-button { width: 100%; }
.crew-weekly-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; width: 100%; }
.crew-weekly-heading > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.crew-weekly-heading > strong { flex: 0 0 auto; padding: 7px 10px; border-radius: 8px; background: var(--lime-pale); font: 700 15px/1.4 var(--mono); }
.crew-weekly-notes { width: 100%; margin: 0; padding: 0; list-style: none; }
.crew-weekly-notes li + li { border-top: 1px solid var(--card-border); }
.crew-weekly-notes a { display: flex; flex-direction: column; gap: 5px; min-height: 72px; padding: 13px 0; }
.crew-weekly-notes span, .crew-weekly-notes small { color: var(--muted); font: 500 11px/1.5 var(--sans); }
.crew-weekly-notes strong { font: 700 16px/1.5 var(--head); overflow-wrap: anywhere; }
.crew-weekly-privacy { color: var(--muted); font: 400 11px/1.65 var(--sans); }
.crew-settings { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--chip-border); }
.crew-settings > summary { min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 500; padding-block: 12px; }
.crew-settings h2 { margin: 8px 0 12px; font-size: 17px; line-height: 1.5; }
.crew-settings > .crew-form + .crew-form, .crew-settings > section + section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--chip-border); }
.crew-invite-intro { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 18px; }
.crew-invite-intro .eyebrow { margin: 0; }
.crew-invite-intro h2 { margin: 0; font: 700 20px/1.45 var(--head); letter-spacing: -.025em; }
#crew-invite > section + .crew-form { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--chip-border); }
.crew-check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-block: 8px; font-size: 13px; line-height: 1.8; cursor: pointer; }
.crew-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--ink); }
.crew-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.crew-actions > * { flex: 1; }
.crew-invite-link { font-family: var(--mono) !important; }
.crew-invite-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.crew-invite-actions .crew-button { width: 100%; }
.crew-loop .crew-copy-status { min-height: 24px; font-size: 12px; line-height: 1.8; }
@media (hover: hover) {
  .crew-metric:hover strong, .crew-note-link:hover h3, .crew-list-link:hover strong { text-decoration: underline; text-underline-offset: 4px; }
  .crew-daynav > a:hover, .crew-button:not(.crew-primary):hover { background: var(--tag-bg); }
}
@media (max-width: 359px) {
  .crew-column-head, .crew-member { grid-template-columns: 52px minmax(0,1fr) minmax(0,1fr); column-gap: 4px; }
  .crew-glyph { width: 40px; height: 40px; flex-basis: 40px; }
  .crew-metric strong { font-size: 23px; }
  .crew-person > span:last-child { width: 48px; }
  .crew-daynav { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 2px; }
  .crew-heading-row h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .crew-loop *, .crew-loop *::before, .crew-loop *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .crew-scope [aria-current], .crew-metric[aria-current="true"], .crew-button { outline: 1px solid ButtonText; } }
