/* Spes Robotics Design System v3.4 components (spes.ai/design, components/bundle.css), vendored for webots.academy: the
   website's parts only, unchanged (button through page patterns, and Learning). Left out: Robot UI, Abort, video graphics and
   slides, which the website doesn't use. */
/* Spes Robotics — component styles. Values come from tokens.css; nothing here re-declares a token.
   v3.2 (Swiss refinement): flat, ruled, small consistent corners (2px marks, 4px controls, 6px containers, 8px media).
   Colour is sparing: blue brings trust (actions, links, structure), yellow signals safety (the Abort control, warnings);
   a line of text carries at most one accent, and numbers are quiet (thin mono, neutral). Containers are glass panels (a hairline edge, a translucent fill, a blur) with a blue tick on the top edge; floating layers are
   glass too; hovers change colour in 200ms and nothing lifts, presses or glows. Blue gives life to details,
   headlines remain neutral. */

.sr-root { font-family: var(--font-text); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }

/* ---------- Button ---------- */
.sr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 44px; padding: 0 var(--space-6);
  font-family: var(--font-text); font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.sr-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-btn[disabled], .sr-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.sr-btn svg { width: 16px; height: 16px; flex: none; }

.sr-btn--primary { background: var(--primary); color: var(--fg-on-brand); }
.sr-btn--primary:hover { background: var(--primary-hover); }
.sr-btn--primary:active { background: var(--primary-active); }

.sr-btn--secondary { background: var(--secondary); color: var(--fg-on-secondary); }
.sr-btn--secondary:hover { background: var(--secondary-hover); }

.sr-btn--outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.sr-btn--outline:hover { background: var(--fg); color: var(--bg); }

.sr-btn--ghost { background: transparent; color: var(--fg-accent); padding: 0; height: auto; min-height: 28px; }
.sr-btn--ghost:hover { color: var(--fg); }

.sr-btn--on-brand { background: var(--white); color: var(--blue-700); }
.sr-btn--on-brand:hover { background: var(--blue-50); }

.sr-btn--sm { height: 36px; padding: 0 var(--space-4); font-size: 12px; }
.sr-btn--lg { height: 52px; padding: 0 var(--space-8); font-size: 14px; }
.sr-btn--ghost.sr-btn--sm, .sr-btn--ghost.sr-btn--lg { padding: 0; height: auto; min-height: 28px; }
@media (prefers-reduced-motion: reduce) { .sr-btn { transition: none; } }

/* ---------- Badge ---------- */
.sr-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: var(--radius-xs);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  background: var(--bg-muted); color: var(--fg-muted); border: 1px solid transparent;
}
.sr-badge::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.sr-badge--plain::before { display: none; }
.sr-badge--brand { background: var(--bg-brand-subtle); color: var(--fg-accent); border-color: var(--border-brand); }
.sr-badge--highlight { background: var(--yellow-a15); color: var(--fg-highlight); }
.sr-badge--success { background: var(--success-bg); color: var(--success); }
.sr-badge--warning { background: var(--warning-bg); color: var(--warning); }
.sr-badge--danger { background: var(--danger-bg); color: var(--danger); }
.sr-badge--outline { background: transparent; border-color: var(--border); color: var(--fg-muted); }

/* ---------- Eyebrow / section header ---------- */
.sr-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-accent);
}
.sr-eyebrow__num { color: var(--fg-subtle); font-weight: 400; }
.sr-eyebrow__sep { color: var(--fg-subtle); }
.sr-section-head { display: grid; gap: var(--space-4); max-width: 720px; }
.sr-section-head__title { margin: 0; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 48px; line-height: 1; color: var(--fg); }
.sr-section-head__title em { font-style: normal; color: inherit; }
.sr-section-head__title mark { background: none; color: inherit; padding: 0; }
/* Headlines inherit their section foreground without marker backgrounds. */
.sr-root mark, .sr-mark { background: none; color: inherit; padding: 0; }
.sr-section-head__lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--fg-muted); }

/* ---------- The glass panel ----------
   Every container (card, stat, post, lab, grading, alert) is the same panel: a hairline edge in 14% of the text colour,
   a translucent fill (bg-raised) and a 16px blur, so it reads as one object over the plain ground and as glass over the
   S-ribbon, a photo or the grid. A blue tick sits on the top edge, inside the border; it stays fixed during hover. Alerts draw their status line the same way, full width. */
