:root {
  --ink: #1c1614;
  --muted: #6d6561;
  --line: #e9e0dc;
  --page: #f6efeb;
  --topbar: rgba(246, 239, 235, 0.82);
  --panel: #fffaf8;
  --panel-strong: #ffffff;
  --panel-glass: rgba(255, 251, 249, 0.9);
  --field: #ffffff;
  --sidebar-ink: #342726;
  --sidebar-muted: #756a65;
  --sidebar-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 248, 0.96)),
    linear-gradient(180deg, rgba(200, 38, 44, 0.08), rgba(162, 31, 36, 0.05));
  --sidebar-hover: rgba(200, 38, 44, 0.07);
  --sidebar-line: rgba(28, 22, 20, 0.08);
  --devbar-bg: rgba(255, 255, 255, 0.94);
  --devbar-ink: #342726;
  --devbar-field: #ffffff;
  --root-red: #c8262c;
  --root-red-dark: #a21f24;
  --root-gold: #e8a020;
  --root-green: #197c45;
  --root-blue: #2563eb;
  --inverse-ink: #ffffff;
  --inverse-panel: #1c1614;
  --hero-ink: #17100f;
  --shadow: 0 24px 70px rgba(28, 22, 20, 0.14);
  --soft-shadow: 0 14px 34px rgba(28, 22, 20, 0.06);
  --lift-shadow: 0 22px 44px rgba(28, 22, 20, 0.12);
  --body-wash:
    linear-gradient(135deg, rgba(200, 38, 44, 0.07), transparent 32rem),
    radial-gradient(circle at top right, rgba(200, 38, 44, 0.08), transparent 26rem),
    var(--page);
  --font-ui: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Fraunces, Georgia, "Times New Roman", serif;
  --radius-sm: 0.6rem;
  --radius-md: 1rem;
  --radius-lg: 1.4rem;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--root-red) 18%, transparent);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #f7eee9;
  --muted: #b3a49d;
  --line: rgba(255, 255, 255, 0.11);
  --page: #100d0d;
  --topbar: rgba(16, 13, 13, 0.8);
  --panel: #171111;
  --panel-strong: #201716;
  --panel-glass: rgba(30, 22, 21, 0.88);
  --field: #150f0f;
  --sidebar-ink: #ffffff;
  --sidebar-muted: rgba(255, 255, 255, 0.72);
  --sidebar-bg: linear-gradient(180deg, #191414, #281615 52%, #130f0f);
  --sidebar-hover: rgba(255, 255, 255, 0.08);
  --sidebar-line: rgba(255, 255, 255, 0.08);
  --devbar-bg: rgba(18, 16, 16, 0.96);
  --devbar-ink: #ffffff;
  --devbar-field: #ffffff;
  --root-red: #c8262c;
  --root-red-dark: #a21f24;
  --root-gold: #ffc857;
  --root-green: #3ec97a;
  --root-blue: #72a7ff;
  --inverse-ink: #171111;
  --inverse-panel: #f7eee9;
  --hero-ink: #17100f;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.5);
  --soft-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  --lift-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--root-red) 30%, transparent);
  --body-wash:
    radial-gradient(circle at top left, rgba(200, 38, 44, 0.2), transparent 25rem),
    radial-gradient(circle at 82% 4%, rgba(200, 38, 44, 0.09), transparent 28rem),
    linear-gradient(135deg, #100d0d 0%, #171010 48%, #0b0909 100%);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--body-wash);
  font-family: var(--font-ui);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in srgb, var(--root-red) 22%, transparent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72, "SOFT" 40;
}

.display-number,
.metric-card strong,
.compliance-kpi strong,
.compliance-ring span,
.knowledge-stat strong,
.notifications-hero-stat strong,
.stores-hero-stats strong,
.compliance-hero h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-variation-settings: "opsz" 72;
  font-variant-numeric: lining-nums;
}

body:has(.dev-login-bar) {
  padding-top: 3.25rem;
}

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

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

.dev-login-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  padding: 0.45rem 1rem;
  color: var(--devbar-ink);
  background: var(--devbar-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.dev-login-bar form {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dev-login-bar label {
  font-size: 0.78rem;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--root-gold);
}

.dev-login-bar input {
  width: min(24rem, 45vw);
  min-height: 2.15rem;
  padding: 0.4rem 0.65rem;
  color: #121010;
  background: var(--devbar-field);
  border-color: var(--line);
}

.dev-login-bar button {
  min-height: 2.15rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--root-red);
  font-weight: 800;
  cursor: pointer;
}

.dev-login-error {
  color: #ffc857;
  font-size: 0.84rem;
  font-weight: 700;
}

.shell-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 17.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem;
  overflow-y: auto;
  color: var(--sidebar-ink);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-line);
  box-shadow: 18px 0 50px rgba(18, 16, 16, 0.06);
}

body:has(.dev-login-bar) .shell-sidebar {
  inset: 3.25rem auto 0 0;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 5rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: #fff;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

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

.nav-stack a,
.icon-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.85rem;
  padding: 0 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: var(--sidebar-muted);
  background: transparent;
  cursor: pointer;
}

.nav-stack a:hover,
.icon-text:hover {
  color: var(--sidebar-ink);
  background: var(--sidebar-hover);
  border-color: var(--sidebar-line);
}

.nav-notification-link {
  position: relative;
}

.nav-unread-badge {
  margin-left: auto;
  min-width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  border-radius: 999px;
  color: #fff;
  background: var(--root-red);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.nav-stack svg,
.icon-text svg,
.icon-button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.logout-form {
  margin-top: auto;
}

.danger {
  color: var(--root-red);
  width: 100%;
}

.notification-topbar-link {
  position: relative;
}

.icon-button-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.28rem;
  border: 2px solid var(--topbar);
  border-radius: 999px;
  color: #fff;
  background: var(--root-red);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
}

.shell-main {
  min-height: 100vh;
  margin-left: 17.5rem;
}

.shell-main.anonymous {
  margin-left: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 2rem;
  background: var(--topbar);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: 0;
}

.eyebrow {
  color: var(--root-red);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle,
.icon-button,
.avatar {
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  color: var(--ink);
}

.theme-toggle,
.icon-button {
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.theme-toggle:hover,
.icon-button:hover {
  border-color: rgba(200, 38, 44, 0.36);
  color: var(--root-red);
  transform: translateY(-1px);
}

.theme-toggle {
  position: relative;
}

.theme-toggle-floating {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  box-shadow: var(--soft-shadow);
}

body:has(.dev-login-bar) .theme-toggle-floating {
  top: 4.25rem;
}

body:has(.dev-login-bar) .topbar {
  top: 3.25rem;
}

.theme-toggle svg {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  transition: opacity 160ms ease, transform 160ms ease;
}

:root[data-theme="light"] .theme-toggle-moon,
:root[data-theme="dark"] .theme-toggle-sun {
  opacity: 0;
  transform: scale(0.7) rotate(-24deg);
}

:root[data-theme="light"] .theme-toggle-sun,
:root[data-theme="dark"] .theme-toggle-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.avatar {
  background: var(--ink);
  color: var(--panel-strong);
  font-weight: 800;
}

.content-shell {
  padding: 2rem;
}

.shell-main.anonymous .content-shell {
  padding: 0;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.hero-copy {
  min-height: 18rem;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-radius: var(--radius-md);
  color: #fff;
  background:
    linear-gradient(110deg, rgba(18, 16, 16, 0.96), rgba(90, 9, 12, 0.9)),
    url("/img/roots-logo.svg");
  background-size: cover, 44rem auto;
  background-position: center, 105% 35%;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy h2 {
  max-width: 44rem;
  margin: 0.7rem 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
}

.hero-copy p {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

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

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

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

.metric-card,
.panel,
.table-panel,
.form-panel,
.store-card,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
}

.metric-card {
  padding: 1rem;
}

.metric-card strong {
  display: block;
  margin-top: 0.65rem;
  font-size: 1.9rem;
  line-height: 1;
}

.metric-card span,
.muted {
  color: var(--muted);
}

.panel,
.table-panel,
.form-panel {
  padding: 1.15rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.45fr);
  gap: 1rem;
  margin-top: 1rem;
}

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

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 1rem;
}

.btn,
.btn-secondary,
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.55rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms var(--ease-spring), box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn svg,
.btn-secondary svg,
.btn-ghost svg {
  width: 1.05rem;
  height: 1.05rem;
}

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

.btn:active,
.btn-secondary:active,
.btn-ghost:active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--root-red-dark) 12%, var(--root-red)), var(--root-red-dark));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--root-red-dark) 32%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn:hover {
  background: linear-gradient(180deg, var(--root-red), var(--root-red-dark));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--root-red-dark) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-secondary {
  background: var(--inverse-panel);
  color: var(--inverse-ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  color: var(--ink);
  background: var(--panel-strong);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--root-red) 34%, var(--line));
  color: var(--root-red);
}

.btn.is-loading,
.btn[data-loading] {
  pointer-events: none;
  color: transparent;
}

.btn.is-loading::after,
.btn[data-loading]::after {
  content: "";
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: btnSpin 640ms linear infinite;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

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

.store-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  min-height: 12rem;
}

.store-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.stores-page {
  display: grid;
  gap: 1rem;
}

