/* ============================================================
   SHAH CONSULTING GmbH — Komponentenschicht
   ------------------------------------------------------------
   Echte CSS-Klassen (.sc-*), damit jede Seite dieselbe Oberflaeche
   bekommt, indem sie Klassen setzt -- nie durch handgeschriebenes CSS.

   Konvention: .sc-<block>__<element> --<modifier>  (BEM-nah)
   JEDER Wert kommt aus einem Token in sc-tokens.css, uebersetzt in
   sc-bridge.css. In dieser Datei stehen keine Design-Entscheidungen,
   die nicht dort verankert sind.

   Die verbindlichen Regeln des Design-Systems (Pille fuer alles
   Klickbare, Gewicht 400 fuer Ueberschriften, Innenlicht-Kante auf
   Kacheln) kommen ueber die Token-Bruecke und werden in
   sc-components.css -- der 1:1-Spiegelung von
   shahgmbhdesignsytem/components.css -- final durchgesetzt.

   LADEREIHENFOLGE (verbindlich):
     sc-fonts.css -> sc-tokens.css -> sc-bridge.css -> sc.css
     -> sc-components.css -> sc-app.css
   ============================================================ */

/* ===== tokens/base.css ===== */
/* ============================================================
   Shah Consulting — base resets & helpers
   Minimal, opinionated defaults so any consumer page inherits
   the dark canvas, font, and selection colors automatically.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brand-soft-2); color: var(--text-primary); }

/* thin, unobtrusive dark scrollbars to match the app chrome */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: var(--r-pill);
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--surface-4); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* eyebrow / uppercase label helper */
.eyebrow {
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ===== tokens/components.css ===== */
/* ============================================================
   Shah Consulting — Component layer (framework-agnostic)
   Real CSS classes so any stack (plain HTML, Jinja/Flask/Django
   templates, React, Vue, …) gets pixel-consistent Shah-Consulting-UI by
   applying classes — never by hand-authoring CSS.

   Convention: .sc-<block>__<element> --<modifier>  (BEM-ish)
   Every value comes from a token in tokens/*.css.
   ============================================================ */

/* ---- optional app root: sets canvas bg + base font on a region ---- */
.sc {
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   LAYOUT HELPERS  (small, intentional — not a utility framework)
   ============================================================ */
.sc-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.sc-stack--lg { gap: var(--space-5); }
.sc-row { display: flex; align-items: center; gap: var(--space-3); }
.sc-row--between { justify-content: space-between; }
.sc-grid { display: grid; gap: var(--gap-grid); }
.sc-spacer { flex: 1; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.sc-metric { font-weight: var(--fw-black); font-size: var(--fs-display); letter-spacing: var(--ls-tight); line-height: 1; color: var(--text-primary); }
.sc-h1 { font-weight: var(--fw-bold); font-size: var(--fs-h1); letter-spacing: var(--ls-tight); margin: 0; }
.sc-h2 { font-weight: var(--fw-bold); font-size: var(--fs-h2); letter-spacing: var(--ls-tight); margin: 0; }
.sc-h3 { font-weight: var(--fw-medium); font-size: var(--fs-h3); margin: 0; }
.sc-body { font-size: var(--fs-body); color: var(--text-secondary); }
.sc-eyebrow { font-size: var(--fs-2xs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-tertiary); font-weight: var(--fw-bold); }
.sc-mono { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-secondary); }
.sc-muted { color: var(--text-secondary); }
.sc-dim { color: var(--text-tertiary); }
.sc-link { color: var(--accent-400); text-decoration: none; }
.sc-link:hover { color: var(--accent-300); }

/* ============================================================
   CARD  — the base surface. Everything sits in one of these.
   ============================================================ */
.sc-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}
.sc-card--raised { background: var(--surface-2); }
.sc-card--flush { padding: 0; }
.sc-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.sc-card__title { margin: 0; font-weight: var(--fw-bold); font-size: var(--fs-h3); letter-spacing: var(--ls-tight); color: var(--text-primary); }
.sc-card__actions { display: flex; gap: var(--space-2); }

/* ============================================================
   BUTTON
   ============================================================ */
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--h-btn-md); padding: 0 var(--space-5);
  border-radius: var(--r-lg);
  font-family: var(--font-sans); font-size: var(--fs-body); font-weight: var(--fw-medium);
  letter-spacing: -0.01em; white-space: nowrap; user-select: none; cursor: pointer;
  border: 1px solid transparent; background: none; color: var(--text-primary);
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.sc-btn:active { transform: var(--press-scale); }
.sc-btn[disabled], .sc-btn--disabled { opacity: 0.45; pointer-events: none; }
.sc-btn--loading { pointer-events: none; opacity: 0.85; }
.sc-btn--loading::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid var(--sc-line-strong); border-top-color: currentColor;
  animation: sc-spin 0.7s linear infinite;
}
.sc-btn--sm { height: var(--h-btn-sm); padding: 0 var(--space-3); font-size: var(--fs-sm); }
.sc-btn--lg { height: var(--h-btn-lg); padding: 0 var(--space-6); }
.sc-btn--full { width: 100%; }

