/* ta-it-service.de — one stylesheet. Ported 1:1 from the approved drawings (docs/design/r9 home, dv1 service page),
   only the ".site" parts. All text is JetBrains Mono, self-hosted. */
@font-face { font-family:"JetBrains Mono"; font-weight:400; font-style:normal; font-display:swap; src:url(fonts/JetBrainsMono-400.ttf) format("truetype"); }
@font-face { font-family:"JetBrains Mono"; font-weight:500; font-style:normal; font-display:swap; src:url(fonts/JetBrainsMono-500.ttf) format("truetype"); }
@font-face { font-family:"JetBrains Mono"; font-weight:700; font-style:normal; font-display:swap; src:url(fonts/JetBrainsMono-700.ttf) format("truetype"); }

:root {
  --g1:#0f1114; --g2:#18202c; --g3:#21395c;
  --c-text:#eef1f4; --c-line:rgba(255,255,255,.24); --c-fill:rgba(255,255,255,.06); --c-dim:#97a2ae; --c-blue:#6aa5ff;
  --panel-line:rgba(255,255,255,.12); --c-ok:#7ee0a1; --c-warn:#f0c457; --c-bad:#f0a08c;
  --i-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.6l2.7 2.7L10 3.4' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-cross:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
  --mono:"JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme:dark;
}
* { box-sizing:border-box; }
html { background:var(--g1); }
body { margin:0; background:var(--g1); color:var(--c-text); font-family:var(--mono); font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased; }
h1, h2, p, ul, ol { margin:0; }
ul, ol { padding:0; list-style:none; }
h1, h2 { text-wrap:balance; }
:focus-visible { outline:2px solid var(--c-blue); outline-offset:2px; }