.stores-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.45fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1.35rem, 3vw, 2.35rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: #fff;
  background:
    linear-gradient(112deg, rgba(18, 16, 16, 0.98), rgba(94, 9, 13, 0.9)),
    radial-gradient(circle at 84% 10%, rgba(200, 38, 44, 0.34), transparent 21rem),
    linear-gradient(90deg, rgba(200, 38, 44, 0.24), transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stores-hero h2 {
  max-width: 44rem;
  margin: 0.4rem 0 0.55rem;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.92;
}

.stores-hero p {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.stores-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  align-content: end;
}

.stores-hero-stats div {
  min-height: 7rem;
  display: grid;
  align-content: end;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.stores-hero-stats span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stores-hero-stats strong {
  margin-top: 0.35rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 0.95;
}

.stores-directory {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-glass) 92%, transparent), var(--panel-glass)),
    linear-gradient(90deg, color-mix(in srgb, var(--root-red) 5%, transparent), transparent 46%);
  box-shadow: var(--soft-shadow);
}

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

.stores-directory-header h2 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.stores-directory-meta,
.store-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stores-directory-meta span,
.store-card-meta span {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.stores-directory-meta svg,
.store-card-meta svg,
.store-card-address svg,
.store-card-footer svg,
.badge svg {
  width: 0.95rem;
  height: 0.95rem;
}

.store-list-premium {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.premium-store-card {
  position: relative;
  isolation: isolate;
  min-height: 16.5rem;
  align-content: space-between;
  padding: 1.1rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--panel-strong) 92%, transparent), color-mix(in srgb, var(--panel) 88%, transparent)),
    linear-gradient(90deg, color-mix(in srgb, var(--root-red) 6%, transparent), transparent 58%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.premium-store-card:hover,
.premium-store-card:focus-visible {
  border-color: color-mix(in srgb, var(--root-red) 38%, var(--line));
  box-shadow: 0 24px 54px rgba(18, 16, 16, 0.12);
  transform: translateY(-3px);
  outline: none;
}

.store-card-glow {
  position: absolute;
  inset: auto -2.8rem -3.2rem auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--root-red) 11%, transparent);
  z-index: -1;
}

.premium-store-card:nth-child(2n) .store-card-glow {
  background: color-mix(in srgb, var(--root-gold) 18%, transparent);
}

.store-card-topline,
.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.store-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--root-red) 26%, var(--line));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--root-red) 8%, var(--panel-strong));
  color: var(--root-red);
}

.store-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.store-card-body {
  display: grid;
  gap: 0.6rem;
}

.store-card-type {
  color: var(--root-red);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-store-card h3 {
  max-width: 32rem;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  line-height: 1.08;
}

.store-card-address {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.45;
}

.store-card-address svg {
  min-width: 0.95rem;
  margin-top: 0.12rem;
  color: var(--root-red);
}

.store-card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.store-card-footer svg {
  color: var(--root-red);
  transition: transform 180ms ease;
}

.premium-store-card:hover .store-card-footer svg,
.premium-store-card:focus-visible .store-card-footer svg {
  transform: translate(2px, -2px);
}

.stores-empty {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 3rem 1rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
}

.stores-empty > div {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 8%, var(--panel-strong));
}

.stores-empty h3 {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--muted) 14%, var(--panel-strong));
  color: var(--muted);
}

.badge.red {
  background: color-mix(in srgb, var(--root-red) 18%, var(--panel-strong));
  color: var(--root-red);
}

.badge.green {
  background: color-mix(in srgb, var(--root-green) 18%, var(--panel-strong));
  color: var(--root-green);
}

.badge.gold {
  background: color-mix(in srgb, var(--root-gold) 22%, var(--panel-strong));
  color: color-mix(in srgb, var(--root-gold) 76%, var(--ink));
}

.badge.blue {
  background: color-mix(in srgb, var(--root-blue) 18%, var(--panel-strong));
  color: var(--root-blue);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  color: var(--muted);
  text-align: left;
  font-size: 0.74rem;
  text-transform: uppercase;
}

th,
td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

tr:last-child td {
  border-bottom: 0;
}

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

.form-field {
  display: grid;
  gap: 0.45rem;
}

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

label {
  font-weight: 800;
  font-size: 0.86rem;
}

label.required::after,
.required-mark {
  content: " *";
  color: var(--root-red);
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.8rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  padding: 0.72rem 0.95rem;
  background: var(--field);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--muted) 42%, var(--line));
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--root-red);
  box-shadow: var(--focus-ring);
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.field-validation-error,
.validation-summary-errors {
  color: var(--root-red);
  font-weight: 700;
  font-size: 0.85rem;
}

.validation-summary-errors {
  margin-bottom: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--root-red) 36%, var(--line));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--root-red) 8%, var(--panel-strong));
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

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

.auth-card {
  width: min(100%, 29rem);
  padding: 1.4rem;
  background: var(--panel-glass);
}

.auth-card img {
  display: block;
  width: 14rem;
  max-width: 100%;
  margin-bottom: 1.25rem;
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.8rem;
}

.chart-box {
  position: relative;
  min-height: 18rem;
}

.kaia-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 94%, transparent), color-mix(in srgb, var(--panel) 88%, transparent)),
    linear-gradient(90deg, rgba(200, 38, 44, 0.08), transparent);
  box-shadow: var(--soft-shadow);
}

.kaia-header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2.15rem);
}

.kaia-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.kaia-meta span,
.warning-row span,
.kaia-card-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.kaia-meta svg,
.warning-row svg {
  width: 1rem;
  height: 1rem;
}

.kaia-message {
  max-width: 58rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.energy-demo-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border: 1.5px dashed color-mix(in srgb, var(--root-gold) 62%, var(--line));
  border-radius: var(--radius-md);
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--root-gold) 13%, var(--panel-strong)), color-mix(in srgb, var(--root-red) 5%, var(--panel-strong)));
  box-shadow: var(--soft-shadow);
}

.energy-demo-icon {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--root-gold) 20%, var(--panel-strong));
  color: color-mix(in srgb, var(--root-gold) 72%, var(--ink));
}

.energy-demo-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.energy-demo-copy {
  display: grid;
  gap: 0.25rem;
}

.energy-demo-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 0.45rem;
  margin-bottom: 0.1rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--root-gold) 45%, var(--line));
  border-radius: 999px;
  color: color-mix(in srgb, var(--root-gold) 72%, var(--ink));
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.energy-demo-badge span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--root-gold);
  box-shadow: 0 0 0 0 rgba(232, 160, 32, 0.55);
  animation: posPulse 2s var(--ease-out) infinite;
}

.energy-demo-copy > strong {
  font-size: 0.96rem;
}

.energy-demo-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.energy-demo-cta {
  white-space: nowrap;
}

.kaia-portal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.65rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--soft-shadow);
}

.kaia-portal-link:hover {
  border-color: rgba(200, 38, 44, 0.34);
  color: var(--root-red);
  transform: translateY(-1px);
}

.kaia-portal-link span {
  color: var(--muted);
}

.kaia-portal-link img {
  display: block;
  width: auto;
  height: 1.35rem;
}

.kaia-portal-link i {
  font-size: 0.85rem;
}

.warning-row {
  border-color: color-mix(in srgb, var(--root-gold) 56%, var(--line));
  background: color-mix(in srgb, var(--root-gold) 14%, var(--panel-strong));
}

.compliance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: #fff;
  background:
    linear-gradient(112deg, rgba(18, 16, 16, 0.96), rgba(92, 10, 13, 0.9)),
    radial-gradient(circle at 88% 16%, rgba(200, 38, 44, 0.26), transparent 24rem);
  box-shadow: var(--shadow);
}

.compliance-hero h2 {
  margin: 0.35rem 0;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
}

.compliance-hero p {
  max-width: 46rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.compliance-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.compliance-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  font-size: 0.82rem;
}

.compliance-score-card {
  min-width: 13rem;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.compliance-ring {
  width: 8.4rem;
  height: 8.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(18, 16, 16, 0.94) 58%, transparent 59%),
    conic-gradient(var(--root-red) calc(var(--score) * 1%), rgba(255, 255, 255, 0.16) 0);
}

.compliance-ring span {
  font-size: 2rem;
  font-weight: 900;
}

.compliance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.compliance-kpi {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
  transition: transform 200ms var(--ease-spring), border-color 200ms ease, box-shadow 200ms ease;
}

.compliance-kpi:hover {
  border-color: color-mix(in srgb, var(--root-red) 24%, var(--line));
  box-shadow: var(--lift-shadow);
  transform: translateY(-2px);
}

.compliance-kpi span,
.compliance-kpi small {
  color: var(--muted);
  font-weight: 800;
}

.compliance-kpi span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.compliance-kpi strong {
  display: block;
  margin: 0.45rem 0 0.25rem;
  font-size: 2rem;
  line-height: 1;
}

.compliance-kpi.urgent {
  border-color: color-mix(in srgb, var(--root-red) 34%, var(--line));
}

.compliance-dashboard-grid,
.compliance-lanes {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(22rem, 0.65fr);
  gap: 1rem;
  margin-top: 1rem;
}

.compliance-dashboard-grid {
  grid-template-areas:
    "wide attention"
    "wide mix";
}

.compliance-panel.wide {
  grid-area: wide;
}

.compliance-dashboard-grid .compliance-panel:nth-child(2) {
  grid-area: attention;
}

.compliance-dashboard-grid .compliance-panel:nth-child(3) {
  grid-area: mix;
}

.compliance-chart-box {
  min-height: 24rem;
}

.compliance-small-chart {
  min-height: 17rem;
}

.compliance-lane {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.compliance-lane:last-child {
  border-bottom: 0;
}

.compliance-lane > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.compliance-lane > div:first-child span,
.compliance-lane small {
  color: var(--muted);
  font-weight: 800;
}

.compliance-lane-track {
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 12%, var(--panel-strong));
}

.compliance-lane-track span {
  display: block;
  width: var(--lane-value);
  height: 100%;
  border-radius: inherit;
  background: var(--lane-color);
}

