:root {
  --radius: 1rem;

  /* Apple neutrals (2026-10-13 第二版，Mason：更像 Apple)：#f5f5f7 画布、#1d1d1f 墨色、#6e6e73 次要文字、#d2d2d7 细线 */
  --background: oklch(0.972 0.0015 286);
  --foreground: oklch(0.218 0.0034 286);
  --card: oklch(1 0 0);
  --card-foreground: var(--foreground);
  --popover: oklch(1 0 0);
  --popover-foreground: var(--foreground);
  --surface: oklch(1 0 0);
  --surface-dim: oklch(0.955 0.002 286);
  --surface-container-lowest: oklch(1 0 0);
  --surface-container-low: oklch(0.982 0.0012 286);
  --surface-container: oklch(0.962 0.002 286);
  --surface-container-high: oklch(0.942 0.0025 286);
  --surface-container-highest: oklch(0.918 0.003 286);

  --muted: var(--surface-container);
  --muted-foreground: oklch(0.53 0.008 286);
  --subtle-foreground: oklch(0.62 0.007 286);
  --accent: var(--surface-container);
  --accent-foreground: var(--foreground);
  --secondary: var(--surface-container);
  --secondary-foreground: var(--foreground);

  /* Brand blue (logo #1b8bd4, darkened for text contrast): links, focus, selection. 主要按钮是墨色（Button default），不是蓝色 */
  --primary: oklch(0.53 0.14 247);
  --primary-foreground: oklch(1 0 0);
  --primary-container: oklch(0.95 0.025 240);
  --on-primary-container: oklch(0.42 0.12 248);

  --destructive: oklch(0.57 0.21 27);
  --border: oklch(0.864 0.006 286);
  --hairline: oklch(0 0 0 / 0.08);
  --input: oklch(0.864 0.006 286);
  --ring: oklch(0.62 0.14 243);

  /* 状态色：低饱和，只在需要时出现 */
  --success: oklch(0.58 0.14 150);
  --success-container: oklch(0.96 0.03 150);
  --on-success-container: oklch(0.38 0.08 150);
  --warning: oklch(0.72 0.15 70);
  --warning-container: oklch(0.965 0.04 85);
  --on-warning-container: oklch(0.43 0.09 60);
  --danger: oklch(0.57 0.21 27);
  --danger-container: oklch(0.96 0.022 27);
  --on-danger-container: oklch(0.45 0.16 27);
  --info: oklch(0.53 0.14 247);
  --info-container: oklch(0.955 0.022 240);
  --on-info-container: oklch(0.42 0.12 248);
  --ai: oklch(0.55 0.11 200);
  --ai-container: oklch(0.955 0.025 195);
  --on-ai-container: oklch(0.42 0.09 205);

  /* ===== BRAND SLOT: 蔚蓝国际 logo =====
   * Sky → logo blue → teal → leaf green. The gradient is used ONLY on the greeting name, the logo square and AI/brand
   * surfaces; everything else stays neutral. */
  --brand-sky: #5ec4f2;          /* light stop */
  --brand-royal: #1b8bd4;        /* logo blue = main brand colour */
  --brand-violet: #1fa89a;       /* teal blend stop (variable name kept from the kit) */
  --brand-red: #8dc63f;          /* logo leaf green = accent stop (variable name kept from the kit) */
  --brand-gradient: linear-gradient(100deg, var(--brand-sky) 0%, var(--brand-royal) 38%, var(--brand-violet) 72%, var(--brand-red) 100%);
  /* A soft mesh for the logo square / large brand areas: light top-left, main top-right, accent bottom */
  --brand-mesh: radial-gradient(90% 70% at 0% 10%, var(--brand-sky) 0%, transparent 70%), radial-gradient(90% 70% at 100% 0%, var(--brand-royal) 0%, transparent 75%), linear-gradient(180deg, var(--brand-royal) 0%, var(--brand-violet) 60%, var(--brand-red) 100%);
  /* Older names, kept so existing classes resolve to the brand */
  --ai-blue: var(--brand-sky);
  --ai-violet: var(--brand-royal);
  --ai-rose: var(--brand-red);
  --ai-gradient: var(--brand-gradient);
}
/* Native values from globals.css, Button, Segmented, Input, Textarea, StatusBadge and DashboardShell. */
:root {
  color-scheme: light;
  --font-sans: "Google Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-sans);
  font-size: 16px;
  font-synthesis: none;
  color: var(--foreground);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: .9375rem; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-optical-sizing: auto; }
