/* RISE — app shell: sidebar, top bar, drawer, auth layout. */

.app-body { min-height: 100vh; }
@media (min-width: 900px) {
  /* keeps the sidebar colour down the whole page, also in full-page captures and print */
  .app-body { background: linear-gradient(90deg, var(--navy-950) var(--sidebar-w), var(--bg) var(--sidebar-w)); }
  .app-body.sidebar-collapsed { background: linear-gradient(90deg, var(--navy-950) var(--sidebar-w-collapsed), var(--bg) var(--sidebar-w-collapsed)); }
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--navy-200); border-right: 1px solid rgba(255, 255, 255, .04);
  transition: width 200ms var(--ease), transform 220ms var(--ease);
}
.sb-brand { display: flex; align-items: center; gap: var(--sp-3); height: var(--topbar-h); padding: 0 var(--sp-5); color: var(--white); flex: none; }
.sb-brand:hover { color: var(--white); text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: var(--white);
  font-weight: 750; font-size: 15px; letter-spacing: -.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 6px rgba(0, 0, 0, .25);
}
.brand-mark.lg { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
.sb-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sb-name strong { font-size: var(--fs-14); font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.sb-name span { font-size: 11.5px; color: var(--navy-300); white-space: nowrap; }
.sb-nav { flex: 1; overflow-y: auto; padding: var(--sp-2) var(--sp-3) var(--sp-4); }
.sb-group { margin-top: var(--sp-4); }
.sb-group:first-child { margin-top: var(--sp-2); }
.sb-label { padding: 0 var(--sp-3); margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(201, 212, 234, .55); white-space: nowrap; }
.sb-link {
  position: relative; display: flex; align-items: center; gap: var(--sp-3);
  min-height: 40px; padding: 0 var(--sp-3); margin: 2px 0; border-radius: var(--r-sm);
  color: var(--navy-200); font-weight: 520; font-size: var(--fs-14); white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.sb-link .icon { width: 18px; height: 18px; color: var(--navy-300); transition: color var(--t) var(--ease); }
.sb-link:hover { background: rgba(255, 255, 255, .06); color: var(--white); text-decoration: none; }
.sb-link:hover .icon { color: var(--white); }
.sb-link[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.sb-link[aria-current="page"] .icon { color: var(--white); }
.sb-link[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue-300); }
.sb-link .nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.sb-link .nav-badge { box-shadow: 0 0 0 2px var(--navy-900); }
.sb-link:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--blue-300); }
.sb-foot { flex: none; padding: var(--sp-3); border-top: 1px solid rgba(255, 255, 255, .06); }
.sb-collapse { width: 100%; justify-content: flex-start; color: var(--navy-300); min-height: 36px; padding: 0 var(--sp-3); background: transparent; border: 0; box-shadow: none; }
.sb-collapse:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.sb-collapse .when-collapsed { display: none; }

/* Collapsed to icons (desktop) */
.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
.sidebar-collapsed .sb-name, .sidebar-collapsed .sb-label, .sidebar-collapsed .sb-link .nav-label, .sidebar-collapsed .sb-collapse .nav-label { display: none; }
.sidebar-collapsed .sb-brand { padding: 0; justify-content: center; }
.sidebar-collapsed .sb-link { justify-content: center; padding: 0; }
.sidebar-collapsed .sb-link .nav-badge { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.sidebar-collapsed .sb-group { margin-top: var(--sp-3); border-top: 1px solid rgba(255, 255, 255, .06); padding-top: var(--sp-2); }
.sidebar-collapsed .sb-group:first-child { border-top: 0; }
.sidebar-collapsed .sb-collapse { justify-content: center; padding: 0; }
.sidebar-collapsed .sb-collapse .when-open { display: none; }
.sidebar-collapsed .sb-collapse .when-collapsed { display: inline-block; }
.sidebar-collapsed .shell-main { margin-left: var(--sidebar-w-collapsed); }

/* ---------- Main area + top bar ---------- */
.shell-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left 200ms var(--ease); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--sp-3); padding: 0 var(--sp-8);
  background: var(--topbar-bg); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--sp-3); }