.attention-list {
  display: grid;
  gap: 0.65rem;
}

.attention-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
}

.attention-list span {
  color: var(--muted);
  font-weight: 800;
}

.kaia-card-grid {
  margin-bottom: 1rem;
}

.kaia-card {
  position: relative;
  overflow: hidden;
  border-left: 4px solid #c9bab5;
}

.kaia-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -3rem auto;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: rgba(200, 38, 44, 0.07);
}

.kaia-card-top {
  justify-content: space-between;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.kaia-card-top svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--root-red);
}

.kaia-fa-icon,
.kaia-material-icon {
  width: 1.35rem;
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--root-red);
  font-size: 1.25rem;
  line-height: 1;
}

.kaia-material-icon {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.kaia-card.tone-success {
  border-left-color: var(--root-green);
}

.kaia-card.tone-warning {
  border-left-color: var(--root-gold);
}

.kaia-card.tone-danger {
  border-left-color: var(--root-red);
}

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

.kaia-widget.wide {
  grid-column: 1 / -1;
}

.text-right {
  text-align: right;
}

.total-row td {
  background: color-mix(in srgb, var(--root-red) 9%, var(--panel-strong));
  color: var(--ink);
  font-weight: 800;
}

.compact-list {
  display: grid;
  gap: 0.75rem;
}

.compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.dashboard-update-link {
  color: var(--ink);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.dashboard-update-link:hover {
  border-color: color-mix(in srgb, var(--root-red) 32%, var(--line));
  background: color-mix(in srgb, var(--root-red) 5%, var(--panel-strong));
  transform: translateY(-1px);
}

.dashboard-update-link strong {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dashboard-update-link p {
  display: -webkit-box;
  margin: 0.25rem 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notifications-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--root-red) 8%, var(--panel-glass)), color-mix(in srgb, var(--root-red) 12%, var(--panel-glass))),
    var(--panel-glass);
  box-shadow: var(--soft-shadow);
}

.notifications-hero h2 {
  max-width: 48rem;
  margin: 0.35rem 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.notifications-hero p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
}

.notifications-hero-stat {
  min-width: 8.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  text-align: center;
}

.notifications-hero-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notifications-hero-stat strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 2.4rem;
  line-height: 1;
}

.notification-center {
  display: grid;
  grid-template-columns: minmax(19rem, 0.38fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.notification-inbox,
.notification-detail,
.notifications-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
}

.notification-inbox {
  position: sticky;
  top: 6.25rem;
  max-height: calc(100vh - 7.5rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.notification-inbox-header,
.notification-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.notification-inbox-header h2,
.notification-detail-header h2 {
  margin: 0.1rem 0 0;
}

.notification-list {
  display: grid;
  gap: 0.35rem;
  padding: 0.5rem;
  overflow-y: auto;
}

.notification-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 5.9rem;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.notification-list-item:hover,
.notification-list-item.is-active {
  border-color: color-mix(in srgb, var(--root-red) 28%, var(--line));
  background: color-mix(in srgb, var(--root-red) 6%, var(--panel-strong));
}

.notification-list-item:hover {
  transform: translateY(-1px);
}

.notification-list-item > svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.notification-dot {
  width: 0.6rem;
  height: 0.6rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: transparent;
}

.is-unread .notification-dot {
  background: var(--root-red);
  box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--root-red) 14%, transparent);
}

.notification-list-copy {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.notification-list-title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-list-preview {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-list-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.notification-list-meta svg {
  width: 0.86rem;
  height: 0.86rem;
}

.notification-list-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.notification-detail {
  min-height: 30rem;
  padding-bottom: 1rem;
}

.notification-detail-header {
  align-items: center;
}

.notification-detail-header h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  line-height: 1.08;
}

.notification-content,
.notification-body {
  padding: 0 1rem;
}

.notification-body {
  margin: 1rem 0 0;
  color: var(--ink);
  line-height: 1.65;
  white-space: pre-wrap;
}

.notification-detail .communication-attachment {
  margin-inline: 1rem;
}

.notification-detail-empty,
.notifications-empty {
  min-height: 20rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.65rem;
  padding: 2rem;
  text-align: center;
}

.notification-detail-empty svg,
.notifications-empty svg {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--root-red);
}

.notification-detail-empty h3,
.notifications-empty h3 {
  margin: 0;
}

.communication-content {
  margin-top: 0.85rem;
  color: var(--ink);
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.communication-content > :first-child {
  margin-top: 0;
}

.communication-content > :last-child {
  margin-bottom: 0;
}

.communication-content p,
.communication-content ul,
.communication-content ol {
  max-width: 78rem;
}

.communication-content a {
  color: var(--root-red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.communication-content img,
.communication-content video {
  display: block;
  max-width: min(100%, 42rem);
  height: auto;
  margin: 1rem 0;
  border-radius: var(--radius-sm);
  background: #000;
}

.communication-content img[src*="emoji.php"],
.communication-content img[width="16px"][height="16px"] {
  display: inline-block;
  width: 1em;
  max-width: 1em;
  height: 1em;
  margin: 0 0.08em;
  border-radius: 0;
  background: transparent;
  vertical-align: -0.15em;
}

.communication-content iframe {
  display: block;
  width: min(100%, 48rem);
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 1rem 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: #000;
}

.communication-attachment {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--root-red) 14%, var(--line));
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 94%, transparent), color-mix(in srgb, var(--root-red) 8%, var(--panel-strong))),
    var(--panel-strong);
}

.communication-attachment-icon {
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 10%, var(--panel-strong));
  border: 1px solid color-mix(in srgb, var(--root-red) 20%, var(--line));
}

.communication-attachment-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.communication-attachment-details {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0.12rem;
}

.communication-attachment-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.communication-attachment-details strong {
  overflow-wrap: anywhere;
}

.communication-attachment-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.communication-attachment-actions svg {
  width: 1rem;
  height: 1rem;
}

.communication-content table {
  margin: 1rem 0;
}

.knowledge-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: #fff;
  background:
    linear-gradient(112deg, rgba(18, 16, 16, 0.94), rgba(96, 12, 15, 0.88)),
    radial-gradient(circle at 82% 10%, rgba(200, 38, 44, 0.26), transparent 22rem);
  box-shadow: var(--shadow);
}

