:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --surface-3: #f8fafc;
  --sidebar: #fbfcfd;
  --topbar: rgba(246, 247, 249, 0.9);
  --hover: #f8fafc;
  --line: #d9dee7;
  --text: #20242a;
  --muted: #667085;
  --strong: #111827;
  --blue: #2563eb;
  --teal: #0f766e;
  --amber: #b45309;
  --rose: #be123c;
  --violet: #6d28d9;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --radius: 8px;
}

[data-theme="dark"] {
  --bg: #0f141b;
  --surface: #151b24;
  --surface-2: #202936;
  --surface-3: #111821;
  --sidebar: #111821;
  --topbar: rgba(15, 20, 27, 0.92);
  --hover: #1b2430;
  --line: #2c3746;
  --text: #d8dee9;
  --muted: #95a3b7;
  --strong: #f5f7fb;
  --blue: #4f83ff;
  --teal: #22a99a;
  --amber: #f0a830;
  --rose: #ff6480;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-height: 100vh;
  overflow-y: auto;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  background: #1f2937;
  font-weight: 800;
}

.brand strong,
.brand span,
.sidebar-note strong,
.sidebar-note span,
td span {
  display: block;
}

.brand span,
.sidebar-note span,
td span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-section {
  display: grid;
  gap: 6px;
}

.nav-item,
.role-btn,
.icon-btn,
.primary-btn,
.secondary-btn,
.danger-btn,
.segmented button,
.filter-chip-grid button,
.preview-options button,
.preview-submit {
  border: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.nav-item svg,
.icon-btn svg,
.primary-btn svg,
.secondary-btn svg,
.search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.nav-item.active,
.nav-item:hover {
  color: var(--strong);
  background: var(--surface-2);
}

.nav-item[hidden] {
  display: none;
}

.sidebar-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--topbar);
  backdrop-filter: blur(16px);
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.2;
}

h2 {
  max-width: 780px;
  margin-top: 7px;
  font-size: 20px;
  line-height: 1.35;
}

h3 {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.35;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 34vw);
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.role-toggle,
.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.role-btn,
.segmented button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.role-btn.active,
.segmented .active {
  color: white;
  background: #1f2937;
}

[data-theme="dark"] .role-btn.active,
[data-theme="dark"] .segmented .active {
  color: #0f141b;
  background: #e5eaf2;
}

.icon-btn {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-weight: 750;
}

.primary-btn {
  color: white;
  background: var(--blue);
}

.secondary-btn {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface);
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: #9f1239;
  background: #ffe4e9;
  font-size: 13px;
  font-weight: 800;
}

[data-theme="dark"] .danger-btn {
  color: #ffb0be;
  background: rgba(255, 100, 128, 0.18);
}

.content {
  display: grid;
  gap: 20px;
  padding: 24px 26px 34px;
}

.mode-banner,
.panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  box-shadow: none;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.mode-banner,
.metric-grid,
.panel {
  scroll-margin-top: 104px;
}

.nav-target-focus {
  outline: 2px solid rgba(37, 99, 235, 0.42);
  outline-offset: 4px;
  transition: outline-color 180ms ease;
}

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

.metric-card {
  padding: 16px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: var(--strong);
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

.trend {
  display: inline-flex;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 750;
}

.good {
  color: var(--teal);
}

.warn {
  color: var(--amber);
}

.risk {
  color: var(--rose);
}

.neutral {
  color: var(--muted);
}

.admin-grid,
.client-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.admin-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.client-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

.clients-panel,
.users-panel,
.submissions-panel {
  grid-row: span 2;
}

.client-hero,
.users-panel,
.tenant-users-panel,
.submissions-panel {
  grid-column: 1 / -1;
}

.tenant-metrics,
.bank-sections-panel,
.clicks-panel,
.folders-panel,
.favorites-panel,
.filter-panel,
.export-panel,
.cleanup-panel,
.client-settings-panel,
.target-preview {
  grid-column: 1 / -1;
}

.panel {
  padding: 16px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-toolbar,
.info-toolbar,
.export-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.export-options {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  margin-bottom: 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.inline-select {
  width: auto;
  min-width: 142px;
  min-height: 32px;
  margin-top: 0;
  padding: 0 28px 0 9px;
}

.inline-select.changed {
  border-color: var(--amber);
  background: rgba(180, 83, 9, 0.08);
}

.scope-chip,
.security-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-3);
  font-size: 12px;
  font-weight: 800;
}

.scope-chip.platform {
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.32);
}

