/* Trading Journal by Kiawak: landing, legal, sign-in and account pages, plus the
   thin bar above the app. Design "Nachtschicht am Desk": graphite trading desk
   (dark by default), paper white light theme, Kiawak blue #2f54eb only for the
   main action and the mark's diamond, wins teal / losses vermillion (Okabe-Ito
   family, readable with colour blindness; signs and shapes carry the meaning too).
   Type: Geist (text and headings), JetBrains Mono (figures). The same tokens feed
   the journal UI through client/theme.css. */

@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --k-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --k-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --k-blue: #2f54eb;
  --k-radius: 10px;
  --k-radius-sm: 7px;
  --k-wrap: 1200px;
  --k-gutter: clamp(16px, 4vw, 32px);
  --k-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Dark = default (data-theme set before paint, see layout.ts) */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --k-bg: #0f1319;
  --k-bg-deep: #0b0e13;
  --k-surface: #151a22;
  --k-surface-2: #1a2029;
  --k-raise: #202733;
  --k-line: #262e3a;
  --k-line-strong: #37414f;
  --k-ink: #e8ecf2;
  --k-muted: #a0a9b8;
  --k-faint: #8892a2; /* ≥ 4.5 : 1 on every dark surface (small print, hints, footer) */
  --k-accent: #2f54eb;
  --k-accent-hover: #4466f0;
  --k-accent-ink: #ffffff;
  --k-accent-text: #8ea5ff;
  --k-accent-soft: rgba(72, 105, 245, 0.18);
  --k-win: #3cc7a9;
  --k-win-soft: rgba(60, 199, 169, 0.14);
  --k-loss: #ff8a52;
  --k-loss-soft: rgba(255, 138, 82, 0.14);
  --k-be: #9aa4b4;
  --k-warn: #e8b730;
  --k-warn-soft: rgba(232, 183, 48, 0.14);
  --k-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --k-shadow-lg: 0 30px 80px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --k-focus: #8ea5ff;
}
[data-theme="light"] {
  color-scheme: light;
  --k-bg: #eef0f3;
  --k-bg-deep: #e6e9ee;
  --k-surface: #ffffff;
  --k-surface-2: #f6f7f9;
  --k-raise: #ffffff;
  --k-line: #dde1e7;
  --k-line-strong: #c6ccd5;
  --k-ink: #10141b;
  --k-muted: #565f6e;
  --k-faint: #606875; /* ≥ 4.5 : 1 on paper, surface-2 and bg-deep */
  --k-accent: #2f54eb;
  --k-accent-hover: #2445d4;
  --k-accent-ink: #ffffff;
  --k-accent-text: #2848d4;
  --k-accent-soft: rgba(47, 84, 235, 0.1);
  --k-win: #08705d; /* text on --k-win-soft ≥ 4.5 : 1 (badges, results) */
  --k-win-soft: rgba(10, 125, 104, 0.1);
  --k-loss: #b23c0b;
  --k-loss-soft: rgba(194, 65, 12, 0.09);
  --k-be: #6a7383;
  --k-warn: #8f5f00;
  --k-warn-soft: rgba(196, 140, 10, 0.12);
  --k-shadow: 0 1px 2px rgba(16, 20, 27, 0.05), 0 12px 30px -20px rgba(16, 20, 27, 0.25);
  --k-shadow-lg: 0 30px 70px -40px rgba(16, 20, 27, 0.35), 0 0 0 1px rgba(16, 20, 27, 0.05);
  --k-focus: #2f54eb;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; min-height: 100vh; background: var(--k-bg); color: var(--k-ink);
  font: 400 16px/1.6 var(--k-font); font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--k-accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; color: var(--k-ink); font-weight: 560; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--k-mono); font-size: 0.88em; background: var(--k-surface-2); border: 1px solid var(--k-line); border-radius: 4px; padding: 0 4px; }