.sr-card, .sr-stat, .sr-post, .sr-lab, .sr-grade, .sr-alert {
  --sr-tick: 24px; --sr-tick-x: var(--space-6);
  position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: var(--radius-md);
  background-color: var(--bg-raised);
  background-image: linear-gradient(var(--sr-edge, var(--primary)), var(--sr-edge, var(--primary)));
  background-repeat: no-repeat; background-size: var(--sr-tick) 2px; background-position: var(--sr-tick-x) 0;
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  transition: border-color .2s ease;
}
/* Dialog and band keep a full-width accent edge on top, trimmed by the corners (the layer takes the box's radius). */
.sr-dialog::before, .sr-band::before {
  content: ""; position: absolute; z-index: 2; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(var(--sr-edge, var(--primary)), var(--sr-edge, var(--primary))) top / 100% 2px no-repeat;
}
/* Ambient: a soft S-ribbon behind a section, so glass panels have something to frost. Add to any positioned container. */
.sr-ambient { position: relative; isolation: isolate; }
.sr-ambient::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--bg-ribbon);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 400' preserveAspectRatio='xMaxYMid slice'%3E%3Cpath d='M 640 -40 L 640 60 A 110 110 0 0 0 830 130 L 960 0 M 800 440 L 940 300 A 110 110 0 0 1 1110 420' fill='none' stroke='black' stroke-width='64' stroke-linecap='round'/%3E%3C/svg%3E") right center / cover no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 400' preserveAspectRatio='xMaxYMid slice'%3E%3Cpath d='M 640 -40 L 640 60 A 110 110 0 0 0 830 130 L 960 0 M 800 440 L 940 300 A 110 110 0 0 1 1110 420' fill='none' stroke='black' stroke-width='64' stroke-linecap='round'/%3E%3C/svg%3E") right center / cover no-repeat; }
@media (prefers-reduced-motion: reduce) { .sr-card, .sr-stat, .sr-post, .sr-lab, .sr-grade, .sr-alert { transition: none; } }

/* ---------- Tones: mixed-theme pages ----------
   With no theme requested (a landing page, the website) a page is a stack of full-width bands, each wholly in one theme: set
   data-theme="dark" or "light" on the band and .sr-tone paints its ground and text; everything inside reads the band's tokens. */
.sr-tone { background: var(--bg); color: var(--fg); }
.only-dark { display: var(--on-dark, inline) !important; }
.only-light { display: var(--on-light, none) !important; }

/* ---------- Card ---------- */
.sr-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.sr-card--interactive { cursor: pointer; text-decoration: none; color: inherit; }
.sr-card--interactive:hover { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.sr-card--interactive:hover .sr-card__title { color: var(--fg-accent); }
.sr-card--interactive:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.sr-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center; background: var(--bg-brand-subtle); border: 1px solid var(--border-brand); color: var(--fg-accent);
}
.sr-card__icon svg { width: 22px; height: 22px; }
.sr-card__title { margin: 0; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 28px; line-height: 1.1; color: var(--fg); transition: color .2s ease; }
.sr-card__text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-muted); }
.sr-card__meta { margin-top: auto; padding-top: var(--space-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--fg-subtle); }
/* Glass: the stronger fill and blur, for a card that floats over a photo or video (every card is glass; this one is more opaque). */
.sr-card--glass { background-color: var(--bg-glass); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
/* Brand: blue glass with a full-width blue edge, to highlight one card in a row. */
.sr-card--brand { --sr-tick: 100%; --sr-tick-x: 0px; border-color: var(--border-brand); background-color: var(--bg-brand-subtle); }
.sr-card--brand .sr-card__icon { background: var(--blue-a40); color: var(--fg-on-brand); }
/* Statement (formerly the solid blue card): one per page, a quiet ground, the blue tick and a big line of type. */
.sr-card--solid { padding: var(--space-8) var(--space-6) var(--space-6); background-color: var(--bg-subtle); }
.sr-card--solid .sr-card__title { font-size: 40px; line-height: 1.02; }
@media (prefers-reduced-motion: reduce) { .sr-card__title { transition: none; } }

/* ---------- Glass (utility) ---------- */
.sr-glass { background: var(--bg-glass); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }

/* ---------- Stat ---------- */
.sr-stat { display: grid; gap: var(--space-2); padding: var(--space-6); }
.sr-stat__value { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 56px; line-height: 1; color: var(--fg); }
.sr-stat__value small { font-size: .5em; color: var(--fg-subtle); margin-left: 2px; }
.sr-stat__label { font-size: 14px; line-height: 1.5; color: var(--fg-muted); }

/* ---------- Navbar ---------- */
.sr-nav {
  display: flex; align-items: center; gap: var(--space-8);
  height: 72px; padding: 0 var(--space-6);
  background: var(--bg-glass);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--border);
}
.sr-nav__logo { display: flex; align-items: center; height: 32px; }
.sr-nav__logo img { height: 32px; width: auto; display: block; }
.sr-nav__links { display: flex; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.sr-nav__link {
  display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-3);
  font-size: 15px; font-weight: 500; color: var(--fg-muted); text-decoration: none; transition: color .2s ease, box-shadow .2s ease;
}
.sr-nav__link:hover { color: var(--fg); }
.sr-nav__link[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px var(--primary); }
.sr-nav__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-nav__actions { margin-left: auto; display: flex; gap: var(--space-2); }

