@font-face {
  font-family:Inter;
  src:local('Inter');
  font-display:swap;
}

:root {
  color-scheme:light;
  --ink:#20332f;
  --muted:#63756b;
  --line:#e4eae7;
  --surface:#fff;
  --paper:#f6f8f7;
  --accent:#14796a;
  --accent-hover:#0d6255;
  --accent-soft:#eaf5f0;
  --danger:#b53e3e;
  --teal:#14796a;
  --blue:#4b77b1;
  --purple:#8a6ab3;
  --green:#608549;
  --orange:#ba7b36;
  --rose:#b56f82;
  --slate:#6f8393;
  --hour:72px;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Inter,'Microsoft YaHei','PingFang SC',sans-serif;
  font-size:14px;
  line-height:1.6;
}

button,input,select,textarea {
  font:inherit;
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
  touch-action:manipulation;
}

button:disabled {
  cursor:wait;
  opacity:.55;
}

a {
  color:inherit;
  text-decoration:none;
}

button {
  color:inherit;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #45a990;
  outline-offset:3px;
}

[hidden] {
  display:none!important;
}

h1,h2,h3,p {
  margin:0;
}

h1 {
  font-size:30px;
  line-height:1.35;
  letter-spacing:-1px;
  font-weight:650;
}

h2 {
  font-size:20px;
  font-weight:650;
}

h3 {
  font-size:16px;
  font-weight:650;
}

input,select,textarea {
  width:100%;
  min-height:44px;
  border:1px solid #dbe3df;
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  padding:10px 12px;
  transition:border-color .18s;
}

input:hover,select:hover,textarea:hover {
  border-color:#aabeb4;
}

input::placeholder,textarea::placeholder {
  color:#6a7c70;
}

input[type=checkbox] {
  width:16px;
  height:16px;
  min-height:16px;
  accent-color:var(--accent);
  flex-shrink:0;
}

textarea {
  resize:vertical;
  line-height:1.75;
}

small {
  font-size:12px;
}

.subtle {
  color:var(--muted);
  font-size:12px;
}

.skip-link {
  position:fixed;
  top:12px;
  left:12px;
  z-index:100;
  background:var(--ink);
  color:#fff;
  padding:8px 16px;
  transform:translateY(-200%);
}

.skip-link:focus {
  transform:none;
}

.app-shell {
  display:flex;
  min-height:100vh;
}

.sidebar {
  width:236px;
  position:fixed;
  inset:0 auto 0 0;
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border-right:1px solid var(--line);
  z-index:12;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  padding:29px 24px 28px;
}

.brand strong {
  font-size:19px;
  letter-spacing:.5px;
  display:block;
}

.brand small {
  color:var(--muted);
  display:block;
  margin-top:2px;
  font-size:11px;
}

.brand-mark {
  width:32px;
  height:34px;
  display:flex;
  gap:4px;
  align-items:center;
  transform:skewY(-12deg);
}

.brand-mark i {
  display:block;
  width:7px;
  border-radius:2px;
  background:var(--accent);
  height:23px;
}

.brand-mark i:nth-child(2) {
  height:34px;
  background:#5ca68d;
}

.brand-mark i:nth-child(3) {
  height:28px;
  background:#a2c9b7;
}

.main-nav {
  padding:0 16px 23px;
  display:flex;
  flex-direction:column;
  gap:6px;
  border-bottom:1px solid var(--line);
}

.nav-item {
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  border:0;
  background:transparent;
  text-align:left;
  border-radius:8px;
  padding:11px 15px;
  color:#61716a;
  font-weight:550;
}

.nav-item.active {
  background:var(--accent-soft);
  color:var(--accent);
}

.nav-item:hover {
  background:#f1f5f2;
}

.nav-count {
  margin-left:auto;
  min-width:22px;
  border-radius:5px;
  background:#e9eeeb;
  text-align:center;
  font-size:11px;
}

.active .nav-count {
  background:#d2e9dd;
}

.icon {
  display:inline-block;
  width:18px;
  height:18px;
  flex-shrink:0;
}

.calendar-icon {
  border:1.7px solid currentColor;
  border-radius:3px;
  position:relative;
}

.calendar-icon:before {
  content:'';
  position:absolute;
  top:4px;
  left:0;
  right:0;
  border-top:1.5px solid currentColor;
}

.calendar-icon:after {
  content:'';
  position:absolute;
  top:8px;
  left:4px;
  width:3px;
  height:3px;
  background:currentColor;
  box-shadow:5px 0 currentColor,0 4px currentColor;
}