html:lang(zh-CN) body { line-height: 1.75; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in oklch, var(--ring) 40%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--foreground); color: var(--background); }
.app-header { position: sticky; top: 0; z-index: 60; background: oklch(.985 .001 286 / .8); backdrop-filter: blur(20px) saturate(1.8); border-bottom: 1px solid var(--hairline); }
.app-header-inner { max-width: 1440px; margin: auto; min-height: 52px; padding: 6px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: .3em; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; line-height: 1; }
.brand img { width: auto; height: 22px; border-radius: 3px; margin-right: 6px; }
.brand strong { font-weight: 600; }
.brand > span { color: var(--muted-foreground); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions button { min-width: 80px; }
main { max-width: 1440px; padding: 40px; margin: auto; }
h1, .greeting { font-size: 24px; line-height: 1.25; letter-spacing: -.024em; font-weight: 600; }
.subcopy { color: var(--muted-foreground); font-size: 13px; line-height: 1.55; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-card); padding: 20px; margin-bottom: 24px; }
.demo-toolbar strong { font-size: 15px; font-weight: 500; }
.demo-toolbar .subcopy { margin-top: 5px; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.primary, .secondary, .outline, .ghost, .danger { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; min-height: 40px; padding: 8px 20px; font-size: 14px; font-weight: 500; line-height: 1.45; white-space: nowrap; transition: background-color 150ms var(--ease-out-strong), color 150ms var(--ease-out-strong), box-shadow 150ms var(--ease-out-strong), transform 150ms var(--ease-out-strong); }
.primary { background: var(--foreground); color: var(--background); }
.primary:hover { background: color-mix(in oklch, var(--foreground) 85%, transparent); }
.secondary { background: var(--surface-container); color: var(--foreground); }
.secondary:hover { background: var(--surface-container-high); }
.outline { background: var(--surface); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--input); }
.outline:hover { background: var(--surface-container-low); }
.ghost { background: transparent; color: var(--foreground); }
.ghost:hover { background: var(--surface-container); }
.danger { background: var(--danger-container); color: var(--on-danger-container); }
.danger:hover { background: var(--danger); color: white; }
.primary:active, .secondary:active, .outline:active, .ghost:active, .danger:active { transform: scale(.97); }
.large { min-height: 48px; padding: 12px 28px; font-size: 15px; }
.icon-button { width: 32px; min-height: 32px; padding: 0; font-size: 18px; }
.badge { display: inline-flex; width: fit-content; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 8px; font-size: 12px; line-height: 1.35; font-weight: 500; background: var(--surface-container); color: var(--muted-foreground); white-space: nowrap; }
.segmented { display: flex; background: var(--surface-container); padding: 4px; border-radius: 999px; gap: 0; }
.segmented button { background: transparent; color: var(--muted-foreground); min-height: 32px; padding: 6px 16px; font-size: 14px; line-height: 1.45; border-radius: 999px; white-space: nowrap; }
.segmented button[aria-pressed=true] { background: var(--surface); color: var(--foreground); font-weight: 500; box-shadow: var(--shadow-hairline); }
.segmented b { color: var(--muted-foreground); font-weight: 400; margin-left: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.role-switch { display: none; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; scroll-margin-top: 80px; }
.portal-panel { min-width: 0; border: 1px solid var(--hairline); border-radius: 20px; background: var(--background); overflow: clip; }
.role-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-container-low); padding: 16px 24px; border-bottom: 1px solid var(--hairline); }
.role-heading h2 { font-size: 15px; font-weight: 500; }
.role-heading > span { font-size: 13px; color: var(--muted-foreground); }
.product-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 8px; min-height: 52px; }
.conference { color: var(--muted-foreground); font-size: 13px; }
.product-nav { display: flex; align-items: center; gap: 24px; min-height: 48px; padding: 0 24px; border-bottom: 1px solid var(--hairline); }
.product-nav button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 0; background: transparent; color: var(--muted-foreground); font-size: 13px; border-radius: 12px; white-space: nowrap; }
.product-nav button[aria-current] { font-weight: 500; color: var(--foreground); }
.product-nav b { font-weight: 400; color: var(--muted-foreground); font-size: 12px; font-variant-numeric: tabular-nums; }
.nav-hint { font-size: 13px; color: var(--muted-foreground); }
.panel-content { min-height: 680px; padding: 32px 24px; }
.greeting { margin-bottom: 10px; }
.greeting em { font-style: normal; background: var(--brand-gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > span { font-size: 13px; font-weight: 500; }
.field small { font-weight: 400; color: var(--muted-foreground); }
.field select, .field textarea, input[type=search] { width: 100%; min-width: 0; min-height: 40px; border: 0; border-radius: 12px; background: var(--surface); color: var(--foreground); padding: 8px 14px; font-size: 14px; line-height: 1.45; box-shadow: inset 0 0 0 1px var(--input); transition: box-shadow 150ms, background-color 150ms; }
.field select { cursor: pointer; padding-right: 28px; }
.field textarea { border-radius: 16px; padding: 10px 14px; resize: vertical; min-height: 64px; }
.field select:hover, .field textarea:hover, input[type=search]:hover { box-shadow: inset 0 0 0 1px var(--subtle-foreground); }
.field select:focus-visible, .field textarea:focus-visible, input[type=search]:focus-visible { outline: 4px solid color-mix(in oklch, var(--primary) 15%, transparent); box-shadow: inset 0 0 0 1.5px var(--primary); }
::placeholder { color: var(--muted-foreground); opacity: 1; }
.school-field { margin-top: 28px; padding: 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card); }
.section-title { font-size: 18px; font-weight: 600; margin: 28px 0 16px; }
.committee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.committee { padding: 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card); min-width: 0; }
.committee.selected { box-shadow: inset 0 0 0 1.5px var(--primary), var(--shadow-card); }
.committee h3 { font-size: 15px; font-weight: 500; line-height: 1.55; }
.committee .badge { margin-top: 8px; white-space: normal; }
.committee progress { appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 999px; background: var(--surface-container-high); overflow: hidden; margin-top: 20px; }
.committee progress::-webkit-progress-bar { background: var(--surface-container-high); }
.committee progress::-webkit-progress-value { background: color-mix(in oklch,var(--foreground) 80%,transparent); border-radius: 999px; }
.committee progress::-moz-progress-bar { background: color-mix(in oklch,var(--foreground) 80%,transparent); border-radius: 999px; }
.count-row { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 12px; }
.count-row > span { font-size: 13px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper output { min-width: 28px; text-align: center; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.quota { margin-top: 12px; font-size: 13px; color: var(--muted-foreground); line-height: 1.5; }
.notes-field { margin-top: 32px; }
.request-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--hairline); }
.total { font-size: 14px; color: var(--muted-foreground); }
.total b { color: var(--foreground); font-weight: 600; margin-left: 6px; font-size: 18px; font-variant-numeric: tabular-nums; }
.form-error { margin: 20px 0; background: var(--danger-container); color: var(--on-danger-container); border-radius: 20px; padding: 14px 20px; font-size: 14px; line-height: 1.55; }
.filter-tabs { margin-top: 28px; }
.filter-tabs button { flex: 1; }
.search-field { margin: 16px 0; }
.search-field input { border-radius: 999px; }
.queue-list { list-style: none; padding: 0; margin: 20px 0; overflow: hidden; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card); }
.queue-list li + li { border-top: 1px solid var(--hairline); }
.queue-row { width: 100%; text-align: left; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--card); transition: background-color 150ms; }
.queue-row:hover { background: var(--surface-container-low); }
.queue-row[aria-current] { background: var(--surface-container); }
.queue-row > span:first-child { min-width: 0; }
.queue-row strong { font-size: 15px; font-weight: 500; display: block; overflow-wrap: anywhere; }
.queue-row small { display: block; color: var(--muted-foreground); margin-top: 4px; font-size: 13px; line-height: 1.5; }
.status { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--muted-foreground); white-space: nowrap; padding-top: 2px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; flex-shrink: 0; background: var(--subtle-foreground); }
.status-dot.pending { background: var(--warning); }
.status-dot.fulfilled, .status-dot.success { background: var(--success); }
.queue-empty { margin: 24px 0; }
.detail { padding: 24px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-card); }
.detail-status { display: flex; align-items: center; gap: 8px; }
.detail h3 { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; margin: 16px 0 6px; }
.request-id { font-size: 13px; color: var(--muted-foreground); }
.detail dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin: 24px 0; }
.detail dt { font-size: 13px; color: var(--muted-foreground); margin-bottom: 6px; }
.detail dd { font-size: 15px; font-weight: 500; margin: 0; overflow-wrap: anywhere; }
.detail-note { padding: 12px 16px; background: var(--surface-container-low); border-radius: 12px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; margin-top: 16px; }
.detail-note strong { display: block; font-size: 12px; font-weight: 500; color: var(--muted-foreground); margin-bottom: 4px; }
.seats-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; font-size: 15px; font-weight: 600; }
.selection-count { font-size: 12px; font-weight: 500; color: var(--on-info-container); background: var(--info-container); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.seat-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; min-width: 0; padding: 0; margin: 0; border: 0; }
.seat-option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--input); background: var(--surface); font-size: 14px; cursor: pointer; }
.seat-option:hover { box-shadow: inset 0 0 0 1px var(--subtle-foreground); }
.seat-option:has(:checked) { background: var(--foreground); color: var(--background); box-shadow: none; }
.seat-option:has(:disabled:not(:checked)) { opacity: .45; cursor: not-allowed; }
.seat-option:has(:focus-visible) { outline: 3px solid color-mix(in oklch,var(--ring) 40%,transparent); outline-offset: 2px; }
.seat-option input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.seat-option span { overflow-wrap: anywhere; }
.reply-area { margin-top: 24px; font-size: 13px; color: var(--muted-foreground); }
.reply-area summary { cursor: pointer; padding: 8px 0; min-height: 40px; }
.reply-area .field { margin-top: 12px; color: var(--foreground); }
.decision-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 24px -24px -24px; border-top: 1px solid var(--hairline); padding: 16px 24px 20px; }
.empty-state { margin-top: 24px; padding: 64px 24px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card); text-align: center; }
.empty-state h3 { font-size: 18px; font-weight: 500; }
.empty-state p { color: var(--muted-foreground); max-width: 320px; margin: 12px auto 0; font-size: 14px; line-height: 1.55; }
.empty-state button { margin-top: 24px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.list-heading .greeting { margin: 0; }
.result-list { margin-top: 24px; overflow: hidden; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card); }
.result-card { padding: 20px; }
.result-card + .result-card { border-top: 1px solid var(--hairline); }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.result-head h3 { font-size: 15px; line-height: 1.55; font-weight: 500; }
.authored-note { margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; color: var(--muted-foreground); }
.seat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.seat-chips span { font-size: 13px; line-height: 1.4; background: var(--surface-container); color: var(--foreground); border-radius: 999px; padding: 4px 10px; }
.summary-card { margin-top: 24px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-card); padding: 20px; }
.summary-card strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.summary-card p { font-size: 13px; color: var(--muted-foreground); margin-top: 6px; }
.success-box { margin-top: 24px; background: var(--success-container); color: var(--on-success-container); border-radius: 20px; padding: 14px 20px; font-size: 14px; line-height: 1.55; }
.success-box p { margin-top: 6px; }
.success-box strong { font-weight: 500; }
.success-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.next-request { margin-top: 24px; }
.event-strip { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-card); padding: 14px 20px; margin-top: 24px; }
.event-strip p { flex: 1; font-size: 13px; color: var(--muted-foreground); line-height: 1.55; }
.event-strip b { font-size: 13px; font-weight: 400; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.mail-log { margin-top: 16px; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-card); }
.mail-item { padding: 20px 0; margin-top: 20px; border-top: 1px solid var(--hairline); }
.mail-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mail-heading strong { font-size: 15px; font-weight: 500; }
.mail-item small { display: block; font-size: 13px; color: var(--muted-foreground); line-height: 1.55; overflow-wrap: anywhere; }
.mail-item p { font-size: 14px; line-height: 1.55; margin: 12px 0; overflow-wrap: anywhere; }
.mail-empty { color: var(--muted-foreground); font-size: 14px; padding: 24px 0; }
/* Original globals.css --shadow-float, resolved here so this standalone popover always has real elevation. */
.coach { position: fixed; z-index: 90; isolation: isolate; width: 340px; max-width: calc(100vw - 24px); padding: 20px; border: 1px solid var(--hairline); border-radius: 20px; background: var(--popover); color: var(--foreground); opacity: 1; box-shadow: 0 0 0 1px oklch(0.25 0.02 260 / 0.06), 0 4px 12px -2px oklch(0.25 0.02 260 / 0.08), 0 16px 48px -12px oklch(0.25 0.04 262 / 0.22); }
.coach::before { content: ""; width: 10px; height: 10px; position: absolute; left: var(--arrow,24px); top: -5px; transform: rotate(45deg); background: var(--popover); box-shadow: -1px -1px 0 var(--hairline); }
.coach.above::before { top: auto; bottom: -5px; transform: rotate(225deg); }
.coach-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted-foreground); }
.coach-top button { margin: -8px -8px -4px 0; font-size: 22px; }
.coach h2 { font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -.014em; margin: 12px 0 8px; }
.coach p { font-size: 14px; line-height: 1.5; color: var(--muted-foreground); }
.coach > button { width: 100%; margin-top: 16px; }
.coach-target { outline: 2px solid var(--primary) !important; outline-offset: 4px; box-shadow: 0 0 0 6px color-mix(in oklch,var(--primary) 15%,transparent) !important; scroll-margin-top: 80px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; max-width: min(540px,calc(100vw - 32px)); width: max-content; padding: 14px 20px; border-radius: 20px; background: var(--popover); color: var(--foreground); box-shadow: var(--shadow-popover); font-size: 14px; line-height: 1.55; pointer-events: none; opacity: 0; transition: opacity 150ms; }
.toast.visible { opacity: 1; }
dialog { width: min(440px,calc(100% - 40px)); border: 0; border-radius: 20px; padding: 28px; background: var(--popover); color: var(--foreground); box-shadow: var(--shadow-popover); }
dialog::backdrop { background: oklch(.218 .0034 286 / .25); }
dialog h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
dialog p { font-size: 14px; line-height: 1.55; margin-top: 12px; color: var(--muted-foreground); }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
@media (min-width: 1550px) { .count-row { flex-direction: row; align-items: center; flex-wrap: wrap; } }
@media (max-width: 1100px) and (min-width: 861px) {
  main { padding: 32px 24px; }
  .workspace { gap: 24px; }
  .product-header .brand > span { display: none; }
  .panel-content { padding: 28px 20px; }
  .committee { padding: 16px; }
  .committee-grid { gap: 12px; }
  .product-nav { gap: 16px; padding: 0 20px; }
  .nav-hint { display: none; }
  .detail { padding: 20px; }
  .decision-actions { margin: 24px -20px -20px; padding: 16px 20px 20px; }
  .seats-label { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 860px) {
  .app-header-inner { padding: 4px 20px; min-height: 52px; }
  .app-header .brand > span { display: none; }
  main { padding: 40px 20px 96px; }
  .demo-toolbar { align-items: flex-start; flex-direction: column; gap: 16px; padding: 20px; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions > button { min-height: 44px; }
  .role-switch { display: flex; margin: 0 0 20px; }
  .role-switch button { flex: 1; min-height: 40px; }
  .workspace { display: block; }
  .portal-panel.mobile-hidden { display: none; }
  .panel-content { min-height: 500px; padding: 28px 20px; }
  .product-header { padding: 20px 20px 8px; }
  .product-header .brand > span { display: none; }
  .product-nav { padding: 0 20px; gap: 20px; }
  .product-nav button { min-height: 44px; }
  .role-heading { padding: 14px 20px; }
  .committee-grid { gap: 12px; }
  .committee { padding: 16px; }
  .committee h3 { min-height: 46px; }
  .count-row { flex-direction: column; }
  .field select, .field textarea, input[type=search] { font-size: 16px; }
  .stepper .icon-button { min-height: 40px; width: 36px; }
  .stepper output { min-width: 24px; }
  .event-strip { flex-wrap: wrap; padding: 16px 20px; }
  .event-strip p { flex-basis: calc(100% - 24px); font-size: 13px; }
  .event-strip button { margin-left: auto; }
  .primary, .outline, .danger, .ghost { min-height: 44px; }
  .detail { padding: 20px; }
  .decision-actions { margin: 24px -20px -20px; padding: 16px 20px 20px; }
  .decision-actions button { padding: 10px 16px; font-size: 13px; }
  .list-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 390px) {
  .app-header-inner { padding: 4px 16px; }
  .header-actions { gap: 8px; }
  .header-actions button { min-width: 72px; padding: 8px 16px; }
  main { padding: 40px 20px 96px; }
  .demo-toolbar { padding: 20px 16px; }
  .toolbar-actions { gap: 8px; }
  .toolbar-actions button { padding: 10px 14px; font-size: 13px; }
  .panel-content { padding: 24px 16px; }
  .product-header, .role-heading { padding-left: 16px; padding-right: 16px; }
  .product-nav { padding: 0 16px; gap: 16px; }
  .product-nav button { font-size: 12px; }
  .conference { font-size: 12px; }
  .committee-grid { grid-template-columns: 1fr; gap: 16px; }
  .committee { padding: 20px; }
  .committee h3 { min-height: auto; }
  .count-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .committee .badge { font-size: 12px; }
  .school-field { padding: 20px 16px; }
  .greeting { font-size: 24px; }
  .detail { padding: 20px 16px; }
  .detail h3 { font-size: 22px; }
  .detail dl { gap: 12px; }
  .seats-label { flex-wrap: wrap; }
  .seat-option { padding: 10px; gap: 8px; font-size: 13px; }
  .decision-actions { margin: 24px -16px -20px; padding: 16px; }
  .decision-actions button { padding: 10px 12px; }
  .request-footer { align-items: flex-start; flex-direction: column; }
  .request-footer .primary { width: 100%; }
  .mail-log { padding: 20px; }
}
@media (max-height: 650px) {
  .coach { padding: 16px; }
  .coach h2 { font-size: 16px; margin: 8px 0 6px; }
  .coach p { font-size: 13px; line-height: 1.45; }
  .coach > button { min-height: 36px; margin-top: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  button:active { transform: none !important; }
}
@media (forced-colors: active) {
  button, input, select, textarea, .committee, .detail, .result-list, .coach { border: 1px solid ButtonText; }
  .coach-target { outline: 2px solid Highlight !important; }
}

/* The native Meter changes to warning at 70% occupancy. These are status colors, not decorative accents. */
.committee progress[data-tone=warn]::-webkit-progress-value { background: var(--warning); }
.committee progress[data-tone=warn]::-moz-progress-bar { background: var(--warning); }
.committee progress[data-tone=full]::-webkit-progress-value { background: var(--danger); }
.committee progress[data-tone=full]::-moz-progress-bar { background: var(--danger); }

.icon-button svg { width: 16px; height: 16px; pointer-events: none; flex-shrink: 0; }

/* Native DashboardShell outer rhythm at desktop and wide desktop. */
@media (min-width: 861px) { main { padding-top: 56px; padding-bottom: 96px; } }
@media (min-width: 1280px) { main { padding-left: 56px; padding-right: 56px; } .app-header-inner { padding-left: 56px; padding-right: 56px; } }
