:root {
  --bg: #08111f;
  --bg-soft: #101a2f;
  --panel: rgba(16, 26, 48, 0.85);
  --panel-2: rgba(18, 30, 55, 0.92);
  --text: #edf4ff;
  --muted: #9eb2d2;
  --line: rgba(255, 255, 255, 0.09);
  --primary: #82b1ff;
  --primary-2: #5fd3ff;
  --danger: #ff7d93;
  --success: #6dd9a6;
  --warning: #ffd27d;
  --shadow: 0 18px 60px rgba(0, 0, 0, .28);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(95,211,255,.18), transparent 28%),
    radial-gradient(circle at top right, rgba(130,177,255,.15), transparent 26%),
    linear-gradient(180deg, #0b1426 0%, #08111f 50%, #08111f 100%);
}
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}
a { color: inherit; text-decoration: none; }
input, select, button { font: inherit; }
input, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background-color: rgba(255,255,255,0.05);
  color: var(--text);
  outline: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select option {
  background-color: #101a2f;
  color: #edf4ff;
}
select option:checked,
select option:hover {
  background-color: #1d4f9f;
  color: #ffffff;
}
input:focus, select:focus {
  border-color: rgba(130,177,255,.45);
  box-shadow: 0 0 0 3px rgba(130,177,255,.12);
}
label {
  display: block;
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.account-profile-form select {
  display: block;
  width: 100% !important;
  min-height: 48px;
  padding: 14px 42px 14px 16px !important;
  border-radius: 14px;
  border: 1px solid var(--line);
  background-color: rgba(255,255,255,0.05);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.account-profile-form select:focus {
  border-color: rgba(130,177,255,.45);
  box-shadow: 0 0 0 3px rgba(130,177,255,.12);
}
button, .anchor-btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
button:hover, .anchor-btn:hover, .chip:hover { transform: translateY(-1px); }
.shell {
  position: relative;
  z-index: 1;
  max-width: 1460px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}
.auth-shell { max-width: 1100px; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.topbar > div:first-child {
  min-width: 0;
}
.topbar.compact { margin-bottom: 18px; }
.brand { font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.muted {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.local-datetime {
  overflow-wrap: anywhere;
}
.top-actions, .lang-switch, .row-compact, .chip-row, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.top-actions > *,
.lang-switch > * {
  flex: 0 0 auto;
}
.chip, .user-pill, .feature-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.app-topbar {
  align-items: flex-start;
  gap: 18px 24px;
}
.app-topbar-copy {
  flex: 1 1 320px;
  min-width: 0;
}
.app-topbar-actions {
  flex: 1 1 720px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
  min-width: 0;
}
.topbar-nav,
.dashboard-meta-row,
.dashboard-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}
.topbar-nav {
  flex: 1 1 auto;
}
.topbar-nav .chip.active {
  background: rgba(95,211,255,.18);
  border-color: rgba(95,211,255,.34);
  color: #f3f8ff;
}
.header-menu {
  position: relative;
  flex: 0 0 auto;
}
.header-menu summary {
  list-style: none;
}
.header-menu summary::-webkit-details-marker {
  display: none;
}
.header-menu-trigger {
  min-height: 44px;
}
.header-menu-trigger::after {
  content: "▾";
  font-size: 12px;
  opacity: .75;
  margin-left: 4px;
}
.header-menu[open] .header-menu-trigger::after {
  content: "▴";
}
.header-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(11, 20, 38, .98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  z-index: 40;
}
.header-menu-panel.left {
  right: auto;
  left: 0;
}
.menu-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8ea6c9;
  margin-bottom: 10px;
}
.menu-user {
  margin-bottom: 12px;
}
.menu-user strong,
.menu-user span {
  display: block;
}
.menu-user span {
  color: var(--muted);
  font-size: 13px;
}
.menu-user strong {
  margin-top: 4px;
  font-size: 18px;
}
.menu-section {
  display: grid;
  gap: 8px;
}
.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.menu-link::after {
  content: "›";
  opacity: .55;
}
.menu-link.danger::after {
  content: "";
}
.menu-link:hover {
  background: rgba(130,177,255,.12);
  border-color: rgba(130,177,255,.24);
}
.menu-link.danger {
  color: #ffd6dd;
  background: rgba(255,123,147,.12);
  border-color: rgba(255,123,147,.22);
}
.menu-divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(255,255,255,.08);
}
.header-menu-panel .lang-switch {
  width: 100%;
  justify-content: space-between;
  gap: 8px;
}
.header-menu-panel .lang-switch-label {
  padding-left: 4px;
}
.dashboard-topbar { align-items: flex-start; }
.dashboard-topbar .dashboard-top-actions {
  flex: 1 1 760px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
}
.dashboard-user-pill {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.dashboard-topbar .lang-switch-label { white-space: nowrap; }
.admin-header {
  align-items: flex-start;
  gap: 18px;
}
.admin-header-copy {
  flex: 1 1 280px;
  min-width: 0;
}
.admin-header-actions {
  flex: 0 1 auto;
  justify-content: flex-end;
}
.admin-header-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
  width: auto;
}
.admin-header-nav > * {
  flex: 0 1 auto;
  min-width: 0;
}
.admin-section-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.admin-section-summary h2 {
  margin: 0;
}
.metric-chart-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.metric-ring {
  --pct: 0;
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(rgba(98,196,255,.95) calc(var(--pct) * 1%), rgba(255,255,255,.08) 0);
}
.metric-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: rgba(7,18,45,.96);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.metric-ring span,
.metric-ring strong {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}
.metric-ring span {
  font-size: 12px;
  color: #9fb2d1;
}
.metric-ring strong {
  font-size: 22px;
  margin-top: 2px;
}
.admin-user-card {
  gap: 18px;
}
.admin-actions-grid {
  display: grid;
  gap: 10px;
  width: 100%;
}
.admin-reset-form input {
  min-width: 180px;
  flex: 1 1 180px;
}
.admin-alert-panel .status-grid strong {
  font-size: 20px;
}
.admin-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.admin-bulk-toolbar > .ghost-btn {
  flex: 0 0 auto;
}
.admin-select-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  max-width: 100%;
}
.admin-select-chip input,
.admin-meeting-select input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
}
.admin-meeting-item {
  gap: 12px;
}
.admin-meeting-row {
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 18px;
}
.admin-meeting-select {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  min-width: 0;
  flex: 1 1 280px;
}
.admin-meeting-select .item-title {
  overflow-wrap: anywhere;
}
.admin-meeting-row .wrap-actions {
  justify-content: flex-end;
  flex: 0 1 auto;
}
@media (max-width: 960px) {
  .admin-header {
    flex-direction: column;
  }
  .admin-header-actions,
  .admin-header-nav {
    width: 100%;
    justify-content: flex-start;
  }
  .admin-meeting-row {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-meeting-row .wrap-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .admin-header-nav > .chip,
  .admin-header-nav > .lang-switch {
    width: 100%;
  }
  .admin-header-nav > .chip {
    text-align: center;
    justify-content: center;
  }
  .admin-bulk-toolbar {
    align-items: stretch;
  }
  .admin-bulk-toolbar > .ghost-btn,
  .admin-select-chip {
    width: 100%;
    justify-content: center;
  }
  .admin-section-summary {
    align-items: flex-start;
  }
}
.chip.active { background: rgba(130,177,255,.18); border-color: rgba(130,177,255,.34); }
.chip.danger { color: white; background: rgba(255,123,147,.16); }
.source-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(8,17,31,.76);
  box-shadow: 0 16px 42px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}
