:root { --bg:#FFFCF6; --block:#F5EFE3; --ink:#1F2433; --muted:#585F6F; --line:#DCD1BE; --accent:#B4441C; --on-accent:#FFFCF6; --ok:#1f7a4d; --bad:#b42318; --warn:#9a5b00; }
@media (prefers-color-scheme: dark) { :root { --bg:#16181f; --block:#1f222c; --ink:#ece9e2; --muted:#a5abb8; --line:#363a47; --accent:#e0714a; --on-accent:#16181f; --ok:#5cc58f; --bad:#ff8a7a; --warn:#e8b25a; } }
* { box-sizing:border-box; }
html { font-size:18px; }
body { margin:0; font:1rem/1.65 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--ink); background:var(--bg); }
.top { display:flex; gap:.6rem; align-items:baseline; padding:.9rem 1.25rem; border-bottom:1px solid var(--line); max-width:64rem; margin:0 auto; }
.brand { font-weight:700; font-size:1.2rem; color:var(--ink); text-decoration:none; } .by { color:var(--muted); font-size:.9rem; }
main { max-width:64rem; margin:0 auto; padding:1rem 1.25rem; }
main p, main ul, main ol, .stack { max-width:40rem; }
footer { max-width:64rem; margin:0 auto; padding:2rem 1.25rem; color:var(--muted); font-size:.9rem; border-top:1px solid var(--line); }
h1 { font-size:1.9rem; line-height:1.2; margin:1.2rem 0 .8rem; } h2 { font-size:1.25rem; margin:2rem 0 .6rem; }
a { color:var(--accent); } .lead { font-size:1.15rem; }
.card { background:var(--block); border:1px solid var(--line); border-radius:10px; padding:1rem 1.25rem; margin:1.2rem 0; }
.stack { display:flex; flex-direction:column; gap:1rem; } .row { display:flex; gap:.5rem; align-items:center; }
label { display:block; font-weight:600; } label.check { font-weight:400; display:flex; gap:.6rem; align-items:baseline; } label.check input { flex:none; margin:0; }
input:not([type=checkbox]) { width:100%; font:inherit; padding:.55rem .65rem; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--ink); margin-top:.25rem; }
.suffix { white-space:nowrap; color:var(--muted); margin-top:.25rem; }
button, .button { font:inherit; padding:.6rem 1.1rem; border-radius:6px; border:1px solid var(--line); background:var(--bg); color:var(--ink); cursor:pointer; text-decoration:none; display:inline-block; }
.primary { background:var(--accent); border-color:var(--accent); color:var(--on-accent); font-weight:600; }
:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.muted { color:var(--muted); } small.muted { font-weight:400; } .error { color:var(--bad); font-weight:600; } .ok { color:var(--ok); font-weight:600; } .warn { color:var(--warn); }
.price { font-size:2rem; font-weight:700; margin:.2rem 0 1rem; } .price .muted { font-size:1rem; font-weight:400; }
table.prices { width:100%; border-collapse:collapse; } .prices th, .prices td { text-align:start; padding:.5rem .6rem; border-bottom:1px solid var(--line); }
progress { width:100%; height:1rem; } details { margin:-.2rem 0 0; } summary { cursor:pointer; color:var(--accent); }
code { background:var(--block); padding:.05rem .3rem; border-radius:4px; }
@media (max-width:30rem) { html { font-size:16px; } h1 { font-size:1.6rem; } }

table.counts, table.years, table.preview { width:100%; border-collapse:collapse; font-size:.95rem; margin:.4rem 0 1rem; }
.counts th, .years th, .preview th { text-align:start; font-weight:600; }
.counts td, .counts th, .years td, .years th, .preview td, .preview th { padding:.3rem .5rem; border-bottom:1px solid var(--line); }
td.num { text-align:end; font-variant-numeric:tabular-nums; }
.years tr.off { opacity:.4; } .years progress { height:.6rem; }
.preview td { max-width:16rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row.wrap { flex-wrap:wrap; align-items:flex-end; } .row.wrap > label.check { flex-basis:100%; } select { font:inherit; padding:.4rem; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--ink); }
details { margin:.4rem 0; } details summary { font-weight:600; color:var(--ink); }

/* Language selector and the scripts of the other languages (system fonts only: the CSP allows no external ones). */
.top { flex-wrap:wrap; } .langs { margin-inline-start:auto; display:flex; flex-wrap:wrap; gap:.2rem .8rem; font-size:.9rem; }
.langs a { color:var(--muted); text-decoration:none; } .langs a.on { color:var(--ink); font-weight:600; border-bottom:2px solid var(--accent); }
html[lang^="zh"] body { font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif; line-height:1.8; }
html[lang^="ja"] body { font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo","Noto Sans JP",system-ui,sans-serif; line-height:1.8; }
html[lang^="ar"] body { font-family:"Geeza Pro","Segoe UI","Noto Sans Arabic",system-ui,sans-serif; line-height:1.8; }
code, .suffix { direction:ltr; unicode-bidi:isolate; }
.next { background:var(--bg); border-inline-start:3px solid var(--accent); padding:.4rem .8rem; margin:.5rem 0 0; }
textarea { width:100%; font:inherit; padding:.55rem .65rem; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--ink); margin-top:.25rem; resize:vertical; }
h3 { font-size:1.05rem; margin:1.2rem 0 .5rem; }
.backup { background:var(--bg); border-inline-start:3px solid var(--accent); padding:.4rem .8rem; }
.card:has(> .stack) { max-width:44rem; }
.labelrow { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; }
.labelrow label { display:inline; }
.linklike { border:0; background:none; padding:0; font-size:.85rem; color:var(--accent); text-decoration:underline; }
.popup { margin:auto; width:min(32rem,calc(100vw - 2rem)); padding:1.2rem 1.4rem; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--ink); }
.popup::backdrop { background:rgb(0 0 0 / .45); }
.popup h3 { margin-top:0; }
.tabs { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 1rem; } .tab { padding:.4rem .9rem; border:1px solid var(--line); border-radius:6px; text-decoration:none; color:var(--ink); } .tab[aria-current] { background:var(--accent); border-color:var(--accent); color:var(--on-accent); font-weight:600; }