.k-num { font-family: var(--k-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.k-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.k-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--k-accent); color: var(--k-accent-ink); padding: 8px 14px; border-radius: 6px; }
.k-skip:focus { top: 10px; }
[data-theme="dark"] .k-only-light, [data-theme="light"] .k-only-dark { display: none !important; }
.k-center { text-align: center; justify-content: center; }

.k-wrap { width: 100%; max-width: var(--k-wrap); margin: 0 auto; padding: 0 var(--k-gutter); }
.k-wrap-doc { max-width: 820px; }
.k-wrap-narrow { max-width: 860px; }

/* ---------- mark + wordmark ---------- */
.k-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--k-ink); text-decoration: none; white-space: nowrap; min-width: 0; }
.k-mark { width: 26px; height: 26px; flex: none; }
.k-mark-r { fill: currentColor; }
.k-mark-s { fill: currentColor; opacity: .38; }
.k-mark-e { fill: none; stroke: currentColor; stroke-width: 2.6; }
.k-mark-d { fill: var(--k-blue); }
.k-wm { font-weight: 620; font-size: 16.5px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; }
.k-by { font-size: 12.5px; color: var(--k-muted); font-weight: 450; letter-spacing: 0; padding-left: 1px; }

/* ---------- header ---------- */
.k-top { position: sticky; top: 0; z-index: 40; background: var(--k-bg); border-bottom: 1px solid var(--k-line); }
.k-top-in { display: flex; align-items: center; gap: 20px; height: 62px; }
.k-nav { display: flex; gap: 4px; margin-left: 18px; }
.k-nav a { color: var(--k-muted); text-decoration: none; font-size: 14.5px; padding: 7px 10px; border-radius: 6px; }
.k-nav a:hover { color: var(--k-ink); background: var(--k-surface-2); }
.k-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.k-link-quiet { color: var(--k-muted); text-decoration: none; font: inherit; font-size: 14.5px; padding: 7px 10px; border-radius: 6px; background: none; border: 0; cursor: pointer; }
.k-link-quiet:hover { color: var(--k-ink); background: var(--k-surface-2); }
.k-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--k-line); background: transparent; color: var(--k-muted); cursor: pointer; }
.k-icon-btn:hover { color: var(--k-ink); border-color: var(--k-line-strong); }
.k-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.k-lang { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--k-line); color: var(--k-muted); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.k-lang:hover { color: var(--k-ink); border-color: var(--k-line-strong); }
.k-inline-form { display: inline; margin: 0; }
.k-show-xs { display: none !important; }
@media (max-width: 980px) { .k-nav { display: none; } }
@media (max-width: 620px) { .k-hide-sm { display: none !important; } }
@media (max-width: 480px) {
  .k-hide-xs { display: none !important; }
  .k-show-xs { display: inline-flex !important; }
  .k-btn .k-show-xs { display: inline !important; }
  .k-top-in { gap: 10px; }
  .k-by { display: none; }
}

/* app bar (above the journal) */
.k-top-app { position: relative; }
.k-appbar-in { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; }
.k-top-app .k-mark { width: 22px; height: 22px; }
.k-top-app .k-wm { font-size: 15px; }

/* ---------- buttons ---------- */
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 8px; border: 1px solid transparent; font: 560 15px/1 var(--k-font); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.k-btn-primary { background: var(--k-accent); color: var(--k-accent-ink); }
.k-btn-primary:hover { background: var(--k-accent-hover); }
.k-btn-quiet { background: transparent; color: var(--k-ink); border-color: var(--k-line-strong); }
.k-btn-quiet:hover { background: var(--k-surface-2); }
.k-btn-danger { background: transparent; color: var(--k-loss); border-color: color-mix(in srgb, var(--k-loss) 55%, transparent); }
.k-btn-danger:hover { background: var(--k-loss-soft); }
.k-btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.k-btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.k-btn-block { width: 100%; }
.k-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.k-fine { color: var(--k-faint); font-size: 13.5px; margin-top: 14px; }
.k-fine a { color: var(--k-muted); }