.sc-btn--primary { background: var(--grad-brand); color: var(--text-on-accent); box-shadow: var(--glow-brand); }
.sc-btn--primary:hover { filter: brightness(1.06); }
.sc-btn--secondary { background: var(--brand-soft); color: var(--accent-300); border-color: var(--border-subtle); }
.sc-btn--secondary:hover { background: var(--brand-soft-2); }
.sc-btn--ghost { background: var(--surface-2); color: var(--text-primary); border-color: var(--border-default); }
.sc-btn--ghost:hover { background: var(--surface-3); }
.sc-btn--active { background: var(--brand-soft); color: var(--accent-300); border-color: var(--border-focus); }

/* icon-only square button (card headers, toolbars) */
.sc-icon-btn {
  width: var(--h-btn-sm); height: var(--h-btn-sm); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-default); color: var(--text-secondary);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.sc-icon-btn:hover { background: var(--surface-3); color: var(--text-primary); }
.sc-icon-btn--active { background: var(--brand-soft); border-color: var(--border-focus); color: var(--accent-300); }

/* ============================================================
   STATUS PILL  (board columns / stage labels)
   ============================================================ */
.sc-pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px var(--space-3); border-radius: var(--r-pill);
  font-weight: var(--fw-bold); font-size: var(--fs-2xs);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  background: var(--surface-3); color: var(--text-secondary);
}
.sc-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.sc-pill__count { color: var(--text-tertiary); letter-spacing: 0; }
.sc-pill--progress { background: var(--status-progress-bg); color: var(--status-progress); }
.sc-pill--design   { background: var(--status-design-bg);   color: var(--status-design); }
.sc-pill--review   { background: var(--status-review-bg);   color: var(--status-review); }
.sc-pill--complete { background: var(--status-complete-bg); color: var(--status-complete); }
.sc-pill--ok        { background: var(--success-bg); color: var(--success); }
.sc-pill--info      { background: var(--info-bg);    color: var(--info); }

/* count badge (tree rows, tabs) */
.sc-badge { font-size: var(--fs-2xs); color: var(--accent-300); background: var(--brand-soft); border-radius: var(--r-pill); padding: 2px var(--space-2); }
.sc-badge--success { color: var(--success); background: var(--success-bg); }
.sc-badge--warning { color: var(--warning); background: var(--warning-bg); }
.sc-badge--neutral { color: var(--text-tertiary); background: var(--surface-3); }
.sc-tag-new { font-size: 10px; color: var(--text-secondary); background: var(--surface-3); border: 1px solid var(--border-subtle); border-radius: var(--r-pill); padding: 2px var(--space-2); }

/* ============================================================
   PRIORITY FLAG  (pure-CSS pennant via clip-path)
   ============================================================ */
.sc-flag { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--text-secondary); }
.sc-flag::before {
  content: ""; width: 12px; height: 14px; flex: none;
  background: var(--priority-medium);
  clip-path: polygon(12% 0, 12% 100%, 26% 100%, 26% 56%, 100% 30%, 26% 6%, 26% 0);
}
.sc-flag--high::before   { background: var(--priority-high); }
.sc-flag--medium::before { background: var(--priority-medium); }
.sc-flag--low::before    { background: var(--priority-low); }

/* ============================================================
   INPUT  (search field with optional icon + key hint)
   ============================================================ */
.sc-input {
  display: flex; align-items: center; gap: var(--space-2);
  height: var(--h-input); padding: 0 var(--space-4);
  background: var(--surface-2); border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  transition: border var(--dur-fast), box-shadow var(--dur-fast);
}
.sc-input:focus-within { border-color: var(--border-focus); box-shadow: var(--glow-focus); }
.sc-input > input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text-primary); font-family: var(--font-sans); font-size: var(--fs-body);
}
.sc-input > input::placeholder { color: var(--text-tertiary); }
.sc-input__icon { color: var(--text-tertiary); display: inline-flex; }
.sc-input__hint, kbd.sc-kbd {
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-tertiary);
  background: var(--surface-3); border: 1px solid var(--border-subtle); border-radius: var(--r-xs); padding: 2px 7px;
}

/* ============================================================
   AVATAR + STACK
   ============================================================ */
.sc-avatar {
  --size: 36px;
  width: var(--size); height: var(--size); flex: none;
  border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--accent-300);
  font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: 0.4em;
  position: relative;
}
.sc-avatar > img { width: 100%; height: 100%; object-fit: cover; }
.sc-avatar--ring { border: 2px solid var(--surface-1); box-shadow: 0 0 0 1px var(--border-default); }
.sc-avatar__status { position: absolute; right: -1px; bottom: -1px; width: 30%; height: 30%; border-radius: 50%; background: var(--success); border: 2px solid var(--surface-1); }
.sc-avatar-stack { display: inline-flex; align-items: center; }
.sc-avatar-stack > .sc-avatar { border: 2px solid var(--surface-1); }
.sc-avatar-stack > .sc-avatar + .sc-avatar,
.sc-avatar-stack > .sc-avatar-more { margin-left: -10px; }
.sc-avatar-more {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3); border: 2px solid var(--surface-1);
  color: var(--text-secondary); font-size: 11px; font-weight: var(--fw-medium);
}

