/* ============================================================
   会议预约 · 界面样式
   ============================================================ */

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #475467;
  --ink-3: #8a94a6;
  --line: #e7ebf3;
  --line-soft: #f0f3f9;
  --brand: #2563eb;
  --brand-2: #4f46e5;
  --brand-soft: #eef4ff;
  --teal: #0d9488;
  --rose: #e11d48;
  --amber: #d97706;
  --green: #0d9488;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px -10px rgba(16, 24, 40, .10);
  --shadow-md: 0 12px 34px -14px rgba(16, 24, 40, .24);
  --sidebar: #0b1220;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 420px at 92% -6%, #e6edff 0%, transparent 60%),
    radial-gradient(760px 380px at -8% 2%, #e7f6f3 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; font-size: 14px; cursor: pointer; }
code { background: #f1f4fa; border-radius: 6px; padding: 1px 6px; font-size: 12.5px; }

.icon {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

[hidden] { display: none !important; }

/* ============================================================
   应用框架
   ============================================================ */

.app { display: flex; height: 100vh; overflow: hidden; }

/* ---------------- 侧边栏 ---------------- */
.sidebar {
  width: 252px; flex: none;
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px 16px 18px;
  background: linear-gradient(180deg, #0b1220 0%, #101b31 100%);
  color: #c9d5e8;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 6px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  font-size: 17px; font-weight: 700; letter-spacing: .5px;
  background: linear-gradient(135deg, #3b7bff, #2563eb 55%, #4f46e5);
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .7);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { color: #fff; font-size: 15px; letter-spacing: .3px; }
.brand-text span { color: #7d8ca6; font-size: 10.5px; letter-spacing: 1.1px; text-transform: uppercase; }

.btn-new {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 14px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #3b7bff, #2563eb);
  color: #fff; font-weight: 600; font-size: 13.5px;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .9);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-new:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(37, 99, 235, .95); }
.btn-new .icon { width: 17px; height: 17px; }

.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }

.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border: 0; border-radius: 11px;
  background: transparent; color: #9aabc4;
  font-size: 13.5px; text-align: left;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0; background: #5b8cff;
}
.nav-item .icon { width: 17px; height: 17px; opacity: .9; }
.nav-item span { flex: 1; }

.side-card {
  margin-top: auto;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
}
.side-card-head { display: flex; align-items: center; gap: 8px; }
.side-card-head strong { font-size: 12.5px; color: #e5ecf9; font-weight: 600; }
.side-card p { margin: 7px 0 9px; font-size: 11.5px; color: #8595ad; line-height: 1.55; }
.side-link {
  padding: 0; border: 0; background: transparent;
  color: #7fa6ff; font-size: 11.5px; font-weight: 500;
}
.side-link:hover { color: #a9c4ff; }

.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #d97706; box-shadow: 0 0 0 3px rgba(161, 132, 95, .18);
}
.status-dot.on { background: #0d9488; box-shadow: 0 0 0 3px rgba(95, 139, 132, .18); }
.status-dot.big { width: 10px; height: 10px; }

.side-foot { font-size: 10.5px; color: #5d6c84; text-align: center; }

/* ---------------- 主区域 ---------------- */
.main { flex: 1; min-width: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 26px 14px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 12px; flex: none;
}
.page-head h1 { font-size: 21px; font-weight: 700; letter-spacing: -.2px; }
.page-head p { color: var(--ink-3); font-size: 12px; margin-top: 2px; }

.top-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.ghost-icon {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 12px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; font-weight: 500;
  flex: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.ghost-icon:hover { background: #f8faff; border-color: #cfd8e8; color: var(--ink); }
.ghost-icon:active { transform: translateY(1px); }
.ghost-icon .icon { width: 15px; height: 15px; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #dbe7ff, #eaf0ff);
  color: #2563eb; font-size: 13px; font-weight: 600;
  border: 1px solid #d8e3fa;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.avatar:hover { transform: scale(1.04); box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .35); }

/* ============================================================
   通用控件
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 15px; border-radius: 11px; font-weight: 500; font-size: 13.5px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { border-color: #cfd8e8; box-shadow: var(--shadow-sm); }
.btn.primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(180deg, #3b7bff, #2563eb);
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .8);
}
.btn.primary:hover { background: linear-gradient(180deg, #2f6df0, #2f6df0); }
.is-syncing .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.danger { color: var(--rose); border-color: #f6cdd6; background: #fff; }
.btn.danger:hover { background: #fff5f7; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn .icon { width: 16px; height: 16px; }

.btn:focus-visible, .ghost:focus-visible, .icon-btn:focus-visible, .ghost-icon:focus-visible,
.nav-item:focus-visible, .side-link:focus-visible, .seg-item:focus-visible,
.btn-new:focus-visible, .pill-btn:focus-visible, .step-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .5);
  outline-offset: 2px;
}

.ghost {
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  padding: 8px 12px; border-radius: 9px; font-size: 13px;
}
.ghost:hover { background: #eef2f9; color: var(--ink); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: #cfd8e8; color: var(--ink); background: #fbfcff; }
.icon-btn.close { border: 0; background: transparent; font-size: 22px; color: var(--ink-3); }
.icon-btn.close:hover { background: #f1f4fa; color: var(--ink); }

.input {
  width: 100%; border: 1px solid #dfe5f0; border-radius: 11px;
  padding: 9px 12px; font-size: 13.5px; color: var(--ink);
  background: #fff; outline: none; font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #a9b3c4; }
.input[readonly] { background: #f7f9fd; color: var(--ink-2); cursor: default; }
.input[readonly]:focus { border-color: #dfe5f0; box-shadow: none; }
.modal.booking #b-note { height: 62px; min-height: 62px; resize: none; }
.input:focus { border-color: #9dbcf7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
textarea.input { resize: vertical; min-height: 62px; }
select.input {
  appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, #8a94a6 50%), linear-gradient(135deg, #8a94a6 50%, transparent 50%);
  background-position: calc(100% - 17px) 54%, calc(100% - 12px) 54%;
  background-size: 5px 5px; background-repeat: no-repeat;
}

.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12.5px; cursor: pointer; user-select: none; }
.checkbox input { accent-color: var(--brand); width: 15px; height: 15px; }

.card {
  background: var(--surface);
  border: 1px solid rgba(231, 235, 243, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 500; padding: 2px 8px; border-radius: 999px;
  background: #eef2f9; color: var(--ink-2); white-space: nowrap;
}
.tag.blue { background: var(--brand-soft); color: var(--brand); }
.tag.green { background: #e7f7f3; color: var(--teal); }
.tag.amber { background: #fff5e6; color: var(--amber); }
.tag.red { background: #fdeef1; color: var(--rose); }
.tag.violet { background: #f1edff; color: #6d4aff; }

/* ============================================================
   工具栏 / 日期导航 / 统计
   ============================================================ */

.view { display: none; min-height: 0; }
.view.active {
  display: flex; flex-direction: column; flex: 1; min-height: 0;
  animation: fadeUp .22s ease;
}
#view-rooms.active, #view-settings.active { overflow-y: auto; padding-right: 2px; }
#view-list.active { overflow: hidden; padding-right: 0; }
#view-list.active .list-card { flex: 1; min-height: 0; overflow-y: auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 10px; flex-wrap: wrap; flex: none;
}

.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rooms-actions { gap: 10px; }
.rooms-actions .btn { height: 38px; min-width: 142px; padding: 0 16px; justify-content: center; }

.date-nav { position: relative; display: flex; align-items: center; gap: 8px; }
.date-label {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; margin: 0 2px;
  border: 1px solid transparent; background: transparent;
  border-radius: 11px; color: var(--ink); font: inherit; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.date-label:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.date-label[aria-expanded="true"] { background: #fff; border-color: #cfd8e8; box-shadow: var(--shadow-sm); }
.date-label strong { font-size: 19px; font-weight: 650; letter-spacing: -.2px; }
.date-label span { color: var(--ink-3); font-size: 12.5px; }
.dp-chevron { width: 14px; height: 14px; color: var(--ink-3); transition: transform .18s ease; }
.date-label[aria-expanded="true"] .dp-chevron { transform: rotate(180deg); }

.date-pop {
  position: absolute; top: calc(100% + 10px); left: 44px; z-index: 50;
  width: 318px; max-width: calc(100vw - 32px);
  padding: 14px 14px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(11, 18, 32, .42);
  animation: popIn .16s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { font-size: 13.5px; font-weight: 650; letter-spacing: .2px; }
.dp-nav { display: flex; gap: 4px; }
.dp-nav .icon-btn { width: 30px; height: 30px; border-radius: 9px; }
.dp-nav .icon-btn .icon { width: 15px; height: 15px; }

.dp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 3px; }
.dp-week span { text-align: center; font-size: 10.5px; color: var(--ink-3); padding: 3px 0; }

.date-field { position: relative; }
.date-trigger {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; text-align: left; cursor: pointer; font-family: inherit;
}
.date-trigger .icon { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.date-trigger[aria-expanded="true"] {
  border-color: #9dbcf7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.date-pop-floating {
  position: fixed; left: auto; top: auto; z-index: 120;
  width: 340px; max-width: calc(100vw - 24px); margin: 0;
  box-shadow: 0 24px 60px -20px rgba(11, 18, 32, .42);
}

.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-day {
  position: relative; height: 36px; border: 0; background: transparent; border-radius: 9px;
  font-size: 12.5px; color: var(--ink); cursor: pointer; font-family: inherit;
  transition: background .12s ease, color .12s ease;
}
.dp-day:hover { background: #f1f4fa; }
.dp-day.out { color: #c2c9d6; }
.dp-day.out:hover { color: var(--ink-2); }
.dp-day.today:not(.sel) { box-shadow: inset 0 0 0 1px #bfd3f8; color: var(--brand); font-weight: 600; }
.dp-day.sel {
  background: linear-gradient(180deg, #3b7bff, #2563eb); color: #fff; font-weight: 600;
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .6);
}
.dp-day .dotmark {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #0d9488;
}
.dp-day.sel .dotmark { display: none; }

.dp-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft);
}
.dp-foot .hint { font-size: 11px; }
.dp-today { border: 0; background: transparent; color: var(--brand); font-size: 12px; font-weight: 500; padding: 4px 7px; border-radius: 7px; }
.dp-today:hover { background: var(--brand-soft); }

.pill-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  height: 36px; padding: 0 14px; border-radius: 999px; font-size: 12.5px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pill-btn:hover { border-color: #cfd8e8; color: var(--ink); background: #f8faff; }

.legend { display: flex; align-items: center; gap: 16px; font-size: 11.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.toolbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sync-btn { font-size: 12.5px; padding: 7px 13px; }
.sync-btn .icon { width: 15px; height: 15px; }

.search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px; min-width: 236px;
  background: #fff; border: 1px solid #dfe5f0; border-radius: 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search:focus-within { border-color: #9dbcf7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.search .icon { width: 15px; height: 15px; color: var(--ink-3); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: 13px; color: var(--ink);
}
.search input::placeholder { color: #a9b3c4; }

.rooms-meta { font-size: 12.5px; color: var(--ink-3); }

.list-toolbar .search { flex: 0 1 320px; min-width: 220px; }
.list-toolbar .list-actions { margin-left: auto; flex-wrap: nowrap; }

@media (max-width: 900px) {
  .list-toolbar { flex-wrap: wrap; }
  .list-toolbar .search { flex: 1 1 100%; max-width: none; order: 3; }
  .list-toolbar .list-actions { order: 2; }
}

.summary-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 10px; flex: none;
}

.summary-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px;
  background: #fff; border-radius: 13px;
  border: 1px solid rgba(231, 235, 243, .9);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.sc-icon {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--tint, #eef4ff); color: var(--tone, var(--brand));
}
.sc-icon .icon { width: 16px; height: 16px; }
.sc-main { min-width: 0; }
.sc-main b { display: block; font-size: 18px; line-height: 1.15; letter-spacing: -.2px; font-weight: 700; }
.sc-main span { font-size: 10.5px; color: var(--ink-3); }
.sc-extra { margin-left: auto; text-align: right; }
.sc-extra em { font-style: normal; font-size: 10px; color: var(--ink-3); display: block; margin-bottom: 3px; }
.sc-bar { width: 56px; height: 4px; border-radius: 999px; background: #eef2f9; overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #60a5fa, #2563eb); }

/* ============================================================
   日历
   ============================================================ */

.calendar-card { overflow: hidden; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.calendar { padding: 0; flex: 1; min-height: 0; }

.cal2-wrap {
  overflow: auto; max-height: none; height: 100%;
  scrollbar-width: thin;
}
.cal2-wrap::-webkit-scrollbar { width: 9px; height: 9px; }
.cal2-wrap::-webkit-scrollbar-thumb { background: #d6deeb; border-radius: 9px; border: 2px solid #fff; }
.cal2-wrap::-webkit-scrollbar-track { background: #fff; }

.cal2-head {
  display: grid; position: sticky; top: 0; z-index: 6;
  background: #fcfdff; border-bottom: 1px solid var(--line);
}

.cal2-corner {
  padding: 13px 10px 10px; font-size: 10.5px; color: var(--ink-3);
  border-right: 1px solid var(--line);
  display: flex; align-items: flex-end; letter-spacing: .5px;
}

.cal2-room { padding: 11px 14px 10px; border-left: 1px solid var(--line-soft); min-width: 0; background: #fcfdff; }
.cal2-room .rhead { display: flex; align-items: center; gap: 7px; }
.cal2-room .rdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cal2-room .rname { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cal2-room .rcount { margin-left: auto; font-size: 10.5px; color: var(--ink-3); background: #f0f3f9; border-radius: 999px; padding: 1px 7px; white-space: nowrap; flex: none; }
.cal2-room .rmeta { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }

.cal2-body { display: grid; grid-template-columns: 62px minmax(0, 1fr); }

.cal2-times {
  position: sticky; left: 0; z-index: 4;
  background: #fff; border-right: 1px solid var(--line);
}
.tlabel {
  font-size: 10.5px; color: var(--ink-3);
  padding: 3px 0 0 10px; box-sizing: border-box;
  border-top: 1px solid var(--line-soft);
}
.tlabel:first-child { border-top: 0; }

.cal2-cols { display: grid; position: relative; }
.cal2-col {
  position: relative; min-width: 0;
  border-left: 1px solid var(--line-soft);
  background-image:
    linear-gradient(to bottom, #eef2f8 1px, transparent 1px),
    linear-gradient(to bottom, #f7f9fc 1px, transparent 1px);
  background-size: 100% 52px, 100% 52px;
  background-position: 0 0, 0 26px;
  cursor: crosshair;
}
.cal2-col:hover { background-color: #fbfcff; }

.booking-v {
  position: absolute; left: 3px; right: 3px;
  border-left: 3px solid var(--brand);
  border-radius: 9px; padding: 5px 9px;
  overflow: hidden; cursor: pointer; color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: box-shadow .14s ease, transform .14s ease;
}
.booking-v:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); z-index: 3; }
.booking-v .btitle { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.45; }
.booking-v .btime { font-size: 10.5px; color: var(--ink-2); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.drag-preview {
  position: absolute; left: 3px; right: 3px; border-radius: 9px;
  background: rgba(37, 99, 235, .16);
  border: 1.5px dashed #2563eb;
  z-index: 12; pointer-events: none; padding: 2px 6px;
}
.drag-preview .drag-label {
  font-size: 10px; font-weight: 600; color: #1d4ed8;
  background: rgba(255, 255, 255, .88); border-radius: 4px; padding: 1px 4px;
  display: inline-block;
}
.booking-v .btype {
  position: absolute; top: 5px; right: 7px;
  font-size: 9px; color: var(--ink-3);
}

.calendar-tip { color: var(--ink-3); font-size: 11.5px; margin-top: 12px; text-align: center; }

.cal-empty { padding: 70px 24px; text-align: center; color: var(--ink-3); }
.cal-empty strong { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 6px; }
.cal-empty svg { width: 40px; height: 40px; stroke: #c6d0e2; margin-bottom: 12px; }

/* ============================================================
   预约列表
   ============================================================ */

.list-card { overflow: hidden; }

.list-group-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 13px 20px 9px;
  background: #fbfcff; border-bottom: 1px solid var(--line-soft);
}
.list-group-head .day { font-size: 13.5px; font-weight: 650; }
.list-group-head .wd { font-size: 11.5px; color: var(--ink-3); }
.list-group-head .count { margin-left: auto; font-size: 11px; color: var(--ink-3); }

.list-row {
  display: grid; grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 16px; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .14s ease;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #fbfcff; }

.lr-time b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -.1px; }
.lr-time span { font-size: 11.5px; color: var(--ink-3); }

.lr-main { min-width: 0; }
.lr-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.lr-title h4 { font-size: 14px; font-weight: 600; }
.lr-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.lr-meta span { white-space: nowrap; }
.lr-actions { display: flex; gap: 6px; }

.empty { padding: 64px 24px; text-align: center; color: var(--ink-3); }
.empty strong { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 6px; }

/* 空状态：无会议室时引导同步账号 */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 24px; gap: 8px;
}
.empty-state.card { padding: 52px 24px; }
.empty-state .empty-icon {
  width: 62px; height: 62px; border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #eef4ff, #e6eeff);
  color: var(--brand); margin-bottom: 6px;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08);
}
.empty-state .empty-icon .icon { width: 27px; height: 27px; }
.empty-state h3 { font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
.empty-state p {
  font-size: 13px; color: var(--ink-3); line-height: 1.7;
  max-width: 460px; margin: 0;
}
.empty-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.empty-actions .icon { width: 15px; height: 15px; }

/* ============================================================
   会议室
   ============================================================ */

.section-title { font-size: 19px; font-weight: 650; }
.section-sub { color: var(--ink-3); font-size: 12px; margin-top: 3px; }

.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.room-grid > .empty-state { grid-column: 1 / -1; }

.room-card {
  position: relative; padding: 20px 20px 16px;
  display: flex; flex-direction: column; gap: 11px; overflow: hidden;
}
.room-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--room-color, var(--brand)), transparent 140%);
}
.room-head { display: flex; align-items: center; gap: 9px; }
.room-head h3 { font-size: 15.5px; font-weight: 650; }
.room-loc { font-size: 12px; color: var(--ink-3); }
.room-account { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.room-manager { font-size: 12px; color: var(--ink-3); }
.room-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.room-stats { font-size: 11.5px; color: var(--ink-3); padding-top: 11px; border-top: 1px solid var(--line-soft); }
.room-stats b { color: var(--ink-2); font-weight: 600; }
.room-actions { display: flex; justify-content: flex-end; gap: 7px; }

.room-add {
  border: 1.5px dashed #cfd8e8; border-radius: var(--radius);
  background: transparent; color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 188px; font-size: 13px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.room-add:hover { border-color: #9dbcf7; color: var(--brand); background: #f8fbff; }
.room-add .icon { width: 22px; height: 22px; }

/* ============================================================
   设置
   ============================================================ */

.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }

.settings-card { padding: 22px 24px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-head h2 { font-size: 16.5px; font-weight: 650; }
.card-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.span-2 { grid-column: span 2; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; color: var(--ink-2); font-weight: 500; display: flex; align-items: baseline; gap: 6px; }
.field > span em { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.field > span em.req { color: var(--rose); }
.modal .field > span em { color: var(--ink-3); }
.modal .field > span em.opt { color: var(--ink-3); }
.modal .field > span em.req { color: var(--rose); }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 15px 0 0; margin-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.switch-row.compact { padding: 12px 14px; margin-top: 0; border-top: 0; border-radius: 12px; background: #f8faff; border: 1px dashed #dbe6fb; }
.switch-row strong { display: block; font-size: 13px; font-weight: 550; }
.switch-row em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.switch { position: relative; flex: none; display: inline-flex; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch input:disabled + i { opacity: .55; cursor: not-allowed; }
.switch i {
  width: 42px; height: 24px; border-radius: 999px;
  background: #d7dfec; display: block; position: relative;
  transition: background .18s ease;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .22);
  transition: transform .18s cubic-bezier(.4, 0, .2, 1);
}
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }

.settings-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.settings-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.status-card { padding: 20px; }
.status-head { display: flex; align-items: flex-start; gap: 11px; }
.status-head strong { font-size: 14px; font-weight: 650; }
.status-head p { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.status-head .status-dot { margin-top: 6px; }
.mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 12px;
}
.mini-row:first-of-type { margin-top: 12px; }
.mini-row span { color: var(--ink-3); }
.mini-row b { font-weight: 500; color: var(--ink-2); text-align: right; max-width: 60%; }
.mini-row b.bad { color: var(--rose); }
.mini-row b.good { color: var(--teal); }
.status-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 11.5px; }

.guide-card { padding: 20px; }
.guide-card h3 { font-size: 14px; font-weight: 650; margin-bottom: 13px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; counter-reset: step; }
.steps li { position: relative; padding-left: 30px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-size: 10.5px; font-weight: 600;
  display: grid; place-items: center;
}
.steps li b { display: block; font-size: 12.5px; font-weight: 600; }
.steps li span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.guide-card .hint { margin-top: 14px; }

/* ============================================================
   弹窗
   ============================================================ */

.modal-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(11, 18, 32, .42);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}

.modal {
  width: 560px; max-width: 100%; max-height: 90vh;
  background: #fff; border-radius: 20px;
  box-shadow: 0 30px 70px -20px rgba(11, 18, 32, .45);
  display: flex; flex-direction: column;
  animation: modalIn .2s cubic-bezier(.2, .8, .3, 1);
}
.modal.wide { width: 620px; }
.modal.booking { width: 680px; }
.modal.booking .modal-body { gap: 12px; padding-top: 16px; padding-bottom: 16px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }

.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 20px 24px 15px; border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 { font-size: 16.5px; font-weight: 650; }
.modal-head p { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.modal-body {
  padding: 18px 24px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}

.modal-foot {
  display: flex; align-items: center; gap: 9px; justify-content: flex-end;
  padding: 15px 24px 19px; border-top: 1px solid var(--line-soft);
}
.modal-error { color: var(--rose); font-size: 12px; margin-right: auto; line-height: 1.4; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.thirds { grid-template-columns: 1fr 1fr 1fr; }

.duration-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: -2px; }
.duration-chips > span { font-size: 11.5px; color: var(--ink-3); margin-right: 2px; }
.dur-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 5px 11px; border-radius: 8px; font-size: 11.5px;
  transition: all .14s ease;
}
.dur-chip:hover { border-color: #bcd1f8; color: var(--brand); }
.dur-chip.active { background: var(--brand-soft); border-color: #bcd1f8; color: var(--brand); font-weight: 500; }

.segmented {
  display: inline-flex; gap: 2px; padding: 3px;
  background: #f0f3f9; border-radius: 11px;
  width: fit-content; max-width: 100%;
}
.seg-item {
  border: 0; background: transparent; color: var(--ink-2);
  padding: 7px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg-item:hover { color: var(--ink); }
.seg-item.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.type-seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.type-seg .seg-item { padding: 8px 10px; }

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .input { width: 70px; text-align: center; padding: 9px 6px; -moz-appearance: textfield; }
.stepper .input::-webkit-outer-spin-button,
.stepper .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn {
  width: 36px; height: 36px; flex: none;
  border: 1px solid #dfe5f0; background: #fff; border-radius: 10px;
  color: var(--ink-2); font-size: 16px; line-height: 1;
  display: grid; place-items: center;
}
.step-btn:hover { border-color: #bcd1f8; color: var(--brand); }

.color-swatches { display: flex; gap: 9px; }
.swatch {
  width: 27px; height: 27px; border-radius: 9px; border: 2px solid #fff;
  background: var(--c); cursor: pointer;
  box-shadow: 0 0 0 1px #e7ebf3;
  transition: transform .14s ease, box-shadow .14s ease;
}
.swatch:hover { transform: translateY(-1px); }
.swatch.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }

/* 详情 */
.detail-hero {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 2px 0 12px; border-bottom: 1px solid var(--line-soft);
}
.detail-hero .hero-bar { width: 5px; height: 20px; border-radius: 3px; background: var(--brand); flex: none; }
.detail-hero h3 { font-size: 18px; font-weight: 650; letter-spacing: -.2px; }
.detail-grid {
  display: grid; grid-template-columns: 82px minmax(0, 1fr);
  gap: 11px 14px; font-size: 13px;
}
.detail-grid dt { color: var(--ink-3); font-size: 12.5px; }
.detail-grid dd { margin: 0; color: var(--ink); word-break: break-all; }
.detail-grid dd .tag { margin-right: 4px; }

.modal.detail { width: 660px; }
.detail-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px; font-size: 13px;
}
.fact { display: flex; gap: 10px; min-width: 0; }
.fact > span { flex: none; width: 84px; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.fact > b { font-weight: 500; color: var(--ink); word-break: break-all; }
.fact.wide { grid-column: 1 / -1; }
.detail-online { display: flex; flex-direction: column; gap: 6px; }
.section-label { font-size: 12px; color: var(--ink-3); }
.meeting-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; width: 100%; flex-wrap: wrap;
}
.meeting-top .btn { height: 32px; padding: 0 12px; font-size: 12px; }

@media (max-width: 640px) {
  .detail-facts { grid-template-columns: 1fr; }
}

.meeting-box {
  margin-top: 2px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(180deg, #f8faff, #f4f8ff);
  border: 1px solid #dfe9fb;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.meeting-code { display: flex; align-items: baseline; gap: 9px; }
.meeting-code .hint { font-size: 11px; }
.meeting-box .code { font-size: 21px; font-weight: 700; letter-spacing: 1.2px; color: var(--brand); }
.meeting-box .url { font-size: 11.5px; color: var(--ink-2); word-break: break-all; width: 100%; }

.meeting-empty {
  padding: 13px 15px; border-radius: 13px;
  background: #fff8ec; border: 1px solid #f3ddb4;
}
.meeting-empty strong { display: block; font-size: 12.5px; color: #92400e; margin-bottom: 3px; }
.meeting-empty p { font-size: 11.5px; color: #a16207; line-height: 1.65; }

/* ============================================================
   Toast
   ============================================================ */

.toast-wrap {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: flex; flex-direction: column; gap: 9px; pointer-events: none;
  align-items: flex-end;
}
.toast {
  display: flex; align-items: flex-start; gap: 9px;
  background: #101b2e; color: #e8eefb;
  padding: 11px 15px; border-radius: 12px;
  font-size: 12.5px; line-height: 1.45; max-width: 360px;
  box-shadow: 0 18px 40px -18px rgba(11, 18, 32, .65);
  animation: toastIn .22s cubic-bezier(.2, .8, .3, 1);
  border: 1px solid rgba(255, 255, 255, .07);
}
.toast::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #6b8bb8; margin-top: 6px; flex: none;
}
.toast.ok { background: #0c2b26; border-color: rgba(16, 185, 129, .25); }
.toast.ok::before { background: #34d399; }
.toast.warn { background: #2b2010; border-color: rgba(245, 158, 11, .25); }
.toast.warn::before { background: #fbbf24; }
.toast.err { background: #2c1017; border-color: rgba(244, 63, 94, .25); }
.toast.err::before { background: #fb7185; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1240px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-side { position: static; }
}

@media (max-width: 1060px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 226px; padding: 20px 13px 16px; }
  .main { padding: 20px 22px 48px; }
}

@media (max-width: 900px) {
  .app { display: block; }
  .sidebar {
    position: static; height: auto; width: auto;
    flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 12px; padding: 14px 16px;
  }
  .brand { padding: 0; }
  .brand-text span { display: none; }
  .btn-new { width: auto; padding: 9px 14px; margin-left: auto; }
  .nav { order: 3; width: 100%; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
  .nav-item { flex: none; white-space: nowrap; padding: 8px 12px; }
  .nav-item.active::before { display: none; }
  .side-card, .side-foot { display: none; }
  .main { padding: 18px 16px 48px; }
  .cal2-head, .cal2-body { min-width: 760px; }
  .calendar-tip { text-align: left; }
}

@media (max-width: 680px) {
  .topbar { align-items: flex-start; }
  .page-head h1 { font-size: 20px; }
  .summary-grid { gap: 10px; }
  .summary-card { padding: 12px; gap: 10px; }
  .sc-main b { font-size: 19px; }
  .sc-extra { display: none; }
  .form-row, .form-row.thirds { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .list-row { grid-template-columns: 1fr; gap: 8px; }
  .lr-actions { justify-content: flex-start; }
  .toolbar { gap: 10px; }
  .legend { display: none; }
  .date-pop { left: 0; }
  .modal { border-radius: 16px; }
  .modal-body { padding: 16px; }
  .modal-foot { padding: 13px 16px 16px; }
  .settings-card { padding: 18px; }
  .detail-grid { grid-template-columns: 72px minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .top-actions { gap: 8px; }
  .ghost-icon { width: 36px; padding: 0; }
  .ghost-icon span { display: none; }
  .empty-state { padding: 40px 16px; }
  .empty-state.card { padding: 36px 16px; }
}


/* 窄屏恢复整页滚动（桌面端只让日历表格滚动） */
@media (max-width: 900px) {
  html, body { height: auto; overflow: auto; }
  .app { height: auto; overflow: visible; }
  .main { height: auto; display: block; padding-bottom: 44px; }
  .view.active { display: block; overflow: visible; }
  .calendar-card { display: block; flex: none; }
  .cal2-wrap { height: auto; max-height: 660px; }
}

/* ============ 登录 / 账号管理 ============ */
#view-accounts.active { overflow-y: auto; padding-right: 2px; }

.auth-gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    radial-gradient(700px 420px at 18% 8%, #dbe7ff 0%, transparent 55%),
    radial-gradient(700px 420px at 92% 92%, #e7f6f3 0%, transparent 55%),
    #f4f6fb;
}
.auth-gate[hidden] { display: none; }
.auth-card {
  width: 384px; max-width: 100%;
  background: #fff; border-radius: 22px; padding: 28px 30px 26px;
  border: 1px solid rgba(231, 235, 243, .9);
  box-shadow: 0 30px 70px -25px rgba(16, 24, 40, .35);
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.auth-brand .brand-text strong { font-size: 15px; color: var(--ink); }
.auth-brand .brand-text span { font-size: 10px; color: var(--ink-3); letter-spacing: 1px; }
.auth-form h2 { font-size: 20px; font-weight: 700; }
.auth-sub { font-size: 12px; color: var(--ink-3); margin: 4px 0 16px; }
.auth-form .field { margin-bottom: 12px; }
.auth-submit { width: 100%; justify-content: center; height: 40px; margin-top: 4px; }
.auth-error { color: var(--rose); font-size: 12px; min-height: 16px; margin: 2px 0 4px; }
.auth-actions { display: flex; gap: 10px; }
.auth-actions .auth-submit { flex: 1; margin-top: 0; }
.auth-form .hint { margin-top: 12px; line-height: 1.6; }

.user-menu { position: relative; }
.user-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  width: 190px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow-md);
}
.user-pop[hidden] { display: none; }
.user-pop-head { padding: 8px 10px 9px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.user-pop-head strong { display: block; font-size: 13px; color: var(--ink); }
.user-pop-head span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.user-pop-item {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 8px 10px; border-radius: 8px;
  font-size: 12.5px; color: var(--ink-2);
}
.user-pop-item:hover { background: #f3f6fb; color: var(--ink); }
.user-pop-item.danger { color: var(--rose); }

.accounts-toolbar { margin-bottom: 14px; }
.accounts-summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.accounts-summary strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.accounts-summary span { font-size: 12px; color: var(--ink-3); }
.accounts-card { overflow: hidden; }

.account-table-head,
.account-row {
  display: grid;
  grid-template-columns: minmax(220px, 2.2fr) 132px 92px minmax(160px, 1.1fr) 132px;
  gap: 16px; align-items: center;
}
.account-table-head {
  padding: 11px 20px; background: #f6f8fc;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; color: var(--ink-3);
}
.account-table-head span:last-child { text-align: right; }
.account-row {
  padding: 15px 20px; border-bottom: 1px solid var(--line-soft);
}
.account-row:last-child { border-bottom: 0; }
.account-row:hover { background: #fbfcff; }
.account-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.account-name strong { font-size: 13.5px; }
.account-name span { font-size: 11.5px; color: var(--ink-3); }
.account-role { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.account-last {
  font-size: 12px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account-actions { display: flex; gap: 6px; justify-content: flex-end; }
.account-actions .ghost { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
@media (max-width: 820px) {
  .account-table-head { display: none; }
  .account-row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; }
  .account-name { grid-column: 1 / -1; }
  .account-role, .account-status, .account-last { grid-column: 1; }
  .account-actions { grid-column: 2; grid-row: 2 / span 3; align-self: center; }
}

/* 账号可选会议室 */
.room-checks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px; max-height: 190px; overflow: auto;
  padding: 10px; border: 1px solid var(--line); border-radius: 11px;
  background: #fbfcff;
}
.room-check {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px; border-radius: 7px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.room-check:hover { background: #f2f6ff; }
.room-check input { accent-color: var(--brand); flex: none; }
.room-check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-check-actions { display: flex; gap: 8px; margin-top: 6px; }
.room-check-actions .ghost { height: 30px; padding: 0 12px; }
@media (max-width: 640px) { .room-checks { grid-template-columns: 1fr; } }

/* 出口 IP */
.ip-row { display: inline-flex; align-items: center; gap: 6px; }
#egress-ip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.mini-copy {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 6px; padding: 2px 7px; font-size: 10.5px; line-height: 1.4; cursor: pointer;
}
.mini-copy:hover { border-color: #cfd8e8; color: var(--ink); background: #f8faff; }
.ip-hint { margin-top: 8px; line-height: 1.6; }
.ip-hint a { color: var(--brand); font-weight: 500; margin-left: 4px; white-space: nowrap; }
.ip-hint a:hover { text-decoration: underline; }

/* 会议室表头可点击 */
.cal2-room { cursor: pointer; transition: background .15s ease; }
.cal2-room:hover { background: #f6f9ff; }
.cal2-room:focus-visible { outline: 2px solid rgba(37, 99, 235, .35); outline-offset: -2px; }

/* 会议列表日期筛选 */
.dp-foot-actions { display: flex; align-items: center; gap: 6px; }
.list-date-btn { display: inline-flex; align-items: center; gap: 6px; }
.list-date-btn .icon { width: 14px; height: 14px; color: var(--ink-3); }
.list-date-btn.active { border-color: #9dbcf7; color: var(--brand); background: #f5f8ff; }

/* 统一按钮尺寸（配色恢复默认） */
.btn, .ghost, .ghost-icon, .pill-btn, .icon-btn {
  height: 36px; border-radius: 10px; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.btn, .ghost, .ghost-icon, .pill-btn { padding: 0 14px; }
.icon-btn { width: 36px; padding: 0; }
.sync-btn { height: 36px; padding: 0 14px; font-size: 13px; }

/* 侧边栏同步日历动作 */
.nav-action { margin-top: 8px; }

/* 按日期自动获取会议 */
.date-sync-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-3); white-space: nowrap;
}
.date-sync-status[hidden] { display: none; }
.tiny-spinner {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  display: inline-block; animation: spin .8s linear infinite; opacity: .7;
}

/* 会议列表滚动加载 */
.list-more {
  padding: 16px 20px; text-align: center;
  font-size: 12px; color: var(--ink-3);
  border-top: 1px solid var(--line-soft);
}
.list-more.end { color: #b0b7c3; }

/* 自定义确认弹窗 */
#modal-confirm { z-index: 320; }
#modal-confirm .modal { width: 420px; max-width: calc(100vw - 32px); }
#modal-confirm .modal-head p {
  margin-top: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.65;
}
#modal-confirm .modal-foot { gap: 8px; }

/* 会议详情底部操作按钮 */
#detail-actions .btn,
#detail-actions .ghost {
  height: 36px; min-width: 76px; padding: 0 16px;
  border-radius: 10px; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
}
#detail-actions .ghost {
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
#detail-actions .ghost:hover {
  background: #f5f7fa; border-color: #d6dee8; color: var(--ink);
}
#detail-actions #btn-edit-booking {
  background: #eef4ff; border-color: #d6e4ff; color: var(--brand);
}
#detail-actions #btn-edit-booking:hover {
  background: #e3edff; border-color: #c4d8fa; color: var(--brand);
}
#detail-actions #btn-cancel-booking {
  background: #fff1f3; border: 1px solid #f6cdd6; color: var(--rose);
}
#detail-actions #btn-cancel-booking:hover {
  background: #ffe6eb; border-color: #f0b9c5; color: var(--rose);
}
#detail-actions [data-close="modal-detail"] {
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
#detail-actions [data-close="modal-detail"]:hover {
  background: #f5f7fa; border-color: #d6dee8; color: var(--ink);
}

/* 自动同步设置 */
.auto-sync-options { margin-top: 14px; }
.auto-sync-options input:disabled { background: #f5f7fa; color: #98a2b3; cursor: not-allowed; }
#s-auto-sync-status { margin-top: 8px; }