/* ---------- landing ---------- */
.k-main { display: block; }
.k-hero { padding: clamp(40px, 7vw, 92px) 0 clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--k-line); background: linear-gradient(var(--k-bg), var(--k-bg-deep)); }
.k-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.k-hero h1 { font-size: clamp(2.2rem, 1.25rem + 3.3vw, 3.85rem); line-height: 1.03; letter-spacing: -0.038em; font-weight: 580; max-width: 13ch; }
.k-lead { margin-top: 22px; font-size: clamp(1.03rem, 0.95rem + 0.35vw, 1.17rem); line-height: 1.62; color: var(--k-muted); max-width: 52ch; }
@media (max-width: 960px) {
  .k-hero-grid { grid-template-columns: 1fr; }
  .k-hero h1 { max-width: 16ch; }
}

/* The hero figure: the chart being read, then the readout. One orchestrated moment on load. */
.k-scan { position: relative; margin: 0; padding-bottom: 104px; }
.k-scan-shot { position: relative; overflow: hidden; border-radius: var(--k-radius); border: 1px solid var(--k-line-strong); box-shadow: var(--k-shadow-lg); background: var(--k-surface); }
.k-scan-shot img { width: 100%; aspect-ratio: 1200 / 700; }
.k-scan-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--k-blue); box-shadow: 0 0 0 1px rgba(47, 84, 235, .25), -60px 0 70px -6px rgba(47, 84, 235, .22); opacity: 0; pointer-events: none; }
.k-readout {
  position: absolute; left: -28px; bottom: 0; width: min(468px, 82%);
  background: var(--k-raise); border: 1px solid var(--k-line-strong); border-radius: var(--k-radius); box-shadow: var(--k-shadow-lg);
  padding: 14px 16px 12px; font-size: 14px;
}
.k-readout-head { display: flex; align-items: center; gap: 8px; color: var(--k-muted); font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--k-line); }
.k-readout-head::before { content: ""; width: 7px; height: 7px; background: var(--k-blue); transform: rotate(45deg); flex: none; }
.k-readout dl { margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
.k-readout dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; }
.k-readout dt { color: var(--k-muted); }
.k-readout dd { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--k-ink); }
.k-readout-foot { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--k-line); color: var(--k-faint); font-size: 12.5px; }
.k-conf { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.k-conf-hi { background: var(--k-win); }
.k-conf-mid { border: 2px solid var(--k-warn); }
@media (max-width: 960px) { .k-readout { left: 12px; } }
@media (max-width: 760px) { .k-readout dl { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .k-scan { padding-bottom: 0; }
  .k-readout { position: relative; left: auto; width: auto; margin: -18px 10px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .k-scan-line { animation: k-sweep 1.9s var(--k-ease) .35s 1 both; }
  .k-readout { animation: k-rise .5s var(--k-ease) 1.55s both; }
  .k-readout dl > div { animation: k-in .35s var(--k-ease) both; animation-delay: calc(1.75s + var(--i) * 70ms); }
}
@keyframes k-sweep { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes k-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes k-in { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

/* sections */
.k-sec { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--k-line); }
.k-sec-alt { background: var(--k-surface); }
[data-theme="dark"] .k-sec-alt { background: #121720; }
.k-sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.k-sec-head h2 { font-size: clamp(1.65rem, 1.15rem + 1.7vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; }
.k-sec-head p { margin-top: 16px; color: var(--k-muted); font-size: 1.06rem; max-width: 64ch; }
.k-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.k-split .k-sec-head { margin-bottom: 0; position: sticky; top: 96px; }
@media (max-width: 900px) { .k-split { grid-template-columns: 1fr; } .k-split .k-sec-head { position: static; } }

/* the three pictures of one trade (a real sequence: plan, adjustment, result) */
.k-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); counter-reset: step; }
.k-steps li { counter-increment: step; }
.k-steps figure { margin: 0; }
.k-steps img { width: 100%; aspect-ratio: 1200 / 700; border-radius: var(--k-radius-sm); border: 1px solid var(--k-line-strong); background: var(--k-surface); }
.k-steps figcaption { padding-top: 16px; }
.k-steps h3 { font-size: 1.05rem; display: flex; align-items: baseline; gap: 10px; }
.k-steps h3::before { content: counter(step); font: 500 12px/1 var(--k-mono); color: var(--k-muted); border: 1px solid var(--k-line-strong); border-radius: 50%; width: 22px; height: 22px; display: inline-grid; place-items: center; flex: none; transform: translateY(-2px); }
.k-steps p { margin-top: 8px; color: var(--k-muted); font-size: 15px; }
@media (max-width: 860px) { .k-steps { grid-template-columns: 1fr; max-width: 560px; } }

/* product shots in a quiet window frame */
.k-window { margin: 0; border-radius: 12px; border: 1px solid var(--k-line-strong); overflow: hidden; box-shadow: var(--k-shadow-lg); background: var(--k-surface); }
.k-window img { width: 100%; aspect-ratio: 1600 / 1000; object-fit: cover; object-position: top left; }
.k-window-sub { margin-top: clamp(32px, 4vw, 48px); }
.k-metrics { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 28px; }
.k-metrics li { border-top: 1px solid var(--k-line-strong); padding-top: 14px; }
.k-metrics h3, .k-facts h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.k-metrics p, .k-facts p { margin-top: 6px; color: var(--k-muted); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 980px) { .k-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .k-metrics { grid-template-columns: 1fr; } }

/* import formats */
.k-files { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--k-line-strong); }
.k-files > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--k-line); }
.k-files dt { font-weight: 600; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.k-files dd { margin: 0; color: var(--k-muted); }
.k-file { font: 500 12.5px/1 var(--k-mono); color: var(--k-ink); background: var(--k-surface-2); border: 1px solid var(--k-line-strong); border-radius: 5px; padding: 5px 7px; }
@media (max-width: 560px) { .k-files > div { grid-template-columns: 1fr; gap: 8px; } }

.k-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.k-facts li { border-top: 1px solid var(--k-line-strong); padding-top: 14px; }
@media (max-width: 560px) { .k-facts { grid-template-columns: 1fr; } }

/* tables */
.k-table-wrap { overflow-x: auto; border: 1px solid var(--k-line); border-radius: var(--k-radius); background: var(--k-surface); }
.k-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.k-table th, .k-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--k-line); vertical-align: top; }
.k-table tbody tr:last-child th, .k-table tbody tr:last-child td { border-bottom: 0; }
.k-table thead th { font-size: 13.5px; color: var(--k-muted); font-weight: 560; background: var(--k-surface-2); }
.k-table tbody th { font-weight: 450; color: var(--k-muted); }
.k-plans td, .k-plans thead th:not(:first-child) { text-align: right; white-space: nowrap; }
.k-plans .is-now { color: var(--k-ink); background: var(--k-accent-soft); }
.k-plans thead .is-now { color: var(--k-accent-text); font-weight: 650; }
#preise .k-cta-row { margin-top: 32px; }
@media (max-width: 560px) {
  .k-table { font-size: 14px; }
  .k-table th, .k-table td { padding: 10px 10px; }
  .k-plans tbody th { min-width: 132px; }
}

