/* Turnplan v2 design system — tokens and components (see the "Brand & design system" artboard). */
:root {
  --blue: #2149dc; --blue-700: #1739b5; --blue-50: #eef2ff; --blue-100: #d3ddf7;
  --lime: #edfa71; --lime-50: #f7fbd9; --lime-line: #e3ec9c; --lime-ink: #263000; --lime-ink-2: #3d4a0c;
  --ink: #172440; --ink-2: #3a4660; --muted: #5b6780; --line: #e2e7ef; --line-2: #d5dce8; --field: #cfd8e5;
  --paper: #f5f7fb; --card: #ffffff; --soft: #f8fafc; --soft-2: #f1f4f9;
  --success: #1f7a3d; --success-bg: #e7f5ec; --warn: #6b4300; --warn-bg: #fff4dc; --warn-line: #f1d593;
  --danger: #b3261e; --danger-ink: #9c3a35; --danger-bg: #fbeeee; --danger-line: #f0d3d2;
  --teal: #0f766e; --teal-bg: #e6f5f3; --purple: #6d28d9; --purple-bg: #f3ecff; --orange: #c2410c; --orange-bg: #fff1e8;
  --radius: 12px; --radius-lg: 20px;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Manrope', 'DM Sans', system-ui, sans-serif;
  --shadow: 0 8px 30px #17244014; --shadow-pop: 0 24px 80px #11234b55;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-700); }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.02em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(26px, 3vw, 36px); font-weight:700; letter-spacing: -.035em; }
h2 { font-size: 19px; font-weight:700; }
h3 { font-size: 16px; font-weight:600; }
p { margin: 0; }
strong, b, th { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #597cff; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.shell > .side { flex: 1 1 248px; max-width: 280px; background: var(--card); border-right: 1px solid var(--line); }
.shell > .main { flex: 999 1 560px; min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 64px; display: flex; flex-direction: column; gap: 20px; }
.shell.bare > .main { padding: 0; }
/* Phone: sidebar becomes a drawer behind the menu button, plus a bottom tab bar. */
.m-top, .m-tabs { display: none; }
@media (max-width: 820px) {
  .shell { flex-direction: column; flex-wrap: nowrap; }
  .shell > .side { display: none; max-width: none; }
  .shell.nav-open > .side { display: block; position: fixed; inset: 57px 0 0 0; z-index: 60; overflow-y: auto; border-right: 0; padding-bottom: 72px; }
  .m-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 61; min-height: 57px; box-sizing: border-box; padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
  .m-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 62; background: var(--card); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .m-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; border-radius: 12px; font-size: 11px; font-weight:600; color: var(--muted); text-decoration: none; }
  .m-tabs a[aria-current="page"] { color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); }
  .shell > .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toast-host { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .shell > .side .nav > .brand { display: none; }
}
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.page-head-main { flex: 1 1 420px; min-width: 0; max-width: 760px; }
.page-head.no-lead { align-items: center; }
.page-head-side { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
.page-head .lead { white-space: pre-line; }
.page-head-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.page-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.head-stat strong { display: block; font-family: var(--font-head); font-size: 34px; line-height: 1.1; color: var(--blue); }
.head-stat span { display: block; font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 14px; font-weight:600; color: var(--blue); margin-bottom: 6px; display: block; }
.lead { color: var(--muted); max-width: 680px; margin-top: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.cols { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.cols > .grow { flex: 999 1 480px; min-width: 0; }
.cols > .aside { flex: 1 1 320px; max-width: 420px; min-width: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(var(--min, 240px), 1fr)); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: ui-monospace, Menlo, monospace; }
.spacer { flex: 1; }
.breadcrumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { font-weight:600; text-decoration: none; }

/* ---------- sidebar ---------- */
.nav { min-height: 100%; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px; text-decoration: none; color: var(--ink); }
.brand b { font-family: var(--font-head); font-weight:700; font-size: 25px; letter-spacing: -.04em; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight:600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 12px; border-radius: 10px; font-weight:500; color: var(--ink-2); text-decoration: none; }
.nav-item:hover { background: var(--soft-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--blue-50); color: var(--blue); font-weight:600; }
/* instant custom tooltip (the native title one appears only after a delay) */
/* in the narrow sidebar the tip must stay inside it */
.nav-item .count { margin-left: auto; font-size: 12px; color: var(--muted); }
.nav-item[aria-current="page"] .count { color: var(--blue); }
.nav-scroll { display: flex; flex-direction: column; gap: 18px; }
.nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
/* Desktop: the sidebar stays in view whatever the page height. Logo and "New session" on top, language,
   profile and sign-out pinned to the bottom; only the menu list scrolls when the window is low. */
@media (min-width: 821px) {
  .shell { flex-wrap: nowrap; }
  .shell > .side { position: sticky; top: 0; align-self: flex-start; flex: 0 0 264px; max-width: 264px; height: 100vh; height: 100dvh; }
  .shell > .side .nav { height: 100%; min-height: 0; gap: 14px; padding: 18px 16px 14px; }
  .shell > .side .nav-item { min-height: 36px; }
  .shell > .side .nav-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; gap: 14px; margin: 0 -16px; padding: 0 16px 4px; overscroll-behavior: contain; }
  .shell > .side .nav-foot { flex-shrink: 0; margin-top: 0; padding-top: 4px; }
}
.me-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.me-card span.meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.me-card small { color: var(--muted); font-size: 12px; }
.me-card strong, .me-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-weight:600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--soft-2); color: var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.btn-dark:hover { background: #0d1830; color: var(--lime); }
.btn-soft { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue); }
.btn-soft:hover { background: #e2e9ff; color: var(--blue); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn-danger { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger-ink); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 15px; }
.btn-icon { width: 38px; min-width: 38px; padding: 0; }
.btn-sm.btn-icon { width: 32px; min-width: 32px; }
.btn-block { width: 100%; }
.btn-ai { box-shadow: 0 6px 18px #2149dc40; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight:600; cursor: pointer; font-size: 14px; }

/* ---------- cards & surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.card.pad-lg { padding: 24px; }
.card.flush { padding: 0; overflow: hidden; }
.card h2 + * { margin-top: 12px; }
.panel-lime { background: var(--lime-50); border: 1px solid var(--lime-line); border-radius: 16px; padding: 14px 16px; color: var(--lime-ink-2); }
.panel-blue { background: var(--blue); color: #fff; border-radius: 22px; padding: 22px; }
.panel-warn { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 10px 12px; color: var(--warn); font-size: 13px; }
.panel-danger { background: var(--danger-bg); border: 1px solid var(--danger-line); border-radius: 12px; padding: 10px 12px; color: var(--danger-ink); font-size: 13px; }
.empty { border: 1.5px dashed #c7d1e2; border-radius: 16px; padding: 24px; text-align: center; color: var(--muted); background: var(--card); }
.empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-align: left; }
.stat strong { display: block; font-family: var(--font-head); font-size: 28px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight:600; }
.field .hint { font-weight:500; font-size: 12px; color: var(--muted); }
.field .hint.error { color: var(--danger); }
.input, .select, .textarea { color: var(--ink); min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 10px; background: #fff; font-size: 15px; font-weight:500; width: 100%; min-width: 0; }
.textarea { padding: 10px 12px; line-height: 1.55; resize: vertical; min-height: 90px; }
.input[readonly] { background: var(--paper); color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px #597cff33; }
.search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight:500; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 1px 0 0; flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--field); border-radius: 9px; overflow: hidden; background: #fff; }
.stepper button { width: 30px; height: 32px; border: 0; background: var(--soft-2); font-weight:600; cursor: pointer; }
.stepper output, .stepper span { min-width: 36px; text-align: center; font-weight:600; font-size: 14px; }

/* ---------- chips, badges, segments, tabs ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight:600; font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight:600; white-space: nowrap; background: var(--soft-2); color: var(--ink-2); }
.badge.blue { background: var(--blue-50); color: var(--blue); }
.badge.lime { background: var(--lime); color: var(--lime-ink); }
.badge.dark { background: var(--ink); color: var(--lime); }
.badge.green { background: var(--success-bg); color: var(--success); }
.badge.red { background: var(--danger-bg); color: var(--danger-ink); }
.badge.teal { background: var(--teal-bg); color: var(--teal); }
.badge.purple { background: var(--purple-bg); color: var(--purple); }
.badge.orange { background: var(--orange-bg); color: #9a3412; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #e8ecf3; }
.seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #4a5670; font-weight:600; font-size: 14px; cursor: pointer; }
.seg-sm { padding: 3px; }
.seg-sm button { min-height: 32px; padding: 0 10px; font-size: 13px; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #17244026; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #dfe5ee; }
.tabs button, .tabs a { min-height: 44px; padding: 0 16px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-weight:500; font-size: 15px; color: #4a5670; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.tabs [aria-selected="true"] { border-bottom-color: var(--blue); color: var(--blue); font-weight:700; }
.mention { background: var(--blue-50); color: var(--blue); font-weight:600; padding: 1px 6px; border-radius: 6px; text-decoration: none; }

/* ---------- tables ---------- */
.table-wrap { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 16px; font-weight:600; }
.table td { padding: 10px 16px; border-top: 1px solid #eef1f6; vertical-align: middle; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #fafbff; }

/* ---------- avatars & media ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight:700; font-size: 13px; flex-shrink: 0; color: #fff; background: var(--ink); }
.avatar.lg { width: 76px; height: 76px; font-size: 26px; font-family: var(--font-head); }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.thumb { object-fit: contain; background: var(--soft); border-radius: 10px; }
.stage { position: relative; border-radius: 16px; background-color: #eef2f8; background-image: linear-gradient(#dde4ef 1px, transparent 1px), linear-gradient(90deg, #dde4ef 1px, transparent 1px); background-size: 28px 28px; overflow: hidden; }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage .overlay-tl, .stage .overlay-tr, .stage .overlay-bl { position: absolute; display: flex; gap: 6px; }
.stage .overlay-tl { left: 12px; top: 12px; } .stage .overlay-tr { right: 12px; top: 12px; } .stage .overlay-bl { left: 12px; bottom: 12px; }
.tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--blue-100); color: var(--ink); }
.tile img.cover { width: 100%; aspect-ratio: 1.45; object-fit: contain; background: var(--soft); display: block; }
.tile .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

/* ---------- dialogs, toast, popovers ---------- */
dialog.modal { border: 0; border-radius: 24px; padding: 28px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-pop); color: var(--ink); }
dialog.modal.wide { width: min(860px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: #11234b8c; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 1000; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px #17244040; pointer-events: auto; max-width: 92vw; }
.toast.error { background: var(--danger); }
.popover { position: absolute; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px #17244022; overflow: hidden; min-width: 280px; }
.popover [role="option"] { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; font-size: 14px; }
.popover [role="option"][aria-selected="true"] { background: var(--blue-50); }
.popover img { width: 40px; height: 30px; object-fit: contain; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--blue-100); border-top-color: var(--blue); animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ---------- public pages ---------- */
.public-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px clamp(16px, 4vw, 48px); background: #fff; border-bottom: 1px solid var(--line); }
.public-main { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 48px; display: flex; flex-direction: column; gap: 20px; }

@media print {
  .shell > .side, .no-print, .toast-host, .m-top, .m-tabs { display: none !important; }
  .shell > .main { padding: 0; }
  body { background: #fff; }
}

/* Public header on narrow phones: logo mark only, so the language switch and Sign in fit in one row. */
@media (max-width: 420px) { .public-top .brand b { display: none; } }

/* Overview: quick actions as a 2 × 2 grid of large tiles (one column on phones). */
.tiles-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1040px; }
.tile-action { display: flex; flex-direction: column; gap: 10px; min-height: 180px; padding: 24px; text-decoration: none; color: var(--ink); }
.tile-action:hover, .tile-action:focus-visible { border-color: var(--blue); box-shadow: 0 6px 18px #2149dc1f; }
.tile-action strong { font-family: var(--font-head); font-size: 20px; letter-spacing: -.01em; }
.tile-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 6px; }
@media (max-width: 560px) { .tiles-2 { grid-template-columns: 1fr; } .tile-action { min-height: 0; padding: 18px; } }

/* "Create" dialog: session plan or 3D plan. */
.create-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.create-option { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); text-decoration: none; }
.create-option:hover, .create-option:focus-visible { border-color: var(--blue); box-shadow: 0 6px 18px #2149dc1f; outline: none; }
.create-option strong { display: block; font-family: var(--font-head); font-size: 19px; margin-bottom: 4px; }
.create-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
@media (max-width: 520px) { .create-options { grid-template-columns: 1fr; } }

/* Admin → Categories */
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px; border-radius: 14px; }
.cat-row + .cat-row { border-top: 1px solid var(--line); border-radius: 0; }
.cat-pos { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight:700; font-size: 13px; }
.cat-main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; }
.cat-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Sign-in / invite: photo fills the left half, the headline sits on a blue plate over it */
.auth-hero { flex: 1 1 420px; min-width: 0; min-height: 420px; position: relative; overflow: hidden; background: var(--blue); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(16px, 3vw, 40px); }
.auth-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.auth-hero-plate { position: relative; max-width: 560px; background: var(--blue); border-radius: 22px; padding: clamp(20px, 2.6vw, 32px);
  display: flex; flex-direction: column; gap: 18px; box-shadow: 0 18px 50px #0b1a4d59; }
.auth-hero-brand { display: flex; align-items: center; gap: 10px; }
.auth-hero-brand b { font-family: var(--font-head); font-size: 26px; letter-spacing: -.04em; }
.auth-hero-plate h1 { color: #fff; font-size: clamp(28px, 3.2vw, 46px); }
@media (max-width: 860px) { .auth-hero { min-height: 340px; } }

/* language tabs of the catalog editor (name / description in de / en / uk) */
.ce-langs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.ce-lang { position: relative; flex: 1; min-height: 34px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; background: var(--card); color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.ce-lang[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.ce-lang:hover:not([aria-pressed="true"]) { background: var(--blue-50); }
.ce-lang:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ce-dot { position: absolute; top: 3px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px var(--lime-ink-2); }
.ce-langs .hint { flex-basis: 100%; font-size: 12px; color: var(--muted); }

/* 404 page: illustration (white background blends into the page), title, text, button */
.nf { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: 24px auto 0; max-width: 640px; padding: 0 16px 40px; }
.nf-art { width: min(100%, 560px); height: auto; aspect-ratio: 3 / 2; object-fit: contain; mix-blend-mode: multiply; user-select: none; }
.nf-title { font-family: var(--font-head); font-size: 24px; color: var(--ink); margin-top: 4px; }
.nf-text { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