/* ======================================================================================================
   v3.1 additions: icons, forms, navigation, feedback, data, content and product components.
   Same rules as above: values come from tokens.css only. Each block names its component folder README.
   ====================================================================================================== */

/* ---------- Icon (icons/sprite.svg) ---------- */
.sr-icon { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }
.sr-btn .sr-icon { width: 16px; height: 16px; }

/* ---------- Forms (components/Form/README.md) ---------- */
.sr-field { display: grid; gap: 6px; }
.sr-label { font-size: 14px; font-weight: 500; color: var(--fg); }
.sr-label small { font-weight: 400; color: var(--fg-subtle); margin-left: 4px; }
.sr-help { font-size: 12px; line-height: 1.4; color: var(--fg-subtle); }
.sr-error { display: flex; gap: 6px; align-items: center; font-size: 12px; line-height: 1.4; color: var(--danger); }
.sr-input, .sr-select, .sr-textarea {
  width: 100%; height: 44px; padding: 0 14px;
  font-family: var(--font-text); font-size: 15px; color: var(--fg);
  background-color: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .15s ease, background-color .15s ease;
}
.sr-textarea { height: auto; min-height: 112px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.sr-input::placeholder, .sr-textarea::placeholder { color: var(--fg-subtle); }
.sr-input:hover, .sr-select:hover, .sr-textarea:hover { border-color: var(--fg-subtle); }
.sr-input:focus-visible, .sr-select:focus-visible, .sr-textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--primary); }
.sr-input[aria-invalid="true"], .sr-textarea[aria-invalid="true"] { border-color: var(--danger); }
.sr-input:disabled, .sr-select:disabled, .sr-textarea:disabled { opacity: .5; cursor: not-allowed; }
.sr-select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a6b8' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.sr-select option { background: var(--bg-subtle); color: var(--fg); }
.sr-input-wrap { position: relative; }
.sr-input-wrap > .sr-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--fg-subtle); pointer-events: none; }
.sr-input-wrap > .sr-input { padding-left: 40px; }
.sr-input--mono { font-family: var(--font-mono); font-size: 14px; }

/* Checkbox and radio: 20px, a 1.5px edge in fg-subtle (3:1 and more on both grounds), filled blue when on.
   The tick is square-cut like the icons' boxes; the radio keeps a white centre. Both darken their edge on hover. */
.sr-check, .sr-radio { display: inline-flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.4; color: var(--fg); cursor: pointer; }
.sr-check input, .sr-radio input {
  appearance: none; position: relative; flex: none; width: 20px; height: 20px; margin: 0;
  border: 1.5px solid var(--fg-subtle); background: transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, border-width .15s ease;
}
.sr-check input { border-radius: var(--radius-xs); }
.sr-radio input { border-radius: 50%; }
.sr-check:hover input:not(:checked), .sr-radio:hover input:not(:checked) { border-color: var(--fg); }
.sr-check input::after { content: ""; position: absolute; inset: 0; background: var(--fg-on-brand); opacity: 0; transition: opacity .15s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='square'%3E%3Cpath d='M5 10.5 8.5 14 15 6.5'/%3E%3C/svg%3E") center / 17px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='square'%3E%3Cpath d='M5 10.5 8.5 14 15 6.5'/%3E%3C/svg%3E") center / 17px no-repeat; }
.sr-check input:checked, .sr-check input:indeterminate { background: var(--primary); border-color: var(--primary); }
.sr-check input:checked::after { opacity: 1; }
.sr-check input:indeterminate::after { opacity: 1; -webkit-mask: linear-gradient(#000, #000) center / 10px 2px no-repeat; mask: linear-gradient(#000, #000) center / 10px 2px no-repeat; }
.sr-radio input:checked { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4.5px var(--bg); }
.sr-check input:focus-visible, .sr-radio input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-check input:disabled, .sr-radio input:disabled { opacity: .45; cursor: not-allowed; }
.sr-check small, .sr-radio small { display: block; margin-top: 2px; font-size: 13px; color: var(--fg-subtle); }
@media (prefers-reduced-motion: reduce) { .sr-check input, .sr-radio input, .sr-check input::after { transition: none; } }

.sr-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--fg); cursor: pointer; }
.sr-switch input { appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; border-radius: var(--radius-sm);
  background: var(--bg-muted); border: 1px solid var(--border-strong); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.sr-switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: var(--radius-xs); background: var(--fg-muted); transition: transform .15s ease, background-color .15s ease; }
