/* 行业岗位 AI 方案规划器 — 玻璃态深色 UI */
:root {
  --bg: #060a12;
  --bg-2: #0c1220;
  --glass: rgba(15, 23, 42, 0.72);
  --glass-border: rgba(148, 163, 184, 0.12);
  --glass-highlight: rgba(56, 189, 248, 0.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-3: #34d399;
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  --aside-w: 360px;
  --nav-h: 64px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(129, 140, 248, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(52, 211, 153, 0.04), transparent),
    var(--bg);
}

.planner-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── 顶栏 ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.65rem 1rem;
  min-height: var(--nav-h);
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.top-tabs {
  display: flex;
  gap: 0.35rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.top-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.top-tab:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.top-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(99, 102, 241, 0.35));
  border-color: rgba(56, 189, 248, 0.35);
}

/* ── 协作房间栏 ── */
.room-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  width: 100%;
  order: 10;
  padding: 0.35rem 0 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 0.15rem;
}

.room-bar-label {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.room-bar input[type="text"] {
  flex: 1 1 120px;
  min-width: 0;
  max-width: 160px;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(8, 14, 26, 0.8);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.room-bar input.room-name-input {
  max-width: 140px;
  letter-spacing: normal;
  text-transform: none;
}

.sync-status {
  font-size: 0.68rem;
  color: var(--muted);
  flex: 1 1 100%;
}

.sync-status.online {
  color: var(--accent-3);
}

.sync-status.offline {
  color: var(--danger);
}

.sync-status.local {
  color: var(--muted);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 200px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.legacy-link {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
}

.legacy-link:hover {
  text-decoration: underline;
}

/* ── 录入页单列 ── */
.planner-single {
  max-width: 680px;
  margin: 0 auto;
  padding: 0.85rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.panel-result .req-list {
  gap: 0.75rem;
}

/* ── 密码弹窗 ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.modal-desc {
  margin: 0.4rem 0 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.modal-actions .btn {
  flex: 1;
  min-height: 44px;
}

.planner-main-full {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.hint-link {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.hint-link a {
  color: var(--accent);
}

/* ── 主布局 ── */
.planner-app {
  display: grid;
  grid-template-columns: var(--aside-w) 1fr;
  flex: 1;
  min-height: calc(100vh - var(--nav-h));
}

.planner-aside {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  position: sticky;
  top: var(--nav-h);
  border-right: 1px solid var(--glass-border);
}

.planner-main {
  padding: 1.25rem 1.5rem 2.5rem;
  overflow-y: auto;
}

/* ── 面板 ── */
.panel {
  border-radius: var(--radius);
  padding: 1rem;
}

.panel-glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.panel-accent {
  border-color: rgba(56, 189, 248, 0.22);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.08), rgba(15, 23, 42, 0.75));
}

.panel-head {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.step-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.25));
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.panel-heading {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.panel-desc {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.field-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.field + .field {
  margin-top: 0.65rem;
}

.field-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(8, 14, 26, 0.85);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 2rem;
}

textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

select:disabled,
textarea:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── 配置摘要 ── */
.config-summary {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.config-summary-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.dot-ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.config-summary-meta {
  margin: 0.35rem 0 0 1.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.link-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0.2rem 0.4rem;
}

.link-btn:hover {
  text-decoration: underline;
}

/* ── 按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s, transform 0.1s;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-glow {
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.14);
}

.btn-block {
  width: 100%;
  margin-top: 0.55rem;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.status-line {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.4rem;
  min-height: 1em;
}

.status-line.error {
  color: var(--danger);
}

.status-line.ok {
  color: var(--accent-3);
}

/* ── 主区 ── */
.main-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.main-hero h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-hero p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 42rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.select-pill {
  width: auto;
  min-width: 160px;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.role-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.role-filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.role-filter-select {
  min-width: 200px;
  max-width: 100%;
}

.role-filter-hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.design-headline {
  margin: 0 0 0.35rem;
}

.design-block + .design-block {
  margin-top: 1.15rem;
}

.design-solution-list,
.design-module-list {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.design-solution-list li + li,
.design-module-list li + li {
  margin-top: 0.65rem;
}

.design-solution-list p {
  margin: 0.25rem 0 0;
  color: var(--text);
  font-weight: 400;
}

.design-meta {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.25rem;
}

/* ── 需求卡片 ── */
.req-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.req-card {
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: border-color 0.2s;
}

.req-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
}

.req-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid var(--glass-border);
}

.req-card-head .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-weight: 500;
}

.tag.role {
  background: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
}

.req-time {
  font-size: 0.72rem;
  color: var(--muted);
}

.req-card-body {
  padding: 1rem;
  font-size: 0.86rem;
  line-height: 1.65;
}

.req-card-body h4 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.req-block + .req-block {
  margin-top: 1rem;
}

.req-block ul,
.req-block ol {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.req-card-actions {
  padding: 0 1rem 0.75rem;
}

.empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.35);
}

.empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.empty-state p {
  margin: 0.5rem auto 0;
  font-size: 0.85rem;
  max-width: 28rem;
  line-height: 1.55;
}

.empty-state a {
  color: var(--accent);
}

/* ── 设计方案 ── */
.design-section {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.08), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(52, 211, 153, 0.22);
  overflow: hidden;
}

