/* Orbitize: the website in the app's design (src/theme.ts): the same two palettes, IBM Plex Sans and Mono, 8 and 4 px
   corners, cyan accent, hairline rules. Dark by default, light on request (html[data-theme] is set before the page
   draws by a line in each page's head). Every colour is a token, so both themes stay complete. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexSans_500Medium.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600 700; font-display: swap; src: url("fonts/IBMPlexSans_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono_400Regular.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500 700; font-display: swap; src: url("fonts/IBMPlexMono_500Medium.ttf") format("truetype"); }
:root {
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 8px;
  --radius-sm: 4px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gradient: linear-gradient(135deg, #00b8e6, #35d4ff); /* avatars only */

  /* Dark (default): palettes.dark in the app */
  --bg: #080b10;
  --surface: #0f141b;
  --surface-2: #161d26;
  --surface-3: #1e2733;
  --glass: rgba(8, 11, 16, .82);
  --line: #1f2a36;
  --line-strong: #56687a;
  --text: #e6edf5;
  --text-2: #a9b8c7;
  --muted: #8795a5;
  --accent: #35d4ff;
  --accent-strong: #00b8e6;
  --accent-soft: #0c2b3a;
  --accent-line: rgba(53, 212, 255, .4);
  --signal: #ffb829;
  --success: #3ddc84;
  --success-soft: rgba(61, 220, 132, .12);
  --warning: #ffc24d;
  --warning-soft: rgba(255, 194, 77, .12);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, .12);
  --danger-hover: rgba(255, 107, 107, .2);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55);
  --skeleton-1: #121821;
  --skeleton-2: #18202b;
  --viewer-bg: radial-gradient(circle at 50% 38%, #161d26, #080b10 75%);
  --stage-bg: radial-gradient(90% 75% at 55% 40%, #161d26 0%, #0b0f14 60%, #080b10 100%);
  --plate-bg: #0b0f14;
  --plate-line: rgba(169, 184, 199, .3);
  --plate-margin: rgba(169, 184, 199, .12);
  --plate-floor: rgba(169, 184, 199, .5);
  --tag-bg: #35d4ff;
  --tag-text: #00131c;
  --overlay: rgba(0, 0, 0, .65);
  --toast-bg: #e6edf5;
  --toast-text: #080b10;
  --btn-bg: #35d4ff;
  --btn-text: #00131c;
  --logo-1: #c9c7ff;
  --logo-2: #9c98ff;
  --logo-3: #6f69f0;
  color-scheme: dark;
}
:root[data-theme="light"] {
  /* palettes.light in the app */
  --bg: #edf0f4;
  --surface: #ffffff;
  --surface-2: #e1e6ed;
  --surface-3: #d3dae3;
  --glass: rgba(237, 240, 244, .85);
  --line: #cbd3dc;
  --line-strong: #7a8896;
  --text: #0b1116;
  --text-2: #33404d;
  --muted: #566370;
  --accent: #0866ad;
  --accent-strong: #065490;
  --accent-soft: #d9eaf7;
  --accent-line: #9cc3e3;
  --signal: #8f5200;
  --success: #116b34;
  --success-soft: rgba(17, 107, 52, .1);
  --warning: #8a5a00;
  --warning-soft: rgba(138, 90, 0, .1);
  --danger: #b3261e;
  --danger-soft: rgba(179, 38, 30, .09);
  --danger-hover: rgba(179, 38, 30, .16);
  --shadow: 0 1px 2px rgba(11, 17, 22, .06);
  --shadow-lg: 0 24px 64px rgba(11, 17, 22, .12);
  --skeleton-1: #e1e6ed;
  --skeleton-2: #eef1f5;
  --viewer-bg: radial-gradient(circle at 50% 38%, #ffffff, #e1e6ed);
  --stage-bg: radial-gradient(90% 75% at 55% 40%, #ffffff 0%, #e4e9ee 70%, #d3dae3 100%);
  --plate-bg: #ffffff;
  --plate-line: #9aa7b5;
  --plate-margin: #d3dae3;
  --plate-floor: #7a8896;
  --tag-bg: #0866ad;
  --tag-text: #ffffff;
  --overlay: rgba(11, 17, 22, .4);
  --toast-bg: #0b1116;
  --toast-text: #ffffff;
  --btn-bg: #0866ad;
  --btn-text: #ffffff;
  --logo-1: #a5b4fc;
  --logo-2: #6366f1;
  --logo-3: #4338ca;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; margin: 0 0 .5em; color: var(--text); font-weight: 600; }
h1 { font-size: clamp(36px, 6vw, 72px); letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 4.2vw, 48px); letter-spacing: -.025em; }
h3 { font-size: 18px; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent-strong); color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.grad-text { color: var(--text); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }
.narrow { max-width: 760px; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--glass); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); transition: border-color .25s; }
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.03em; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo { width: 30px; height: 30px; color: var(--text); display: grid; place-items: center; flex: none; }
.logo svg { width: 100%; height: 100%; }
.logo .t { fill: var(--logo-1); } .logo .l { fill: var(--logo-2); } .logo .r { fill: var(--logo-3); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a.link { color: var(--text-2); font-weight: 500; font-size: 14.5px; padding: 7px 12px; border-radius: 4px; white-space: nowrap;
  transition: color .15s, background .15s; }
.nav a.link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a.link.active { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 6px; }
.theme-btn { width: 36px; height: 36px; border-radius: 4px; border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; flex: none; }
.theme-btn:hover { background: var(--surface-2); color: var(--text); }
.theme-btn svg { width: 17px; height: 17px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 600;
  display: grid; place-items: center; overflow: hidden; flex: none; font-size: 13px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 84px; height: 84px; font-size: 30px; }
.account-link { border-radius: 50%; margin-left: 4px; }
.account-link.active .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--text-2); }
@media (max-width: 640px) { .nav a.link.hide-sm { display: none; } .header .wrap { gap: 6px; } }
.nav .short { display: none; }
@media (max-width: 640px) { .nav .long { display: none; } .nav .short { display: inline; } }
@media (max-width: 420px) { .nav a.link { padding: 7px 8px; font-size: 13.5px; } .brand { font-size: 16px; } }

