:root {
  --primary: #4f46e5;
  --primary-dark: #3932a8;
  --text: #18213a;
  --muted: #667089;
  --border: #e4e7ef;
  --surface: #fff;
  --background: #f6f7fb;
  --green: #158375;
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #a69fff; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: 18px; line-height: 1.5; }
p { line-height: 1.75; }
.topbar { max-width: 1600px; margin: auto; padding: 24px 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.language-menu { position: relative; flex-shrink: 0; }
.language-menu summary { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: white; font-size: 12px; list-style: none; white-space: nowrap; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu[open] summary { border-color: var(--primary); }
.language-menu form { position: absolute; right: 0; top: calc(100% + 7px); z-index: 20; width: 185px; display: grid; gap: 3px; padding: 6px; background: white; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px #18213a18; }
.language-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 6px; background: white; color: var(--text); font-size: 13px; text-align: left; }
.language-menu button:hover, .language-menu button[aria-current="true"] { background: #f1f0fe; color: var(--primary); }
.language-menu button[aria-current="true"]::after { content: "✓"; margin-left: auto; }
#language-status { max-width: 1600px; margin: 0 auto; padding: 0 40px 8px; color: var(--muted); font-size: 12px; text-align: right; }
#language-status:empty { display: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: -.8px; }
.brand-mark { display: grid; place-items: center; position: relative; width: 38px; height: 38px; border-radius: 12px; color: white; background: var(--primary); font-size: 20px; }
.brand-mark span { position: absolute; right: 4px; top: 1px; font-size: 13px; }
.brand-plus { color: var(--primary); font-weight: 500; }
.quiet-link { color: var(--muted); font-size: 13px; }
.quiet-link:hover, .footer a:hover { color: var(--primary); }
main { max-width: 1600px; margin: auto; padding: 12px 40px 40px; }
.footer { max-width: 1600px; margin: auto; padding: 22px 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.card { border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 24px; }
.eyebrow { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; color: var(--primary); margin-bottom: 14px; }
.create-layout { display: grid; grid-template-columns: 1fr minmax(380px, 490px); align-items: center; gap: 9%; max-width: 1120px; margin: 38px auto 60px; }
.intro h1 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -2px; line-height: 1.4; margin-bottom: 22px; }
.accent { color: var(--primary); }
.intro-copy { color: var(--muted); font-size: 15px; line-height: 1.9; }
.steps { display: grid; gap: 20px; margin: 32px 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 16px; }
.steps li > span { color: var(--primary); background: #ecebff; border-radius: 10px; padding: 9px 11px; font-size: 11px; font-weight: 800; }
.steps strong { font-size: 14px; }
.steps p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.intro-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.tiny-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.create-form { padding: 32px; box-shadow: 0 12px 48px #222a4b06; }
form { display: grid; gap: 20px; }
.form-heading h2 { font-size: 23px; margin: 0; }
.form-heading .eyebrow { margin-bottom: 9px; }
label { display: grid; gap: 9px; font-size: 13px; font-weight: 600; min-width: 0; }
input, select { width: 100%; min-width: 0; border: 1px solid #d9ddea; border-radius: 8px; padding: 11px 12px; background: white; color: var(--text); font-size: 14px; }
input::placeholder { color: #8b92a5; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
legend { font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row label { font-size: 11px; color: var(--muted); }
small, .small { display: block; font-size: 12px; font-weight: 400; line-height: 1.7; color: var(--muted); }
fieldset small { margin-top: 9px; }
.timezone-note { background: #f2f1ff; border-radius: 8px; padding: 10px 12px; margin: 0; color: #57527e; font-size: 12px; }
.timezone-card { margin-bottom: 20px; }
.timezone-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.device-timezone-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0; }
.timezone-card > .small { margin: 10px 0 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; border: 1px solid transparent; padding: 11px 16px; border-radius: 8px; font-size: 13px; font-weight: 650; line-height: 1.5; }
.primary { background: var(--primary); color: white; }
.primary:hover { background: var(--primary-dark); }
.secondary { border-color: var(--border); color: var(--text); background: white; }
.secondary:hover { background: #f5f4ff; border-color: #cbc7ff; }
.full { width: 100%; }
.text-button { border: 0; background: transparent; padding: 6px 0; color: var(--primary); font-size: 12px; text-align: left; }
.danger, .error { color: #b42338; }
.message { margin: 0; font-size: 12px; line-height: 1.6; }
.message:not(:empty) { margin-top: 10px; }
.event-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding: 20px 0 26px; }
.event-heading .eyebrow { margin-bottom: 10px; }
.event-heading h1 { margin: 0 0 8px; font-size: 28px; overflow-wrap: anywhere; }
.event-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.share-tools { display: grid; grid-template-columns: minmax(100px, 260px) auto; gap: 6px 8px; align-items: center; max-width: 100%; }
.share-tools input { font-size: 11px; background: #fafbff; }
.share-tools .small { grid-column: 1 / -1; min-height: 20px; }
.event-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 22px; }
.event-sidebar, .schedule-area { min-width: 0; }
.event-sidebar { display: grid; align-content: start; gap: 18px; }
.identity-card, .roster-card { padding: 20px; }
.identity-card h2 { font-size: 16px; overflow-wrap: anywhere; }
.identity-tabs { display: flex; border-radius: 8px; background: #f2f3f8; padding: 4px; margin-bottom: 18px; }
.identity-tabs button { flex: 1; padding: 8px 4px; font-size: 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.identity-tabs .is-active { color: var(--primary); background: white; box-shadow: 0 1px 5px #11152c08; }
.identity-card form { gap: 14px; }
.identity-card input { font-size: 13px; }
.profile-settings { margin-top: 16px; font-size: 12px; }
.profile-settings summary { color: var(--muted); }
.profile-settings form { margin-top: 16px; }
.profile-settings .danger { margin-top: 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 16px; }
.pill { border-radius: 6px; padding: 4px 8px; background: #f1f0fe; color: var(--primary); font-size: 11px; white-space: nowrap; }
.roster { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.roster li { display: flex; gap: 10px; align-items: center; min-width: 0; }
.roster strong { font-size: 12px; overflow-wrap: anywhere; }
.roster .small { font-size: 10px; }
.avatar { flex: 0 0 32px; height: 32px; display: grid; place-items: center; background: #eceaff; border-radius: 50%; color: var(--primary); font-size: 11px; }
.privacy-note { padding: 0 8px; font-size: 11px; }
.qr-card { padding: 18px 20px; font-size: 12px; }
.qr-card h2 { margin: 0; font-size: 16px; }
.qr-card img { display: block; margin: 16px auto; max-width: 100%; }
.qr-card p { margin-bottom: 0; text-align: center; }
.best-card { margin-bottom: 20px; border-left: 3px solid var(--primary); }
.best-card .section-heading { flex-wrap: wrap; }
.best-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.best-slot { border: 1px solid #d9d5ff; border-radius: 8px; background: #f7f6ff; color: var(--primary-dark); padding: 9px 12px; font-size: 12px; }
.best-slot:hover { background: #edebff; }
.best-card p { margin: 12px 0 0; }
.availability-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.availability-column { min-width: 0; padding: 20px 16px; }
.availability-column .section-heading { margin-bottom: 4px; }
.availability-column .section-heading .small { font-size: 10px; }
.save-line, .sync-line { min-height: 40px; margin: 4px 0 8px; }
.save-line .small, .sync-line { font-size: 11px; }
.save-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.availability-scroll { overflow: auto; max-height: 620px; padding: 3px 3px 12px; overscroll-behavior: contain; }
.availability-grid { display: grid; gap: 3px; user-select: none; min-width: 0; }
.grid-day { display: grid; gap: 5px; place-items: center; padding: 9px 2px; background: white; font-size: 11px; position: sticky; top: 0; z-index: 2; }
.grid-day span { color: var(--muted); font-size: 10px; }
.grid-time { display: flex; justify-content: flex-end; align-items: center; padding-right: 5px; font-size: 10px; color: var(--muted); min-height: 32px; background: white; position: sticky; left: 0; z-index: 1; }
.grid-time.is-repeated { flex-direction: column; align-items: flex-end; justify-content: center; color: var(--primary); }
.grid-time small { font-size: 9px; color: inherit; }
.time-gap { min-height: 32px; border-radius: 4px; background: repeating-linear-gradient(135deg, #fafbfc, #fafbfc 4px, #e8ebf1 4px, #e8ebf1 5px); }
.time-cell { min-height: 32px; border: 1px solid #e5e9f2; border-radius: 4px; padding: 0; background: #f0f2f7; font-size: 10px; color: #234d46; }
.time-cell.is-selected { background: var(--green); border-color: var(--green); }
.time-cell:focus-visible { outline-offset: -3px; }
.group-cell:hover, .group-cell.is-focused { outline: 2px solid var(--primary); outline-offset: -2px; }
.heat-0 { background: #f0f2f7; }
.heat-1 { background: #e1f2ee; }
.heat-2 { background: #bbded4; }
.heat-3 { background: #8cc7b7; }
.heat-4 { background: #4e9b87; color: #fff; }
.heat-5 { background: #247460; color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0; color: var(--muted); font-size: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; }
.swatch { display: inline-block; width: 12px; height: 12px; border: 1px solid #dae0e8; border-radius: 3px; background: #f0f2f7; }
.swatch.selected { background: var(--green); border-color: var(--green); }
.swatch.heat-1 { background: #e1f2ee; }
.swatch.heat-3 { background: #8cc7b7; }
.swatch.heat-5 { background: #247460; }
.slot-detail { margin-top: 16px; padding: 14px; border-radius: 8px; background: #f7f8fc; font-size: 12px; line-height: 1.8; }
.slot-detail p { margin: 6px 0 0; color: var(--muted); }
.slot-detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; overflow-wrap: anywhere; }
.slot-detail-cols span { display: block; color: var(--green); font-size: 11px; }
.prose { max-width: 740px; margin: 28px auto 60px; padding: 36px; }
.prose h1 { font-size: 30px; }
.prose h2 { margin-top: 28px; }
.prose p { color: var(--muted); font-size: 14px; }
.product-content { max-width: 1120px; margin: 0 auto 60px; display: grid; gap: 48px; }
.product-content > section > h2 { font-size: 26px; }
.product-content p { color: var(--muted); font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.feature-grid h3 { font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.feature-grid p { margin: 0; }
.product-steps { padding-left: 22px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.product-steps li + li { margin-top: 12px; }
.product-steps strong { color: var(--text); }
.product-faq { margin: 0; font-size: 14px; line-height: 1.8; }
.product-faq dt { margin-top: 22px; font-weight: 700; }
.product-faq dd { margin: 6px 0 0; color: var(--muted); }
.product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; font-size: 13px; }
.product-content a:not(.button), .product-page a:not(.button) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.product-page { max-width: 860px; }
.product-page h1 { font-size: clamp(28px, 3.7vw, 42px); line-height: 1.3; letter-spacing: -.7px; }
.product-page .product-lead { font-size: 16px; }
.error-page { margin: 80px auto; }
.notice { padding: 16px; text-align: center; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; background: white; padding: 12px; z-index: 10; }
@media (max-width: 1250px) {
  .availability-stage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .topbar { padding: 18px 20px; }
  #language-status { padding-right: 20px; padding-left: 20px; }
  main { padding: 8px 20px 30px; }
  .footer { padding: 20px; }
  .create-layout { grid-template-columns: 1fr; gap: 32px; margin: 24px auto; max-width: 500px; }
  .intro h1 { font-size: 38px; }
  .steps { display: none; }
  .intro-note { margin-top: 20px; }
  .product-content { max-width: 500px; gap: 32px; margin-top: 48px; }
  .product-content > section > h2 { font-size: 23px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .event-layout { grid-template-columns: minmax(0, 1fr); }
  .event-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .privacy-note { grid-column: 1 / -1; margin-bottom: 0; }
  .share-tools { width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 480px) {
  .topbar { gap: 10px; flex-wrap: wrap; }
  .topbar-actions { margin-left: auto; flex-direction: column-reverse; align-items: flex-end; gap: 6px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 32px; height: 32px; font-size: 17px; border-radius: 10px; }
  .quiet-link { font-size: 11px; }
  main { padding-left: 12px; padding-right: 12px; }
  .create-form { padding: 24px 20px; }
  .event-sidebar { grid-template-columns: minmax(0, 1fr); }
  .roster { grid-template-columns: 1fr 1fr; }
  .event-heading h1 { font-size: 24px; }
  .best-card { padding: 20px 16px; }
  .availability-column { padding: 18px 12px; }
  .prose { padding: 24px; }
}