/* ============================================================
   TASK CARD  (kanban board item)
   ============================================================ */
.sc-task {
  background: var(--surface-2); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
  cursor: grab; transition: border var(--dur-fast), transform var(--dur-fast);
}
.sc-task:hover { border-color: var(--border-strong); transform: var(--hover-lift); }
.sc-task__title { font-size: var(--fs-body); font-weight: var(--fw-medium); color: var(--text-primary); }
.sc-task__path { font-size: var(--fs-xs); color: var(--text-tertiary); margin-top: 4px; }
.sc-task__meta { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-secondary); }

/* ============================================================
   NAVIGATION  (icon rail + active states)
   ============================================================ */
.sc-rail {
  background: var(--bg-base); border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-5) 0;
  width: var(--rail-w);
}
.sc-nav-btn {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center; color: var(--text-tertiary); cursor: pointer; position: relative;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.sc-nav-btn:hover { color: var(--text-secondary); background: var(--surface-2); }
.sc-nav-btn--active { color: var(--sc-white); background: var(--grad-brand); box-shadow: var(--glow-brand); }
.sc-nav-btn--active::before {
  content: ""; position: absolute; left: -18px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 3px; background: var(--brand);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.sc-bar { height: 5px; border-radius: var(--r-pill); background: var(--surface-4); overflow: hidden; }
.sc-bar__fill { display: block; height: 100%; background: var(--grad-brand); border-radius: var(--r-pill); }

.sc-divider { height: 1px; background: var(--border-subtle); border: none; margin: 0; }

/* ===== tokens/components-web.css ===== */
/* ============================================================
   Shah Consulting — Web app components
   Forms, overlays, tables, tabs, accordion, breadcrumb,
   pagination and feedback. Composes the same tokens as the
   dashboard primitives, so it themes (dark/light) for free.
   Mobile-first; enhancements live in min-width media queries.
   ============================================================ */

/* ===========================================================
   PAGE LAYOUT  — container + responsive section
   =========================================================== */
.sc-container { width: 100%; max-width: var(--maxw-page); margin-inline: auto; padding-inline: var(--gutter); }
.sc-container--wide  { max-width: var(--maxw-wide); }
.sc-container--prose { max-width: var(--maxw-prose); }
.sc-section { padding-block: var(--section-y); }
.sc-section--sm { padding-block: var(--section-y-sm); }
.sc-section--base { background: var(--bg-base); }

/* responsive auto-fit grid for cards/features (mobile → multi-col) */
.sc-cols { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .sc-cols--2, .sc-cols--3, .sc-cols--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sc-cols--3 { grid-template-columns: repeat(3, 1fr); }
                             .sc-cols--4 { grid-template-columns: repeat(4, 1fr); } }
.sc-cols--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ===========================================================
   FORMS
   =========================================================== */
.sc-field { display: flex; flex-direction: column; gap: var(--space-2); }
.sc-label { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-primary); }
.sc-label__req { color: var(--danger); margin-left: 2px; }
.sc-help { font-size: var(--fs-xs); color: var(--text-tertiary); }
.sc-error { font-size: var(--fs-xs); color: var(--danger); display: flex; align-items: center; gap: var(--space-1); }

/* text controls share one look */
.sc-control,
.sc-textarea,
.sc-select > select {
  width: 100%; font-family: inherit; font-size: var(--fs-body); color: var(--text-primary);
  background: var(--surface-3); border: 1px solid var(--border-default);
  border-radius: var(--r-md); padding: 0 var(--space-4); height: var(--h-input);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  outline: none; appearance: none;
}
.sc-control::placeholder, .sc-textarea::placeholder { color: var(--text-tertiary); }
.sc-control:hover, .sc-textarea:hover, .sc-select > select:hover { border-color: var(--border-strong); }
.sc-control:focus, .sc-textarea:focus, .sc-select > select:focus { border-color: var(--border-focus); box-shadow: var(--glow-focus); background: var(--surface-2); }
.sc-control:disabled, .sc-textarea:disabled, .sc-select > select:disabled { opacity: 0.5; cursor: not-allowed; }
.sc-textarea { height: auto; min-height: 120px; padding: var(--space-3) var(--space-4); line-height: var(--lh-normal); resize: vertical; }

/* file input: no boxed background (native Choose-File/filename internals
   don't lay out cleanly inside a bordered flex box like .sc-input) -- style
   just the button via ::file-selector-button, let the filename text sit
   inline next to it at its natural height. */
.sc-file-input {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-sm); color: var(--text-tertiary);
}
.sc-file-input::file-selector-button {
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-medium);
  padding: var(--space-2) var(--space-4);
  background: var(--surface-2); color: var(--text-primary);
  border: 1px solid var(--border-default); border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.sc-file-input::file-selector-button:hover { background: var(--surface-3); border-color: var(--border-strong); }

