:root {
  --bg: #08080a;
  --side: #0b0b0d;
  --card: #0f0f12;
  --card-2: #141418;
  --line: #1e1e23;
  --line-2: #2a2a31;
  --text: #ececef;
  --muted: #8d8d97;
  --dim: #5f5f69;
  --btn: #3f66e0;
  --btn-ink: #ffffff;
  --accent: #3f66e0;
  --field: #0b0b0e;
  --ok: #4ade80;
  --warn: #f5b942;
  --bad: #f87171;
  --info: #7ab4ff;
  --focus: #9ec5ff;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
  --radius: 14px;
  --sans: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f6f7;
  --side: #fbfbfc;
  --card: #ffffff;
  --card-2: #f7f7f8;
  --line: #e6e6ea;
  --line-2: #d7d7dd;
  --text: #121214;
  --muted: #62626c;
  --dim: #8c8c96;
  --btn: #2b4fc9;
  --btn-ink: #ffffff;
  --accent: #2b4fc9;
  --field: #ffffff;
  --ok: #16a34a;
  --warn: #b7791f;
  --bad: #dc2626;
  --info: #2563eb;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgba(16, 16, 20, .04);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: 26px; }
h2 { font-size: 17px; }
h3 { font-size: 14px; }
p { margin: 0 0 10px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
.i { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- panel shell ---------- */
.shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side .brand { display: flex; align-items: center; gap: 9px; padding: 15px 18px 14px; font-weight: 700; font-size: 17px; letter-spacing: -.03em; text-decoration: none; }
.logo { width: 24px; height: 24px; border-radius: 6px; display: block; flex: none; }
.org { margin: 4px 10px 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; display: flex; gap: 10px; align-items: center; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, var(--card-2)); color: var(--text); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.org b { display: block; font-size: 12.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.org span { font: 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.nav { padding: 2px 8px; overflow-y: auto; flex: 1; }
.nav .group { font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: 13.5px; }
.nav a:hover { color: var(--text); background: var(--card-2); }
.nav a.on { color: var(--text); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav .count { margin-left: auto; font: 11px var(--mono); color: var(--btn-ink); background: var(--btn); border-radius: 999px; padding: 0 7px; }
.side .me { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.side .me b { font-size: 12.5px; display: block; line-height: 1.2; }
.side .me span { font: 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.side .me form { margin-left: auto; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: 50px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 18px; position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); z-index: 5; }
.top .crumbs { color: var(--muted); font-size: 13px; }
.top .grow { flex: 1; }
.iconbtn { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.iconbtn:hover { color: var(--text); border-color: var(--line); }
.menu-btn { display: none; }
.pill-stat { display: flex; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; text-decoration: none; }
.content { width: 100%; max-width: 1040px; margin: 0 auto; padding: 30px 24px 70px; }

/* ---------- headings ---------- */
.head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.head .grow { flex: 1; min-width: 200px; }
.head p { margin: 5px 0 0; color: var(--muted); }
.label { font: 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 12px; }
.section-title a { color: var(--muted); font-size: 12.5px; text-decoration: none; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 20px 22px; }
.card + .card { margin-top: 14px; }
.card h2 + p, .card h3 + p { margin-top: 6px; }
.card .card-head { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.card .card-head h2 { font-size: 14.5px; flex: 1; }
.card .card-body { padding: 18px 20px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats .cell { padding: 20px 22px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; display: block; min-height: 132px; }
.stats .cell:nth-child(3n) { border-right: 0; }
.stats .cell:nth-last-child(-n+3) { border-bottom: 0; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.four .cell:nth-child(3n) { border-right: 1px solid var(--line); }
.stats.four .cell:nth-child(4n) { border-right: 0; }
.stats.four .cell:nth-last-child(-n+4) { border-bottom: 0; }
a.cell:hover { background: var(--card-2); }
.stats .num { font-size: 32px; font-weight: 600; letter-spacing: -.04em; margin: 12px 0 4px; line-height: 1.1; }
.stats .sub { color: var(--muted); font-size: 12.5px; }
.stats .label .chev { color: var(--dim); }

.checklist { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; }
.checklist .tick { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; margin-top: 2px; display: grid; place-items: center; color: var(--btn-ink); }
.checklist li.done .tick { background: var(--ok); border-color: var(--ok); }
.checklist li.done b { color: var(--muted); text-decoration: line-through; }
.checklist b { display: block; font-size: 13.5px; font-weight: 600; }
.checklist span { font-size: 12.5px; color: var(--muted); }
.progress { height: 3px; border-radius: 9px; background: var(--line); margin-top: 12px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); }

.attention { list-style: none; margin: 0; padding: 0; }
.attention li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.attention li:last-child { border-bottom: 0; }
.attention .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); margin-top: 7px; flex: none; }
.attention .dot.warn { background: var(--warn); }
.attention .dot.info { background: var(--info); }
.attention a { text-decoration: none; }
.attention b { display: block; font-size: 13.5px; }
.attention span { font-size: 12.5px; color: var(--muted); }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty .btn { margin-top: 12px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 400; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--card-2); }
.tbl a.row-link { text-decoration: none; font-weight: 500; }
.tbl a.row-link:hover { text-decoration: underline; }
.tbl .sub { display: block; color: var(--muted); font-size: 12px; }
dl.kv { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
dl.kv dt { color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
dl.kv dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
dl.kv > :nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 9px 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.badge.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.badge.info { color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, transparent); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--btn); background: var(--btn); color: var(--btn-ink); font: 600 13px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: opacity .15s ease, background-color .15s ease; }
.btn:hover { opacity: .88; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--card-2); opacity: 1; }
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.sm { height: 28px; padding: 0 12px; font-size: 12.5px; }
.btn.lg { height: 42px; padding: 0 22px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

.form { display: grid; gap: 15px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.field small { color: var(--dim); font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=url], input[type=search], select, textarea {
  width: 100%; background: var(--field); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 9px 12px; font: 14px var(--sans); transition: border-color .15s ease;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); }
/* dropdowns: our own chevron instead of the browser's, same height as text fields */
select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 38px; line-height: 1.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%238d8d97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
select:hover { border-color: var(--dim); }
select:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
select option { background: var(--card); color: var(--text); }
select:disabled { opacity: .6; cursor: not-allowed; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
/* contact form on /contact (the home page has its own styles in home.css) */
.contact__form { display: grid; gap: 15px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__form label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.contact__form label i { font-style: normal; color: var(--dim); }
.contact__form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__small { font-size: 12.5px; color: var(--muted); margin: 0; }
.contact__error { margin: 0; padding: 10px 14px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); color: var(--bad); font-size: 13.5px; }
.contact__done h3 { margin-bottom: 6px; }
.contact__form .btn--brand { background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 600; cursor: pointer; justify-self: start; }
input[type=file] { font: 13px var(--sans); color: var(--muted); }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--text); }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; margin: 0; }
legend { font: 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }

.flash { margin-bottom: 18px; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--card); display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.flash.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.flash.ok .i { color: var(--ok); }
.flash.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.flash.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.flash.warn .i { color: var(--warn); }
/* Mailbox form: the owner picker only for a personal box, the staff ticks only for a chosen one. */
.access-pick:not(:has(input[value="personal"]:checked)) [data-for="personal"],
.access-pick:not(:has(input[value="chosen"]:checked)) [data-for="chosen"] { display: none; }
.flash.bad .i { color: var(--bad); }
.note { padding: 12px 14px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.note b { color: var(--text); }
.secret { display: inline-flex; gap: 8px; align-items: center; }
.secret code { background: var(--card-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 7px; }

/* ---------- tickets ---------- */
.thread { display: grid; gap: 12px; }
.msg { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--card); }
.msg.staff { border-color: color-mix(in srgb, var(--info) 30%, var(--line)); }
.msg header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.msg header b { color: var(--text); font-size: 13px; }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- public site ---------- */
.pub-nav { display: flex; align-items: center; gap: 22px; max-width: 1120px; margin: 0 auto; padding: 18px 24px; }
.pub-nav .brand { display: flex; gap: 9px; align-items: center; font-weight: 700; font-size: 18px; letter-spacing: -.03em; text-decoration: none; }
.pub-nav nav { display: flex; gap: 20px; margin-left: 18px; }
.pub-nav nav a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.pub-nav nav a:hover { color: var(--text); }
.pub-nav .grow { flex: 1; }
.pub { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero { padding-top: 70px; padding-bottom: 50px; text-align: center; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 24px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.04; letter-spacing: -.045em; max-width: 820px; margin: 0 auto; }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 600px; margin: 18px auto 30px; }
.searchbar { display: flex; gap: 6px; max-width: 620px; margin: 0 auto; padding: 6px; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; }
.searchbar input { border: 0; background: transparent; font-size: 16px; padding: 10px 16px; flex: 1; min-width: 0; }
.searchbar input:focus { outline: none; }
.searchbar:focus-within { border-color: var(--focus); }
.tld-row { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.tld-row b { color: var(--text); }
.band { padding-top: 60px; padding-bottom: 60px; border-top: 1px solid var(--line); }
.band h2 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 8px; }
.band > p.muted { margin-bottom: 28px; font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { padding: 20px; }
.step .n { font: 11px var(--mono); color: var(--dim); letter-spacing: .12em; }
.step h3 { margin: 10px 0 6px; font-size: 15px; }
.step p { color: var(--muted); font-size: 13.5px; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--text); }
.plan .price { font-size: 30px; font-weight: 600; letter-spacing: -.04em; margin: 14px 0 2px; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 9px; font-size: 13.5px; color: var(--muted); }
.plan li .i { color: var(--ok); margin-top: 2px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.pub-foot { border-top: 1px solid var(--line); padding: 30px 24px 50px; text-align: center; color: var(--dim); font-size: 12.5px; }
.auth-wrap { max-width: 420px; margin: 40px auto 80px; padding: 0 16px; }
.auth-wrap .card { padding: 28px; }
.auth-wrap h1 { font-size: 22px; margin-bottom: 6px; }

/* domain results / order */
.results { display: grid; gap: 10px; }
.result { display: flex; align-items: center; gap: 14px; padding: 16px 18px; flex-wrap: wrap; }
.result .name { font-size: 17px; font-weight: 600; letter-spacing: -.02em; flex: 1; min-width: 180px; }
.result .price { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.order-steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.order-steps span { font: 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.order-steps span.on { color: var(--btn-ink); background: var(--btn); border-color: var(--btn); }
.choice { display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice .card { padding: 18px 20px; transition: border-color .15s ease; height: 100%; }
.choice input:checked + .card { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.choice input:focus-visible + .card { outline: 2px solid var(--focus); outline-offset: 2px; }
/* order: package step (monthly / yearly switch, plan cards), consultant box, what happens next */
.cycle-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.cycle-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; }
.cycle-tabs a.on { background: var(--btn); color: var(--btn-ink); }
.cycle-tabs .save { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(74, 222, 128, .16); color: var(--ok); }
.cycle-tabs a.on .save { background: rgba(255, 255, 255, .2); color: #fff; }
.pkg { display: flex; flex-direction: column; gap: 8px; }
.pkg--featured { border: 2px solid var(--accent); }
.pkg--chosen { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.pkg__price { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.pkg__price span { font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.domain-find { border: 2px solid var(--accent); }
.check.consult { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.next-steps h3 { margin-bottom: 10px; }
.next-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.next-steps li::marker { color: var(--accent); font-weight: 700; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.summary-line.total { border-bottom: 0; font-weight: 600; font-size: 15px; padding-top: 14px; }

/* invoice print */
.invoice-doc { padding: 34px; }
.invoice-doc .top-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
@media print {
  .side, .top, .no-print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; color: #000; }
  .card { border: 0; box-shadow: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.four .cell:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stats.four .cell:nth-child(2n) { border-right: 0; }
  .stats.four .cell:nth-last-child(-n+2) { border-bottom: 0; }
  .split { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 30; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5); }
  .menu-btn { display: grid; }
  .content { padding: 22px 16px 60px; }
  .g2, .g3, .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .cell:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stats .cell:nth-child(2n) { border-right: 0; }
  .stats .cell:nth-last-child(-n+2) { border-bottom: 0; }
  .pub-nav nav { display: none; }
  .pub-nav, .pub { padding-left: 16px; padding-right: 16px; }
  .form .row, .form .row3 { grid-template-columns: 1fr; }
  dl.kv { grid-template-columns: 1fr; }
  dl.kv dt { border-bottom: 0; padding-bottom: 0; }
  .hero { padding-top: 40px; }
}
@media (max-width: 520px) {
  .stats, .stats.four { grid-template-columns: 1fr; }
  .stats .cell:nth-child(n), .stats.four .cell:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats .cell:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .searchbar { border-radius: 16px; flex-direction: column; }
  .searchbar .btn { width: 100%; }
}

/* ---------- public pages (order flow, sign-in, legal): light, General Sans, brand red ---------- */
body.public {
  --bg: #ffffff; --side: #ffffff; --card: #ffffff; --card-2: #f4f4f4; --line: #e9e9e9; --line-2: #d9d9d9;
  --text: #16203a; --muted: #555b6b; --dim: #8a8a8a; --field: #ffffff; --focus: #141414;
  --btn: #3f66e0; --btn-ink: #ffffff; --accent: #3f66e0; --ok: #15803d; --warn: #a16207; --bad: #c81e25; --info: #1d4ed8;
  --shadow: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); --sans: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light; font-size: 16px;
}
body.public .btn { border-radius: 999px; font-weight: 600; }
body.public .searchbar { border-radius: 12px; box-shadow: var(--shadow); }
body.public .card { border-radius: 16px; }
body.public .pub-nav { max-width: none; background: #16203a; color: #fff; padding: 12px max(24px, calc((100% - 1200px) / 2)); }
body.public .pub-nav nav a { color: rgba(255,255,255,.88); font-weight: 600; font-size: 14px; }
body.public .pub-nav nav a:hover { color: #fff; }
body.public .pub-nav .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); }
body.public .pub-nav .btn.ghost:hover { background: rgba(255,255,255,.1); }
body.public .pub-nav .brand { font-weight: 800; }
body.public .pub-foot { background: #16203a; color: #bdbdbd; border-top: 0; margin-top: 40px; }
body.public h1, body.public h2 { font-family: 'Inter Tight', 'Segoe UI', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.025em; }
body.public .order-steps span, body.public .label, body.public .tbl th, body.public legend { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 13px; }
body.public .order-steps span.on { background: var(--text); border-color: var(--text); color: var(--bg); }
body.public .pub-foot a { color: inherit; }
body.public .legal { max-width: 720px; padding-top: 40px; padding-bottom: 90px; font-size: 17px; line-height: 1.6; }
body.public .legal h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; }
body.public .legal h2 { font-size: 22px; margin: 34px 0 10px; }
body.public .legal p, body.public .legal li { color: var(--text); }
body.public .legal ul { padding-left: 20px; }

.side .brand span { display: flex; flex-direction: column; line-height: 1.1; }
.side .brand small { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 3px; }

/* ---------- bar chart (billing analytics): one hue, thin bars, recessive grid, hover/focus tooltip ---------- */
:root { --chart: #6f8fef; }
:root[data-theme="light"] { --chart: #3f66e0; }
.barchart { position: relative; height: 240px; margin: 8px 0 4px; }
.barchart__grid { position: absolute; inset: 22px 0 22px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.barchart__grid span { border-top: 1px dashed var(--line); }
.barchart__bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; align-items: end; padding: 22px 0 22px; }
.barchart__col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: none; }
.barchart__bar { width: min(28px, 60%); background: var(--chart); border-radius: 4px 4px 0 0; transition: opacity .15s ease; }
.barchart__col:hover .barchart__bar, .barchart__col:focus-visible .barchart__bar { opacity: .8; }
.barchart__x { position: absolute; bottom: -20px; font-size: 11.5px; color: var(--muted); }
.barchart__val { font-size: 11.5px; color: var(--text); margin-bottom: 4px; white-space: nowrap; }
.barchart__col[data-tip]:hover::after, .barchart__col[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); z-index: 3;
  background: var(--card-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.chart-table { margin-top: 26px; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.chart-table .tbl-wrap { margin-top: 10px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; height: min(70vh, 640px); overflow: hidden; }
.chat__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat__empty { color: var(--muted); text-align: center; margin: auto; }
.chat__msg { max-width: min(78%, 560px); align-self: flex-start; }
.chat__msg--me { align-self: flex-end; text-align: right; }
.chat__bubble { display: inline-block; text-align: left; padding: 10px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat__msg--me .chat__bubble { background: var(--accent); border-color: var(--accent); color: #fff; }
.chat__meta { font-size: 11.5px; color: var(--dim); margin-top: 4px; }
.chat__form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat__form textarea { min-height: 44px; max-height: 160px; flex: 1; }
.inbox a { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
.inbox a:last-child { border-bottom: 0; }
.inbox a:hover { background: var(--card-2); }
.inbox b { display: block; }
.inbox .sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; display: block; }
.inbox .when { margin-left: auto; color: var(--dim); font-size: 12px; white-space: nowrap; }
.stepper { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.stepper li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.stepper .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.stepper li.done { color: var(--text); }
.stepper li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.now { color: var(--text); font-weight: 600; }
.stepper li.now .dot { border-color: var(--accent); background: var(--accent); color: #fff; }
.meeting { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }

/* ---------- email inbox ---------- */
.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.mailhtml iframe { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-top: 8px; }
.mailhtml summary, .msg details summary { cursor: pointer; }