.knowledge-hero h2 {
  margin: 0.45rem 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.knowledge-hero p {
  max-width: 46rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.knowledge-stat {
  display: grid;
  place-items: center;
  min-width: 7rem;
  min-height: 6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.knowledge-stat strong {
  font-size: 2.4rem;
  line-height: 1;
}

.knowledge-stat span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

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

.knowledge-category-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  min-height: 10rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.knowledge-category-card:hover {
  border-color: color-mix(in srgb, var(--root-red) 42%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.knowledge-category-card strong,
.knowledge-category-card small {
  display: block;
}

.knowledge-category-card strong {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.knowledge-category-card small {
  color: var(--muted);
  line-height: 1.45;
}

.knowledge-category-card .badge {
  grid-column: 2;
  align-self: end;
}

.knowledge-folder {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
}

.knowledge-folder-title,
.knowledge-item,
.knowledge-detail-header,
.knowledge-detail-title,
.knowledge-detail-actions,
.knowledge-contact-grid > div {
  display: flex;
  align-items: center;
}

.knowledge-folder-title {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.knowledge-folder-title h3,
.knowledge-detail-title h2 {
  margin: 0;
}

.knowledge-folder-title > svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--root-red);
}

.knowledge-item-list {
  display: grid;
  gap: 0.55rem;
}

.knowledge-item {
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.knowledge-item:hover {
  border-color: color-mix(in srgb, var(--root-red) 42%, var(--line));
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.knowledge-item strong,
.knowledge-item small {
  display: block;
}

.knowledge-item small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 700;
}

.knowledge-item > svg {
  margin-left: auto;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.knowledge-item-icon {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--root-red) 10%, var(--panel-strong));
  color: var(--root-red);
}

.knowledge-item-icon.large {
  width: 3.1rem;
  height: 3.1rem;
  min-width: 3.1rem;
}

.knowledge-item-icon svg,
.knowledge-item-icon i,
.knowledge-item-icon .material-symbols-outlined,
.knowledge-item-icon .material-symbols-rounded,
.knowledge-item-icon .material-symbols-sharp {
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
}

.knowledge-detail-header {
  align-items: flex-start;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.knowledge-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  min-height: 2rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.knowledge-back-link:hover {
  color: var(--root-red);
}

.knowledge-back-link svg {
  width: 1rem;
  height: 1rem;
}

.knowledge-detail-title {
  flex: 1;
  gap: 0.85rem;
}

.knowledge-detail-actions {
  align-self: flex-end;
  gap: 0.6rem;
  margin-top: -3.65rem;
}

.knowledge-detail-panel {
  max-width: 82rem;
}

.knowledge-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.knowledge-contact-grid > div {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
}

.knowledge-contact-grid a {
  color: var(--root-red);
  font-weight: 800;
}

.knowledge-content {
  margin-top: 0;
}

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

.knowledge-tools {
  margin-bottom: 1rem;
}

.knowledge-search {
  flex: 1;
  max-width: 42rem;
  position: relative;
  display: flex;
  align-items: center;
}

.knowledge-search svg {
  position: absolute;
  left: 0.85rem;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.knowledge-search input {
  padding-left: 2.5rem;
  background: var(--panel-strong);
}

.knowledge-list-folder {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.knowledge-list-folder.nested {
  box-shadow: none;
  background: var(--panel-strong);
}

.knowledge-list-folder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.knowledge-folder-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.knowledge-folder-toggle strong {
  display: block;
  font-size: 1rem;
}

.knowledge-folder-caret {
  width: 1rem;
  height: 1rem;
  color: var(--root-red);
  transition: transform 150ms ease;
}

.knowledge-list-folder.is-open > .knowledge-list-folder-header .knowledge-folder-caret {
  transform: rotate(90deg);
}

.knowledge-list-folder.nested > .knowledge-list-folder-header {
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--root-red) 5%, var(--panel-strong));
}

.knowledge-list-folder-header h3 {
  margin: 0;
}

.knowledge-list {
  display: grid;
}

.knowledge-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
}

.knowledge-list-item:last-child {
  border-bottom: 0;
}

.knowledge-list-item:hover {
  background: color-mix(in srgb, var(--root-red) 6%, var(--panel-strong));
}

.knowledge-list-item.is-search-match {
  background: color-mix(in srgb, var(--root-gold) 14%, var(--panel-strong));
}

.knowledge-list-item.is-recent {
  box-shadow: inset 3px 0 0 var(--root-gold);
}

.knowledge-recent-badge {
  margin-left: auto;
}

.knowledge-recent-badge[hidden] {
  display: none;
}

.knowledge-list-item-main {
  flex: 1;
  min-width: 0;
}

.knowledge-list-item-main strong,
.knowledge-list-item-main small {
  display: block;
}

.knowledge-list-item-main small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 700;
}

.knowledge-list-item > svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.knowledge-subfolder-list {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  background: color-mix(in srgb, var(--muted) 5%, var(--panel));
}

.knowledge-list + .knowledge-subfolder-list {
  border-top: 1px solid var(--line);
}

.knowledge-subfolder-list .knowledge-subfolder-list {
  padding: 0.75rem 0 0 1rem;
  background: transparent;
}

.knowledge-plain-content {
  white-space: pre-wrap;
  line-height: 1.65;
}

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

.check-tile {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.check-tile input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin-top: 0.1rem;
}

.check-tile-body {
  flex: 1;
  min-width: 0;
}

.check-tile-body > label {
  display: block;
  cursor: pointer;
}

.check-tile select {
  margin-top: 0.45rem;
  width: 100%;
}

.store-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.65fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(112deg, color-mix(in srgb, var(--panel-strong) 92%, transparent), color-mix(in srgb, var(--panel) 86%, transparent)),
    linear-gradient(90deg, color-mix(in srgb, var(--root-red) 10%, transparent), transparent);
  box-shadow: var(--soft-shadow);
}

.store-detail-hero h2 {
  margin: 0.35rem 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

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

.store-hero-metrics div,
.store-info-grid div {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
}

.store-hero-metrics span,
.store-info-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-hero-metrics strong,
.store-info-grid strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
}

.store-info-panel,
.entity-panel,
.table-panel + .table-panel,
.panel + .table-panel,
.table-panel + .panel {
  margin-top: 1rem;
}

.store-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.document-table th:last-child,
.document-table td:last-child {
  min-width: 18rem;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn.compact,
.btn-ghost.compact {
  min-height: 2.1rem;
  padding: 0 0.65rem;
  font-size: 0.8rem;
}

.inline-upload {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-picker {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.8rem;
  border: 1px dashed color-mix(in srgb, var(--root-red) 45%, var(--line));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--root-red) 5%, var(--panel-strong));
  color: var(--root-red);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.file-picker:hover {
  border-color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 10%, var(--panel-strong));
  transform: translateY(-1px);
}

.file-picker svg {
  width: 1rem;
  height: 1rem;
}

.file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.document-row-uploading {
  position: relative;
  isolation: isolate;
}

.document-row-uploading td {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--root-red) 16%, transparent), transparent),
    color-mix(in srgb, var(--root-red) 7%, var(--panel-strong)) !important;
  background-size: 220% 100%, 100% 100%;
  animation: documentUploadSweep 1.15s ease-in-out infinite;
}

.document-row-uploading td:first-child {
  box-shadow: inset 4px 0 0 var(--root-red);
}

.document-row-uploading td:first-child::after {
  content: "Uploading document";
  display: inline-flex;
  align-items: center;
  margin-left: 0.75rem;
  min-height: 1.65rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--root-red) 16%, var(--panel-strong));
  color: var(--root-red);
  font-size: 0.75rem;
  font-weight: 900;
  vertical-align: middle;
  animation: documentUploadPulse 900ms ease-in-out infinite;
}

.document-row-upload-success td {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--root-green) 0%, transparent), color-mix(in srgb, var(--root-green) 16%, transparent), color-mix(in srgb, var(--root-green) 0%, transparent)),
    color-mix(in srgb, var(--root-green) 7%, var(--panel-strong)) !important;
  animation: documentUploadSuccess 900ms ease-out 1;
}

.document-row-upload-success td:first-child {
  box-shadow: inset 4px 0 0 var(--root-green);
}

.document-row-upload-success td:first-child::after {
  content: "Upload complete";
  display: inline-flex;
  align-items: center;
  margin-left: 0.75rem;
  min-height: 1.65rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--root-green) 16%, var(--panel-strong));
  color: var(--root-green);
  font-size: 0.75rem;
  font-weight: 900;
  vertical-align: middle;
}

.document-row-upload-error td {
  background: color-mix(in srgb, var(--root-red) 9%, var(--panel-strong)) !important;
  animation: documentUploadError 420ms ease-in-out 1;
}

.document-row-upload-error td:first-child {
  box-shadow: inset 4px 0 0 var(--root-red);
}

.document-row-upload-error td:first-child::after {
  content: "Upload failed";
  display: inline-flex;
  align-items: center;
  margin-left: 0.75rem;
  min-height: 1.65rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--root-red) 14%, var(--panel-strong));
  color: var(--root-red);
  font-size: 0.75rem;
  font-weight: 900;
  vertical-align: middle;
}

.inline-upload.is-uploading .file-picker {
  border-style: solid;
  border-color: var(--root-red);
  background: var(--root-red);
  color: #fff;
  pointer-events: none;
}

.inline-upload.is-uploading .file-picker svg {
  animation: documentUploadFloat 850ms ease-in-out infinite;
}

.inline-upload.upload-success .file-picker {
  border-color: var(--root-green);
  background: var(--root-green);
  color: #fff;
}

.inline-upload.upload-error .file-picker {
  border-color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 10%, var(--panel-strong));
  color: var(--root-red);
}

@keyframes documentUploadSweep {
  0% {
    background-position: 140% 0, 0 0;
  }
  100% {
    background-position: -80% 0, 0 0;
  }
}

@keyframes documentUploadSuccess {
  0% {
    background-position: 120% 0, 0 0;
    transform: scale(1);
  }
  50% {
    transform: scale(1.008);
  }
  100% {
    background-position: -30% 0, 0 0;
    transform: scale(1);
  }
}

@keyframes documentUploadError {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

@keyframes documentUploadPulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.72;
  }
  50% {
    transform: translateY(-1px);
    opacity: 1;
  }
}

@keyframes documentUploadFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.document-row-green td {
  background: color-mix(in srgb, var(--root-green) 4%, transparent);
}

.document-row-gold td {
  background: color-mix(in srgb, var(--root-gold) 7%, transparent);
}

.document-row-red td {
  background: color-mix(in srgb, var(--root-red) 5%, transparent);
}

.document-row-blue td {
  background: color-mix(in srgb, var(--root-blue) 5%, transparent);
}

.store-alert {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  box-shadow: none;
}

.store-alert.success {
  border-color: color-mix(in srgb, var(--root-green) 45%, var(--line));
  color: var(--root-green);
}

.store-alert.danger-alert {
  border-color: color-mix(in srgb, var(--root-red) 45%, var(--line));
  color: var(--root-red);
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(18, 16, 16, 0.58);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.confirm-modal {
  width: min(100%, 30rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.confirm-modal-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--root-gold) 18%, var(--panel-strong));
  color: var(--root-gold);
}

.confirm-modal h2 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.15rem;
}

.confirm-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.confirm-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

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

.energy-form-hero,
.energy-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
}

.energy-form-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #fff;
  background:
    linear-gradient(112deg, rgba(18, 16, 16, 0.96), rgba(103, 14, 17, 0.9)),
    linear-gradient(90deg, rgba(200, 38, 44, 0.24), transparent 60%);
}

.energy-form-hero h2 {
  max-width: 52rem;
  margin: 0.55rem 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.energy-form-hero p {
  max-width: 46rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.energy-form-hero-actions,
.energy-dashboard-actions,
.energy-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.energy-form-hero-actions {
  justify-content: flex-end;
}

.energy-form-hero-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.energy-empty-hero,
.energy-submissions-hero,
.energy-registration-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
}

.energy-empty-hero,
.energy-submissions-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.55fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.energy-empty-hero {
  color: #fff;
  background:
    linear-gradient(112deg, rgba(18, 16, 16, 0.96), rgba(92, 10, 13, 0.92)),
    linear-gradient(90deg, rgba(200, 38, 44, 0.22), transparent 64%);
}

.energy-empty-hero h2,
.energy-submissions-hero h2 {
  margin: 0.45rem 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.95;
}

.energy-empty-hero p {
  max-width: 44rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.energy-dashboard-actions {
  margin-top: 1.25rem;
}

.energy-empty-steps {
  display: grid;
  gap: 0.65rem;
}

.energy-empty-steps div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 0.75rem;
  align-content: center;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.energy-empty-steps span {
  grid-row: span 2;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--root-red);
  color: #fff;
  font-weight: 900;
}

.energy-empty-steps small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.energy-header-actions {
  justify-content: flex-end;
  min-width: min(100%, 28rem);
}

.energy-registration-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.15rem;
}