.clock-icon {
  border:1.7px solid currentColor;
  border-radius:50%;
  position:relative;
}

.clock-icon:after {
  content:'';
  position:absolute;
  left:7px;
  top:3px;
  width:4px;
  height:6px;
  border-left:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
}

.sidebar-content {
  padding:20px 20px 15px;
  overflow-y:auto;
  flex:1;
}

.mini-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  margin-bottom:13px;
}

.mini-head>div {
  display:flex;
}

.icon-button {
  min-width:38px;
  min-height:38px;
  padding:4px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:var(--muted);
  border-radius:7px;
  font-size:23px;
  line-height:1;
}

.icon-button:hover {
  background:#eef3ef;
  color:var(--ink);
}

.mini-head .icon-button {
  min-width:27px;
  min-height:32px;
  font-size:19px;
}

.mini-week,.mini-days {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  text-align:center;
  gap:3px;
}

.mini-week {
  color:#6a7c70;
  font-size:10px;
  margin-bottom:7px;
}

.mini-days button {
  background:transparent;
  border:0;
  min-height:25px;
  border-radius:50%;
  font-size:11px;
  padding:1px;
}

.mini-days button.other-month {
  color:#b4bfb7;
}

.mini-days button.today {
  box-shadow:inset 0 0 0 1px #91bdaa;
  color:var(--accent);
}

.mini-days button.selected {
  background:var(--accent);
  color:white;
}

.mini-days button:hover {
  background:#e5f0e9;
  color:var(--accent);
}

.room-filters {
  margin-top:28px;
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.section-heading h2 {
  font-size:12px;
  color:var(--muted);
  letter-spacing:1px;
}

.text-button {
  min-height:36px;
  padding:5px 2px;
  border:0;
  background:transparent;
  color:var(--accent);
  font-size:12px;
}

.text-button:hover {
  color:var(--accent-hover);
  text-decoration:underline;
}

.room-filter {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:39px;
  font-size:12px;
  cursor:pointer;
}

.room-filter .room-dot {
  margin-left:2px;
}

.room-filter .capacity {
  color:#6a7c70;
  font-size:11px;
  margin-left:auto;
}

.room-dot {
  height:8px;
  width:8px;
  border-radius:3px;
  display:inline-block;
  flex-shrink:0;
  background:var(--room-color);
}

[data-color=teal] {
  --room-color:var(--teal);
  --room-bg:#edf7f3;
  --room-text:#2b6658;
}

[data-color=blue] {
  --room-color:var(--blue);
  --room-bg:#eef3fa;
  --room-text:#41638d;
}

[data-color=purple] {
  --room-color:var(--purple);
  --room-bg:#f3eff9;
  --room-text:#735793;
}

[data-color=green] {
  --room-color:var(--green);
  --room-bg:#f1f5ec;
  --room-text:#557443;
}

[data-color=orange] {
  --room-color:var(--orange);
  --room-bg:#fbf4e9;
  --room-text:#956430;
}

[data-color=rose] {
  --room-color:var(--rose);
  --room-bg:#faf0f3;
  --room-text:#96576a;
}

[data-color=slate] {
  --room-color:var(--slate);
  --room-bg:#f0f4f6;
  --room-text:#586d7d;
}

.office-note {
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:23px;
  display:flex;
  gap:11px;
  color:var(--muted);
  font-size:11px;
}

.office-note small {
  display:block;
  color:#6a7c70;
  font-size:10px;
  margin-top:3px;
}

.location-pin {
  margin:4px 2px 0;
  width:12px;
  height:15px;
  border:1.5px solid #829d8d;
  border-radius:8px 8px 9px 9px;
  position:relative;
}

.location-pin:after {
  content:'';
  position:absolute;
  width:3px;
  height:3px;
  border:1px solid #829d8d;
  border-radius:50%;
  top:3px;
  left:3px;
}

.sidebar-footer {
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:10px;
  padding:17px 20px;
}

.avatar {
  height:34px;
  width:34px;
  background:#e8efe4;
  border:1px solid #dbe6d5;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:13px;
  color:#6a7c50;
}

.sidebar-footer strong {
  font-size:12px;
  font-weight:550;
}

.sidebar-footer small {
  display:block;
  font-size:10px;
  color:#6a7c70;
}

.sidebar-footer .icon-button {
  margin-left:auto;
  font-size:19px;
  min-width:28px;
}

.main-content {
  width:calc(100% - 236px);
  margin-left:236px;
  min-width:0;
}

.topbar {
  height:68px;
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:0 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.breadcrumb {
  font-size:11px;
  color:#6a7c70;
}

.breadcrumb span {
  margin:0 11px;
  color:#c1c9c4;
}

.topbar-right {
  display:flex;
  gap:12px;
  align-items:center;
}

.connection-status {
  font-size:11px;
  color:var(--muted);
  display:flex;
  gap:7px;
  align-items:center;
}

.connection-status i {
  width:6px;
  height:6px;
  background:#99aaa0;
  border-radius:50%;
}

.connection-status.online i {
  background:#5c9d7a;
  box-shadow:0 0 0 3px #edf5ef;
}

.connection-status.error i {
  background:var(--danger);
}

.mobile-brand {
  display:none;
  font-weight:650;
}

.page-content {
  padding:30px 32px 28px;
  max-width:1900px;
  margin:auto;
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:29px;
  gap:18px;
}

.eyebrow {
  font-size:10px;
  font-weight:550;
  letter-spacing:1.4px;
  color:#6a7c70;
  margin-bottom:7px;
}

.page-description {
  color:var(--muted);
  font-size:12px;
  margin-top:9px;
}

.primary-button,.secondary-button,.danger-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:42px;
  padding:10px 18px;
  border-radius:8px;
  border:1px solid transparent;
  font-size:13px;
  font-weight:550;
  white-space:nowrap;
  transition:background .18s,box-shadow .18s;
}

.primary-button {
  background:var(--accent);
  color:white;
  box-shadow:0 2px 3px #14796a10;
}

.primary-button:hover {
  background:var(--accent-hover);
  box-shadow:0 3px 8px #14796a22;
}

.secondary-button {
  border-color:var(--line);
  background:white;
}

.secondary-button:hover {
  background:#f4f7f4;
  border-color:#becdc3;
}

.danger-button {
  background:var(--danger);
  color:#fff;
}

.danger-button:hover {
  background:#9a3030;
}

.plus-icon {
  position:relative;
  width:14px;
  height:14px;
  display:inline-block;
}

.plus-icon:before,.plus-icon:after {
  content:'';
  position:absolute;
  background:currentColor;
  left:0;
  right:0;
  top:6px;
  height:1.5px;
}

.plus-icon:after {
  transform:rotate(90deg);
}

.calendar-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:18px;
}