.sr-switch input:checked { background: var(--primary); border-color: var(--primary); }
.sr-switch input:checked::after { transform: translateX(16px); background: var(--white); }
.sr-switch input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.sr-range { width: 100%; height: 24px; appearance: none; background: transparent; cursor: pointer; --sr-fill: 50%; }
.sr-range::-webkit-slider-runnable-track { height: 6px; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--primary) var(--sr-fill), var(--bg-muted) var(--sr-fill)); }
.sr-range::-moz-range-track { height: 6px; border-radius: var(--radius-full); background: var(--bg-muted); }
.sr-range::-moz-range-progress { height: 6px; border-radius: var(--radius-full); background: var(--primary); }
.sr-range::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--white); border: 3px solid var(--primary); }
.sr-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--primary); }
.sr-range:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-full); }

.sr-segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-sm); background: var(--bg-muted); border: 1px solid var(--border); }
.sr-segmented button { height: 34px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-xs); background: transparent;
  font-family: var(--font-text); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background-color .15s ease, color .15s ease; }
.sr-segmented button:hover { color: var(--fg); }
.sr-segmented button[aria-pressed="true"], .sr-segmented button[aria-selected="true"] { background: var(--primary); color: var(--fg-on-brand); }
.sr-segmented button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-segmented .sr-icon { width: 16px; height: 16px; }

/* ---------- Tabs, breadcrumb, menu (components/Navigation/README.md) ---------- */
.sr-tabs { display: flex; gap: var(--space-6); border-bottom: 1px solid var(--border); overflow-x: auto; }
.sr-tab { position: relative; height: 44px; padding: 0; border: 0; background: none; font-family: var(--font-text); font-size: 15px; font-weight: 500; color: var(--fg-muted); cursor: pointer; white-space: nowrap; }
.sr-tab:hover { color: var(--fg); }
.sr-tab[aria-selected="true"] { color: var(--fg); }
.sr-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.sr-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-xs); }
.sr-tab .sr-tab__count { margin-left: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); }

.sr-breadcrumb { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.sr-breadcrumb li { display: inline-flex; gap: var(--space-2); color: var(--fg-subtle); }
.sr-breadcrumb li + li::before { content: "//"; color: var(--fg-subtle); }
.sr-breadcrumb a { color: var(--fg-accent); text-decoration: none; }
.sr-breadcrumb a:hover { text-decoration: underline; }
.sr-breadcrumb [aria-current="page"] { color: var(--fg-muted); }

.sr-menu { min-width: 220px; padding: 6px; border-radius: var(--radius-md); background: var(--bg-glass); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.sr-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: var(--radius-xs); background: none;
  font-family: var(--font-text); font-size: 14px; font-weight: 500; color: var(--fg-muted); text-decoration: none; cursor: pointer; }
.sr-menu__item .sr-icon { width: 18px; height: 18px; color: var(--fg-subtle); }
.sr-menu__item:hover, .sr-menu__item:focus-visible { background: var(--bg-muted); color: var(--fg); outline: none; }
.sr-menu__item:hover .sr-icon { color: var(--fg-accent); }
.sr-menu__item kbd { margin-left: auto; }
.sr-menu__item--danger, .sr-menu__item--danger .sr-icon { color: var(--danger); }
.sr-menu__sep { height: 1px; margin: 6px 4px; background: var(--border); }
.sr-menu__label { padding: 8px 10px 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-subtle); }

/* Mobile navigation sheet: the navbar below 900px */
.sr-sheet { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-6); background: var(--bg-glass); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.sr-sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sr-sheet__links { display: grid; margin: 0; padding: 0; list-style: none; }
.sr-sheet__link { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 32px; line-height: 1; color: var(--fg); text-decoration: none; }
.sr-sheet__link .sr-icon { color: var(--fg-subtle); }
.sr-sheet__link[aria-current="page"] { color: var(--fg-accent); }
.sr-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-raised); color: var(--fg); cursor: pointer; }
.sr-icon-btn:hover { background: var(--bg-muted); }
.sr-icon-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-icon-btn .sr-icon { width: 20px; height: 20px; }