.design-section-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(52, 211, 153, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.design-section-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--accent-3);
}

.design-prose {
  padding: 1rem;
  font-size: 0.86rem;
  line-height: 1.7;
}

.design-sub {
  margin: 1rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.design-prose-inner {
  margin-top: 1rem;
  white-space: pre-wrap;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(8, 14, 26, 0.5);
  border: 1px solid var(--glass-border);
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.mockup-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(8, 14, 26, 0.6);
  border: 1px solid var(--glass-border);
}

.mockup-frame {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1220;
  overflow: hidden;
}

.mockup-frame.aspect-portrait {
  aspect-ratio: 9 / 16;
}

.mockup-frame.aspect-landscape {
  aspect-ratio: 16 / 10;
}

.mockup-frame.aspect-square {
  aspect-ratio: 1 / 1;
}

.mockup-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0b1220;
}

.mockup-card .cap {
  padding: 0.55rem 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.mockup-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(11, 18, 32, 0.8);
  text-align: center;
  padding: 1rem;
}

.mockup-placeholder.aspect-portrait {
  aspect-ratio: 9 / 16;
}

.mockup-placeholder.aspect-landscape {
  aspect-ratio: 16 / 10;
}

.mockup-placeholder.aspect-square {
  aspect-ratio: 1 / 1;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .planner-app {
    grid-template-columns: 1fr;
  }

  .planner-aside {
    max-height: none;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .top-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
  }

  .brand {
    min-width: 0;
    flex: 1 1 55%;
  }

  .top-tabs {
    order: 0;
    flex: 1 1 100%;
    width: 100%;
    justify-content: stretch;
  }

  .top-tab {
    flex: 1;
    min-height: 44px;
    font-size: 0.88rem;
  }

  .planner-shell {
    width: 100%;
    max-width: 100vw;
  }

  .planner-single {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0.625rem 0.625rem 2rem;
  }

  .planner-main,
  .planner-main-full {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0.625rem 0.625rem 2.5rem;
  }

  .panel {
    padding: 0.85rem 0.75rem;
  }

  .main-hero h1 {
    font-size: 1.2rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .select-pill {
    width: 100%;
    min-height: 44px;
  }

  .btn {
    min-height: 44px;
  }

  select,
  textarea,
  input[type="text"],
  input[type="password"] {
    font-size: 16px; /* 防止 iOS 缩放 */
    min-height: 44px;
  }

  textarea {
    min-height: 120px;
  }

  .mockup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
  }

  .top-nav {
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
  }

  .planner-single,
  .planner-main,
  .planner-main-full {
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
  }

  .panel {
    padding: 0.75rem 0.65rem;
    border-radius: 12px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand strong {
    font-size: 0.88rem;
  }

  .stat-card {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 380px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .brand-sub {
    display: none;
  }
}

/* ── 房间总览页 ── */
.overview-stats {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.rooms-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(8, 14, 26, 0.55);
}

.rooms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.rooms-table th,
.rooms-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: middle;
}

.rooms-table th {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
}

.rooms-table tr:last-child td {
  border-bottom: none;
}

.rooms-table td.num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rooms-table td.muted {
  color: var(--muted);
  font-size: 0.78rem;
}

.rooms-code {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

.rooms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  white-space: nowrap;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.pill-ok {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

@media (max-width: 720px) {
  .rooms-table thead {
    display: none;
  }

  .rooms-table tr {
    display: block;
    padding: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
  }

  .rooms-table td {
    display: flex;
    justify-content: space-between;
    border: none;
    padding: 0.25rem 0;
  }

  .rooms-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    margin-right: 0.5rem;
  }

  .rooms-actions {
    justify-content: flex-end;
    width: 100%;
  }
}