.date-navigation,.calendar-options,.date-arrows {
  display:flex;
  align-items:center;
  gap:10px;
}

.date-navigation .secondary-button {
  min-height:36px;
  padding:6px 15px;
}

.date-arrows {
  gap:0;
}

.date-arrows .icon-button {
  min-height:36px;
  min-width:30px;
  font-size:21px;
}

.date-display {
  position:relative;
  font-weight:550;
  font-size:17px;
  cursor:pointer;
}

.date-display input {
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
  width:100%;
  min-height:20px;
}

.segmented {
  display:inline-flex;
  gap:3px;
  background:#eaf0ec;
  border-radius:8px;
  padding:4px;
}

.segmented button {
  background:transparent;
  border:0;
  min-height:31px;
  min-width:48px;
  padding:5px 16px;
  border-radius:5px;
  color:#728078;
  font-size:12px;
}

.segmented button.selected {
  background:#fff;
  box-shadow:0 1px 4px #263f2810;
  color:var(--ink);
  font-weight:550;
}

.calendar-options select {
  width:145px;
  font-size:12px;
  min-height:36px;
  padding:6px 9px;
}

.filter-button {
  display:none;
}

.calendar-card {
  border:1px solid #dfe7e1;
  border-radius:12px;
  background:white;
  overflow:hidden;
  box-shadow:0 3px 15px #1e392903;
}

.calendar-legend {
  display:flex;
  align-items:center;
  gap:21px;
  min-height:47px;
  border-bottom:1px solid var(--line);
  padding:7px 20px;
  font-size:10px;
  color:var(--muted);
}

.calendar-legend>span {
  display:flex;
  align-items:center;
  gap:7px;
}

.legend-dot {
  width:8px;
  height:8px;
  border-radius:2px;
  display:inline-block;
}

.mine-dot {
  background:var(--accent);
}

.busy-dot {
  background:#c0d0c6;
}

.calendar-legend .calendar-hint {
  margin-left:auto;
  color:#6a7c70;
}

.calendar-legend .text-button {
  font-size:10px;
  min-height:27px;
}

.calendar-scroll {
  height:calc(100vh - 366px);
  min-height:400px;
  max-height:950px;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#cfdbd3 transparent;
  overscroll-behavior:contain;
}

.calendar-grid {
  min-width:0;
  position:relative;
}