/* ---------- Footer (components/Footer/README.md) ---------- */
.sr-footer { padding: var(--space-16) var(--space-6) var(--space-8); background: var(--bg-subtle); border-top: 1px solid var(--border); }
.sr-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-8); max-width: 1200px; margin: 0 auto; }
.sr-footer__brand p { margin: var(--space-4) 0 var(--space-6); max-width: 32ch; font-size: 14px; line-height: 1.6; color: var(--fg-muted); }
.sr-footer__brand img { height: 32px; }
.sr-footer__social { display: flex; gap: var(--space-2); }
.sr-footer__col h4 { margin: 0 0 var(--space-4); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-accent); }
.sr-footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.sr-footer__col a { font-size: 14px; color: var(--fg-muted); text-decoration: none; }
.sr-footer__col a:hover { color: var(--fg); }
.sr-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); max-width: 1200px; margin: var(--space-12) auto 0; padding-top: var(--space-6); border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-subtle); }
.sr-footer__bottom a { color: var(--fg-subtle); text-decoration: none; }
.sr-footer__bottom a:hover { color: var(--fg); }
@media (max-width: 760px) { .sr-footer__grid { grid-template-columns: 1fr 1fr; } .sr-footer__brand { grid-column: 1 / -1; } }

/* ---------- Feedback (components/Feedback/README.md) ----------
   Messages read like a robot's log: a 2px rule in the status colour, a mono head ("WARNING // NETWORK   12:04:31"),
   then a title and one sentence. No tinted boxes, no icons in circles; floating messages sit on glass. */
.sr-alert { --sr-status: var(--fg-subtle); --sr-edge: var(--sr-status); --sr-tick: 100%; --sr-tick-x: 0px; display: grid; gap: 6px; padding: var(--space-4) var(--space-5) var(--space-4); color: var(--fg-muted); font-size: 14px; line-height: 1.55; }
.sr-alert--info { --sr-status: var(--fg-accent); }
.sr-alert--success { --sr-status: var(--success); }
.sr-alert--warning { --sr-status: var(--warning); }
.sr-alert--danger { --sr-status: var(--danger); }
.sr-alert__head { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-subtle); }
.sr-alert__code { display: inline-flex; align-items: center; gap: 8px; color: var(--sr-status); }
.sr-alert__code::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.sr-alert__time { margin-left: auto; font-variant-numeric: tabular-nums; }
.sr-alert__title { margin: 4px 0 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--fg); }
.sr-alert__text { margin: 0; max-width: 60ch; }
.sr-alert__actions { display: flex; gap: var(--space-4); margin-top: var(--space-2); }
.sr-alert__close { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: -4px -4px -4px 0; border: 0; background: none; color: var(--fg-subtle); cursor: pointer; transition: color .2s ease; }
.sr-alert__close:hover { color: var(--fg); }
.sr-alert__close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-alert__close .sr-icon { width: 16px; height: 16px; }
.sr-alert--floating { background-color: var(--bg-glass); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }

/* Toast: a glass strip; the 2px line along its foot counts down the time it stays. */
.sr-toast { --sr-status: var(--success); position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4);
  width: min(440px, 100%); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: var(--radius-md);
  background: var(--bg-glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); font-size: 14px; color: var(--fg); }
.sr-toast--info { --sr-status: var(--fg-accent); }
.sr-toast--danger { --sr-status: var(--danger); }
.sr-toast__code { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sr-status); }
.sr-toast__code::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.sr-toast__text { min-width: 0; }
.sr-toast__text small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); }
.sr-toast__timer { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sr-status); transform-origin: left; animation: sr-countdown var(--sr-toast-time, 5s) linear forwards; }
@keyframes sr-countdown { to { transform: scaleX(0); } }

/* Tooltip: inverted, square, mono. */
.sr-tooltip { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 260px; padding: 6px 10px; border-radius: var(--radius-xs); background: var(--fg); color: var(--bg);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; line-height: 1.4; }
.sr-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.sr-tooltip .sr-kbd { min-width: 18px; height: 18px; color: inherit; background: transparent; border-color: currentColor; border-bottom-width: 1px; }

