/* ==========================================================================
   页面级样式：总览 / 房源 / 分析 / 记录 / 弹窗
   ========================================================================== */

/* ================================= 总览 ================================= */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 26px; align-items: center;
  padding: 26px 32px; border-radius: var(--r-xl);
  color: #F2EEE0;
  background:
    radial-gradient(640px 320px at 88% -30%, rgba(176, 128, 60, .5), transparent 68%),
    radial-gradient(520px 300px at 8% 130%, rgba(86, 211, 164, .26), transparent 64%),
    linear-gradient(146deg, #125743 0%, #0E4F3E 42%, #0A3B2E 100%);
  box-shadow: 0 26px 60px -32px rgba(10, 59, 46, .85), inset 0 1px 0 rgba(255, 255, 255, .1);
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 100% 0%, #000 12%, transparent 72%);
}
.hero-l { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hero .eyebrow { color: rgba(242, 238, 224, .7); }
.hero h2 {
  color: #FBF8EE; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.24;
  letter-spacing: -.03em; font-weight: 600; max-width: 22em;
}
.hero p { color: rgba(242, 238, 224, .8); font-size: 13.5px; max-width: 34em; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 27px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 550; color: rgba(246, 241, 227, .92);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
}
.hero-chip .ic { width: 14px; height: 14px; opacity: .8; }

.hero-ring { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ring { position: relative; width: 152px; height: 152px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 9; }
.ring .bar {
  fill: none; stroke: #E9DDBB; stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--ease-out);
  filter: drop-shadow(0 0 10px rgba(233, 221, 187, .35));
}
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.ring-center b {
  font-family: var(--font-display); font-size: 31px; font-weight: 600;
  letter-spacing: -.04em; color: #FBF8EE; font-variant-numeric: tabular-nums;
}
.ring-center b i { font-style: normal; font-size: 15px; opacity: .72; margin-left: 1px; }
.ring-center span { font-size: 11.5px; color: rgba(242, 238, 224, .6); letter-spacing: .08em; }
.hero-ring-foot { display: flex; gap: 16px; text-align: center; }
.hero-ring-foot div { display: flex; flex-direction: column; line-height: 1.3; }
.hero-ring-foot b { font-size: 15px; font-variant-numeric: tabular-nums; }
.hero-ring-foot span { font-size: 11.5px; color: rgba(242, 238, 224, .6); }

/* ------------------------------- KPI 卡片 ------------------------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  position: relative; overflow: hidden;
  padding: 20px 20px 18px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line); }
.kpi-top { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.kpi-ic {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line-2);
}
.kpi-ic .ic { width: 15px; height: 15px; }
.kpi-label { font-size: 12.5px; color: var(--ink-3); font-weight: 550; letter-spacing: .01em; }
.kpi-val {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
  letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums;
}
.kpi-val small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.kpi-sub { margin-top: 8px; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi-sub .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.kpi-sub.jade { color: var(--jade); }
.kpi-sub.gold { color: var(--gold); }
.kpi-sub.violet { color: var(--violet); }
.kpi-spark { position: absolute; right: 14px; bottom: 12px; opacity: .5; }
.kpi.accent {
  border-color: transparent; color: #F6F2E6;
  background: linear-gradient(152deg, #135B47, #0C4436 78%);
  box-shadow: 0 18px 40px -26px rgba(10, 59, 46, .9);
}
.kpi.accent .kpi-label, .kpi.accent .kpi-sub { color: rgba(246, 242, 230, .68); }
.kpi.accent .kpi-val { color: #FBF8EE; }
.kpi.accent .kpi-val small { color: rgba(246, 242, 230, .6); }
.kpi.accent .kpi-ic { color: #F2EEE0; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .16); }

/* -------------------------------- 双列区 -------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* ------------------------------- 分布条 -------------------------------- */
.bars { display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 74px; align-items: center; gap: 12px; }
.bar-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.bar-name .dot { width: 7px; height: 7px; border-radius: 50%; }
.bar-track { height: 9px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: 999px; width: 0;
  transition: width .9s var(--ease-out);
}
.bar-meta { text-align: right; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bar-meta b { color: var(--ink); font-weight: 600; font-size: 13.5px; }

/* ------------------------------- 楼层行 -------------------------------- */
.floor-list { display: flex; flex-direction: column; gap: 10px; }
.floor-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 11px 14px; border-radius: 15px; background: var(--card-2); border: 1px solid var(--line-2);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.floor-row:hover { background: var(--card); border-color: var(--line); }
.floor-no { display: flex; align-items: baseline; gap: 3px; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.floor-no small { font-size: 10.5px; color: var(--ink-3); font-weight: 500; }
.segs { display: flex; gap: 3px; flex-wrap: wrap; }
.segs i {
  width: 13px; height: 9px; border-radius: 3px; background: var(--line);
  transition: transform .2s var(--ease);
}
.segs i.on { background: var(--jade); }
.segs i.vacant { background: var(--gold); opacity: .55; }
.floor-rate { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.floor-rate b { color: var(--ink); font-weight: 600; }

/* ------------------------------- 时间线 -------------------------------- */
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 13px 4px; border-bottom: 1px solid var(--line-2);
}
.tl-item:last-child { border-bottom: 0; }
.tl-time { font-family: var(--font-num); font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }
.tl-time b { display: block; color: var(--ink-2); font-weight: 600; font-size: 12px; }
.tl-body { display: flex; align-items: center; gap: 9px; min-width: 0; flex-wrap: wrap; }
.tl-body .room { font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tl-body .what { font-size: 13px; color: var(--ink-2); }
.tl-diff { display: flex; gap: 6px; flex-wrap: wrap; }
.diff-chip {
  font-size: 11.5px; padding: 2px 8px; border-radius: 7px;
  background: var(--card-2); color: var(--ink-3); border: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums;
}
.diff-chip b { color: var(--ink); font-weight: 600; }
.diff-chip.u { color: var(--jade); border-color: transparent; background: var(--jade-soft); }
.diff-chip.d { color: var(--rose); border-color: transparent; background: var(--rose-soft); }

.badge {
  display: inline-flex; align-items: center; height: 23px; padding: 0 9px; border-radius: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line-2);
}
.badge.b-新增, .badge.b-导入新增 { background: var(--jade-soft); color: var(--jade); border-color: transparent; }
.badge.b-编辑, .badge.b-导入更新, .badge.b-批量修改 { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.badge.b-删除 { background: var(--rose-soft); color: var(--rose); border-color: transparent; }

/* =============================== 房源管理 =============================== */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; }
.toolbar-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }

.list-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; font-size: 12.5px; color: var(--ink-3); }
.list-meta b { color: var(--ink); font-weight: 650; }

/* ------------------------------- 提醒条 ------------------------------- */
.notice {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 15px 18px; border-radius: var(--r-lg);
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
}
.notice-ic {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); flex: 0 0 auto;
}
.notice-ic .ic { width: 18px; height: 18px; }
.notice-txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 1px; }
.notice-txt b { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.notice-txt span { font-size: 12.5px; color: var(--ink-3); }
.notice .btn { background: var(--card); border-color: transparent; box-shadow: var(--shadow-1); }

/* -------------------------------- 表格 -------------------------------- */
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table.rooms { width: 100%; border-collapse: separate; border-spacing: 0; }
table.rooms th {
  position: sticky; top: 0; z-index: 2; text-align: left; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); padding: 15px 14px; background: var(--card-2);
  border-bottom: 1px solid var(--line);
}
table.rooms th:first-child { padding-left: 20px; }
table.rooms td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; vertical-align: middle; }
table.rooms td:first-child { padding-left: 20px; }
table.rooms tbody tr { transition: background .18s var(--ease); }
table.rooms tbody tr:hover { background: var(--card-2); }
table.rooms tbody tr.selected { background: color-mix(in srgb, var(--jade-soft) 62%, transparent); }
table.rooms tbody tr:last-child td { border-bottom: 0; }
.cell-room { font-family: var(--font-display); font-weight: 650; font-size: 14.5px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cell-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.cell-note { color: var(--ink-3); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-time { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag-list { display: flex; gap: 5px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; opacity: 0; transition: opacity .18s var(--ease); }
tr:hover .row-actions, tr:focus-within .row-actions { opacity: 1; }
.mini-btn {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  color: var(--ink-3); border: 1px solid transparent;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.mini-btn .ic { width: 15px; height: 15px; }
.mini-btn:hover { background: var(--card); color: var(--ink); border-color: var(--line); }
.mini-btn.danger:hover { color: var(--rose); background: var(--rose-soft); border-color: transparent; }

input[type="checkbox"] {
  appearance: none; width: 17px; height: 17px; border-radius: 6px;
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer;
  display: grid; place-content: center; transition: background .18s var(--ease), border-color .18s var(--ease);
}
input[type="checkbox"]:hover { border-color: var(--ink-3); }
input[type="checkbox"]::after {
  content: ""; width: 9px; height: 9px; transform: scale(0);
  clip-path: polygon(14% 48%, 0 62%, 40% 100%, 100% 22%, 86% 8%, 38% 72%);
  background: #fff; transition: transform .16s var(--ease-out);
}
input[type="checkbox"]:checked { background: var(--jade); border-color: var(--jade); }
input[type="checkbox"]:checked::after { transform: scale(1); }

/* ------------------------------- 房源卡片 ------------------------------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px; }
.room-card {
  position: relative; overflow: hidden;
  padding: 17px 17px 15px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.room-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line); }
.room-card.selected { border-color: var(--jade); box-shadow: 0 0 0 2px var(--jade-soft); }
.rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rc-no { font-family: var(--font-display); font-size: 21px; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.rc-rent { margin-top: 10px; display: flex; align-items: baseline; gap: 3px; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rc-rent small { font-size: 11.5px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.rc-meta { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.rc-tags { display: flex; gap: 5px; margin-top: 11px; min-height: 22px; flex-wrap: wrap; }
.rc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line-2); }
.rc-check { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-3); }
.rc-actions { display: flex; gap: 2px; }

/* ------------------------------ 批量浮条 ------------------------------ */
.bulkbar {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 0);
  z-index: 120; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 11px 14px 11px 18px; border-radius: 20px;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  color: var(--bg); box-shadow: var(--shadow-pop);
  backdrop-filter: blur(14px);
  animation: bulkIn .36s var(--ease-out) both;
  max-width: calc(100vw - 32px);
}
@keyframes bulkIn { from { opacity: 0; transform: translate(-50%, 16px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.bulkbar-count { font-size: 13px; font-weight: 550; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.bulkbar-count b { font-family: var(--font-display); font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.bulkbar-fields, .bulkbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bulkbar .select, .bulkbar .input { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: var(--bg); }
html[data-theme="dark"] .bulkbar { background: rgba(243, 241, 233, .95); color: #0B0C0A; }
html[data-theme="dark"] .bulkbar .select, html[data-theme="dark"] .bulkbar .input { background: rgba(0, 0, 0, .06); border-color: rgba(0, 0, 0, .12); color: #0B0C0A; }
.bulkbar .input::placeholder { color: currentColor; opacity: .5; }
.bulkbar .btn-ghost { color: inherit; border-color: rgba(255, 255, 255, .22); }
html[data-theme="dark"] .bulkbar .btn-ghost { border-color: rgba(0, 0, 0, .18); }
.bulkbar .btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.bulkbar .btn-ghost.danger { color: #FFB4A0; border-color: rgba(255, 180, 160, .4); }
.bulkbar .btn-primary { background: #F2EEE0; color: #10241D; border-color: transparent; }
html[data-theme="dark"] .bulkbar .btn-primary { background: #0F5F4A; color: #F7F3E7; }

/* ================================ 数据分析 ================================ */
.chart {
  display: flex; align-items: flex-end; gap: 12px; height: 210px; padding: 12px 4px 0;
  border-bottom: 1px solid var(--line);
}
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.chart-bar {
  width: 100%; max-width: 56px; border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--jade-2), var(--jade));
  min-height: 4px; height: 0; position: relative;
  transition: height .9s var(--ease-out), filter .2s var(--ease);
}
.chart-col:hover .chart-bar { filter: brightness(1.08); }
.chart-val { font-family: var(--font-display); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.chart-axis { display: flex; gap: 12px; padding-top: 10px; }
.chart-axis div { flex: 1; text-align: center; font-size: 11.5px; color: var(--ink-3); }

.insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.insight {
  padding: 16px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 6px;
}
.insight .lbl { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }
.insight .val { font-family: var(--font-display); font-size: 19px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.insight .hint { font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* ================================ 变更记录 ================================ */
.hist-list { display: flex; flex-direction: column; }
.hist-row {
  display: grid; grid-template-columns: 108px 66px 92px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 13px 6px; border-bottom: 1px solid var(--line-2);
  transition: background .18s var(--ease);
}
.hist-row:last-child { border-bottom: 0; }
.hist-row:hover { background: var(--card-2); }
.hist-time { font-family: var(--font-num); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hist-room { font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* ================================= 弹窗 ================================= */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; }
.modal-veil {
  position: absolute; inset: 0; background: rgba(12, 14, 12, .48);
  backdrop-filter: blur(7px) saturate(.9);
  animation: veilIn .3s var(--ease) both;
}
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative; width: min(620px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 26px 28px 22px; border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-pop);
  animation: modalIn .38s var(--ease-out) both;
}
.modal-card.modal-sm { width: min(420px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-head h2 { font-size: 20px; margin-top: 4px; }
.confirm-text { color: var(--ink-2); font-size: 13.5px; line-height: 1.7; padding: 4px 0 6px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > span { font-size: 12px; color: var(--ink-3); font-weight: 550; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--card-2); color: var(--ink);
  outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input, .field select { height: 40px; }
.field textarea { resize: vertical; min-height: 74px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--jade); background: var(--card); box-shadow: 0 0 0 3px var(--jade-soft); }
.field select { appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23837D6D' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

/* ================================ 响应式 ================================ */
@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-ring { flex-direction: row; align-items: center; gap: 22px; }
}
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .toolbar { align-items: stretch; }
  .field-search { flex: 1; min-width: 0; }
  .hist-row { grid-template-columns: 1fr auto; gap: 6px; }
  .hist-row .hist-time { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 24px 22px; border-radius: 22px; }
  .ring { width: 132px; height: 132px; }
  .ring-center b { font-size: 26px; }
  .bulkbar { left: 12px; right: 12px; transform: none; border-radius: 18px; bottom: 12px; }
  @keyframes bulkIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .room-grid { grid-template-columns: minmax(0, 1fr); }
  table.rooms th:nth-child(7), table.rooms td:nth-child(7),
  table.rooms th:nth-child(8), table.rooms td:nth-child(8) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