.timeline-header {
  display:grid;
  position:sticky;
  top:0;
  background:#fff;
  z-index:7;
  border-bottom:1px solid var(--line);
  min-height:65px;
}

.timeline-corner {
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:9px;
  color:#a4afa7;
  position:sticky;
  left:0;
  z-index:8;
  border-right:1px solid var(--line);
}

.column-heading {
  border-right:1px solid var(--line);
  padding:11px 8px;
  text-align:center;
}

.column-heading:last-child {
  border:0;
}

.column-heading strong {
  display:flex;
  justify-content:center;
  gap:7px;
  align-items:center;
  font-size:13px;
  font-weight:550;
  white-space:nowrap;
}

.column-heading small {
  font-size:10px;
  color:#6a7c70;
  display:block;
  margin-top:3px;
}

.column-heading.current-day strong {
  color:var(--accent);
}

.timeline-body {
  display:grid;
  position:relative;
}

.time-column {
  background:#fff;
  position:sticky;
  left:0;
  z-index:5;
  border-right:1px solid var(--line);
}

.hour-label {
  height:var(--hour);
  position:relative;
  font-size:10px;
  color:#6a7c70;
  text-align:center;
  line-height:1;
  padding-top:5px;
  font-variant-numeric:tabular-nums;
}

.day-column {
  position:relative;
  border-right:1px solid var(--line);
  background:repeating-linear-gradient(to bottom,transparent 0,transparent 35px,#eff2ef 35px,#eff2ef 36px,transparent 36px,transparent 71px,#e6ebe6 71px,#e6ebe6 72px);
}

.day-column:last-child {
  border-right:0;
}

.time-slot {
  display:block;
  height:36px;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  text-align:left;
  border-radius:0;
}

.time-slot:hover {
  background:#eaf5efaa;
  box-shadow:inset 0 0 0 1px #bbd6c6;
}

.time-slot:hover:after {
  content:'+';
  color:#709e87;
  display:grid;
  place-items:center;
  font-size:19px;
  height:100%;
}

.time-slot:disabled:hover {
  background:transparent;
  box-shadow:none;
}

.time-slot:disabled:hover:after {
  display:none;
}

.calendar-event {
  position:absolute;
  left:5px;
  right:5px;
  padding:7px 9px;
  border:0;
  border-left:3px solid var(--room-color);
  border-radius:5px;
  background:var(--room-bg);
  color:var(--room-text);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  z-index:3;
  overflow:hidden;
  font-size:11px;
  line-height:1.6;
  transition:filter .18s;
  box-shadow:0 1px 1px #19342102;
}

.calendar-event:hover {
  filter:brightness(.97);
}

.calendar-event .event-time {
  font-size:11px;
  font-weight:550;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

.calendar-event .event-title {
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  width:100%;
  font-size:11px;
  font-weight:550;
}

.calendar-event .event-creator {
  display:block;
  width:100%;
  margin-top:2px;
  font-size:10px;
  line-height:1.3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.calendar-event.mine {
  background:#dff1e8;
  border-color:var(--accent);
  color:#175f50;
}

.mine-tag {
  font-size:8px;
  font-weight:550;
  margin-left:4px;
  border:1px solid #9ccdb6;
  border-radius:3px;
  padding:0 3px;
}

.calendar-event.compact {
  padding:1px 5px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-rows:12px minmax(0,1fr);
  column-gap:4px;
  align-items:start;
  font-size:9px;
}

.calendar-event.compact .event-time {
  grid-column:1;
  grid-row:1;
  font-size:9px;
  line-height:12px;
}

.calendar-event.compact .event-title {
  grid-column:1 / -1;
  grid-row:2;
  margin:0;
  line-height:1.2;
}

.calendar-event.compact .event-creator {
  grid-column:2;
  grid-row:1;
  margin:0;
  font-size:9px;
  line-height:12px;
  text-align:right;
}

.calendar-event.compact .creator-label {
  display:none;
}

.calendar-event.compact .mine-tag {
  display:none;
}

.current-time {
  position:absolute;
  left:0;
  right:0;
  z-index:4;
  border-top:1px solid #d28670;
  pointer-events:none;
}

.current-time:before {
  content:'';
  position:absolute;
  top:-3px;
  left:-2px;
  height:5px;
  width:5px;
  border-radius:50%;
  background:#d28670;
}

.unavailable-column {
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(135deg,#f7f8f6,#f7f8f6 6px,#eff2ee 6px,#eff2ee 7px);
  z-index:1;
  display:flex;
  justify-content:center;
  padding:25px 8px;
  text-align:center;
  font-size:11px;
  color:var(--muted);
  pointer-events:none;
}

.calendar-footer {
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  padding:10px 18px;
  font-size:10px;
  color:#6a7c70;
  gap:12px;
}

.calendar-loading {
  min-height:400px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:13px;
}

.calendar-scroll[aria-busy=true] .calendar-grid {
  opacity:.55;
  pointer-events:none;
}

.calendar-scroll[aria-busy=true] {
  background:#f8faf8;
}

.empty-state {
  text-align:center;
  padding:65px 20px;
  background:#fff;
  border:1px dashed #d5e1d8;
  border-radius:12px;
  color:var(--muted);
}

.empty-state h3 {
  color:var(--ink);
  margin-bottom:8px;
}

.empty-state p {
  font-size:12px;
  margin-bottom:20px;
}

.empty-symbol {
  display:inline-flex;
  background:#eef4ee;
  padding:18px;
  color:#87a58e;
  border-radius:50%;
  margin-bottom:18px;
}

.notice {
  background:#fff8e9;
  border:1px solid #eddfb8;
  border-radius:8px;
  color:#8c6b25;
  padding:12px 16px;
  margin:-7px 0 20px;
  font-size:12px;
}

.notice button {
  color:inherit;
}

.schedule-card {
  padding:22px 24px;
  display:flex;
  align-items:center;
  gap:18px;
  background:#edf4ed;
  border:1px solid #dbe7da;
  border-radius:12px;
  margin-bottom:28px;
}

.schedule-symbol {
  height:45px;
  width:45px;
  display:grid;
  place-items:center;
  border:1px solid #cbdcc9;
  color:#658260;
  background:#e4eee1;
  border-radius:10px;
  flex-shrink:0;
}

.schedule-card h2 {
  font-size:14px;
}

.schedule-card p {
  font-size:12px;
  color:#647b60;
  margin-top:5px;
}

.schedule-card>div>span {
  font-size:10px;
  color:#80937b;
}

.schedule-card>.text-button {
  margin-left:auto;
  white-space:nowrap;
}

.mine-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px;
  gap:15px;
}

.mine-tabs button span {
  font-size:10px;
  margin-left:5px;
}

.search-field {
  border:1px solid var(--line);
  border-radius:8px;
  display:flex;
  align-items:center;
  gap:7px;
  background:#fff;
  padding-left:13px;
  width:230px;
}

.search-field>span {
  font-size:21px;
  color:#819388;
}

.search-field input {
  border:0;
  min-height:39px;
  background:transparent;
  font-size:12px;
  padding-left:0;
}

.history-note {
  font-size:12px;
  color:var(--muted);
  margin-bottom:20px;
}

.meeting-date-heading {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:13px;
  margin:23px 0 12px;
  font-weight:550;
}

.meeting-date-heading small {
  font-size:10px;
  color:#6a7c70;
  font-weight:400;
}

.meeting-date-heading:after {
  content:'';
  height:1px;
  flex:1;
  background:var(--line);
}

.meeting-item {
  display:flex;
  align-items:center;
  gap:22px;
  padding:20px 23px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  margin-bottom:10px;
}

.meeting-time {
  min-width:84px;
  font-variant-numeric:tabular-nums;
}

.meeting-time strong {
  font-size:17px;
  font-weight:550;
  display:block;
}

.meeting-time small {
  font-size:11px;
  color:#6a7c70;
}

.meeting-info {
  flex:1;
  min-width:0;
}

.meeting-info h3 {
  font-size:14px;
  margin-bottom:5px;
}

.meeting-info p {
  font-size:11px;
  color:#6a7c70;
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.meeting-item .status-badge {
  margin-right:10px;
}

.meeting-actions {
  display:flex;
  align-items:center;
  gap:14px;
}

.meeting-actions .text-button.cancel-link {
  color:#a36b5d;
}

.status-badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  background:#edf6ef;
  border:1px solid #d7e8db;
  color:#4f825a;
  padding:2px 9px;
  border-radius:4px;
  white-space:nowrap;
}

.status-badge.completed {
  background:#f2f4f2;
  color:#7c8a7f;
  border-color:#e2e7e2;
}

.status-badge.cancelled,.status-badge.failed {
  background:#faf0ed;
  color:#a36959;
  border-color:#eddcd6;
}

.status-badge.uncertain,.status-badge.unverified {
  background:#fcf5e5;
  color:#9b7b35;
  border-color:#ecdfbd;
}

.legacy-badge {
  font-size:9px;
  padding:1px 5px;
  border:1px solid #e9d5bc;
  border-radius:3px;
  background:#fff8ed;
  color:#aa8051;
}

dialog {
  color:var(--ink);
  border:1px solid var(--line);
  padding:30px;
  border-radius:15px;
  box-shadow:0 18px 70px #1b3a2925;
  max-width:calc(100vw - 32px);
}

dialog::backdrop {
  background:#13291e55;
  backdrop-filter:blur(3px);
}

.login-dialog {
  width:440px;
  padding:38px;
  border-radius:18px;
}

.login-symbol {
  display:inline-grid;
  place-items:center;
  background:var(--accent-soft);
  color:var(--accent);
  border-radius:12px;
  width:49px;
  height:49px;
  margin-bottom:27px;
}

.login-symbol .icon {
  width:22px;
  height:22px;
}

.login-dialog h2 {
  font-size:22px;
  letter-spacing:-.6px;
}

.login-intro {
  font-size:12px;
  color:var(--muted);
  line-height:1.85;
  margin:13px 0 28px;
}

.login-dialog label {
  display:block;
  font-size:12px;
  font-weight:550;
  margin-bottom:8px;
}

.password-field {
  display:flex;
  position:relative;
}

.password-field input {
  padding-right:59px;
}

.password-field .text-button {
  position:absolute;
  right:13px;
  top:4px;
  font-size:11px;
}

.field-error {
  color:#b3483a;
  font-size:12px;
  margin:12px 0;
  min-height:0;
}

.field-error:empty {
  margin:9px 0;
}

.full-width {
  width:100%;
}

.login-footnote {
  font-size:10px;
  color:#6a7c70;
  text-align:center;
  margin-top:22px;
}

.drawer {
  position:fixed;
  inset:0 0 0 auto;
  margin:0;
  width:560px;
  height:100dvh;
  max-height:100dvh;
  max-width:100vw;
  border-radius:0;
  padding:0;
  overflow-y:auto;
  border:0;
  border-left:1px solid var(--line);
}

.drawer-heading {
  padding:23px 28px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:sticky;
  top:0;
  background:#fff;
  z-index:10;
}

.drawer-heading .eyebrow {
  margin-bottom:4px;
  font-size:9px;
}

.drawer-heading h2 {
  font-size:20px;
}

.drawer-body {
  padding:24px 28px 35px;
}

.booking-modes {
  width:100%;
  margin-bottom:23px;
}

.booking-modes button {
  width:50%;
  min-height:35px;
}

.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  margin-bottom:18px;
  min-width:0;
}

.field>span {
  font-weight:550;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.field small {
  font-size:10px;
  color:#6a7c70;
  font-weight:400;
}

.form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.field-hint {
  font-size:11px;
  color:#6a7c70;
  line-height:1.85;
  margin:9px 0 19px;
}

.example-prompts {
  display:flex;
  gap:8px;
  margin-top:-7px;
}

.example-prompts button {
  border:1px solid #dce7df;
  background:#f7faf7;
  border-radius:5px;
  font-size:10px;
  color:#60816b;
  min-height:31px;
  padding:3px 9px;
}

.check-field {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--muted);
  margin:0 0 22px;
  min-height:35px;
}

.preview-section {
  padding-top:26px;
  margin-top:25px;
  border-top:1px solid var(--line);
}

.preview-section .section-heading {
  margin-bottom:12px;
}

.preview-row {
  display:flex;
  gap:11px;
  padding:14px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  margin-bottom:8px;
  align-items:flex-start;
}

.preview-row input {
  margin-top:5px;
}

.preview-row strong {
  display:block;
  font-size:12px;
  font-weight:550;
}

.preview-row p {
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
}

.preview-row .status-badge {
  margin-left:auto;
  margin-top:2px;
  font-size:9px;
}

.preview-row.blocked {
  background:#fcfcfa;
}

.preview-actions {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:13px;
}

.result-section {
  border-top:1px solid var(--line);
  margin-top:25px;
  padding-top:24px;
}

.result-row {
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:12px;
}

.result-row>div {
  flex:1;
}

.result-row small {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
}

.result-section .secondary-button {
  margin-top:20px;
}

.detail-dialog,.confirm-dialog {
  width:450px;
}

.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
  gap:10px;
}

.dialog-heading h2 {
  font-size:18px;
}

.detail-dialog h2 {
  margin-bottom:18px;
  font-size:22px;
  overflow-wrap:anywhere;
}

.detail-row {
  display:grid;
  grid-template-columns:68px 1fr;
  gap:15px;
  font-size:12px;
  margin:15px 0;
}

.detail-row dt {
  color:#6a7c70;
}

.detail-row dd {
  margin:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.detail-actions {
  display:flex;
  justify-content:flex-end;
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:22px;
}

.cancel-symbol {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  font-size:24px;
  color:#b36954;
  border-radius:50%;
  background:#faf0eb;
  margin-bottom:18px;
}

.confirm-dialog h2 {
  font-size:20px;
  margin-bottom:8px;
}

.confirm-dialog>p {
  font-size:12px;
  color:var(--muted);
}

.cancel-summary {
  background:var(--paper);
  border:1px solid var(--line);
  padding:15px;
  border-radius:8px;
  margin:20px 0;
  font-size:12px;
}

.cancel-summary strong {
  display:block;
  margin-bottom:5px;
}

.cancel-summary span {
  display:block;
  font-size:11px;
  color:var(--muted);
}

.confirm-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:23px;
}

.toast {
  position:fixed;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  background:#233e32;
  color:#fff;
  box-shadow:0 6px 24px #243d3025;
  padding:12px 22px;
  border-radius:9px;
  font-size:12px;
  z-index:100;
  max-width:calc(100vw - 40px);
}

.runs-item {
  padding:14px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:14px;
  font-size:12px;
}

.runs-item>div {
  flex:1;
}

.runs-item small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:4px;
}

