:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-elevated: #0f1218;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.05);
  --surface-accent: rgba(94, 106, 210, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f8f8;
  --text-soft: #d0d6e0;
  --text-muted: #8c93a3;
  --accent: #7170ff;
  --accent-strong: #5e6ad2;
  --success: #10b981;
  --warning: #ffcf25;
  --danger: #f87171;
  --focus: #2b89ff;
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.18);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --sidebar-width: 280px;
  --content-width: 1440px;
  --font-sans: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(113, 112, 255, 0.14), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(43, 137, 255, 0.09), transparent 28%),
    linear-gradient(180deg, #080a0e 0%, #06070a 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell-frame {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
  padding: 28px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 26%), rgba(9, 11, 15, 0.86);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: white;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 22px rgba(94, 106, 210, 0.3);
}

.brand-eyebrow,
.section-kicker,
.sidebar-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-title {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sidebar-block,
.sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-panel,
.sidebar-foot-grid,
.metric-card,
.surface-panel,
.hero-panel,
.status-card,
.login-panel,
.flash {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.sidebar-panel {
  padding: 16px;
  border-radius: var(--radius-md);
}

.sidebar-domain {
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

.sidebar-subtle,
.table-sub,
.muted-text,
.page-intro,
.panel-copy,
.table-url,
.detail-label,
.header-key,
.meta-label,
.empty-inline,
.table-empty-desc,
.row-meta {
  color: var(--text-muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-soft);
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav-link.is-active {
  box-shadow: inset 0 0 0 1px rgba(113, 112, 255, 0.22);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(113, 112, 255, 0.18);
}

.sidebar-foot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
}

.metric-span-2 {
  grid-column: span 2;
}

.metric-mini-label {
  color: var(--text-muted);
  font-size: 12px;
}

.metric-mini-value {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-foot-grid .metric-mini-value {
  color: var(--text-soft);
}

.workspace {
  min-width: 0;
  padding: 32px;
}

.workspace-header,
.toolbar,
.panel-header,
.status-band-row,
.header-row,
.login-meta > div,
.list-row,
.detail-grid > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workspace-header {
  max-width: var(--content-width);
  margin: 0 auto 24px;
}

.workspace-header-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.workspace-header h1,
.login-hero h1,
.hero-panel h2,
.panel-header h3,
.login-panel h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.workspace-header h1 {
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
}

.page-intro {
  max-width: 760px;
  margin: 10px 0 0;
  line-height: 1.65;
}

.workspace-header-actions,
.toolbar-actions,
.pill-row,
.action-cluster,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-field {
  min-width: 180px;
  margin: 0;
}

.toolbar-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.toolbar-field select {
  min-width: 180px;
}

.form-note {
  color: var(--text-muted);
  font-size: 13px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.workspace-body {
  display: grid;
  gap: 24px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.overview-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 24px 26px;
}

.overview-strip-copy {
  display: grid;
  gap: 10px;
}

.overview-strip h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.overview-strip-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  gap: 12px;
}

.overview-badge {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.overview-badge-label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-badge strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-panel,
.surface-panel {
  border-radius: var(--radius-lg);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 28px;
}

.hero-panel h2 {
  font-size: clamp(28px, 5vw, 48px);
  max-width: 14ch;
}

.hero-panel p,
.note-block p,
.insight-list li {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-status-cluster,
.status-band,
.list-stack {
  display: grid;
  gap: 14px;
}

.status-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

.status-label,
.metric-label {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.status-value,
.metric-card strong {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.metric-grid,
.panel-grid,
.detail-grid,
.form-grid,
.toggle-grid,
.hero-points {
  display: grid;
  gap: 16px;
}

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

.metric-card {
  padding: 20px;
  border-radius: var(--radius-md);
}

.metric-card p {
  font-size: 14px;
}

.metric-card p,
.empty-state span,
.table-empty-desc {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.surface-panel {
  padding: 22px;
}

.panel-header {
  margin-bottom: 18px;
}

.panel-header h3,
.login-panel h2 {
  font-size: 24px;
  font-weight: 700;
}

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

.quick-action {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.quick-action:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(113, 112, 255, 0.24);
  transform: translateY(-1px);
}

.quick-action strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.quick-action span {
  color: var(--text-muted);
  line-height: 1.55;
}

.status-band-row,
.header-row,
.login-meta > div,
.detail-grid > div,
.list-row {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.status-band-row:first-child,
.header-row:first-child,
.login-meta > div:first-child,
.detail-grid > div:first-child {
  border-top: 0;
  padding-top: 0;
}

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

.detail-value,
.row-title,
.table-link {
  color: var(--text);
  font-weight: 600;
}

.detail-value,
.row-title {
  display: block;
}

.table-link:hover,
.list-row:hover .row-title {
  color: #b8beff;
}

.button,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button:hover,
.filter-chip:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.button-primary {
  background: linear-gradient(180deg, #7576ff, #5e6ad2);
  border-color: transparent;
  color: white;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.03);
}

.button-danger {
  color: #ffb3b3;
}

.button-block {
  width: 100%;
}

.toolbar {
  margin-bottom: 18px;
}

.toolbar-spread {
  flex-wrap: wrap;
}

.search-field {
  flex: 1 1 320px;
}

.search-field input,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  outline: none;
}

.field select option {
  color: #0f172a;
  background: #f8fafc;
}

.field select option:checked {
  color: #0f172a;
  background: #dbeafe;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.search-field input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(43, 137, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(43, 137, 255, 0.14);
}

.form-layout {
  display: grid;
  gap: 20px;
}

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

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

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

.field small {
  color: var(--text-muted);
  line-height: 1.5;
}

.field.toolbar-field-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.field.toolbar-field-inline span {
  display: inline;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}

.field.toolbar-field-inline select {
  width: auto;
  min-width: 220px;
}

.field-span-2 {
  grid-column: 1 / -1;
}

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

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
}

.toggle-row input {
  width: 16px;
  height: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap {
  overflow-x: auto;
}

.data-table th,
.data-table td {
  padding: 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  border-top: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.license-table {
  table-layout: fixed;
  min-width: 1980px;
}

.license-table th,
.license-table td {
  vertical-align: middle;
  overflow: hidden;
}

.license-table th {
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: none;
}

.license-name-cell,
.license-note-cell,
.datetime-cell,
.issuer-cell,
.key-cell,
.tier-cell,
.usage-cell,
.status-cell,
.machine-cell,
.actions-cell {
  white-space: nowrap;
}

.license-name-cell .table-link,
.license-name-cell .table-sub,
.cell-clip,
.cell-date {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-name-cell .table-sub {
  max-width: 170px;
}

.datetime-cell {
  line-height: 1.25;
}

.col-license-name {
  width: 210px;
}

.col-note {
  width: 140px;
}

.col-tier {
  width: 96px;
}

.col-usage {
  width: 92px;
}

.col-created,
.col-activated,
.col-expiry {
  width: 205px;
}

.col-issuer {
  width: 120px;
}

.col-key {
  width: 260px;
}

.col-status {
  width: 102px;
}

.col-machines {
  width: 82px;
}

.col-actions {
  width: 170px;
}

.compact th,
.compact td {
  padding-left: 0;
  padding-right: 0;
}

.key-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.key-primary {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  white-space: nowrap;
}

.key-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.button-copy {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.button-copy.is-copied {
  color: #c4f5df;
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.12);
}

.key-cell,
.fingerprint-cell,
.mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

.fingerprint-cell,
.table-url {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill-neutral {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
}

.pill-accent {
  color: white;
  background: rgba(113, 112, 255, 0.18);
  border-color: rgba(113, 112, 255, 0.28);
}

.pill-success {
  color: #baf7df;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.26);
}

.pill-warning {
  color: #fff3bf;
  background: rgba(255, 207, 37, 0.13);
  border-color: rgba(255, 207, 37, 0.26);
}

.pill-danger {
  color: #ffd0d0;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.22);
}

.flash {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--content-width);
  margin: 0 auto 18px;
  padding: 14px 16px;
  border-radius: 16px;
}

.flash-success {
  border-color: rgba(16, 185, 129, 0.28);
}

.flash-error {
  border-color: rgba(248, 113, 113, 0.28);
}

.flash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.flash-success .flash-dot {
  background: var(--success);
}

.flash-error .flash-dot {
  background: var(--danger);
}

.flash-close {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.list-row {
  display: flex;
  gap: 18px;
}

.list-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.row-date {
  color: var(--text-muted);
  font-size: 13px;
}

.table-empty,
.empty-state {
  padding: 26px 0;
  text-align: left;
}

.table-empty-title,
.empty-state strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.compact {
  padding: 0;
}

.json-block,
.note-block {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.json-block {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.note-block p:first-child {
  margin-top: 0;
}

.note-block p:last-child {
  margin-bottom: 0;
}

.header-list {
  display: grid;
}

.header-key,
.meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.header-value,
.meta-value {
  color: var(--text-soft);
  word-break: break-word;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 38px;
  color: var(--text-soft);
}

.filter-chip.is-active {
  background: rgba(113, 112, 255, 0.16);
  border-color: rgba(113, 112, 255, 0.28);
  color: white;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.block-row {
  margin-top: 16px;
}

.insight-list {
  margin: 0;
  padding-left: 18px;
}

.login-shell {
  min-height: 100vh;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.72fr);
  min-height: 100vh;
}

.login-hero,
.login-panel-wrap {
  padding: 48px;
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.login-hero h1 {
  font-size: clamp(44px, 5.2vw, 72px);
  max-width: none;
  font-weight: 800;
  line-height: 0.98;
  white-space: nowrap;
}

.login-hero-subtitle {
  margin: 0;
  max-width: 34ch;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.status-preview {
  width: min(100%, 920px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(113, 112, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 13, 19, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 48px rgba(0, 0, 0, 0.22);
}

.status-preview-header,
.status-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.status-preview-kicker {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-preview-title {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.status-preview-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #c4f5df;
  font-size: 12px;
  font-weight: 700;
}

.status-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.status-preview-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.status-preview-index {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.status-preview-card strong {
  display: block;
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.status-preview-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.status-preview-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.status-preview-footer span {
  color: var(--text-soft);
  font-size: 13px;
}

.login-panel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-panel {
  width: min(100%, 460px);
  padding: 28px;
  border-radius: 28px;
}

.login-panel form {
  display: grid;
  gap: 16px;
}

.login-meta {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.form-section {
  padding-bottom: 26px;
}

@media (max-width: 1220px) {
  .overview-strip,
  .overview-strip-meta,
  .metric-grid,
  .panel-grid-2,
  .toggle-grid,
  .login-layout,
  .hero-panel,
  .status-preview-grid,
  .quick-action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .shell-frame {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 320px);
    transform: translateX(-102%);
    transition: transform 180ms ease;
    z-index: 30;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .workspace {
    padding: 22px;
  }

  .menu-button {
    display: inline-block;
  }

  .workspace-header {
    flex-direction: column;
    align-items: stretch;
  }

  .workspace-header-actions {
    justify-content: flex-start;
  }

  .detail-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .login-hero h1 {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .login-hero,
  .login-panel-wrap,
  .workspace,
  .surface-panel,
  .hero-panel {
    padding: 20px;
  }

  .workspace-header h1 {
    font-size: 28px;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .data-table td {
    padding: 8px 0;
    border: 0;
  }

  .actions-cell {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
}