.source-dock-label {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.source-link:hover {
  transform: translateY(-1px);
  border-color: rgba(130,177,255,.38);
  background: rgba(130,177,255,.13);
}
.source-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}
.gitee-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #c71d23;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.lang-switch {
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.lang-switch-label {
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.lang-chip {
  min-width: 54px;
  justify-content: center;
  padding: 8px 12px;
  font-weight: 800;
}
.feature-chip { font-size: 13px; color: var(--muted); }
.action-chip { color: var(--text); }
.hero-card, .panel, .form-card, .status-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.glass-highlight {
  position: relative;
  overflow: hidden;
}
.glass-highlight::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(95,211,255,.18), transparent 65%);
}
.hero-card {
  padding: 28px;
  margin-bottom: 22px;
}
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 18px;
  align-items: stretch;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { margin: 6px 0 10px; font-size: 40px; line-height: 1.1; }
.hero-copy p { margin: 0 0 8px; line-height: 1.65; max-width: 68ch; }
.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--primary-2);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.panel {
  padding: 22px;
}
.panel-glow {
  box-shadow: 0 16px 48px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.03);
}
.panel h2, .panel h3 { margin-top: 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}
.section-tag {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(130,177,255,.12);
  color: var(--primary);
  border: 1px solid rgba(130,177,255,.2);
}
.primary-btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #07111d;
  font-weight: 800;
  margin-top: 16px;
  box-shadow: 0 12px 24px rgba(95,211,255,.16);
}
.ghost-btn {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--line);
}
.ghost-btn.active {
  background: rgba(130,177,255,.18);
  border-color: rgba(130,177,255,.36);
  box-shadow: 0 0 0 1px rgba(130,177,255,.08) inset;
}
.ghost-btn.danger { color: var(--danger); }
.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}
.notice.error { border-color: rgba(255,123,147,.42); color: #ffd4dd; }
.notice.warning { border-color: rgba(255,210,125,.35); color: #ffeabc; }
.hidden { display: none; }
.result-box { margin-top: 16px; }
.text-link { display: inline-block; margin-top: 14px; color: var(--primary-2); }
.auth-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}
.form-card { padding: 22px; }
.elevated-card {
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,.08);
}
.status-card {
  padding: 22px;
  align-self: stretch;
}
.status-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.status-grid div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.status-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.status-grid strong { font-size: 16px; }
.compact-panel { min-height: 150px; }
.list-panel { display: grid; gap: 14px; }
.list-item {
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.list-item.stacked { align-items: flex-start; }
.item-title { font-weight: 700; margin-bottom: 4px; }
.centered { text-align: center; }
.narrow-panel {
  max-width: 560px;
  margin: 80px auto 0;
}
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
}
.mini-panel { margin-top: 18px; }
.slim-btn { width: auto; min-width: 140px; }
.mt-12 { margin-top: 12px; }

