html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%);
  color: #0f172a;
}

body.menu-open {
  overflow: hidden;
}

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

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

.mobile-topbar,
.mobile-backdrop {
  display: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  background: #0f172a;
  color: #f8fafc;
  min-width: 0;
}

.sidebar-top {
  display: grid;
  gap: 0.85rem;
}

.sidebar-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.sidebar-close {
  display: none;
}

.sidebar h2 {
  margin: 0.25rem 0 0.5rem;
}

.sidebar-copy {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.5;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.75rem;
  color: #67e8f9;
  font-weight: 700;
}

.nav-stack {
  display: grid;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, #14b8a6 0%, #0f9f91 100%);
  border-color: #0f9f91;
  color: #f8fffe;
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1bc9b6 0%, #129789 100%);
  color: #ffffff;
}

.btn-outline-primary {
  background: #f8fbff;
  border-color: #b8ccf2;
  color: #0b4aa4;
}

.btn-outline-primary:hover {
  background: #eaf2ff;
  border-color: #8eb1eb;
  color: #093c84;
}

.btn-outline-danger {
  background: #fff7f7;
  border-color: #f1b8bf;
  color: #b42318;
}

.btn-outline-danger:hover {
  background: #ffe9eb;
  border-color: #e58a95;
  color: #8f1d14;
}

