:root { --bg:#ffffff; --band:#f5f6f8; --surface:#ffffff; --text:#12151c; --muted:#5d6676; --line:#e3e6ec; --accent-ink:#fff; --soft:color-mix(in srgb,var(--accent) 9%,#fff); --good:#0a7d33; --bad:#b42318; --radius:16px; }
@media (prefers-color-scheme:dark) { :root { --bg:#0f1218; --band:#141821; --surface:#181c26; --text:#eceff4; --muted:#9aa3b3; --line:#2a303c; --accent:var(--accent-d); --accent-ink:#0b0e14; --soft:color-mix(in srgb,var(--accent) 14%,#0f1218); --good:#4ade80; --bad:#ff8a80; } }
* { box-sizing:border-box; margin:0; }
html { -webkit-text-size-adjust:100%; }
body { font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--text); line-height:1.65; font-size:16.5px; }
a { color:var(--accent); }
button,input,select,textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
[hidden] { display:none !important; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
.wrap { max-width:860px; margin:0 auto; padding:0 20px; }
.wrap.wide { max-width:1000px; }

/* Header */
header.site { border-bottom:1px solid var(--line); }
header.site .wrap { display:flex; align-items:center; justify-content:space-between; min-height:64px; gap:16px; }
.logo { display:flex; align-items:center; gap:10px; font-weight:800; color:var(--text); text-decoration:none; font-size:1.1rem; letter-spacing:-0.01em; }
.logo i { width:32px; height:32px; border-radius:9px; background:var(--accent); display:grid; place-items:center; font-style:normal; font-size:17px; flex:none; }
nav.top { display:flex; gap:2px; align-items:center; }
nav.top a { color:var(--muted); text-decoration:none; font-size:15px; font-weight:600; padding:7px 12px; border-radius:9px; white-space:nowrap; }
nav.top a:hover { background:var(--band); color:var(--text); }
nav.top a.all { border:1px solid var(--line); color:var(--text); margin-left:6px; }
@media (max-width:640px) { nav.top a:not(.all) { display:none; } }

/* Tool pages */
main { padding:34px 0 72px; }
.crumbs { font-size:14px; color:var(--muted); margin-bottom:14px; }
.langs { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 16px; }
.langs a, .langs b { padding:4px 13px; border-radius:999px; border:1px solid var(--line); text-decoration:none; color:var(--text); font-weight:600; font-size:14px; }
.langs a:hover, .langs b { border-color:var(--accent); background:var(--soft); }
.crumbs a { color:var(--muted); text-decoration:none; } .crumbs a:hover { text-decoration:underline; }
h1 { font-size:clamp(1.8rem,5vw,2.5rem); line-height:1.12; letter-spacing:-0.025em; margin-bottom:10px; }
.lead { color:var(--muted); font-size:1.12rem; max-width:640px; margin-bottom:26px; }
h2 { font-size:1.4rem; letter-spacing:-0.015em; margin:46px 0 12px; }
.prose p { margin-bottom:14px; max-width:700px; }
.prose ol, .prose ul { padding-left:24px; margin-bottom:14px; max-width:700px; }
.prose li { margin-bottom:8px; padding-left:4px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.05); }
.drop { border:2px dashed var(--line); border-radius:14px; padding:38px 18px; text-align:center; background:var(--band); transition:border-color .15s, background .15s; }
.drop.over { border-color:var(--accent); background:var(--soft); }
.drop strong { display:block; font-size:1.12rem; margin-bottom:12px; }
.drop small { color:var(--muted); display:block; margin-top:12px; font-size:14px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:12px 22px; border-radius:11px; border:0; background:var(--accent); color:var(--accent-ink); font-weight:700; text-decoration:none; }
.btn:hover { filter:brightness(1.08); }
.btn.alt { background:var(--surface); color:var(--text); border:1px solid var(--line); }
.btn.sm { padding:8px 14px; font-size:14.5px; border-radius:9px; }
.btn:disabled { opacity:.5; cursor:default; }
.off { opacity:.5; pointer-events:none; }
.opts { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:16px; margin-top:20px; align-items:end; }
.opts label, .field label { display:grid; gap:6px; font-size:13.5px; font-weight:700; color:var(--muted); }
.opts input, .opts select, .field input, .field select, .field textarea { border:1px solid var(--line); background:var(--bg); border-radius:10px; padding:11px 12px; width:100%; font-weight:500; color:var(--text); font-size:16px; }
.opts input:focus, .opts select:focus, .field input:focus, .field textarea:focus { outline:0; border-color:var(--accent); box-shadow:0 0 0 3px var(--soft); }
.opts input[type=range] { padding:0; border:0; box-shadow:none; accent-color:var(--accent); }
.opts input[type=color] { padding:3px; height:44px; }
.check { display:flex !important; align-items:center; gap:9px; font-weight:600 !important; color:var(--text) !important; font-size:15px !important; }
.check input { width:18px; height:18px; accent-color:var(--accent); flex:none; }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.chip { padding:8px 14px; border-radius:999px; border:1px solid var(--line); background:var(--bg); font-size:14.5px; font-weight:600; color:var(--text); text-decoration:none; }
.chip:hover, .chip[aria-pressed="true"], .chip[aria-current="page"] { border-color:var(--accent); background:var(--soft); }
details.more { margin-top:18px; } details.more summary { cursor:pointer; font-weight:700; font-size:14.5px; color:var(--accent); }
.results { display:grid; gap:12px; margin-top:18px; }
.results:empty { display:none; }
.result { display:grid; grid-template-columns:64px 1fr auto; gap:14px; align-items:center; border:1px solid var(--line); border-radius:12px; padding:12px; background:var(--band); }
.result img, .result .ph { width:64px; height:64px; object-fit:cover; border-radius:8px; background:var(--line); display:grid; place-items:center; font-size:1.5rem; }
.result .name { font-weight:700; word-break:break-all; font-size:15px; }
.result .meta { color:var(--muted); font-size:14px; }
.result .meta b { color:var(--good); } .result .meta .warn { color:var(--bad); font-weight:700; }
.result .acts { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.cropper { grid-column:1/-1; display:grid; gap:10px; justify-items:start; padding-top:4px; }
.cropper canvas { max-width:100%; height:auto; border-radius:10px; border:1px solid var(--line); cursor:grab; touch-action:none; background:#fff; }
.cropper small { color:var(--muted); font-size:14px; }
.cropper label { display:flex; align-items:center; gap:10px; font-size:14px; font-weight:700; color:var(--muted); width:min(300px,100%); } .cropper input[type=range] { flex:1; accent-color:var(--accent); }
.msg { margin-top:14px; font-size:15px; color:var(--muted); } .msg:empty { display:none; } .msg.err { color:var(--bad); font-weight:600; }
.field { display:grid; gap:16px; }
.field textarea { min-height:200px; resize:vertical; line-height:1.55; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:12px; margin-top:18px; }
.stat { border:1px solid var(--line); border-radius:12px; padding:14px; background:var(--band); }
.stat b { display:block; font-size:1.6rem; font-variant-numeric:tabular-nums; line-height:1.2; } .stat span { color:var(--muted); font-size:13.5px; }
.qrwrap { display:grid; grid-template-columns:1fr 280px; gap:28px; align-items:start; }
.qrbox { text-align:center; } .qrbox canvas { max-width:100%; height:auto; border:1px solid var(--line); border-radius:12px; background:#fff; }
.qrbox .acts { display:flex; gap:8px; justify-content:center; margin-top:14px; flex-wrap:wrap; }
.pw { display:flex; gap:8px; flex-wrap:wrap; } .pw input { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:1.05rem; min-width:0; }
details.faq { border-bottom:1px solid var(--line); padding:16px 0; max-width:700px; }
details.faq summary { font-weight:700; cursor:pointer; }
details.faq p { margin-top:10px; color:var(--muted); }
.sizes { margin-top:22px; } .sizes b { font-size:14px; color:var(--muted); display:block; }
.sizes .chips { margin-top:8px; }
.morebox { margin-top:56px; padding:26px; background:var(--band); border-radius:var(--radius); }
.morebox h2 { margin:0 0 4px; font-size:1.2rem; }
.morebox .row { margin-top:16px; } .morebox .row b { font-size:13px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); }
.morebox .chips { margin-top:8px; } .morebox .chip { background:var(--surface); }

/* Home pages */
.hero { text-align:center; padding:44px 0 16px; }
.hero h1 { font-size:clamp(2rem,6vw,3rem); max-width:720px; margin:0 auto 14px; }
.hero .lead { margin:0 auto 10px; max-width:560px; }
.badges { display:flex; gap:8px 22px; justify-content:center; flex-wrap:wrap; color:var(--muted); font-size:14.5px; margin-top:16px; }
.badges span::before { content:"✓ "; color:var(--accent); font-weight:800; }
.group { margin-top:52px; }
.group h2 { margin:0 0 4px; font-size:1.5rem; }
.group > p { color:var(--muted); margin-bottom:18px; }
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px; }
.tool { display:flex; gap:14px; align-items:flex-start; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:20px; text-decoration:none; color:var(--text); transition:border-color .15s, transform .15s, box-shadow .15s; }
.tool:hover { border-color:var(--accent); transform:translateY(-3px); box-shadow:0 10px 26px rgba(16,24,40,.08); }
.tool i { width:44px; height:44px; border-radius:12px; background:var(--soft); display:grid; place-items:center; font-style:normal; font-size:1.35rem; flex:none; }
.tool b { display:block; font-size:1.05rem; line-height:1.3; margin-bottom:3px; } .tool span { color:var(--muted); font-size:14.5px; line-height:1.45; display:block; }
.pillrow { margin-top:18px; display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap; }
.pillrow > b { font-size:14.5px; color:var(--muted); font-weight:600; }
.pillrow .chips { margin-top:0; }
.why { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-top:64px; }
.why div { padding:22px; background:var(--band); border-radius:var(--radius); }
.why b { display:block; margin-bottom:4px; } .why p { color:var(--muted); font-size:15px; }
.hub { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin:36px auto 0; max-width:780px; }
@media (max-width:640px) { .hub { grid-template-columns:1fr; } }
.hub a { display:block; padding:28px; border:1px solid var(--line); border-radius:20px; text-decoration:none; color:var(--text); background:var(--surface); transition:transform .15s, box-shadow .15s, border-color .15s; border-top:4px solid var(--c); }
.hub a:hover { transform:translateY(-4px); box-shadow:0 14px 34px rgba(16,24,40,.1); }
.hub i { font-style:normal; font-size:2rem; display:block; margin-bottom:10px; }
.hub b { font-size:1.3rem; display:block; margin-bottom:4px; } .hub span { color:var(--muted); display:block; margin-bottom:12px; }
.hub em { font-style:normal; font-weight:700; color:var(--text); }

/* Footer */
footer.site { border-top:1px solid var(--line); padding:30px 0 36px; font-size:14.5px; color:var(--muted); }
footer.site .links { display:flex; gap:6px 22px; flex-wrap:wrap; margin-bottom:10px; }
footer.site a { color:var(--muted); text-decoration:none; } footer.site a:hover { color:var(--text); text-decoration:underline; }
footer.site b { color:var(--text); }
.ad { margin:28px 0; min-height:100px; text-align:center; }
@media (max-width:640px) { body { font-size:16px; } .card { padding:16px; } .qrwrap { grid-template-columns:1fr; } .result { grid-template-columns:48px 1fr; } .result img, .result .ph { width:48px; height:48px; } .result .acts { grid-column:1/-1; justify-content:flex-start; } main { padding-top:22px; } .hero { padding-top:22px; } .morebox { padding:18px; } }

/* Document makers */
.wrap.wide:has(.doc) { max-width:1180px; }
.doc { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:26px; align-items:start; }
.docform h3 { font-size:1.02rem; margin:26px 0 10px; } .docform h3:first-child { margin-top:0; }
.fnote { color:var(--muted); font-size:14px; margin:-4px 0 10px; }
.fgrid { display:grid; grid-template-columns:1fr 1fr; gap:14px; } .fgrid .full { grid-column:1/-1; }
.docform label { display:grid; gap:6px; font-size:13.5px; font-weight:700; color:var(--muted); align-content:start; }
.docform input:not([type=checkbox]):not([type=file]), .docform select, .docform textarea { border:1px solid var(--line); background:var(--bg); border-radius:10px; padding:10px 12px; width:100%; font-weight:500; color:var(--text); font-size:16px; min-width:0; }
.docform input:focus, .docform select:focus, .docform textarea:focus { outline:0; border-color:var(--accent); box-shadow:0 0 0 3px var(--soft); }
.docform textarea { resize:vertical; line-height:1.5; } .docform input[type=file] { font-size:14px; max-width:100%; }
.rows { display:grid; gap:10px; margin-bottom:12px; }
.irow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; gap:8px 10px; align-items:end; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--band); } .irow .full { grid-column:1/-1; }
.prow { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) auto; gap:8px; }
.docview { position:sticky; top:14px; }
.docacts { display:flex; gap:8px; flex-wrap:wrap; } .docview .msg { margin:10px 0 12px; }
.paper { border:1px solid var(--line); border-radius:12px; background:#e7e9ee; padding:10px; overflow:hidden; margin-top:12px; }
#pages { width:794px; transform-origin:top left; }
@media (max-width:920px) { .doc { grid-template-columns:minmax(0,1fr); } .docview { position:static; } }
.docview, .docform { min-width:0; }
@media (max-width:480px) { .fgrid { grid-template-columns:1fr; } .irow { grid-template-columns:repeat(2,minmax(0,1fr)); } .irow button { grid-column:1/-1; justify-self:end; } }
/* The paper itself: fixed colours so it looks the same in light and dark mode, on screen, in the PDF and in print */
.page { width:794px; min-height:1123px; background:#fff; color:#16181d; padding:52px; margin:0 0 12px; font:14px/1.55 Arial,Helvetica,sans-serif; box-shadow:0 1px 4px rgba(0,0,0,.15); box-sizing:border-box; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.page:last-child { margin-bottom:0; } .page p { margin:0 0 8px; max-width:none; } .page b { font-weight:700; }
.page .ph { color:#a3a9b5; font-weight:400; }
.page .lbl { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:#6b7280; margin-bottom:3px; }
.page .line { border-top:1px solid #222; padding-top:5px; min-width:190px; text-align:center; font-size:12.5px; }
.rentpage { display:flex; flex-direction:column; gap:26px; padding:44px 52px; }
.receipt { border:1.5px solid #222; padding:22px 24px; min-height:322px; display:flex; flex-direction:column; box-sizing:border-box; }
.rhead { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; } .rhead b { font-size:20px; letter-spacing:.06em; } .rhead span { text-align:right; font-size:13px; }
.rfoot { margin-top:auto; display:flex; justify-content:space-between; align-items:flex-end; gap:16px; } .sign { display:flex; align-items:flex-end; gap:14px; }
.stamp { width:74px; height:84px; border:1px dashed #888; font-size:10px; line-height:1.3; color:#888; display:flex; align-items:center; justify-content:center; text-align:center; }
.ihead { display:flex; justify-content:space-between; gap:24px; padding-bottom:18px; border-bottom:2px solid #16181d; }
.who { display:flex; gap:14px; align-items:flex-start; } .who .logo { max-width:90px; max-height:90px; } .biz { font-size:22px; font-weight:700; line-height:1.25; margin-bottom:4px; }
.invpage .meta { text-align:right; white-space:nowrap; } .ttl { font-size:22px; font-weight:700; letter-spacing:.05em; margin-bottom:6px; } .invpage .to { margin:20px 0; }
table.items { width:100%; border-collapse:collapse; font-size:13px; } .items th { background:#16181d; color:#fff; padding:8px; text-align:right; font-weight:600; }
.items td { padding:8px; border-bottom:1px solid #d9dce3; text-align:right; vertical-align:top; } .items .l { text-align:left; } .items th:first-child, .items td:first-child { text-align:left; width:28px; }
.sum { display:flex; justify-content:space-between; gap:24px; margin-top:16px; } .inwords { max-width:330px; font-size:13px; }
table.tot { border-collapse:collapse; min-width:270px; } .tot td { padding:5px 8px; text-align:right; } .tot td:first-child { text-align:left; color:#444; } .tot .grand td { border-top:2px solid #16181d; font-size:17px; font-weight:700; padding-top:8px; color:#16181d; }
.pay { display:flex; gap:30px; margin-top:22px; font-size:13px; } .qr { display:flex; gap:10px; align-items:center; } .qr img { width:96px; height:96px; } .notes { margin-top:18px; font-size:13px; }
.isign { margin-top:46px; display:flex; flex-direction:column; align-items:flex-end; gap:54px; }
.bio { padding:34px; } .bio .frame { min-height:1055px; padding:34px 44px; box-sizing:border-box; }
.bhead { text-align:center; font-size:17px; margin-bottom:6px; } .btitle { text-align:center; font-size:30px; letter-spacing:.14em; font-weight:700; margin-bottom:22px; }
.btop { display:flex; gap:26px; align-items:flex-start; } .bmain { flex:1; min-width:0; } .bphoto { width:170px; height:215px; order:2; }
.bio h4 { font-size:16px; margin:20px 0 8px; padding-bottom:5px; text-transform:uppercase; letter-spacing:.08em; } .btop h4 { margin-top:0; }
.bio table { width:100%; border-collapse:collapse; font-size:15px; } .bio th { text-align:left; font-weight:600; width:38%; padding:5px 10px 5px 0; vertical-align:top; } .bio td { padding:5px 0; }
.bio-classic { background:#fffaf0; font-family:Georgia,"Times New Roman",serif; } .bio-classic .frame { border:6px double #7a1f2b; } .bio-classic .btitle, .bio-classic .bhead, .bio-classic h4 { color:#7a1f2b; } .bio-classic h4 { border-bottom:1px solid #c9a227; } .bio-classic .bphoto { border:3px solid #c9a227; }
.bio-rose { background:#fff5f7; font-family:Georgia,"Times New Roman",serif; } .bio-rose .frame { border:2px solid #d4879c; border-radius:18px; } .bio-rose .btitle, .bio-rose .bhead, .bio-rose h4 { color:#b0476a; } .bio-rose h4 { border-bottom:1px dashed #e3a9b9; } .bio-rose .bphoto { border-radius:12px; }
.bio-modern .frame { border-top:10px solid #1d4ed8; padding-top:30px; } .bio-modern .btitle { text-align:left; letter-spacing:.04em; color:#1d4ed8; } .bio-modern .bhead { text-align:left; color:#1d4ed8; } .bio-modern h4 { color:#1d4ed8; border-bottom:2px solid #dbe4ff; }
@media print {
  @page { size:A4; margin:0; }
  .hasdoc header.site, .hasdoc footer.site, .hasdoc .crumbs, .hasdoc .langs, .hasdoc h1, .hasdoc .lead, .hasdoc .docform, .hasdoc .docacts, .hasdoc .prose, .hasdoc .morebox, .hasdoc .msg { display:none !important; }
  .hasdoc main, .hasdoc .wrap { padding:0 !important; margin:0 !important; max-width:none !important; } .hasdoc .doc { display:block; }
  .hasdoc .paper { border:0; padding:0; background:none; height:auto !important; overflow:visible; margin:0; } .hasdoc #pages { transform:none !important; }
  .hasdoc .page { box-shadow:none; margin:0; break-after:page; } .hasdoc .page:last-child { break-after:auto; }
}
/* Invoice extras and the small shop receipt */
.to2 { display:flex; justify-content:space-between; gap:30px; margin:20px 0; } .to2 > div { min-width:0; }
.xtra table { border-collapse:collapse; } .xtra th { text-align:left; font-weight:400; color:#555; padding:1px 14px 1px 0; vertical-align:top; white-space:nowrap; } .xtra td { font-weight:700; padding:1px 0; }
.page.slip { width:302px; min-height:0; padding:18px 14px 22px; font:12px/1.45 Arial,Helvetica,sans-serif; }
.slip .logo { display:block; max-width:70px; max-height:70px; margin:0 auto 6px; } .sbiz { text-align:center; font-size:16px; font-weight:700; line-height:1.25; } .slip .sc { text-align:center; }
.sttl { text-align:center; font-weight:700; letter-spacing:.1em; margin:8px 0 6px; padding:5px 0; border-top:1px dashed #555; border-bottom:1px dashed #555; }
.srow { display:flex; justify-content:space-between; gap:10px; } .stot { font-size:15px; font-weight:700; border-top:1px dashed #555; margin-top:4px; padding-top:4px; }
table.sitems { width:100%; border-collapse:collapse; margin:8px 0 6px; } .sitems th { border-top:1px dashed #555; border-bottom:1px dashed #555; padding:4px 0 4px 6px; text-align:right; font-weight:700; }
.sitems td { padding:3px 0 3px 6px; text-align:right; vertical-align:top; } .sitems .l { text-align:left; padding-left:0; } .sitems small { color:#555; font-size:10.5px; } .sitems tbody tr:last-child td { padding-bottom:6px; }
.sitemsn { color:#555; margin-top:6px; } .sqr { width:120px; height:120px; margin-top:8px; } .snote { margin-top:8px; padding-top:6px; border-top:1px dashed #555; }
