/* STIEBEL PRO · Visual values inferred from 01.png and 02.png, not an official brand specification.
   Reuse --se-* tokens and se-* components inside a .se-theme container.
   sg-* classes belong only to this documentation page. */
@font-face {
  font-family: 'Fira Sans';
  src: url('fonts/FiraSans-Light.woff') format('woff');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  src: url('fonts/FiraSans-Regular.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  src: url('fonts/FiraSans-SemiBold.woff') format('woff');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root {
  --se-font: 'Fira Sans', Arial, sans-serif;
  --se-canvas: #e7eaed;
  --se-surface: #f7f9fb;
  --se-white: #ffffff;
  --se-ink: #202426;
  --se-muted: #626a70;
  --se-line: #dce1e5;
  --se-control-line: #a5adb3;
  --se-selected: #d6dce0;
  --se-action: #242829;
  --se-action-hover: #3b4143;
  --se-action-pressed: #101415;
  --se-success: #16852d;
  --se-success-bright: #36b84c;
  --se-success-soft: #dceee1;
  --se-error: #c6263f;
  --se-error-soft: #fbe6ea;
  --se-brand: #ba0c2f;
  --se-chart-red: #e3062c;
  --se-focus: #386b8b;
  --se-space-1: 4px;
  --se-space-2: 8px;
  --se-space-3: 12px;
  --se-space-4: 16px;
  --se-space-5: 24px;
  --se-space-6: 32px;
  --se-space-7: 48px;
  --se-space-8: 64px;
  --se-radius-sm: 8px;
  --se-radius-md: 12px;
  --se-radius-sheet: 24px;
  --se-radius-pill: 999px;
  --se-shadow-card: 0 4px 20px #20242608;
  --se-shadow-sheet: 0 -12px 36px #2024261a;
  --se-shadow-float: 0 24px 56px #2024261f;
  --se-duration: 160ms;
}
.se-theme *, .se-theme *::before, .se-theme *::after { box-sizing: border-box; }
.se-theme {
  font-family: var(--se-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--se-ink);
  color-scheme: light;
}
.se-icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.se-button {
  display: inline-flex; justify-content: center; align-items: center; gap: var(--se-space-2);
  min-height: 48px; padding: 11px 24px; border: 1px solid transparent;
  border-radius: var(--se-radius-pill); background: transparent;
  color: var(--se-ink); font: inherit; font-weight: 600; line-height: 1.4;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background var(--se-duration), border-color var(--se-duration), box-shadow var(--se-duration);
}
.se-button--primary { background: var(--se-action); color: var(--se-white); }
.se-button--outline { border-color: var(--se-ink); }
.se-button--quiet { background: var(--se-selected); }
.se-button--icon { width: 48px; padding: 11px; }
.se-button--full { width: 100%; }
.se-button--small { min-height: 44px; padding: 9px 20px; font-size: 14px; }
.se-button--primary:hover{ background: var(--se-action-hover); }
.se-button--outline:hover { background: var(--se-selected); }
.se-button--quiet:hover { background: var(--se-line); }
.se-button--primary:active{ background: var(--se-action-pressed); box-shadow: inset 0 2px 5px #0004; }
.se-button--outline:active, .se-button--quiet:active { background: var(--se-control-line); }
.se-theme :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--se-focus); outline-offset: 4px; }
.se-button:disabled, .se-button:disabled:hover { background: var(--se-line); color: #757c82; border-color: transparent; box-shadow: none; cursor: not-allowed; }
.se-field { display: grid; gap: 8px; }
.se-label { color: var(--se-ink); font-size: 14px; font-weight: 600; }
.se-input, .se-select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--se-control-line);
  border-radius: var(--se-radius-sm); background: var(--se-surface); color: var(--se-ink); font: inherit;
}
.se-input::placeholder { color: var(--se-muted); opacity: 1; }
.se-input:hover, .se-select:hover { border-color: var(--se-ink); }
.se-input[aria-invalid='true'] { border-color: var(--se-error); background: #fff9fa; }
.se-input:disabled { background: var(--se-line); color: var(--se-muted); cursor: not-allowed; }
.se-hint { margin: 0; font-size: 13px; color: var(--se-muted); }
.se-hint--error { color: var(--se-error); }
.se-choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.se-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--se-action); flex: 0 0 auto; }
.se-choice:has(input:disabled) { color: var(--se-muted); cursor: not-allowed; }
.se-switch input { appearance: none; width: 44px; height: 26px; border: 1px solid var(--se-control-line); border-radius: var(--se-radius-pill); background: var(--se-selected); position: relative; transition: background var(--se-duration); }
.se-switch input::before { content: ''; position: absolute; width: 20px; height: 20px; top: 2px; left: 2px; background: var(--se-white); border-radius: 50%; box-shadow: 0 1px 3px #0003; transition: transform var(--se-duration); }
.se-switch input:checked { background: var(--se-action); border-color: var(--se-action); }
.se-switch input:checked::before { transform: translateX(18px); }
.se-switch input:disabled { opacity: .5; }
.se-segments { display: flex; padding: 3px; border: 1px solid var(--se-line); border-radius: var(--se-radius-sm); margin: 0; min-width: 0; }
.se-segments label { position: relative; flex: 1; min-width: 0; cursor: pointer; }
.se-segments input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.se-segments span { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 5px; text-align: center; font-size: 14px; }
.se-segments input:checked + span { background: var(--se-selected); font-weight: 600; }
.se-segments input:focus-visible + span { outline: 3px solid var(--se-focus); outline-offset: 1px; }
.se-segments input:disabled + span { color: var(--se-muted); cursor: not-allowed; }
.se-tabs { padding: 0; border: 0; border-bottom: 1px solid var(--se-line); border-radius: 0; }
.se-tabs span { min-height: 48px; border-radius: 0; border-bottom: 2px solid transparent; }
.se-tabs input:checked + span { background: transparent; border-bottom-color: var(--se-ink); }
.se-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--se-radius-pill); background: var(--se-selected); color: var(--se-ink); font-size: 12px; font-weight: 600; line-height: 1.4; }
.se-badge--success { background: var(--se-success-soft); color: var(--se-success); }
.se-badge--error { background: var(--se-error-soft); color: var(--se-error); }
.se-badge--solid { background: var(--se-success); color: var(--se-white); }
.se-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.se-card { padding: var(--se-space-5); background: var(--se-surface); border-radius: var(--se-radius-md); box-shadow: var(--se-shadow-card); }
.se-card__heading { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.se-card__text { margin: 0; color: var(--se-muted); font-size: 14px; }
.se-list { margin: 0; }
.se-row { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 14px 0; border-bottom: 1px solid var(--se-line); }
.se-row:last-child { border-bottom: 0; }
.se-row__body { flex: 1; min-width: 0; }
.se-row__label { display: block; font-size: 15px; }
.se-row__detail { display: block; margin-top: 3px; color: var(--se-muted); font-size: 12px; }
.se-row__value { margin-left: auto; font-size: 15px; white-space: nowrap; }
.se-row--error > .se-icon, .se-row--error .se-row__label { color: var(--se-error); }
.se-key-values { margin: 0; }
.se-key-values > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 17px 0; }
.se-key-values dt { color: var(--se-muted); font-size: 14px; }
.se-key-values dd { margin: 0; font-size: 15px; text-align: right; }
.se-app-header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 8px 12px; background: var(--se-surface); border-bottom: 1px solid var(--se-line); gap: 8px; }
.se-app-header__title { flex: 1; margin: 0; font-size: 16px; font-weight: 600; text-align: center; }
.se-app-header .se-button { width: 44px; min-height: 44px; padding: 10px; }
.se-app-header__actions { display: flex; }
.se-action-footer { display: grid; gap: 10px; padding: 16px; background: var(--se-surface); border-top: 1px solid var(--se-line); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.se-action-footer .se-choice { align-items: flex-start; font-size: 12px; line-height: 1.5; }
.se-action-footer .se-choice input { margin-top: 2px; width: 16px; height: 16px; }
.se-sheet { padding: 12px 20px 20px; border-radius: var(--se-radius-sheet) var(--se-radius-sheet) 0 0; background: var(--se-surface); box-shadow: var(--se-shadow-sheet); }
.se-sheet__handle { width: 36px; height: 3px; margin: 0 auto 8px; background: #bcc3c8; border-radius: var(--se-radius-pill); }
.se-sheet__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.se-sheet__title { margin: 0; font-size: 18px; font-weight: 600; }
.se-sheet__close { background: var(--se-canvas); }