/* Dialog: a quiet panel with a 2px edge (blue; red for destructive), a mono eyebrow, a Geist title, ruled actions.
   A modal <dialog> is already positioned (fixed); the inline specimen needs relative for its edge. */
.sr-dialog { width: min(520px, 100%); padding: 0; border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: var(--radius-md); background: var(--bg-subtle); color: var(--fg); }
.sr-dialog:not(:modal) { position: relative; }
.sr-dialog--danger { --sr-edge: var(--danger); }
.sr-dialog::backdrop { background: var(--black-a60); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sr-dialog__head { position: relative; display: grid; gap: var(--space-3); padding: var(--space-6) var(--space-12) 0 var(--space-6); }
.sr-dialog__title { margin: 0; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 32px; line-height: 1.05; }
.sr-dialog__head .sr-alert__close { position: absolute; right: var(--space-5); top: var(--space-5); margin: 0; }
.sr-dialog__body { margin: 0; padding: var(--space-4) var(--space-6) var(--space-6); font-size: 15px; line-height: 1.6; color: var(--fg-muted); }
.sr-dialog__actions { display: flex; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); }
.sr-scrim { background: var(--black-a60); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Progress: a 2px line on a hairline, the label row in mono. */
.sr-progress { position: relative; height: 2px; background: var(--border); overflow: hidden; }
.sr-progress__bar { height: 100%; background: var(--primary); transition: width .2s ease; }
.sr-progress--success .sr-progress__bar { background: var(--success); }
.sr-progress--indeterminate .sr-progress__bar { position: absolute; width: 30%; animation: sr-indeterminate 1.4s ease-in-out infinite; }
@keyframes sr-indeterminate { from { left: -30%; } to { left: 100%; } }
.sr-progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-bottom: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-subtle); }
.sr-progress-row b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }

/* Spinner: three squares, scanning. */
.sr-spinner { display: inline-block; flex: none; width: 6px; height: 6px; margin-right: 20px; vertical-align: middle; background: var(--bg-muted); box-shadow: 10px 0 var(--bg-muted), 20px 0 var(--bg-muted); animation: sr-scan .9s steps(1) infinite; }
@keyframes sr-scan {
  0% { background: var(--primary); box-shadow: 10px 0 var(--bg-muted), 20px 0 var(--bg-muted); }
  33% { background: var(--bg-muted); box-shadow: 10px 0 var(--primary), 20px 0 var(--bg-muted); }
  66% { background: var(--bg-muted); box-shadow: 10px 0 var(--bg-muted), 20px 0 var(--primary); }
}
.sr-skeleton { border-radius: var(--radius-xs); background: var(--bg-muted); animation: sr-breathe 1.6s ease-in-out infinite; }
@keyframes sr-breathe { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  .sr-spinner, .sr-skeleton, .sr-progress--indeterminate .sr-progress__bar, .sr-toast__timer { animation: none; }
  .sr-spinner { background: var(--primary); }
}

/* ---------- Data and content (components/Data/README.md) ---------- */
.sr-table-wrap { overflow-x: auto; border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: var(--radius-md); background: var(--bg-raised); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.sr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sr-table th { height: 40px; padding: 0 var(--space-4); text-align: left; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-subtle); border-bottom: 1px solid var(--border); white-space: nowrap; }
.sr-table td { height: 52px; padding: 0 var(--space-4); color: var(--fg-muted); border-bottom: 1px solid var(--border); }
.sr-table tr:last-child td { border-bottom: 0; }
.sr-table tbody tr:hover td { background: var(--bg-muted); }
.sr-table td:first-child { color: var(--fg); font-weight: 500; }
.sr-table .num { text-align: right; font-family: var(--font-mono); font-size: 13px; color: var(--fg); }

.sr-code { border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--neutral-950); overflow: hidden; }
.sr-code__head { display: flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-2) 0 var(--space-4); border-bottom: 1px solid var(--white-a08);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--neutral-400); }
.sr-code__head button { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: none;
  font-family: var(--font-text); font-size: 12px; font-weight: 600; color: var(--neutral-300); cursor: pointer; text-transform: none; letter-spacing: 0; }
.sr-code__head button:hover { background: var(--white-a08); color: var(--white); }
.sr-code__head .sr-icon { width: 14px; height: 14px; }
.sr-code pre { margin: 0; padding: var(--space-4); overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; color: var(--neutral-200); }
.sr-code .c-prompt { color: var(--blue-400); user-select: none; }
.sr-code .c-com { color: var(--neutral-500); }
.sr-code .c-str { color: var(--yellow-300); }
.sr-code .c-key { color: var(--blue-300); }
.sr-code .c-ok { color: var(--green-300); }
.sr-code .c-err { color: var(--red-300); }
.sr-kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-xs); border: 1px solid var(--border-strong); border-bottom-width: 2px;
  background: var(--bg-raised); font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); }

