
:root {
  --navy: #1b1b5a; --orange: #f05a1c; --gray: #787878;
  --bg: #f7f7fb; --surface: #ffffff; --band: #1b1b5a; --band-fg: #f1f1fa;
  --fg: #14143a; --muted: #5a5a72; --line: #dcdce8; --on-orange: #14143a;
  --good: #1d7a3c; --bad: #b3261e; --warn: #8a5a00;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e2a; --surface: #17174a; --band: #17174a; --band-fg: #f1f1fa;
    --fg: #eeeef8; --muted: #a9a9c4; --line: #2b2b66;
    --good: #5fd18a; --bad: #ff8f87; --warn: #f2c15a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e2a; --surface: #17174a; --band: #17174a; --band-fg: #f1f1fa;
  --fg: #eeeef8; --muted: #a9a9c4; --line: #2b2b66;
  --good: #5fd18a; --bad: #ff8f87; --warn: #f2c15a; color-scheme: dark;
}
* { box-sizing: border-box; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1120px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }

header { background: var(--bg); border-bottom: 1px solid var(--line); margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: 46px; display: block; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; letter-spacing: 0.01em; }
.brand small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
nav { display: flex; align-items: center; gap: 26px; }
nav a.link { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
nav a.link:hover, nav a.link.on { color: var(--orange); }
.btn { display: inline-block; background: var(--orange); color: var(--on-orange); font-family: var(--display); font-weight: 800; font-size: 0.98rem; text-decoration: none; padding: 12px 22px; border-radius: 4px; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); border: 2px solid var(--fg); padding: 10px 20px; }
.btn.small { font-size: 0.88rem; padding: 8px 14px; }
.btn.small.ghost { padding: 6px 12px; }

nav a, .brand span { white-space: nowrap; }
@media (max-width: 1040px) { .brand small { display: none; } nav { gap: 18px; } }
@media (max-width: 760px) { nav { gap: 14px; } nav a.link { display: none; } nav a.link.m { display: inline; font-size: 0.85rem; } .brand small { display: none; } nav a { white-space: nowrap; } nav .btn { padding: 8px 12px; font-size: 0.85rem; } .bar { gap: 8px; } .brand { gap: 8px; } .brand img { width: 38px; height: 38px; } .brand span { font-size: 0.95rem; } }
@media (max-width: 480px) { nav a.link.m[href$="employees.html"] { display: none; } }

.hubhead { padding-block: 56px 28px; max-width: 46em; }
.eyebrow { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hubhead h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 900; }
.hubhead h1 em { font-style: normal; color: var(--orange); }
.hubhead p { margin-top: 18px; color: var(--muted); font-size: 1.12rem; }
.privacy { margin-top: 22px; display: inline-block; font-size: 0.9rem; font-weight: 600; border: 1.5px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; }

.group { margin-top: 38px; }
.group h2 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: var(--body); margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; min-width: 0; }
.card:hover { border-color: var(--orange); }
.card .ic { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--orange); margin-bottom: 14px; }
.card h3 { font-size: 1.12rem; font-weight: 800; }
.card p { color: var(--muted); font-size: 0.93rem; margin-top: 6px; }