/* Buttons: solid and quiet. The main one is the text colour itself; the accent is kept for links and states. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px var(--font); letter-spacing: -.01em;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease), opacity .15s;
  color: var(--text); background: var(--surface-2); min-height: 44px; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { opacity: .88; }
.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger-hover); }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { min-height: 50px; padding: 13px 22px; font-size: 16px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; }
.arrow-link::after { content: "→"; transition: transform .2s var(--ease); }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translateX(3px); }

/* Cards and forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 720px) { .card { padding: 24px; } }
.card p:last-child { margin-bottom: 0; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 500; font-size: 14px; margin-bottom: 7px; color: var(--text-2); }
.input, select.input { width: 100%; font: 400 16px var(--font); color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 13px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.input option, select.input optgroup { background: var(--surface); color: var(--text); }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-ok { background: var(--success-soft); color: var(--success); }
.alert-info { background: var(--accent-soft); color: var(--accent); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 9px;
  border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.badge.ok { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge.warn { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge.bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.busy .dot { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { display: grid; place-items: center; text-align: center; gap: 12px; padding: 48px 16px; }
.icon-box { width: 40px; height: 40px; border-radius: 8px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 14px; }
.icon-box svg { width: 19px; height: 19px; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }

/* ---------------------------------------------------------------------------------------------------------------
   Home page
   --------------------------------------------------------------------------------------------------------------- */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }

/* The headline comes up line by line. */
.lines { display: block; }
.lines > span { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lines > span > span { display: block; animation: rise 1s var(--ease) both; }
.lines > span:nth-child(2) > span { animation-delay: .09s; }
.lines > span:nth-child(3) > span { animation-delay: .18s; }
.lines .soft { color: var(--muted); }
@keyframes rise { from { transform: translateY(105%); } }
.fade-up { animation: fadeUp .9s var(--ease) both; animation-delay: var(--d, .25s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* The story: the machine stays on screen while the text goes through the five steps; the camera follows. */
.story { display: grid; gap: 0 56px; padding-top: 28px; }
.story .hero-block { padding: 24px 0 40px; }
.story h1 { font-size: clamp(38px, 4.5vw, 66px); }
.story .lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 520px; line-height: 1.6; margin: 22px 0 0; }
.story-stage { position: relative; z-index: 2; }
.stage-sticky { position: sticky; top: 64px; padding: 12px 0; }
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .story .hero-block { grid-column: 1; grid-row: 1; min-height: calc(100vh - 160px); display: flex; flex-direction: column; justify-content: center; padding: 0 0 40px; }
  .story .steps { grid-column: 1; grid-row: 2; }
  .story-stage { grid-column: 2; grid-row: 1 / 3; }
  .stage-sticky { top: 80px; padding: 0; height: calc(100vh - 104px); min-height: 520px; }
  .stage-sticky .factory { height: 100%; }
}
/* Phones: the machine pins under the header and the steps scroll below it. */
@media (max-width: 959px) {
  .story-stage { position: sticky; top: 64px; background: var(--bg); margin: 0 -24px; padding: 8px 24px 12px; }
  .stage-sticky { position: static; padding: 0; }
  .stage-sticky .factory { height: 38vh; min-height: 240px; }
  .steps { padding-top: 24px; }
}
@media (max-width: 640px) { .story-stage { margin: 0 -18px; padding: 8px 18px 12px; } }
.specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.specs div { padding: 16px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.specs div:last-child { border-right: 0; margin-right: 0; }
.specs dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 6px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr 1fr 1fr; } .specs div { padding-right: 10px; margin-right: 10px; } .specs dd { font-size: 17px; } }

.steps { position: relative; padding-left: 28px; }
.steps::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 30vh; width: 1px; background: var(--line); }
.steps .rail { position: absolute; left: 4px; top: 8px; width: 1px; height: 0; background: var(--text); transition: height .6s var(--ease); }
.step { min-height: 72vh; padding: 0 0 40px; opacity: .3; transition: opacity .5s var(--ease); position: relative; }
.step:last-child { min-height: 60vh; }
.step.active { opacity: 1; }
.step::before { content: ""; position: absolute; left: -28px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-strong); transition: background .3s, border-color .3s; }
.step.active::before { background: var(--text); border-color: var(--text); }
.step .no { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.step h3 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; margin-bottom: 14px; }
.step p { color: var(--text-2); font-size: 17px; max-width: 460px; }
.step ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.step li { font-family: var(--mono); font-size: 12px; color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 11px; }
@media (max-width: 959px) { .step { min-height: 52vh; } .step:last-child { min-height: 40vh; } }

