:root {
  --bg: #090b14;
  --bg-soft: rgba(14, 18, 33, 0.86);
  --panel: rgba(12, 17, 31, 0.78);
  --panel-strong: rgba(18, 24, 43, 0.94);
  --line: rgba(166, 216, 255, 0.14);
  --line-strong: rgba(166, 216, 255, 0.28);
  --text: #edf6ff;
  --text-soft: rgba(221, 236, 255, 0.72);
  --text-dim: rgba(169, 189, 217, 0.6);
  --accent: #57d6ff;
  --accent-strong: #21a8ff;
  --violet: #8b5cf6;
  --emerald: #22c55e;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.46);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Manrope', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(59, 130, 246, 0.18), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.18), transparent 32%),
    radial-gradient(circle at 72% 76%, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(135deg, #06070d 0%, #090b14 45%, #0b1020 100%);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%);
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-noise,
.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-noise {
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.7px, transparent 0.7px);
  background-size: 10px 10px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 95%);
}

.page-grid {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(107, 123, 168, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 123, 168, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
}

.login-shell,
.console-shell {
  position: relative;
  z-index: 1;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  padding: 32px;
}

.login-panel,
.sidebar,
.console-main,
.modal-card,
.story-metric-card,
.story-footer-card,
.metric-card,
.panel-card,
.table-card,
.activity-card,
.session-card,
.audit-row,
.user-spotlight {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)) padding-box,
    linear-gradient(140deg, rgba(87, 214, 255, 0.18), rgba(139, 92, 246, 0.15)) border-box;
  background-color: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.login-panel {
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.login-panel::after,
.console-main::before,
.sidebar::before {
  content: '';
  position: absolute;
  inset: auto -12% -20% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(87, 214, 255, 0.18), transparent 66%);
  filter: blur(10px);
  pointer-events: none;
}

.login-story::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 68%);
}

.story-badge,
.demo-tag,
.story-signal,
.metric-trend,
.state-pill,
.pill,
.tip-label,
.mini-pill,
.status-badge,
.inline-badge,
.security-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.story-badge,
.demo-tag,
.story-signal,
.metric-trend,
.pill,
.tip-label,
.inline-badge,
.security-note {
  padding: 8px 14px;
}

.story-badge {
  color: var(--text-soft);
  width: fit-content;
}

.story-badge-dot,
.signal-dot,
.metric-trend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a5f3fc, #38bdf8);
  box-shadow: 0 0 16px rgba(87, 214, 255, 0.8);
}