.security-chip svg {
  width: 14px;
  height: 14px;
}

.security-chip.muted {
  color: var(--muted);
}

.text-btn {
  min-height: 30px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 800;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

td,
th {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody tr:hover {
  background: var(--hover);
}

.badge,
.link-state,
.save-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.ok,
.link-state {
  color: #075f58;
  background: #dff5ef;
}

[data-theme="dark"] .badge.ok,
[data-theme="dark"] .link-state {
  color: #a7fff2;
  background: rgba(34, 169, 154, 0.18);
}

[data-theme="dark"] .badge.warn,
[data-theme="dark"] .link-state.paused {
  color: #ffd58a;
  background: rgba(240, 168, 48, 0.18);
}

[data-theme="dark"] .badge.risk,
[data-theme="dark"] .link-state.stopped {
  color: #ffb0be;
  background: rgba(255, 100, 128, 0.18);
}

[data-theme="dark"] .badge.neutral,
[data-theme="dark"] .save-state {
  color: #c8d1df;
  background: rgba(149, 163, 183, 0.16);
}

.badge.warn,
.link-state.paused {
  color: #8a4a05;
  background: #fff1d6;
}

.badge.risk,
.link-state.stopped {
  color: #9f1239;
  background: #ffe4e9;
}

.badge.neutral,
.save-state {
  color: #475467;
  background: #eef2f6;
}

.link-box,
.copy-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
}

.link-box span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.link-box strong,
.copy-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.copy-cell {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.copy-cell strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.copy-btn {
  min-width: 92px;
  white-space: nowrap;
}

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

.domain-line {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
}

.domain-line span,
.domain-line small {
  color: var(--muted);
  font-size: 12px;
}

.stat-strip,
.tenant-metrics,
.bank-section-grid,
.folder-grid {
  display: grid;
  gap: 10px;
}

.stat-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

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

.stat-strip article,
.bank-section-grid article,
.folder-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
}

.stat-strip strong,
.bank-section-grid article > div strong {
  display: block;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.stat-strip span,
.bank-section-grid span,
.bank-section-grid small,
.folder-grid span,
.compact-list span {
  color: var(--muted);
  font-size: 12px;
}

.compact-table td,
.compact-table th {
  padding-top: 10px;
  padding-bottom: 10px;
}

.os-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.os-chip.android {
  color: #075f58;
  background: #dff5ef;
}

.os-chip.iphone {
  color: #1d4ed8;
  background: #e0ecff;
}

[data-theme="dark"] .os-chip.android {
  color: #a7fff2;
  background: rgba(34, 169, 154, 0.18);
}

[data-theme="dark"] .os-chip.iphone {
  color: #b9d0ff;
  background: rgba(79, 131, 255, 0.18);
}

.bank-section-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bank-section-grid header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.bank-section-grid article > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

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

.folder-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 9px;
  align-items: center;
}

.folder-grid svg {
  grid-row: span 2;
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.compact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
}

.compact-list strong {
  display: block;
}

.filter-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip-grid button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 750;
}

.danger-list {
  display: grid;
  gap: 10px;
}

.danger-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(190, 18, 60, 0.24);
  border-radius: var(--radius);
  background: rgba(190, 18, 60, 0.04);
}

.danger-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.field-stack {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  outline: 0;
}

input,
select {
  min-height: 38px;
  padding: 0 10px;
}

