:root {
  color-scheme: light;
  --page: #f5f6fa;
  --surface: #fff;
  --ink: #1a2032;
  --muted: #5e687d;
  --line: #e5e8f0;
  --fine: #edf0f5;
  --accent: #4b45b8;
  --accent-faint: #f0effe;
  --busy: #303a8b;
  --busy-bg: #e5e8ff;
  --travel: #774717;
  --travel-bg: #fff4df;
  --travel-pattern: repeating-linear-gradient(135deg, #fff5e1 0 5px, #ffedcc 5px 8px);
  --now: #d25361;
  --name-width: 142px;
  font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner, main { width: min(calc(100% - 80px), 1360px); margin: 0 auto; }
.topbar-inner { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 680; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #4c46b7; color: white; }
.calendar-icon { width: 15px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.calendar-icon::before { content: ""; position: absolute; top: 3px; inset-inline: 0; border-top: 1.5px solid currentColor; }
.calendar-icon::after { content: ""; position: absolute; inset: -4px 2px auto; height: 5px; border-inline: 1.5px solid currentColor; }
.prototype { display: inline-flex; gap: 7px; align-items: center; padding: 5px 10px; border-radius: 6px; background: #f2f1fe; color: #514aa0; font-size: 12px; font-weight: 600; }
.prototype::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #766dc6; }
main { padding: 33px 0 38px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(29px, 3.5vw, 37px); line-height: 1.22; font-weight: 750; letter-spacing: -.035em; }
.subtitle { margin-top: 8px; color: var(--muted); }
.timezone { display: flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; font-size: 12px; padding-bottom: 2px; }
.clock-icon { width: 14px; height: 14px; position: relative; border: 1.5px solid currentColor; border-radius: 50%; }
.clock-icon::after { content: ""; position: absolute; width: 4px; height: 5px; left: 5px; top: 2px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 3px #19264708; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--fine); }
.toolbar-switches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.switch { flex: none; display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: #f0f1f6; }
.people-scope[hidden] { display: none; }
.switch button { border: 1px solid transparent; border-radius: 6px; background: none; padding: 6px 12px; white-space: nowrap; color: var(--muted); font-weight: 590; }
.switch button[aria-pressed="true"] { color: var(--accent); border-color: #e6e5f1; background: white; box-shadow: 0 1px 2px #22234715; }
.switch button:hover { color: var(--accent); }
.search { position: relative; width: min(235px, 45%); }
.search-icon { width: 12px; height: 12px; color: #727d94; border: 1.5px solid currentColor; border-radius: 50%; position: absolute; left: 12px; top: 11px; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: 5px; border-top: 1.5px solid currentColor; top: 9px; left: 7px; transform: rotate(45deg); }
.search input { width: 100%; height: 35px; border: 1px solid var(--line); border-radius: 7px; padding: 0 9px 0 33px; background: #fff; color: var(--ink); }
.search input::placeholder { color: #687389; }
.date-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px 11px; }
.date-title { font-size: 17px; font-weight: 710; letter-spacing: -.02em; }
.date-title small { font-size: 12px; color: var(--muted); font-weight: 540; margin-left: 7px; }
.date-actions { display: flex; align-items: center; gap: 5px; }
.ghost { height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #4e5870; padding: 0 9px; font-size: 12px; white-space: nowrap; }
.ghost:is(:hover, :focus-visible):not(:disabled) { background: var(--accent-faint); border-color: #dddaf7; color: var(--accent); }
.ghost:disabled { opacity: .43; }
.arrow { width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
.arrow.previous { transform: rotate(-135deg); margin: 0 0 0 2px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 0 18px 15px; }
.day { display: flex; justify-content: center; align-items: center; gap: 6px; min-width: 0; border: 1px solid var(--fine); border-radius: 7px; padding: 7px 1px; background: #f9fafc; color: var(--muted); font-size: 12px; white-space: nowrap; }
.day strong { font-size: 12px; font-variant-numeric: tabular-nums; color: #25304b; }
.day[aria-pressed="true"] { border-color: #d7d3f8; background: var(--accent-faint); color: var(--accent); }
.day[aria-pressed="true"] strong { color: var(--accent); }
.day:hover:not([aria-pressed="true"]) { background: #f2f3fa; border-color: #e1e3ee; }
.timeline-scroll { overflow: auto; scrollbar-color: #c7ccda #f1f3f8; container-type: inline-size; }
.timeline { position: relative; min-width: max(745px, calc(var(--name-width) + var(--hours) * 43px)); }
.axis, .schedule-row { display: grid; grid-template-columns: var(--name-width) minmax(0, 1fr); }
.axis { border-block: 1px solid var(--line); background: #fafbfe; }
.axis-name, .row-label { position: sticky; left: 0; z-index: 3; border-right: 1px solid var(--line); }
.axis-name { display: flex; align-items: center; gap: 7px; background: #fafbfe; padding: 0 14px; font-size: 12px; font-weight: 640; }
.axis-name span { color: var(--muted); font-size: 11px; font-weight: 500; }
.ticks { position: relative; height: 45px; }
.tick { position: absolute; top: 6px; transform: translateX(-50%); color: #657187; font-size: 11px; font-variant-numeric: tabular-nums; }
.tick:first-child { transform: translateX(8px); }
.tick:last-child { transform: translateX(calc(-100% - 6px)); }
.schedule-item { border-bottom: 1px solid var(--fine); }
.schedule-item:last-of-type { border-bottom: 0; }
.schedule-row { min-height: var(--row-height, 64px); }
.booking-summaries { position: sticky; left: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px; width: max-content; max-width: 100cqi; padding: 0 12px 8px; }
.booking-summary { display: flex; gap: 7px; align-items: baseline; min-width: 0; max-width: 100%; padding: 4px 8px; border: 1px solid #d8def9; border-radius: 6px; background: #f7f8ff; color: var(--busy); font-size: 12px; }
.booking-summary time { flex: none; font-variant-numeric: tabular-nums; }
.booking-summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.booking-summary:hover, .booking-summary[aria-pressed="true"] { background: var(--busy-bg); border-color: #aeb9f2; }
.row-label { display: flex; min-width: 0; background: #fff; }
.row-name { display: flex; flex: 1; align-items: center; gap: 9px; padding: 8px 5px 8px 13px; border: 0; background: transparent; text-align: left; min-width: 0; }
.row-name:hover { background: #f8f8ff; }
.selected .row-label { background: #f3f2ff; box-shadow: inset 3px 0 var(--accent); }
.row-follow { flex: none; margin: auto 4px auto 0; width: 27px; height: 29px; padding: 0; background: none; border: 0; border-radius: 6px; color: var(--muted); font-size: 19px; line-height: 1; }
.row-follow[aria-pressed="true"] { color: #966423; }
.row-follow:is(:hover, :focus-visible) { background: var(--accent-faint); }
.row-copy { display: block; min-width: 0; }
.row-copy strong { display: block; font-weight: 670; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-copy small { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; color: var(--muted); }
.row-copy small.travel-text { color: var(--travel); font-weight: 600; }
.avatar { display: grid; place-items: center; flex: none; width: 31px; height: 31px; border-radius: 8px; font-size: 13px; font-weight: 690; background: var(--avatar-bg, #ededfa); color: var(--avatar-ink, #5548a1); }
.avatar.room-avatar { background: #ecf0fd; color: #4e5c9b; }
.room-icon { width: 13px; height: 15px; border: 1.5px solid currentColor; border-radius: 2px 2px 0 0; position: relative; }
.room-icon::before { content: ""; position: absolute; top: 6px; right: 2px; width: 2px; height: 2px; background: currentColor; border-radius: 50%; }
.track { position: relative; min-width: 0; background-image: linear-gradient(90deg, transparent calc(100% - 1px), var(--fine) 0); background-size: calc(100% / var(--hours)) 100%; }
.selected .track { background-color: #fbfbff; }
.slot { position: absolute; left: var(--left); width: var(--width); min-width: 2px; top: var(--slot-top); height: var(--slot-height); border: 1px solid #cbd2ff; border-left: 3px solid #747ed8; border-radius: 5px; background: var(--busy-bg); color: var(--busy); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; padding: 0 6px; font-size: 11px; font-weight: 660; }
.slot:hover, .slot[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #6e76c5; }
.slot.travel { background: var(--travel-pattern); border-color: #ebcf9c; border-left-color: #c5883c; color: var(--travel); }
.slot.travel:hover, .slot.travel[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #c28a43; }
.slot.compact { padding: 0; border-left-width: 2px; }
.now-line { position: absolute; pointer-events: none; z-index: 2; top: 45px; bottom: 0; left: calc(var(--name-width) + (100% - var(--name-width)) * var(--now-position)); width: 1px; background: #df5a6a; }
.now-line b { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); background: #fce9ed; color: #94333f; border-radius: 4px; padding: 1px 5px; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.55; white-space: nowrap; }
.now-line::before { position: absolute; content: ""; top: -2px; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--now); }
.empty { min-height: 190px; display: grid; place-content: center; text-align: center; padding: 24px; }
.empty span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.board-footer { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 14px 18px; color: var(--muted); font-size: 12px; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 10px; background: var(--busy-bg); border: 1px solid #aeb9f2; border-radius: 3px; }
.swatch.trip { background: var(--travel-pattern); border-color: #e0b874; }
.swatch.time { background: var(--now); width: 2px; height: 11px; border: 0; }
.detail { overflow: hidden; }
.detail-heading { font-size: 15px; font-weight: 680; border-bottom: 1px solid var(--fine); padding: 15px 17px; }
.detail-content { padding: 17px; }
.detail-person { display: flex; align-items: center; gap: 11px; }
.detail-person .avatar { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
.detail-person h3 { font-size: 17px; font-weight: 710; }
.detail-person p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.follow-button { margin-left: auto; }
.follow-button[aria-pressed="true"] { background: var(--accent-faint); border-color: #dddaf7; color: var(--accent); }
.status-box { margin: 16px 0; padding: 11px; border: 1px solid #e0e4f3; background: #f5f6fb; border-radius: 9px; }
.status-box.travel-box { background: #fff8ea; border-color: #f0dcb6; color: var(--travel); }
.status-box.selected-status { border-color: #c28a43; }
.status-box strong { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.status-box strong::before { content: ""; background: #7983b0; width: 7px; height: 7px; border-radius: 50%; }
.status-box.travel-box strong::before { background: #c48837; }
.status-box p { font-size: 12px; margin-top: 5px; line-height: 1.55; }
.status-box .range { font-weight: 580; font-variant-numeric: tabular-nums; }
.detail-section { margin-top: 18px; }
.detail-section h3 { font-size: 13px; display: flex; align-items: center; justify-content: space-between; }
.detail-section h3 span { font-size: 11px; color: var(--muted); font-weight: 520; }
.booking-detail { border: 1px solid #d8def9; border-radius: 9px; padding: 11px; background: #fafaff; }
.booking-detail dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 9px; row-gap: 4px; margin: 9px 0; font-size: 12px; }
.booking-detail dt { color: var(--muted); }
.booking-detail dd { margin: 0; overflow-wrap: anywhere; }
.booking-detail h4 { margin: 10px 0 4px; font-size: 12px; }
.booking-detail p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.agenda { list-style: none; padding: 0; margin: 6px 0 0; }
.agenda li { display: flex; align-items: center; gap: 8px; padding: 9px 5px; font-size: 12px; border-bottom: 1px solid var(--fine); }
.agenda li:last-child { border-bottom: none; }
.agenda li.highlight { background: var(--accent-faint); border-radius: 5px; }
.agenda i { background: #7c86d8; border-radius: 3px; width: 7px; height: 7px; flex: none; }
.agenda span { color: #34405b; font-weight: 610; font-variant-numeric: tabular-nums; }
.agenda small { color: var(--muted); margin-left: auto; white-space: nowrap; }
.note { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.detail-empty { color: var(--muted); font-size: 13px; }
@media (max-width: 1160px) {
  .topbar-inner, main { width: calc(100% - 48px); }
  .workspace { grid-template-columns: minmax(0, 1fr) 255px; gap: 14px; }
  .occupancy-caption { display: none; }
}
@media (max-width: 980px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .detail-person { align-items: flex-start; }
}
@media (max-width: 580px) {
  :root { --name-width: 124px; }
  .topbar-inner, main { width: calc(100% - 24px); }
  .topbar-inner { min-height: 55px; }
  .mark { width: 29px; height: 29px; }
  main { padding-top: 22px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 17px; }
  .subtitle { margin-top: 6px; font-size: 13px; }
  .prototype { font-size: 11px; }
  .toolbar { padding: 11px 9px; gap: 8px; }
  .switch button { font-size: 12px; padding: 6px 7px; }
  .search { width: min(50%, 200px); }
  .search input { font-size: 12px; }
  .date-header { padding-inline: 10px; }
  .days { padding-inline: 9px; gap: 3px; padding-bottom: 11px; }
  .day { display: grid; gap: 0; font-size: 10px; padding-block: 5px; }
  .day strong { font-size: 11px; }
  .axis-name { padding-left: 10px; }
  .row-name { padding-inline: 7px 4px; gap: 5px; }
  .row-follow { width: 23px; margin-right: 3px; font-size: 17px; }
  .tick:first-child { transform: translateX(2px); }
  .slot { padding-inline: 3px; font-size: 10px; }
  .row-copy strong { font-size: 12px; }
  .row-copy small { font-size: 10px; }
  .row-name .avatar { width: 25px; height: 25px; font-size: 11px; }
  .timeline { min-width: max(690px, calc(var(--name-width) + var(--hours) * 39px)); }
  .board-footer { padding-inline: 11px; }
}

.source { display: flex; align-items: center; gap: 8px; }
.account-brand, .source a, .account-controls a { color: inherit; text-decoration: none; }
.account-card { max-width: 460px; margin: 30px auto; padding: 28px; }
.account-card h1, .account-admin h1 { font-size: 24px; }
.account-card p { color: var(--muted); margin: 8px 0 18px; }
.account-primary { display: inline-flex; border-radius: 7px; padding: 8px 14px; color: white; background: var(--accent); text-decoration: none; }
.account-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.account-admin { max-width: 880px; margin: 0 auto; padding: 23px; }
.account-saved { color: #326d60; margin-top: 8px; }
.member-list { margin: 15px 0 0; padding: 0; list-style: none; }
.member-list li { border-top: 1px solid var(--line); }
.member-form { display: grid; grid-template-columns: minmax(120px, 1fr) max-content max-content auto; align-items: center; gap: 12px; padding: 12px 0; }
.member-form label { display: flex; align-items: center; gap: 5px; }
.member-form input[type="checkbox"] { accent-color: var(--accent); }
.member-form small { display: block; color: var(--muted); }
@media (max-width: 650px) {
  .member-form { grid-template-columns: minmax(0, 1fr) auto; }
  .member-form div { grid-column: 1 / -1; }
  .member-form label { grid-column: 1; }
  .member-form button { grid-column: 2; grid-row: 3; }
  .source { flex-wrap: wrap; justify-content: flex-end; }
  html[data-allowed-modes] .source .prototype { display: none; }
}
.message { padding: 10px 18px; border-top: 1px solid var(--fine); background: #fff8e8; font-size: 12px; color: #714919; }
.row-copy small.uncertain { color: #774717; }
.status-box.warning-box { background: #fff8ea; border-color: #f0dcb6; color: var(--travel); }
.status-box.warning-box strong::before { background: #c48837; }