/* FAQ */
.k-faq { border-top: 1px solid var(--k-line-strong); }
.k-faq details { border-bottom: 1px solid var(--k-line); }
.k-faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 560; font-size: 1.02rem; }
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(currentColor, currentColor) center/12px 1.6px no-repeat, linear-gradient(currentColor, currentColor) center/1.6px 12px no-repeat; color: var(--k-muted); transition: transform .2s var(--k-ease); }
.k-faq details[open] summary::after { transform: rotate(45deg); }
.k-faq details p { padding: 0 0 20px; color: var(--k-muted); max-width: 70ch; }

.k-final { padding: clamp(64px, 9vw, 112px) 0; background: var(--k-bg-deep); }
.k-final-in h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); letter-spacing: -0.032em; line-height: 1.08; }
.k-final-in p { margin-top: 14px; color: var(--k-muted); font-size: 1.06rem; }

/* ---------- footer ---------- */
.k-foot { border-top: 1px solid var(--k-line); background: var(--k-bg); padding: 48px 0 28px; font-size: 14.5px; }
.k-foot-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.k-foot-brand p { margin-top: 12px; color: var(--k-muted); max-width: 42ch; }
.k-foot-col { display: flex; flex-direction: column; gap: 8px; }
.k-foot-col h2 { font-size: 13.5px; color: var(--k-faint); font-weight: 560; margin-bottom: 4px; }
.k-foot-col a, .k-foot-brand a { color: var(--k-muted); text-decoration: none; }
.k-foot-col a:hover, .k-foot-brand p a:hover { color: var(--k-ink); text-decoration: underline; }
.k-foot-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--k-line); color: var(--k-faint); font-size: 13px; }
@media (max-width: 760px) { .k-foot-in { grid-template-columns: 1fr 1fr; } .k-foot-brand { grid-column: 1 / -1; } }