.nav-stack a,
.ghost-button,
.link-chip,
.primary-button {
  border-radius: 999px;
  padding: 0.9rem 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.nav-stack a,
.ghost-button {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.nav-stack a.is-active {
  background: rgba(20, 184, 166, 0.18);
  color: #d9fffb;
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.18);
}

.content-shell {
  box-sizing: border-box;
  width: 100%;
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.hero-panel,
.panel,
.login-card {
  box-sizing: border-box;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: start;
}

.hero-panel h1,
.panel h1,
.panel h2 {
  margin: 0 0 0.4rem;
}

.lede {
  color: #475569;
  line-height: 1.6;
  max-width: 56rem;
}

.sync-box {
  min-width: 0;
  width: fit-content !important;
  align-self: flex-start;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 20px;
  padding: 1rem 1.2rem;
  display: grid;
  gap: 0.3rem;
  box-sizing: border-box;
  max-width: min(100%, 320px) !important;
}

.hero-text {
  width: 100%;
  box-sizing: border-box;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 0.5rem;
}

.stat-card span {
  color: #64748b;
}

.stat-card strong {
  font-size: 2rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-header p {
  margin: 0;
  color: #64748b;
}

.link-chip,
.primary-button {
    background: #14b8a6;
    color: #042f2e;
}

.panel .ghost-button {
    background: #f8fbff;
    border: 1px solid #b8ccf2;
    color: #0b4aa4;
}

.panel .ghost-button:hover {
    background: #eaf2ff;
    border-color: #8eb1eb;
    color: #093c84;
}

.panel .primary-button {
    border: 1px solid #0f9f91;
}

.table-shell {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
}

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.admin-table thead th {
  color: #475569;
  font-size: 0.9rem;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.login-shell {
  width: min(100%, 420px);
  padding: 1.5rem;
}

.login-form {
  display: grid;
  gap: 0.85rem;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.login-form .ghost-link {
  justify-content: center;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
}

.validation-summary,
.text-danger {
  color: #dc2626;
}

.search-form,
.admin-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.settings-hero-copy,
.settings-highlight-card,
.settings-preview-card,
.settings-field {
  border: 1px solid #dbe4f5;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.settings-hero-copy {
  padding: 1.4rem;
  display: grid;
  gap: 0.65rem;
}

.settings-hero-copy h2,
.settings-highlight-card strong {
  margin: 0;
  color: #07152f;
}

.settings-hero-copy p,
.settings-highlight-card p,
.settings-preview-note {
  margin: 0;
  color: #52627d;
  line-height: 1.6;
}

.settings-highlight-card {
  padding: 1.25rem;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  background: linear-gradient(180deg, #0f172a 0%, #112044 100%);
  border-color: #1e3a8a;
}

.settings-highlight-card strong,
.settings-highlight-card p {
  color: #f8fafc;
}

.settings-highlight-label {
  display: inline-flex;
  align-self: start;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(110, 231, 183, 0.18);
  color: #d1fae5;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.secrets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.settings-field {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.settings-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #ffffff;
}

.scheduler-toggle-card {
  display: grid;
  gap: 0.65rem;
  border: 1px solid #dbe4f5;
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.scheduler-toggle-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.scheduler-log-header {
  margin-top: 1.5rem;
}

.methods-toolbar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.method-card {
  display: grid;
  gap: 0.9rem;
  border: 1px solid #dbe4f5;
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.method-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.method-card-top img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.35rem;
}

.method-card-top h3,
.method-card-top p,
.method-meta p {
  margin: 0;
}

.method-card-top p,
.method-meta span {
  color: #52627d;
}

.method-chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.method-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.78rem;
  font-weight: 800;
}

.method-meta {
  display: grid;
  gap: 0.55rem;
}

.secret-card {
  display: grid;
  gap: 0.9rem;
  border: 1px solid #dbe4f5;
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.secret-card-meta {
  display: grid;
  gap: 0.35rem;
}

.secret-card-meta .settings-preview-row {
  padding-top: 0.55rem;
}

.secret-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.secret-card-header h3,
.secret-card-header p {
  margin: 0;
}

.secret-card-header p {
  margin-top: 0.35rem;
  color: #52627d;
  line-height: 1.5;
}

.secret-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.secret-status.is-configured {
  background: #dcfce7;
  color: #166534;
}

.secret-status.is-missing {
  background: #fee2e2;
  color: #991b1b;
}

.settings-field-label {
  color: #07152f;
  font-weight: 700;
}

.settings-field-help {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.settings-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #ffffff;
}

.settings-preview {
  display: grid;
}

.settings-section {
  display: grid;
  gap: 1rem;
}

.settings-section-header {
  display: grid;
  gap: 0.35rem;
}

.settings-section-header h2,
.settings-preview-link a {
  margin: 0;
  color: #07152f;
}

.settings-section-header p {
  margin: 0;
  color: #52627d;
  line-height: 1.6;
}

.settings-grid-maintenance {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
}

.settings-field-wide {
  grid-column: span 1;
}

.settings-toggle-field {
  align-content: start;
}

.settings-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
}

.settings-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-switch-slider {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #dbe4f5;
  border: 1px solid #bfcee6;
  transition: background 0.2s ease;
}

.settings-switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease;
}

.settings-switch input:checked + .settings-switch-slider {
  background: #07152f;
  border-color: #07152f;
}

.settings-switch input:checked + .settings-switch-slider::after {
  transform: translateX(24px);
}

.settings-switch-label {
  color: #07152f;
  font-weight: 700;
}

.settings-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.settings-preview-card {
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.75rem;
}

.settings-preview-label {
  margin: 0;
  color: #0b4aa4;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
}

.settings-preview-row span {
  color: #52627d;
}

.settings-preview-row strong {
  color: #07152f;
}

.settings-preview-link {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
}

.settings-preview-link a {
  word-break: break-all;
  text-decoration: none;
}

.settings-preview-link a:hover {
  text-decoration: underline;
}

.settings-actions-panel {
  margin-top: 1rem;
}

.legal-form {
  gap: 1.5rem;
}

.legal-hidden-store {
  display: none;
}

.legal-editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.legal-editor-card {
  display: grid;
  gap: 0.85rem;
  border: 1px solid #dbe4f5;
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.legal-editor-card-header h3,
.legal-editor-card-header p {
  margin: 0;
}

.legal-editor-card-header p {
  margin-top: 0.35rem;
  color: #52627d;
  line-height: 1.5;
}

.legal-language-picker {
  display: grid;
  gap: 0.35rem;
  min-width: 180px;
}

.legal-language-picker span,
.legal-editor-meta {
  color: #52627d;
  font-size: 0.95rem;
}

.legal-editor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.input-like {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.wysiwyg-toolbar .ghost-button {
  padding: 0.65rem 0.9rem;
}

.wysiwyg-surface {
  min-height: 260px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  padding: 1rem;
  line-height: 1.6;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.wysiwyg-surface:focus {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
}

.wysiwyg-surface h1,
.wysiwyg-surface h2,
.wysiwyg-surface h3,
.wysiwyg-surface p,
.wysiwyg-surface ul,
.wysiwyg-surface ol {
  margin-top: 0;
}

.wysiwyg-input {
  display: none;
}

.settings-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

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

.search-form input,
.admin-form input,
.admin-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
}

.admin-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

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

.helper-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(120px, 0.6fr) auto;
  gap: 1rem;
  align-items: end;
}

.helper-action {
  display: flex;
  align-items: end;
}

.compact-id {
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
}

.detail-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
  border-bottom: 0;
}

.code-block {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: #f8fafc;
  border: 1px solid #dbe3f1;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.45;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pager-actions {
  display: flex;
  gap: 0.75rem;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.action-row form {
  display: contents;
}

.row-link {
  color: #0f172a;
  font-weight: 700;
}

.stack-list {
  display: grid;
  gap: 1rem;
}

.alert {
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.result-card {
  margin-top: 1rem;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 1rem 1.1rem;
  background: #f8fbff;
}

.result-card h2,
.result-card p {
  margin: 0 0 0.45rem;
}

.discount-campaign-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 220px);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.discount-campaign-copy {
  display: grid;
  gap: 0.75rem;
}

.discount-campaign-qr {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  text-align: center;
}

.discount-campaign-qr img {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  border: 1px solid #dbe4f5;
  background: #ffffff;
  padding: 0.5rem;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(15, 23, 42, 0.98);
    color: #f8fafc;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  }

  .mobile-title {
    display: block;
    font-size: 1.4rem;
    line-height: 1.1;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0 0.8rem;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #f8fafc;
  }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 29;
    border: 0;
    background: rgba(2, 6, 23, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  body.menu-open .mobile-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 30;
    width: min(84vw, 360px);
    max-width: 360px;
    padding: 1.1rem;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    overflow-y: auto;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  }

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

  .sidebar-top {
    gap: 0.55rem;
  }

  .sidebar-close {
    display: inline-flex;
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
  }

  .sidebar-close span {
    position: absolute;
    top: 20px;
    left: 11px;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #f8fafc;
  }

  .sidebar-close span:first-child {
    transform: rotate(45deg);
  }

  .sidebar-close span:last-child {
    transform: rotate(-45deg);
  }

  .nav-stack {
    margin-top: 0;
  }

  .hero-panel,
  .panel-header {
    flex-direction: column;
  }

  .content-shell {
    padding: 1rem 0.85rem 1.25rem;
  }

  .form-grid,
  .settings-hero,
  .settings-grid,
  .legal-editor-grid,
  .settings-summary-grid,
  .secrets-grid,
  .scheduler-grid,
  .split-panels,
  .search-form,
  .helper-grid {
    grid-template-columns: 1fr;
  }

  .discount-campaign-tools {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .panel,
  .login-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .admin-table {
    min-width: 560px;
  }

  .pager {
    align-items: stretch;
  }

  .pager-actions {
    width: 100%;
    justify-content: stretch;
  }

  .ghost-link,
  .primary-button {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .sidebar {
    gap: 1rem;
  }

  .nav-stack {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-table {
    min-width: 480px;
  }

  .sync-box {
    width: 100%;
    max-width: none;
  }

  .table-shell {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .eyebrow {
    letter-spacing: 0.08rem;
  }

  .hero-panel h1,
  .panel h1 {
    font-size: 1.5rem;
  }

  .admin-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 0.85rem;
    background: transparent;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-table tr {
    background: #ffffff;
    border: 1px solid #dbe3f1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  }

  .admin-table td {
    padding: 0.8rem 1rem 0.8rem;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
  }

  .admin-table td:last-child {
    border-bottom: 0;
  }

.admin-table td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.28rem;
    color: #64748b;
    font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inline-form {
  margin: 0;
}

.danger-link {
  color: #b91c1c;
}
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.security-card {
  display: grid;
  gap: 0.9rem;
  border: 1px solid #dbe4f5;
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.security-card h2,
.security-card p {
  margin: 0;
}

.installNoticeCard {
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 1rem 1.1rem;
  background: #f8fbff;
}

.installNoticeTitle {
  margin: 0 0 0.45rem;
  font-weight: 800;
  color: #0b4aa4;
}

.recovery-codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}