.loading-inline {
  color:var(--muted);
  padding:35px 10px;
  text-align:center;
  font-size:12px;
}

@media(min-width:1600px) {
  .sidebar {
    width:255px;
  }
  .main-content {
    margin-left:255px;
    width:calc(100% - 255px);
  }
  .page-content {
    padding:36px 42px;
  }
  .topbar {
    padding:0 42px;
  }
  .calendar-scroll {
    height:calc(100vh - 380px);
  }
}

@media(max-width:1150px) {
  .sidebar {
    width:210px;
  }
  .main-content {
    margin-left:210px;
    width:calc(100% - 210px);
  }
  .page-content {
    padding:25px 22px;
  }
  .topbar {
    padding:0 22px;
  }
  .brand {
    padding-left:20px;
  }
  .brand strong {
    font-size:17px;
  }
  .sidebar-content {
    padding:18px 16px;
  }
  .calendar-grid {
    min-width:780px;
  }
  .meeting-item {
    gap:16px;
    padding:18px;
  }
  .meeting-actions {
    gap:8px;
  }
  .meeting-item .status-badge {
    margin-right:0;
  }
}

@media(max-width:800px) {
  .sidebar {
    width:0;
    border:0;
    position:static;
  }
  .brand,.sidebar-content,.sidebar-footer {
    display:none;
  }
  .main-nav {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#ffffffef;
    border-top:1px solid var(--line);
    border-bottom:0;
    display:flex;
    flex-direction:row;
    padding:7px 20px calc(7px + env(safe-area-inset-bottom));
    gap:15px;
    z-index:20;
    backdrop-filter:blur(12px);
  }
  .nav-item {
    flex:1;
    justify-content:center;
    min-height:43px;
    padding:8px 13px;
    font-size:12px;
  }
  .nav-item .icon {
    width:16px;
    height:16px;
  }
  .nav-count {
    margin-left:3px;
  }
  .main-content {
    margin-left:0;
    width:100%;
    padding-bottom:78px;
  }
  .topbar {
    height:59px;
    padding:0 20px;
  }
  .mobile-brand {
    display:block;
  }
  .breadcrumb {
    display:none;
  }
  .topbar-right {
    gap:6px;
  }
  .connection-status {
    font-size:10px;
  }
  .page-content {
    padding:25px 18px;
  }
  .page-heading {
    margin-bottom:24px;
  }
  .page-heading h1 {
    font-size:26px;
  }
  .page-heading .eyebrow {
    font-size:9px;
  }
  .page-description {
    font-size:11px;
  }
  .page-heading .primary-button {
    font-size:11px;
    padding:10px 12px;
    min-height:40px;
  }
  .calendar-toolbar {
    flex-wrap:wrap;
    gap:13px;
    margin-bottom:14px;
  }
  .date-navigation {
    gap:7px;
  }
  .date-display {
    font-size:15px;
  }
  .calendar-options {
    margin-left:auto;
    gap:8px;
  }
  .calendar-options select {
    width:127px;
  }
  .filter-button {
    display:inline-flex;
    min-height:34px;
    padding:5px 12px;
    font-size:11px;
  }
  .segmented button {
    min-width:38px;
    padding:4px 12px;
    min-height:28px;
  }
  .calendar-scroll {
    height:calc(100dvh - 390px);
    min-height:430px;
  }
  .calendar-grid {
    min-width:880px;
  }
  .calendar-legend {
    padding:7px 12px;
    gap:14px;
    font-size:9px;
  }
  .calendar-legend .calendar-hint {
    display:none;
  }
  .calendar-legend .text-button {
    margin-left:auto;
  }
  .calendar-footer {
    padding:10px 12px;
    font-size:9px;
    flex-wrap:wrap;
    gap:4px;
  }
  .column-heading {
    min-height:62px;
  }
  .calendar-event {
    padding:6px;
    font-size:10px;
    left:4px;
    right:4px;
  }
  .drawer {
    width:100%;
  }
  .drawer-heading {
    padding:19px 20px;
  }
  .drawer-body {
    padding:20px;
  }
  .drawer-heading h2 {
    font-size:19px;
  }
  .login-dialog {
    padding:29px;
    max-width:calc(100vw - 36px);
  }
  .login-dialog h2 {
    font-size:21px;
  }
  .login-intro {
    font-size:12px;
  }
  .toast {
    bottom:93px;
  }
  .schedule-card {
    padding:18px 16px;
    gap:12px;
    align-items:flex-start;
    flex-wrap:wrap;
    margin-bottom:22px;
  }
  .schedule-symbol {
    width:37px;
    height:37px;
  }
  .schedule-card>div:nth-child(2) {
    flex:1;
    min-width:220px;
  }
  .schedule-card h2 {
    font-size:13px;
  }
  .schedule-card p {
    font-size:11px;
  }
  .schedule-card>.text-button {
    margin-left:49px;
    padding:0;
    min-height:25px;
  }
  .mine-toolbar {
    flex-wrap:wrap;
  }
  .search-field {
    width:100%;
  }
  .mine-tabs {
    width:100%;
  }
  .mine-tabs button {
    flex:1;
    min-height:32px;
  }
  .meeting-item {
    padding:16px;
    gap:14px;
    flex-wrap:wrap;
  }
  .meeting-time {
    min-width:65px;
  }
  .meeting-time strong {
    font-size:15px;
  }
  .meeting-info h3 {
    font-size:13px;
  }
  .meeting-actions {
    width:100%;
    padding-left:79px;
    gap:13px;
  }
  .meeting-actions .text-button {
    margin-left:auto;
  }
  .meeting-date-heading {
    font-size:12px;
  }
  .detail-dialog,.confirm-dialog {
    padding:24px;
  }
  .mini-days button {
    min-height:32px;
  }
  .room-filter {
    min-height:44px;
  }
  .calendar-grid.week-grid {
    min-width:900px;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

.mobile-logout {
  display:none;
}

@media(max-width:800px) {
  .mobile-logout {
    display:inline-flex;
  }
  .field input,.field select,.field textarea,.password-field input {
    font-size:16px;
  }
}

.booking-fields { display: grid; gap: 22px; }
body:has(dialog[open]) { overflow: hidden; }
.booking-fields .field { margin: 0; gap: 8px; }
.booking-fields .form-row { margin: 0; align-items: start; }
.booking-fields .natural-fields, .booking-fields .manual-fields { display: grid; gap: 18px; }
.booking-fields .ant-picker, .booking-fields .ant-select { width: 100%; }
.booking-fields .ant-picker input { padding: 0; border: 0; box-shadow: none; min-height: 0; height: auto; background: transparent; }
.booking-fields .ant-select input { min-height: 0; height: auto; }
.booking-fields .ant-input { font-family: inherit; }
.booking-fields .ant-segmented { padding: 4px; background: #edf2ef; }
.booking-fields .ant-segmented-item-label { padding: 8px 14px; }
.drawer-body { position: relative; }
.drawer-body .ant-picker-dropdown, .drawer-body .ant-select-dropdown { z-index: 10; }
.checkin-badge { display: inline-flex; align-items: center; color: var(--muted); font-size: 12px; line-height: 1.5; }
.checkin-badge.signed { color: var(--accent); }
.checkin-badge.failed, .checkin-badge.due { color: #996b23; }
.meeting-actions { flex-wrap: wrap; }
.sync-progress { margin: 0; color: var(--muted); font-size: 12px; max-width: 220px; }
.sync-progress:empty { display: none; }
@media (max-width: 600px) {
  .booking-fields .form-row { grid-template-columns: 1fr; }
  .meeting-actions { justify-content: flex-start; }
  .sync-progress { max-width: 130px; font-size: 11px; }
}