/* ---------- forms, notices ---------- */
.k-form { display: grid; gap: 16px; margin-top: 20px; }
.k-form > .k-btn { justify-self: start; }
.k-form > .k-btn-block { justify-self: stretch; }
.k-field { display: grid; gap: 6px; }
.k-label { font-size: 14px; font-weight: 520; color: var(--k-ink); }
.k-field input, .k-field textarea, .k-check input[type="date"] {
  width: 100%; font: 400 16px/1.4 var(--k-font); color: var(--k-ink); background: var(--k-bg);
  border: 1px solid var(--k-line-strong); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
[data-theme="light"] .k-field input, [data-theme="light"] .k-field textarea { background: var(--k-surface); }
.k-field input:focus, .k-field textarea:focus { outline: 2px solid var(--k-focus); outline-offset: 0; border-color: transparent; }
.k-field.is-bad input { border-color: var(--k-loss); }
.k-hint { font-size: 13px; color: var(--k-faint); }
.k-err-text { font-size: 13.5px; color: var(--k-loss); }
.k-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--k-muted); line-height: 1.5; }
.k-check input[type="checkbox"], .k-check input[type="radio"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--k-accent); flex: none; }
.k-check input[type="date"] { width: auto; min-height: 36px; padding: 4px 8px; margin-left: 4px; }
.k-check.is-bad { color: var(--k-loss); }
.k-fs { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.k-fs legend { font-size: 14px; font-weight: 520; margin-bottom: 8px; padding: 0; }
.k-choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--k-line-strong); border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.k-choice:has(input:checked) { border-color: var(--k-accent); background: var(--k-accent-soft); }
.k-choice input { accent-color: var(--k-accent); margin-top: 3px; }
.k-notice { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; border: 1px solid var(--k-line); background: var(--k-surface-2); }
.k-notice-ok { border-color: color-mix(in srgb, var(--k-win) 45%, transparent); background: var(--k-win-soft); }
.k-notice-bad { border-color: color-mix(in srgb, var(--k-loss) 45%, transparent); background: var(--k-loss-soft); }
.k-callout { margin: 0 0 24px; padding: 14px 16px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--k-accent) 45%, transparent); background: var(--k-accent-soft); color: var(--k-ink); }
.k-warn-text { color: var(--k-warn); }

/* ---------- auth ---------- */
.k-auth { display: grid; place-items: start center; padding: clamp(32px, 8vh, 88px) 16px 72px; min-height: calc(100vh - 62px - 200px); }
.k-auth-card { width: 100%; max-width: 440px; background: var(--k-surface); border: 1px solid var(--k-line); border-radius: 14px; padding: clamp(22px, 4vw, 34px); box-shadow: var(--k-shadow); }
.k-auth-card h1 { font-size: 1.65rem; letter-spacing: -0.028em; line-height: 1.15; }
.k-auth-lead { margin-top: 10px; color: var(--k-muted); font-size: 15px; }
.k-auth-alt { margin-top: 14px; font-size: 14.5px; color: var(--k-muted); text-align: center; }
.k-auth-card > p > .k-btn-block { margin-top: 18px; }