/* validation states */
.sc-field--invalid .sc-control,
.sc-field--invalid .sc-textarea,
.sc-field--invalid .sc-select > select { border-color: var(--danger); }
.sc-field--invalid .sc-control:focus { box-shadow: 0 0 0 3px var(--sc-error-tint); }
.sc-field--valid .sc-control { border-color: var(--success); }

/* select with chevron */
.sc-select { position: relative; display: block; }
.sc-select::after {
  content: ""; position: absolute; right: var(--space-4); top: 50%; width: 9px; height: 9px;
  transform: translateY(-65%) rotate(45deg); border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary); pointer-events: none;
}
.sc-select > select { padding-right: var(--space-10); cursor: pointer; }

/* checkbox + radio */
.sc-check { display: inline-flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; font-size: var(--fs-body); color: var(--text-secondary); }
.sc-check > input { position: absolute; opacity: 0; width: 0; height: 0; }
.sc-check__box {
  flex: none; width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: var(--r-xs);
  transition: all var(--dur-fast) var(--ease-out);
}
.sc-check--radio .sc-check__box { border-radius: 50%; }
.sc-check__box::after { content: ""; width: 10px; height: 10px; border-radius: 2px; transform: scale(0); transition: transform var(--dur-fast) var(--ease-spring); background: var(--sc-white); }
.sc-check--radio .sc-check__box::after { border-radius: 50%; }
.sc-check > input:checked + .sc-check__box { background: var(--grad-brand); border-color: transparent; box-shadow: var(--glow-brand); }
.sc-check > input:checked + .sc-check__box::after { transform: scale(1); }
.sc-check > input:focus-visible + .sc-check__box { box-shadow: var(--glow-focus); }

/* toggle switch */
.sc-switch { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.sc-switch > input { position: absolute; opacity: 0; width: 0; height: 0; }
.sc-switch__track {
  width: 44px; height: 26px; flex: none; border-radius: var(--r-pill); background: var(--surface-4);
  border: 1px solid var(--border-default); position: relative; transition: background var(--dur-base) var(--ease-out);
}
.sc-switch__track::after {
  content: ""; position: absolute; left: 3px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--text-secondary);
  transition: transform var(--dur-base) var(--ease-spring), background var(--dur-base) var(--ease-out);
}
.sc-switch > input:checked + .sc-switch__track { background: var(--grad-brand); border-color: transparent; }
.sc-switch > input:checked + .sc-switch__track::after { transform: translate(18px, -50%); background: var(--sc-white); }
.sc-switch > input:focus-visible + .sc-switch__track { box-shadow: var(--glow-focus); }

/* range slider */
.sc-range { width: 100%; appearance: none; height: 6px; border-radius: var(--r-pill); background: var(--surface-4); outline: none; }
.sc-range::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); box-shadow: var(--glow-brand); cursor: pointer; border: 2px solid var(--sc-white); }
.sc-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); cursor: pointer; border: 2px solid var(--sc-white); }

/* ===========================================================
   TABS / SEGMENTED
   =========================================================== */
.sc-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--border-subtle); }
.sc-tab {
  appearance: none; background: none; border: none; cursor: pointer; font: inherit;
  padding: var(--space-3) var(--space-4); color: var(--text-tertiary); font-weight: var(--fw-medium);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--dur-fast) var(--ease-out);
}
.sc-tab:hover { color: var(--text-secondary); }
.sc-tab--active { color: var(--text-primary); border-bottom-color: var(--brand); }

.sc-segmented { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface-3); border: 1px solid var(--border-subtle); border-radius: var(--r-md); }
.sc-segmented > button { appearance: none; border: none; cursor: pointer; font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-medium); padding: 6px var(--space-4); border-radius: var(--r-sm); background: none; color: var(--text-secondary); transition: all var(--dur-fast) var(--ease-out); }
.sc-segmented > button[aria-selected="true"], .sc-segmented > button.is-active { background: var(--surface-1); color: var(--text-primary); box-shadow: var(--shadow-xs); }

/* ===========================================================
   ACCORDION  (FAQ, settings groups)
   =========================================================== */
.sc-accordion { border: 1px solid var(--border-subtle); border-radius: var(--r-xl); overflow: hidden; background: var(--surface-1); }
.sc-accordion__item + .sc-accordion__item { border-top: 1px solid var(--border-subtle); }
.sc-accordion__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-6); background: none; border: none; cursor: pointer; font: inherit; font-size: var(--fs-h3); font-weight: var(--fw-medium); color: var(--text-primary); text-align: left; }
.sc-accordion__icon { flex: none; width: 12px; height: 12px; border-right: 2px solid var(--text-tertiary); border-bottom: 2px solid var(--text-tertiary); transform: rotate(45deg); transition: transform var(--dur-base) var(--ease-out); }
.sc-accordion__item[open] .sc-accordion__icon, .sc-accordion__item.is-open .sc-accordion__icon { transform: rotate(-135deg); }
.sc-accordion__body { padding: 0 var(--space-6) var(--space-6); color: var(--text-secondary); line-height: var(--lh-normal); }

