/* ============================================================
   Site-Shell V2 — Tokens + Components
   ------------------------------------------------------------
   Shared shell styles for root/account/uploader pages.
   Canonical reference:
     docs/05-design-und-historie/mockups/site-shell/index.html
     docs/05-design-und-historie/mockups/site-shell/styles.css
   All classes are prefixed `sh-` so they cannot collide with
   Tailwind utilities or existing haushaltsbuch-ui-v2.css rules.
   ============================================================ */

/* ---------- 1 · TOKENS ---------- */

:root {
  /* Inherited from haushaltsbuch-desktop mockup (site-wide DNA) */
  --sh-bg-top:         #eef6f2;
  --sh-bg-bottom:      #dfe9ea;
  --sh-shell:          #081321;
  --sh-shell-soft:     #102034;
  --sh-panel:          rgba(255, 255, 255, 0.82);
  --sh-panel-strong:   #ffffff;
  --sh-panel-muted:    #f3f6f6;
  --sh-line:           rgba(10, 24, 38, 0.08);
  --sh-text:           #112030;
  --sh-muted:          #627182;
  --sh-shadow:         0 30px 80px rgba(7, 24, 39, 0.12);
  --sh-radius-shell:   34px;
  --sh-radius-panel:   28px;
  --sh-radius-soft:    22px;

  /* New site-wide primary (Saffron-Gold) + secondary */
  --sh-primary:        #d9a441;
  --sh-primary-strong: #c2902e;
  --sh-primary-soft:   rgba(217, 164, 65, 0.14);
  --sh-primary-ink:    #1d1708;
  --sh-secondary:      #5a6fd4;

  /* Module tints (only inside module content/tiles) */
  --sh-hb:             #1d9d76;
  --sh-hb-soft:        rgba(29, 157, 118, 0.13);
  --sh-dnd:            #b03c48;
  --sh-dnd-soft:       rgba(176, 60, 72, 0.13);
  --sh-dnd-gold:       #e8b756;
  --sh-upload:         #7c6cf0;
  --sh-upload-soft:    rgba(124, 108, 240, 0.13);
  --sh-vault:          #f0715a;
  --sh-webmail:        #4aa6c2;
  --sh-tools:          #3aa180;

  /* States */
  --sh-success:        #1d9d76;
  --sh-warning:        #f3b54a;
  --sh-danger:         #df5d52;

  /* Fonts */
  --sh-font-body:      "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --sh-font-display:   "Space Grotesk", "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

/* ---------- 2 · GLOBAL PAGE ---------- */

body.sh-v2 {
  background:
    radial-gradient(circle at top left, rgba(217, 164, 65, 0.12), transparent 28%),
    radial-gradient(circle at right 20%, rgba(90, 111, 212, 0.10), transparent 28%),
    linear-gradient(180deg, var(--sh-bg-top), var(--sh-bg-bottom));
  color: var(--sh-text);
  font-family: var(--sh-font-body);
  margin: 0;
  min-height: 100vh;
}

body.sh-v2 a { color: inherit; text-decoration: none; }
body.sh-v2 :is(a.btn, a.sh-pill, a.hb-v2-btn) {
  color: var(--btn-color);
}
body.sh-v2 :is(a.btn, a.sh-pill, a.hb-v2-btn):hover {
  color: var(--btn-hover-color);
}
body.sh-v2 .sh-page { padding: 28px; }

.sh-skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-180%);
  z-index: 200;
  border-radius: 999px;
  background: #081321;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(7, 24, 39, 0.24);
  transition: transform 160ms ease;
}

.sh-skip-link:focus,
.sh-skip-link:focus-visible {
  transform: translateY(0);
}