.energy-registration-empty {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
}

.energy-registration-empty > svg {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.55rem;
  border-radius: var(--radius-md);
  color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 9%, var(--panel-strong));
}

.energy-registration-empty strong {
  display: block;
}

.energy-registration-empty p {
  margin: 0.25rem 0 0;
}

.energy-registration-list {
  display: grid;
  gap: 0.75rem;
}

.energy-registration-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  color: var(--ink);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.energy-registration-card:hover {
  border-color: color-mix(in srgb, var(--root-red) 32%, var(--line));
  background: color-mix(in srgb, var(--root-red) 5%, var(--panel-strong));
  transform: translateY(-1px);
}

.energy-registration-card h3 {
  margin: 0.45rem 0 0.2rem;
  font-size: 1rem;
}

.energy-registration-card p {
  margin: 0;
}

.energy-registration-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.energy-registration-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: start;
  color: var(--root-red);
  font-weight: 900;
}

.energy-submissions-hero {
  align-items: end;
}

.energy-submissions-hero p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.energy-detail-store-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
}

.energy-detail-store-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.energy-detail-store-card h4,
.energy-detail-store-card p {
  margin: 0;
}

.energy-detail-store-card p {
  color: var(--muted);
  line-height: 1.55;
}

.energy-section {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.energy-section-heading,
.energy-store-entry-title,
.energy-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.energy-section-heading {
  justify-content: flex-start;
  align-items: flex-start;
}

.energy-section-heading > span {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--root-red);
  font-weight: 900;
}

.energy-section-heading h3 {
  margin: 0;
  font-size: 1.05rem;
}

.energy-section-heading p,
.form-field small {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.form-field small {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
}

.energy-store-list {
  display: grid;
  gap: 0.85rem;
}

.energy-store-entry {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
}

.energy-store-entry-title strong {
  font-size: 0.95rem;
}

.energy-remove-store[hidden] {
  display: none;
}

.energy-declaration {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  line-height: 1.55;
}

.energy-declaration input {
  width: 1.15rem;
  min-height: 1.15rem;
  margin-top: 0.2rem;
}

.energy-submit-row {
  justify-content: flex-end;
}

[hidden] {
  display: none !important;
}

.app-stepper {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
}

.app-stepper button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.app-stepper button span {
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 900;
}

.app-stepper button.active {
  border-color: color-mix(in srgb, var(--root-red) 40%, var(--line));
  background: color-mix(in srgb, var(--root-red) 8%, var(--panel-strong));
  color: var(--ink);
}

.app-stepper button.active span,
.app-stepper button.done span {
  border-color: var(--root-red);
  background: var(--root-red);
  color: #fff;
}

.app-stepper button.done {
  color: var(--ink);
}

.app-subsection {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
}

.app-subheading {
  margin: 0;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--field);
  overflow: hidden;
}

.segmented label {
  display: block;
  cursor: pointer;
}

.segmented label + label {
  border-left: 1px solid var(--line);
}

.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0.01;
  overflow: hidden;
}

.segmented span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--muted);
}

.segmented input:checked + span {
  background: var(--root-red);
  color: #fff;
}

.segmented input:focus-visible + span {
  box-shadow: inset 0 0 0 3px rgba(200, 38, 44, 0.35);
}

.yesno-field .segmented {
  align-self: start;
}

.money-input {
  position: relative;
}

.money-input > span {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
  pointer-events: none;
}

.money-input input {
  padding-left: 2rem;
}

.repeat-table {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.repeat-table .repeat-head,
.repeat-table .repeat-row {
  width: 100%;
  display: grid;
  grid-template-columns: var(--cols) 2.4rem;
  gap: 0.6rem;
  align-items: center;
}

.repeat-table .repeat-head span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.repeat-rows {
  width: 100%;
  display: grid;
  gap: 0.6rem;
}

.repeat-cell {
  display: grid;
  gap: 0.3rem;
}

.repeat-cell .cell-label {
  display: none;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
}

.repeat-row [data-repeater-remove] {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  line-height: 1;
}

.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.check-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--field);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.check-group input[type="checkbox"] {
  width: 1rem;
  min-height: 1rem;
  accent-color: var(--root-red);
}

.check-group label:has(input:checked) {
  border-color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 8%, var(--field));
}

.app-declaration-list {
  margin: 0;
  padding: 1rem 1rem 1rem 2.2rem;
  display: grid;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  line-height: 1.55;
}

.app-form-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
  position: sticky;
  bottom: 0.75rem;
}

.app-form-nav-spacer {
  flex: 1;
}

.detail-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

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

.detail-header-row h2 {
  margin: 0.35rem 0 0.15rem;
}

.detail-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-score {
  display: grid;
  gap: 0.15rem;
  text-align: right;
}

.detail-score strong {
  font-size: 1.35rem;
}

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

.detail-field {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.detail-field.full {
  grid-column: 1 / -1;
}

.complaint-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.complaint-upload-desc {
  flex: 1 1 16rem;
  min-width: 12rem;
}

/* Themed native file inputs (complaint documents) */
.repeat-cell input[type="file"],
.complaint-upload input[type="file"] {
  min-height: 2.35rem;
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.complaint-upload input[type="file"] {
  flex: 1 1 16rem;
  min-width: 12rem;
}

.repeat-cell input[type="file"]:hover,
.complaint-upload input[type="file"]:hover {
  border-color: color-mix(in srgb, var(--root-red) 55%, var(--line));
}

.repeat-cell input[type="file"]::file-selector-button,
.complaint-upload input[type="file"]::file-selector-button {
  margin-right: 0.7rem;
  padding: 0.4rem 0.85rem;
  border: 1px dashed color-mix(in srgb, var(--root-red) 45%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--root-red) 5%, var(--panel-strong));
  color: var(--root-red);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.repeat-cell input[type="file"]::file-selector-button:hover,
.complaint-upload input[type="file"]::file-selector-button:hover {
  border-color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 12%, var(--panel-strong));
}

.detail-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.detail-value {
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.table-actions {
  text-align: right;
  white-space: nowrap;
}

.table-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 720px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .app-stepper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-stepper button em {
    display: none;
  }

  .repeat-table .repeat-head {
    display: none;
  }

  .repeat-table .repeat-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel-glass);
  }

  .repeat-cell .cell-label {
    display: block;
  }

  .repeat-row [data-repeater-remove] {
    justify-self: end;
  }
}

@media (max-width: 1100px) {
  .metric-grid,
  .card-grid,
  .store-list,
  .knowledge-category-grid,
  .compliance-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel,
  .section-grid,
  .kaia-widget-grid,
  .knowledge-folder-grid,
  .stores-hero,
  .store-detail-hero,
  .energy-empty-hero,
  .energy-submissions-hero,
  .energy-detail-store-grid,
  .compliance-hero,
  .compliance-dashboard-grid,
  .compliance-lanes,
  .notification-center {
    grid-template-columns: 1fr;
  }

  .notification-inbox {
    position: static;
    max-height: none;
  }

  .notification-list {
    max-height: 26rem;
  }

  .compliance-dashboard-grid {
    grid-template-areas:
      "wide"
      "attention"
      "mix";
  }

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

@media (max-width: 760px) {
  body:has(.dev-login-bar) {
    padding-top: 5.5rem;
  }

  .dev-login-bar {
    min-height: 5.5rem;
  }

  .dev-login-bar form {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .dev-login-bar input {
    flex: 1 1 12rem;
    width: auto;
  }

  .dev-login-error {
    flex-basis: 100%;
  }

  body:has(.dev-login-bar) .topbar {
    top: 5.5rem;
  }

  body:has(.dev-login-bar) .theme-toggle-floating {
    top: 6.5rem;
  }

  .shell-sidebar {
    position: static;
    width: auto;
    min-height: auto;
  }

  .shell-main {
    margin-left: 0;
  }

  .content-shell,
  .topbar {
    padding: 1rem;
  }

  .topbar {
    align-items: flex-start;
  }

  .stores-hero-stats,
  .stores-directory-header {
    grid-template-columns: 1fr;
  }

  .stores-hero-stats {
    align-content: stretch;
  }

  .stores-hero-stats div {
    min-height: 5.75rem;
  }

  .stores-directory-header {
    display: grid;
  }

  .notifications-hero,
  .energy-form-hero,
  .energy-registration-card,
  .energy-detail-store-card-title,
  .notification-inbox-header,
  .notification-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .energy-form-hero-actions,
  .energy-header-actions {
    justify-content: flex-start;
  }

  .energy-demo-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .energy-demo-cta {
    grid-column: 1 / -1;
    width: 100%;
  }

  .energy-form-hero-actions .btn-ghost,
  .energy-header-actions .btn,
  .energy-header-actions .btn-ghost,
  .energy-dashboard-actions .btn,
  .energy-dashboard-actions .btn-ghost {
    width: 100%;
  }

  .notifications-hero-stat {
    width: 100%;
  }

  .notification-list-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .notification-list-item > svg {
    display: none;
  }

  .stores-directory-meta {
    align-items: stretch;
  }

  .stores-directory-meta span {
    flex: 1 1 9rem;
  }

  .store-card-topline,
  .store-card-footer {
    align-items: flex-start;
  }

  .store-card-topline {
    flex-direction: column;
  }

  .communication-attachment {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .communication-attachment-actions {
    width: 100%;
  }

  .communication-attachment-actions a {
    flex: 1 1 9rem;
  }

  .metric-grid,
  .card-grid,
  .card-grid.two,
  .card-grid.three,
  .store-list,
  .form-grid,
  .checkbox-grid,
  .knowledge-contact-grid,
  .knowledge-category-grid,
  .store-info-grid,
  .store-hero-metrics,
  .compliance-kpi-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-hero,
  .knowledge-detail-header,
  .knowledge-list-folder-header {
    align-items: stretch;
    flex-direction: column;
  }

  .knowledge-detail-actions {
    align-self: stretch;
    margin-top: 0;
  }

  .knowledge-list-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .inline-upload,
  .document-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .confirm-modal {
    grid-template-columns: 1fr;
  }

  .confirm-modal-actions {
    flex-direction: column-reverse;
  }
}

/* ============================================================
   Foundation v2 — motion, shell, auth, empty states
   ============================================================ */

/* --- Hero surfaces share one silhouette --- */
.hero-copy,
.stores-hero,
.compliance-hero,
.knowledge-hero,
.energy-empty-hero,
.energy-form-hero,
.energy-submissions-hero,
.notifications-hero,
.store-detail-hero,
.kaia-header {
  border-radius: var(--radius-lg);
}

/* --- Entrance motion --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

[data-reveal].is-revealed {
  animation: revealUp 700ms var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Topbar scroll state + identity --- */
.topbar.is-scrolled {
  box-shadow: 0 12px 30px rgba(18, 14, 12, 0.08);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
}

.topbar-user .avatar {
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--root-red), var(--root-red-dark));
  color: #fff;
  font-size: 0.86rem;
}

.topbar-user-copy {
  display: grid;
  line-height: 1.2;
}

.topbar-user-copy strong {
  font-size: 0.84rem;
  white-space: nowrap;
}

.topbar-user-copy span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Sidebar refinements --- */
.nav-section-label {
  margin: 0.85rem 0 0.3rem;
  padding: 0 0.8rem;
  color: color-mix(in srgb, var(--sidebar-muted) 72%, transparent);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav-stack a {
  position: relative;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms var(--ease-spring);
}

.nav-stack a:hover {
  transform: translateX(2px);
}

.nav-stack a.is-active {
  color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 9%, transparent);
  border-color: color-mix(in srgb, var(--root-red) 22%, transparent);
  font-weight: 700;
}

:root[data-theme="dark"] .nav-stack a.is-active {
  color: #fff;
  background: color-mix(in srgb, var(--root-red-dark) 38%, transparent);
  border-color: color-mix(in srgb, var(--root-red) 30%, transparent);
}

.nav-stack a.is-active::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 50%;
  width: 0.26rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--root-red);
  transform: translateY(-50%);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem;
  border: 1px solid var(--sidebar-line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--sidebar-hover) 60%, transparent);
}