.topbar-title .tb-heading { font-size: var(--fs-15); font-weight: 600; color: var(--gray-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; }
.tb-mobile { display: none; }
.btn-link { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 560; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.content { flex: 1; width: 100%; max-width: var(--content-max); margin: 0 auto; padding: var(--sp-8) var(--sp-8) var(--sp-12); min-width: 0; }
.shell-footer { padding: var(--sp-5) var(--sp-8); font-size: var(--fs-12); color: var(--text-muted); text-align: center; }

/* User menu (details/summary: works without JS) */
.usermenu { position: relative; flex: none; }
.usermenu > summary {
  list-style: none; display: flex; align-items: center; gap: var(--sp-2); cursor: pointer;
  min-height: 44px; padding: 4px 8px 4px 4px; border-radius: var(--r-full); border: 1px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary:hover, .usermenu[open] > summary { background: var(--surface); border-color: var(--border); box-shadow: var(--sh-xs); }
.usermenu > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.um-who { display: flex; flex-direction: column; line-height: 1.2; text-align: left; min-width: 0; }
.um-name { font-weight: 600; font-size: var(--fs-13); color: var(--gray-900); max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-chev { color: var(--gray-400); width: 16px; height: 16px; }
.um-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 260px; z-index: 50;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-lg);
  padding: var(--sp-2); animation: toast-in 160ms var(--ease);
}
.um-head { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-2) var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-2); }
.um-head .person-text { gap: 2px; }
.um-item {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 40px; padding: 0 var(--sp-3);
  border: 0; background: transparent; border-radius: var(--r-sm); color: var(--gray-800); font-size: var(--fs-14); font-weight: 500; cursor: pointer; text-align: left;
}
.um-item[hidden] { display: none; }
.um-item .icon { color: var(--gray-500); width: 17px; height: 17px; }
.um-item:hover { background: var(--surface-hover); color: var(--gray-900); text-decoration: none; }
.um-item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.um-item.danger { color: var(--danger); }
.um-item.danger .icon { color: var(--danger); }

/* Drawer overlay (mobile) */
.drawer-overlay { display: none; }

