/* maximiliankraus.eu · Kundenbereich
   Same visual language as the live site (Variante B "Papier"): light, editorial, serif headlines,
   deep green accent, automatic dark mode. System fonts only, no external requests. */

:root {
  --bg: #f6f3ec; --surface: #fffdf8; --surface-2: #fbf8f1; --sunken: #efebe2;
  --line: #e0d9cb; --line-strong: #c4bba9;
  --text: #2a2e33; --text-strong: #121518; --muted: #5c636c; --subtle: #868b91;
  --accent: #1d5c4d; --accent-strong: #154438; --accent-ink: #ffffff; --accent-soft: rgba(29, 92, 77, 0.08);
  --danger: #a33a2b; --danger-soft: rgba(163, 58, 43, 0.08);
  --warn: #9a640f; --warn-soft: rgba(176, 106, 18, 0.1);
  --ok: #1d6b4a; --ok-soft: rgba(29, 107, 74, 0.09);
  --info: #2b5f96; --info-soft: rgba(43, 95, 150, 0.08);

  --a-green: #1d5c4d; --a-ink: #23272d; --a-amber: #b9701a; --a-rose: #b0425a; --a-teal: #127a7a; --a-violet: #6b4b9a; --a-blue: #2b63a6;

  --radius: 6px; --radius-lg: 12px;
  --max: 1160px; --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(18, 21, 24, 0.04), 0 8px 24px -12px rgba(18, 21, 24, 0.12);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Heading", "Sitka Text", Cambria, Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141619; --surface: #1b1e22; --surface-2: #191c20; --sunken: #111316;
    --line: #2c3036; --line-strong: #434952;
    --text: #d9dbd7; --text-strong: #f4f2ec; --muted: #a3a8ad; --subtle: #7c8288;
    --accent: #6fc3a8; --accent-strong: #8fd6be; --accent-ink: #0d1f1a; --accent-soft: rgba(111, 195, 168, 0.1);
    --danger: #ef8a7a; --danger-soft: rgba(239, 138, 122, 0.1);
    --warn: #e0a050; --warn-soft: rgba(224, 160, 80, 0.12);
    --ok: #6fc3a8; --ok-soft: rgba(111, 195, 168, 0.1);
    --info: #7aa9e0; --info-soft: rgba(122, 169, 224, 0.1);
    --a-green: #6fc3a8; --a-ink: #c9ccd1; --a-amber: #e0a050; --a-rose: #e48aa0; --a-teal: #5cc6c6; --a-violet: #b897d6; --a-blue: #7aa9e0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141619; --surface: #1b1e22; --surface-2: #191c20; --sunken: #111316;
  --line: #2c3036; --line-strong: #434952;
  --text: #d9dbd7; --text-strong: #f4f2ec; --muted: #a3a8ad; --subtle: #7c8288;
  --accent: #6fc3a8; --accent-strong: #8fd6be; --accent-ink: #0d1f1a; --accent-soft: rgba(111, 195, 168, 0.1);
  --danger: #ef8a7a; --danger-soft: rgba(239, 138, 122, 0.1);
  --warn: #e0a050; --warn-soft: rgba(224, 160, 80, 0.12);
  --ok: #6fc3a8; --ok-soft: rgba(111, 195, 168, 0.1);
  --info: #7aa9e0; --info-soft: rgba(122, 169, 224, 0.1);
  --a-green: #6fc3a8; --a-ink: #c9ccd1; --a-amber: #e0a050; --a-rose: #e48aa0; --a-teal: #5cc6c6; --a-violet: #b897d6; --a-blue: #7aa9e0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--sans); font-size: 16.5px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
main { flex: 1; padding-top: 32px; padding-bottom: 72px; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--serif); color: var(--text-strong); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--sunken); padding: 0.1em 0.35em; border-radius: 4px; }
pre { font-family: var(--mono); font-size: 0.85rem; background: var(--sunken); padding: 12px; border-radius: var(--radius); overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.visually-hidden { position: absolute !important; left: 0 !important; top: 0 !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.icon { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.icon-sm { width: 16px; height: 16px; vertical-align: -3px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: 520px; }

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--text-strong); font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--text-strong); }
.brand-mark span { color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; color: var(--text-strong); }
.brand-sub { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav-button { font: inherit; font-size: 0.94rem; color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 999px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav-button:hover { color: var(--text-strong); background: var(--sunken); }
.nav a.is-active { color: var(--text-strong); background: var(--accent-soft); }
.inline-form { display: inline; margin: 0; }
.header-end { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--text-strong); border-color: var(--line-strong); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.site-footer { border-top: 1px solid var(--line); padding: 20px 0; font-size: 0.84rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- buttons & forms ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2; padding: 10px 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.button:hover { border-color: var(--text-strong); color: var(--text-strong); }
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.button-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.button-danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.button-small { padding: 6px 11px; font-size: 0.84rem; }
.button-block { width: 100%; }
.button.is-disabled { opacity: 0.45; pointer-events: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.form { display: grid; gap: 16px; margin: 0 0 8px; }
.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-inline input { flex: 1 1 160px; }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 0.9rem; font-weight: 600; color: var(--text-strong); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text-strong); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.help { color: var(--muted); font-size: 0.84rem; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 0.8rem; color: var(--muted); background: none; border: 0; padding: 6px 8px; cursor: pointer; border-radius: 4px; }
.pw-toggle:hover { color: var(--text-strong); background: var(--sunken); }
.code-input { font-family: var(--mono) !important; font-size: 1.6rem !important; letter-spacing: 0.25em; text-align: center; padding: 12px !important; }
.code-input-small { font-size: 1.05rem !important; max-width: 160px; letter-spacing: 0.15em; }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; cursor: pointer; margin: 4px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.checks legend { margin-bottom: 4px; }
.meter { display: block; height: 4px; border-radius: 2px; background: var(--sunken); overflow: hidden; }
.meter-bar { display: block; height: 100%; width: 0; background: var(--danger); transition: width 0.2s, background 0.2s; }
.meter-bar[data-level="2"] { background: var(--warn); }
.meter-bar[data-level="3"], .meter-bar[data-level="4"] { background: var(--ok); }

.alert { border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px; font-size: 0.95rem; border: 1px solid transparent; }
.alert p:last-child { margin-bottom: 0; }
.alert-error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.alert-success { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert-warning { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.flash .secret code { word-break: break-all; }

.badge { display: inline-flex; align-items: center; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 999px; background: var(--sunken); color: var(--muted); white-space: nowrap; }
.badge-live, .badge-active, .badge-sent { background: var(--ok-soft); color: var(--ok); }
.badge-prototype, .badge-invited, .badge-queued { background: var(--info-soft); color: var(--info); }
.badge-in-progress, .badge-held { background: var(--warn-soft); color: var(--warn); }
.badge-idea { background: var(--sunken); color: var(--muted); }
.badge-disabled, .badge-failed, .badge-private { background: var(--danger-soft); color: var(--danger); }
.badge-app { background: var(--accent-soft); color: var(--accent); }

details.hint { margin: 16px 0 0; font-size: 0.93rem; }
details.hint > summary { cursor: pointer; color: var(--muted); }
details.hint > summary:hover { color: var(--text-strong); }
details.hint[open] > summary { margin-bottom: 10px; }

/* ---------- auth pages ---------- */
.auth { padding: clamp(8px, 4vh, 48px) 0; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 5vw, 36px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.75rem; }
.auth-card .lead { font-size: 1rem; }
.auth-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.auth-icon .icon { width: 24px; height: 24px; }
.auth-links { text-align: center; margin: 16px 0 0; font-size: 0.93rem; }
.auth-footer { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 20px; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: s; font-size: 0.8rem; }
.steps li { flex: 1; counter-increment: s; color: var(--subtle); border-top: 3px solid var(--line); padding-top: 6px; }
.steps li::before { content: counter(s) ". "; }
.steps li.is-current { color: var(--text-strong); font-weight: 600; border-color: var(--accent); }
.steps li.is-done { color: var(--muted); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.setup-list { padding-left: 1.2em; margin: 0; display: grid; gap: 14px; }
.setup-list li::marker { font-weight: 700; color: var(--accent); }
.qr { background: #ffffff; border-radius: var(--radius); padding: 10px; width: 216px; max-width: 100%; margin: 10px 0 0; border: 1px solid var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.secret { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.secret code { font-size: 1rem; letter-spacing: 0.05em; }
.codes { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.codes code { display: block; text-align: center; font-size: 1.02rem; padding: 8px; letter-spacing: 0.06em; }

/* ---------- projects overview ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: end; padding: clamp(16px, 4vw, 40px) 0 clamp(28px, 5vw, 48px); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.hero h1 { max-width: 20ch; }
.hero .lead { max-width: 62ch; margin-bottom: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 0; }
.stats div { background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 0.8rem; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--text-strong); line-height: 1.1; }
.section-title { font-size: 1.5rem; margin-bottom: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head .section-title { margin: 0; }
main > section + section { margin-top: 56px; }

.apps .app-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.app-tile { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface); text-decoration: none; height: 100%; transition: border-color 0.15s, transform 0.15s; }
.app-tile:hover { border-color: var(--accent); transform: translateY(-1px); color: inherit; }
.app-name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--text-strong); }
.app-open { margin-top: 8px; font-size: 0.88rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

.spotlight-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.spotlight-link:hover { color: inherit; border-color: var(--line-strong); }
.spotlight-link .cover { border-radius: 0; aspect-ratio: auto; min-height: 280px; }
.spotlight-body { padding: clamp(22px, 4vw, 40px); align-self: center; }
.spotlight-body h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.spotlight-body p { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 0.86rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; }
.chip:hover { color: var(--text-strong); border-color: var(--text-strong); }
.chip.is-active { background: var(--text-strong); border-color: var(--text-strong); color: var(--bg); }
.search input { width: 200px; padding: 7px 12px; border-radius: 999px; font-size: 0.9rem; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.card-link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-link .cover { border-radius: 0; }
.card-body { padding: 18px 20px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 10px 0 6px; font-size: 1.2rem; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.82rem; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-arrow { color: var(--subtle); transition: transform 0.18s, color 0.18s; }
.card-link:hover .card-arrow { transform: translateX(3px); color: var(--accent); }
.empty { padding: 24px 0; }

/* covers: generated art (accent gradient, rings, icon) or an image */
.cover { --c: var(--a-green); position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-lg); background: var(--sunken); }
.cover-green { --c: var(--a-green); } .cover-ink { --c: var(--a-ink); } .cover-amber { --c: var(--a-amber); } .cover-rose { --c: var(--a-rose); }
.cover-teal { --c: var(--a-teal); } .cover-violet { --c: var(--a-violet); } .cover-blue { --c: var(--a-blue); }
.cover-art { background:
  radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%),
  radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--c) 22%, transparent), transparent 55%),
  color-mix(in srgb, var(--c) 9%, var(--surface-2)); }
.cover-rings { position: absolute; width: 150%; aspect-ratio: 1; border-radius: 50%; right: -70%; top: -60%;
  background: repeating-radial-gradient(circle, transparent 0 22px, color-mix(in srgb, var(--c) 18%, transparent) 22px 23px); opacity: 0.9; }
.cover-icon { position: relative; width: 30%; max-width: 92px; height: auto; color: var(--c); stroke-width: 1.2; }
.cover-large.cover-art .cover-icon { max-width: 120px; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-shape-round, .cover-shape-phone { background:
  radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--c) 32%, #101214), #0c0d0f 75%); }
.cover-shape-round img, .cover-shape-phone img { position: absolute; left: 50%; transform: translateX(-50%); }
.cover-shape-round img { top: 11%; width: auto; height: 78%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px #1d1f22, 0 0 0 7px #34373c, 0 18px 40px rgba(0, 0, 0, 0.55); }
.cover-shape-phone img { top: 5%; width: auto; height: 90%; border-radius: 14px; object-fit: cover; object-position: top; box-shadow: 0 0 0 5px #1d1f22, 0 18px 40px rgba(0, 0, 0, 0.55); }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 22px 24px; display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.timeline > li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-month { font-family: var(--serif); font-weight: 700; color: var(--text-strong); }
.timeline ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.timeline a { text-decoration: none; font-weight: 600; color: var(--text-strong); display: inline-flex; align-items: center; gap: 8px; }
.timeline a:hover { color: var(--accent); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.dot-green { --c: var(--a-green); } .dot-ink { --c: var(--a-ink); } .dot-amber { --c: var(--a-amber); } .dot-rose { --c: var(--a-rose); }
.dot-teal { --c: var(--a-teal); } .dot-violet { --c: var(--a-violet); } .dot-blue { --c: var(--a-blue); }

.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.how-grid > div { padding: 20px; border-top: 3px solid var(--accent); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.how-grid p { color: var(--muted); margin: 0; }

/* ---------- project detail ---------- */
.crumb { margin: 0 0 20px; font-size: 0.92rem; }
.crumb a { text-decoration: none; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.crumb a:hover { color: var(--accent); }
.project-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; margin-bottom: 36px; }
.project-head h1 { margin-top: 12px; }
.project-cover { margin: 0; }
.project-cover figcaption { margin-top: 8px; }
.project-cover .cover { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 40px; }
.numbers div { background: var(--surface); padding: 18px 20px; }
.numbers dd { margin: 0; font-family: var(--serif); font-size: 1.85rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.numbers dt { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.project-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); }
.prose { font-size: 1.04rem; max-width: 68ch; }
.prose .summary { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--text-strong); }
.prose h2 { margin-top: 1.6em; }
.features { padding: 0; list-style: none; display: grid; gap: 10px; }
.features li { position: relative; padding-left: 28px; }
.features li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.project-aside { display: grid; gap: 20px; align-content: start; }
.callout { display: flex; gap: 14px; padding: 20px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: var(--radius-lg); }
.callout > .icon { color: var(--accent); width: 24px; height: 24px; margin-top: 2px; }
.callout h2 { font-size: 1.05rem; margin-bottom: 6px; }
.callout p { margin: 0; font-size: 0.95rem; }
.aside-title { font-size: 1.05rem; margin: 0; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.84rem; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); }
.gallery-section { margin-top: 48px; }
.gallery { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.shot figure { margin: 0; text-align: center; }
.shot figcaption { font-size: 0.84rem; color: var(--muted); margin-top: 10px; }
.shot a { display: block; }
.shot img { display: block; }
.shot-round img { width: 200px; height: 200px; border-radius: 50%; box-shadow: 0 0 0 6px #1d1f22, 0 0 0 7px #3a3d42, 0 14px 30px rgba(0, 0, 0, 0.3); }
.shot-phone img { width: 160px; height: auto; border-radius: 16px; box-shadow: 0 0 0 5px #1d1f22, 0 14px 30px rgba(0, 0, 0, 0.3); }
.shot-photo img { width: 320px; height: auto; border-radius: var(--radius); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 2px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--text-strong); max-width: 48%; }
.pager a:hover { color: var(--accent); }
.pager-next { text-align: right; margin-left: auto; }
.pager .muted { font-family: var(--sans); font-weight: 400; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 9, 10, 0.88); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: min(92vw, 900px); max-height: 88vh; border-radius: 12px; }

/* ---------- account & admin ---------- */
.page-title { margin-bottom: 24px; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-bottom: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 26px); min-width: 0; }
.panel h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; flex-wrap: wrap; }
.panel h2 .icon { color: var(--accent); }
.panel-wide { margin-bottom: 20px; }
.kv { margin: 0 0 12px; display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv-stack div { grid-template-columns: 1fr; gap: 0; }
.kv-stack dt { font-weight: 600; color: var(--text-strong); }
.sessions, .users, .outbox { list-style: none; padding: 0; margin: 0 0 16px; }
.sessions li, .outbox li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.outbox li { display: block; }
.outbox details { margin-top: 6px; }
.users > li { border-bottom: 1px solid var(--line); }
.users summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 0; cursor: pointer; list-style: none; }
.users summary::-webkit-details-marker { display: none; }
.users summary::before { content: "›"; font-size: 1.2rem; color: var(--muted); transition: transform 0.15s; width: 10px; }
.users details[open] summary::before { transform: rotate(90deg); }
.user-main { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.user-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.user-disabled .user-main { opacity: 0.55; }
.user-edit { padding: 4px 0 18px 24px; }
.table-wrap { overflow-x: auto; }
.log { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.log th, .log td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.log th { color: var(--muted); font-weight: 600; }
.log td:first-child { white-space: nowrap; }
.log tr.is-warn td { color: var(--warn); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero, .project-head, .project-body, .spotlight-link { grid-template-columns: 1fr; }
  .spotlight-link .cover { min-height: 220px; }
  .timeline > li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-text .brand-sub { display: none; }
  .nav a, .nav-button { padding: 6px 9px; }
  .search input { width: 100%; }
  .filters, .search { width: 100%; }
  .codes { grid-template-columns: 1fr; }
  .shot-round img { width: 150px; height: 150px; }
  .shot-phone img { width: 130px; }
  .kv div { grid-template-columns: 1fr; gap: 0; }
  .user-edit { padding-left: 0; }
}

@media print {
  .site-header, .site-footer, .button-row, .check, [data-ack-target], .steps { display: none !important; }
  body { background: #fff; color: #000; }
  .auth-card { box-shadow: none; border: 0; }
}