@media (max-width: 1080px) {
  .dashboard-hero, .grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .grid.two, .auth-card { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 32px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .app-topbar,
  .dashboard-topbar,
  .admin-header {
    gap: 12px;
  }
  .app-topbar-copy,
  .app-topbar-actions,
  .dashboard-topbar .dashboard-top-actions,
  .admin-header-copy,
  .admin-header-actions,
  .topbar-nav,
  .dashboard-meta-row,
  .dashboard-link-row,
  .admin-header-nav {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .top-actions,
  .app-topbar-actions,
  .dashboard-topbar .dashboard-top-actions {
    width: 100%;
  }
  .app-topbar-actions,
  .dashboard-topbar .dashboard-top-actions {
    justify-content: flex-start;
  }
  .topbar-nav,
  .dashboard-meta-row,
  .dashboard-link-row {
    justify-content: flex-start;
  }
  .header-menu-panel {
    right: 0;
    left: auto;
  }
  .side-panel { position: static; }
}
@media (max-width: 720px) {
  .shell {
    padding: 20px 14px 32px;
  }
  .brand {
    font-size: 24px;
  }
  .top-actions {
    align-items: center;
  }
  .top-actions .lang-switch {
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
  }
  .app-topbar-actions,
  .dashboard-topbar .dashboard-top-actions {
    gap: 8px;
  }
  .topbar-nav,
  .dashboard-meta-row,
  .dashboard-link-row {
    width: 100%;
    gap: 8px;
  }
  .top-actions > *,
  .topbar-nav > *,
  .dashboard-meta-row > *,
  .dashboard-link-row > * {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
  }
  .top-actions .chip,
  .top-actions .user-pill,
  .topbar-nav .chip,
  .header-menu-trigger {
    width: auto;
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }
  .header-menu {
    flex: 0 0 auto;
  }
  .header-menu-panel,
  .header-menu-panel.left {
    left: 0;
    right: auto;
  }
  .hero-card {
    padding: 22px;
  }
  .source-dock {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: calc(100% - 28px);
    margin: 0 auto 18px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .source-dock-label {
    flex: 1 1 100%;
    text-align: center;
  }
  .source-link {
    flex: 1 1 120px;
  }
}
@media (max-width: 620px) {
  .button-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .app-topbar .top-actions,
  .app-topbar .topbar-nav,
  .dashboard-topbar .dashboard-top-actions,
  .dashboard-topbar .dashboard-meta-row,
  .dashboard-topbar .dashboard-link-row {
    gap: 6px;
  }
}


.quick-grid .compact-panel { min-height: 200px; }
.link-stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.wide-link {
  width: 100%;
  justify-content: flex-start;
}
.compact-list { margin-top: 12px; }
.history-item {
  align-items: center;
}
.history-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.section-tag.active {
  background: rgba(109,217,166,.12);
  border-color: rgba(109,217,166,.25);
  color: var(--success);
}
.section-tag.ended {
  background: rgba(255,125,147,.12);
  border-color: rgba(255,125,147,.25);
  color: var(--danger);
}
.wrap-actions {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .history-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .history-actions {
    width: 100%;
    align-items: stretch;
  }
}

.grid.one {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.guide-layout {
  display: grid;
  gap: 18px;
}
.support-wrap {
  display: grid;
  gap: 14px;
}
.guide-card {
  padding: 18px;
  border-radius: 18px;
}
.directory-row {
  font-size: 13px;
  margin-bottom: 10px;
}
.guide-item {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 0 14px;
  margin-top: 10px;
}
.guide-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 700;
}
.guide-item summary::-webkit-details-marker { display: none; }
.guide-item p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}
.support-grid {
  display: grid;
  gap: 12px;
}
.support-grid div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.support-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.support-grid strong {
  font-size: 15px;
  word-break: break-word;
}

.quickstart-shell {
  max-width: 1180px;
}
.quickstart-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
}
.quickstart-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.quickstart-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  row-gap: 10px;
  min-height: 230px;
}
.quickstart-card h2,
.quickstart-detail h2,
.quickstart-note h2 {
  margin-top: 0;
}
.quickstart-card h2 {
  min-width: 0;
  margin-bottom: 0;
  line-height: 1.25;
}
.quickstart-card p,
.quickstart-note p {
  color: var(--muted);
  line-height: 1.7;
}
.quickstart-card p {
  grid-column: 1 / -1;
  margin-top: 0;
}
.quickstart-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(109,217,166,.14);
  color: var(--success);
  border: 1px solid rgba(109,217,166,.28);
  font-weight: 800;
}
.quickstart-detail-grid {
  margin-bottom: 22px;
}
.quickstart-detail ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}
.quickstart-detail li + li {
  margin-top: 8px;
}
.quickstart-note {
  padding: 24px;
}