/* ---------- Mobile (< 900px): top bar + slide-over drawer ---------- */
@media (max-width: 899px) {
  .sidebar { width: min(296px, 86vw); transform: translateX(-102%); box-shadow: var(--sh-lg); }
  .sidebar-collapsed .sidebar { width: min(296px, 86vw); }
  .sidebar-collapsed .sb-name, .sidebar-collapsed .sb-label, .sidebar-collapsed .sb-link .nav-label { display: initial; }
  .sidebar-collapsed .sb-link { justify-content: flex-start; padding: 0 var(--sp-3); }
  .sidebar-collapsed .sb-brand { justify-content: flex-start; padding: 0 var(--sp-5); }
  .sidebar-collapsed .sb-link .nav-badge { position: static; }
  .nav-open .sidebar, .sidebar:target { transform: none; }
  .nav-open .drawer-overlay { display: block; position: fixed; inset: 0; z-index: 35; background: var(--overlay); animation: fade-in 180ms var(--ease); }
  .sb-link { min-height: 44px; }
  .sb-foot { display: none; }
  .sb-close { display: inline-grid !important; }
  .shell-main, .sidebar-collapsed .shell-main { margin-left: 0; }
  .topbar { padding: 0 var(--sp-3) 0 var(--sp-2); }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--gray-800); border-radius: var(--r-sm); cursor: pointer; flex: none; }
  .menu-btn:hover { background: var(--surface-hover); }
  .menu-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
  .um-who, .um-chev { display: none; }
  .usermenu > summary { padding: 4px; }
  .content { padding: var(--sp-5) var(--sp-4) var(--sp-10); }
  .topbar .breadcrumbs { display: none; }
  .tb-mobile { display: block; }
}
.sb-close { display: none; position: absolute; right: var(--sp-2); top: 8px; width: 44px; height: 44px; place-items: center; color: var(--navy-200); border-radius: var(--r-sm); }
.sb-close:hover { color: var(--white); background: rgba(255, 255, 255, .08); text-decoration: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Auth layout (sign in, forced password change, signed-out pages) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.auth-brand {
  position: relative; overflow: hidden; color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; padding: var(--sp-12);
  background:
    radial-gradient(900px 500px at 110% -10%, rgba(29, 78, 216, .55), transparent 60%),
    radial-gradient(700px 520px at -10% 110%, rgba(30, 64, 175, .45), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
.auth-brand::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(201, 212, 234, .14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 75%); mask-image: linear-gradient(160deg, #000 10%, transparent 75%);
}
.auth-brand::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -170px; bottom: -190px; border-radius: 50%;
  border: 1px solid rgba(201, 212, 234, .12); box-shadow: 0 0 0 60px rgba(201, 212, 234, .03), 0 0 0 130px rgba(201, 212, 234, .025);
  pointer-events: none;
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: var(--sp-3); font-weight: 650; font-size: var(--fs-16); }
.auth-pitch h2 { color: var(--white); font-size: 46px; line-height: 1.08; letter-spacing: -.03em; font-weight: 760; max-width: none; margin-bottom: var(--sp-4); }
.auth-pitch h2 span { display: block; }
.auth-pitch h2 .w2 { white-space: nowrap; background: linear-gradient(90deg, #7fb4ff, #22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-pitch p { color: var(--navy-200); font-size: var(--fs-16); max-width: 40ch; margin: 0; }
.auth-points { list-style: none; margin: var(--sp-8) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.auth-points li { display: flex; gap: var(--sp-3); align-items: center; color: var(--navy-100); font-size: var(--fs-14); }
.auth-points .icon { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: var(--blue-200); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.auth-portals { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.auth-portals span { padding: 4px 12px; border-radius: var(--r-full); font-size: var(--fs-12); font-weight: 600; letter-spacing: .02em; color: var(--navy-100); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: var(--sp-10) var(--sp-6); background: var(--surface); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: var(--fs-28); letter-spacing: -.025em; margin-bottom: var(--sp-2); }
.auth-card .auth-sub { color: var(--text-muted); margin-bottom: var(--sp-8); }
.auth-card .field { margin-bottom: var(--sp-4); }
.auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=text] { min-height: 44px; }
.auth-card .btn-primary { min-height: 44px; margin-top: var(--sp-2); }
.auth-help { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--border); font-size: var(--fs-13); color: var(--text-muted); display: flex; gap: var(--sp-2); align-items: flex-start; }
.auth-help .icon { color: var(--gray-400); margin-top: 1px; }
.auth-mobile-logo { display: none; }
.auth-foot { position: absolute; bottom: var(--sp-5); right: var(--sp-6); font-size: var(--fs-12); color: var(--text-muted); }
.auth-main { position: relative; }

@media (max-width: 899px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-main { align-items: flex-start; padding: var(--sp-6) var(--sp-5) var(--sp-16); min-height: 100vh; background: linear-gradient(180deg, var(--blue-50), var(--surface) 280px); }
  .auth-mobile-logo { display: flex; align-items: center; gap: var(--sp-3); font-weight: 650; margin: var(--sp-4) 0 var(--sp-10); color: var(--gray-900); }
  .auth-card h1 { font-size: var(--fs-24); }
  .auth-card .auth-sub { margin-bottom: var(--sp-6); }
  .auth-foot { left: 0; right: 0; text-align: center; }
}

/* ---------- Brand logo (company files in assets/brand/ when present; the plain mark otherwise) ---------- */
.brand-logo { display: block; height: 32px; width: auto; max-width: 100%; }
.brand-logo-full { height: 36px; }
.brand-logo.lg { height: 44px; }
/* A light chip keeps a logo legible on the navy panels and in dark mode, so the logo itself is never recoloured. */
/* RISE lockup on the sign-in panel: a glass card with the phoenix, the RISE wordmark in a techno display face and one pill per word of the full name */
@font-face { font-family: "RISE Display"; src: url("../fonts/orbitron-900-rise.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
.rise-lockup { display: block; }
.rise-card { --rf: clamp(60px, 6.1vw, 100px); display: inline-flex; flex-direction: column; gap: clamp(12px, 1.8vh, 18px); max-width: 100%; padding: clamp(18px, 2.4vh, 30px) clamp(22px, 2.6vw, 42px); border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(160, 200, 255, .35);
  box-shadow: 0 0 60px rgba(59, 130, 255, .25), inset 0 0 30px rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.rise-top { display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 2.2vw, 28px); }
.rise-mark { position: relative; top: calc(var(--rf) * .05); height: calc(var(--rf) * .76); width: auto; flex: none; filter: drop-shadow(0 8px 24px rgba(59, 130, 255, .55)); animation: rise-float 5s ease-in-out infinite alternate; }
.rise-word { font-family: "RISE Display", "Orbitron", var(--font); font-weight: 900; font-size: var(--rf); line-height: 1; letter-spacing: .2em; margin-right: -.2em;
  background: linear-gradient(180deg, #ffffff 0%, #b7d4ff 55%, #6fb0ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 22px rgba(80, 150, 255, .45)); }
.rise-word .rise-s { background: linear-gradient(155deg, #4aa3ff 0%, #3b82ff 30%, #7b6cff 48%, #ff8a3d 74%, #ffb25e 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 14px rgba(59, 130, 255, .55)) drop-shadow(0 0 12px rgba(255, 138, 61, .4)); }
.rise-pills { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; }
.rise-pills span { font-size: clamp(12px, 1.12vw, 16.5px); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #dbe8ff; white-space: nowrap; }
@media (max-width: 1500px) { .rise-pills span { letter-spacing: .14em; } }
.auth-brand > .rise-ember { position: absolute; bottom: -12px; width: 5px; height: 5px; border-radius: 50%; background: #ff9a3c; box-shadow: 0 0 10px 2px rgba(255, 154, 60, .65); opacity: 0; z-index: 0; animation: rise-up 11s linear infinite; }
.rise-ember:nth-of-type(1) { left: 8%; animation-delay: 0s; animation-duration: 12s; }
.rise-ember:nth-of-type(2) { left: 22%; animation-delay: 3s; background: #5aa8ff; box-shadow: 0 0 10px 2px rgba(90, 168, 255, .6); }
.rise-ember:nth-of-type(3) { left: 36%; animation-delay: 6s; animation-duration: 14s; }
.rise-ember:nth-of-type(4) { left: 52%; animation-delay: 1.5s; background: #5aa8ff; box-shadow: 0 0 10px 2px rgba(90, 168, 255, .6); animation-duration: 10s; }
.rise-ember:nth-of-type(5) { left: 66%; animation-delay: 8s; }
.rise-ember:nth-of-type(6) { left: 78%; animation-delay: 4.5s; background: #5aa8ff; box-shadow: 0 0 10px 2px rgba(90, 168, 255, .6); animation-duration: 13s; }
.rise-ember:nth-of-type(7) { left: 88%; animation-delay: 2s; animation-duration: 9s; }
.rise-ember:nth-of-type(8) { left: 45%; animation-delay: 9.5s; animation-duration: 15s; }
@keyframes rise-up { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .5; } 100% { transform: translate(36px, -105vh); opacity: 0; } }
@keyframes rise-float { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes rise-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rise-mark, .auth-brand > .rise-ember { animation: none; } .auth-brand > .rise-ember { display: none; } }
.auth-logo .brand-logo.panel { height: 150px; width: auto; max-width: 100%; }
.brand-chip { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 4px; border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.brand-chip .brand-logo { height: 40px; }
.brand-chip .brand-logo-full { height: 40px; }
.brand-chip .brand-logo.lg { height: 84px; }
.auth-logo .brand-chip { padding: 6px; border-radius: 12px; }
.sb-brand { height: auto; min-height: var(--topbar-h); padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
.sb-brand .brand-chip { flex: none; }
.sidebar-collapsed .brand-chip { padding: 2px; }
.sidebar-collapsed .sb-brand .brand-logo { height: 28px; }
.auth-mobile-logo .brand-chip .brand-logo.lg { height: 64px; }

/* ---------- Theme switch ---------- */
.theme-toggle { display: inline-flex; padding: 2px; border-radius: var(--r-full); background: var(--chip-bg); gap: 2px; }
.theme-opt { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 28px; min-width: 28px; padding: 0 9px; border: 0; border-radius: var(--r-full); background: transparent; color: var(--text-subtle); font: inherit; font-size: var(--fs-12); font-weight: 600; cursor: pointer; }
.theme-opt:hover { color: var(--text); }
.theme-opt[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }
.theme-opt:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.theme-toggle.compact .theme-opt-label { display: none; }
.theme-toggle.compact { margin-left: auto; }
.um-theme { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-2) var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-2); }
.um-theme-label { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-13); font-weight: 560; color: var(--text-subtle); }
.um-theme .theme-opt-label { display: none; }
.auth-main .auth-theme { position: absolute; top: var(--sp-4); right: var(--sp-4); }
.auth-theme .theme-toggle.compact { margin-left: 0; }
@media (max-width: 899px) { .auth-main .auth-theme { display: none; } }

/* ---------- Error pages ---------- */
.error-card { max-width: 520px; margin: var(--sp-8) auto; text-align: center; padding: var(--sp-10) var(--sp-8); }
.error-art { width: 168px; height: auto; margin: 0 auto var(--sp-2); display: block; }
.error-art .ea-back { fill: var(--blue-50); stroke: var(--blue-100); }
.error-art .ea-card { fill: var(--surface); stroke: var(--gray-200); }
.error-art .ea-line { fill: var(--gray-200); }
.error-art .ea-badge { fill: var(--blue-600); }
.error-art .ea-check { fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.error-art .ea-dotw { fill: var(--white); }
.error-card .error-code { margin: 0; }
.error-card h1 { margin: var(--sp-1) 0 var(--sp-3); }
.error-message { margin: 0 0 var(--sp-2); color: var(--text); }
.error-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-6); }
.error-card .debug { text-align: left; }

.sb-group-end { margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid rgba(255, 255, 255, .06); }
