:root {
  --font: 'Readex Pro', system-ui, sans-serif;
  /* Type scale. 2xs is only for dense grid labels; running text starts at sm. */
  --text-2xs: 12px; --text-xs: 13px; --text-sm: 14px; --text-md: 15px; --text-base: 16px; --text-lg: 18px;
  --paper: #fbfcfa; --white: #fff; --ink: #202a35; --night: #183c35; --muted: #626f6b;
  --primary: #176b5b; --primary-hover: #105446; --primary-soft: #eaf4ef; --primary-ring: #176b5b33;
  --line: #e2e7e5; --line-strong: #cdd7d2; --accent: #dcece4; --soft: #f0f4f2;
  --success: #227259; --success-soft: #e9f5ef; --danger: #a33136;
  --radius: 12px; --card-radius: 16px;
  --shadow-xs: 0 1px 2px #20352b0d;
  --shadow-sm: 0 1px 2px #20352b0a, 0 2px 8px #20352b0a;
  --surface-shadow: 0 1px 2px #20352b0a, 0 12px 32px -8px #2048371a;
  --shadow-lg: 0 2px 4px #20352b03, 0 16px 48px -20px #20483726;
  --header-height: 76px;
  font-family: var(--font); color: var(--ink); background: var(--paper); font-synthesis: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; font-size: var(--text-base); line-height: 1.65; background: var(--paper); }
