:root {
  color-scheme: light;
  --ink: #142039;
  --body: #34425b;
  --muted: #596880;
  --line: #e1e7f0;
  --control: #ced7e5;
  --field-edge: #8594ac;
  --white: #fff;
  --nav: #f5f7fc;
  --blue: #1855e8;
  --blue-ink: #1646b4;
  --blue-wash: #eaf1ff;
  --green: #17603d;
  --green-wash: #e7f5ec;
  --orange: #855000;
  --orange-wash: #fff1db;
  --red: #a82236;
  --red-wash: #fdf0f2;
  --rail: 214px;
  --gutter: 34px;
  --radius: 8px;
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--white); }
a { color: var(--blue-ink); text-decoration: none; text-underline-offset: .2em; }
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: #d9e7ff; color: var(--ink); }
input { caret-color: var(--blue-ink); }
[hidden] { display: none !important; }
.symbol-library, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 4;
  inset: 12px auto auto 12px;
  padding: 8px 14px;
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
#announcement { inset: 0 auto auto 0; }
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  background: var(--nav);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 24px 12px 18px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); padding: 0 10px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--blue);
  border-radius: 9px;
}
.brand-name { font-weight: 700; white-space: nowrap; }
.brand-name small { font-size: .83em; }
.primary-nav, .secondary-nav { display: grid; gap: 6px; }
.primary-nav { margin-top: 29px; }
.secondary-nav { border-top: 1px solid var(--line); margin: 20px 10px 0; padding-top: 13px; }
.secondary-nav .nav-link { margin-inline: -10px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: var(--radius);
  color: var(--body);
  font-weight: 600;
}
a.nav-link:hover { background: #edf2fa; }
.nav-link[aria-current="page"] { color: var(--blue-ink); background: var(--blue-wash); font-weight: 700; }
.nav-muted { color: var(--muted); font-weight: 500; }
.sidebar-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: auto 9px 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  min-height: 62px;
}
.profile-text { min-width: 0; }
.profile-text strong, .profile-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-text small { color: var(--muted); margin-top: 2px; }
.account-logout { min-height: 32px; padding: 0 6px; margin-left: auto; flex-shrink: 0; }
.account-entry { background: var(--nav); }
.account-entry .sidebar { display: none; }
.account-entry main { margin-left: 0; padding-inline: 20px; }
.account-entry #view { display: grid; align-items: center; justify-items: center; padding-block: 32px; }
.account-panel {
  width: min(100%, 390px);
  padding: clamp(20px, 6vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.account-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.account-panel h1 { margin-block: 24px 18px; }
.account-panel form { display: grid; gap: 15px; }
.account-panel label { display: grid; gap: 5px; font-weight: 600; }
.account-panel small { color: var(--muted); font-weight: 400; }
.account-panel .field, .account-panel form .button { width: 100%; }
.account-error { color: var(--red); padding: 8px 10px; background: var(--red-wash); border-radius: var(--radius); }
.account-switch { margin-top: 13px; color: var(--blue-ink); border: 0; padding-inline: 0; }
@media (max-width: 760px) {
  .sidebar-profile.account-profile { flex-direction: column; }
  .account-logout { margin-left: 0; }
}

main { margin-left: var(--rail); padding-inline: var(--gutter); }
#view { max-width: 1480px; min-height: 100vh; margin-inline: auto; padding-bottom: 42px; }
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
}
.topline-title { display: flex; align-items: center; gap: 16px; font-weight: 700; }
.topline-title small { padding-left: 16px; border-left: 1px solid var(--line); color: var(--muted); font-weight: 400; }
.global-search { width: min(345px, 100%); }
.hero { padding: 22px 0 29px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; font-weight: 750; letter-spacing: -.025em; line-height: 1.26; overflow-wrap: anywhere; }
.hero h1 { font-size: 36px; line-height: 1.2; }
h2 { font-size: 17px; font-weight: 700; line-height: 1.4; }
h3 { font-size: 15px; font-weight: 700; }
.subtext { color: var(--muted); margin-top: 7px; max-width: 70ch; }
.action-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero .action-row { margin-top: 19px; }
.button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--control);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease;
}
.button .icon { width: 16px; height: 16px; }
.button:hover, .icon-button:hover { background: #f4f7fc; border-color: #b6c4d9; }
.button-primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.button-primary:hover { background: #1546c0; border-color: #1546c0; }
.button-soft { background: var(--blue-wash); color: var(--blue-ink); border-color: transparent; }
.button-soft:hover { background: #dce8ff; border-color: transparent; }
.button-danger { color: var(--red); border-color: #e5bdc6; background: var(--red-wash); }
.button-danger:hover { background: #f8e2e8; border-color: #e5bdc6; }
.button:disabled { background: var(--nav); color: var(--muted); border-color: var(--line); }
.icon-button { padding: 0; min-height: 38px; width: 38px; }
.text-link { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; font-weight: 650; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 13px; height: 13px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: var(--blue-ink);
  background: var(--blue-wash);
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ended, .pill.confirmed { background: var(--green-wash); color: var(--green); }
.pill.in_progress, .pill.pending { background: var(--orange-wash); color: var(--orange); }
.pill.cancelled { background: #edf1f7; color: #525e74; }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e5eeff;
  color: #244887;
  font-weight: 700;
  font-size: 13px;
}
.avatar.tone-1 { background: #f5ece1; color: #754a20; }
.avatar.tone-2 { background: #e5f3eb; color: #265b40; }
.avatar.tone-3 { background: #efe9f9; color: #624094; }
.avatar-extra { width: auto; min-width: 28px; padding: 0 4px; background: #edf1f7; color: var(--muted); }
.avatar-stack { display: flex; align-items: center; gap: 4px; }
.avatar-stack .avatar { width: 28px; height: 28px; font-size: 12px; }

.overview-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; padding: 11px 0 26px; }
.overview-grid > section + section { border-left: 1px solid var(--line); padding-left: 26px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h2 { display: flex; align-items: center; gap: 8px; }
.compact-list { display: grid; }
.compact-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 5px 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.compact-row:hover, .recent-row:hover, .meeting-row:hover { background: #f7f9fd; }
.tile-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--blue-wash); color: var(--blue-ink); }
.compact-row strong, .recent-row strong { display: block; overflow-wrap: anywhere; }
.workbench-question strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.workbench-question .meta { overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 13px; }
.tint-panel { padding: 18px; border-radius: 10px; background: var(--blue-wash); color: var(--blue-ink); }
.tint-panel h3 { color: var(--ink); margin-bottom: 4px; }
.recent-section { border-top: 1px solid var(--line); padding-top: 20px; }
.recent-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) 1fr .5fr auto 18px;
  align-items: center;
  gap: 16px;
  min-height: 59px;
  padding-inline: 5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.with-icon .icon { width: 16px; height: 16px; }
.time { font-variant-numeric: tabular-nums; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 30px 0 21px; }
.page-head .action-row { flex: 0 0 auto; max-width: 100%; padding-top: 2px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--body); font-weight: 650; }
.breadcrumb:hover { color: var(--blue-ink); }
.breadcrumb .icon { width: 16px; height: 16px; }
.breadcrumb + .page-head { padding-top: 16px; }
.catalog-toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); min-height: 55px; }
.tabs { display: flex; align-items: center; gap: 4px; }
.tab {
  display: inline-flex; align-items: center; min-height: 39px; padding-inline: 13px;
  color: var(--body); border-radius: 7px; white-space: nowrap; font-weight: 650;
}
.tab:hover { background: var(--nav); }
.tab[aria-current="page"] { background: var(--blue-wash); color: var(--blue-ink); }
.tools { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.catalog-toolbar .search { width: min(420px, 40vw); }
.search { display: flex; min-width: 0; gap: 5px; }
.search-field { position: relative; flex: 1 1 260px; min-width: 0; }
.search-field .icon { position: absolute; top: 11px; left: 11px; color: var(--muted); width: 16px; height: 16px; pointer-events: none; }
.field, .search-field input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--field-edge);
  border-radius: 7px;
  background: var(--white);
}
.field::placeholder, .search-field input::placeholder { color: var(--muted); }
.field:hover, .search-field input:hover { border-color: #6f819c; }
.search-field input { padding-left: 34px; min-height: 38px; }
.search-submit { min-height: 38px; }
.filter-disclosure { position: relative; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.filter-sheet {
  z-index: 2; position: absolute; right: 0; top: calc(100% + 8px);
  width: min(390px, calc(100vw - 30px)); display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 34px #18294720;
}
.filter-sheet label { display: grid; gap: 5px; }
.filter-sheet [role="alert"] { grid-column: 1 / -1; margin-top: 0; }
.filter-sheet .action-row { grid-column: 1 / -1; justify-content: flex-end; }
.date-group { margin-top: 17px; }
.date-group h2 { padding: 2px 3px 5px; font-size: 15px; }
.meeting-row {
  display: grid;
  grid-template-columns: minmax(160px, 2.2fr) minmax(90px, .9fr) minmax(90px, 1.05fr) 110px 16px;
  align-items: center; gap: 13px; color: var(--ink); border-bottom: 1px solid var(--line);
  padding: 9px 4px; min-height: 60px;
}
.meeting-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.meeting-main strong { display: block; overflow-wrap: anywhere; }
.meeting-main .tile-icon { background: var(--nav); color: var(--body); flex: 0 0 auto; }
.meeting-project { overflow-wrap: anywhere; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 21px; color: var(--muted); }
.pager .button { min-height: 36px; }
.empty-state {
  display: grid; justify-items: start; align-content: center; gap: 8px;
  min-height: 150px; padding: 18px 2px; color: var(--muted);
}
.empty-state strong { color: var(--ink); }
.empty-state .button { margin-top: 5px; }

.booking { max-width: 1050px; margin-top: 7px; }
.form-row { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; padding: 12px 0; align-items: start; }
.form-caption { padding-top: 8px; font-weight: 650; color: var(--ink); }
.required { color: var(--red); }
.form-content { display: grid; gap: 9px; min-width: 0; }
.time-fields { display: grid; grid-template-columns: minmax(165px, 1.2fr) minmax(115px, .8fr) minmax(130px, .8fr); gap: 11px; max-width: 655px; }
.time-fields label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.time-fields input { font-size: 14px; color: var(--ink); }
.duration-field { position: relative; }
.duration-field input { padding-right: 46px; }
.duration-unit { pointer-events: none; position: absolute; right: 24px; bottom: 9px; color: var(--muted); }
.mode-options { border: 0; margin: 0; padding: 0; display: grid; max-width: 655px; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.mode-choice { display: flex; align-items: center; gap: 9px; min-height: 44px; border: 1px solid var(--control); border-radius: var(--radius); padding: 7px 10px; cursor: pointer; }
.mode-choice:has(:checked) { background: var(--blue-wash); color: var(--blue-ink); border-color: var(--blue); font-weight: 650; }
.mode-choice:hover { border-color: var(--blue); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--blue); }
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.person-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px 4px 10px;
  color: var(--blue-ink); background: var(--blue-wash); font-size: 13px; border-radius: 99px;
}
.chip-remove { display: grid; place-items: center; color: inherit; background: none; border: 0; border-radius: 50%; padding: 3px; }
.chip-remove:hover { background: #d5e5ff; }
.chip-remove .icon { width: 12px; height: 12px; }
.people-picker summary { width: max-content; min-height: 36px; }
.people-panel { margin-top: 7px; max-width: 490px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; max-height: 190px; overflow: auto; }
.person-option { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 3px; }
.person-option small { color: var(--muted); }
.more-fields { margin-top: 14px; padding: 12px 0; border-block: 1px solid var(--line); }
.more-fields summary { display: flex; align-items: center; gap: 8px; min-height: 34px; font-weight: 650; width: max-content; }
.more-fields[open] summary .icon { transform: rotate(90deg); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 19px; }
.form-actions .button { min-width: 102px; }
.form-error { background: var(--red-wash); color: var(--red); border-radius: 7px; padding: 10px 13px; margin-top: 14px; }

.heading-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.meeting-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 11px; }
.detail-tabs { border-bottom: 1px solid var(--line); gap: 16px; }
.detail-tabs .tab { border-radius: 0; border-bottom: 2px solid transparent; padding-inline: 8px; min-height: 48px; }
.detail-tabs .tab[aria-current="page"] { background: transparent; border-color: var(--blue); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr); gap: 24px; padding-top: 22px; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.detail-columns > section + section { border-left: 1px solid var(--line); padding-left: 21px; }
.data-table { display: grid; gap: 3px; margin: 9px 0 0; }
.data-item { display: grid; grid-template-columns: minmax(72px, .7fr) minmax(0, 1fr); align-items: start; gap: 8px; padding-block: 5px; }
.data-item dt { color: var(--muted); }
.data-item dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.attendee-list { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.attendee-list li { display: grid; justify-items: center; gap: 4px; min-width: 48px; max-width: 86px; text-align: center; overflow-wrap: anywhere; font-size: 13px; }
.attendee-list .avatar { width: 39px; height: 39px; }
.attendee-profile { display: grid; justify-items: center; gap: 4px; max-width: 100%; color: var(--blue-ink); }
.attendee-profile:hover span:last-child { text-decoration: underline; }
.person-heading > div { min-width: 0; overflow-wrap: anywhere; }
.person-history-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 12px 0; }
.person-history-filters label { display: grid; gap: 4px; width: 144px; max-width: 100%; color: var(--muted); }
.person-history-filters .form-error { flex-basis: 100%; margin: 0; }
.detail-bottom { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.detail-bottom p { margin-top: 8px; }
.detail-tab-body { padding: 19px 0; }
.candidate-list { display: grid; gap: 12px; max-width: 760px; }
.candidate-list article { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.candidate-list blockquote { margin: 9px 0 0; padding-left: 11px; border-left: 1px solid var(--control); color: var(--body); }
.loading-state, .load-error { padding: 36px 3px; color: var(--muted); }
.skeleton { height: 16px; width: min(240px, 65%); margin-bottom: 15px; background: var(--blue-wash); border-radius: 4px; }
.load-error h1 { color: var(--ink); }
.load-error .action-row { margin-top: 16px; }

dialog { width: min(440px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); }
dialog::backdrop { background: #17243c66; }
dialog .action-row { justify-content: flex-end; margin-top: 18px; }
.invite-hint { margin: 0 0 12px; }
.invite-label { display: block; font-weight: 700; margin-bottom: 5px; }
.invite-text { display: block; width: 100%; resize: vertical; line-height: 1.55; }
.invite-status { min-height: 20px; margin: 7px 0 0; }

@media (max-width: 1080px) {
  :root { --gutter: 24px; --rail: 185px; }
  .tools .search-field { flex-basis: 205px; }
  .detail-columns { gap: 14px; }
  .detail-columns > section + section { padding-left: 14px; }
}
@media (max-width: 850px) {
  :root { --rail: 64px; --gutter: 18px; }
  .sidebar { padding-inline: 8px; }
  .brand { padding-inline: 8px; }
  .brand-name, .nav-link span, .profile-text { display: none; }
  .nav-link { justify-content: center; padding: 0; }
  .secondary-nav { margin-inline: 7px; }
  .secondary-nav .nav-link { margin-inline: -7px; }
  .sidebar-profile { margin-inline: 0; justify-content: center; }
  .meeting-row { grid-template-columns: minmax(150px, 1.8fr) 100px 105px 14px; }
  .meeting-project { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .overview-grid { gap: 18px; }
  .overview-grid > section + section { padding-left: 17px; }
}
@media (max-width: 620px) {
  :root { --rail: 51px; --gutter: 13px; }
  .sidebar { padding: 17px 5px 10px; }
  .brand { padding-inline: 4px; }
  .primary-nav { margin-top: 21px; }
  .topline { min-height: 58px; }
  .topline-title small, .global-search { display: none; }
  .hero h1 { font-size: 29px; }
  h1 { font-size: 25px; }
  .page-head, .catalog-toolbar { flex-wrap: wrap; }
  .page-head { padding-top: 23px; }
  .catalog-toolbar { justify-content: flex-start; padding-bottom: 9px; gap: 7px; }
  .catalog-toolbar .tools { width: 100%; justify-content: flex-start; }
  .catalog-toolbar .search { flex: 1; width: auto; }
  .catalog-toolbar .search-field input { padding-right: 4px; }
  .search-submit { padding: 0 7px; }
  .filter-sheet { width: min(340px, calc(100vw - 72px)); }
  .tabs { gap: 1px; }
  .tab { padding-inline: 8px; font-size: 13px; }
  .overview-grid, .detail-columns { grid-template-columns: 1fr; }
  .overview-grid > section + section, .detail-columns > section + section { border-left: 0; padding-left: 0; }
  .recent-row { grid-template-columns: minmax(0, 1fr) auto 12px; gap: 8px; padding-block: 7px; }
  .recent-row .recent-time { grid-column: 1; grid-row: 2; }
  .recent-row .recent-people { display: none; }
  .meeting-row { grid-template-columns: minmax(0, 1fr) auto 12px; gap: 7px; }
  .meeting-row .avatar-stack { display: none; }
  .meeting-main .tile-icon { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 4px; padding: 9px 0; }
  .form-caption { padding-top: 0; }
  .time-fields { grid-template-columns: minmax(116px, 1fr) minmax(80px, .8fr); }
  .duration-field { grid-column: 1 / -1; }
  .mode-options { grid-template-columns: 1fr; }
  .mode-choice { min-height: 40px; }
  .pager { flex-wrap: wrap; }
  .data-item dd { text-align: left; }
  .section-title { align-items: flex-start; }
}
@media (max-width: 440px) {
  .catalog-toolbar .tools { flex-wrap: wrap; position: relative; }
  .catalog-toolbar .search { flex-basis: 100%; }
  .filter-disclosure { position: static; }
  .filter-sheet { inset-inline: 0; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