/* ---------- account ---------- */
.k-account { padding: clamp(28px, 5vw, 56px) 0 72px; }
.k-account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.k-account-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); letter-spacing: -0.03em; }
.k-card { background: var(--k-surface); border: 1px solid var(--k-line); border-radius: 12px; padding: clamp(18px, 3vw, 26px); margin-top: 18px; }
.k-card h2 { font-size: 1.12rem; letter-spacing: -0.015em; margin-bottom: 10px; }
.k-card > p { color: var(--k-muted); font-size: 15px; }
.k-card > p b { color: var(--k-ink); font-weight: 600; }
.k-card > form:not(.k-form) { margin-top: 14px; }
.k-card-danger { border-color: color-mix(in srgb, var(--k-loss) 35%, var(--k-line)); }
.k-kv { margin: 0; display: grid; gap: 0; }
.k-kv > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--k-line); font-size: 15px; }
.k-kv > div:last-child { border-bottom: 0; }
.k-kv dt { color: var(--k-muted); }
.k-kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .k-kv > div { grid-template-columns: 1fr; gap: 2px; } }
.k-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.k-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 16px; }
@media (max-width: 560px) { .k-meters { grid-template-columns: 1fr; } }
.k-meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--k-muted); }
.k-meter-top .k-num { color: var(--k-ink); font-size: 13px; }
.k-meter-bar { margin-top: 6px; height: 6px; border-radius: 3px; background: var(--k-surface-2); border: 1px solid var(--k-line); overflow: hidden; }
.k-meter-bar i { display: block; height: 100%; background: var(--k-accent); border-radius: 3px; }
.k-details { margin-top: 16px; }
.k-details summary { cursor: pointer; color: var(--k-muted); font-size: 14.5px; }

/* ---------- legal ---------- */
.k-legal { padding: clamp(28px, 5vw, 56px) 0 80px; }
.k-doc h1 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.35rem); letter-spacing: -0.03em; line-height: 1.12; }
.k-doc-lead { margin-top: 12px; color: var(--k-muted); }
.k-doc section { margin-top: 30px; }
.k-doc h2 { font-size: 1.12rem; letter-spacing: -0.012em; margin-bottom: 8px; }
.k-doc section p { color: var(--k-muted); margin-top: 8px; max-width: 74ch; }
.k-doc section p strong { color: var(--k-ink); }
.k-doc-wide .k-table-wrap { margin-top: 8px; }
.k-pre { white-space: pre-wrap; font: 500 13.5px/1.6 var(--k-mono); background: var(--k-surface); border: 1px solid var(--k-line); border-radius: 10px; padding: 16px; overflow-x: auto; }

/* ---------- app page ---------- */
.k-page-app { min-height: 100vh; }
.k-app-main { display: block; }
.k-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 10px 16px; background: var(--k-warn-soft); border-bottom: 1px solid color-mix(in srgb, var(--k-warn) 35%, transparent); font-size: 14px; }
.k-strip p { color: var(--k-ink); max-width: 90ch; }
.k-strip form { margin: 0; }
.k-boot { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60vh; color: var(--k-muted); font-size: 15px; }
.k-boot-mark { width: 9px; height: 9px; background: var(--k-blue); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { .k-boot-mark { animation: k-pulse 1.1s ease-in-out infinite alternate; } }
@keyframes k-pulse { from { opacity: .35; } to { opacity: 1; } }

@media print {
  .k-top, .k-foot, .k-skip, .k-strip { display: none !important; }
  body { background: #fff; color: #000; }
}