#main { flex: 1; }
[hidden] { display: none !important; }
button, input, select, textarea, code, summary { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { border: 0; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: inherit; text-underline-offset: 4px; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
::selection { color: var(--ink); background: var(--accent); }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; inset-inline-start: 16px; z-index: 100; background: var(--ink); color: white; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: var(--text-sm); font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary); }
[dir=rtl] .eyebrow { letter-spacing: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 22px; gap: 10px; border: 1px solid transparent; border-radius: var(--radius); background: var(--ink); color: white; font-size: var(--text-base); font-weight: 600; line-height: 1.4; text-decoration: none; transition: background .16s, border-color .16s, box-shadow .16s, transform .16s; }
.button:hover { background: var(--primary-hover); }
.button:active { transform: translateY(1px); }
.button-dark, .button-primary { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 1px 2px #2048374d, inset 0 1px 0 #ffffff26; }
.button-dark:hover, .button-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: 0 6px 16px -4px #176b5b66, inset 0 1px 0 #ffffff26; }
.button-secondary { background: var(--white); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.button-secondary:hover { background: var(--soft); border-color: #91afa2; }
.button-sm { min-height: 40px; padding: 7px 14px; gap: 7px; border-radius: 10px; font-size: var(--text-md); }
.button-sm > .icon { font-size: var(--text-base); }
.button > .icon { flex-shrink: 0; }
.text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: transparent; padding: 6px 0; color: var(--ink); font-size: var(--text-md); text-underline-offset: 4px; }
.text-button:hover { text-decoration: underline; }
.text-link { display: inline-flex; gap: 10px; align-items: center; font-size: var(--text-base); font-weight: 600; text-decoration: none; min-height: 44px; color: var(--primary); }
.text-link:hover { text-decoration: underline; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 10px; background: white; transition: background .16s, border-color .16s; }
.icon-button:hover { background: var(--soft); border-color: #91afa2; text-decoration: none; }
.button.icon-button { width: 48px; min-width: 48px; min-height: 48px; padding: 0; }
.button-primary.icon-button, .button-dark.icon-button { background: var(--primary); border-color: var(--primary); }
.button-primary.icon-button:hover, .button-dark.icon-button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

input, select, textarea { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; background: var(--white); color: var(--ink); font-size: var(--text-base); line-height: 1.5; box-shadow: var(--shadow-xs); transition: border-color .16s, box-shadow .16s; }
input, select { min-height: 50px; }
input:hover, select:hover, textarea:hover { border-color: #91a69d; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px var(--primary-ring); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { display: block; resize: vertical; }
label, legend { font-size: var(--text-base); font-weight: 500; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend { padding: 0; }
.field-help, .scroll-hint { font-size: var(--text-sm); color: var(--muted); line-height: 1.7; }
.submission-terms a { color: var(--primary); }
.slot-range { font-size: var(--text-base); line-height: 1.5; }
.form-error { color: var(--danger); background: #fcf1ef; border-inline-start: 3px solid #c8796e; border-radius: 6px; padding: 11px 13px; font-size: var(--text-md); margin-block: 10px; }
.noscript-note { padding: 16px; background: var(--primary-soft); color: var(--ink); border-radius: 10px; font-size: var(--text-md); margin-top: 18px; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 32px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -.8px; text-decoration: none; line-height: 1; }
.brand-mark { display: block; flex-shrink: 0; width: 34px; height: 34px; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.main-nav { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--text-base); font-weight: 500; text-decoration: none; padding: 9px 12px; border-radius: 9px; }
.main-nav .button > .icon { font-size: 18px; }
.main-nav a:hover, .main-nav a[aria-current=page] { color: var(--primary); background: var(--soft); }
.main-nav .nav-create-mobile { display: none; }
.main-nav a, .nav-create, .language-picker > summary { white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; border-radius: 9px; color: var(--muted); font-size: var(--text-md); font-weight: 500; text-decoration: none; }
.language-link:hover { color: var(--primary); background: var(--soft); }
.nav-create { min-height: 42px; padding: 9px 16px; font-size: var(--text-base); }
.nav-create, .nav-create-mobile { background: var(--ink); border-color: var(--ink); box-shadow: none; }
.nav-create:hover, .nav-create-mobile:hover { background: var(--primary); border-color: var(--primary); }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }

html.dialog-open { overflow: hidden; }
html.menu-open { overflow: hidden; }
html.menu-open body::after { content: ''; position: fixed; inset: 0; z-index: 15; background: #183c3599; }
.action-dialog { width: min(1200px, calc(100% - 40px)); max-width: none; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--card-radius); background: white; color: var(--ink); overflow: hidden; overscroll-behavior: contain; box-shadow: var(--shadow-lg); }
.action-dialog[open] { display: flex; flex-direction: column; }
.action-dialog { top: calc(var(--dialog-viewport-top, 0px) + var(--dialog-viewport-height, 100dvh) / 2); bottom: auto; transform: translateY(-50%); margin-block: 0; max-height: calc(var(--dialog-viewport-height, 100dvh) - 40px); }
.action-dialog::backdrop { background: #20352b73; backdrop-filter: blur(6px); }
.dialog-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; background: var(--white); border-bottom: 1px solid var(--line); }
.dialog-header > div, .dialog-header h2 { min-width: 0; overflow-wrap: anywhere; }
.dialog-header h2 { font-size: 22px; font-weight: 600; }
.dialog-header p { font-size: var(--text-md); color: var(--muted); margin-top: 5px; }
.dialog-close { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; flex-shrink: 0; border: 1px solid var(--line-strong); border-radius: 10px; background: white; }
.dialog-close:hover { background: var(--soft); }
.join-dialog { width: min(470px, calc(100% - 32px)); }
.join-dialog-content { min-height: 0; padding: 24px 28px 30px; overflow: auto; overscroll-behavior: contain; scroll-padding: 16px; }
#join-dialog-help { font-size: var(--text-base); color: var(--muted); line-height: 1.8; }
.join-form { display: grid; gap: 12px; margin-top: 24px; }
.join-form > .button { margin-top: 8px; }
.join-form .field-help { font-size: var(--text-sm); }
.join-form .form-error { margin: 0; }

.site-footer { color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner { padding-block: 42px 20px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px 64px; }
.footer-about { min-width: 0; max-width: 350px; }
.footer-brand { min-height: 44px; margin-bottom: 18px; font-size: 21px; }
.footer-links h2 { color: var(--ink); font-size: var(--text-md); font-weight: 600; line-height: 1.6; }
.footer-about p { margin-top: 0; font-size: var(--text-md); line-height: 1.9; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer-links h2 { margin-bottom: 9px; }
.footer-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; max-width: 100%; font-size: var(--text-md); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--text-xs); line-height: 1.8; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 30px); padding: 12px 20px; border: 1px solid #355c51; border-radius: 12px; background: var(--ink); color: white; font-size: var(--text-base); box-shadow: var(--shadow-lg); z-index: 50; text-align: center; }
.support-reference { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-block: 20px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); color: var(--ink); font-size: var(--text-md); font-weight: 400; line-height: 1.7; }
.support-reference-label { flex-basis: 100%; }
.support-reference a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px; color: var(--primary); }
.support-reference-inline { margin-block: 12px 0; }
.client-support-notice { padding-block: 18px; }
.error-page { max-width: 680px; padding: 36px; margin-block: 48px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--white); box-shadow: var(--surface-shadow); }
.error-page h1 { font-size: clamp(28px, 4vw, 34px); margin-block-end: 16px; }
.error-page p:not(.eyebrow) { color: var(--muted); max-width: 600px; margin-bottom: 24px; }

@media (max-width: 1180px) {
  :root { --header-height: 68px; }
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 12px; justify-content: space-between; }
  .nav-enhanced .menu-toggle { display: inline-grid; }
  .nav-enhanced:not(.menu-open) .main-nav { display: none; }
  .nav-enhanced .main-nav { position: absolute; top: calc(100% + 1px); inset-inline: -20px; margin: 0; padding: 12px 20px 20px; flex-direction: column; align-items: stretch; gap: 2px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--surface-shadow); }
  .main-nav a { min-height: 48px; padding: 10px 12px; font-size: var(--text-base); }
  .main-nav .nav-create-mobile { display: flex; justify-content: center; margin-top: 10px; color: white; }
  .main-nav .nav-create-mobile:hover { color: white; background: var(--primary-hover); }
  html:not(.nav-enhanced) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.nav-enhanced) .main-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 4px; }
  html:not(.nav-enhanced) .main-nav a { font-size: var(--text-md); min-height: 44px; }
  .footer-main { gap: 28px; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .nav-enhanced .main-nav { inset-inline: -16px; padding-inline: 16px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-create { display: none; }
  .header-actions { gap: 6px; }
  .language-link { padding-inline: 8px; }
  .footer-inner { padding-block: 30px 20px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .footer-about { grid-column: 1 / -1; max-width: 400px; }
  .footer-brand { margin-bottom: 12px; }
  .footer-bottom { margin-top: 22px; gap: 6px; flex-direction: column; align-items: flex-start; }
  .dialog-header { padding: 18px; gap: 13px; }
  .dialog-header h2 { font-size: 20px; }
  .join-dialog-content { padding: 22px 20px; }
  .error-page { padding: 26px 20px; margin-block: 28px; }
  .error-page h1 { font-size: 30px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 28px); }
  .brand { font-size: 18px; }
  .brand-mark { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.control-tooltip { position: fixed; z-index: 100; width: max-content; padding: 7px 10px; border: 1px solid #355c51; border-radius: 8px; background: var(--ink); color: white; font-size: var(--text-sm); line-height: 1.6; text-align: center; overflow-wrap: anywhere; box-shadow: var(--shadow-sm); }
.icons-unavailable .icon { display: none !important; }
.icons-unavailable :is(.icon-button, .calendar-nav, .dialog-close, .menu-toggle)[aria-label] { width: auto; height: auto; min-width: 44px; min-height: 44px; max-width: 100%; padding: 8px 12px; white-space: normal; overflow-wrap: anywhere; }
.icons-unavailable :is(.icon-button, .calendar-nav, .dialog-close, .menu-toggle)[aria-label]::after { content: attr(aria-label); font-family: var(--font); font-size: var(--text-sm); line-height: 1.6; }
.icons-unavailable .header-inner, .icons-unavailable .dialog-header { flex-wrap: wrap; }
.icons-unavailable .header-actions { flex-wrap: wrap; }
.icons-unavailable .dialog-close { margin-inline-start: auto; }
.icons-unavailable .calendar-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.icons-unavailable .calendar-toolbar > p { order: -1; flex-basis: 100%; text-align: center; }
.icons-unavailable .creator-grid-tools { flex-wrap: wrap; }
.icons-unavailable #poll-app .share-box > .icon-button { flex: 0 1 auto; }
.icons-unavailable #poll-app .suggestion-actions { flex-wrap: wrap; }
@media (max-width: 580px) {
  .icons-unavailable .header-inner { gap: 8px; padding-block: 12px; }
  .icons-unavailable .header-actions { flex: 1 0 100%; justify-content: space-between; }
}

.language-picker { position: relative; flex-shrink: 0; }
.language-picker > summary { display: flex; align-items: center; min-height: 44px; gap: 6px; padding: 8px; border-radius: 9px; color: var(--muted); font-size: var(--text-md); font-weight: 500; cursor: pointer; list-style: none; }
.language-picker > summary::-webkit-details-marker { display: none; }
.language-picker > summary::after { content: ''; width: 6px; height: 6px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.language-picker[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.language-picker > summary:hover { color: var(--primary); background: var(--soft); }
/* The globe marks the switcher for visitors who can't read the current language's name. */
.language-picker > summary > .icon { font-size: 18px; }
.language-options { position: absolute; z-index: 30; inset-inline-end: 0; top: calc(100% + 8px); display: flex; flex-direction: column; width: max-content; min-width: 164px; max-width: calc(100vw - 32px); padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm); }
.language-options a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: var(--text-base); text-decoration: none; }
.language-options a:hover { background: var(--soft); }
.language-options a[aria-current] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
html:lang(fr) .header-inner { gap: 20px; }
html:lang(zh) { --font: 'Readex Pro', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }
html:lang(zh) :is(h1, h2, h3, h4) { letter-spacing: 0; }
@media (max-width: 360px) {
  .language-picker > summary { padding-inline: 4px; font-size: var(--text-sm); }
}
@media (max-width: 340px) {
  .language-current { display: none; }
}