/* ===========================================================
   BREADCRUMB + PAGINATION
   =========================================================== */
.sc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--text-tertiary); }
.sc-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.sc-breadcrumb a:hover { color: var(--text-primary); }
.sc-breadcrumb__sep { color: var(--text-disabled); }

.sc-pagination { display: inline-flex; align-items: center; gap: var(--space-1); }
.sc-page { min-width: 38px; height: 38px; padding: 0 var(--space-2); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: var(--fs-sm); cursor: pointer; text-decoration: none; transition: all var(--dur-fast) var(--ease-out); }
.sc-page:hover { background: var(--surface-3); color: var(--text-primary); }
.sc-page--active { background: var(--grad-brand); color: var(--sc-white); border-color: transparent; box-shadow: var(--glow-brand); }

/* ===========================================================
   TABLE / DATA GRID
   =========================================================== */
.sc-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--r-xl); background: var(--surface-1); }
.sc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.sc-table thead th { text-align: left; font-size: var(--fs-2xs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-tertiary); font-weight: var(--fw-bold); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.sc-table tbody td { padding: var(--space-4) var(--space-5); color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); }
.sc-table tbody tr:last-child td { border-bottom: none; }
.sc-table tbody tr { transition: background var(--dur-fast) var(--ease-out); }
.sc-table tbody tr:hover { background: var(--surface-2); }
.sc-table td .sc-mono, .sc-table--numeric td { font-family: var(--font-mono); }
.sc-table__num { text-align: right; font-family: var(--font-mono); color: var(--text-primary); }

/* ===========================================================
   FEEDBACK  — alert, banner, empty state, skeleton, spinner
   =========================================================== */
.sc-alert { display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-radius: var(--r-lg); border: 1px solid var(--border-subtle); background: var(--surface-2); color: var(--text-secondary); font-size: var(--fs-sm); line-height: var(--lh-snug); }
.sc-alert__icon { flex: none; color: var(--info); }
.sc-alert strong { color: var(--text-primary); font-weight: var(--fw-bold); }
.sc-alert--info    { background: var(--sc-info-tint);  border-color: var(--sc-info-tint); }
.sc-alert--info .sc-alert__icon { color: var(--info); }
.sc-alert--success { background: var(--sc-ok-tint);  border-color: var(--sc-ok-tint); }
.sc-alert--success .sc-alert__icon { color: var(--success); }
.sc-alert--warning { background: var(--sc-warn-tint);  border-color: var(--sc-warn-tint); }
.sc-alert--warning .sc-alert__icon { color: var(--warning); }
.sc-alert--danger, .sc-alert--error  { background: var(--sc-error-tint);  border-color: var(--sc-error-tint); }
.sc-alert--danger .sc-alert__icon, .sc-alert--error .sc-alert__icon { color: var(--danger); }

/* full-width banner (top of page) */
.sc-banner { display: flex; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-3) var(--gutter); background: var(--grad-brand); color: var(--sc-white); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-align: center; }
.sc-banner a { color: var(--sc-white); text-decoration: underline; text-underline-offset: 3px; }

/* empty state */
.sc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-12) var(--space-6); }
.sc-empty__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--r-xl); background: var(--surface-2); border: 1px solid var(--border-subtle); color: var(--text-tertiary); margin-bottom: var(--space-2); }
.sc-empty__title { font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--text-primary); }
.sc-empty__text { font-size: var(--fs-sm); color: var(--text-tertiary); max-width: 360px; }

/* skeleton + spinner */
.sc-skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; border-radius: var(--r-sm); animation: sc-shimmer 1.4s ease infinite; }
@keyframes sc-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sc-spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--surface-4); border-top-color: var(--brand); animation: sc-spin 0.7s linear infinite; }
@keyframes sc-spin { to { transform: rotate(360deg); } }

/* ===========================================================
   OVERLAYS  — modal, drawer, toast, tooltip, dropdown
   =========================================================== */
.sc-overlay { position: fixed; inset: 0; background: rgba(14,15,16,0.66); backdrop-filter: blur(var(--blur-chip)); display: grid; place-items: center; padding: var(--gutter); z-index: 1000; }

.sc-modal { width: 100%; max-width: 460px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); padding: var(--space-8); }
.sc-modal__title { font-size: var(--fs-h1); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); margin: 0 0 var(--space-2); color: var(--text-primary); }
.sc-modal__text { color: var(--text-secondary); margin: 0 0 var(--space-6); line-height: var(--lh-normal); }
.sc-modal__actions { display: flex; gap: var(--space-3); justify-content: flex-end; }