.auth-landing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 420px);
  gap: 28px;
  align-items: center;
  min-height: 620px;
  padding: 34px;
}
.landing-copy {
  position: relative;
  z-index: 1;
  padding: 12px 6px 12px 4px;
  max-width: 620px;
}
.landing-copy h1 {
  margin: 10px 0 12px;
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: -.03em;
}
.landing-copy p {
  max-width: 58ch;
}
.landing-tagline {
  font-size: 22px;
  font-weight: 700;
  color: #dceaff;
  margin-bottom: 8px;
}
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 16px;
}
.landing-actions .ghost-btn {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.small-note {
  font-size: 14px;
}
.auth-form-card {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  padding: 28px;
}
.auth-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.auth-inline-actions > * {
  flex: 1 1 160px;
}
.auth-code-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(130,177,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.auth-code-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-code-attempt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(130,177,255,.14);
  border: 1px solid rgba(130,177,255,.22);
  color: #dceaff;
  font-size: 12px;
  font-weight: 700;
}
.auth-form-card button[disabled] {
  opacity: .58;
  cursor: not-allowed;
}
.auth-turnstile-block {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.auth-turnstile-block .cf-turnstile {
  width: 100%;
  max-width: 100%;
  min-height: 65px;
  overflow: hidden;
}
.auth-turnstile-block iframe {
  max-width: 100%;
}
.narrow-shell {
  max-width: 980px;
}
.guide-shell {
  max-width: 1180px;
}
.help-page-panel,
.support-page-panel {
  padding: 26px;
}
.guide-page-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.guide-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  padding: 0;
}
.guide-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
}
.guide-item summary::-webkit-details-marker {
  display: none;
}
.guide-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.7;
}
.guide-item ul {
  margin: -4px 0 18px;
  padding: 0 20px 0 38px;
  color: var(--muted);
  line-height: 1.75;
}
.guide-item li + li {
  margin-top: 6px;
}
.guide-book-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
}
.guide-book-nav,
.guide-book {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.guide-book-nav {
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
  position: sticky;
  top: 18px;
}
.guide-book-nav-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 6px 8px;
}
.guide-book-tab {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.guide-book-tab:hover,
.guide-book-tab.active {
  background: rgba(130,177,255,.14);
  border-color: rgba(130,177,255,.24);
  transform: none;
}
.guide-book {
  position: relative;
  min-height: 520px;
  border-radius: 8px;
  padding: 30px 34px 24px;
  overflow: hidden;
}
.guide-book-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.guide-book-topline h2 {
  margin: 0;
  font-size: 28px;
}
.guide-book-hint {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}
.guide-book-pages {
  position: relative;
  z-index: 1;
  min-height: 300px;
}
.guide-book-page {
  animation: guidePageIn .18s ease;
}
.guide-book-page h3 {
  margin: 0 0 12px;
  font-size: 24px;
}
.guide-book-page p,
.guide-book-page li {
  color: var(--muted);
  line-height: 1.85;
}
.guide-book-page p {
  margin: 0 0 18px;
}
.guide-book-page ul {
  margin: 0;
  padding-left: 22px;
}
.guide-book-page li + li {
  margin-top: 10px;
}
.guide-book-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.guide-book-footer .ghost-btn {
  min-height: 44px;
}
.guide-book-footer .ghost-btn:first-child {
  justify-self: start;
}
.guide-book-footer .ghost-btn:last-child {
  justify-self: end;
}
.guide-book-footer .ghost-btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}
@keyframes guidePageIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
.support-grid-large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.support-grid-large div {
  min-height: 118px;
}
@media (max-width: 900px) {
  .quickstart-steps {
    grid-template-columns: 1fr;
  }
  .guide-book-shell {
    grid-template-columns: 1fr;
  }
  .guide-book-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-book-nav-title {
    grid-column: 1 / -1;
  }
  .guide-book {
    min-height: auto;
  }
  .auth-landing-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 22px;
  }
  .auth-form-card {
    justify-self: stretch;
    max-width: none;
  }
  .auth-inline-actions {
    flex-direction: column;
  }
  .auth-turnstile-block .cf-turnstile {
    min-height: 78px;
  }
  .landing-copy h1 {
    font-size: 38px;
  }
  .support-grid-large {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .auth-code-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .guide-book-nav {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .guide-book {
    padding: 22px 18px 18px;
  }
  .guide-book-topline {
    flex-direction: column;
    align-items: flex-start;
  }
  .guide-book-topline h2 {
    font-size: 24px;
  }
  .guide-book-page h3 {
    font-size: 22px;
  }
  .guide-book-footer {
    grid-template-columns: 1fr 1fr;
  }
  .guide-book-footer .anchor-btn {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
  }
  .guide-book-footer .ghost-btn:first-child,
  .guide-book-footer .ghost-btn:last-child {
    justify-self: stretch;
    width: 100%;
  }
}
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 88px;
}
.auth-links-row { display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-top: 14px; }
.single-column-card { max-width: 980px; margin: 0 auto; }
/* forgot password polish */
.auth-request-shell { max-width: 1120px; }
.password-reset-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 28px;
  align-items: stretch;
  min-height: 560px;
  padding: 30px;
}
.password-reset-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 6px;
}
.password-reset-copy h2 {
  margin: 6px 0 14px;
  font-size: 42px;
  line-height: 1.08;
}
.password-reset-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 56ch;
}
.password-reset-points {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.password-reset-points div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.password-reset-points strong { display:block; margin-bottom: 4px; }
.password-reset-form {
  width: 100%;
  max-width: 430px;
  justify-self: end;
  padding: 28px;
}
.password-reset-form textarea { min-height: 128px; resize: vertical; }
@media (max-width: 960px) {
  .password-reset-card { grid-template-columns: 1fr; min-height: auto; padding: 22px; }
  .password-reset-form { max-width: none; justify-self: stretch; }
}


/* shared responsive polish for non-room pages */
body:not(.room-page) .shell {
  max-width: 1480px;
}

@media (max-width: 960px) {
  body:not(.room-page) .shell {
    padding: 22px 16px 30px;
  }

  body:not(.room-page) .topbar {
    align-items: stretch;
  }

  body:not(.room-page) .app-topbar,
  body:not(.room-page) .top-actions,
  body:not(.room-page) .app-topbar-actions,
  body:not(.room-page) .topbar-nav {
    justify-content: flex-start;
  }

  body:not(.room-page) .app-topbar-actions,
  body:not(.room-page) .topbar-nav {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body:not(.room-page) .shell {
    padding: 18px 12px 26px;
  }

  body:not(.room-page) .topbar {
    gap: 12px;
  }

  body:not(.room-page) .topbar-nav,
  body:not(.room-page) .top-actions {
    gap: 8px;
  }

  body:not(.room-page) .topbar-nav .chip,
  body:not(.room-page) .header-menu-trigger,
  body:not(.room-page) .lang-switch {
    min-height: 42px;
  }
}

