/* Winter 2026: shared surfaces, navigation, and responsive app layouts. */
:root {
  --canvas: #f1f5f6;
  --surface: #ffffff;
  --surface-subtle: #eaf0f2;
  --text: #18292c;
  --muted: #5d7075;
  --line: #c7d5d9;
  --line-soft: #dce5e8;
  --blue: #176b5c;
  --blue-hover: #105346;
  --blue-tint: #e4f2ed;
  --green: #22785b;
  --forest: #205f55;
  --berry: #72618a;
  --red: #b13d50;
  --shadow: 0 12px 40px rgb(29 61 68 / 5%);
  --focus: rgb(39 125 119 / 23%);
  --accent-ink: #fff;
}
:root[data-theme="dark"] {
  --canvas: #111819;
  --surface: #192224;
  --surface-subtle: #222f32;
  --text: #e6eff0;
  --muted: #9fb2b7;
  --line: #42575b;
  --line-soft: #2c3e41;
  --blue: #9ddcca;
  --blue-hover: #b6ebdc;
  --blue-tint: #233f39;
  --green: #9ddcca;
  --forest: #245e54;
  --berry: #c3afd9;
  --red: #f29aa7;
  --shadow: 0 12px 40px rgb(0 0 0 / 12%);
  --accent-ink: #102922;
}
body { line-height: 1.55; }
a { text-underline-offset: 4px; }
button, .public-cta, .public-nav-button, .not-found-link { border-radius: 6px; }
button { min-height: 44px; }
button:hover:not(:disabled), :root[data-theme="dark"] button:hover:not(:disabled) { background: var(--surface-subtle); }
.primary-button, :root[data-theme="dark"] .primary-button { color: var(--accent-ink); background: var(--blue); }
.primary-button:hover:not(:disabled), :root[data-theme="dark"] .primary-button:hover:not(:disabled) { color: var(--accent-ink); background: var(--blue-hover); }
.secondary-button { border-color: var(--line); background: transparent; }
.secondary-button:hover:not(:disabled) { border-color: var(--muted); }
.ghost-button { background: transparent; }
.ghost-button:hover:not(:disabled) { background: var(--blue-tint); }
input, select, textarea { border-color: var(--line); background: var(--surface); border-radius: 6px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--focus); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible,
.theme-options input:focus-visible + span { outline: 3px solid var(--focus); }
.brand-lockup::after, .eyebrow::before, .guide-pill::before { content: none; }
.brand-lockup { font-size: 17px; gap: 10px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand-lockup:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 7px; background: var(--forest); color: #fff; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; margin-bottom: 8px; }
.site-header, .public-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: min(1160px, calc(100% - 64px)); min-height: 82px; margin: 0 auto;
  border-bottom: 1px solid var(--line-soft);
}
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.season-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.season-label::before { content: ""; width: 16px; height: 16px; background: currentColor; mask: url('assets/icons/snowflake.svg') center / contain no-repeat; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; width: 100%; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; }
.app-version { margin: 18px 0; font-size: 10px; color: var(--muted); }
.auth-page { display: flex; flex-direction: column; align-items: center; padding: 0 0 32px; min-height: 100dvh; }
.auth-shell, .pick-shell { width: min(460px, calc(100% - 40px)); margin: 48px auto 0; }
.pick-shell { width: min(600px, calc(100% - 40px)); }
.panel { box-shadow: none; border-color: var(--line-soft); }
.auth-card { position: relative; gap: 24px; padding: 32px; border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 28px; margin: 0; font-weight: 650; line-height: 1.2; }
.auth-card .title-row h1 { font-size: 27px; }
.auth-card > .brand-lockup { display: none; }
.auth-copy { margin: -12px 0 0; font-size: 14px; }
.auth-form-title { margin: 0; font-size: 15px; }
.auth-card .form-error:empty { display: none; }
.auth-switch { padding-top: 4px; }
.login-shell { margin-top: 28px; }
.login-heading { text-align: center; padding: 4px 12px 26px; }
.login-heading h1 { font-size: 32px; margin-bottom: 8px; }
.login-heading p { max-width: 370px; margin: 0 auto; font-size: 14px; color: var(--muted); }
.login-card { overflow: hidden; }
.season-photo { width: calc(100% + 64px); height: 108px; margin: -32px -32px 0; object-fit: cover; object-position: 50% 46%; display: block; }
.login-card h2 { font-size: 23px; }
.public-intro { margin-top: 24px; padding: 0 6px; font-size: 13px; }
.public-intro h2 { font-size: 16px; }
.public-intro .public-links { gap: 16px; padding-top: 6px; }
.status-badge { border: 0; background: var(--blue-tint); color: var(--blue); font-size: 11px; min-height: 26px; }
.status-badge.error, :root[data-theme="dark"] .status-badge.error { background: var(--surface-subtle); color: var(--red); }
.account-row { border-top: 0; margin: -8px 0 0; padding: 0 0 18px; }
.account-row > span { font-size: 13px; }
.account-row button { border: 0; color: var(--muted); padding-right: 0; }
.choice-panel { grid-template-columns: 1fr 1fr; gap: 12px; }
.big-choice { min-height: 96px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px; font-size: 15px; }
.big-choice::before { content: ""; width: 22px; height: 22px; background: currentColor; mask: url('assets/icons/plus.svg') center / contain no-repeat; }
#goJoinButton::before { mask-image: url('assets/icons/arrow-right.svg'); }
.guide-panel { padding-top: 20px; gap: 12px; }
.guide-list { padding-left: 19px; font-size: 13px; }
.guide-list li + li { margin-top: 10px; }
.guide-pill { border-radius: 4px; background: var(--surface-subtle); color: var(--muted); }
.guide-note { color: var(--muted); }
.create-layout { grid-template-columns: 1fr; gap: 0; }
.share-panel, :root[data-theme="dark"] .share-panel { padding: 0; border: 0; background: transparent; }
.share-grid > div { background: var(--surface-subtle); border: 0; }
.share-grid strong, #joinWordInput, #joinPasswordInput, #generatedWordInput, #generatedPasswordInput { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.qr-invite { border: 0; padding: 16px; background: transparent; }
.qr-invite > div { box-sizing: content-box; padding: 12px; width: 180px; height: 180px; background: #f3f0e6; }
.refresh-button { font-size: 0; }
.refresh-button::before { content: ""; display: inline-block; width: 18px; height: 18px; background: var(--blue); mask: url('assets/icons/refresh-cw.svg') center / contain no-repeat; }
.chat-shell { width: min(1400px, calc(100% - 48px)); height: calc(100dvh - 148px); min-height: 590px; grid-template-columns: 264px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 20px; gap: 0 24px; margin: 24px auto 0; }
.chat-shell .setup-panel { border: 0; border-right: 1px solid var(--line-soft); border-radius: 0; background: transparent; padding: 16px 24px 16px 0; gap: 22px; overflow-y: auto; }
.setup-panel .title-row { flex-wrap: wrap; gap: 8px; }
.setup-panel h1 { font-size: 20px; }
.setup-panel .account-row { padding-bottom: 16px; margin: 0; }
.people-heading h2 { font-size: 12px; font-weight: 650; }
.people-count { background: var(--surface-subtle); color: var(--muted); }
.active-user-list { gap: 14px; }
.active-user { grid-template-columns: 8px minmax(0, 1fr); gap: 2px 9px; }
.active-user-dot { grid-row: span 2; align-self: start; margin-top: 6px; }
.active-user strong { font-weight: 550; }
.active-user-status { grid-column: 2; font-size: 11px; }
.room-note, :root[data-theme="dark"] .room-note { padding: 18px 0; border: 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; font-size: 12px; gap: 10px; }
.room-note strong { max-width: 60%; font-size: 12px; }
.voice-panel { border: 0; border-radius: 0; padding: 0; background: transparent; }
.voice-status { font-size: 12px; }
.voice-actions { gap: 5px; }
.voice-actions .compact-button { padding: 0 10px; min-height: 34px; font-size: 11px; }
.room-actions { order: 5; margin-top: auto; }
.leave-room-button { display: flex; align-items: center; justify-content: center; gap: 8px; border-color: var(--line-soft); }
.leave-room-button::before { content: ""; width: 16px; height: 16px; background: currentColor; mask: url('assets/icons/log-out.svg') center / contain no-repeat; }
.leave-room-button span { display: none; }
.chat-panel { min-height: 0; grid-template-rows: auto minmax(0, 1fr) 26px auto auto; border-radius: 8px; box-shadow: var(--shadow); }
.chat-header, :root[data-theme="dark"] .chat-header { padding: 18px 24px; background: var(--surface); gap: 16px; }
.chat-header > div:first-child { flex: 1; min-width: 0; }
.chat-header h2 { font-size: 18px; }
.chat-header .eyebrow { margin-bottom: 3px; font-size: 10px; }
.chat-stats { font-size: 11px; max-width: 160px; }
.chat-stats span { max-width: 100%; }
.header-actions { flex: 0 0 auto; gap: 6px; }
.settings-button, .settings-close, .report-button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; font-size: 0; border: 0; background: transparent; }
.settings-button::before, .settings-close::before, .report-button::before { content: ""; width: 18px; height: 18px; background: currentColor; mask: url('assets/icons/settings-2.svg') center / contain no-repeat; }
.settings-close::before { mask-image: url('assets/icons/x.svg'); }
.report-button, :root[data-theme="dark"] .report-button { color: var(--red); background: transparent; }
.report-button::before { mask-image: url('assets/icons/message-circle-warning.svg'); }
.messages { padding: 24px; gap: 16px; }
.empty-note { font-size: 13px; max-width: 240px; }
.empty-note::before { content: ""; display: block; width: 32px; height: 32px; margin: 0 auto 14px; background: var(--line); mask: url('assets/icons/snowflake.svg') center / contain no-repeat; }
.message { padding: 11px 14px; background: var(--surface-subtle); border: 0; width: fit-content; min-width: 120px; max-width: 76%; }
:root[data-theme="dark"] .message:not(.mine) { background: var(--surface-subtle); }
.message.mine { background: var(--forest); }
.message-meta { font-size: 11px; gap: 16px; margin-bottom: 5px; flex-wrap: wrap; }
.message-meta time { font-size: 10px; }
.message-seen { font-size: 10px; }
.message.system, :root[data-theme="dark"] .message.system { background: transparent; color: var(--muted); font-size: 11px; margin: 2px 0; }
.message.retraced, :root[data-theme="dark"] .message.retraced { background: var(--surface-subtle); color: var(--muted); }
.message.retraced .message-meta time { color: var(--muted); }
.unsend-button { opacity: .75; font-size: 10px; min-height: 24px; }
.typing-indicator { padding: 0 24px; color: var(--muted); }
.composer-tools { padding: 12px 20px 0; gap: 3px; }
.composer-tools .secondary-button { border: 0; background: transparent; cursor: pointer; }
.emoji-button, .file-button { width: 34px; min-width: 34px; min-height: 32px; padding: 0; }
.file-button { font-size: 0; }
.file-button::before { content: ""; display: block; width: 18px; height: 18px; background: var(--muted); mask: url('assets/icons/paperclip.svg') center / contain no-repeat; }
.message-form { padding: 8px 24px 20px; gap: 10px; }
.message-form input { background: var(--surface-subtle); border-color: transparent; }
.send-button { min-width: 82px; font-size: 13px; }
.message-form.has-text .send-button { animation: none; box-shadow: 0 0 0 3px var(--focus); }
.message-form.is-sending .send-button { animation: send-pulse 700ms ease-in-out infinite alternate; }
.chat-shell > .app-version { margin: 10px 0 0; }
.settings-dialog { border-radius: 8px; max-height: calc(100dvh - 32px); }
.settings-form { padding: 28px; gap: 24px; }
.settings-heading h2 { font-size: 23px; }
.settings-heading .eyebrow { font-size: 10px; }
.theme-options input { min-height: 1px; padding: 0; }
.danger-button, :root[data-theme="dark"] .danger-button, .report-submit-button { background: transparent; color: var(--red); border: 1px solid var(--line); font-size: 13px; }
.danger-button:hover:not(:disabled), .report-submit-button:hover:not(:disabled), :root[data-theme="dark"] .danger-button:hover:not(:disabled) { background: var(--surface-subtle); }
.settings-form .danger-button { margin-top: 4px; }
.loading-screen { background: var(--canvas); }
.button-loading-screen, :root[data-theme="dark"] .button-loading-screen { background: var(--canvas); }
.loading-mark { border-radius: 8px; }
.public-page { display: block; }
.public-shell { width: min(1160px, calc(100% - 64px)); padding: 0 0 40px; margin: auto; }
.public-header { width: 100%; }
.public-nav-button { border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; }
.public-hero { max-width: 100%; margin: 0; padding: 50px 0 36px; }
.public-hero h1 { font-size: 44px; line-height: 1.12; margin: 0 0 16px; font-weight: 600; }
.public-lede { font-size: 16px; max-width: 560px; margin: 0; }
.public-hero .eyebrow { margin-bottom: 14px; }
.public-cta { margin-top: 24px; color: var(--accent-ink); border-radius: 6px; font-size: 13px; }
.public-section { margin: 0; padding: 36px 0; border-top: 1px solid var(--line-soft); }
.public-section h2 { font-size: 24px; }
.public-callout { border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; background: transparent; }
.seo-grid { gap: 24px; }
.seo-grid article { border: 0; border-radius: 0; padding: 0; background: transparent; }
.seo-grid article + article { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.faq-list { gap: 0; margin-top: 4px; }
.faq-list details { background: transparent; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; padding: 22px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-list summary { font-size: 16px; font-weight: 550; }
.public-backlink { margin-top: 30px; line-height: 1.8; gap: 6px; }
.release-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 50px; align-items: start; }
.release-index { position: sticky; top: 24px; display: grid; gap: 14px; font-size: 13px; padding-top: 28px; }
.release-index span { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.release-index a { color: var(--muted); }
.release-index a:first-of-type { color: var(--blue); font-weight: 650; }
.update-list { gap: 0; margin: 0; }
.update-entry { padding: 30px 0; border: 0; border-top: 1px solid var(--line-soft); background: transparent; scroll-margin-top: 24px; }
.update-entry time { font-size: 11px; font-weight: 500; }
.update-entry h2 { margin: 10px 0 12px; font-size: 24px; line-height: 1.25; font-weight: 600; }
.update-entry p { font-size: 14px; line-height: 1.7; }
.release-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.release-tag { font-size: 10px; font-weight: 650; color: var(--blue); background: var(--blue-tint); border-radius: 4px; padding: 3px 8px; }
.release-version { color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.winter-photo { display: block; width: 100%; height: 230px; object-fit: cover; object-position: 50% 45%; margin: 22px 0; border-radius: 6px; }
.release-points { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.release-points li { padding-left: 18px; position: relative; }
.release-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.release-points strong { color: var(--text); font-weight: 550; }
.winter-strip { height: 180px; margin: 0 0 32px; }
@media (min-width: 1600px) { .chat-shell { height: calc(100dvh - 160px); } }
@media (max-width: 900px) {
  .site-header, .public-shell { width: calc(100% - 40px); }
  .public-header { width: 100%; }
  .chat-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 0 16px; width: calc(100% - 32px); }
  .chat-shell .setup-panel { padding-right: 16px; }
  .chat-stats { display: none; }
  .release-layout { grid-template-columns: 140px minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 680px) {
  .site-header, .public-header { min-height: 68px; gap: 12px; }
  .site-nav { gap: 14px; font-size: 12px; }
  .season-label { font-size: 0; gap: 0; }
  .brand-lockup { font-size: 15px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; font-size: 12px; }
  .auth-shell, .pick-shell { margin-top: 28px; }
  .auth-card { padding: 24px; gap: 22px; }
  .auth-card h1, .auth-card .title-row h1 { font-size: 25px; }
  .season-photo { width: calc(100% + 48px); margin: -24px -24px 0; height: 100px; }
  .login-heading h1 { font-size: 28px; }
  .login-heading p { font-size: 13px; }
  .chat-shell { display: flex; flex-direction: column; height: auto; min-height: 0; width: calc(100% - 24px); margin-top: 12px; gap: 12px; }
  .chat-shell .setup-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 8px 8px 16px; border: 0; overflow: visible; }
  .setup-panel .title-row { grid-column: 1 / -1; align-items: center; }
  .setup-panel .title-row .eyebrow { display: none; }
  .setup-panel .account-row { grid-column: 1 / -1; margin: 0; padding: 0 0 10px; }
  .setup-panel .room-note { grid-column: 2; grid-row: 3; padding: 0 0 0 14px; border: 0; border-left: 1px solid var(--line-soft); font-size: 11px; align-self: start; }
  .room-note p { flex-wrap: wrap; gap: 1px 6px; }
  .room-note strong { max-width: 100%; text-align: left; font-size: 11px; }
  .setup-panel .voice-panel { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 10px; }
  .setup-panel .room-actions { grid-column: 1 / -1; margin: 0; }
  .setup-panel #roomError:empty { display: none; }
  .people-heading h2 { font-size: 12px; }
  .active-user-list { gap: 10px; }
  .chat-panel { height: 70dvh; min-height: 440px; grid-template-rows: auto minmax(0, 1fr) 26px auto auto; }
  .chat-header { padding: 14px 16px; }
  .messages { padding: 18px 16px; }
  .message { max-width: 90%; }
  .typing-indicator { padding: 0 16px; }
  .composer-tools { padding: 10px 12px 0; }
  .message-form { padding: 8px 16px 16px; }
  .settings-form { padding: 22px; }
  .public-hero { padding: 32px 0 28px; }
  .public-hero h1, .compact-hero h1 { font-size: 32px; }
  .public-lede { font-size: 14px; }
  .release-layout { grid-template-columns: 1fr; gap: 10px; }
  .release-index { position: static; display: flex; align-items: center; gap: 18px; padding: 0 0 14px; }
  .release-index span { display: none; }
  .update-entry { padding: 24px 0; }
  .update-entry h2 { font-size: 22px; }
  .winter-photo { height: 180px; }
  .seo-grid { grid-template-columns: 1fr; }
  .seo-grid article + article { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 380px) {
  .site-header, .public-header { flex-wrap: wrap; padding: 14px 0; }
  .site-nav { width: 100%; justify-content: space-between; }
  .season-label { font-size: 10px; gap: 4px; }
  .choice-panel { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