textarea {
  min-height: 132px;
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.matrix {
  display: grid;
  gap: 13px;
}

.matrix div {
  display: grid;
  grid-template-columns: 64px minmax(90px, 1fr) 32px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

meter {
  width: 100%;
  height: 10px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding-left: 12px;
  border-left: 3px solid var(--blue);
}

.timeline span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.client-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08), transparent 48%),
    var(--surface);
}

.client-hero p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.editor-actions span {
  color: var(--muted);
  font-size: 12px;
}

.bank-toggle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bank-toggle-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface-3);
}

.bank-toggle-list input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.bank-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.bank-summary article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
}

.bank-summary strong {
  display: block;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.bank-summary span {
  color: var(--muted);
  font-size: 12px;
}

.preview-frame {
  display: grid;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
}

.preview-alert {
  padding: 12px;
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  background: rgba(180, 83, 9, 0.1);
  line-height: 1.45;
}

.preview-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.preview-options button {
  min-height: 40px;
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.preview-submit {
  min-height: 42px;
  border-radius: var(--radius);
  color: white;
  background: var(--teal);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .brand div:not(.brand-mark),
  .nav-item span,
  .sidebar-note div {
    display: none;
  }

  .sidebar {
    align-items: center;
    padding: 18px 12px;
  }

  .nav-item {
    justify-content: center;
    width: 46px;
    padding: 0;
  }

  .metric-grid,
  .admin-grid,
  .client-grid,
  .user-toolbar,
  .info-toolbar,
  .export-options,
  .tenant-metrics,
  .stat-strip,
  .bank-section-grid,
  .folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clients-panel,
  .submissions-panel,
  .client-hero {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 7;
    flex-direction: row;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-section {
    display: flex;
    overflow-x: auto;
  }

  .sidebar-note {
    display: none;
  }

  .topbar,
  .mode-banner,
  .client-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .search {
    width: 100%;
  }

  .content {
    padding: 18px;
  }

  .metric-grid,
  .admin-grid,
  .client-grid,
  .bank-summary,
  .user-toolbar,
  .info-toolbar,
  .export-options,
  .tenant-metrics,
  .stat-strip,
  .bank-section-grid,
  .folder-grid {
    grid-template-columns: 1fr;
  }

  .client-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bank-toggle-list,
  .preview-options {
    grid-template-columns: 1fr;
  }

  .copy-cell {
    grid-template-columns: 1fr;
  }
}

/* Backend app additions on top of the original prototype theme. */
a {
  color: inherit;
  text-decoration: none;
}

.nav-item {
  width: 100%;
}

.nav-icon,
.icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.preference-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preference-form label {
  min-width: 96px;
}

.form-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

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

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius);
  color: #9f1239;
  background: #ffe4e9;
  font-size: 13px;
  font-weight: 800;
}

[data-theme="dark"] .danger-btn {
  color: #ffb0be;
  background: rgba(255, 100, 128, 0.18);
}

.danger-list {
  display: grid;
  gap: 10px;
}

.danger-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(190, 18, 60, 0.24);
  border-radius: var(--radius);
  background: rgba(190, 18, 60, 0.04);
}

.danger-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  display: grid;
  gap: 16px;
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-brand {
  margin-bottom: 8px;
}

.login-panel p,
.muted-copy {
  color: var(--muted);
  line-height: 1.5;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.flash {
  padding: 11px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
}

.flash-success {
  color: #075f58;
  background: #dff5ef;
}

.flash-error {
  color: #9f1239;
  background: #ffe4e9;
}

.inline-form,
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form input,
.inline-form select {
  width: auto;
  min-width: 132px;
  margin-top: 0;
}

.inline-form input[type="date"] {
  min-width: 138px;
}

.inline-form input[type="password"] {
  min-width: 160px;
}

.primary-btn svg,
.secondary-btn svg,
.danger-btn svg,
.nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.nav-icon {
  display: block;
}

.folder-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

@media (max-width: 1120px) {
  .form-grid,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .preference-form {
    flex-wrap: wrap;
  }

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

  .danger-list article {
    align-items: stretch;
    flex-direction: column;
  }
}