.sidebar-user .avatar {
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--root-red), var(--root-red-dark));
  color: #fff;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.sidebar-user-copy {
  min-width: 0;
  display: grid;
  line-height: 1.25;
}

.sidebar-user-copy strong {
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy span {
  overflow: hidden;
  color: var(--sidebar-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-signout {
  margin-left: auto;
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sidebar-muted);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.sidebar-signout:hover {
  color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 12%, transparent);
}

.sidebar-signout svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* --- Cards & tables micro-interactions --- */
.metric-card {
  position: relative;
  overflow: hidden;
  transition: transform 200ms var(--ease-spring), border-color 200ms ease, box-shadow 200ms ease;
}

.metric-card:hover {
  border-color: color-mix(in srgb, var(--root-red) 26%, var(--line));
  box-shadow: var(--lift-shadow);
  transform: translateY(-2px);
}

.metric-card-icon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 9%, transparent);
}

.metric-card-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.metric-card a,
a.metric-card {
  color: inherit;
}

tbody tr {
  transition: background 140ms ease;
}

.table-panel tbody tr:hover td {
  background: color-mix(in srgb, var(--root-red) 4%, transparent);
}

/* --- Progress lanes & ring animate in --- */
.compliance-lane-track span {
  animation: laneGrow 1.1s var(--ease-out) both;
  animation-delay: 250ms;
}

@keyframes laneGrow {
  from {
    width: 0;
  }
}

@property --ring-fill {
  syntax: "<number>";
  initial-value: 0;
  inherits: false;
}

.compliance-ring {
  --ring-fill: var(--score);
  background:
    radial-gradient(circle at center, var(--hero-ink) 58%, transparent 59%),
    conic-gradient(var(--root-red) calc(var(--ring-fill) * 1%), rgba(255, 255, 255, 0.14) 0);
  animation: ringFill 1.3s var(--ease-out) both;
}

@keyframes ringFill {
  from {
    --ring-fill: 0;
  }
}

/* --- Empty states --- */
.empty-state {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.6rem;
  min-height: 18rem;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed color-mix(in srgb, var(--muted) 34%, var(--line));
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--root-red) 5%, transparent), transparent 18rem),
    var(--panel-strong);
}

.empty-state-icon {
  width: 3.6rem;
  height: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  border-radius: 1.2rem;
  color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 9%, var(--panel-strong));
  border: 1px solid color-mix(in srgb, var(--root-red) 18%, var(--line));
  animation: emptyFloat 3.2s ease-in-out infinite;
}

.empty-state-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

@keyframes emptyFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.empty-state h3 {
  margin: 0;
  font-size: 1.35rem;
}

.empty-state p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.empty-state .btn,
.empty-state .btn-ghost {
  margin-top: 0.7rem;
}

/* --- Auth (login / verify) --- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
}

body:has(.dev-login-bar) .auth-page {
  min-height: calc(100vh - 3.25rem);
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  margin: 1.1rem;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 12% 115%, rgba(200, 38, 44, 0.55), transparent 34rem),
    radial-gradient(circle at 88% -12%, rgba(200, 38, 44, 0.34), transparent 30rem),
    linear-gradient(150deg, #201312, #17100f 55%, #0f0b0a);
  box-shadow: var(--shadow);
}

.auth-brand::after {
  content: "";
  position: absolute;
  inset: -40% -22% auto auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(200, 38, 44, 0.32), transparent 62%);
  filter: blur(10px);
  animation: authGlow 9s ease-in-out infinite alternate;
}

@keyframes authGlow {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-3rem, 2.5rem) scale(1.12);
  }
}

.auth-brand-logo {
  position: relative;
  z-index: 1;
  width: max-content;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: #fff;
}

.auth-brand-logo img {
  display: block;
  width: 10.5rem;
  height: auto;
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.auth-brand-copy .eyebrow {
  color: var(--root-gold);
}

.auth-brand-copy h2 {
  margin: 0.8rem 0;
  font-size: clamp(2.3rem, 4.2vw, 3.9rem);
  line-height: 1.02;
}

.auth-brand-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.65;
}

.auth-brand-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
}

.auth-brand-points div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  max-width: 100%;
  min-height: 2.6rem;
  padding: 0 0.95rem 0 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.auth-brand-points span {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, var(--root-red) 75%, #fff 0%);
}

.auth-brand-points svg {
  width: 0.9rem;
  height: 0.9rem;
}

.auth-form-col {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.auth-form-stack {
  width: min(100%, 26.5rem);
  display: grid;
  gap: 1.5rem;
}

.auth-card {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-card h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.auth-card > p.muted {
  margin: 0 0 1.6rem;
  line-height: 1.6;
}

.auth-card .form-field {
  margin-bottom: 1.1rem;
}

.auth-card .btn {
  width: 100%;
  min-height: 3.1rem;
  font-size: 0.98rem;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 160ms ease, transform 160ms var(--ease-spring);
}

.auth-back:hover {
  color: var(--root-red);
  transform: translateX(-2px);
}

.auth-back svg {
  width: 1rem;
  height: 1rem;
}

.auth-meta {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: center;
}

.auth-meta a,
.auth-meta button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--root-red);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.auth-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-email-chip svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--root-red);
}

/* --- OTP segmented input --- */
.otp-inputs {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.otp-inputs input {
  width: 100%;
  min-width: 0;
  height: 3.9rem;
  padding: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  caret-color: var(--root-red);
}

.otp-inputs input.is-filled {
  border-color: color-mix(in srgb, var(--root-red) 44%, var(--line));
  background: color-mix(in srgb, var(--root-red) 4%, var(--field));
}

.otp-inputs input:focus {
  transform: translateY(-2px);
}

.otp-inputs.otp-error input {
  animation: otpShake 360ms ease-in-out;
  border-color: color-mix(in srgb, var(--root-red) 60%, var(--line));
}

@keyframes otpShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

/* --- Quick actions (dashboard) --- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
  color: var(--ink);
  transition: transform 200ms var(--ease-spring), border-color 200ms ease, box-shadow 200ms ease;
}

.quick-action:hover {
  border-color: color-mix(in srgb, var(--root-red) 30%, var(--line));
  box-shadow: var(--lift-shadow);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0.9rem;
  color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 9%, var(--panel-strong));
  border: 1px solid color-mix(in srgb, var(--root-red) 16%, var(--line));
  transition: transform 200ms var(--ease-spring);
}

.quick-action:hover .quick-action-icon {
  transform: scale(1.08) rotate(-4deg);
}

.quick-action-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.quick-action strong {
  display: block;
  font-size: 0.92rem;
}

.quick-action small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.quick-action > svg:last-child {
  margin-left: auto;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  transition: transform 200ms var(--ease-spring), color 200ms ease;
}

.quick-action:hover > svg:last-child {
  color: var(--root-red);
  transform: translateX(3px);
}

/* --- Hero stat tiles (dashboard) --- */
.hero-stat-stack {
  display: grid;
  gap: 0.85rem;
  align-content: stretch;
}

.hero-stat-stack .metric-card {
  display: grid;
  align-content: center;
}

/* --- Scrollbars --- */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 34%, transparent) transparent;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --- Responsive: auth + quick actions --- */
@media (max-width: 1100px) {
  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: auto;
    gap: 1.5rem;
  }

  .auth-brand-points {
    display: none;
  }

  .auth-form-col {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .otp-inputs {
    gap: 0.4rem;
  }

  .otp-inputs input {
    height: 3.3rem;
    font-size: 1.4rem;
  }

  .topbar-user-copy {
    display: none;
  }

  .topbar-user {
    padding: 0.25rem;
    border: 0;
    background: transparent;
  }
}