/* drawer (slides from right; toggle .is-open) */
.sc-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 90vw); background: var(--surface-1); border-left: 1px solid var(--border-default); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-out); z-index: 1001; padding: var(--space-8); overflow-y: auto; }
.sc-drawer.is-open { transform: translateX(0); }

/* toast (stacks bottom-right) */
.sc-toasts { position: fixed; right: var(--space-6); bottom: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); z-index: 1100; }
.sc-toast { display: flex; align-items: center; gap: var(--space-3); min-width: 280px; padding: var(--space-4) var(--space-5); background: var(--surface-2); border: 1px solid var(--border-default); border-radius: var(--r-lg); box-shadow: var(--shadow-md); color: var(--text-primary); font-size: var(--fs-sm); }
.sc-toast__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px currentColor; flex: none; }

/* tooltip (wrap a trigger; set data-tip) */
.sc-tip { position: relative; display: inline-flex; }
.sc-tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); white-space: nowrap; background: var(--surface-4); color: var(--text-primary); font-size: var(--fs-xs); padding: 6px var(--space-3); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.sc-tip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* dropdown menu */
.sc-menu { min-width: 200px; background: var(--surface-2); border: 1px solid var(--border-default); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: var(--space-2); }
.sc-menu__item { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3) var(--space-3); border-radius: var(--r-sm); background: none; border: none; cursor: pointer; font: inherit; font-size: var(--fs-sm); color: var(--text-secondary); text-align: left; text-decoration: none; }
.sc-menu__item:hover { background: var(--surface-3); color: var(--text-primary); }
.sc-menu__sep { height: 1px; background: var(--border-subtle); margin: var(--space-2) 0; }

/* ===== tokens/components-sections.css ===== */
/* ============================================================
   Shah Consulting — Marketing / page sections
   Full-width website building blocks: top nav, hero, feature
   cards, stats band, pricing, testimonial, CTA, footer.
   All compose tokens → theme (dark/light) for free, all
   mobile-first. Pair with .sc-container for width control.
   ============================================================ */

/* ===========================================================
   TOP NAVBAR  (sticky site header)
   =========================================================== */
.sc-navbar { position: sticky; top: 0; z-index: 900; background: color-mix(in srgb, var(--bg-canvas) 80%, transparent); backdrop-filter: blur(var(--blur-panel)); border-bottom: 1px solid var(--border-subtle); }
.sc-navbar__inner { display: flex; align-items: center; gap: var(--space-6); height: 68px; }
.sc-brand { display: inline-flex; align-items: center; gap: var(--space-3); font-weight: var(--fw-bold); font-size: var(--fs-h3); color: var(--text-primary); text-decoration: none; letter-spacing: var(--ls-tight); }
.sc-brand__mark { width: 32px; height: 32px; border-radius: var(--r-sm); flex: none; }
.sc-navlinks { display: none; align-items: center; gap: var(--space-2); margin-left: var(--space-4); }
.sc-navlinks a { color: var(--text-secondary); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); padding: var(--space-2) var(--space-3); border-radius: var(--r-sm); transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.sc-navlinks a:hover { color: var(--text-primary); background: var(--surface-2); }
.sc-navbar__actions { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
@media (min-width: 900px) { .sc-navlinks { display: flex; } }

/* ===========================================================
   HERO
   =========================================================== */
.sc-hero { position: relative; overflow: hidden; padding-block: var(--section-y); }
.sc-hero__glow { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); }
.sc-hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.sc-hero__eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px var(--space-4); border-radius: var(--r-pill); background: var(--brand-soft); border: 1px solid var(--border-subtle); color: var(--accent-300); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase; white-space: nowrap; }
.sc-hero__title { font-size: var(--fs-hero); font-weight: var(--fw-black); letter-spacing: var(--ls-tight); line-height: 1.02; margin: 0; max-width: 16ch; text-wrap: balance; color: var(--text-primary); }
.sc-hero__lead { font-size: var(--fs-lead); line-height: var(--lh-normal); color: var(--text-secondary); margin: 0; max-width: 56ch; text-wrap: pretty; }
.sc-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.sc-gradient-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* generic section heading block */
.sc-section-head { text-align: center; max-width: 60ch; margin-inline: auto; margin-bottom: var(--space-12); display: flex; flex-direction: column; gap: var(--space-3); align-items: center; }
.sc-section-head__title { font-size: var(--fs-display-2); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: 1.08; margin: 0; color: var(--text-primary); text-wrap: balance; }
.sc-section-head__text { font-size: var(--fs-lead); color: var(--text-secondary); margin: 0; text-wrap: pretty; }

/* ===========================================================
   FEATURE CARD
   =========================================================== */
.sc-feature { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-xl); box-shadow: var(--shadow-card); transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.sc-feature:hover { transform: var(--hover-lift); border-color: var(--border-default); }
.sc-feature__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--brand-soft); color: var(--accent-300); margin-bottom: var(--space-2); }
.sc-feature__title { font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--text-primary); margin: 0; }
.sc-feature__text { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal); margin: 0; }