.skip { position:absolute; left:8px; top:-60px; z-index:10; padding:8px 12px; background:var(--g1); color:#fff; border:1px solid var(--c-blue); border-radius:6px; text-decoration:none; }
.skip:focus { top:8px; }

/* ---------- chip */
.chip { display:inline-flex; align-items:center; gap:.5em; font-family:var(--mono); font-weight:500; line-height:1; white-space:nowrap;
  padding:.38em .64em .42em; border-radius:.38em; border:1px solid var(--c-line); background:var(--c-fill); color:var(--c-text); letter-spacing:-.01em; text-decoration:none; }
.chip .dot { width:.5em; height:.5em; border-radius:50%; background:var(--c-blue); flex:0 0 auto; }
.chip .dim { color:var(--c-dim); }
.chip b { font-weight:700; }

@keyframes pulse { 0% { box-shadow:0 0 0 0 rgba(106,165,255,.55); } 70% { box-shadow:0 0 0 .5em rgba(106,165,255,0); } 100% { box-shadow:0 0 0 0 rgba(106,165,255,0); } }
@keyframes blink { 50% { opacity:0; } }
@media all { /* motion always on (PO 09.11.2026: „Luôn chạy hiệu ứng“, also with OS reduced motion) */
  .live .dot { animation:pulse 2.4s ease-out infinite; }
  .cur { animation:blink 1.1s steps(1) infinite; }
}

/* ---------- page frame */
.site { position:relative; min-height:100vh; display:flex; flex-direction:column; font-family:var(--mono);
  background:linear-gradient(110deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%); color:var(--c-text); }
.site::before { content:""; position:absolute; inset:0; pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size:22px 22px;
  -webkit-mask-image:linear-gradient(180deg, #000 0%, transparent 85%); mask-image:linear-gradient(180deg, #000 0%, transparent 85%); }
.site > * { position:relative; }
.site > main { flex:1 0 auto; }

/* above the rain: on the home page the rain canvas is fixed over the whole screen (PO 10.11.2026: the logo could not be clicked) */
.s-top { position:relative; z-index:2; display:flex; align-items:center; gap:14px; padding:18px 40px; }
.s-top .chip { font-size:15px; }
.s-top .r { margin-left:auto; display:flex; gap:8px; align-items:center; }
.s-top .r .chip { font-size:13px; }
.s-top .r .chip.on { border-color:var(--c-blue); color:#fff; }
.path { font-size:13.5px; color:var(--c-dim); margin-left:6px; overflow-wrap:anywhere; }
.path b { color:var(--c-text); font-weight:500; }

/* ---------- hero */
.s-hero { position:relative; overflow:hidden; display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; padding:84px 40px 76px; }
.s-hero.one { grid-template-columns:1fr; }
.s-hero > :not(.mx) { position:relative; z-index:1; min-width:0; }
.s-hero h1 { font-weight:700; font-size:62px; line-height:1.02; letter-spacing:-.045em; color:#fff; overflow-wrap:anywhere; }
.s-hero.svc h1 { font-size:56px; }
html:lang(vi) h1, html:lang(vi) h2 { line-height:1.16; letter-spacing:-.03em; }
.cur { display:inline-block; width:.42em; height:.82em; background:var(--c-blue); margin-left:.08em; vertical-align:-.06em; }
.s-hero .sub { margin-top:18px; font-size:18px; color:#c9d1da; letter-spacing:-.01em; max-width:30ch; }
.s-hero .act { margin-top:30px; display:flex; gap:10px; flex-wrap:wrap; }
.s-ask { font-size:17px; border-color:var(--c-blue); background:rgba(106,165,255,.15); color:#fff; }
.s-ask > span { color:var(--c-blue); font-weight:700; }
.s-ask:hover { background:rgba(106,165,255,.26); }
.s-mail { font-size:17px; }
.s-mail:hover { border-color:var(--c-blue); }
.mx { position:absolute; inset:0; width:100%; height:100%; display:block; opacity:.55; pointer-events:none; /* decoration: never takes a click */
  -webkit-mask-image:linear-gradient(90deg, transparent 0%, transparent 38%, #000 80%); mask-image:linear-gradient(90deg, transparent 0%, transparent 38%, #000 80%); }

/* ---------- keycaps */
.key { display:inline-grid; place-items:center; min-width:42px; height:26px; padding:0 6px 1px; box-sizing:border-box; font-family:var(--mono); font-size:13px; font-weight:700;
  color:var(--c-blue); background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.2); border-bottom-width:3px; border-radius:6px; }
.key.big { min-width:64px; height:46px; font-size:22px; border-bottom-width:4px; border-radius:9px; margin-bottom:20px; }
@media all {
  .key { transition:transform .08s, border-bottom-width .08s, color .15s, box-shadow .15s; }
}

/* ---------- terminal (v2, PO 10.11.2026: the frame has to look smart)
   title bar with prompt badge + working directory, a hairline that runs while something happens,
   dense rows, one prompt that completes and explains itself, a status line at the bottom */
.board { position:relative; overflow:hidden; background:rgba(11,14,18,.80); border:1px solid rgba(255,255,255,.14); border-radius:12px; font-family:var(--mono);
  box-shadow:0 30px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(106,165,255,.07), inset 0 1px 0 rgba(255,255,255,.07);
  -webkit-backdrop-filter:blur(8px) saturate(125%); backdrop-filter:blur(8px) saturate(125%); }
.board .bh { position:relative; display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 12px; border-bottom:1px solid var(--panel-line);
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); font-size:12.5px; color:var(--c-dim); }
.board .bh .tt { display:flex; align-items:center; gap:8px; min-width:0; }
.board .bh .tt > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.board .bh .tico { flex:0 0 auto; display:inline-grid; place-items:center; min-width:26px; height:20px; padding:0 5px 1px; border-radius:5px;
  background:rgba(106,165,255,.16); color:var(--c-blue); font-size:11px; font-weight:700; letter-spacing:-.06em; }
.board .bh .cwd { color:var(--c-text); }
.board .bh .cwd::before { content:""; }
.board .bh .chip { font-size:11.5px; }
.board .bh .bh-r { flex:0 0 auto; display:flex; align-items:center; gap:8px; }
.board .bh .run { position:absolute; left:0; right:0; bottom:-1px; height:1px; overflow:hidden; }
.board .bh .run::after { content:""; position:absolute; top:0; bottom:0; left:0; width:38%; opacity:0;
  background:linear-gradient(90deg, transparent, var(--c-blue), transparent); }
.board.busy .bh .run::after { opacity:1; animation:run .9s linear infinite; }
@keyframes run { from { transform:translateX(-100%); } to { transform:translateX(265%); } }
.snd { display:inline-grid; place-items:center; width:26px; height:22px; padding:0; border:1px solid var(--c-line); border-radius:6px;
  background:var(--c-fill); color:var(--c-dim); cursor:pointer; }
.snd svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.snd[aria-pressed="true"] { color:var(--c-blue); }
.snd[aria-pressed="true"] .x, .snd[aria-pressed="false"] .w { display:none; }
.snd:hover { border-color:var(--c-blue); }
.board ul { padding:4px 0 6px; }
.board li { font-size:15px; color:var(--c-text); }
.term .cmd { padding:12px 16px 4px; font-size:14.5px; color:#dfe6ee; }
.term .cmd .p { color:var(--c-blue); }
.term .ld { border-bottom:1px dotted rgba(255,255,255,.2); align-self:center; height:0; margin-top:2px; }
kbd { font-family:var(--mono); }

/* home: service links */
.term ul a { position:relative; overflow:hidden; display:grid; grid-template-columns:auto auto auto 1fr auto; gap:12px; align-items:center;
  color:inherit; text-decoration:none; padding:7px 12px; border-radius:6px; margin:0 6px; }
.term ul a:focus-visible { outline-offset:-2px; }
.term ul a::before { content:""; position:absolute; inset:0; z-index:0; border-left:2px solid var(--c-blue);
  background:linear-gradient(90deg, rgba(106,165,255,.20), rgba(106,165,255,.03)); transform:scaleX(0); transform-origin:left; }
.term ul a > * { position:relative; z-index:1; }
.term ul a:hover::before, .term ul a:focus-visible::before, .term ul a.run::before { transform:scaleX(1); }
.term ul a.run::before { background:linear-gradient(90deg, rgba(106,165,255,.32), rgba(106,165,255,.06)); }
.term ul a:hover .ld, .term ul a:focus-visible .ld { border-bottom-color:rgba(106,165,255,.6); }
.term ul a:hover .key, .term ul a:focus-visible .key { color:#fff; border-color:rgba(106,165,255,.7); box-shadow:0 0 12px rgba(106,165,255,.35); }
.term ul a.run .key { transform:translateY(2px); border-bottom-width:1px; color:#fff; }
.term .go { color:var(--c-blue); font-size:16px; }
.term .num { color:var(--c-dim); font-size:13px; min-width:1ch; text-align:right; }
.term .tcur { display:inline-block; width:1ch; height:2px; margin-left:1px; background:var(--c-blue); vertical-align:-2px; animation:blink 1.1s steps(1) infinite; }
.term ul a:hover .go, .term ul a:focus-visible .go { color:#fff; }
.term ul a.run .go { transform:translateX(10px); opacity:0; }
.term ul a.off { opacity:.34; }
.term ul a.soon { cursor:default; } /* PO 18.11.2026: page not open yet, hover effect only */
@media all {
  .term ul a::before { transition:transform .28s cubic-bezier(.2,.7,.2,1); }
  .term ul a { transition:opacity .12s; }
  .term .go { transition:transform .15s, color .15s, opacity .3s; }
  .term ul a:hover .go, .term ul a:focus-visible .go { transform:translateX(2px); }
  .term ul a.run .go { transition:transform .3s, opacity .3s; }
  /* output prints like a real terminal: each line appears at once, no fade, no slide (PO 09.11.2026) */
  .term.anim .ln { visibility:hidden; }
  .term.anim .ln.on { visibility:visible; }
}

/* the prompt: own thin cursor, ghost completion (Tab takes it), and what Enter will do */
.term .prompt { display:flex; align-items:center; gap:10px; margin-top:2px; padding:9px 16px 10px; border-top:1px solid rgba(255,255,255,.07); }
.term .pin { position:relative; flex:1; min-width:0; display:flex; align-items:center; }
.term .cmdin { width:100%; margin:0; padding:2px 0; border:0; outline:none; background:transparent; color:var(--c-text);
  font:inherit; letter-spacing:0; caret-color:transparent; }
.term .cmdin::placeholder { color:rgba(151,162,174,.5); }
.term .ghost { position:absolute; left:calc(var(--n, 0) * 1ch); top:2px; color:rgba(151,162,174,.6); white-space:pre; pointer-events:none; }
.term .ucur { position:absolute; left:calc(var(--n, 0) * 1ch); bottom:0; width:1ch; height:2px; background:var(--c-blue); opacity:.45; pointer-events:none; }
.term .cmdin:focus ~ .ucur { opacity:.9; animation:blink 1.1s steps(1) infinite; }
.term .cmdin:not(:placeholder-shown) ~ .ucur { opacity:.9; }
.term .intent { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--c-dim); white-space:nowrap; }
.term .intent.no { color:var(--c-bad); }
.term .intent kbd, .sb kbd, .out kbd { font-size:10.5px; color:var(--c-dim); border:1px solid rgba(255,255,255,.16); border-bottom-width:2px; border-radius:4px; padding:1px 5px; }
.term ul a.sel::before { transform:scaleX(1); }
.term ul a.sel .key { color:#fff; border-color:rgba(106,165,255,.7); box-shadow:0 0 12px rgba(106,165,255,.35); }
.term ul a.sel .ld { border-bottom-color:rgba(106,165,255,.6); }

/* answers of the prompt (help, unknown command, suggestion) */
.term .out { padding:0 16px; font-size:13px; color:#c9d1da; }
.term .out:empty { display:none; }
.term .out p { display:flex; gap:10px; align-items:baseline; padding:2px 0; }
.term .out p:last-child { padding-bottom:8px; }
.term .out .err { color:var(--c-bad); }
.term .out .fix b { font-weight:400; color:var(--c-dim); }
.term .out .fix span { color:#fff; }
.term .out .help b { flex:0 0 21ch; font-weight:500; color:var(--c-blue); }
.term .out .help span { color:var(--c-dim); }

/* status line: mode, context, keys */
.sb { display:flex; align-items:stretch; gap:10px; min-height:28px; border-top:1px solid var(--panel-line); background:rgba(255,255,255,.035); font-size:12px; color:var(--c-dim); }
.sb .md { flex:0 0 auto; display:flex; align-items:center; padding:0 17px 1px 12px; background:var(--c-blue); color:#08111f; font-weight:700;
  clip-path:polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); }
.sb .ctx { flex:1; min-width:0; align-self:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sb .ctx.ok { color:var(--c-ok); }
.sb .ctx.warn { color:var(--c-warn); }
.sb .hk { flex:0 0 auto; display:flex; align-items:center; gap:4px; padding-right:10px; }
.term[data-mode="sent"] .sb .md { background:var(--c-ok); }

/* what the terminal shows: the list, the request form, or the answer after sending */
.term[data-mode="list"] .ask, .term[data-mode="list"] .done,
.term[data-mode="ask"] .v-list, .term[data-mode="ask"] .done, .term[data-mode="ask"] .prompt, .term[data-mode="ask"] .out,
.term[data-mode="sent"] .v-list, .term[data-mode="sent"] .ask, .term[data-mode="sent"] .prompt, .term[data-mode="sent"] .out { display:none; }

/* request form (`ta anfrage`): one question per line; the marker in front shows the state
   ◇ open · ◆ here · check = fine · cross = missing; a rail joins the markers */
.ask, .done { padding:4px 16px 12px; font-size:14px; line-height:22px; }
.ask { --ul:4px; } /* how far the writing line sits above the field's lower edge */
.ask .q { position:relative; display:grid; grid-template-columns:12px 9.5ch minmax(0, 1fr); column-gap:10px; align-items:start; margin:0 -8px; padding:4px 8px; border-radius:6px; }
.ask .q::after { content:""; position:absolute; left:13.5px; top:25px; bottom:-5px; width:1px; background:rgba(255,255,255,.14); }
.ask .q.here { background:linear-gradient(90deg, rgba(106,165,255,.13), rgba(106,165,255,0) 85%); }
.mk { display:inline-grid; place-items:center; width:12px; height:22px; color:var(--c-dim); font-size:11px; line-height:1; }
.ask .q .mk::before { content:"◇"; }
.ask .q.here .mk { color:var(--c-blue); }
.ask .q.here .mk::before { content:"◆"; }
.ask .q.ok .mk, .done .ok .mk, .cfg .ck { color:var(--c-ok); }
.ask .q.bad .mk, .done .bad .mk { color:var(--c-bad); }
.ask .q.ok .mk::before, .done .ok .mk::before, .cfg .ck::before,
.ask .q.bad .mk::before, .done .bad .mk::before { content:""; width:11px; height:11px; background:currentColor;
  -webkit-mask:var(--i-check) center / contain no-repeat; mask:var(--i-check) center / contain no-repeat; }
.ask .q.bad .mk::before, .done .bad .mk::before { -webkit-mask-image:var(--i-cross); mask-image:var(--i-cross); }
.cfg .ck { display:inline-grid; place-items:center; width:12px; }
.ask .lb { color:var(--c-dim); white-space:nowrap; }
.ask .q.here .lb { color:var(--c-text); }
.ask .q.bad .lb { color:var(--c-bad); }
/* PO 10.11.2026: no boxes (command-line look) and no hint texts. An empty field is a dotted leader, the same dots as in
   the service list: the line itself says "write here". The line being typed is solid blue, a filled line is plain text.
   The leader is a background, not a border (the message field grows by its scrollHeight);
   placeholder=" " makes :placeholder-shown mean "empty". Required fields carry a * */
.ask input.fd, .ask textarea.fd { display:block; width:100%; min-width:0; height:22px; margin:0; padding:0; border:0; border-radius:0; outline:none;
  background:transparent; color:var(--c-text); font:inherit; line-height:22px; caret-color:var(--c-blue); resize:none; }
.ask textarea.fd { max-height:88px; overflow:auto; }
.ask input.fd:placeholder-shown, .ask textarea.fd:placeholder-shown { background:linear-gradient(90deg, rgba(255,255,255,.36) 1px, transparent 1px) 0 calc(100% - var(--ul)) / 4px 1px repeat-x; }
.ask .q:hover input.fd:placeholder-shown, .ask .q:hover textarea.fd:placeholder-shown { background-image:linear-gradient(90deg, rgba(255,255,255,.62) 1px, transparent 1px); }
.ask .q.bad input.fd:placeholder-shown { background-image:linear-gradient(90deg, var(--c-bad) 1px, transparent 1px); }
.ask .q.bad input.fd:not(:placeholder-shown) { background:linear-gradient(var(--c-bad), var(--c-bad)) 0 calc(100% - var(--ul) + 1px) / 100% 1px no-repeat; }
.ask input.fd:focus, .ask textarea.fd:focus, .ask .q.bad input.fd:focus { background:linear-gradient(var(--c-blue), var(--c-blue)) 0 calc(100% - var(--ul) + 1px) / 100% 1px no-repeat; }
.ask .rq { margin-left:.3ch; color:var(--c-blue); font-weight:500; }
.ask .q.bad .rq { color:var(--c-bad); }
.ask .q.alt .rq { visibility:hidden; } /* e-mail or phone (PO 11.11.2026: one of the two): the one star goes once the phone is filled */
.ask .hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.topics { display:flex; flex-wrap:wrap; gap:5px 6px; align-items:center; padding:0 0 2px; }
.topics label { cursor:pointer; }
.topics input { position:absolute; opacity:0; width:1px; height:1px; }
.topics kbd { display:inline-flex; align-items:center; gap:6px; height:22px; padding:0 7px 1px; font-size:12.5px; line-height:1; color:var(--c-dim);
  border:1px solid rgba(255,255,255,.2); border-bottom-width:2px; border-radius:5px; background:rgba(255,255,255,.04); white-space:nowrap; }
.topics kbd b { color:var(--c-blue); font-weight:700; }
.topics label:hover kbd { color:var(--c-text); border-color:rgba(106,165,255,.6); }
.topics input:checked + kbd { color:#fff; border-color:var(--c-blue); background:rgba(106,165,255,.18); }
.topics input:focus-visible + kbd { outline:2px solid var(--c-blue); outline-offset:2px; }
.qt.picked label:not(.on) { display:none; }
.chg { display:none; padding:0; border:0; background:none; font:inherit; font-size:12px; color:var(--c-dim); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.chg:hover { color:#fff; }
.qt.picked .chg { display:inline; }
/* privacy note: small and quiet, in the line of the buttons (PO 10.11.2026: it must not outweigh the form lines) */
.ask .nt { margin:0 auto 0 22px; font-size:11px; line-height:16px; color:rgba(151,162,174,.8); }
.ask .nt a { color:inherit; text-decoration-color:rgba(151,162,174,.45); text-underline-offset:3px; }
.ask .nt a:hover { color:#fff; }
.term .go:where(div) { display:flex; justify-content:flex-end; align-items:center; gap:8px; padding-top:12px; font-size:13px; color:inherit; }
.kb { display:inline-flex; align-items:center; gap:8px; height:30px; padding:0 12px; border-radius:7px; border:1px solid var(--c-line); background:var(--c-fill);
  color:var(--c-dim); font:inherit; font-size:13px; font-weight:500; cursor:pointer; flex:none; white-space:nowrap; } /* a button label never breaks; the note beside it wraps instead (PO 11.11.2026: „quay lại“ broke in two) */
.kb:hover { color:#fff; border-color:rgba(255,255,255,.45); }
.kb.pri { color:#dfe9fb; border-color:rgba(106,165,255,.55); background:rgba(106,165,255,.10); }
.kb.pri.rdy { color:#fff; border-color:var(--c-blue); background:rgba(106,165,255,.24); box-shadow:0 0 16px rgba(106,165,255,.28); }
@media all { .kb { transition:border-color .15s, background .15s, box-shadow .2s, color .15s; } }

/* after sending */
.done p { display:grid; grid-template-columns:12px minmax(0, 1fr); column-gap:10px; padding:3px 0; }
.done .say > :not(.mk) { grid-column:2; color:#c9d1da; }
.done .say a { text-underline-offset:3px; }
.done .wait .mk::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--c-blue); animation:pulse 1s ease-out infinite; }
.done .wait { color:var(--c-dim); }

/* service page: config rows */
.cfg .row { display:grid; grid-template-columns:auto minmax(0, auto) minmax(8px, 1fr) minmax(0, auto); gap:12px; align-items:center; padding:7px 12px; margin:0 6px; font-size:14.5px; }
.cfg .row > span { min-width:0; overflow-wrap:anywhere; }
.cfg .val { color:var(--c-dim); font-size:13.5px; text-align:right; }

/* ---------- sections */
.s-sec { padding:56px 40px; border-top:1px solid rgba(255,255,255,.08); }
.cmdlab { font-family:var(--mono); font-size:15px; font-weight:400; color:var(--c-text); margin-bottom:22px; }
.cmdlab .p { color:var(--c-blue); margin-right:4px; }


.sys { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
.sys > * { display:grid; gap:6px; align-content:start; min-width:0; padding:16px 18px; border:1px solid var(--c-line); border-radius:10px; background:var(--c-fill); color:var(--c-text); text-decoration:none; }
.sys b { font-size:17px; font-weight:700; overflow-wrap:anywhere; }
.sys span { font-size:13px; color:var(--c-dim); }
.sys a:hover { border-color:var(--c-blue); background:rgba(106,165,255,.08); }
@media all { .sys a { transition:border-color .15s, background .15s; } }

.next { display:flex; gap:10px; flex-wrap:wrap; }
.next a { display:inline-flex; align-items:center; gap:10px; padding:8px 12px 8px 8px; border:1px solid var(--c-line); border-radius:10px; color:var(--c-text); text-decoration:none; font-size:14px; }
.next a:hover { border-color:var(--c-blue); }
.next a:hover .key { color:#fff; border-color:rgba(106,165,255,.7); }
.next a.home { margin-left:auto; }
@media all { .next a { transition:border-color .15s; } }

/* legal pages */
.board.legal { max-width:860px; }
.kv { display:grid; grid-template-columns:minmax(150px, 230px) 1fr; gap:10px 24px; margin:0; padding:20px 22px; font-size:15px; }
.kv dt { color:var(--c-dim); }
.kv dd { margin:0; color:var(--c-text); overflow-wrap:anywhere; }
.legal-text { max-width:72ch; font-size:14.5px; line-height:1.7; color:#c9d1da; }
.legal-text h2, .legal-text h3 { color:var(--c-text); margin:28px 0 8px; font-size:17px; }
.legal-text p, .legal-text ul { margin:0 0 12px; }
.legal-text ul { list-style:disc; padding-left:20px; }
.legal-text li::marker { color:var(--c-blue); }
.s-hero .sub.draft { color:#f0c457; }

/* ---------- footer */
.s-foot { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:18px 40px; border-top:1px solid rgba(255,255,255,.08); font-size:12.5px; color:var(--c-dim); }
.s-foot .up { display:inline-flex; align-items:center; gap:8px; }
.s-foot .up .dot { width:6px; height:6px; border-radius:50%; background:var(--c-blue); opacity:.6; }
.s-foot .addr { text-transform:lowercase; }
.s-foot a { color:var(--c-text); text-decoration:none; }
.s-foot a:hover { color:#fff; text-decoration:underline; text-decoration-color:var(--c-blue); text-underline-offset:4px; }

/* ---------- wider screens: one 1240 px content column, backgrounds and rules stay full-bleed
   (PO 08.11.2026: on a normal 1920 px screen the page looked empty and stretched) */
@media (min-width:761px) {
  .s-top, .s-hero, .s-sec, .s-foot { padding-left:max(40px, calc((100% - 1240px) / 2)); padding-right:max(40px, calc((100% - 1240px) / 2)); }
  .s-hero { grid-template-columns:1.2fr .8fr; min-height:clamp(540px, 76vh, 860px); align-content:center; gap:clamp(48px, 5vw, 96px); }
  .s-hero.one { grid-template-columns:1fr; min-height:0; padding-top:72px; padding-bottom:40px; } /* legal + 404: content right below */
  .s-hero h1 { font-size:clamp(56px, 4.4vw, 80px); }
  .s-hero.svc h1 { font-size:clamp(44px, 3.9vw, 76px); }
  .s-hero .sub { font-size:clamp(18px, 1.25vw, 22px); }
  .mx { -webkit-mask-image:linear-gradient(90deg, transparent 0%, transparent 42%, #000 78%); mask-image:linear-gradient(90deg, transparent 0%, transparent 42%, #000 78%); }
}

/* ---------- home = one screen on desktop (PO 09.11.2026, mockup B2): hero fills the space, the rain covers
   the whole screen and fades towards the edges, the footer is a tmux/powerline status line with the three steps */
.home .s-hero .mx { position:fixed; inset:0; width:100vw; height:100vh; opacity:.55;
  -webkit-mask-image:radial-gradient(ellipse 60% 75% at 72% 45%, #000 30%, transparent 78%);
  mask-image:radial-gradient(ellipse 60% 75% at 72% 45%, #000 30%, transparent 78%); }
@media (min-width:761px) and (min-height:640px) {
  .home { height:100vh; min-height:640px; }
  .home > main { display:flex; flex-direction:column; min-height:0; }
  .home .s-hero { flex:1; min-height:0; grid-template-rows:minmax(0, 1fr); }
  .home .board { display:flex; flex-direction:column; max-height:100%; }
  .home .board > * { flex:0 0 auto; }
  .home .board .ask { flex:0 1 auto; min-height:0; overflow:auto; }
}
@media (min-width:761px) and (min-height:640px) and (max-height:800px) {
  .home .s-hero { padding-top:28px; padding-bottom:28px; }
}
@media (min-width:2200px) and (min-height:1200px) {
  .home { zoom:1.3; height:calc(100vh / 1.3); }
  .home .s-hero .mx { height:calc(100vh / 1.3); width:calc(100vw / 1.3); }
}
.home .s-foot { align-items:center; gap:24px; padding-top:0; padding-bottom:0; min-height:46px;
  background:rgba(8,10,13,.86); border-top:1px solid rgba(106,165,255,.22); }
.home .s-foot .up, .home .s-foot .addr { white-space:nowrap; }
.pl { display:flex; align-items:stretch; height:30px; margin:0 auto 0 0; padding:0; list-style:none; font-size:13.5px; }
.pl li { --c:#1c2430; --t:#97a2ae; display:flex; align-items:center; gap:8px; padding:0 14px 0 22px; margin-right:-8px;
  background:var(--c); color:var(--t); white-space:nowrap;
  clip-path:polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
.pl li:first-child { padding-left:12px; clip-path:polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.pl .h { --c:#6aa5ff; --t:#08111f; font-weight:700; letter-spacing:.02em; }
.pl .n { opacity:.6; font-size:12px; }
/* the lit segment runs 1 → 2 → 3 like a process at work */
@property --c { syntax:'<color>'; inherits:false; initial-value:#1c2430; }
@property --t { syntax:'<color>'; inherits:false; initial-value:#97a2ae; }
@keyframes pl-run { 0% { --c:#24467a; --t:#ffffff; } 33.33% { --c:#1c2430; --t:#97a2ae; } }
.pl li:not(.h) { animation:pl-run 4.5s steps(1) infinite; }
.pl li:nth-child(3) { animation-delay:1.5s; }
.pl li:nth-child(4) { animation-delay:3s; }

/* ---------- tablet */
@media (max-width:1100px) {
  .s-hero.svc h1 { font-size:44px; }
}

/* ---------- mobile */
@media (max-width:760px) {
  .s-top { flex-wrap:wrap; padding:14px 16px; }
  .s-top .chip { font-size:13px; }
  .path { order:3; flex-basis:100%; margin:0; font-size:12.5px; }
  .s-hero { grid-template-columns:1fr; gap:28px; padding:44px 16px 36px; }
  .s-hero h1 { font-size:34px; letter-spacing:-.04em; }
  .s-hero.svc h1 { font-size:30px; }
  html:lang(vi) h1 { letter-spacing:-.03em; }
  .s-hero .sub { font-size:15px; margin-top:14px; }
  .s-hero .act { margin-top:22px; }
  .s-ask, .s-mail { font-size:15px; }
  .mx { -webkit-mask-image:linear-gradient(180deg, transparent 0%, transparent 40%, #000 85%); mask-image:linear-gradient(180deg, transparent 0%, transparent 40%, #000 85%); }
  .key.big { min-width:52px; height:38px; font-size:18px; margin:10px 0 14px; display:grid; width:max-content; }
  .board li { font-size:13.5px; }
  .term ul a { padding:8px 10px; }
  .term .intent, .sb .hk { display:none; }
  .ask, .done { padding-left:12px; padding-right:12px; }
  .ask .q { column-gap:8px; }
  .term .go:where(div) { justify-content:space-between; flex-wrap:wrap; }
  .ask .nt { flex:1 0 100%; margin:0 0 10px 20px; }
  .cfg .row { padding:7px 10px; font-size:13px; gap:8px; }
  .cfg .val { font-size:12px; }
  .s-sec { padding:34px 16px; }
  .sys { grid-template-columns:1fr; gap:8px; }
  .next { display:grid; grid-template-columns:1fr; gap:8px; }
  .next a.home { margin-left:0; }
  .s-foot { padding:14px 16px; flex-direction:column; gap:6px; font-size:11.5px; }
  .home .s-foot { padding-top:14px; padding-bottom:14px; gap:10px; align-items:flex-start; }
  .pl { font-size:12.5px; height:28px; }
  .pl li { padding:0 10px 0 18px; }
  .term .pin { font-size:16px; } /* ≥ 16 px: phones do not zoom when the field gets focus */
  .kv { grid-template-columns:1fr; gap:2px; padding:16px; font-size:14px; }
  .kv dd { margin-bottom:12px; }
}
@media (pointer:coarse) { .term .intent, .sb .hk { display:none; } }

/* ---------- request form on phones, portrait tablets and every touch screen (PO 10.11.2026, tested on a phone):
   lines and topic keys are finger-sized; labels, markers and the rail follow the taller lines */
@media (max-width:960px), (pointer:coarse) {
  .ask { --ul:8px; }
  .ask input.fd, .ask textarea.fd { height:38px; padding:7px 0; font-size:16px; line-height:24px; } /* ≥ 16 px: phones do not zoom when the field gets focus */
  .ask textarea.fd { max-height:110px; }
  .ask .q { padding-top:2px; padding-bottom:2px; }
  .ask .q .lb, .ask .q .mk { height:38px; line-height:38px; }
  .ask .q.qt .lb, .ask .q.qt .mk { height:30px; line-height:30px; }
  .ask .q::after { top:32px; }
  .ask .q.qt::after { top:28px; }
  .ask .q.qt { padding-bottom:6px; }
  .topics { gap:6px; }
  .topics kbd { height:30px; } /* taller to tap; same width, so two short topics still share a line */
  .kb { height:40px; padding:0 16px; font-size:14px; }
}

/* ---------- portrait tablets: in two columns the terminal was ~255 px wide (form cut off, sideways scrolling). One column, terminal below the headline */
@media (min-width:761px) and (max-width:960px) {
  .s-hero { grid-template-columns:1fr; gap:36px; }
  .home .s-hero { grid-template-rows:auto minmax(0, 1fr); align-content:start; padding-top:56px; }
  .s-hero .board { width:100%; max-width:560px; }
  .mx { -webkit-mask-image:linear-gradient(180deg, transparent 0%, transparent 35%, #000 80%); mask-image:linear-gradient(180deg, transparent 0%, transparent 35%, #000 80%); }
}

/* ---------- smallest phones: the label column gives 1ch back, or the widest topic key touches the edge */
@media (max-width:359px) { .ask .q { grid-template-columns:12px 8.5ch minmax(0, 1fr); } }
