/* SmoothRoster design tokens (logo option A): deep navy ink, teal accent, cool grey chrome. */
:root {
  --ink: #10223B;
  --ink-2: #4A5568;
  --ink-3: #5B6678;
  --sage: #F4F6F8;
  --sage-2: #E6EAEF;
  --board: #ffffff;
  --rule: #D5DCE4;
  --marigold: #0E9F8E;   /* brand teal (logo, highlights) */
  --marigold-d: #0B7F72; /* deeper teal: buttons with white text, accents on white */
  --brick: #c2462f;
  --leaf: #0B7F72;
  --focus: #2563EB;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--body); color: var(--ink); background: var(--sage); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--body); padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--rule); background: var(--board); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--sage); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #0A1628; }
.btn.go { background: var(--marigold-d); border-color: #0A6E63; color: #fff; }
.btn.go:hover { background: #0A6E63; }
.btn.danger { color: var(--brick); }
.btn.danger.solid { background: var(--brick); color: #fff; border-color: var(--brick); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--sage-2); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 34px; height: 34px; padding: 0; justify-content: center; }
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; color: var(--ink-2); }
input, select, textarea { width: 100%; font: 15px var(--body); color: var(--ink); padding: 9px 11px; border: 1px solid var(--rule);
  border-radius: var(--r-sm); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,111,209,.15); }
input[type=checkbox], input[type=radio] { width: auto; flex: none; }
input[type=color] { padding: 2px; height: 38px; width: 56px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--sage-2); color: var(--ink-2); }
.pill.ok { background: #dcefe3; color: #1f6b45; }
.pill.warn { background: #fbecc4; color: #7a5300; }
.pill.bad { background: #f6dcd6; color: #8f2b1a; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #C9D3E0; padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px var(--display); color: #fff; padding: 4px 10px 18px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; background: url('/logo-mark.svg') center / contain no-repeat; flex: none; }
.wordmark { font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; text-transform: none; }
.wordmark b { font-weight: 800; }
.org-name { font-size: 13px; color: #9fb5ac; padding: 0 10px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; color: #C9D3E0; text-decoration: none; border-radius: var(--r-sm); font-weight: 600; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--marigold); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .count { margin-left: auto; background: var(--marigold); color: #10223B; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--marigold); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.banner { padding: 10px 24px; font-weight: 600; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.banner.trial { background: #fbecc4; color: #5e4100; }
.banner.locked { background: #f6dcd6; color: #7a2213; }
.banner.ok { background: #dcefe3; color: #1f4d33; }
.page { padding: 24px; max-width: 1180px; width: 100%; }
.page.wide { max-width: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.panel { background: var(--board); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 20px; margin-bottom: 16px; }
.panel > h2:first-child { margin-top: 0; }
.mobile-top, .bottom-nav { display: none; }

/* tables */
.table { width: 100%; border-collapse: collapse; background: var(--board); }
.table th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--sage-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { border: 1px solid var(--rule); border-radius: var(--r-md); overflow: auto; background: var(--board); }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty h3 { color: var(--ink); }

/* ---------- schedule board ---------- */
.sched-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.week-label { font: 650 18px var(--display); min-width: 190px; text-align: center; }
.sched-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 16px; align-items: start; }
.sched-layout > * { min-width: 0; }
.palette { background: var(--board); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px; position: sticky; top: 16px; }
.palette h3 { font-size: 14px; margin-bottom: 4px; }
.palette .ticket { margin-bottom: 8px; cursor: grab; }
.palette-hint { font-size: 12px; color: var(--ink-3); margin: 0 0 12px; }
.board { background: var(--board); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: auto; }
.board table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; table-layout: fixed; }
.board th, .board td { border-right: 1px solid var(--sage-2); border-bottom: 1px solid var(--sage-2); }
.board th { background: var(--board); position: sticky; top: 0; z-index: 2; padding: 10px 8px; font-weight: 600; font-size: 13px; text-align: left; }
.board th.today { box-shadow: inset 0 -3px 0 var(--marigold); }
.board th .d { font: 700 17px var(--display); display: block; color: var(--ink); }
.board th .wd { color: var(--ink-3); }
.board .who { width: 168px; position: sticky; left: 0; background: var(--board); z-index: 1; padding: 10px 12px; }
.board thead .who { z-index: 3; }
.who-name { font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-meta { font-size: 12px; color: var(--ink-3); }
.who-meta.over { color: var(--brick); font-weight: 700; }
.board tr.open-row td { background: #EEF8F6; }
.board tr.open-row .who { background: #EEF8F6; }
.cell { vertical-align: top; padding: 6px; height: 74px; position: relative; }
.cell.can-edit { cursor: pointer; }
.cell.can-edit:hover { background: #F7F9FB; }
.cell .add { position: absolute; right: 6px; bottom: 6px; opacity: 0; font-size: 18px; color: var(--ink-3); line-height: 1; }
.cell.can-edit:hover .add { opacity: 1; }
.cell.drop { background: #e6f0fb !important; box-shadow: inset 0 0 0 2px var(--focus); }
.cell.off { background: repeating-linear-gradient(135deg, #EBEFF4 0 6px, #fff 6px 12px); }
.cell .off-tag { font-size: 11px; font-weight: 700; color: var(--ink-3); display: block; margin-bottom: 4px; }
.cell.unavail::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #c9c3b4; }
.board tfoot td { background: var(--sage); font-size: 12px; padding: 8px; color: var(--ink-2); position: sticky; bottom: 0; }
.board tfoot .who { background: var(--sage); }

.ticket { position: relative; background: #fff; border: 1px solid var(--rule); border-left: 5px solid var(--c, var(--ink)); border-radius: 5px;
  padding: 5px 7px 5px 8px; margin-bottom: 4px; font-size: 12.5px; line-height: 1.3; user-select: none; }
.ticket[draggable=true] { cursor: grab; }
.ticket[draggable=true]:active { cursor: grabbing; }
.ticket .t { font-weight: 700; font-variant-numeric: tabular-nums; display: block; }
.ticket .p { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ticket.draft { border-style: dashed; border-left-style: solid; background: #fffdf6; }
.ticket.warn { box-shadow: 0 0 0 2px var(--brick); }
.ticket .flag { position: absolute; top: 4px; right: 5px; color: var(--brick); font-weight: 700; }
.ticket.dragging { opacity: .4; }
.ticket.mine { box-shadow: 0 0 0 2px var(--marigold); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 20px; height: 12px; border: 1px solid var(--rule); border-radius: 3px; }

/* ---------- modal & toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10, 20, 36, .45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--board); border-radius: var(--r-lg); width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; box-shadow: 0 24px 60px rgba(10, 20, 36,.3); }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.err { background: var(--brick); }
.copybox { display: flex; gap: 8px; }
.copybox input { font-size: 13px; background: var(--sage); }

/* ---------- cards & misc ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--board); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px 16px; }
.stat b { font: 700 24px var(--display); display: block; }
.stat span { font-size: 13px; color: var(--ink-3); }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--sage-2); flex-wrap: wrap; }
.list-item:last-child { border-bottom: 0; }
.date-chip { width: 52px; text-align: center; border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 4px 0; flex: none; background: #fff; }
.date-chip b { font: 700 20px var(--display); display: block; line-height: 1.1; }
.date-chip span { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: 600 14px var(--body); color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-color: var(--marigold); }
.clock-face { text-align: center; padding: 30px 10px; }
.clock-face .time { font: 700 52px var(--display); font-variant-numeric: tabular-nums; }
.clock-btn { font-size: 18px; padding: 18px 34px; border-radius: 99px; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plan { border: 1px solid var(--rule); border-radius: var(--r-md); padding: 20px; background: #fff; }
.plan.current { border: 2px solid var(--ink); }
.plan .price { font: 700 34px var(--display); }
.plan ul { padding-left: 18px; margin: 12px 0 18px; color: var(--ink-2); }
.avail-row { display: grid; grid-template-columns: 110px 130px 1fr 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--sage-2); }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #C9D3E0; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: 2rem; max-width: 14ch; }
.auth-side .brand { padding: 0; }
.auth-tickets { display: grid; gap: 10px; max-width: 280px; transform: rotate(-4deg); }
.auth-tickets .ticket { font-size: 14px; padding: 9px 12px; color: var(--ink); }
.auth-form { display: grid; place-items: center; padding: 32px; background: var(--board); }
.auth-form form { width: 100%; max-width: 380px; }
.auth-form .alt { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.err-box { background: #f6dcd6; color: #7a2213; padding: 10px 12px; border-radius: var(--r-sm); margin-bottom: 14px; font-weight: 600; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 20; }
  .mobile-top .brand { padding: 0; font-size: 17px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--board); border-top: 1px solid var(--rule); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 8px 2px; color: var(--ink-3); text-decoration: none; }
  .bottom-nav a.on { color: var(--ink); }
  .bottom-nav svg { width: 22px; height: 22px; display: block; margin: 0 auto 2px; }
  .page { padding: 16px 16px 90px; }
  .sched-layout { grid-template-columns: 1fr; }
  .palette { position: static; display: flex; gap: 8px; overflow-x: auto; align-items: center; padding: 10px; }
  .palette h3, .palette-hint { display: none; }
  .palette .ticket { margin: 0; min-width: 120px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .plans, .grid2, .grid3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .avail-row { grid-template-columns: 1fr 1fr; }
  .banner { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* print: a clean schedule to pin on the wall */
@media print {
  body { background: #fff; }
  .side, .mobile-top, .bottom-nav, .banner, .palette, .page-head .row, .sched-bar .btn, .legend, .cell .add, .toasts { display: none !important; }
  .shell, .sched-layout { display: block; }
  .page { padding: 0; }
  .board { border: 0; overflow: visible; }
  .board table { min-width: 0; }
  .board th, .board .who, .board tfoot td { position: static; }
  .ticket { break-inside: avoid; }
}
@media (max-width: 900px) {
  .board table { min-width: 720px; }
  .board .who { width: 118px; padding: 8px; }
  .who-meta { font-size: 11px; }
}

/* team availability + dashboard */
.avail-table td.av { font-size: 13px; font-weight: 600; text-align: center; white-space: nowrap; }
.av-yes { background: #E7F6F4; color: #1f6b45; }
.av-some { background: #fbf3dc; color: #6b4a00; }
.av-no { background: #f6e3de; color: #8f2b1a; }
.av-unset { background: #F4F6F8; color: var(--ink-3); font-weight: 400 !important; }
a.list-item.todo { text-decoration: none; color: var(--ink); border-radius: var(--r-sm); }
a.list-item.todo:hover { background: var(--sage); }

/* auto-suggest, trade choices, notification checkbox, install banner */
.suggest { background: var(--sage); border-radius: var(--r-md); padding: 10px; margin: -4px 0 14px; display: grid; gap: 6px; }
.suggest-head { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.sugg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; text-align: left; background: #fff; border: 1px solid var(--rule);
  border-radius: var(--r-sm); padding: 8px 10px; font: 14px var(--body); color: var(--ink); cursor: pointer; }
.sugg:hover { border-color: var(--ink-3); }
.sugg.on { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--marigold); }
.sugg .chips { display: flex; gap: 4px; flex-wrap: wrap; }
.sugg .pill { font-size: 11px; font-weight: 600; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--rule); border-radius: var(--r-md); margin-bottom: 8px; cursor: pointer; font-weight: 400; color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: #F8FAFC; }
.choice input { margin-top: 3px; }
.choice > span { display: grid; gap: 2px; flex: 1; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.install { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--ink); color: #E3E9F0; border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 16px; }
.install .brand-mark { flex: none; }
.install b { color: #fff; }
.install .grow { flex: 1; min-width: 180px; }
.install .btn.ghost { color: #E3E9F0; }
.install-flat { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.ticket .req-tag { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: #7a5300; background: #fbecc4; border-radius: 3px; padding: 1px 5px; width: fit-content; }

/* schedule views: week / 2 weeks / month */
.seg { display: inline-flex; background: var(--sage-2); border-radius: var(--r-sm); padding: 3px; margin-right: 8px; }
.seg button { border: 0; background: transparent; font: 600 13px var(--body); color: var(--ink-2); padding: 7px 12px; border-radius: 5px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 34, 59,.15); }
.board table.two-week { min-width: 1480px; }
.board th.wk2, .board td.wk2 { border-left: 3px solid var(--rule); }
.board table.month { min-width: 760px; table-layout: fixed; }
.board table.month th { text-align: left; }
.mcell { vertical-align: top; padding: 6px; height: 128px; min-height: 128px; border-right: 1px solid var(--sage-2); border-bottom: 1px solid var(--sage-2); position: relative; }
.mcell.can-edit { cursor: pointer; }
.mcell.can-edit:hover { background: #F7F9FB; }
.mcell.other { background: #F7F9FB; }
.mcell.other .mday, .mcell.other .mline { opacity: .55; }
.mcell.today { box-shadow: inset 0 3px 0 var(--marigold); }
.mcell.drop { background: #e6f0fb !important; box-shadow: inset 0 0 0 2px var(--focus); }
.mhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mday { font: 700 15px var(--display); }
.moff { font-size: 11px; font-weight: 700; color: var(--ink-3); background: repeating-linear-gradient(135deg, #EBEFF4 0 4px, #fff 4px 8px); border: 1px solid var(--rule); border-radius: 3px; padding: 0 5px; }
.mline { font-size: 12px; line-height: 1.35; padding: 1px 5px; margin-bottom: 2px; border-left: 3px solid var(--c); background: #fff; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0 0 1px var(--sage-2); }
.mline[draggable=true] { cursor: grab; }
.mline.draft { background: #fffdf6; box-shadow: 0 0 0 1px #e6d9b0; border-left-style: solid; }
.mline.warn { box-shadow: 0 0 0 1.5px var(--brick); }
.mline.mine { box-shadow: 0 0 0 1.5px var(--marigold); font-weight: 700; }
.mmore { border: 0; background: none; font: 700 12px var(--body); color: var(--focus); padding: 0 5px; cursor: pointer; }
.mtot { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.mmore { display: block; }
@media (max-width: 900px) {
  .sched-bar .seg { width: 100%; margin: 0 0 6px; }
  .sched-bar .seg button { flex: 1; }
  .mcell { height: 104px; padding: 4px; }
  .mtot { display: none; }
}
@media print {
  .seg { display: none !important; }
  .board table.two-week, .board table.month { min-width: 0; }
}

/* platform admin */
.tabs a.tab { padding: 10px 14px; font: 600 14px var(--body); color: var(--ink-3); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.tab.on { color: var(--ink); border-color: var(--marigold); }
.stat-row.stat-6 { grid-template-columns: repeat(6, 1fr); }
.click-row { cursor: pointer; }
.click-row:hover td { background: #F7F9FB; }
.danger-zone { border-color: #e7c3ba; }
@media (max-width: 900px) { .stat-row.stat-6 { grid-template-columns: repeat(2, 1fr); } }
.palette .ticket.armed { box-shadow: 0 0 0 3px var(--focus); background: #eef4fd; }

/* "Can also work" positions (with their own wage) in the team member form */
fieldset.also { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset.also legend { font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.also-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 4px 4px 4px 10px; border: 1px solid var(--rule); border-radius: var(--r-md); margin-bottom: 6px; background: #fff; }
.also-row[hidden], .also-wage[hidden] { display: none; }
.also-row:has(input[name=extra]:checked) { border-color: var(--ink); background: var(--sage); }
.also-pos { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; flex: 1; }
.also-pos input { width: auto; margin: 0; accent-color: var(--ink); }
.also-wage { display: inline-flex; align-items: center; gap: 4px; }
.also-wage input { width: 104px; padding: 6px 8px; }

/* Position tabs above the schedule: work one position at a time */
.pos-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pos-tab { display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1 var(--body); padding: 8px 12px; min-height: 36px; border-radius: 99px; border: 1px solid var(--rule); background: #fff; color: var(--ink-2); cursor: pointer; }
.pos-tab:hover { border-color: var(--ink-3); color: var(--ink); }
.pos-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pos-tab.on .dot { box-shadow: 0 0 0 2px #fff; }
.pos-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--marigold); color: #10223B; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.pos-hint { margin: -2px 0 10px; color: var(--ink-2); background: #ECF8F6; border: 1px solid #B5E3DD; border-radius: var(--r-md); padding: 8px 12px; }
.who-focus { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.ticket.other { opacity: .45; filter: saturate(.4); }
.ticket.other:hover { opacity: .85; }
@media print { .pos-tabs, .pos-hint { display: none; } .ticket.other { opacity: 1; filter: none; } }

/* Team updates */
.announce-form { margin-bottom: 12px; }
.announce-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.announce-opts label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: 13px; }
.announce-opts input[type=checkbox] { width: auto; margin: 0; accent-color: var(--ink); }
.announce-opts input[type=date] { width: auto; padding: 5px 8px; font-size: 13px; }
.update-card { border: 2px solid var(--marigold); background: #F0FAF8; }
.update-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.update-head h2 { margin: 0; }