/* --- Home hero --- */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 8% 120%, rgba(200, 38, 44, 0.5), transparent 30rem),
    radial-gradient(circle at 94% -18%, rgba(200, 38, 44, 0.3), transparent 26rem),
    linear-gradient(150deg, #221413, #17100f 55%, #100b0a);
  box-shadow: var(--shadow);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto auto -9rem -7rem;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(200, 38, 44, 0.28), transparent 62%);
  filter: blur(6px);
  pointer-events: none;
  animation: authGlow 10s ease-in-out infinite alternate;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.home-hero-copy .eyebrow {
  color: var(--root-gold);
}

.home-hero-copy h2 {
  max-width: 40rem;
  margin: 0.65rem 0;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.02;
}

.home-hero-copy p {
  max-width: 38rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.home-hero-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
}

.home-hero-ring {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.home-hero-ring .compliance-ring {
  width: 7.4rem;
  height: 7.4rem;
  flex: 0 0 auto;
}

.home-hero-ring .compliance-ring span {
  font-size: 1.65rem;
}

.home-hero-ring strong {
  display: block;
  font-size: 1.02rem;
}

.home-hero-ring small {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.home-hero-stats div {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.home-hero-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-hero-stats strong {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}

.quick-actions + .metric-grid,
.metric-grid + .section-grid {
  margin-top: 1rem;
}

.quick-actions {
  margin-bottom: 1rem;
}

.store-card {
  position: relative;
  transition: transform 200ms var(--ease-spring), border-color 200ms ease, box-shadow 200ms ease;
}

.store-card:hover {
  border-color: color-mix(in srgb, var(--root-red) 32%, var(--line));
  box-shadow: var(--lift-shadow);
  transform: translateY(-2px);
}

.store-card-open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: end;
  color: var(--root-red);
  font-size: 0.84rem;
  font-weight: 800;
}

.store-card-open svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 200ms var(--ease-spring);
}

.store-card:hover .store-card-open svg {
  transform: translate(2px, -2px);
}

@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-hero-ring {
    flex-direction: row;
  }

  .home-hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- RSP price lists ---------- */
.rsp-metrics {
  margin-bottom: 1.1rem;
}

.rsp-metric-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.rsp-metric-green {
  color: var(--root-green);
}

.rsp-metric-gold {
  color: color-mix(in srgb, var(--root-gold) 78%, var(--ink));
}

.rsp-metric-date {
  font-size: 1.25rem !important;
  padding-top: 0.45rem;
}

.rsp-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rsp-title-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.rsp-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  padding: 0.42rem 0.95rem;
  min-width: 15rem;
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.rsp-search:focus-within {
  border-color: color-mix(in srgb, var(--root-red) 38%, var(--line));
  box-shadow: var(--focus-ring);
}

.rsp-search svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--muted);
  flex-shrink: 0;
}

.rsp-search input {
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  outline: none;
  width: 100%;
}

/* the wrapper carries the focus ring; suppress the input's own so it doesn't double up */
.rsp-search input:focus {
  border-color: transparent;
  box-shadow: none;
}

.rsp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 1rem;
}

.rsp-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel-strong);
  text-decoration: none;
  transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), background 0.18s var(--ease-out), transform 0.18s var(--ease-spring);
}

.rsp-tab:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--root-red) 30%, var(--line));
  transform: translateY(-1px);
}

.rsp-tab.active {
  background: var(--root-red);
  border-color: var(--root-red);
  color: var(--inverse-ink);
}

.rsp-tab svg {
  width: 0.9rem;
  height: 0.9rem;
}

.rsp-tab-count {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.75;
}

.rsp-band-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--root-gold) 7%, var(--panel-strong));
  padding: 0.65rem 0.95rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.rsp-band-bar svg {
  width: 1rem;
  height: 1rem;
  color: color-mix(in srgb, var(--root-gold) 80%, var(--ink));
}

.rsp-band-bar select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
}

.rsp-band-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.rsp-table th.rsp-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.rsp-table th.rsp-sortable svg {
  width: 0.75rem;
  height: 0.75rem;
  vertical-align: -0.08rem;
  opacity: 0.55;
}

.rsp-table th.rsp-sortable.sorted {
  color: var(--root-red);
}

.rsp-table .rsp-num {
  text-align: right;
}

.rsp-table td.rsp-price {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rsp-table td.rsp-product {
  font-weight: 550;
}

.rsp-table td.rsp-meta,
.rsp-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.rsp-section-row td {
  background: color-mix(in srgb, var(--root-red) 5%, var(--panel-strong));
  border-top: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
}

.rsp-section-row span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}

.rsp-section-row em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
  margin-left: 0.6rem;
}

.rsp-no-results td {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
}

.rsp-footnote {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.9rem 0.2rem 0;
}

.rsp-ticket-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(23, 16, 15, 0.55);
  backdrop-filter: blur(4px);
}

body.rsp-ticket-open {
  overflow: hidden;
}

.rsp-ticket-dialog {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem 1.3rem;
  width: min(23rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rsp-ticket-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rsp-ticket-close {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 999px;
}

.rsp-ticket-close:hover {
  color: var(--ink);
}

.rsp-ticket {
  width: 300px;
  margin: 0 auto;
  border: 1px solid #d8d2ca;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  color: #181410;
  box-shadow: 0 14px 30px rgba(23, 16, 15, 0.18);
}

.rsp-ticket-brand {
  background: var(--root-red);
  color: #ffffff;
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rsp-ticket-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.rsp-ticket-tag {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.rsp-ticket-body {
  padding: 1.4rem 1.1rem 1.05rem;
  text-align: center;
}

.rsp-ticket-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.rsp-ticket-unit {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8178;
  margin: 0.5rem 0 0.75rem;
}

.rsp-ticket-price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--root-red);
  line-height: 1;
}

.rsp-ticket-price sup {
  font-size: 1.5rem;
}

.rsp-ticket-rsp {
  font-size: 0.62rem;
  color: #8a8178;
  margin-top: 0.75rem;
}

.rsp-ticket-foot {
  background: #181410;
  color: #cfc8bf;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 0.5rem;
}

.rsp-ticket-dialog-actions {
  display: flex;
  gap: 0.6rem;
}

.rsp-ticket-dialog-actions .btn,
.rsp-ticket-dialog-actions .btn-secondary {
  flex: 1;
  justify-content: center;
}

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

  .rsp-search {
    min-width: 0;
    width: 100%;
  }
}

/* ---------- RSP shelf-ticket print ---------- */
@media print {
  body.rsp-ticket-open * {
    visibility: hidden;
  }

  body.rsp-ticket-open .rsp-ticket,
  body.rsp-ticket-open .rsp-ticket * {
    visibility: visible;
  }

  body.rsp-ticket-open .rsp-ticket {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: none;
  }
}

.rsp-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s var(--ease-out);
}

/* Auth privacy and first-login acknowledgement */
.auth-privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  width: 100%;
  border-top: 1px solid var(--line);
  color: var(--root-red);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.auth-privacy-link svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
}

.acknowledgement-card {
  width: min(100%, 34rem);
}

.acknowledgement-points {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.acknowledgement-points article {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--panel-strong) 92%, var(--root-red));
}

.acknowledgement-points article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 10%, var(--panel-strong));
}

.acknowledgement-points svg {
  width: 1.05rem;
  height: 1.05rem;
}

.acknowledgement-points h2 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
}

.acknowledgement-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.acknowledgement-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
  padding: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--root-red) 28%, var(--line));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--root-red) 5%, var(--panel-strong));
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
}

.acknowledgement-check input {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  flex: 0 0 auto;
  margin-top: 0.08rem;
  padding: 0;
  border: 0;
  border-radius: 0.2rem;
  background: transparent;
  box-shadow: none;
  accent-color: var(--root-red);
}

.acknowledgement-check input:focus {
  border-color: transparent;
  box-shadow: none;
}

.acknowledgement-check input:focus-visible {
  outline: 2px solid var(--root-red);
  outline-offset: 3px;
}