html[data-theme="dark"] body.sh-v2 {
  --sh-bg-top:         #06101b;
  --sh-bg-bottom:      #0b1827;
  --sh-shell:          #040b13;
  --sh-shell-soft:     #0c1725;
  --sh-panel:          rgba(13, 24, 37, 0.84);
  --sh-panel-strong:   #102034;
  --sh-panel-muted:    #15263a;
  --sh-line:           rgba(233, 242, 248, 0.12);
  --sh-text:           #edf3f8;
  --sh-muted:          #9fb0bf;
  background:
    radial-gradient(circle at top left, rgba(217, 164, 65, 0.16), transparent 28%),
    radial-gradient(circle at right 20%, rgba(90, 111, 212, 0.18), transparent 28%),
    linear-gradient(180deg, var(--sh-bg-top), var(--sh-bg-bottom));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.sh-v2 *,
  body.sh-v2 *::before,
  body.sh-v2 *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

html[data-theme="dark"] body.sh-v2 .sh-content {
  background: linear-gradient(180deg, rgba(10, 20, 32, 0.84), rgba(12, 24, 39, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] body.sh-v2 .sh-panel.sh-strong {
  background: linear-gradient(180deg, rgba(16, 32, 52, 0.96), rgba(11, 22, 37, 0.94));
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.sh-v2 .sh-topbar,
html[data-theme="dark"] body.sh-v2 .sh-minimal-head {
  color: var(--sh-text);
}

html[data-theme="dark"] body.sh-v2 .bg-white {
  background: rgba(16, 32, 52, 0.96) !important;
}

html[data-theme="dark"] body.sh-v2 .text-gray-900,
html[data-theme="dark"] body.sh-v2 .text-gray-950,
html[data-theme="dark"] body.sh-v2 .text-slate-900,
html[data-theme="dark"] body.sh-v2 .text-slate-950 {
  color: var(--sh-text) !important;
}

/* Sekundaer-Text (Card-Subtext, Hilfslabels) bleibt im Light-Mode auf
   slate-500/600 — wuerde im Dark-Mode gegen die dunklen Card-Backgrounds
   verschwinden. Auf mittelhellen Slate anheben fuer WCAG-AA-Kontrast. */
html[data-theme="dark"] body.sh-v2 .text-slate-500,
html[data-theme="dark"] body.sh-v2 .text-slate-600,
html[data-theme="dark"] body.sh-v2 .text-gray-500,
html[data-theme="dark"] body.sh-v2 .text-gray-600 {
  color: rgba(203, 213, 225, 0.85) !important;
}

html[data-theme="dark"] body.sh-v2 .border-gray-200,
html[data-theme="dark"] body.sh-v2 .border-slate-200 {
  border-color: rgba(233, 242, 248, 0.14) !important;
}

html[data-theme="dark"] body.sh-v2 .hover\:bg-gray-50:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* ---------- 3 · SHELL (sidebar + content) ---------- */

/*
  Tailwind's compiled `dark:*` utilities are media-query based in this build.
  If the OS/browser prefers dark but the app toggle is Light, the app setting
  still has to win.
*/
html[data-theme="light"] body.sh-v2 :is(.dark\:bg-gray-900, .dark\:bg-gray-800, .dark\:bg-slate-950, .dark\:bg-slate-900, .dark\:bg-slate-800) {
  background-color: #ffffff !important;
}

html[data-theme="light"] body.sh-v2 .dark\:bg-slate-900\/70 {
  background-color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] body.sh-v2 :is(.dark\:border-gray-700, .dark\:border-slate-700, .dark\:border-emerald-500\/30, .dark\:border-sky-500\/30) {
  border-color: rgba(10, 24, 38, 0.10) !important;
}

html[data-theme="light"] body.sh-v2 :is(.dark\:text-gray-100, .dark\:text-gray-200, .dark\:text-slate-100, .dark\:text-slate-200, .dark\:text-white) {
  color: var(--sh-text) !important;
}

html[data-theme="light"] body.sh-v2 :is(.dark\:text-gray-300, .dark\:text-gray-400, .dark\:text-slate-300, .dark\:text-slate-400, .dark\:text-white\/75) {
  color: var(--sh-muted) !important;
}

html[data-theme="light"] body.sh-v2 .dark\:divide-gray-700 > :not(:last-child),
html[data-theme="light"] body.sh-v2 .dark\:divide-slate-700 > :not(:last-child) {
  border-color: rgba(10, 24, 38, 0.10) !important;
}

html[data-theme="light"] body.sh-v2 :is(.dark\:hover\:bg-emerald-950\/55, .dark\:hover\:bg-sky-950\/55):hover {
  background-color: rgba(15, 23, 42, 0.04) !important;
}

.sh-shell {
  width: min(1520px, calc(100vw - 56px));
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: var(--sh-radius-shell);
  background: linear-gradient(180deg, rgba(8, 19, 33, 0.98), rgba(8, 19, 33, 0.92));
  box-shadow: var(--sh-shadow);
}

.sh-shell.sh-shell-minimal {
  width: min(920px, calc(100vw - 56px));
  grid-template-columns: 1fr;
}

.sh-sidebar {
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(217, 164, 65, 0.10), transparent 40%),
    linear-gradient(180deg, rgba(17, 32, 52, 0.96), rgba(11, 22, 37, 0.94));
  color: rgba(244, 248, 250, 0.92);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sh-brand { display: flex; flex-direction: column; gap: 6px; }
.sh-eyebrow {
  letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 11px; font-weight: 700;
}
.sh-brand-name {
  font-family: var(--sh-font-display);
  font-size: 26px; font-weight: 700; line-height: 1;
}
.sh-brand-name .sh-dot { color: var(--sh-primary); margin: 0 2px; }
.sh-brand-sub { color: rgba(255, 255, 255, 0.6); font-size: 12px; font-weight: 500; }

.sh-nav-group { display: flex; flex-direction: column; gap: 6px; }
.sh-nav-group-label {
  color: rgba(255, 255, 255, 0.42); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  padding: 4px 6px 0;
}
.sh-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; border-radius: 14px; padding: 11px 14px;
  color: rgba(236, 242, 247, 0.78);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: 180ms ease; cursor: pointer;
  font-weight: 600; font-size: 13px;
}
.sh-nav-link .sh-nav-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sh-nav-link .sh-glyph {
  width: 22px; height: 22px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7); flex-shrink: 0;
}
.sh-nav-link:hover,
.sh-nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}
.sh-nav-link.is-active .sh-glyph { background: var(--sh-primary-soft); color: var(--sh-primary); }
.sh-nav-link.is-active { border-left: 3px solid var(--sh-primary); padding-left: 11px; }
.sh-nav-link.is-active.sh-m-hb     { border-left-color: var(--sh-hb); }
.sh-nav-link.is-active.sh-m-dnd    { border-left-color: var(--sh-dnd-gold); }
.sh-nav-link.is-active.sh-m-upload { border-left-color: var(--sh-upload); }
.sh-nav-meta {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255, 255, 255, 0.42); font-size: 11px; font-weight: 700;
}