/* A section that is closed until the reader opens it: the title is its summary. */
details.fold { margin:0; border-bottom:1px solid var(--line); } details.fold > summary { font-size:1.15rem; font-weight:600; padding:.8rem 0; list-style-position:inside; cursor:pointer; }
details.fold[open] > summary { padding-bottom:.2rem; } details.fold[open] { padding-bottom:.8rem; }
.card details.fold { border-bottom:0; } .card details.fold > summary { padding:.2rem 0; }
.recovery { columns:2; list-style:none; padding:0; font-size:1.05rem; }

/* The keys and tokens the customer pastes are text boxes shown as dots, not password boxes: a browser fills a password box with the
   saved password of the site, and a customer lost their API key to Chrome doing that (22/10/2026). */
input.secret { -webkit-text-security: disc; }

.acct { margin-inline-start:auto; display:flex; gap:.8rem; align-items:baseline; font-size:.9rem; } .acct form { display:inline; margin:0; }
.acct a { color:var(--ink); } button.link { border:0; background:none; padding:0; color:var(--muted); text-decoration:underline; cursor:pointer; font-size:inherit; }
.top .langs { margin-inline-start:0; }
.copyrow { display:flex; gap:.5rem; align-items:center; margin:.4rem 0 .9rem; }
.copyrow input, .copyrow code.cmd { flex:1; min-width:0; font:inherit; font-family:ui-monospace,monospace; font-size:.9rem; padding:.45rem .6rem; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--ink); overflow-x:auto; white-space:nowrap; }
button.icon { padding:.45rem .55rem; line-height:0; flex:none; }
button.icon.copied { border-color:var(--ok, #2a7); color:var(--ok, #2a7); }
/* The pages of the administrator: wide cards with tables that scroll inside the card instead of leaving it. */
.card.wide { max-width:none; }
.tablewrap { overflow-x:auto; margin:.4rem 0 1rem; } .tablewrap table.counts { margin:0; min-width:100%; }
.counts td.nowrap, .counts th.nowrap { white-space:nowrap; }
.counts td.num, .counts th.num { text-align:end; }
a.iconlink { display:inline-flex; vertical-align:middle; margin-inline-start:.4rem; color:var(--muted); } a.iconlink:hover { color:var(--ink); }
.filters { display:flex; flex-wrap:wrap; gap:.8rem 1rem; align-items:flex-end; margin:.5rem 0 1rem; } .filters label { display:flex; flex-direction:column; gap:.2rem; font-weight:600; } .filters input[name=q] { min-width:16rem; }
.asclient { display:inline-block; margin:.2rem 0 1rem; }
.counts td.icon, .counts th:empty { width:1%; padding-inline-end:0; } .counts td.icon a.iconlink { margin:0; }