/* ===========================================================
   STATS BAND
   =========================================================== */
.sc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-6); text-align: center; }
@media (min-width: 768px) { .sc-stats--4 { grid-template-columns: repeat(4, 1fr); } }
.sc-stat__num { font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: var(--fs-display); line-height: 1; color: var(--text-primary); }
.sc-stat__num--grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sc-stat__label { font-size: var(--fs-sm); color: var(--text-tertiary); margin-top: var(--space-2); }

/* ===========================================================
   PRICING
   =========================================================== */
.sc-price { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-8); background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-2xl); box-shadow: var(--shadow-card); }
.sc-price--featured { border-color: var(--border-focus); box-shadow: var(--glow-brand-ring); position: relative; }
.sc-price__name { font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--accent-300); }
.sc-price__amount { font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: 52px; line-height: 1; letter-spacing: var(--ls-tight); color: var(--text-primary); }
.sc-price__amount small { font-family: var(--font-sans); font-size: var(--fs-body); font-weight: var(--fw-regular); color: var(--text-tertiary); }
.sc-price__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.sc-price__list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--fs-sm); color: var(--text-secondary); }
.sc-price__check { flex: none; color: var(--success); margin-top: 1px; }

/* ===========================================================
   TESTIMONIAL / QUOTE
   =========================================================== */
.sc-quote { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-8); background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-2xl); }
.sc-quote__text { font-size: var(--fs-display-2); font-weight: var(--fw-medium); line-height: 1.3; letter-spacing: var(--ls-tight); color: var(--text-primary); margin: 0; text-wrap: pretty; }
.sc-quote__by { display: flex; align-items: center; gap: var(--space-3); }
.sc-quote__name { font-weight: var(--fw-bold); color: var(--text-primary); }
.sc-quote__role { font-size: var(--fs-sm); color: var(--text-tertiary); }

/* ===========================================================
   CTA BAND
   =========================================================== */
.sc-cta { position: relative; overflow: hidden; text-align: center; padding: var(--section-y) var(--gutter); border-radius: var(--r-2xl); background: var(--surface-1); border: 1px solid var(--border-default); display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.sc-cta__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 120% at 50% 120%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 70%); }
.sc-cta__title { position: relative; font-size: var(--fs-display-2); font-weight: var(--fw-black); letter-spacing: var(--ls-tight); line-height: 1.05; margin: 0; color: var(--text-primary); text-wrap: balance; }
.sc-cta__text { position: relative; font-size: var(--fs-lead); color: var(--text-secondary); margin: 0; max-width: 52ch; }
.sc-cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* ===========================================================
   FOOTER
   =========================================================== */
.sc-footer { border-top: 1px solid var(--border-subtle); background: var(--bg-base); padding-block: var(--section-y-sm); }
.sc-footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
@media (min-width: 768px) { .sc-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.sc-footer__col { display: flex; flex-direction: column; gap: var(--space-3); }
.sc-footer__head { font-size: var(--fs-xs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-tertiary); font-weight: var(--fw-bold); margin-bottom: var(--space-1); }
.sc-footer__col a { color: var(--text-secondary); text-decoration: none; font-size: var(--fs-sm); }
.sc-footer__col a:hover { color: var(--text-primary); }
.sc-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--border-subtle); font-size: var(--fs-sm); color: var(--text-tertiary); }

/* logo cloud */
.sc-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-10); opacity: 0.7; }
.sc-logos > * { color: var(--text-secondary); font-weight: var(--fw-bold); font-size: var(--fs-h2); letter-spacing: var(--ls-tight); }

/* theme toggle button (sun/moon) */
.sc-theme-toggle { width: var(--h-btn-sm); height: var(--h-btn-sm); flex: none; display: inline-grid; place-items: center; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border-subtle); color: var(--text-secondary); cursor: pointer; transition: all var(--dur-fast) var(--ease-out); }
.sc-theme-toggle:hover { background: var(--surface-3); color: var(--text-primary); }