.sh-nav-disclosure {
  display: grid;
  gap: 4px;
}

.sh-nav-disclosure > summary {
  list-style: none;
}

.sh-nav-disclosure > summary::-webkit-details-marker {
  display: none;
}

.sh-nav-disclosure .sh-nav-link {
  user-select: none;
}

.sh-disclosure-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.sh-nav-disclosure[open] .sh-disclosure-chevron {
  transform: rotate(180deg);
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.sh-subnav {
  display: grid;
  gap: 4px;
  margin: 0 0 4px 16px;
  padding: 2px 0 2px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.sh-nav-disclosure:not([open]) .sh-subnav {
  display: none;
}

.sh-subnav-link {
  display: flex;
  align-items: center;
  min-height: 28px;
  border-radius: 10px;
  padding: 6px 10px;
  color: rgba(236, 242, 247, 0.58);
  font-size: 12px;
  font-weight: 650;
}

.sh-subnav-link:hover,
.sh-subnav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.sh-sidebar-note {
  margin-top: auto;
  border-radius: 22px; padding: 16px;
  background: linear-gradient(180deg, rgba(35, 72, 111, 0.45), rgba(18, 40, 62, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sh-sidebar-note h4 {
  margin: 8px 0 0; font-family: var(--sh-font-display);
  font-size: 15px; color: #fff;
}
.sh-sidebar-note p {
  margin: 6px 0 0; color: rgba(235, 242, 247, 0.72);
  font-size: 12px; line-height: 1.5;
}
.sh-sidebar-note .sh-tag {
  display: inline-flex; padding: 6px 10px;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sh-user-panel {
  padding: 12px 14px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; gap: 12px;
}
.sh-user-panel .sh-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sh-primary), #eab966);
  color: var(--sh-primary-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sh-font-display); font-weight: 700; font-size: 14px;
  flex-shrink: 0; overflow: hidden;
}
.sh-user-panel .sh-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.sh-user-panel .sh-u-name { color: #fff; font-size: 13px; font-weight: 700; }
.sh-user-panel .sh-u-role { color: rgba(255, 255, 255, 0.55); font-size: 11px; }

/* ---------- 4 · CONTENT + TOPBAR ---------- */

.sh-content {
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(243, 248, 248, 0.78), rgba(238, 244, 245, 0.96));
  padding: 22px 24px 28px; overflow: visible; min-width: 0;
}

.sh-content.sh-content-minimal {
  padding-top: 24px;
}

.sh-minimal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.sh-main {
  display: block;
}

.sh-theme-toggle {
  flex-shrink: 0;
}

.sh-minimal-actions,
.sh-sidebar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sh-sidebar-controls {
  margin-top: auto;
  flex-direction: column;
  align-items: stretch;
}

.sh-language-switcher {
  display: inline-flex;
  margin: 0;
}

.sh-language-switcher__inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.72);
}

.sh-language-switcher__button {
  min-width: 44px;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: var(--sh-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.sh-language-switcher__button.is-active {
  background: rgba(14, 165, 233, 0.14);
  color: var(--sh-primary-strong);
}

.sh-sidebar-language,
.hb-v2-sidebar-language {
  width: 100%;
}

.sh-sidebar-language .sh-language-switcher__inner,
.hb-v2-sidebar-language .sh-language-switcher__inner {
  width: 100%;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.sh-sidebar-language .sh-language-switcher__button {
  flex: 1;
  color: rgba(255, 255, 255, 0.62);
}

.sh-sidebar-language .sh-language-switcher__button.is-active {
  background: rgba(217, 164, 65, 0.18);
  color: var(--sh-primary);
}

.sh-sidebar-theme-toggle {
  justify-content: flex-start;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] body.sh-v2 .sh-language-switcher__inner {
  background: rgba(11, 22, 37, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
}

.sh-brand.sh-brand-inline .sh-brand-name {
  color: var(--sh-text);
}

.sh-brand.sh-brand-inline .sh-brand-sub {
  color: var(--sh-muted);
}

.sh-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.sh-topbar-title h1 {
  margin: 0; font-family: var(--sh-font-display);
  font-size: 34px; line-height: 1.02; letter-spacing: -0.01em;
  color: var(--sh-text);
}
.sh-topbar-title p {
  margin: 8px 0 0; color: var(--sh-muted);
  font-size: 14px; line-height: 1.55; max-width: 72ch;
}
.sh-topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.sh-crumbs {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sh-muted); font-weight: 700;
  margin: 0 0 6px;
}
.sh-crumbs a { color: var(--sh-muted); }
.sh-crumbs a:hover { color: var(--sh-text); }
.sh-crumbs .sh-sep { margin: 0 6px; opacity: 0.4; }
.sh-crumbs .sh-here { color: var(--sh-primary-strong); }

/* ---------- 5 · CHIP ---------- */

.sh-chip {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  background: rgba(17, 32, 48, 0.06); color: var(--sh-muted);
}
.sh-chip.sh-accent { background: var(--sh-primary-soft); color: var(--sh-primary-strong); }
.sh-chip.sh-hb     { background: var(--sh-hb-soft);      color: var(--sh-hb); }
.sh-chip.sh-dnd    { background: var(--sh-dnd-soft);     color: var(--sh-dnd); }
.sh-chip.sh-upload { background: var(--sh-upload-soft);  color: var(--sh-upload); }
.sh-chip.sh-ok     { background: rgba(29, 157, 118, 0.15); color: var(--sh-hb); }
.sh-chip.sh-warn   { background: rgba(243, 181, 74, 0.2);  color: #a07a12; }
.sh-chip.sh-danger { background: rgba(223, 93, 82, 0.15);  color: var(--sh-danger); }

/* ---------- 6 · PANEL ---------- */

.sh-panel {
  border-radius: var(--sh-radius-panel);
  background: var(--sh-panel);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
  padding: 22px;
}
.sh-panel.sh-strong {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 250, 0.96));
}
.sh-panel.sh-dark {
  background: linear-gradient(180deg, #0f1d2c, #15263a);
  color: rgba(241, 246, 250, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}
.sh-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 14px;
}
.sh-panel h2, .sh-panel h3 { margin: 0; font-family: var(--sh-font-display); color: inherit; }
.sh-panel h2 { font-size: 22px; letter-spacing: -0.005em; }
.sh-panel h3 { font-size: 16px; }
.sh-panel p { margin: 8px 0 0; color: var(--sh-muted); font-size: 14px; line-height: 1.55; }
.sh-panel.sh-dark p { color: rgba(241, 246, 250, 0.72); }
.sh-panel .sh-label {
  color: var(--sh-muted); opacity: 0.8;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
}
.sh-panel.sh-dark .sh-label { color: rgba(255, 255, 255, 0.55); }

/* ---------- 7 · METRIC ---------- */

.sh-metric {
  padding: 18px; border-radius: 22px;
  background: rgba(243, 247, 248, 0.9); border: 1px solid rgba(10, 24, 38, 0.06);
}
.sh-metric h4 {
  margin: 0; color: inherit; opacity: 0.72;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
}
.sh-metric strong {
  display: block; margin-top: 10px; font-size: 30px;
  font-family: var(--sh-font-display); font-variant-numeric: tabular-nums;
}
.sh-metric p { margin: 10px 0 0; color: var(--sh-muted); font-size: 13px; line-height: 1.5; }
.sh-metric .sh-spark {
  margin-top: 14px; height: 8px; border-radius: 999px;
  background: rgba(17, 32, 48, 0.08); overflow: hidden;
}
.sh-metric .sh-spark > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--sh-primary), #eab966);
}
.sh-metric.sh-hb     .sh-spark > span { background: linear-gradient(90deg, var(--sh-hb), #59cba3); }
.sh-metric.sh-dnd    .sh-spark > span { background: linear-gradient(90deg, var(--sh-dnd), var(--sh-dnd-gold)); }
.sh-metric.sh-upload .sh-spark > span { background: linear-gradient(90deg, var(--sh-upload), #a394f5); }
.sh-metric.sh-warn   .sh-spark > span { background: linear-gradient(90deg, var(--sh-warning), #f7c87a); }
.sh-metric.sh-danger .sh-spark > span { background: linear-gradient(90deg, var(--sh-danger), #e89289); }
.sh-metric.sh-dark {
  background: linear-gradient(180deg, #0f1d2c, #15263a);
  color: rgba(241, 246, 250, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}
.sh-metric.sh-dark .sh-spark { background: rgba(255, 255, 255, 0.12); }

.sh-hero-chip {
  display: grid; gap: 8px; min-width: 180px; padding: 18px 20px;
  border-radius: 22px;
  background: rgba(10, 26, 42, 0.96);
  color: rgba(244, 247, 250, 0.94);
}
.sh-hero-chip .sh-l {
  color: rgba(244, 247, 250, 0.62); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
}
.sh-hero-chip strong {
  font-family: var(--sh-font-display); font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.sh-hero-chip .sh-sub { color: rgba(244, 247, 250, 0.62); font-size: 12px; }

/* ---------- 8 · LIST ---------- */

.sh-list { list-style: none; margin: 0; padding: 0; }
.sh-list li {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px dashed rgba(17, 32, 48, 0.08);
}
.sh-list li:last-child { border-bottom: none; }
.sh-list .sh-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  background: var(--sh-primary-soft); color: var(--sh-primary-strong);
}
.sh-list .sh-icon.sh-hb     { background: var(--sh-hb-soft);     color: var(--sh-hb); }
.sh-list .sh-icon.sh-dnd    { background: var(--sh-dnd-soft);    color: var(--sh-dnd); }
.sh-list .sh-icon.sh-upload { background: var(--sh-upload-soft); color: var(--sh-upload); }
.sh-list .sh-grow { flex: 1; min-width: 0; }
.sh-list .sh-grow strong { display: block; font-size: 14px; font-weight: 700; }
.sh-list .sh-grow span   { display: block; font-size: 12px; color: var(--sh-muted); margin-top: 2px; }

.sh-status-positive { color: var(--sh-hb); font-weight: 700; font-size: 12px; }
.sh-status-warning  { color: var(--sh-warning); font-weight: 700; font-size: 12px; }
.sh-status-danger   { color: var(--sh-danger); font-weight: 700; font-size: 12px; }

/* ---------- 9 · MODULE CARDS (Home) ---------- */

.sh-modules-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
@media (max-width: 1100px) { .sh-modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .sh-modules-grid { grid-template-columns: 1fr; } }

.sh-module-card {
  padding: 22px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 250, 0.96));
  border: 1px solid var(--sh-line);
  display: flex; flex-direction: column; gap: 14px;
  transition: 200ms ease; text-decoration: none; color: var(--sh-text);
}
.sh-module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(7, 24, 39, 0.10);
  border-color: rgba(217, 164, 65, 0.35);
}
.sh-module-card .sh-m-head {
  display: flex; align-items: center; justify-content: space-between;
}
.sh-module-card .sh-m-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.sh-module-card.sh-m-hb     .sh-m-icon { background: var(--sh-hb-soft);     color: var(--sh-hb); }
.sh-module-card.sh-m-dnd    .sh-m-icon { background: var(--sh-dnd-soft);    color: var(--sh-dnd); }
.sh-module-card.sh-m-upload .sh-m-icon { background: var(--sh-upload-soft); color: var(--sh-upload); }
.sh-module-card.sh-m-vault  .sh-m-icon { background: rgba(240, 113, 90, 0.13);  color: var(--sh-vault); }
.sh-module-card.sh-m-webmail .sh-m-icon{ background: rgba(74, 166, 194, 0.13);  color: var(--sh-webmail); }
.sh-module-card.sh-m-tools  .sh-m-icon { background: rgba(58, 161, 128, 0.13);  color: var(--sh-tools); }
.sh-module-card.sh-m-admin  .sh-m-icon { background: rgba(17, 32, 48, 0.08);   color: var(--sh-muted); }

.sh-module-card h3 { margin: 0; font-family: var(--sh-font-display); font-size: 20px; }
.sh-module-card p { margin: 0; color: var(--sh-muted); font-size: 13px; line-height: 1.5; }
.sh-module-card .sh-m-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
}
.sh-module-card .sh-m-cta {
  font-weight: 700; font-size: 13px; color: var(--sh-primary-strong);
  display: inline-flex; align-items: center; gap: 6px;
}
.sh-module-card.sh-m-hb     .sh-m-cta { color: var(--sh-hb); }
.sh-module-card.sh-m-dnd    .sh-m-cta { color: var(--sh-dnd); }
.sh-module-card.sh-m-upload .sh-m-cta { color: var(--sh-upload); }

html[data-theme="dark"] body.sh-v2 .sh-module-card {
  background: linear-gradient(145deg, rgba(18, 34, 53, 0.96), rgba(9, 20, 34, 0.98));
  border-color: rgba(226, 232, 240, 0.13);
  color: var(--sh-text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body.sh-v2 .sh-module-card:hover {
  border-color: rgba(217, 164, 65, 0.42);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] body.sh-v2 .sh-module-card h3 {
  color: #f8fbff;
}

html[data-theme="dark"] body.sh-v2 .sh-module-card p {
  color: #b6c7d8;
}

html[data-theme="dark"] body.sh-v2 .sh-module-card .sh-chip {
  background: rgba(226, 232, 240, 0.10);
  color: #cbd8e4;
}

html[data-theme="dark"] body.sh-v2 .sh-module-card.sh-m-hb .sh-chip {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

html[data-theme="dark"] body.sh-v2 .sh-module-card.sh-m-dnd .sh-chip {
  background: rgba(248, 113, 113, 0.13);
  color: #fca5a5;
}

html[data-theme="dark"] body.sh-v2 .sh-module-card.sh-m-upload .sh-chip {
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
}

html[data-theme="dark"] body.sh-v2 .sh-module-card.sh-m-admin .sh-m-icon {
  background: rgba(226, 232, 240, 0.10);
  color: #cbd8e4;
}

/* ---------- 10 · FORMS ---------- */

.sh-fld { margin-bottom: 14px; }
.sh-fld label {
  display: block; margin-bottom: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sh-muted);
}
.sh-fld input, .sh-fld textarea, .sh-fld select {
  width: 100%; font-family: inherit; font-size: 14px;
  padding: 12px 14px; border-radius: 16px;
  background: #fff; color: var(--sh-text);
  border: 1px solid rgba(17, 32, 48, 0.1);
  transition: border-color 150ms, box-shadow 150ms;
  min-height: 44px;
}
.sh-fld input:focus, .sh-fld textarea:focus, .sh-fld select:focus {
  outline: none; border-color: var(--sh-primary);
  box-shadow: 0 0 0 3px var(--sh-primary-soft);
}

/* ---------- 11 · UTILITIES + LAYOUT ---------- */

.sh-row { display: flex; align-items: center; gap: 12px; }
.sh-row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sh-grow { flex: 1; min-width: 0; }
.sh-muted { color: var(--sh-muted); }
.sh-auth-shell { width: 100%; max-width: 560px; margin: 0 auto; }
.sh-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.6;
}
.sh-auth-alert--error {
  background: rgba(223, 93, 82, 0.1);
  border: 1px solid rgba(223, 93, 82, 0.3);
  color: var(--sh-danger);
}
.sh-auth-alert--success {
  background: rgba(29, 157, 118, 0.1);
  border: 1px solid rgba(29, 157, 118, 0.3);
  color: var(--sh-hb);
}
.sh-auth-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sh-auth-link {
  color: var(--sh-primary-strong);
  font-weight: 700;
  text-decoration: none;
}
.sh-auth-link:hover { text-decoration: underline; }
.sh-auth-link--quiet { font-size: 13px; }
.sh-auth-copy {
  font-size: 14px;
  line-height: 1.65;
  color: var(--sh-muted);
}
.sh-auth-copy p { margin: 0; }
.sh-auth-copy p + p { margin-top: 10px; }
.sh-auth-meta {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--sh-muted);
  line-height: 1.6;
}
.sh-auth-divider {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sh-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.sh-auth-divider::before,
.sh-auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--sh-line);
}
.sh-auth-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sh-auth-actions > * { flex: 1 1 220px; }
.sh-auth-code {
  font-family: var(--sh-font-display);
  font-size: 13px;
  background: rgba(17, 32, 48, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  word-break: break-word;
}
.sh-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sh-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sh-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) {
  .sh-cols-2, .sh-cols-3, .sh-cols-4 { grid-template-columns: 1fr; }
}
.sh-stack { display: flex; flex-direction: column; gap: 12px; }
.sh-mt-4 { margin-top: 4px; } .sh-mt-8 { margin-top: 8px; }
.sh-mt-14 { margin-top: 14px; } .sh-mt-20 { margin-top: 20px; }

/* ---------- 12 · CONSENT + FOOTER (compact, in-shell) ---------- */

.sh-consent {
  margin-top: 24px; padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--sh-line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; font-size: 13px; color: var(--sh-muted);
}
.sh-consent a { color: var(--sh-primary-strong); font-weight: 700; }

.sh-footer {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--sh-line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--sh-muted);
}
.sh-footer a:hover { color: var(--sh-text); }

/* ---------- 13 · EMPTY / LEGAL / ERROR PAGES ---------- */

.sh-prose { max-width: 72ch; }
.sh-prose h2 { font-family: var(--sh-font-display); font-size: 20px; margin: 24px 0 10px; }
.sh-prose h3 { font-family: var(--sh-font-display); font-size: 16px; margin: 18px 0 8px; }
.sh-prose p, .sh-prose li { font-size: 15px; line-height: 1.6; color: var(--sh-text); }
.sh-prose a { color: var(--sh-primary-strong); font-weight: 600; }
.sh-prose a:hover { text-decoration: underline; }
.sh-prose p, .sh-prose li, .sh-prose code { overflow-wrap: anywhere; }
.sh-prose code {
  font-family: var(--sh-font-display); font-size: 13px;
  background: rgba(17, 32, 48, 0.06); padding: 2px 6px; border-radius: 4px;
}

.sh-legal-note {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.92));
  border-radius: 18px;
  padding: 18px 20px;
}

.sh-legal-note__eyebrow {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sh-legal-note__date {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.sh-legal-note__body {
  margin: 8px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

html[data-theme="dark"] body.sh-v2 .sh-legal-note {
  background: linear-gradient(135deg, rgba(22, 38, 58, 0.96), rgba(13, 28, 46, 0.94));
  border-color: rgba(226, 232, 240, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] body.sh-v2 .sh-legal-note__eyebrow {
  color: #f0bd58;
}

html[data-theme="dark"] body.sh-v2 .sh-legal-note__date {
  color: #f8fbff;
}

html[data-theme="dark"] body.sh-v2 .sh-legal-note__body {
  color: #aebfd0;
}

.sh-error-hero {
  text-align: center; padding: 36px 24px;
}
.sh-error-code {
  font-family: var(--sh-font-display); font-weight: 700;
  font-size: 92px; line-height: 0.9;
  color: var(--sh-primary-strong);
  letter-spacing: -0.03em;
}
.sh-error-code.sh-danger { color: var(--sh-danger); }
.sh-error-message {
  font-family: var(--sh-font-display); font-size: 14px;
  color: var(--sh-muted); margin-top: 12px;
  background: rgba(17, 32, 48, 0.04);
  border: 1px solid var(--sh-line);
  border-radius: 14px;
  padding: 12px 16px;
  display: inline-block; max-width: 48ch;
  text-align: left;
}

@media (max-width: 960px) {
  body.sh-v2 .sh-page {
    padding: 14px;
  }

  .sh-shell,
  .sh-shell.sh-shell-minimal {
    width: min(100%, calc(100vw - 28px));
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 26px;
  }

  .sh-sidebar {
    padding: 18px 16px;
    border-radius: 24px;
  }

  .sh-content,
  .sh-content.sh-content-minimal {
    padding: 18px 16px 22px;
    border-radius: 24px;
  }

  .sh-minimal-head {
    margin-bottom: 18px;
  }

  .sh-topbar,
  .sh-panel-head,
  .sh-consent,
  .sh-row-between {
    flex-direction: column;
    align-items: stretch;
  }

  .sh-topbar-title h1 {
    font-size: clamp(2.1rem, 7vw, 2.7rem);
  }

  .sh-topbar-title p {
    max-width: none;
  }

  .sh-topbar-actions {
    width: 100%;
  }

  .sh-topbar-actions > * {
    flex: 1 1 220px;
  }

  .sh-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .sh-prose {
    max-width: none;
  }
}

@media (max-width: 640px) {
  body.sh-v2 .sh-page {
    padding: 8px;
  }

  .sh-shell,
  .sh-shell.sh-shell-minimal {
    width: calc(100vw - 16px);
    padding: 12px;
    border-radius: 22px;
  }

  .sh-sidebar,
  .sh-content,
  .sh-content.sh-content-minimal,
  .sh-panel {
    border-radius: 20px;
  }

  .sh-sidebar,
  .sh-content,
  .sh-content.sh-content-minimal {
    padding: 16px 14px 18px;
  }

  .sh-panel {
    padding: 18px;
  }

  .sh-brand-name {
    font-size: 22px;
  }

  .sh-topbar-title h1 {
    font-size: 1.95rem;
    line-height: 1.06;
  }

  .sh-crumbs {
    font-size: 10px;
    letter-spacing: 0.16em;
    line-height: 1.5;
  }

  .sh-topbar-actions > *,
  .sh-auth-actions > * {
    flex-basis: 100%;
  }

  .sh-auth-inline {
    align-items: flex-start;
  }

  .sh-minimal-head,
  .sh-minimal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sh-minimal-language,
  .sh-minimal-language .sh-language-switcher__inner {
    width: 100%;
  }

  .sh-auth-meta {
    font-size: 12px;
  }

  .sh-prose h2 {
    font-size: 18px;
  }

  .sh-prose p,
  .sh-prose li {
    font-size: 14px;
  }
}

/* v3.0.4 issue pass: keep legal/uploader/account shells theme-consistent. */
html[data-theme="dark"] body.sh-v2 :is(.sh-topbar, .sh-minimal-head, .sh-footer),
body.sh-v2 :is(.sh-topbar, .sh-minimal-head, .sh-footer),
.sh-topbar,
.sh-minimal-head,
.sh-footer {
  background: transparent !important;
}

.audit-empty-state {
  background: var(--sh-panel-muted);
  border: 1px dashed var(--sh-line);
  color: var(--sh-muted);
}

.audit-empty-state__title {
  color: var(--sh-text);
}

.audit-empty-state__body {
  color: var(--sh-muted);
}

html[data-theme="dark"] body.sh-v2 .audit-empty-state {
  background: rgba(15, 27, 43, 0.92);
  border-color: rgba(233, 242, 248, 0.16);
}

html[data-theme="dark"] body.sh-v2 :is(.bg-amber-50, .bg-gray-50, .bg-slate-50) {
  background-color: rgba(16, 32, 52, 0.96) !important;
}

html[data-theme="dark"] body.sh-v2 :is(.text-gray-700, .text-slate-700, .text-gray-600, .text-slate-600) {
  color: var(--sh-muted) !important;
}

/* Public landing page: explicit theme tokens so arbitrary Tailwind gradients
   do not leave the root page in light mode after toggling. */
.sh-public-home {
  color: var(--sh-text);
}

.sh-public-home-bg {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(14, 165, 233, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(122, 42, 42, 0.10), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 46%, #f8fafc 100%);
}

.sh-public-home-header,
.sh-public-home-footer {
  background: transparent !important;
}

.sh-public-home-header {
  overflow: visible;
}

.sh-public-brand {
  position: relative;
  isolation: isolate;
}

.sh-public-logo-mark {
  position: relative;
  isolation: isolate;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.sh-public-logo-mark::before {
  content: "";
  position: absolute;
  inset: -18px -18px -22px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.30) 0%,
    rgba(56, 189, 248, 0.18) 34%,
    rgba(16, 185, 129, 0.10) 54%,
    transparent 74%
  );
  filter: blur(10px);
  opacity: 0.82;
  pointer-events: none;
}

.sh-public-feature,
.sh-public-module-frame,
.sh-public-info-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}

.sh-public-module-card--hb {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(240, 249, 255, 0.92)) !important;
}

.sh-public-module-card--dnd {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(254, 242, 242, 0.92)) !important;
}

.sh-public-next-card {
  background: #020617 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-home-bg {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 25%),
    radial-gradient(circle at 82% 16%, rgba(56, 189, 248, 0.14), transparent 25%),
    radial-gradient(circle at bottom right, rgba(176, 60, 72, 0.14), transparent 30%),
    linear-gradient(180deg, #06101b 0%, #0a1828 48%, #07111d 100%);
}

html[data-theme="dark"] body.sh-v2 .sh-public-home-header,
html[data-theme="dark"] body.sh-v2 .sh-public-home-footer {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: rgba(226, 232, 240, 0.12) !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-logo-mark {
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] body.sh-v2 .sh-public-logo-mark::before {
  background: radial-gradient(
    circle,
    rgba(125, 211, 252, 0.34) 0%,
    rgba(45, 212, 191, 0.16) 38%,
    rgba(125, 211, 252, 0.08) 56%,
    transparent 76%
  );
  filter: blur(12px);
  opacity: 0.92;
}

html[data-theme="dark"] body.sh-v2 .sh-public-welcome-pill {
  background: rgba(14, 27, 44, 0.86) !important;
  border-color: rgba(125, 211, 252, 0.28) !important;
  color: #7dd3fc !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-feature,
html[data-theme="dark"] body.sh-v2 .sh-public-module-frame,
html[data-theme="dark"] body.sh-v2 .sh-public-info-card {
  background: rgba(12, 24, 39, 0.82) !important;
  border-color: rgba(226, 232, 240, 0.12) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22) !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-module-card {
  border-color: rgba(226, 232, 240, 0.12) !important;
  color: #edf3f8 !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-home :is(.text-slate-950, .text-slate-900, .text-slate-800) {
  color: #edf3f8 !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-home :is(.text-slate-700, .text-slate-600, .text-slate-500, .text-slate-400) {
  color: #9fb0bf !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-home .text-sky-700 {
  color: #7dd3fc !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-home :is(.btn-surface, .sh-pill.sh-ghost) {
  --btn-bg: rgba(15, 27, 43, 0.92);
  --btn-border-color: rgba(226, 232, 240, 0.14);
  --btn-color: #edf3f8;
  --btn-hover-bg: rgba(24, 40, 60, 0.96);
  --btn-hover-border-color: rgba(226, 232, 240, 0.22);
  --btn-hover-color: #ffffff;
  --btn-shadow: none;
}

html[data-theme="dark"] body.sh-v2 .sh-public-module-card--hb {
  background: linear-gradient(135deg, rgba(5, 78, 63, 0.62), rgba(10, 31, 50, 0.96)) !important;
  border-color: rgba(52, 211, 153, 0.20) !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-module-card--dnd {
  background: linear-gradient(135deg, rgba(20, 36, 58, 0.96), rgba(21, 31, 49, 0.94)) !important;
  border-color: rgba(248, 113, 113, 0.20) !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-module-card :is(.bg-white, .dark\:bg-gray-900) {
  background: rgba(5, 13, 24, 0.62) !important;
  color: #cbd8e4 !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-module-card--hb :is(.text-emerald-700, .group-hover\:text-emerald-800) {
  color: #6ee7b7 !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-module-card--dnd :is(.text-amber-800, .group-hover\:text-amber-900) {
  color: #f6c768 !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-module-card--dnd .bg-amber-700\/10 {
  background: rgba(246, 199, 104, 0.12) !important;
}

html[data-theme="dark"] body.sh-v2 .sh-public-next-card {
  background: rgba(2, 6, 23, 0.9) !important;
  border-color: rgba(226, 232, 240, 0.12) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24) !important;
}

/* Consent banner follows the active shell theme instead of mixing light
   banner chrome with dark option cards. */
.sh-consent-dialog {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #112030;
}

.sh-consent-head {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.92), rgba(255, 255, 255, 0.95), rgba(224, 242, 254, 0.9)) !important;
}

.sh-consent-version,
.sh-consent-option {
  background: rgba(248, 250, 252, 0.92) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
}

.sh-consent-actions {
  background: rgba(248, 250, 252, 0.86) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
}

html[data-theme="dark"] body.sh-v2 .sh-consent-dialog,
html[data-theme="dark"] body.cj-body .sh-consent-dialog,
html[data-theme="dark"] body.hb-v2-body .sh-consent-dialog {
  background: rgba(8, 19, 33, 0.96) !important;
  border-color: rgba(226, 232, 240, 0.14) !important;
  color: #edf3f8;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42) !important;
}

html[data-theme="dark"] body.sh-v2 .sh-consent-head,
html[data-theme="dark"] body.cj-body .sh-consent-head,
html[data-theme="dark"] body.hb-v2-body .sh-consent-head {
  background: linear-gradient(90deg, rgba(71, 45, 9, 0.62), rgba(9, 20, 34, 0.96), rgba(12, 45, 61, 0.72)) !important;
}

html[data-theme="dark"] body.sh-v2 .sh-consent-version,
html[data-theme="dark"] body.sh-v2 .sh-consent-option,
html[data-theme="dark"] body.cj-body .sh-consent-version,
html[data-theme="dark"] body.cj-body .sh-consent-option,
html[data-theme="dark"] body.hb-v2-body .sh-consent-version,
html[data-theme="dark"] body.hb-v2-body .sh-consent-option {
  background: rgba(15, 27, 43, 0.92) !important;
  border-color: rgba(226, 232, 240, 0.14) !important;
}

html[data-theme="dark"] body.sh-v2 .sh-consent-actions,
html[data-theme="dark"] body.cj-body .sh-consent-actions,
html[data-theme="dark"] body.hb-v2-body .sh-consent-actions {
  background: rgba(10, 20, 32, 0.94) !important;
  border-color: rgba(226, 232, 240, 0.12) !important;
}

html[data-theme="dark"] body.sh-v2 .sh-consent-dialog :is(.text-slate-950, .text-slate-900),
html[data-theme="dark"] body.cj-body .sh-consent-dialog :is(.text-slate-950, .text-slate-900),
html[data-theme="dark"] body.hb-v2-body .sh-consent-dialog :is(.text-slate-950, .text-slate-900) {
  color: #edf3f8 !important;
}

html[data-theme="dark"] body.sh-v2 .sh-consent-dialog :is(.text-slate-700, .text-slate-600, .text-slate-500),
html[data-theme="dark"] body.cj-body .sh-consent-dialog :is(.text-slate-700, .text-slate-600, .text-slate-500),
html[data-theme="dark"] body.hb-v2-body .sh-consent-dialog :is(.text-slate-700, .text-slate-600, .text-slate-500) {
  color: #9fb0bf !important;
}