/* Ticker of slicers */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; margin-top: 40px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker .track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker .track span { font-size: 22px; font-weight: 500; letter-spacing: -.03em; color: var(--muted); padding: 0 34px; white-space: nowrap; }
.ticker .track span::before { content: "✦"; font-size: 11px; color: var(--line-strong); margin-right: 34px; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 120px 0; }
@media (max-width: 720px) { .section { padding: 80px 0; } }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 760px; }
.section-head h2 { margin: 0; }
.section-head p { font-size: 18px; color: var(--text-2); margin: 0; max-width: 560px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Feature tiles: each shows the thing itself, drawn small. */
.bento { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .wide { grid-column: span 2; } }
.tile { background: var(--bg); padding: 28px; display: grid; grid-template-rows: auto 1fr; gap: 26px; min-height: 340px; position: relative; overflow: hidden; }
.tile > div:last-child { align-self: end; }
.tile h3 { font-size: 20px; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; max-width: 380px; }
.tile .vis { min-height: 170px; display: grid; place-items: center; position: relative; }
.tile svg.draw { width: 100%; height: 170px; overflow: visible; }
.tile .ln { stroke: var(--text-2); stroke-width: 1.4; fill: none; }
.tile .ln-soft { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.tile .fill-soft { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.tile .fill-accent { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; }
.tile .acc { stroke: var(--accent); stroke-width: 1.4; fill: none; }
.tile .dotf { fill: var(--accent); }
.tile text { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
/* Drawn as the tile comes into view. */
.tile .trace { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.8s var(--ease) .2s; }
.tile.in .trace { stroke-dashoffset: 0; }
.tile .grow { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(.4); opacity: 0; transition: transform 1s var(--ease) .3s, opacity .6s .3s; }
.tile.in .grow { transform: none; opacity: 1; }
.tile .piece { transition: transform 1.1s var(--ease) .4s; }
.tile.in .p1 { transform: translate(-6px, -6px); }
.tile.in .p2 { transform: translate(6px, -6px); }
.tile.in .p3 { transform: translate(-6px, 6px); }
.tile.in .p4 { transform: translate(6px, 6px); }
.tile .knob { transition: transform 1.4s var(--ease) .3s; transform: translateX(-90px); }
.tile.in .knob { transform: none; }
.tile .slide { transition: transform .8s var(--ease) .6s; transform: translateX(-16px); }
.tile.in .slide { transform: none; }
.readout { width: 100%; font-family: var(--mono); display: grid; }
.readout div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-strong); }
.readout div > span { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.readout b { font-size: 22px; line-height: 1.3; font-weight: 500; color: var(--text); letter-spacing: -.02em; white-space: nowrap; }
.files { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.files span { font-family: var(--mono); font-size: 14px; padding: 16px 18px 12px; border: 1px solid var(--line-strong); border-radius: 4px 16px 6px 6px;
  background: var(--surface); color: var(--text); transition: transform .7s var(--ease); }
.files span small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.files span:first-child { border-color: var(--accent); }
.tile.in .files span { transform: translateY(-5px); }
.tile.in .files span:nth-child(2) { transition-delay: .08s; }
.tile.in .files span:nth-child(3) { transition-delay: .16s; }
.tile.in .files span:nth-child(4) { transition-delay: .24s; }

/* Tips: a numbered list in two columns */
.tips { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .tips { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.tip { display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.tip .n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 4px; }
.tip b { display: block; font-weight: 600; font-size: 17px; margin-bottom: 4px; letter-spacing: -.015em; }
.tip p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
  .faq-layout .section-head { position: sticky; top: 110px; margin: 0; } }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 500; font-size: 17px; letter-spacing: -.015em; position: relative;
  transition: color .15s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 1.5px; background: var(--text-2);
  transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0; padding: 0 44px 24px 0; color: var(--text-2); animation: fadeUp .4s var(--ease); }

/* Closing call */
.closing { border-top: 1px solid var(--line); padding: 120px 0 40px; }
.closing h2 { font-size: clamp(40px, 7vw, 96px); letter-spacing: -.05em; max-width: 13ch; margin-bottom: 36px; }
.closing p { color: var(--muted); max-width: 520px; font-size: 14px; margin-top: 22px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 36px; margin-top: 64px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer .wrap { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.footer .about { display: grid; gap: 12px; max-width: 360px; }
.footer .about p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
@media (min-width: 720px) { .footer nav { justify-content: flex-end; } }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-family: var(--mono); font-size: 12px; }

/* ---------------------------------------------------------------------------------------------------------------
   The 3D machine (assets/factory.js)
   --------------------------------------------------------------------------------------------------------------- */
.factory { position: relative; width: 100%; height: 440px; border-radius: 8px; overflow: hidden; isolation: isolate;
  background: var(--stage-bg); border: 1px solid var(--line); }
.factory::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .6;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(70% 65% at 50% 45%, #000, transparent 85%); -webkit-mask-image: radial-gradient(70% 65% at 50% 45%, #000, transparent 85%); }
.factory .corner { position: absolute; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); pointer-events: none;
  transition: opacity .3s; }
.factory .corner.tl { left: 16px; top: 14px; }
.factory .corner.tr { right: 16px; top: 14px; text-align: right; }
.factory-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .6s; }
.factory-fallback svg { width: 38%; opacity: .9; }
.factory.ready .factory-fallback { opacity: 0; pointer-events: none; }
.factory.failed .factory-scene, .factory.failed .factory-modes { display: none; }
.factory-scene { position: absolute; inset: 0; }
.factory-scene canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.factory-loading { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center;
  font: 12px var(--mono); color: var(--muted); }
.factory-loading .spinner { width: 14px; height: 14px; border-width: 1.5px; }
.factory-modes { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px;
  max-width: calc(100% - 20px); overflow-x: auto; scrollbar-width: none; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.factory-modes button { border: 0; background: none; color: var(--muted); font: 500 13px var(--font); padding: 7px 11px; border-radius: 4px;
  display: flex; gap: 7px; align-items: center; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.factory-modes button svg { width: 14px; height: 14px; flex: none; }
.factory-modes button:hover { color: var(--text); }
.factory-modes button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
@media (max-width: 520px) { .factory-modes button span { display: none; } .factory-modes button { padding: 8px 11px; } }
.factory-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.factory-label { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .3s; will-change: transform; min-width: 132px; }
.factory-label.visible { opacity: 1; }
.factory-label .stem { height: 22px; width: 1px; margin-left: 12px; background: linear-gradient(transparent, var(--text-2)); }
.factory-label .card-in { background: var(--glass); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 11px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.factory-label .title { font-weight: 600; font-size: 13px; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.factory-label .title span, .factory-tip strong span { font-family: var(--mono); color: var(--muted); font-size: 11px; font-weight: 400; }
.factory-label .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.factory-tip { position: absolute; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .15s; max-width: 240px;
  background: var(--glass); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 13px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.factory-tip.visible { opacity: 1; }
.factory-tip strong { font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.factory-tip p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.factory-journey { position: absolute; left: 14px; right: 14px; top: 40px; display: flex; gap: 12px; align-items: center; padding: 9px 12px;
  border-radius: 8px; background: var(--glass); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(-6px); transition: .35s; pointer-events: none; }
.factory-journey.visible { opacity: 1; transform: none; }
.factory-journey .journey-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--btn-text); background: var(--btn-bg); }
.factory-journey strong { display: block; font-size: 13px; font-weight: 600; }
.factory-journey small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.factory-journey .track { flex: 1; height: 2px; background: var(--line-strong); min-width: 40px; }
.factory-journey .track i { display: block; height: 100%; width: 0; background: var(--text); }

/* ---------------------------------------------------------------------------------------------------------------
   App pages
   --------------------------------------------------------------------------------------------------------------- */
.auth { max-width: 420px; margin: 48px auto; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; margin-bottom: 20px; }
.tabs button { font: 500 15px var(--font); border: 0; background: transparent; border-radius: 4px; padding: 9px; cursor: pointer; color: var(--muted); transition: background .15s, color .15s; }
.tabs button.on { background: var(--surface-3); color: var(--text); }
#google-btn { display: flex; justify-content: center; min-height: 44px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 40px 0 24px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 0; }
.stats { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stat { padding: 8px 14px; font-size: 13px; color: var(--muted); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { color: var(--text); font-size: 15px; font-weight: 600; margin-right: 5px; font-family: var(--mono); }
.scan-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (min-width: 720px) { .scan-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; } }
.scan-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; transition: border-color .2s, transform .25s var(--ease); display: flex; flex-direction: column; }
.scan-card:hover { text-decoration: none; border-color: var(--line-strong); transform: translateY(-2px); }
.scan-card .thumb { aspect-ratio: 1; background: var(--viewer-bg); display: grid; place-items: center; color: var(--line-strong); overflow: hidden; }
.scan-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.scan-card:hover .thumb img { transform: scale(1.03); }
.scan-card .thumb svg { width: 40px; height: 40px; }
.scan-card .meta { padding: 12px 14px 14px; display: grid; gap: 6px; border-top: 1px solid var(--line); }
.scan-card .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.scan-card .note { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-card .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); }
.scan-card > .fav-btn { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--glass); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn.on { color: #f5b301; }
.fav-btn.on svg { fill: currentColor; }
.part-tag { min-width: 26px; height: 26px; padding: 0 8px; border: 0; border-radius: 999px; background: var(--tag-bg); color: var(--tag-text);
  font: 500 12px var(--mono); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); pointer-events: none; }
.unit-input.eur::after { content: "€"; }
.price-row { margin-bottom: 10px; }
textarea.input.notes { resize: vertical; min-height: 84px; line-height: 1.5; }

.detail { display: grid; gap: 20px; padding: 8px 0 20px; }
@media (min-width: 960px) { .detail { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.viewer { position: relative; background: var(--viewer-bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; max-height: 70vh; width: 100%; }
@media (min-width: 960px) { .viewer { position: sticky; top: 84px; aspect-ratio: auto; height: min(660px, calc(100vh - 108px)); max-height: none; } }
.viewer model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: var(--viewer-bg); }
.viewer .overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); background: var(--viewer-bg); }
.viewer .hint { position: absolute; left: 12px; bottom: 12px; font: 11px var(--mono); color: var(--muted); background: var(--glass);
  border: 1px solid var(--line); padding: 6px 10px; border-radius: 4px; pointer-events: none; }
.title-row { display: flex; gap: 8px; align-items: center; }
.title-row h1 { font-size: clamp(28px, 4vw, 38px); margin: 0; overflow-wrap: anywhere; cursor: text; }
.panel { display: grid; gap: 14px; }
.panel h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.panel h3 svg { width: 18px; height: 18px; color: var(--muted); }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.dim { padding: 11px 10px; text-align: center; }
.dim + .dim { border-left: 1px solid var(--line); }
.dim small { display: block; font: 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.dim b { font: 500 18px var(--mono); letter-spacing: -.02em; }
.size-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; }
input[type=range] { width: 100%; accent-color: var(--text); height: 28px; }
.unit-input { position: relative; }
.unit-input .input { padding-right: 44px; font-family: var(--mono); }
.unit-input::after { content: "мм"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.fit { border-radius: var(--radius-sm); padding: 11px 13px; font-weight: 500; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.fit svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.fit.ok { background: var(--success-soft); color: var(--success); }
.fit.bad { background: var(--danger-soft); color: var(--danger); }
.fit.warn { background: var(--warning-soft); color: var(--warning); }
.fit.wait { background: var(--surface-2); color: var(--muted); align-items: center; }
.fit .spinner { width: 16px; height: 16px; border-width: 1.5px; flex: none; }
.plate { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.plate figure { margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.plate figcaption { font: 11px var(--mono); color: var(--muted); margin-top: 6px; }
.plate svg { width: 100%; height: auto; display: block; }
.custom-bed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.custom-bed .input { min-height: 42px; padding: 8px 10px; }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.format-btn { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; text-align: left; white-space: normal; background: var(--surface-2); border-color: var(--line); }
.format-btn:hover { border-color: var(--line-strong); }
.format-btn b { font: 500 16px var(--mono); }
.format-btn span { font-size: 12px; color: var(--muted); }
.format-btn.rec { border-color: var(--accent-line); background: var(--accent-soft); }
.format-btn .best { order: -1; font: 500 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-box { display: flex; gap: 8px; margin-top: 10px; }
.share-box .input { min-height: 42px; font-size: 14px; font-family: var(--mono); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; text-align: right; font-family: var(--mono); }
pre.log { background: #050506; color: #d4d4d8; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; font: 12px var(--mono); overflow: auto;
  max-height: 320px; white-space: pre-wrap; word-break: break-word; }
.progress { height: 3px; border-radius: 99px; background: var(--line-strong); overflow: hidden; margin: 14px 0; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s ease; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tip-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 12px; }
.tip-line svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-weight: 500; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-strong); flex: none; cursor: pointer; }

.skeleton { background: linear-gradient(90deg, var(--skeleton-1) 25%, var(--skeleton-2) 50%, var(--skeleton-1) 75%); background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite; border-radius: 4px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.scan-card.ghost { pointer-events: none; }
.scan-card.ghost .thumb { background: none; }
.scan-card.ghost .thumb .skeleton { width: 100%; height: 100%; border-radius: 0; }

.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.search { position: relative; flex: 1 1 220px; max-width: 360px; }
.search .input { padding-left: 40px; min-height: 42px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { font: 500 13px var(--font); border: 1px solid var(--line-strong); background: transparent; color: var(--text-2);
  padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip-btn:hover { color: var(--text); background: var(--surface-2); }
.chip-btn.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-btn .n { opacity: .6; margin-left: 4px; font-family: var(--mono); font-size: 12px; }
select.input.sort { min-height: 42px; width: auto; padding: 7px 12px; font-size: 14px; }

.viewer-tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.tool { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.tool:hover { color: var(--text); border-color: var(--line-strong); }
.tool.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.tool svg { width: 17px; height: 17px; }
.viewer:fullscreen { border-radius: 0; max-height: none; height: 100%; aspect-ratio: auto; }
.load-bar { width: min(220px, 70%); height: 2px; border-radius: 99px; background: var(--line-strong); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: var(--text); transition: width .2s ease; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 4px; font-weight: 500; }
.skip:focus { top: 12px; text-decoration: none; }
main:focus { outline: none; }

.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  width: 42px; height: 38px; border-radius: 4px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.pw button:hover { color: var(--text); background: var(--surface-3); }
.pw button svg { width: 19px; height: 19px; }

dialog { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px; width: min(440px, calc(100% - 32px));
  box-shadow: var(--shadow-lg); color: var(--text); background: var(--surface); }
dialog::backdrop { background: var(--overlay); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog .row-actions { justify-content: flex-end; margin-top: 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--toast-bg); color: var(--toast-text);
  padding: 11px 16px; border-radius: 8px; font-weight: 500; font-size: 14px; opacity: 0; pointer-events: none;
  transition: all .25s var(--ease); z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.legal { padding-top: 48px; padding-bottom: 32px; }
.legal h1 { font-size: clamp(32px, 5vw, 52px); }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal p, .legal li { color: var(--text-2); }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.table-scroll { overflow-x: auto; }

/* Scroll-in: parts marked .reveal come up once they are in view (assets/app.js adds .in). Without JavaScript they
   are simply there. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker .track { animation: none; }
}
@media (max-width: 520px) { .factory .corner.tr { display: none; } }

/* App pages: the same calm entrance as the home page. Panels and cards come up one after another. */
.page-head, .legal > h1, .legal > h1 + .muted { animation: fadeUp .8s var(--ease) both; }
.scan-grid.enter > *, .panel > *, .viewer { animation: fadeUp .7s var(--ease) both; }
.scan-grid.enter > :nth-child(2), .panel > :nth-child(2) { animation-delay: .05s; }
.scan-grid.enter > :nth-child(3), .panel > :nth-child(3) { animation-delay: .1s; }
.scan-grid.enter > :nth-child(4), .panel > :nth-child(4) { animation-delay: .15s; }
.scan-grid.enter > :nth-child(5), .panel > :nth-child(5) { animation-delay: .2s; }
.scan-grid.enter > :nth-child(6), .panel > :nth-child(6) { animation-delay: .25s; }
.scan-grid.enter > :nth-child(n+7), .panel > :nth-child(n+7) { animation-delay: .3s; }

/* Sign-in: a statement beside the form on wide screens */
.auth-split { display: grid; gap: 40px; padding: 32px 0 24px; }
.auth-side { display: none; }
@media (min-width: 960px) {
  .auth-split { grid-template-columns: 1fr 440px; gap: 80px; align-items: center; min-height: calc(100vh - 200px); }
  .auth-side { display: block; }
  .auth-split .auth { margin: 0; }
}
.auth-side h2 { font-size: clamp(36px, 4vw, 56px); max-width: 14ch; margin-bottom: 36px; }
.numbered { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 520px; }
.numbered li { display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.numbered span { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 4px; }

/* Legal pages: editorial */
.legal > h1 + .muted { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 36px; }
.legal h2 { border-top: 1px solid var(--line); padding-top: 28px; }

/* Scan page: title, a summary strip, then tabs of quiet sections */
.meta-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; font: 12px var(--mono); color: var(--muted); letter-spacing: .02em; }
.summary { display: grid; grid-template-columns: 1.25fr 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.summary > div { padding: 12px 14px; min-width: 0; }
.summary > div + div { border-left: 1px solid var(--line); }
.summary small { display: block; font: 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.summary b { display: block; font: 500 15px var(--mono); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary b.ok { color: var(--success); }
.summary b.bad { color: var(--danger); }
@media (max-width: 420px) { .summary b { font-size: 13px; } .summary > div { padding: 10px; } }
.tabs-wrap { display: grid; gap: 4px; }
.tab-bar { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); position: sticky; top: 72px; z-index: 3; }
.tab-bar button { flex: 1; border: 0; background: none; color: var(--muted); font: 500 14px var(--font); padding: 9px 8px; border-radius: 4px; cursor: pointer;
  transition: background .15s, color .15s; white-space: nowrap; }
.tab-bar button:hover { color: var(--text); }
.tab-bar button[aria-selected="true"] { background: var(--surface-3); color: var(--text); }
.pane { animation: fadeUp .45s var(--ease) both; }
.sec { padding: 22px 2px; border-top: 1px solid var(--line); }
.pane > .sec:first-child, .pane > div > .sec:first-child { border-top: 0; padding-top: 16px; }
.sec-label { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sec .dims { margin: 0 0 12px; }
.sec .presets { margin-top: 12px; }
.hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.row-split { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.unit-input.price { width: 120px; }
.unit-input.price .input { min-height: 40px; padding: 7px 34px 7px 12px; }
.sec .plate { margin-top: 12px; }
.sec .fit { margin-top: 0; }
.panel .card .sec:first-child { border-top: 0; padding-top: 0; }

/* Account: a profile head with numbers, then settings as rows */
.profile { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 8px 0 28px; }
.profile h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 4px; overflow-wrap: anywhere; }
.profile .mono { font-size: 13px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.stat-grid > div { padding: 18px 20px; }
.stat-grid > div + div { border-left: 1px solid var(--line); }
.stat-grid small { display: block; font: 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.stat-grid b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.04em; margin-top: 6px; }
.settings { border-top: 1px solid var(--line); }
.setting { display: grid; gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .setting { grid-template-columns: 1fr 1.35fr; gap: 40px; align-items: start; } }
.setting h3 { font-size: 16px; margin: 0 0 4px; }
.setting p { margin: 0; color: var(--muted); font-size: 14px; }
.setting.danger h3 { color: var(--danger); }
.inline-form { display: flex; gap: 10px; }
.inline-form .input { flex: 1; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.seg button { border: 0; background: none; color: var(--muted); font: 500 14px var(--font); padding: 7px 14px; border-radius: 4px; cursor: pointer; display: flex; gap: 7px; align-items: center; }
.seg button svg { width: 15px; height: 15px; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.photo-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.photo-row .avatar { width: 56px; height: 56px; font-size: 20px; }
@media (max-width: 520px) {
  .summary { grid-template-columns: 1fr 1fr; }
  .summary > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .summary > div:nth-child(2) { border-left: 0; }
}

/* Community (community.html, post.html) */
.avatar.sm { width: 22px; height: 22px; font-size: 10px; flex: none; }
.author { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--text-2); }
.author > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-card .row { flex-wrap: nowrap; }
.post-card .meta { grid-template-columns: minmax(0, 1fr); }
.post-card .author { flex: 1 1 0; }
@media (max-width: 520px) { .post-card .meta { padding: 10px 10px 12px; } .post-card .author .avatar { display: none; } .like-btn { padding: 3px 7px; } }
.post-card .size { font: 11.5px var(--mono); color: var(--muted); letter-spacing: .02em; }
.like-btn { display: inline-flex; align-items: center; gap: 5px; flex: none; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: 500 12.5px var(--mono); padding: 4px 9px; border-radius: 999px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.like-btn:hover { color: var(--text); border-color: var(--line-strong); }
.like-btn svg, .like-big svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.like-btn.on, .like-big.on { color: #f43f5e; border-color: rgba(244, 63, 94, .35); background: rgba(244, 63, 94, .08); }
.like-btn.on svg, .like-big.on svg { fill: currentColor; animation: pop .35s var(--ease); }
.like-big .n { font-family: var(--mono); opacity: .7; margin-left: 2px; }
@keyframes pop { 40% { transform: scale(1.3); } }
.mine-tag { position: absolute; top: 10px; left: 10px; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; background: var(--glass); border: 1px solid var(--line); color: var(--text-2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.meta-line .author { color: var(--text-2); }
.formats.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .formats.three { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .like-btn.on svg, .like-big.on svg { animation: none; } }

/* The app's orbit mark in the header and footer (src/components/Logo.tsx), in the text colour. */
.logo.orbit { width: 26px; height: 26px; }
.brand { letter-spacing: -.02em; }
@media (max-width: 520px) { .nav .hide-xs { display: none; } }

/* --- Home (index.html): the orbit motif of the app, deck and video; cyan = AI model, amber = engineering mode. --- */
.home .section { padding: 96px 0; }
.home .section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; min-height: min(calc(100vh - 64px), 860px); padding-top: 24px; padding-bottom: 48px; }
.home main { overflow-x: clip; }
.hero h1 { font-size: clamp(56px, 9vw, 112px); letter-spacing: -.04em; margin: 18px 0 6px; }
.hero .motto { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 18px; }
.hero .motto b { color: var(--accent); font-weight: 600; }
.hero .lead { font-size: 18px; color: var(--text-2); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 40px 0 0; border-top: 1px solid var(--line); padding-top: 20px; }
.hero-stats > div { padding: 0 22px; border-left: 1px solid var(--line); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hero-stats dd { margin: 6px 0 0; font-family: var(--mono); font-weight: 500; font-size: clamp(16px, 1.8vw, 21px); color: var(--text); white-space: nowrap; }
@media (max-width: 520px) { .hero-stats { grid-template-columns: 1fr; gap: 14px; } .hero-stats > div { padding: 0; border: 0; } }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 640px; width: 100%; justify-self: center; }
.hero-art .glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .2; pointer-events: none; }
.hero-art .glow.cyan { inset: 12% 14% 22% 14%; background: var(--accent); }
.hero-art .glow.amber { width: 34%; height: 30%; right: -2%; bottom: 6%; background: var(--signal); opacity: .22; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
  .hero-art { order: -1; max-width: 460px; }
}

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr; } }
.mode { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.mode-art { position: relative; height: 300px; background: var(--viewer-bg); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.mode.cyan { --mode: var(--accent); }
.mode.amber { --mode: var(--signal); }
.mode-body { padding: 24px; display: grid; gap: 12px; align-content: start; flex: 1; }
.mode-body h3 { font-size: 24px; margin: 0; }
.mode-body p { margin: 0; }
.mode-kicker { color: var(--mode); }
.pipe { list-style: none; margin: 6px 0 8px; padding: 0; counter-reset: p; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pipe li { counter-increment: p; display: grid; grid-template-columns: 34px 130px 1fr; align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pipe li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--mode); }
.pipe li b { font-weight: 600; }
.pipe li span { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
@media (max-width: 520px) { .pipe li { grid-template-columns: 30px 1fr; } .pipe li span { grid-column: 2; } }
.mode .btn { justify-self: start; margin-top: 6px; }
.amber-btn { background: var(--signal); color: #1a1000; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg); padding: 26px; display: grid; gap: 8px; align-content: start; }
.home .section.alt .feature { background: var(--surface); }
.feature svg { width: 24px; height: 24px; color: var(--accent); }
.feature h3 { margin: 6px 0 0; font-size: 17px; }
.feature p { margin: 0; font-size: 14.5px; }

.download-card { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 56px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(60% 80% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface); }
.download-card h2 { margin: 10px 0 0; }
.download-card p { max-width: 520px; margin: 0; }
.logo.orbit.big { width: 56px; height: 56px; color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }
.noanim *, .noanim *::before, .noanim *::after { transition: none !important; animation: none !important; }

/* Scans: the head's actions, and the mode of each model on its card (cyan AI, amber CAD, as in the app). */
.head-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.scan-card { position: relative; }
.mode-tag { position: absolute; top: 10px; left: 10px; z-index: 2; font: 500 11px/1 var(--mono); letter-spacing: .04em; padding: 5px 7px;
  border-radius: var(--radius-sm); border: 1px solid; background: var(--glass); }
.mode-tag.ai { color: var(--accent); border-color: var(--accent-line); }
.mode-tag.cad { color: var(--signal); border-color: color-mix(in srgb, var(--signal) 45%, transparent); }

/* --- Engineering mode (engineer.html): amber, as in the app. --- */
.kicker.amber { color: var(--signal); }
.kicker.amber i { background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 18%, transparent); }
.eng { padding-bottom: 72px; }
.eng-head { padding: 36px 0 20px; max-width: 760px; }
.eng-head h1 { font-size: clamp(28px, 4.4vw, 42px); margin: 14px 0 10px; }
.eng-head p { margin: 0; }
.eng-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .eng-grid { grid-template-columns: 1fr; } }
.amber-pipe li { grid-template-columns: 34px 1fr; }
.amber-pipe li::before { color: var(--signal); }
.amber-pipe li span { grid-column: 2; font-family: var(--font); font-size: 14px; }
.pipe.amber-pipe { --mode: var(--signal); }
.eng-choose { display: grid; gap: 12px; }
.eng-choice { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; padding: 18px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; transition: border-color .15s, background .15s; }
.eng-choice:hover { border-color: var(--signal); }
.eng-choice.primary { border-color: color-mix(in srgb, var(--signal) 60%, transparent); background: color-mix(in srgb, var(--signal) 8%, var(--surface)); }
.eng-choice svg { width: 26px; height: 26px; color: var(--signal); flex: none; margin-top: 2px; }
.eng-choice b { display: block; font-size: 17px; font-weight: 600; }
.eng-choice small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.45; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.shot { display: grid; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  text-align: left; padding: 0; color: var(--text); font: inherit; transition: border-color .15s; }
.shot:hover { border-color: var(--signal); }
.shot.has { border-style: solid; border-color: var(--line); }
.shot-pic { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.shot-pic img { width: 100%; height: 100%; object-fit: cover; }
.shot-pic .badge { position: absolute; left: 8px; bottom: 8px; background: var(--glass); }
.shot-empty { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.shot-empty svg { width: 26px; height: 26px; color: var(--signal); }
.shot-text { display: grid; gap: 4px; padding: 12px 14px 14px; }
.shot-text b { font-weight: 600; font-size: 15px; }
.eng-wait { padding: 72px 24px; margin-top: 36px; }
.eng-wait h3 { margin: 16px 0 6px; }
.eng-progress { height: 3px; background: var(--surface-3); margin-bottom: 18px; overflow: hidden; border-radius: 2px; }
.eng-progress i { display: block; height: 100%; background: var(--signal); }
.measure { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .measure { grid-template-columns: 1fr; } }
.q-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.mm-form { display: grid; gap: 12px; }
.mm-line { display: flex; align-items: center; gap: 12px; }
.mm-input { font: 500 30px var(--mono); text-align: right; color: var(--signal); min-height: 64px; }
.tap-wrap { position: relative; margin: 14px 0; }
.tap-wrap.busy::after { content: "Изрязвам предмета…"; position: absolute; inset: 0; display: grid; place-items: center; background: var(--glass); color: var(--text); font-weight: 500; border-radius: var(--radius); }
.tap-img { width: 100%; max-height: 72vh; object-fit: contain; cursor: crosshair; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.eng-review { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .eng-review { grid-template-columns: 1fr; } }
.eng-preview { height: 340px; border-radius: var(--radius); border: 1px solid var(--line); margin: 8px 0; }
.eng-preview model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.eng-items { padding: 0 16px; margin: 8px 0 12px; }
.eng-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.eng-item:last-child { border-bottom: 0; }
.eng-item svg { width: 18px; height: 18px; color: var(--signal); flex: none; }
.eng-item .chip-btn svg { width: 15px; height: 15px; color: inherit; }
.eng-item > span { flex: 1; }
.chip-btn svg { width: 15px; height: 15px; }
.eng .chip-btn.on { border-color: var(--signal); color: var(--signal); background: color-mix(in srgb, var(--signal) 10%, transparent); }
.seg button.on { background: var(--surface-3); color: var(--text); }
.eng-add { display: grid; gap: 10px; margin-top: 12px; }
.eng-views { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 12px 0 20px; }
.eng-view { display: grid; gap: 10px; padding: 12px; }
.eng-view-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eng-view .tap-img { max-height: 340px; }
body.eng-busy { cursor: progress; }
body.eng-busy main { opacity: .7; pointer-events: none; }

/* --- Admin (admin.html): the app's "Администриране" screens. --- */
.badge.info { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.busy { color: var(--warning); }
.adm { padding-bottom: 72px; }
.adm-tabs { margin-bottom: 24px; }
.adm-tabs button svg { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; }
.adm-content { display: grid; gap: 14px; }
.adm-content > .sec-label { margin-top: 12px; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.adm-tile { display: grid; gap: 6px; padding: 16px; min-height: 92px; align-content: space-between; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .15s; }
a.adm-tile:hover { border-color: var(--line-strong); text-decoration: none; }
.adm-tile b { font: 500 28px var(--mono); }
.adm-tile span { font-size: 13px; color: var(--muted); }
.adm-tile.accent b { color: var(--accent); } .adm-tile.ok b { color: var(--success); }
.adm-tile.warn b { color: var(--warning); } .adm-tile.bad b { color: var(--danger); }
.adm-kv { padding: 0 16px; }
.adm-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.adm-row:last-child { border-bottom: 0; }
.adm-row > span { flex: 1; color: var(--text-2); }
.adm-row svg { width: 15px; height: 15px; transform: rotate(180deg); color: var(--muted); }
a.adm-row:hover { text-decoration: none; color: var(--accent); }
.adm-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.adm-tools .search { flex: 1; min-width: 240px; }
.adm-list { padding: 0 16px; }
.adm-user { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--text); }
a.adm-user { border-bottom: 1px solid var(--line); }
a.adm-user:hover { text-decoration: none; }
a.adm-user:hover b { color: var(--accent); }
.adm-list > a.adm-user:last-child, .adm-scan:last-child { border-bottom: 0; }
.adm-user.dim b { color: var(--muted); }
.adm-user .grow { flex: 1; display: grid; gap: 2px; min-width: 0; }
.adm-user .grow > * { overflow: hidden; text-overflow: ellipsis; }
.adm-right { display: grid; justify-items: end; gap: 2px; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.adm-avatar { flex: none; font-size: 14px; }
.adm-scan { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.adm-scan pre.log { max-height: 320px; margin: 0 0 12px; }
.adm-thumb { width: 44px; height: 44px; flex: none; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.adm-thumb.big { width: 64px; height: 64px; }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-thumb svg { width: 20px; height: 20px; color: var(--muted); }
.adm-person { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.adm-person h2 { font-size: 28px; margin: 0 0 4px; }
.adm-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.adm-report { display: grid; gap: 8px; }
.adm-report ul { margin: 0; padding-left: 18px; }
.adm-mail { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.adm-mail p { margin: 4px 0 0; }

/* Account: level and badges, as in the app's profile (three equal columns, cards of one height). */
.level-card { display: grid; gap: 12px; margin-top: 18px; }
.level-head { display: flex; align-items: baseline; gap: 10px; }
.level-head span:nth-child(2) { flex: 1; color: var(--text-2); }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 720px) { .badge-grid { grid-template-columns: repeat(6, 1fr); } }
.badge-card { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 14px 6px; text-align: center; min-height: 128px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.badge-card .hex { width: 42px; height: 42px; display: grid; place-items: center; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: var(--surface-3); color: var(--muted); }
.badge-card.on .hex { background: var(--accent-soft); color: var(--accent); }
.badge-card .hex svg { width: 18px; height: 18px; }
.badge-card b { font-size: 12.5px; font-weight: 500; line-height: 16px; height: 32px; display: grid; place-items: center; }
.badge-card:not(.on) b { color: var(--muted); }
.badge-card small { font: 10.5px var(--mono); color: var(--muted); }

/* Avatars as in the app (src/components/Avatar.tsx): a square with a 1 px frame, initials in mono; 8 px corners from
   48 px up, 4 px below. */
.avatar { border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text-2);
  font-family: var(--mono); font-weight: 500; overflow: hidden; }
.avatar.lg, .photo-row .avatar, .adm-person .avatar, .profile .avatar { border-radius: var(--radius); }
.adm-content > a.btn { justify-self: start; }

/* Home art: drawn in code (no real objects), in the theme's colours. */
.art-hero { position: relative; width: 100%; height: 100%; overflow: visible; }
.art-hero .orbit { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 1 9; stroke-linecap: round; }
.art-hero .cam path { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.art-hero .shadow { fill: var(--accent); opacity: .08; }
.art-hero .globe-fill { fill: var(--surface); opacity: .55; }
.art-hero .wire { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: .7; }
.art-hero .meridian { opacity: .55; }
.art-hero .rim { stroke-width: 2; opacity: .95; }
.art-hero .sat { fill: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); }
.mode-art svg { position: relative; width: 100%; height: 100%; }
.art-ai .mesh line { stroke: var(--accent); stroke-width: .8; opacity: .55; }
.art-ai .pts circle { fill: var(--accent); }
.art-ai .split { stroke: var(--line-strong); stroke-dasharray: 3 5; }
.art-ai .lbl, .art-cad .lbl { font: 500 11px var(--mono); fill: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.art-cad .face { stroke: var(--text-2); stroke-width: 1.3; stroke-linejoin: round; }
.art-cad .face.top { fill: var(--surface-3); }
.art-cad .face.front { fill: var(--surface-2); }
.art-cad .face.side, .art-cad .face.side2 { fill: var(--surface); }
.art-cad .hole { fill: var(--bg); stroke: var(--text-2); stroke-width: 1.3; }
.art-cad .slot { stroke: var(--bg); stroke-width: 9; stroke-linecap: round; }
.art-cad .dim line { stroke: var(--signal); stroke-width: 1.1; }
.art-cad .dim .arrow { stroke-width: 1.4; }
.art-cad .dim text { font: 500 12px var(--mono); fill: var(--signal); }
