* { box-sizing: border-box; }
:root {
  color-scheme: light dark;
  --ddx-purple: #292077;
  --ddx-deep: #171a51;
  --ddx-lavender: #beb1f9;
  --ddx-turquoise: #08b7cc;
  --ddx-orange: #ff7d20;
  --page: var(--tg-theme-bg-color, #f4f2f8);
  --surface: var(--tg-theme-secondary-bg-color, #ffffff);
  --surface-2: var(--tg-theme-section-bg-color, #f0edff);
  --text: var(--tg-theme-text-color, var(--ddx-deep));
  --muted: var(--tg-theme-hint-color, #706c85);
  --accent: var(--ddx-orange);
  --accent-text: var(--ddx-deep);
  --accent-ink: color-mix(in srgb, var(--ddx-orange) 55%, var(--text));
  --line: color-mix(in srgb, var(--ddx-deep) 12%, transparent);
  --prefer: var(--ddx-purple);
  --can: #006e7e;
  --unavailable: #a6450d;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html { min-width: 320px; background: var(--page); }
body { margin: 0; min-height: 100vh; background: var(--page); color: var(--text); }
button { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }
.app-shell { max-width: 620px; min-height: 100vh; margin: 0 auto; padding: calc(10px + var(--tg-safe-area-inset-top, 0px)) 18px calc(118px + var(--tg-safe-area-inset-bottom, 0px)); }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 24px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: flex; width: 43px; height: 34px; flex: 0 0 auto; flex-direction: column; justify-content: center; line-height: .82; }
.brand-mark span { color: var(--accent-ink); font-size: 17px; font-weight: 900; letter-spacing: -.09em; }
.brand-mark small { margin-top: 3px; color: var(--ddx-purple); font-size: 8px; font-weight: 850; letter-spacing: .015em; }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .13em; line-height: 1.4; }
.brand-name { margin-top: 2px; font-size: 15px; font-weight: 720; letter-spacing: -.02em; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.intro { padding: 5px 2px 20px; }
.intro h1 { margin: 7px 0 8px; font-size: clamp(34px, 10vw, 46px); font-weight: 740; letter-spacing: -.065em; line-height: .98; }
.intro h1 em { color: var(--accent-ink); font-style: normal; }
.intro-copy { max-width: 360px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.identity-panel { margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.identity-panel label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.identity-panel input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; }
.identity-panel input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.identity-panel p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.month-section { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.month-label-wrap { flex: 1; text-align: center; }
.month-label-wrap strong { display: block; margin-top: 3px; font-size: 17px; font-weight: 700; text-transform: capitalize; letter-spacing: -.025em; }
.month-arrow { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 25px; cursor: pointer; }
.month-arrow:active, .icon-button:active { transform: scale(.96); }
.summary-panel { --accent-text: #ffffff; margin: 0 0 18px; padding: 17px 17px 14px; border-radius: var(--radius-lg); background: var(--ddx-purple); color: var(--accent-text); box-shadow: 0 7px 22px color-mix(in srgb, var(--ddx-purple) 22%, transparent); }
.summary-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.summary-top .eyebrow { color: color-mix(in srgb, var(--accent-text) 72%, transparent); }
.summary-top strong { display: inline-block; margin: 3px 7px 0 0; font-size: 32px; line-height: 1; letter-spacing: -.06em; }
.summary-unit { font-size: 12px; opacity: .75; }
.summary-note { max-width: 45%; padding-bottom: 3px; color: color-mix(in srgb, var(--accent-text) 78%, transparent); font-size: 12px; text-align: right; }
.summary-bar { display: flex; height: 6px; overflow: hidden; margin: 14px 0 11px; border-radius: 9px; background: color-mix(in srgb, var(--accent-text) 22%, transparent); }
.summary-bar i { display: block; width: 0; transition: width .2s ease; }
.bar-prefer { background: var(--ddx-lavender); }
.bar-can { background: var(--ddx-turquoise); }
.bar-no { background: var(--ddx-orange); }
.summary-legend { display: flex; justify-content: space-between; gap: 8px; color: color-mix(in srgb, var(--accent-text) 85%, transparent); font-size: 11px; }
.summary-legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.summary-legend b { color: var(--accent-text); font-size: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--muted); }
.dot.prefer { background: var(--prefer); }
.dot.can { background: var(--can); }
.dot.unavailable { background: var(--unavailable); }
.summary-panel .dot.prefer { background: var(--ddx-lavender); }
.summary-panel .dot.can { background: var(--ddx-turquoise); }
.summary-panel .dot.unavailable { background: var(--ddx-orange); }
.calendar-panel, .day-section { margin-bottom: 19px; padding: 17px 15px 15px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.section-head h2 { margin: 3px 0 0; font-size: 19px; font-weight: 720; letter-spacing: -.035em; }
.calendar-hint { padding-bottom: 2px; color: var(--muted); font-size: 10px; }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekday-row { margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 750; text-align: center; }
.weekday-row span { padding: 4px 0; }
.calendar-cell { position: relative; display: flex; min-width: 0; min-height: 49px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 1px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; }
.calendar-cell .day-number { font-size: 13px; font-weight: 650; line-height: 1; }
.calendar-cell.selected { border-color: color-mix(in srgb, var(--ddx-purple) 36%, transparent); background: color-mix(in srgb, var(--ddx-lavender) 28%, var(--surface)); color: var(--text); }
.calendar-cell.today .day-number { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.calendar-cell.outside { visibility: hidden; pointer-events: none; }
.day-dots { display: flex; height: 5px; align-items: center; justify-content: center; gap: 2px; }
.day-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .55; }
.day-dots i.prefer { background: var(--prefer); opacity: 1; }
.day-dots i.can { background: var(--can); opacity: 1; }
.day-dots i.unavailable { background: var(--unavailable); opacity: 1; }
.day-head { margin-bottom: 4px; }
.text-button { padding: 7px 2px; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.text-button:active { color: var(--text); }
.day-help { margin: 4px 0 10px; color: var(--muted); font-size: 12px; }
.quick-mark { display: inline-flex; min-height: 34px; align-items: center; margin-bottom: 11px; padding: 0 11px; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent-ink); font-size: 11px; font-weight: 680; cursor: pointer; }
.quick-mark:active { transform: scale(.98); }
.shift-list { display: grid; gap: 8px; }
.shift-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; padding: 10px 10px 10px 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.shift-card:active { transform: scale(.99); }
.shift-card:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.shift-meta { display: flex; min-width: 0; align-items: center; gap: 11px; }
.shift-rail { width: 3px; height: 34px; flex: 0 0 auto; border-radius: 5px; background: var(--line); }
.shift-card[data-status="prefer"] .shift-rail { background: var(--prefer); }
.shift-card[data-status="can"] .shift-rail { background: var(--can); }
.shift-card[data-status="unavailable"] .shift-rail { background: var(--unavailable); }
.shift-time { font-size: 15px; font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.shift-caption { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.status-pill { display: flex; min-width: 92px; align-items: center; justify-content: center; gap: 5px; padding: 8px 9px; border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 650; white-space: nowrap; }
.status-pill[data-status="prefer"] { background: color-mix(in srgb, var(--prefer) 13%, var(--surface)); color: var(--prefer); }
.status-pill[data-status="can"] { background: color-mix(in srgb, var(--can) 15%, var(--surface)); color: var(--can); }
.status-pill[data-status="unavailable"] { background: color-mix(in srgb, var(--unavailable) 13%, var(--surface)); color: var(--unavailable); }
.status-symbol { font-size: 13px; line-height: 1; }
.status-key { display: flex; flex-wrap: wrap; gap: 10px 15px; margin-top: 14px; color: var(--muted); font-size: 10px; }
.status-key span { display: flex; align-items: center; gap: 5px; }
.privacy-note { margin: 4px 4px 15px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.fallback-submit { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; padding: 11px 18px calc(12px + var(--tg-safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(14px); }
.submit-button { display: flex; width: min(100%, 584px); min-height: 52px; align-items: center; justify-content: space-between; margin: 0 auto; padding: 0 17px; border: 0; border-radius: 16px; background: var(--accent); color: var(--accent-text); font-size: 14px; font-weight: 700; cursor: pointer; }
.submit-button:disabled { opacity: 1; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent-ink); cursor: not-allowed; }
.submit-button:disabled b { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.submit-button b { display: grid; min-width: 27px; height: 27px; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--accent-text) 18%, transparent); font-size: 12px; }
.submit-caption { display: block; max-width: 584px; margin: 5px auto 0; color: var(--muted); font-size: 10px; text-align: center; }
.sheet-backdrop { position: fixed; z-index: 20; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgb(0 0 0 / .42); }
.status-sheet { width: min(100%, 620px); padding: 10px 18px calc(20px + var(--tg-safe-area-inset-bottom, 0px)); border-radius: 25px 25px 0 0; background: var(--surface); box-shadow: 0 -12px 40px rgb(0 0 0 / .16); animation: sheet-in .18s ease-out; }
@keyframes sheet-in { from { transform: translateY(18px); opacity: .8; } to { transform: translateY(0); opacity: 1; } }
.sheet-handle { width: 36px; height: 4px; margin: 0 auto 16px; border-radius: 9px; background: var(--muted); opacity: .35; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; }
.sheet-heading h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.04em; }
.sheet-copy { margin: 8px 0 14px; color: var(--muted); font-size: 13px; }
.sheet-close { width: 34px; height: 34px; font-size: 23px; }
.status-options { display: grid; gap: 8px; }
.status-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 61px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); text-align: left; cursor: pointer; }
.status-option:active { transform: scale(.99); }
.option-symbol { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--surface-2); font-size: 17px; font-weight: 700; }
.option-prefer .option-symbol { background: color-mix(in srgb, var(--prefer) 14%, var(--surface)); color: var(--prefer); }
.option-can .option-symbol { background: color-mix(in srgb, var(--can) 15%, var(--surface)); color: var(--can); }
.option-unavailable .option-symbol { background: color-mix(in srgb, var(--unavailable) 14%, var(--surface)); color: var(--unavailable); }
.status-option strong { display: block; font-size: 13px; }
.status-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.status-option i { margin-left: auto; color: var(--muted); font-size: 20px; font-style: normal; }
.toast { position: fixed; z-index: 30; bottom: calc(92px + var(--tg-safe-area-inset-bottom, 0px)); left: 50%; max-width: calc(100% - 32px); padding: 11px 15px; border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); border-radius: 14px; background: var(--text); color: var(--page); font-size: 12px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.admin-view .intro { padding-bottom: 18px; }
.admin-status-card { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.status-orbit { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.status-orbit span { width: 16px; height: 16px; border: 4px solid var(--accent); border-right-color: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 50%; transform: rotate(-25deg); }
.admin-status-card h2 { margin: 3px 0 4px; font-size: 16px; letter-spacing: -.025em; }
.admin-status-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-links { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.admin-link { display: flex; width: 100%; min-height: 69px; align-items: center; gap: 12px; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.admin-link:last-child { border-bottom: 0; }
.admin-link:active { background: var(--surface-2); }
.admin-link-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--surface-2); color: var(--accent-ink); font-size: 10px; font-weight: 750; letter-spacing: .03em; }
.admin-link span:nth-child(2) { min-width: 0; }
.admin-link strong { display: block; font-size: 13px; }
.admin-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.admin-link > b { margin-left: auto; color: var(--muted); font-size: 20px; font-weight: 400; }
.admin-detail { margin-top: 14px; padding: 15px 16px; border-radius: var(--radius-md); background: var(--surface-2); }
.admin-detail p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-link.active { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.admin-link.active .admin-link-icon { background: var(--accent); color: var(--ddx-deep); }
.admin-detail { padding: 16px; }
.admin-detail-heading { margin-bottom: 14px; }
.admin-detail-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.admin-detail-heading p, .admin-muted { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.admin-empty { margin: 12px 0; padding: 14px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.admin-empty strong { display: block; color: var(--text); font-size: 13px; }
.admin-empty.error { border-color: color-mix(in srgb, var(--unavailable) 45%, var(--line)); color: var(--unavailable); }
.admin-empty p { margin: 5px 0 0; }
.team-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin: 14px 0 10px; }
.team-toolbar input { min-width: 0; flex: 1; }
.team-count { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 650; }
.team-create, .schedule-upload, .export-card, .unlinked-section { margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.team-create h3, .schedule-upload h3, .unlinked-section h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: -.02em; }
.team-list, .collection-list { display: grid; gap: 9px; margin-top: 10px; }
.team-card, .collection-row { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.team-card.archived { opacity: .72; }
.team-card-head, .collection-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.team-card-head strong, .collection-row-top strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.state-pill { display: inline-flex; min-height: 24px; flex: 0 0 auto; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.state-active { background: color-mix(in srgb, var(--can) 13%, var(--surface)); color: var(--can); }
.state-archived { background: var(--surface-2); color: var(--muted); }
.state-warning { background: color-mix(in srgb, var(--accent) 17%, var(--surface)); color: var(--accent-ink); }
.state-pending { background: color-mix(in srgb, var(--ddx-turquoise) 14%, var(--surface)); color: var(--can); }
.team-edit-form { display: grid; gap: 9px; }
.admin-field { display: grid; min-width: 0; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.admin-field input, .admin-field select, .team-toolbar input, .admin-search { width: 100%; min-width: 0; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--text); font: inherit; font-size: 13px; }
.admin-field input:focus-visible, .admin-field select:focus-visible, .team-toolbar input:focus-visible, .admin-search:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 3px; }
.admin-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-button.primary { border-color: transparent; background: var(--accent); color: var(--ddx-deep); }
.admin-button.secondary { background: var(--surface); color: var(--muted); }
.admin-button:active { transform: scale(.98); }
.collection-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.collection-stat { padding: 10px 7px; border-radius: 11px; background: var(--surface); color: var(--text); font-size: 11px; font-weight: 700; text-align: center; }
.collection-row { padding: 11px 12px; }
.collection-row-top { margin-bottom: 4px; }
.collection-counts { margin: 5px 0 0; color: var(--text); font-size: 11px; font-weight: 650; }
.unlinked-section { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.unlinked-section p { padding-top: 7px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.schedule-upload .admin-muted { margin-bottom: 10px; }
.schedule-upload .admin-actions { display: grid; }
.schedule-file-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-picker { position: relative; width: 100%; margin: 0; }
.schedule-file-name { min-width: 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.quota-preview { margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.quota-preview h3 { margin: 0; font-size: 14px; }
.quota-list { display: grid; gap: 5px; margin-top: 10px; }
.quota-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 11px; }
.quota-row span { color: var(--muted); }
.nonvoter-details { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.nonvoter-details summary { cursor: pointer; font-size: 11px; font-weight: 700; }
.nonvoter-details p { overflow-wrap: anywhere; }
.schedule-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--surface); }
.schedule-meta strong { overflow-wrap: anywhere; font-size: 12px; }
.schedule-meta span { color: var(--muted); font-size: 10px; }
.schedule-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.schedule-table { width: 100%; min-width: 590px; border-collapse: collapse; font-size: 10px; }
.schedule-table th, .schedule-table td { padding: 8px 7px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.schedule-table thead th { position: sticky; top: 0; background: var(--ddx-purple); color: #fff; font-size: 9px; white-space: nowrap; }
.schedule-table tbody th { width: 42px; color: var(--muted); }
.schedule-table td { min-width: 90px; white-space: pre-line; overflow-wrap: anywhere; }
.schedule-table td.schedule-edit-cell { min-width: 145px; white-space: normal; }
.schedule-edit-cell select { width: 132px; min-height: 42px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--page); color: var(--text); font: inherit; font-size: 11px; }
.schedule-lock, .schedule-acknowledge { display: flex; min-height: 38px; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.schedule-lock input, .schedule-acknowledge input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); }
.schedule-unverified { display: block; margin-bottom: 5px; color: var(--unavailable); font-size: 10px; overflow-wrap: anywhere; }
.schedule-double-name { display: block; margin: 2px 0; color: var(--accent-ink); font-size: 10px; overflow-wrap: anywhere; }
.schedule-cell-tools { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.schedule-double { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; }
.schedule-double summary { min-height: 38px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 9px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.schedule-double > .admin-muted { display: block; margin: 2px 0 6px; font-size: 10px; }
.schedule-double select { width: 132px; min-height: 42px; margin: 4px 0; }
.schedule-double .admin-field input { min-height: 42px; margin: 3px 0; font-size: 11px; }
.schedule-double .admin-button { width: 132px; padding: 4px; min-height: 42px; font-size: 10px; }
.schedule-issues, .schedule-approval { margin: 12px 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.schedule-issues h3 { margin: 0 0 8px; font-size: 13px; }
.schedule-issue { margin: 5px 0 !important; padding: 7px 9px; border-radius: 9px; background: var(--surface-2); font-size: 11px !important; overflow-wrap: anywhere; }
.schedule-issue.blocking { color: var(--unavailable); }
.schedule-issue.warning { color: var(--accent-ink); }
.schedule-approval .admin-button { margin-top: 8px; }
.schedule-approval .admin-button:disabled { border-color: var(--line); background: var(--surface-2); color: var(--muted); cursor: not-allowed; transform: none; }
.schedule-edit-cell select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.schedule-table tbody tr:last-child th, .schedule-table tbody tr:last-child td { border-bottom: 0; }
.preference-details { margin: 14px 0 2px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.preference-details > summary { cursor: pointer; font-size: 13px; font-weight: 750; }
.preference-legend { margin: 8px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.preference-table { min-width: 760px; }
.preference-table td { min-width: 135px; white-space: normal; }
.pref-line { display: flex; align-items: flex-start; gap: 5px; margin: 2px 0; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.pref-marker { flex: 0 0 12px; font-weight: 800; }
.pref-prefer { color: var(--prefer); }
.pref-can { color: var(--can); }
.pref-unavailable { color: var(--unavailable); }
.pref-empty { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.export-card strong { font-size: 14px; }
.export-card .admin-button { margin: 8px 8px 0 0; }
@media (min-width: 520px) {
  .team-edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-edit-form .admin-actions { grid-column: 1 / -1; }
  .schedule-upload .admin-actions { grid-template-columns: 1fr 1fr; }
  .file-picker, .schedule-file-name { grid-column: 1 / -1; }
}
@media (min-width: 520px) {
  .app-shell { padding-right: 24px; padding-left: 24px; }
  .calendar-panel, .day-section { padding-right: 20px; padding-left: 20px; }
  .calendar-cell { min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