.sr-accordion { border-top: 1px solid var(--border); }
.sr-accordion details { border-bottom: 1px solid var(--border); }
.sr-accordion summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 600; color: var(--fg); }
.sr-accordion summary::-webkit-details-marker { display: none; }
.sr-accordion summary::after { content: ""; flex: none; width: 20px; height: 20px; background: var(--fg-subtle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease; }
.sr-accordion details[open] summary::after { transform: rotate(45deg); background: var(--fg-accent); }
.sr-accordion summary:hover { color: var(--fg-accent); }
.sr-accordion summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-xs); }
.sr-accordion details > div { padding: 0 var(--space-8) var(--space-5) 0; font-size: 15px; line-height: 1.6; color: var(--fg-muted); max-width: 70ch; }

.sr-avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--bg-brand-subtle); border: 1px solid var(--border-brand); font-family: var(--font-text); font-weight: 600; font-size: 16px; color: var(--fg-accent); }
.sr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sr-avatar--lg { width: 96px; height: 96px; font-size: 28px; }
.sr-person { display: grid; gap: var(--space-3); }
.sr-person__name { margin: var(--space-2) 0 0; font-family: var(--font-text); font-size: 20px; font-weight: 600; color: var(--fg); }
.sr-person__role { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-accent); }
.sr-person__bio { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-muted); }

/* ---------- Page patterns (components/Patterns/README.md) ---------- */
.sr-hero { position: relative; overflow: hidden; padding: var(--space-24) var(--space-6); }
.sr-hero__inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; display: grid; gap: var(--space-6); }
.sr-hero__title { margin: 0; max-width: 14ch; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(48px, 8vw, 88px); line-height: .92; letter-spacing: -.01em; color: var(--fg); }
.sr-hero__title em { font-style: normal; color: inherit; }
.sr-hero__title mark { background: none; color: inherit; padding: 0; }
.sr-hero__lead { margin: 0; max-width: 56ch; font-size: 20px; line-height: 1.55; color: var(--fg-muted); }
.sr-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.sr-hero__ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.sr-hero__ribbon path { stroke: var(--bg-ribbon); }
/* The grid, drawn: a square 80px mesh of hairlines that fades out from the headline, so it is felt more than seen. */
.sr-hero--grid::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  --sr-mesh: color-mix(in srgb, var(--fg) 8%, transparent);
  background-image: linear-gradient(var(--sr-mesh) 1px, transparent 1px), linear-gradient(90deg, var(--sr-mesh) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 30% 45%, #000 0%, transparent 100%); mask-image: radial-gradient(ellipse 70% 90% at 30% 45%, #000 0%, transparent 100%); }

.sr-post { --sr-tick: 0px; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.sr-post:hover { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.sr-post:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.sr-post__media { aspect-ratio: 16 / 9; background: var(--bg-subtle); overflow: hidden; }
.sr-post__media img, .sr-post__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The body carries the tick: a hairline under the picture with the blue tick at the text's start; it stays fixed on hover. */
.sr-post__body { --sr-btick: 24px; display: flex; flex-direction: column; gap: var(--space-3); flex: 1; padding: var(--space-5);
  background: linear-gradient(var(--primary), var(--primary)) var(--space-5) 0 / var(--sr-btick) 2px no-repeat, linear-gradient(color-mix(in srgb, var(--fg) 14%, transparent), color-mix(in srgb, var(--fg) 14%, transparent)) 0 0 / 100% 1px no-repeat;
  transition: background-size .2s ease, background-position .2s ease; }
.sr-post__date { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--fg-subtle); }
.sr-post__date .sr-icon { width: 14px; height: 14px; }
.sr-post__title { margin: 0; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 28px; line-height: 1.1; color: var(--fg); transition: color .2s ease; }
.sr-post:hover .sr-post__title { color: var(--fg-accent); }
.sr-post__excerpt { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sr-post__more { margin-top: auto; padding-top: var(--space-2); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-accent); }
.sr-post__more .sr-icon { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .sr-post__title, .sr-post__body { transition: none; } }

/* Band: the closing call to action. A quiet ground with a blue edge, not a slab of blue. */
.sr-band { position: relative; overflow: hidden; padding: var(--space-16) var(--space-8); border-radius: var(--radius-xl); background: var(--bg-subtle); color: var(--fg); }
.sr-band > :not(.sr-hero__ribbon) { position: relative; z-index: 1; }
.sr-band__title { margin: 0 0 var(--space-3); max-width: 16ch; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 48px; line-height: 1; }
.sr-band__text { margin: 0 0 var(--space-6); max-width: 50ch; font-size: 17px; line-height: 1.6; color: var(--fg-muted); }

/* ---------- Learning: Webots Academy (components/Learning/README.md) ---------- */
.sr-lab { --sr-tick: 0px; display: flex; flex-direction: column; }
.sr-lab__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-subtle); }
.sr-lab__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-lab__media .sr-badge { position: absolute; left: var(--space-3); top: var(--space-3); }
.sr-lab__body { display: grid; gap: var(--space-3); padding: var(--space-5); }
.sr-lab__title { margin: 0; font-family: var(--font-text); font-size: 18px; font-weight: 600; color: var(--fg); }
.sr-lab__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); }
.sr-lab__meta span { display: inline-flex; align-items: center; gap: 5px; }
.sr-lab__meta .sr-icon { width: 14px; height: 14px; }
.sr-lab__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border); }