.acknowledgement-check a {
  display: block;
  margin-top: 0.25rem;
  color: var(--root-red);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.acknowledgement-card .field-validation-error {
  display: block;
  margin-bottom: 0.9rem;
}

/* Standalone legal / policy pages */
.legal-page {
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.legal-header {
  margin-bottom: 2.25rem;
}

.legal-header h1 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.legal-header .muted {
  margin: 0;
  line-height: 1.6;
}

.legal-body {
  color: var(--ink);
  line-height: 1.7;
}

.legal-body h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.15rem;
}

.legal-body p {
  margin: 0 0 1rem;
}

.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-body a {
  color: var(--root-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ============================================================
   Point of Sale dashboard — PREVIEW / "coming soon" showcase
   ============================================================ */

.pos-preview {
  position: relative;
  isolation: isolate;
}

.pos-preview > * {
  position: relative;
  z-index: 1;
}

/* Subtle diagonal "SAMPLE DATA" watermark that peeks through the gutters. */
.pos-watermark {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='150'%3E%3Ctext x='0' y='90' font-family='Inter,Arial,sans-serif' font-size='26' font-weight='800' letter-spacing='4' fill='%23c8262c' transform='rotate(-22 160 75)'%3ESAMPLE DATA%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
}

:root[data-theme="dark"] .pos-watermark {
  opacity: 0.14;
}

/* --- Hero --- */
.pos-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.5fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(18, 16, 16, 0.97), rgba(92, 10, 13, 0.92)),
    radial-gradient(circle at 90% 12%, rgba(200, 38, 44, 0.32), transparent 26rem);
  box-shadow: var(--shadow);
}

.pos-hero .eyebrow {
  color: #ffb4b4;
  display: block;
  margin-bottom: 0.35rem;
}

.pos-hero h2 {
  margin: 0.25rem 0 0.6rem;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1;
  max-width: 22ch;
}

.pos-hero p {
  max-width: 46rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.pos-hero p strong {
  color: #fff;
}

.pos-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pos-soon-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--root-gold);
  box-shadow: 0 0 0 0 rgba(232, 160, 32, 0.6);
  animation: posPulse 2s var(--ease-out) infinite;
}

@keyframes posPulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 160, 32, 0.55); }
  70% { box-shadow: 0 0 0 0.5rem rgba(232, 160, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 160, 32, 0); }
}

.pos-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.pos-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.8rem;
}

.pos-hero-meta svg {
  width: 1rem;
  height: 1rem;
}

.pos-hero-preview {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
}

.pos-hero-ticker {
  display: grid;
  gap: 0.2rem;
}

.pos-hero-ticker span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffb4b4;
}

.pos-hero-ticker strong {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-variant-numeric: lining-nums;
  line-height: 1;
}

.pos-hero-ticker small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.pos-hero-spark {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  height: 3.6rem;
}

.pos-hero-spark span {
  flex: 1;
  height: var(--h);
  min-height: 4%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--root-gold), rgba(232, 160, 32, 0.35));
  transform-origin: bottom;
  animation: posSparkGrow 900ms var(--ease-out) both;
}

@keyframes posSparkGrow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

/* --- Preview notice banner --- */
.pos-notice {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1.15rem;
  border: 1.5px dashed color-mix(in srgb, var(--root-gold) 60%, var(--line));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--root-gold) 12%, var(--panel-strong));
}

.pos-notice svg {
  width: 1.35rem;
  height: 1.35rem;
  color: color-mix(in srgb, var(--root-gold) 70%, var(--ink));
  flex-shrink: 0;
}

.pos-notice strong {
  display: block;
  font-size: 0.92rem;
}

.pos-notice span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* --- KPI cards --- */
.pos-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.pos-kpi {
  position: relative;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: transform 200ms var(--ease-spring), border-color 200ms ease, box-shadow 200ms ease;
}

.pos-kpi:hover {
  border-color: color-mix(in srgb, var(--root-red) 26%, var(--line));
  box-shadow: var(--lift-shadow);
  transform: translateY(-2px);
}

.pos-kpi > span:not(.pos-kpi-icon) {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pos-kpi strong {
  display: block;
  margin: 0.5rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.pos-kpi small {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
}

.pos-kpi-icon {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 9%, transparent);
}

.pos-kpi-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.pos-trend {
  font-weight: 800;
}

.pos-trend.up {
  color: var(--root-green);
}

.pos-trend svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* --- Insight strip --- */
.pos-insight-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.pos-insight {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
}

.pos-insight-icon {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: #fff;
  background: linear-gradient(135deg, var(--root-red), var(--root-red-dark));
}

.pos-insight-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.pos-insight small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.pos-insight strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.02rem;
}

/* --- Chart grid --- */
.pos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.pos-grid:nth-of-type(even) {
  grid-template-columns: minmax(18rem, 0.6fr) minmax(0, 1.4fr);
}

.pos-panel.wide {
  min-width: 0;
}

.pos-chart-box {
  min-height: 22rem;
}

.pos-small-chart {
  min-height: 18rem;
}

/* --- Heatmap --- */
.pos-heatmap {
  display: grid;
  gap: 0.85rem;
}

.pos-heatmap-grid {
  display: grid;
  grid-template-columns: auto repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.pos-heatmap-corner {
  display: block;
}

.pos-heatmap-day {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 0.15rem;
}

.pos-heatmap-hour {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

.pos-heatmap-cell {
  height: 2.4rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--root-red) calc(var(--v) * 0.9%), color-mix(in srgb, var(--muted) 12%, var(--panel-strong)));
  transition: transform 140ms var(--ease-spring), box-shadow 140ms ease;
}

.pos-heatmap-cell:hover {
  transform: scale(1.12);
  box-shadow: var(--soft-shadow);
  cursor: default;
}

.pos-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-end;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 700;
}

.pos-heatmap-scale {
  width: 8rem;
  height: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--muted) 12%, var(--panel-strong)), var(--root-red));
}

/* --- Range toggle --- */
.pos-range {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 8%, var(--panel-strong));
  flex-wrap: wrap;
}

.pos-range-btn {
  min-height: 2rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.pos-range-btn:hover {
  color: var(--ink);
}

.pos-range-btn.is-active {
  background: var(--root-red);
  color: #fff;
  box-shadow: var(--soft-shadow);
}

/* --- Products table --- */
.pos-products-table td .pos-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--root-red) 12%, var(--panel-strong));
  color: var(--root-red);
  font-size: 0.72rem;
  font-weight: 800;
}

.pos-products-table tbody tr:hover td {
  background: color-mix(in srgb, var(--root-red) 4%, transparent);
}

/* --- Sidebar "Soon" nav treatment --- */
.nav-soon-link .nav-soon-tag {
  margin-left: auto;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--root-gold) 26%, transparent);
  color: color-mix(in srgb, var(--root-gold) 78%, var(--sidebar-ink));
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .pos-hero,
  .pos-grid,
  .pos-grid:nth-of-type(even) {
    grid-template-columns: 1fr;
  }
  .pos-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pos-kpi-grid,
  .pos-insight-row {
    grid-template-columns: 1fr;
  }
  .pos-heatmap-cell {
    height: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .energy-demo-badge span,
  .pos-soon-dot,
  .pos-hero-spark span {
    animation: none;
  }
}

/* ---------- Recipes ---------- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

.session-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  width: min(calc(100% - 2rem), 24rem);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--root-gold) 45%, var(--line));
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: var(--lift-shadow);
  animation: session-toast-in 220ms var(--ease-out);
}

.session-toast[hidden] {
  display: none;
}

.session-toast > svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: var(--root-gold);
}

.session-toast div {
  display: grid;
  gap: 0.16rem;
}

.session-toast strong {
  font-size: 0.85rem;
}

.session-toast span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.session-timeout-modal .confirm-modal-icon {
  color: var(--root-red);
  background: color-mix(in srgb, var(--root-red) 12%, var(--panel-strong));
}

.session-final-countdown {
  display: inline-block;
  min-width: 2.7rem;
  color: var(--root-red);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.auth-session-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-left: 3px solid var(--root-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--root-red) 6%, transparent);
  color: var(--ink);
  animation: session-notice-in 220ms var(--ease-out);
}

.auth-session-notice-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--root-red) 12%, transparent);
  color: var(--root-red);
}

.auth-session-notice-icon svg {
  width: 1rem;
  height: 1rem;
}

.auth-session-notice > div {
  display: grid;
  gap: 0.12rem;
}

.auth-session-notice strong {
  font-size: 0.82rem;
}

.auth-session-notice div span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

@keyframes session-toast-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
}

@keyframes session-notice-in {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .session-toast,
  .auth-session-notice {
    animation: none;
  }
}

.recipe-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--soft-shadow);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lift-shadow);
  border-color: color-mix(in srgb, var(--root-red) 30%, var(--line));
}

.recipe-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.recipe-code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.recipe-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.15rem 0 0;
  line-height: 1.2;
}

.recipe-card-brand {
  font-size: 0.8rem;
  color: var(--muted);
}

.recipe-card-stats {
  display: flex;
  gap: 1.1rem;
  margin: 0.7rem 0 0.2rem;
}

.recipe-card-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.recipe-card-stats dt {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.recipe-card-stats dd {
  margin: 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.recipe-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.recipe-card-foot svg {
  width: 0.85rem;
  height: 0.85rem;
  vertical-align: -0.12rem;
}

.recipe-card-open {
  color: var(--root-red);
  font-weight: 600;
}

.recipe-none {
  grid-column: 1 / -1;
}

/* detail */
.recipe-detail-head .recipe-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.recipe-fact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.recipe-fact .l {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.recipe-fact .v {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.recipe-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.recipe-detail-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.recipe-ing-table .ing-bar-track {
  display: inline-block;
  width: calc(100% - 3rem);
  height: 7px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  vertical-align: middle;
  overflow: hidden;
}

.recipe-ing-table .ing-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--root-red);
  opacity: 0.85;
}

.recipe-ing-table .ing-pct {
  display: inline-block;
  width: 2.6rem;
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.recipe-method {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.recipe-method p {
  white-space: pre-wrap;
  color: var(--ink);
}

.recipe-instructions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.recipe-instructions li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.recipe-instructions li svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: color-mix(in srgb, var(--root-gold) 80%, var(--ink));
}

@media (max-width: 900px) {
  .recipe-detail-grid { grid-template-columns: 1fr; }
  .recipe-detail-head .recipe-facts { grid-template-columns: repeat(2, 1fr); }
}

.rsp-recipe-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--root-red);
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}

.rsp-recipe-link:hover { text-decoration: underline; }

.rsp-recipe-link svg { width: 0.8rem; height: 0.8rem; }