.story-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.story-mark {
  width: 112px;
  height: 112px;
  padding: 16px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-small {
  font-size: 11px;
  letter-spacing: 0.26em;
}

.story-header h1,
.form-topline h2 {
  margin: 0;
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
}

.story-header h1 {
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.02;
}

.story-copy,
.form-description,
.story-metric-card p,
.story-footer-card p,
.login-tips p,
.metric-card p,
.metric-copy,
.activity-text,
.session-card p,
.audit-meta,
.empty-note,
.form-note {
  color: var(--text-soft);
  line-height: 1.72;
}

.story-copy {
  max-width: 760px;
  font-size: 17px;
  margin: 28px 0 0;
}

.story-metrics {
  margin-top: 34px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-metric-card,
.story-footer-card,
.metric-card,
.panel-card,
.table-card,
.activity-card,
.session-card,
.user-spotlight {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.story-metric-card {
  min-height: 190px;
}

.story-metric-index {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
}

.story-metric-card h2,
.story-footer-card h3,
.metric-card h3,
.section-head h2,
.panel-card h3,
.modal-header h2,
.table-title,
.activity-card h3,
.session-card h3,
.user-spotlight h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.story-footer-card {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.story-signal {
  color: #c6f9ff;
  background: rgba(30, 111, 138, 0.16);
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-topline {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.form-topline h2 {
  font-size: 42px;
}

.demo-tag {
  color: #d8fbff;
  white-space: nowrap;
}

.form-description {
  margin-top: 18px;
  font-size: 15px;
}

.form-stack {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.field-block {
  display: grid;
  gap: 10px;
}

.field-block span {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.field-block input,
.topbar-search input,
.table-toolbar input,
.table-toolbar select,
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 18px;
  padding: 15px 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field-block input:focus,
.topbar-search input:focus,
.table-toolbar input:focus,
.table-toolbar select:focus,
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  border-color: rgba(87, 214, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.field-block input::placeholder,
.topbar-search input::placeholder,
.table-toolbar input::placeholder,
.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: rgba(191, 207, 233, 0.48);
}

.table-toolbar select,
.form-grid select {
  color-scheme: light;
  color: #102033;
  -webkit-text-fill-color: #102033;
  text-shadow: none;
  border-color: rgba(140, 167, 208, 0.38);
  background-color: #f3f7ff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(233, 241, 255, 0.98)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23102033' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 16px center;
  background-size: auto, 14px 14px;
  padding-right: 46px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.table-toolbar select option,
.form-grid select option {
  color: #102033;
  background: #f3f7ff;
  font-weight: 600;
}

.table-toolbar select option:hover,
.table-toolbar select option:checked,
.form-grid select option:hover,
.form-grid select option:checked {
  color: #08111f;
  background: #cfe1ff;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px 92px;
  gap: 12px;
}

.captcha-box {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.inline-message {
  min-height: 24px;
  color: #ffb9c8;
  font-size: 14px;
}

.login-tips {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tip-label {
  width: fit-content;
  color: #dff7ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.btn {
  border: 0;
  border-radius: 18px;
  padding: 13px 18px;
  color: var(--text);
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #2563eb 48%, #7c3aed);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-danger {
  background: linear-gradient(135deg, #fb7185, #e11d48);
}

.btn-large {
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 700;
}

.btn-square {
  min-height: 54px;
}

.console-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.sidebar,
.console-main {
  border-radius: var(--radius-xl);
  position: relative;
}

.sidebar {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-brand img {
  width: 60px;
  height: 60px;
  border-radius: 20px;
}

.sidebar-brand strong,
.admin-chip strong {
  display: block;
  font-size: 18px;
}

.sidebar-brand span,
.admin-chip span,
.metric-copy .meta,
.row-meta,
.audit-subline,
.session-subline,
.table-subtitle {
  color: var(--text-dim);
  font-size: 13px;
}

.nav-stack {
  display: grid;
  gap: 10px;
}

.nav-link {
  text-align: left;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(87, 214, 255, 0.12);
  border-color: rgba(87, 214, 255, 0.18);
  color: var(--text);
}

.sidebar-foot-card {
  margin-top: auto;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(31, 49, 83, 0.56), rgba(14, 20, 36, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.console-main {
  padding: 24px;
  overflow: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.topbar h1 {
  margin: 6px 0 0;
  font-size: 34px;
}

.topbar-tools {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: end;
}

.topbar-search {
  min-width: 280px;
}

.topbar-clock {
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 14px;
}

.admin-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #7c3aed);
  font-weight: 800;
}

.view-root {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}

.metrics-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metric-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.metric-value {
  font-size: 44px;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1;
}

.metric-copy {
  display: grid;
  gap: 6px;
}

.metric-copy strong {
  font-size: 18px;
}

.metric-trend {
  color: #dffbff;
  font-size: 13px;
}

.chart-row,
.dual-grid,
.users-layout,
.detail-grid,
.audit-layout,
.sessions-layout {
  display: grid;
  gap: 20px;
}

.chart-row {
  grid-template-columns: 1.45fr 1fr;
}

.dual-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.panel-card,
.activity-card,
.table-card {
  min-width: 0;
}

.panel-head,
.section-head,
.table-toolbar,
.modal-header,
.modal-footer,
.session-card-head,
.audit-row-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.section-head {
  align-items: end;
}

.section-head p,
.panel-head p,
.modal-header p {
  margin: 0;
  color: var(--text-dim);
}

.panel-head h3,
.section-head h2,
.modal-header h2 {
  margin-bottom: 6px;
}

.sparkline,
.line-chart {
  width: 100%;
  height: 220px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.legend-row,
.signal-row,
.mini-grid,
.detail-meta-grid {
  display: grid;
  gap: 12px;
}

.legend-row {
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legend-chip,
.signal-item,
.mini-card,
.detail-meta-card {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-chip span,
.signal-item span,
.mini-card span,
.detail-meta-card span {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
  margin-bottom: 6px;
}

.legend-chip strong,
.signal-item strong,
.mini-card strong,
.detail-meta-card strong {
  font-size: 18px;
}

.activity-list,
.session-list,
.audit-list,
.table-list {
  display: grid;
  gap: 12px;
}

.activity-item,
.session-item,
.audit-row,
.table-row {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-item strong,
.audit-row strong,
.session-card strong,
.user-name {
  display: block;
}

.activity-meta,
.audit-meta,
.session-subline,
.row-meta {
  margin-top: 6px;
}

.table-card {
  padding: 22px;
}

.table-toolbar {
  margin: 18px 0;
  align-items: end;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.table-title {
  font-size: 24px;
}

.table-subtitle {
  margin-top: -2px;
}

.table-list {
  overflow: hidden;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.15fr 1.15fr 0.95fr 1.25fr;
  gap: 12px;
  align-items: center;
}

.table-head {
  padding: 0 16px 12px;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.table-row {
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.table-row:hover {
  border-color: rgba(87, 214, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.row-actions {
  display: flex;
  gap: 8px;
  justify-content: end;
  flex-wrap: wrap;
}

.row-actions .btn {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
}

.status-badge {
  padding: 8px 12px;
  width: fit-content;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-active {
  color: #baffd8;
  background: rgba(34, 197, 94, 0.12);
}

.status-pending {
  color: #ffe0a1;
  background: rgba(245, 158, 11, 0.12);
}

.status-disabled,
.status-revoked,
.status-offline {
  color: #ffc1cc;
  background: rgba(244, 63, 94, 0.12);
}

.status-online {
  color: #baffd8;
  background: rgba(34, 197, 94, 0.12);
}

.status-review {
  color: #d7f3ff;
  background: rgba(56, 189, 248, 0.12);
}

.inline-badge,
.security-note {
  color: var(--text-soft);
}

.users-layout {
  grid-template-columns: minmax(0, 1.25fr) 360px;
}

.user-spotlight {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spotlight-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.spotlight-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.85), rgba(124, 58, 237, 0.86));
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.user-name {
  font-size: 18px;
}

.detail-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.machine-code-box {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-family: 'Space Grotesk', monospace;
  font-size: 15px;
  color: #dffbff;
  word-break: break-all;
}

.security-note {
  font-size: 13px;
}

.sessions-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.session-card {
  display: grid;
  gap: 16px;
}

.session-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.session-big {
  font-size: 32px;
  font-family: 'Space Grotesk', sans-serif;
}

.heartbeat-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.heartbeat-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #2563eb, #7c3aed);
}

.audit-layout {
  grid-template-columns: 1.1fr 0.9fr;
}

.audit-row {
  display: grid;
  gap: 10px;
}

.audit-row-head {
  align-items: start;
}

.audit-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(87, 214, 255, 0.12);
  color: #dffbff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .field-wide {
  grid-column: 1 / -1;
}

.form-grid textarea {
  min-height: 110px;
  resize: vertical;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 15, 0.78);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.modal-card {
  width: min(880px, 100%);
  border-radius: 28px;
  padding: 24px;
}

.modal-header,
.modal-footer {
  padding-bottom: 18px;
}

.modal-footer {
  padding-top: 18px;
}

.modal-body {
  display: grid;
  gap: 18px;
}

.modal-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  gap: 12px;
}

.toast {
  min-width: 300px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 16, 31, 0.9);
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.46);
}

.toast strong {
  display: block;
  margin-bottom: 4px;
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.24);
}

.toast-warning {
  border-color: rgba(245, 158, 11, 0.24);
}

.toast-error {
  border-color: rgba(244, 63, 94, 0.24);
}

.empty-note {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1480px) {
  .metrics-grid,
  .sessions-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .users-layout,
  .chart-row,
  .dual-grid,
  .audit-layout {
    grid-template-columns: 1fr;
  }

  .table-head,
  .table-row {
    grid-template-columns: 1.2fr 0.92fr 0.9fr 1fr 1fr 0.88fr 1.12fr;
  }
}

@media (max-width: 1220px) {
  .login-shell,
  .console-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .console-main {
    order: 1;
  }

  .story-metrics,
  .login-tips,
  .mini-grid,
  .detail-meta-grid,
  .form-grid,
  .legend-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .login-shell,
  .console-shell {
    padding: 18px;
    gap: 18px;
  }

  .login-panel,
  .sidebar,
  .console-main,
  .story-metric-card,
  .story-footer-card,
  .metric-card,
  .panel-card,
  .table-card,
  .activity-card,
  .session-card,
  .user-spotlight,
  .modal-card {
    padding: 18px;
  }

  .story-header {
    flex-direction: column;
    align-items: start;
  }

  .captcha-row,
  .topbar-tools {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar,
  .table-toolbar,
  .section-head,
  .panel-head,
  .spotlight-head,
  .session-card-head,
  .audit-row-head,
  .modal-header,
  .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-search {
    min-width: 0;
  }

  .metrics-grid,
  .sessions-layout {
    grid-template-columns: 1fr;
  }

  .table-head {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .row-actions {
    justify-content: start;
  }
}