/* Checklist: a ruled list of steps, each with a 24px square marker. To do: its number on a hairline square.
   Done: a green square with a tick. Current: a blue square with its number, the row in bold. */
.sr-checklist { margin: 0; padding: 0; list-style: none; display: grid; counter-reset: sr-step; }
.sr-checklist li { position: relative; counter-increment: sr-step; display: grid; grid-template-columns: 24px 1fr auto; gap: var(--space-3); align-items: center;
  padding: var(--space-3) 0; border-top: 1px solid var(--border); font-size: 15px; color: var(--fg-muted); }
.sr-checklist li:first-child { border-top: 0; }
.sr-checklist li::before { content: counter(sr-step, decimal-leading-zero); display: grid; place-items: center; width: 24px; height: 24px; box-sizing: border-box;
  border: 1px solid var(--border-strong); border-radius: var(--radius-xs); font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--fg-subtle); }
.sr-checklist li.is-done { color: var(--fg-subtle); }
.sr-checklist li.is-done::before { content: ""; border-color: var(--success); background: var(--success); }
.sr-checklist li.is-done::after { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin-top: -12px; background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='square'%3E%3Cpath d='M5 10.5 8.5 14 15 6.5'/%3E%3C/svg%3E") center / 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='square'%3E%3Cpath d='M5 10.5 8.5 14 15 6.5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.sr-checklist li.is-active { color: var(--fg); font-weight: 600; }
.sr-checklist li.is-active::before { border-color: var(--primary); background: var(--primary); color: var(--fg-on-brand); }
.sr-checklist li small { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--fg-subtle); }

.sr-grade { display: grid; grid-template-columns: auto 1fr; gap: var(--space-6); align-items: center; padding: var(--space-6); }
.sr-grade__ring { --sr-score: 80; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--success) calc(var(--sr-score) * 1%), var(--bg-muted) 0); }
.sr-grade__ring span { width: 88px; height: 88px; border-radius: 50%; background: var(--bg-subtle); display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 36px; color: var(--fg); }
.sr-grade__tests { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted); }
.sr-grade__tests li { display: flex; align-items: center; gap: var(--space-2); }
.sr-grade__tests .sr-icon { width: 16px; height: 16px; }
.sr-grade__tests .pass .sr-icon { color: var(--success); }
.sr-grade__tests .fail .sr-icon { color: var(--danger); }
.sr-grade__tests .time { margin-left: auto; color: var(--fg-subtle); }

.sr-viewport { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--neutral-950); }
.sr-viewport__stage { position: relative; aspect-ratio: 16 / 9; background: var(--neutral-900); }
.sr-viewport__stage img, .sr-viewport__stage canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-viewport__bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--bg-subtle); border-top: 1px solid var(--border); }
.sr-viewport__time { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--fg); font-variant-numeric: tabular-nums; }
.sr-viewport__time small { color: var(--fg-subtle); margin-left: var(--space-2); }
.sr-tool { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--fg-muted); cursor: pointer; }
.sr-tool:hover { background: var(--bg-muted); color: var(--fg); }
.sr-tool[aria-pressed="true"] { background: var(--bg-brand-subtle); color: var(--fg-accent); }
.sr-tool:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-tool .sr-icon { width: 18px; height: 18px; }