.tool { padding-block: 36px 40px; }
.back { display: inline-block; font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--muted); margin-bottom: 18px; }
.back:hover { color: var(--orange); }
.tool h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; }
.tool .sub { color: var(--muted); margin-top: 10px; max-width: 44em; }
.panel { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.field { display: grid; gap: 6px; }
label, .lbl { font-weight: 600; font-size: 0.88rem; }
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; min-width: 0; }
textarea { min-height: 150px; resize: vertical; }
input[type="checkbox"] { width: auto; accent-color: var(--orange); }
input[type="file"] { padding: 9px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 0.93rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 20px; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--bg); min-width: 0; }
.stat .k { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin-top: 2px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stat .v.good { color: var(--good); } .stat .v.bad { color: var(--bad); } .stat .v.warn { color: var(--warn); }
.note { color: var(--muted); font-size: 0.88rem; margin-top: 14px; }
.msg { margin-top: 14px; font-size: 0.93rem; font-weight: 600; }
.msg.good { color: var(--good); } .msg.bad { color: var(--bad); } .msg.warn { color: var(--warn); }
.scroll { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 0.8rem; font-weight: 600; border: 1px solid var(--line); background: var(--bg); padding: 3px 10px; border-radius: 999px; }
.chip.bad { color: var(--bad); border-color: var(--bad); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.thumb { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--bg); text-align: center; }
.thumb img, .thumb canvas { max-width: 100%; height: auto; display: block; margin: 0 auto 8px; border-radius: 4px; }
.cta { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.cta p { color: var(--muted); max-width: 36em; }
.ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.ol li { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--bg); min-width: 0; }
.ol li span { overflow-wrap: anywhere; min-width: 0; }
.ol .acts { display: flex; gap: 6px; flex-shrink: 0; }
.dis { font-size: 0.82rem; color: var(--muted); margin-top: 16px; border-left: 3px solid var(--line); padding-left: 12px; }
footer { padding-block: 30px 44px; color: var(--muted); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 24px; }
canvas.qr { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
/* ===extra=== */
.th1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 900; }
.th1 em { font-style: normal; color: var(--orange); }
.field { align-content: start; }
.row2 + .row2, .row2 + .check, .field + .row2, .panel > * + .stats { margin-top: 16px; }
.panel > .check { margin-top: 12px; }
.itemrow input { min-width: 0; }
.itemrow { list-style: none; }
.invoice { max-width: 100%; overflow-x: auto; }
.hint { font-size: 0.8rem; color: var(--muted); }
.explain { margin-top: 34px; max-width: 46em; }
.explain h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.explain ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--muted); }
.explain details { border-top: 1px solid var(--line); padding: 12px 0; }
.explain details:last-child { border-bottom: 1px solid var(--line); }
.explain summary { cursor: pointer; font-weight: 600; }
.explain details p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }
.cards.mini { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cards.mini .card { padding: 14px 16px; }
.cards.mini h3 { font-size: 1rem; }
.search { margin-top: 24px; max-width: 28em; }
.itemrow { display: grid; grid-template-columns: 1fr 80px 100px auto; gap: 8px; align-items: center; }
@media (max-width: 600px) { .itemrow { grid-template-columns: 1fr 1fr; } .itemrow input:first-child { grid-column: 1 / -1; } }
.invoice { margin-top: 24px; background: #fff; color: #111; border: 1px solid var(--line); border-radius: 6px; padding: 28px; font-size: 0.95rem; }
.invoice h2 { font-size: 1.8rem; letter-spacing: 0.1em; color: #1b1b5a; }
.invoice .ihead, .invoice .imeta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.invoice .iright { text-align: right; }
.invoice .pre { white-space: pre-line; }
.invoice table { margin-top: 10px; } .invoice th, .invoice td { border-color: #ddd; color: #111; }
.invoice .itot { text-align: right; margin-top: 14px; } .invoice .big { font-size: 1.3rem; font-weight: 800; }
.invoice .inotes { margin-top: 24px; color: #444; font-size: 0.9rem; }
.ckh { font-size: 1rem; margin: 20px 0 8px; }
.ckitem { align-items: flex-start; padding: 4px 0; }
.ckitem input { margin-top: 5px; }
@media print { body { background: #fff; } body * { visibility: hidden; } #inv-out, #inv-out * { visibility: visible; } #inv-out { position: absolute; left: 0; top: 0; width: 100%; border: 0; } }

/* ===polish=== */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--orange); color: #fff; }
header { position: sticky; top: 0; z-index: 10; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  header { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
}
nav a.link { position: relative; transition: color .15s ease; }
nav a.link.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--orange); }
.btn { border-radius: 6px; line-height: 1.25; text-align: center; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease; box-shadow: 0 1px 0 rgba(20,20,58,.10), 0 8px 18px -10px rgba(240,90,28,.65); }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(20,20,58,.10), 0 12px 24px -12px rgba(240,90,28,.8); }
.btn:active { transform: translateY(0); filter: brightness(.97); }
.btn.ghost { box-shadow: none; }
.btn.ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); filter: none; box-shadow: none; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; margin-right: 10px; vertical-align: middle; transform: translateY(-2px); background: var(--orange); border-radius: 2px; }
.hubhead { padding-block: 64px 32px; }
.hubhead h1, .th1 { font-stretch: 108%; letter-spacing: -0.02em; }
.hubhead p:not(.eyebrow):not(.privacy) { line-height: 1.55; }
.privacy { border-width: 1px; box-shadow: 0 1px 2px rgba(20,20,58,.05); }
.privacy::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; vertical-align: middle; transform: translateY(-1px); background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }
.group { margin-top: 44px; }
.group h2 { display: flex; align-items: center; gap: 14px; }
.group h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cards { gap: 16px; }
.card { border-radius: 12px; box-shadow: 0 1px 2px rgba(20,20,58,.04); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(27,27,90,.38); }
.card .ic { border-width: 1px; background: color-mix(in srgb, var(--orange) 9%, var(--surface)); border-color: color-mix(in srgb, var(--orange) 24%, var(--line)); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.card:hover .ic { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.card h3 { line-height: 1.2; }
.card p { line-height: 1.5; }
.back { display: inline-flex; align-items: center; gap: 6px; transition: color .15s ease; }
.tool { padding-block: 40px 44px; }
.tool .sub { font-size: 1.06rem; line-height: 1.55; }
.panel { border-radius: 14px; padding: clamp(18px, 3vw, 30px); box-shadow: 0 1px 2px rgba(20,20,58,.04), 0 20px 44px -30px rgba(27,27,90,.4); }
label, .lbl { letter-spacing: .005em; }
input, select, textarea { border-width: 1px; border-radius: 8px; transition: border-color .15s ease, box-shadow .15s ease; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--fg) 28%, var(--line)); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
input[type="file"] { cursor: pointer; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: .88rem; margin-right: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); cursor: pointer; }
.hint { line-height: 1.4; }
.stats { gap: 12px; }
.stat { border-radius: 10px; padding: 14px 16px; }
.stat .v { letter-spacing: -0.01em; }
.chip { border-radius: 999px; }
.thumb, .ol li { border-radius: 10px; }
th { background: color-mix(in srgb, var(--line) 35%, transparent); }
th:first-child { border-top-left-radius: 6px; } th:last-child { border-top-right-radius: 6px; }
.cta { margin-top: 32px; padding: 24px 28px; border: 0; border-radius: 14px; background: var(--band); color: var(--band-fg); }
.cta p { color: #d4d4ec; }
.explain { margin-top: 44px; }
.explain ol li::marker { color: var(--orange); font-family: var(--display); font-weight: 800; }
.explain summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color .15s ease; }
.explain summary::-webkit-details-marker { display: none; }
.explain summary::after { content: "+"; flex-shrink: 0; font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1; color: var(--orange); }
.explain details[open] summary::after { content: "\2013"; }
.explain summary:hover { color: var(--orange); }
.cards.mini .card .ic { display: none; }
footer a { text-underline-offset: 3px; transition: color .15s ease; }
footer a:hover { color: var(--orange); }
@media (max-width: 600px) {
  .hubhead { padding-block: 40px 20px; }
  .tool { padding-block: 26px 32px; }
  .cta { padding: 20px; }
  .group { margin-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
/* ===toolhead=== */
.toolhead { position: relative; overflow: hidden; background: var(--band); color: var(--band-fg); border-radius: 16px; padding: clamp(22px, 4vw, 40px); }
.toolhead::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255,255,255,.04); pointer-events: none; }
.toolhead .back { color: #c9c9e6; }
.toolhead .back:hover { color: var(--orange); }
.toolhead .th1 { position: relative; padding-bottom: 18px; }
.toolhead .th1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--orange); }
.toolhead .sub { color: #d4d4ec; margin-top: 16px; }
.toolhead + .panel { margin-top: 20px; }
:root[data-theme="dark"] .toolhead { border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toolhead { border: 1px solid var(--line); } }
.builtby { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.builtby img { width: 40px; height: 40px; flex-shrink: 0; }
.builtby p { flex: 1 1 260px; color: var(--muted); font-size: .95rem; }
.builtby strong { color: var(--fg); font-family: var(--display); font-weight: 800; }
.builtby + .wrap footer, .wrap:has(.builtby) + .wrap footer { margin-top: 28px; }

:root[data-theme="dark"] .brand img { background: #fff; border-radius: 10px; padding: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { background: #fff; border-radius: 10px; padding: 3px; } }