/* chat (Academy-Assistent: Vollseite + Drawer + FAB, S1-C3) */
.sc-chat-page { max-width: 980px; margin-inline: auto; }
.sc-chat { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-4); min-height: 440px; }
@media (max-width: 720px) { .sc-chat { grid-template-columns: 1fr; } }
.sc-chat-rail { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 14px; max-height: 80vh; overflow-y: auto; }
.sc-chat-rail__new { justify-content: center; margin-bottom: 6px; }
.sc-chat-rail__items { display: flex; flex-direction: column; gap: 2px; }
.sc-chat-rail__item { display: flex; align-items: center; gap: 2px; padding: 0 4px 0 8px; border-radius: 9px; color: var(--text-secondary); }
.sc-chat-rail__item:hover { background: var(--surface-2); }
.sc-chat-rail__item--active { background: var(--brand-soft); color: var(--text-primary); }
.sc-chat-rail__item-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; padding: 7px 4px; background: none; border: 0; color: inherit; font: inherit; font-size: 0.85rem; cursor: pointer; }
.sc-chat-rail__item-rename, .sc-chat-rail__item-delete { flex: none; width: 24px; height: 24px; border: 0; border-radius: 7px; background: none; color: var(--text-tertiary); font-size: 0.85rem; line-height: 1; cursor: pointer; opacity: 0; }
.sc-chat-rail__item:hover .sc-chat-rail__item-rename, .sc-chat-rail__item:hover .sc-chat-rail__item-delete { opacity: 1; }
.sc-chat-rail__item-rename:hover, .sc-chat-rail__item-delete:hover { background: var(--brand-soft); color: var(--text-primary); }
.sc-chat__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sc-chat__disclaimer { text-align: center; font-size: 0.8rem; padding: 2px 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.sc-chat__disclaimer p { color: var(--text-tertiary) !important; }
.sc-chat__tools { display: flex; justify-content: flex-end; }
.sc-chat__thread { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 120px; overflow-y: auto; padding: 4px 2px; }
.sc-chat__thread:empty { min-height: 0; }
.sc-chat__quickstart { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-chat__quickstart button { font-size: 0.8rem; color: var(--text-secondary); background: none; border: 1px solid var(--border-default); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.sc-chat__quickstart button:hover { background: var(--brand-soft); color: var(--text-primary); }
.sc-chat__thread:not(:empty) ~ .sc-chat__quickstart { display: none; }
.sc-chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: break-word; }
.sc-chat-msg--user { align-self: flex-end; background: var(--grad-brand); color: var(--text-on-accent); border-bottom-right-radius: 4px; }
.sc-chat-msg--assistant { align-self: flex-start; background: var(--bg-base); border: 1px solid var(--border-default); color: var(--text-primary); border-bottom-left-radius: 4px; }
.sc-chat-msg__text { margin: 0; }
.sc-chat__answer-text { margin: 0 0 var(--space-3); white-space: pre-wrap; color: var(--text-primary); }
.sc-chat-msg--pending { align-self: flex-start; color: var(--text-tertiary); font-style: italic; border: 1px dashed var(--border-default); }
.sc-chat-msg--error { align-self: flex-start; border: 1px solid var(--sc-error-tint); background: var(--sc-error-tint); color: var(--text-primary); }
.sc-chat-msg__citations { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.sc-chat-msg__citations .sc-chat-citation { display: block; padding: 8px 10px; border: 1px solid var(--border-default); border-radius: 10px; text-decoration: none; background: var(--brand-soft); }
.sc-chat-msg__citations .sc-chat-citation:hover { border-color: var(--border-focus); }
.sc-chat-msg__citations .sc-chat-citation__title { display: block; color: var(--accent-400); font-weight: 600; font-size: 0.85rem; }
.sc-chat-msg__citations .sc-chat-citation__snippet { display: block; margin-top: 2px; color: var(--text-secondary); font-size: 0.8rem; white-space: normal; }
.sc-chat-form { display: flex; flex-direction: column; gap: 4px; }
.sc-chat-form__row { display: flex; gap: 8px; align-items: center; border: 1px solid var(--border-default); border-radius: 22px; padding: 5px 5px 5px 16px; background: var(--bg-base); }
.sc-chat-form__row:focus-within { border-color: var(--border-focus); }
.sc-chat-form__row .sc-chat-form__input { flex: 1; min-width: 0; resize: none; border: 0 !important; outline: none !important; background: none !important; box-shadow: none !important; padding: 0 !important; margin: 0; height: auto !important; min-height: 0 !important; max-height: 120px; line-height: 1.5; overflow-y: auto; }
.sc-chat-form__submit { flex: none; border-radius: 999px !important; }
.sc-chat-form__hint { margin: 0; font-size: 0.72rem; text-align: center; }
.sc-chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--grad-brand); color: var(--text-on-accent); box-shadow: var(--glow-brand); cursor: pointer; }
.sc-chat-fab svg { width: 24px; height: 24px; }
.sc-chat-fab:hover { filter: brightness(1.08); }
.sc-chat-drawer { position: fixed; top: 0; right: 0; z-index: 70; display: flex; flex-direction: column; gap: var(--space-3); width: min(420px, 100vw); height: 100vh; height: 100dvh; padding: var(--space-4); background: var(--bg-canvas); border-left: 1px solid var(--border-default); box-shadow: -18px 0 40px rgba(14,15,16,0.55); transform: translateX(105%); visibility: hidden; transition: transform 0.22s ease, visibility 0.22s; }
.sc-chat-drawer[data-open="true"] { transform: none; visibility: visible; }
.sc-chat-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.sc-chat-drawer__title { color: var(--text-primary); font-weight: 700; }
.sc-chat-drawer__empty { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.sc-chat--compact { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sc-chat--compact .sc-chat__main { flex: 1; min-height: 0; }
.sc-chat--compact .sc-chat__thread { flex: 1; max-height: none; }
.sc-chat--compact .sc-chat__disclaimer { font-size: 0.8rem; }
