/* asset.ch – refined private-banking design
   Typeface: Source Sans 3 (humanist sans, light headlines, highly legible body).
   Palette: white, anthracite, warm stone, one deep night-blue accent. Square forms, hairlines, no shadows. */

@font-face {
  font-family: "Source Sans";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ink: #1b1b1b;
  --ink-2: #3b3b3b;
  --grey: #5e5e5e;
  --grey-2: #6b6b6b; /* 5.3:1 on white, 4.9:1 on stone (WCAG AA) */
  --line: #e2e0da;
  --line-2: #c9c6be;
  --stone: #f5f4f0;
  --stone-2: #ebe9e3;
  --navy: #0b2e4f;
  --navy-2: #163f66;
  --navy-tint: #e8eef4;
  --white: #ffffff;
  --ok: #1d6a45;
  --ok-bg: #eaf4ee;
  --warn: #7d5300;
  --warn-bg: #faf3e3;
  --bad: #a3221b;
  --bad-bg: #fbeeed;
  --font: "Source Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 80px;
  --r: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.65; font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4vw, 52px); font-weight: 300; line-height: 1.12; letter-spacing: -0.012em; }
h2 { font-size: clamp(28px, 2.7vw, 38px); font-weight: 300; line-height: 1.18; letter-spacing: -0.01em; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
::selection { background: var(--navy); color: #fff; }
code { font: 15px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--stone); padding: 1px 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--grey); }
.small { font-size: 16px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.nowrap { white-space: nowrap; }
.full-height { min-height: 100vh; }
.eyebrow { display: block; font-size: 16px; font-weight: 400; color: var(--grey); margin-bottom: 10px; }
.eyebrow a { color: var(--grey); }
.label-caps { display: block; font-size: 15px; font-weight: 400; color: var(--grey); margin-bottom: 2px; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; color: var(--navy); text-decoration: none; line-height: 0; }
.wordmark:hover { text-decoration: none; color: var(--navy); }
.wm { display: block; height: 19px; width: auto; overflow: visible; }
.wm-ink { fill: currentColor; }
.wm-accent { fill: currentColor; }
.wordmark-sm .wm { height: 16px; }
@media (max-width: 520px) { .site-header .wm { height: 16px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { font-size: 17px; font-weight: 400; color: var(--ink); padding: 28px 0 26px; border-bottom: 2px solid transparent; text-decoration: none; }
.main-nav a:hover { color: var(--navy); }
.main-nav a.is-active { border-bottom-color: var(--navy); color: var(--navy); }
.main-nav a.btn { color: #fff; padding: 10px 22px; border-bottom: 1px solid var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.lang-switch { display: flex; gap: 0; font-size: 15px; }
.lang-switch a { padding: 4px 7px; color: var(--grey-2); text-transform: uppercase; border: 0; }
.lang-switch a.is-active { color: var(--ink); font-weight: 600; }
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.nav-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; align-items: center; justify-content: center; margin-left: 6px; vertical-align: 2px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); width: 46px; height: 46px; cursor: pointer; padding: 0; border-radius: var(--r); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
/* 1.0.52: menu button below 1180px (two buttons in the header since then) */
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 40px; display: none; overflow-y: auto; }
  .main-nav.is-open { display: flex; }
  .main-nav a { font-size: 22px; font-weight: 300; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.is-active { border-bottom-color: var(--line); color: var(--navy); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-actions .btn { margin-top: 20px; padding: 14px 18px; font-size: 18px; }
  .lang-switch { padding: 18px 0; gap: 10px; font-size: 17px; }
  .main-nav .lang-switch a { border-bottom: 0; padding: 6px 8px; font-size: 17px; font-weight: 400; }
  .main-nav .lang-switch a.is-active { font-weight: 600; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 28px; border: 1px solid var(--navy); border-radius: var(--r); background: var(--navy); color: #fff; font: 600 17px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); text-decoration: none; color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-outline, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover, .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-glacier { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #7f1913; border-color: #7f1913; }
.btn-link { background: none; border: 0; padding: 0; color: var(--navy); cursor: pointer; font: inherit; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn + .btn { margin-left: 10px; }

/* ---------- Hero ---------- */
.hero { background: #fff; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(40px, 4.4vw, 62px); font-weight: 300; line-height: 1.08; letter-spacing: -0.018em; max-width: 17ch; margin-bottom: 24px; }
.hero-compact h1 { max-width: 20ch; font-size: clamp(36px, 4.2vw, 58px); }
.hero-lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--grey); max-width: 46ch; margin-bottom: 36px; line-height: 1.6; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-search { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 540px; }
.hero-search .hs-query { grid-column: 1 / -1; }
.hero-search input, .hero-search select { min-height: 54px; }
.hero-search .btn { grid-column: 1 / -1; min-height: 54px; }
.hero-meta { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 16px; color: var(--grey); }
.hero-meta li { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta li::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.3l2.9 2.9L11.5 4' fill='none' stroke='%230b2e4f' stroke-width='1.5'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 18ch; } }
@media (max-width: 520px) { .hero-search { grid-template-columns: 1fr; } }

/* Canton map – fine line drawing */
.swiss-map { margin: 0; }
.swiss-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.swiss-map .canton { text-decoration: none; }
.swiss-map .canton path, .swiss-map .canton circle { stroke: #ffffff; stroke-width: 1.4; stroke-linejoin: round; transition: fill .2s ease; cursor: pointer; }
.swiss-map .lvl-0 path, .swiss-map .lvl-0 circle { fill: #eceae4; }
.swiss-map .lvl-1 path, .swiss-map .lvl-1 circle { fill: #d4dee8; }
.swiss-map .lvl-2 path, .swiss-map .lvl-2 circle { fill: #a7bacd; }
.swiss-map .lvl-3 path, .swiss-map .lvl-3 circle { fill: #5d7f9f; }
.swiss-map .lvl-4 path, .swiss-map .lvl-4 circle { fill: var(--navy); }
.swiss-map .canton:hover path, .swiss-map .canton:hover circle,
.swiss-map .canton:focus-visible path, .swiss-map .canton:focus-visible circle { fill: var(--navy-2); }
.swiss-map .canton:focus-visible { outline: none; }
.swiss-map .lakes path { fill: #ffffff; opacity: .9; pointer-events: none; }
.swiss-map .pin { pointer-events: none; }
.swiss-map .pin circle { fill: #ffffff; stroke: var(--navy); stroke-width: 2; }
.swiss-map .pin text { fill: var(--navy); font: 600 22px var(--font); text-anchor: middle; }
.swiss-map figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; color: var(--grey); }
.map-readout { color: var(--ink); font-weight: 600; min-height: 1.6em; }
.map-legend { display: inline-flex; align-items: center; gap: 3px; font-size: 15px; }
.map-legend i { display: inline-block; width: 22px; height: 6px; }
.map-legend i.lvl-1 { background: #d4dee8; } .map-legend i.lvl-2 { background: #a7bacd; } .map-legend i.lvl-3 { background: #5d7f9f; } .map-legend i.lvl-4 { background: var(--navy); margin-right: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .swiss-map.is-animating .canton { opacity: 0; animation: canton-in .7s ease forwards; }
  .swiss-map.is-animating .pin { opacity: 0; animation: pin-in .5s ease-out 1.1s forwards; }
}
@keyframes canton-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pin-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.section-tight { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.section-mist { background: var(--stone); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head p { max-width: 48ch; color: var(--grey); margin: 0; }

/* ---------- Category index ---------- */
.cat-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cat-index a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 120px; gap: 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: color .15s; }
.cat-index a:hover { color: var(--navy); text-decoration: none; }
.cat-index a:hover .ci-name { color: var(--navy); }
.ci-name { font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; letter-spacing: -0.012em; line-height: 1.1; color: var(--ink); transition: color .15s; }
.ci-text { color: var(--grey); font-size: 17px; }
.ci-count { font-size: 16px; color: var(--grey); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat-group + .cat-group { margin-top: 64px; }
.cat-group-title { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 14px; letter-spacing: 0; }
@media (max-width: 760px) { .cat-index a { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 0; } .ci-text { grid-column: 1 / -1; grid-row: 2; } }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.cat-tile { padding-top: 22px; border-top: 1px solid var(--ink); }
.cat-tile .idx { display: none; }
.cat-tile h3 { font-weight: 400; font-size: 24px; margin-bottom: 10px; }
.cat-tile p { color: var(--grey); font-size: 17px; margin: 0; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step .num { display: block; font-size: 44px; font-weight: 200; line-height: 1; color: var(--navy); margin-bottom: 22px; font-variant-numeric: lining-nums; }
.step h3 { font-weight: 600; }
.step p { color: var(--grey); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.check-list li { padding: 14px 0 14px 34px; position: relative; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.3l3.4 3.4L13.5 4.2' fill='none' stroke='%230b2e4f' stroke-width='1.6'/%3E%3C/svg%3E") center/16px no-repeat; }

.cta-panel { background: var(--navy); color: #c6d3df; padding: clamp(32px, 4vw, 52px); }
.cta-panel h2 { color: #fff; }
.cta-panel .cta-price { margin: 22px 0 28px; font-size: 17px; }
.cta-panel .cta-price strong { display: block; color: #fff; font-size: 46px; font-weight: 200; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.cta-panel .btn-glacier { background: #fff; border-color: #fff; color: var(--navy); }
.cta-panel .btn-glacier:hover { background: var(--stone); border-color: var(--stone); color: var(--navy); }
.cta-panel .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-panel .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.price-card { border: 1px solid var(--line-2); padding: 34px; background: #fff; }
.price-card .price { font-size: 48px; font-weight: 200; line-height: 1.05; margin: 10px 0; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.price-card .price small { font-size: 17px; font-weight: 400; color: var(--grey); }

/* ---------- Firm list ---------- */
.firm-list { border-top: 1px solid var(--ink); }
.firm-card { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); position: relative; }
.firm-card:hover h3 a { color: var(--navy); }
.firm-card.is-featured { background: linear-gradient(90deg, var(--stone), transparent 65%); padding-left: 18px; margin-left: -18px; padding-right: 0; }
.firm-logo { width: 80px; height: 80px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; flex-shrink: 0; }
.firm-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.firm-logo .initials { font-size: 24px; font-weight: 300; color: var(--navy); letter-spacing: .02em; }
.firm-logo-lg { width: 112px; height: 112px; }
.firm-logo-lg .initials { font-size: 36px; }
.firm-card h3 { font-size: 23px; font-weight: 600; margin: 0 0 4px; }
.firm-card h3 a { color: var(--ink); text-decoration: none; }
.firm-card h3 a::after { content: ""; position: absolute; inset: 0; }
.firm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 16px; color: var(--grey); margin-bottom: 10px; }
.firm-card p.desc { margin: 0 0 14px; color: var(--ink-2); font-size: 17px; max-width: 64ch; }
.firm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 160px; text-align: right; }
.firm-side .min { font-size: 15px; color: var(--grey); }
.firm-side .min strong { display: block; color: var(--ink); font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums lining-nums; }
.firm-side .fav-form { position: relative; z-index: 2; }
@media (max-width: 760px) {
  .firm-card { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .firm-card.is-featured { padding-left: 12px; margin-left: -12px; }
  .firm-logo { width: 60px; height: 60px; padding: 6px; }
  .firm-logo .initials { font-size: 19px; }
  .firm-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; min-width: 0; }
}

.firm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--ink); }
.firm-tile { padding: 26px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 18px; align-items: flex-start; color: var(--ink); text-decoration: none; }
.firm-tile:hover { text-decoration: none; }
.firm-tile:hover h3 { color: var(--navy); }
.firm-tile h3 { font-size: 19px; margin: 0 0 4px; transition: color .15s; }
.firm-tile p { color: var(--grey); font-size: 16px; margin: 0; line-height: 1.5; }
.firm-tile .badge-verified { margin-top: 8px; }
.firm-tile .firm-logo { width: 60px; height: 60px; }
.firm-tile .firm-logo .initials { font-size: 19px; }
@media (max-width: 960px) { .firm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .firm-grid { grid-template-columns: 1fr; } }

/* ---------- Tags & badges ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; font-size: 15px; line-height: 1.4; padding: 4px 11px; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; border-radius: var(--r); background: #fff; }
a.tag:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.tag-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge-verified { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.badge-verified::before { content: ""; width: 15px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Ccircle cx='7.5' cy='7.5' r='6.8' fill='none' stroke='%231d6a45' stroke-width='1.2'/%3E%3Cpath d='M4.4 7.7l2.1 2.1 4.2-4.2' fill='none' stroke='%231d6a45' stroke-width='1.4'/%3E%3C/svg%3E") center/15px no-repeat; }
.badge-featured { display: inline-block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.badge { display: inline-block; font-size: 14px; font-weight: 600; padding: 2px 10px; background: var(--stone); color: var(--ink-2); white-space: nowrap; border-radius: var(--r); }
.badge-approved, .badge-paid, .badge-active, .badge-open { background: var(--ok-bg); color: var(--ok); }
.badge-pending, .badge-unconfirmed { background: var(--warn-bg); color: var(--warn); }
.badge-rejected, .badge-suspended, .badge-blocked, .badge-cancelled { background: var(--bad-bg); color: var(--bad); }

/* ---------- Page heads / directory ---------- */
.page-head { padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(24px, 3vw, 36px); }
.page-head h1 { margin-bottom: 14px; }
.page-head p { color: var(--grey); max-width: 60ch; margin: 0; font-size: 20px; line-height: 1.55; }
.cat-tabs { position: relative; display: flex; flex-wrap: wrap; column-gap: 24px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cat-tabs a { padding: 14px 0 12px; font-size: 16px; color: var(--grey); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.cat-tabs a:hover { color: var(--ink); }
.cat-tabs a.is-active { color: var(--ink); border-bottom-color: var(--navy); font-weight: 600; }
@media (max-width: 760px) { .cat-tabs { flex-wrap: nowrap; column-gap: 24px; } }
.dir-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; padding-top: 36px; padding-bottom: 96px; }
.dir-results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.dir-results-head .count { font-size: 24px; font-weight: 300; }
.dir-results-head select { width: auto; min-height: 42px; padding-top: 6px; padding-bottom: 6px; font-size: 16px; }
.filters details { border-bottom: 1px solid var(--line); }
.filters > .field:first-child { padding-bottom: 6px; }
.filters summary { list-style: none; cursor: pointer; padding: 16px 0; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: ""; width: 12px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) center/12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 12px no-repeat; }
.filters details[open] > summary::after { background: linear-gradient(var(--ink), var(--ink)) center/12px 1.5px no-repeat; }
.filters .filter-body { padding: 0 0 18px; display: flex; flex-direction: column; gap: 9px; }
.filters .hint { font-size: 15px; color: var(--grey); }
.filters-mobile-toggle { display: none; }
.filter-actions { display: flex; gap: 10px; margin-top: 22px; }
.filter-actions .btn { flex: 1; padding: 10px 8px; margin: 0; }
@media (max-width: 960px) {
  .dir-layout { grid-template-columns: 1fr; gap: 18px; }
  .filters-panel { display: none; }
  .filters-panel.is-open { display: block; }
  .filters-mobile-toggle { display: flex; }
}

/* ---------- Profile ---------- */
.profile-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 36px; }
.profile-head-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.profile-head h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 10px; }
.profile-head .firm-meta { font-size: 17px; margin-bottom: 12px; }
.profile-head p { color: var(--ink-2); max-width: 62ch; font-size: 19px; }
.profile-head-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.profile-head-actions .btn + .btn { margin-left: 0; }
.btn-block + .btn-block, .plan-actions .btn + .btn { margin-left: 0; }
@media (max-width: 860px) { .profile-head-inner { grid-template-columns: 1fr; gap: 18px; } .profile-head-actions { flex-direction: row; flex-wrap: wrap; } }
.keyfigs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.keyfigs > div { padding: 22px 24px 24px; border-left: 1px solid var(--line); }
.keyfigs > div:first-child { border-left: 0; padding-left: 0; }
.keyfigs dt { font-size: 15px; color: var(--grey); margin-bottom: 6px; }
.keyfigs dd { margin: 0; font-size: 26px; font-weight: 300; color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 760px) { .keyfigs { grid-template-columns: 1fr 1fr; } .keyfigs > div:nth-child(3) { border-left: 0; padding-left: 0; } .keyfigs > div:nth-child(n+3) { border-top: 1px solid var(--line); } .keyfigs > div { padding-left: 16px; } }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(36px, 5vw, 80px); padding-top: 44px; padding-bottom: 96px; align-items: start; }
@media (max-width: 1000px) { .profile-layout { grid-template-columns: 1fr; } }
.prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); max-width: 68ch; }
.prose h2 { font-size: 26px; margin-top: 1.5em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--navy); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0 0 8px; border-top: 1px solid var(--line); }
.facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 15px; color: var(--grey); margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 18px; color: var(--ink); }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
.block-title { font-size: 28px; font-weight: 300; letter-spacing: -0.01em; margin: 52px 0 18px; }
.block-title.mt-0 { margin-top: 0; }
.contact-card { padding: 34px; background: var(--stone); position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card h2 { font-size: 28px; margin-bottom: 8px; }
.contact-card p.muted { font-size: 16px; }
.contact-card input, .contact-card select, .contact-card textarea { background-color: #fff; }
.disclaimer { font-size: 15px; color: var(--grey); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 52px; }

/* ---------- Forms ---------- */
label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field { margin-bottom: 20px; }
.field .hint { font-size: 15px; color: var(--grey); margin-top: 6px; }
.field-error { font-size: 15px; color: var(--bad); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #8c8981; border-radius: var(--r); background: #fff; color: var(--ink); font: 400 17px/1.4 var(--font); appearance: none; -webkit-appearance: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1b1b' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
input:hover, select:hover, textarea:hover { border-color: var(--grey); }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 1px var(--navy); }
::placeholder { color: var(--grey-2); }
input[type=file] { font: 16px var(--font); }
.check-row { display: flex; gap: 11px; align-items: flex-start; font-size: 17px; font-weight: 400; margin: 0; cursor: pointer; line-height: 1.45; color: var(--ink-2); }
.check-row input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 9px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
.form-card { padding: clamp(24px, 4vw, 44px); background: #fff; border: 1px solid var(--line-2); }
.form-section { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 40px; }
.form-section:first-of-type { border-top: 1px solid var(--ink); padding-top: 24px; margin-top: 0; }
.form-section > h2 { font-size: 28px; margin-bottom: 6px; }
.form-section > p.muted { margin-bottom: 22px; font-size: 16px; }
.lang-tabs { display: flex; gap: 28px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.lang-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 0 9px; font: 400 17px var(--font); color: var(--grey); cursor: pointer; }
.lang-tabs button.is-active { color: var(--ink); border-bottom-color: var(--navy); font-weight: 600; }
.lang-tabs button .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-left: 7px; vertical-align: 3px; }
.lang-pane[hidden] { display: none; }
.counter { font-size: 14px; color: var(--grey); text-align: right; margin-top: 4px; }
.code-input { font-size: 32px !important; font-weight: 300; letter-spacing: .45em; text-align: center; min-height: 66px !important; font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 240px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--stone); padding: clamp(40px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.auth-aside h2, .auth-aside .aside-title { font-size: clamp(32px, 3.4vw, 46px); max-width: 16ch; font-weight: 300; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
.auth-aside p { color: var(--grey); max-width: 44ch; }
.auth-main { padding: clamp(36px, 6vw, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.auth-main .inner { width: 100%; max-width: 440px; }
.auth-main h1 { font-size: clamp(32px, 3.2vw, 42px); }
.auth-links { margin-top: 24px; font-size: 16px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* ---------- Alerts ---------- */
.alert { background: var(--stone); border-left: 3px solid var(--ink); padding: 14px 18px; margin-bottom: 18px; font-size: 17px; }
.alert-success { background: var(--ok-bg); border-left-color: var(--ok); color: #144b31; }
.alert-error { background: var(--bad-bg); border-left-color: var(--bad); color: #6f1712; }
.alert-warning { background: var(--warn-bg); border-left-color: #b9851a; color: #553800; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.flash-area { padding-top: 18px; }

/* ---------- Account area ---------- */
.account-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 96px; }
.account-nav { display: flex; flex-direction: column; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); border-top: 1px solid var(--ink); }
.account-nav a { padding: 13px 0 13px 14px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; font-size: 17px; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; text-decoration: none; }
.account-nav a:hover { color: var(--navy); }
.account-nav a.is-active { border-left-color: var(--navy); color: var(--navy); font-weight: 600; }
.account-nav form { padding: 13px 0 13px 14px; }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; gap: 22px; } .account-nav { position: static; flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line); } .account-nav a { white-space: nowrap; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px 10px 0; } .account-nav a.is-active { border-bottom-color: var(--navy); } .account-nav form { padding: 8px 0; white-space: nowrap; } }
.account-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.account-title h1 { font-size: clamp(32px, 3.4vw, 44px); margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0 28px; margin-bottom: 36px; }
.stat { padding: 16px 0 18px; border-top: 1px solid var(--ink); }
.stat .v { font-size: 38px; font-weight: 200; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.stat .k { font-size: 15px; color: var(--grey); }
.stat a { display: block; color: inherit; text-decoration: none; }
.progress { height: 3px; background: var(--line); margin: 14px 0 8px; }
.progress > span { display: block; height: 100%; background: var(--navy); }
.w-0{width:0}.w-10{width:10%}.w-20{width:20%}.w-30{width:30%}.w-40{width:40%}.w-50{width:50%}.w-60{width:60%}.w-70{width:70%}.w-80{width:80%}.w-90{width:90%}.w-100{width:100%}
.panel { border: 1px solid var(--line-2); padding: 28px; margin-bottom: 22px; background: #fff; }
.panel h2 { font-size: 26px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 9px 22px; font-size: 17px; margin: 0; }
.kv dt { color: var(--grey); }
.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 9px; } }

/* ---------- Messages ---------- */
.conv-list { border-top: 1px solid var(--ink); }
.conv-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.conv-item:hover { text-decoration: none; }
.conv-item:hover .who { color: var(--navy); }
.conv-item .who { font-weight: 400; font-size: 19px; }
.conv-item.is-unread .who { font-weight: 600; }
.conv-item.is-unread .who::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); margin-right: 10px; vertical-align: 3px; }
.conv-item .preview { color: var(--grey); font-size: 16px; grid-column: 1 / -1; }
.conv-item .when { font-size: 15px; color: var(--grey); }
.thread { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.msg { max-width: 76%; padding: 16px 20px; background: var(--stone); }
.msg.mine { align-self: flex-end; background: var(--navy); color: #fff; }
.msg .meta { font-size: 14px; color: var(--grey); margin-bottom: 4px; }
.msg.mine .meta { color: #b3c3d3; }
.msg .body { white-space: pre-wrap; word-break: break-word; font-size: 17px; }
@media (max-width: 600px) { .msg { max-width: 92%; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: left; font-size: 15px; font-weight: 600; color: var(--grey); padding: 11px 14px 11px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover td { background: var(--stone); }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline-block; margin-left: 4px; }
.table form { display: inline; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 4px; margin-top: 32px; flex-wrap: wrap; }
.pagination .page { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); font-size: 16px; padding: 0 12px; color: var(--ink); text-decoration: none; }
.pagination .page:hover { border-color: var(--ink); }
.pagination .page.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .gap { border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--stone); color: var(--grey); padding: 72px 0 34px; font-size: 16px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer .wordmark, .site-footer .wordmark:hover { margin-bottom: 20px; color: var(--navy); }
.site-footer p { max-width: 38ch; }
.site-footer h4, .site-footer .footer-h { font-family: var(--font); letter-spacing: 0; line-height: 1.3; font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--navy); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 15px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; max-width: 92ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Empty / error states ---------- */
.empty { padding: 56px 24px; text-align: center; background: var(--stone); }
.empty h3 { font-size: 24px; font-weight: 300; }
.error-page { padding-top: 104px; padding-bottom: 104px; text-align: center; }
.error-page .code { font-size: clamp(96px, 14vw, 168px); font-weight: 200; color: var(--navy); line-height: .95; margin-bottom: 20px; font-variant-numeric: lining-nums; }
.error-page .btn { margin: 6px 5px 0; }

/* ---------- Admin ---------- */
.admin-body { background: var(--stone); }
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: #fff; border-right: 1px solid var(--line); padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .wordmark { display: inline-flex; padding: 4px 24px 12px; }
.admin-side .wm { height: 15px; }
.admin-side .tagline { padding: 0 24px 20px; font-size: 15px; color: var(--grey); }
.admin-side nav a { display: flex; align-items: center; gap: 12px; padding: 7px 20px 7px 22px; border-left: 2px solid transparent; font-size: 16px; color: var(--ink-2); text-decoration: none; }
.admin-side nav a:hover { color: var(--navy); background: var(--stone); }
.admin-side nav a.is-active { border-left-color: var(--navy); color: var(--navy); font-weight: 600; background: var(--navy-tint); }
.admin-side nav .group { padding: 16px 24px 4px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--grey-2); }
.admin-side nav form { padding: 0 0 20px; }
.admin-side .nav-label { flex: 1; }
.admin-side .nav-ico { display: inline-flex; width: 20px; color: var(--grey); }
.admin-side nav a:hover .nav-ico, .admin-side nav a.is-active .nav-ico { color: var(--navy); }
.admin-side .nav-logout { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 20px 8px 24px; background: none; border: 0; font: inherit; font-size: 16px; color: var(--ink-2); cursor: pointer; text-align: left; }
.admin-side .nav-logout:hover { color: var(--navy); background: var(--stone); }
.admin-main { padding: 34px clamp(18px, 3vw, 48px) 72px; min-width: 0; }
.admin-main .stat { background: transparent; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-top h1 { font-size: 38px; margin: 0; }
.admin-mobile-bar { display: none; }
@media (min-width: 901px) { .admin-shell { background: linear-gradient(90deg, #fff 0 250px, var(--line) 250px 251px, transparent 251px); } .admin-side { border-right: 0; } }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 22% 0 0; z-index: 60; transform: translateX(-100%); transition: transform .2s; height: 100%; box-shadow: 0 0 40px rgba(0, 0, 0, .15); }
  .admin-side.is-open { transform: none; }
  .admin-mobile-bar { display: flex; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; position: sticky; top: 0; z-index: 50; }
  .admin-mobile-bar .menu-toggle { display: block; }
}
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filter-bar input, .filter-bar select { width: auto; min-width: 220px; min-height: 44px; padding: 8px 14px; }
.filter-bar select { padding-right: 38px; }
.chip-nav { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.chip-nav a { padding: 10px 0 9px; border-bottom: 2px solid transparent; font-size: 16px; color: var(--grey); text-decoration: none; }
.chip-nav a:hover { color: var(--ink); }
.chip-nav a.is-active { color: var(--ink); border-bottom-color: var(--navy); font-weight: 600; }
.log-box { background: var(--stone); border: 1px solid var(--line); color: var(--ink-2); font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 14px 16px; white-space: pre-wrap; word-break: break-all; max-height: 420px; overflow: auto; }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.inline-form .field { margin-bottom: 0; flex: 1; min-width: 170px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
.dir-layout > *, .profile-layout > *, .account-layout > *, .split > *, .grid-2 > *, .hero-grid > * { min-width: 0; }

/* ---------- Installer ---------- */
.install-body { background: var(--stone); min-height: 100vh; }
.install-head { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0; }
.install-steps { display: flex; gap: 22px; margin-bottom: 26px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.install-steps span { padding: 10px 0 9px; font-size: 15px; color: var(--grey-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.install-steps span.is-active { color: var(--ink); border-bottom-color: var(--navy); font-weight: 600; }
.install-steps span.is-done { color: var(--ok); }
.req-list { list-style: none; padding: 0; margin: 0 0 26px; border-top: 1px solid var(--ink); }
.req-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.req-ok { color: var(--ok); font-weight: 600; }
.req-bad { color: var(--bad); font-weight: 600; }
.req-warn { color: var(--warn); font-weight: 600; }

/* ---------- Invoice & print ---------- */
.invoice { max-width: 840px; margin: 36px auto; padding: 48px; border: 1px solid var(--line-2); background: #fff; }
.invoice-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
/* ---------- Website badge (firm account) ---------- */
.badge-preview { padding: 28px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.badge-preview.is-light { background: var(--stone); }
.badge-preview.is-dark { background: #f0f2f5; }
.badge-preview img { display: block; max-width: 100%; height: auto; }
.code-box { width: 100%; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line-2); background: var(--stone); color: var(--ink); resize: vertical; word-break: break-all; }

.measure { max-width: 72ch; }

/* ---------- Startklar? (launch checklist) ---------- */
.launch-intro { max-width: 90ch; }
.launch-summary { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.launch-summary a { display: inline-block; padding: 6px 12px; text-decoration: none; font-size: 16px; border-radius: var(--r); }
.launch-summary .is-fail a { background: var(--bad-bg); color: var(--bad); }
.launch-summary .is-warn a { background: var(--warn-bg); color: var(--warn); }
.launch-summary .is-ok a { background: var(--ok-bg); color: var(--ok); }
.launch-panel { max-width: 980px; }
.launch-list { list-style: none; padding: 0; margin: 0; }
.launch-item { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.launch-item:last-child { border-bottom: 0; }
.launch-mark { flex: 0 0 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; line-height: 1; border-radius: var(--r); }
.launch-item.is-ok .launch-mark { background: var(--ok); }
.launch-item.is-warn .launch-mark { background: #9a6700; }
.launch-item.is-fail .launch-mark { background: var(--bad); }
.launch-body { flex: 1 1 auto; min-width: 0; }
.launch-title { font-weight: 600; }
.launch-detail { font-size: 15px; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.launch-toggle { flex: 0 0 auto; margin: 0; }
@media (max-width: 560px) { .launch-item { flex-wrap: wrap; } .launch-toggle { margin-left: 38px; } }

/* ---------- Turnstile bot check ---------- */
.cf-turnstile { min-height: 65px; margin: 4px 0 18px; }

/* ---------- Emergency key printout ---------- */
.recovery-sheet h3 { font-size: 15px; margin: 18px 0 4px; }
.recovery-sheet p { max-width: 72ch; }
.recovery-key { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 20px; line-height: 1.8; letter-spacing: .06em; padding: 14px 18px; border: 1px solid var(--line-2); display: inline-block; margin: 8px 0 4px; }
.recovery-key span { white-space: nowrap; }
.recovery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.recovery-actions .btn + .btn { margin-left: 0; }

@media print {
  .site-header, .site-footer, .no-print, .account-nav, .admin-side, .admin-mobile-bar, .admin-top { display: none !important; }
  .admin-shell, .admin-main { display: block; padding: 0; margin: 0; }
  .recovery-sheet { border: 0; box-shadow: none; padding: 0; }
  .invoice { border: 0; margin: 0; padding: 0; }
  body { font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.install-head .wm-img { display: block; height: 18px; width: auto; }

/* ---------- Qualified-investor notice ---------- */
.notice-qualified { margin: 28px 0 0; padding: 20px 24px; background: var(--stone); border-left: 2px solid var(--navy); }
.notice-qualified h2 { font-size: 17px; font-weight: 600; margin: 0 0 6px; letter-spacing: 0; }
.notice-qualified p { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 90ch; }

/* ---------- 1.0.7: premium, top placement, founding members, statistics ---------- */
.alert-info { border-left-color: var(--navy); }
.badge-founding { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--navy); padding: 1px 8px; border: 1px solid var(--navy); border-radius: var(--r); white-space: nowrap; line-height: 1.5; }
.keyfigs-rule { border-top: 1px solid var(--ink); }
.firm-card.is-basic .desc { color: var(--grey); }
.dir-note { margin: -6px 0 18px; }

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.price-grid .price-card { display: flex; flex-direction: column; }
.price-grid .price-card h3 { font-size: 22px; font-weight: 600; margin: 0; }
.price-grid .price-card .price { font-size: 40px; }
.price-grid .check-list { margin: 12px 0 24px; flex: 1; }
.price-grid .check-list li { padding: 10px 0 10px 30px; }
.price-grid .check-list li::before { top: 15px; }
.price-card.is-highlight { border-color: var(--navy); border-top-width: 3px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.plan-grid .panel { margin-bottom: 0; display: flex; flex-direction: column; }
.plan h2 { margin-bottom: 6px; }
.plan .check-list { margin: 8px 0 20px; }
.plan .check-list li { padding: 9px 0 9px 30px; }
.plan .check-list li::before { top: 14px; }
.plan-options { border: 0; padding: 0; margin: 10px 0 8px; display: grid; gap: 10px; }
.plan-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); cursor: pointer; background: #fff; }
.plan-option:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.plan-option input { margin-top: 5px; accent-color: var(--navy); }
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.slot-list { list-style: none; padding: 0; margin: 4px 0 16px; color: var(--ink-2); }
.slot-list li { padding: 4px 0; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr; } }

.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; min-width: 0; font-size: 15px; background: var(--stone); }

.lead-tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: var(--r); white-space: nowrap; vertical-align: 1px; }
.lead-fit { background: var(--ok-bg); color: var(--ok); }
.lead-below { background: var(--warn-bg); color: #6b4700; }
.lead-unknown { background: var(--stone); color: var(--grey); }

.stats-table th.num, .stats-table td.num { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.kv dd, .kv dd code, .panel p code { overflow-wrap: anywhere; min-width: 0; }

/* ---------- Admin 1.0.8: icons, dashboard, tabs ---------- */
.ico { width: 20px; height: 20px; flex: none; display: block; }
.admin-title { display: flex; align-items: center; gap: 16px; }
.admin-title-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; background: #fff; border: 1px solid var(--line); color: var(--navy); }
.admin-title-ico .ico { width: 24px; height: 24px; }
.admin-title .eyebrow { margin-bottom: 2px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 21px; }
.panel-title .ico { color: var(--navy); }
.alert-ico { display: flex; gap: 12px; align-items: flex-start; }
.alert-ico .ico { margin-top: 3px; }

.todo-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.todo-list a { display: grid; grid-template-columns: 22px 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.todo-list a:hover { background: var(--stone); }
.todo-ico { color: var(--navy); display: inline-flex; }
.todo-n { font-size: 24px; font-weight: 300; text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.todo-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.todo-cta .ico { width: 16px; height: 16px; }
@media (max-width: 560px) { .todo-list a { grid-template-columns: 22px 34px minmax(0, 1fr); } .todo-cta { display: none; } }

.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.dash-grid .panel { margin-bottom: 0; }
@media (max-width: 1200px) { .dash-grid { grid-template-columns: 1fr; } }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.kpi:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
a.kpi:hover .kpi-v { color: var(--navy); }
.kpi-v { font-size: 28px; font-weight: 300; line-height: 1.15; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-k { font-size: 14px; color: var(--grey); }

.sys-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sys-list li { display: grid; grid-template-columns: 20px 150px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.sys-list li.is-ok .ico { color: var(--ok); }
.sys-list li.is-warn .ico { color: #b9851a; }
.sys-k { color: var(--grey); }
.sys-v { overflow-wrap: anywhere; }
@media (max-width: 560px) { .sys-list li { grid-template-columns: 20px minmax(0, 1fr); } .sys-v { grid-column: 2; } }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.quick .ico { color: var(--navy); }
.quick:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
@media (max-width: 560px) { .quick-grid { grid-template-columns: 1fr; } }

.tabs-nav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); margin: -6px 0 24px; }
.tabs-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-2); text-decoration: none; font-size: 16px; }
.tabs-nav a .ico { width: 18px; height: 18px; color: var(--grey); }
.tabs-nav a:hover { color: var(--navy); }
.tabs-nav a.is-active { border-bottom-color: var(--navy); color: var(--navy); font-weight: 600; background: #fff; }
.tabs-nav a.is-active .ico { color: var(--navy); }
.settings-grid { align-items: start; }
.warn-box { padding: 16px 20px; }
.warn-title { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 6px; }
.warn-box ul { margin: 0; padding-left: 30px; }
.warn-box li { padding: 2px 0; }

/* 1.0.10 – fixed (read-only) form value, e.g. the top-placement canton */
.field .label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.static-value { min-height: 50px; display: flex; align-items: center; padding: 0 14px; border: 1px dashed var(--line-2); border-radius: var(--r); background: #f7f7f5; }
.settings-unlock .ico, p.small > .ico { display: inline-block; width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }

/* 1.0.11 – Ratgeber (guides) */
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.guide-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.guide-row-meta { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.guide-row-title { font-size: clamp(24px, 2.2vw, 30px); font-weight: 300; line-height: 1.22; margin-bottom: 10px; }
h3.guide-row-title { font-size: 22px; }
.guide-row-title a { color: var(--ink); }
.guide-row-title a:hover { color: var(--navy); }
.guide-row p { margin: 0; max-width: 70ch; }
.guide-head h1 { max-width: 30ch; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 18px; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding-top: 8px; padding-bottom: clamp(40px, 6vw, 72px); }
.guide-body > :first-child { margin-top: 0; }
.guide-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.guide-aside { position: sticky; top: 24px; }
.guide-aside-box { border-top: 2px solid var(--navy); background: var(--stone); padding: 24px; }
.h-small { font-size: 21px; font-weight: 600; line-height: 1.3; margin-bottom: 14px; }
.guide-firms { list-style: none; margin: 0 0 20px; padding: 0; }
.guide-firms li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.guide-firms li:first-child { border-top: 1px solid var(--line-2); }
.guide-firms a { font-weight: 600; }
.guide-related { background: var(--stone); }
.guide-related h2 { margin-bottom: 24px; }
@media (max-width: 900px) {
  .guide-row { grid-template-columns: 1fr; padding: 22px 0; }
  .guide-row-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; padding-top: 0; }
  .guide-layout { grid-template-columns: 1fr; gap: 32px; }
  .guide-aside { position: static; }
}

/* 1.0.11 – saved searches */
.save-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 20px; margin: 0 0 22px; background: var(--navy-tint); }
.save-search p { margin: 0; flex: 1 1 260px; font-size: 16px; }
.save-search form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.save-search select { width: auto; min-height: 42px; padding: 6px 38px 6px 12px; font-size: 16px; }
.search-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.search-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.search-item h3 { font-size: 19px; margin-bottom: 4px; }
.search-item .inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-item select { width: auto; min-height: 40px; padding: 4px 36px 4px 12px; font-size: 16px; }
@media (max-width: 700px) { .search-item { grid-template-columns: 1fr; } }
.save-search .ico { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; color: var(--navy); }
.lang-panel > summary { cursor: pointer; display: flex; gap: 12px; align-items: baseline; }
.lang-panel:not([open]) { padding-top: 18px; padding-bottom: 18px; }
.article-edit { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .article-edit { grid-template-columns: 1fr; } }
.home-guides { padding-top: 0; }
.method-set { border: 0; border-left: 2px solid var(--line-2); margin: 6px 0 12px; padding: 2px 0 2px 16px; }
.method-set legend { padding: 0; margin-bottom: 4px; }
.bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.bank-set { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0 0; min-width: 0; }
.bank-set legend { font-size: 18px; font-weight: 600; padding: 0 10px 0 0; }
.bank-set > .small { margin-top: -2px; }
.form-grid.zip-city { grid-template-columns: 110px minmax(0, 1fr); }
@media (max-width: 900px) { .bank-grid { grid-template-columns: 1fr; } }

/* 1.0.16 – canton links and FAQ on directory pages */
.crumbs a { color: var(--grey); }
.dir-cantons { margin: clamp(40px, 6vw, 64px) 0 0; padding-top: 28px; border-top: 1px solid var(--ink); }
.canton-links { list-style: none; margin: 0; padding: 0; columns: 4 180px; column-gap: 32px; }
.canton-links li { padding: 6px 0; break-inside: avoid; border-bottom: 1px solid var(--line); }
.faq-block { max-width: 860px; }
.faq-block h2 { margin-bottom: 20px; }
.dir-layout + .dir-cantons, .dir-cantons + .faq-block, .dir-layout + .faq-block { margin-top: clamp(40px, 6vw, 72px); }
.wrap > .faq-block:last-child { margin-bottom: clamp(48px, 7vw, 88px); }
.home-faq { padding-top: 0; }
.section-mist + .home-faq { padding-top: clamp(56px, 7vw, 96px); } /* 1.0.58: room after «Ausgewählte Firmen» */
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { display: inline; font-size: 20px; font-weight: 600; }
.faq-item p { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }

/* 1.0.18 – Premium Plus */
.plus-strip { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 16px 0; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.plus-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.plus-strip img { height: 36px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .15s, opacity .15s; }
.plus-strip a:hover img, .plus-strip a:focus-visible img { filter: none; opacity: 1; }
.plan-option-plus { border-color: var(--navy); }
.loc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (prefers-reduced-motion: reduce) { .plus-strip img { transition: none; } }
.price-card.is-plus { border-top: 3px solid var(--navy); }

/* 1.0.20: subscriptions as cards, top placement as add-on below */
.price-grid .price-card .price small { display: block; margin-top: 6px; }
.price-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.addon-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 36px; align-items: center; margin-top: 24px; padding: 30px 34px; background: var(--stone); border: 1px solid var(--line-2); }
.addon-label { margin: 0 0 6px; color: var(--navy); font-weight: 600; }
.addon-card h3 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.addon-card .addon-main p:last-child { margin: 0; }
.addon-list { margin: 0; }
.addon-list li { padding: 6px 0 6px 30px; }
.addon-list li::before { top: 11px; }
.addon-price { text-align: right; white-space: nowrap; }
.addon-price .price { font-size: 40px; font-weight: 200; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.addon-price .price small { font-size: 17px; font-weight: 400; color: var(--grey); }
.addon-price p { margin: 6px 0 0; }
@media (max-width: 900px) {
  .price-grid-2 { grid-template-columns: 1fr; }
  .addon-card { grid-template-columns: 1fr; gap: 18px; padding: 26px 24px; }
  .addon-price { text-align: left; white-space: normal; }
}

/* 1.0.21 – accessibility and polish */
.cta-panel :focus-visible, .skip-link:focus-visible { outline-color: #fff; }
.dir-cantons:last-child { margin-bottom: clamp(40px, 6vw, 64px); }
.field-error[id] { display: block; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.lang-note { font-size: 14px; color: var(--grey); margin: -4px 0 12px; }
.empty-cat { text-align: left; }
.empty-cat .btn { margin-right: 12px; margin-top: 8px; }
.empty-cat ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.dir-results-head h2.count { margin: 0; font-size: 24px; font-weight: 300; line-height: 1.3; letter-spacing: 0; color: var(--ink); }
.empty h2 { font-size: 24px; font-weight: 300; margin: 0 0 10px; }
h2.block-title { line-height: 1.2; color: var(--ink); }
.swiss-map .canton.is-empty:hover path, .swiss-map .canton.is-empty:hover circle,
.swiss-map .canton.is-empty:focus-visible path, .swiss-map .canton.is-empty:focus-visible circle { fill: #b9c6d3; }

/* 1.0.22 – calmer home page: less text, categories as a compact index */
.home-h2 { margin: 0 0 40px; max-width: 22ch; }
.cat-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.cat-col h3 { font-size: 16px; font-weight: 600; color: var(--grey); letter-spacing: 0; margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--ink); }
.cat-col ul { list-style: none; margin: 0; padding: 0; }
.cat-col a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: clamp(20px, 1.7vw, 24px); font-weight: 300; line-height: 1.25; transition: color .15s; }
.cat-col a:hover { color: var(--navy); }
.cat-col a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.cat-col small { font-size: 15px; color: var(--grey); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .cat-cols { grid-template-columns: 1fr; gap: 36px; } }
.faq-item summary { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.faq-item summary::after { content: "+"; font-size: 26px; font-weight: 300; line-height: 1; color: var(--navy); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary h3 { margin: 0; }


/* 1.0.27/1.0.28 – chapter lists on legal pages and guides */
main { scroll-margin-top: var(--header-h); }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html:has(.toc) { scroll-behavior: smooth; } }
.toc .toc-label { font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--grey); margin: 0 0 12px; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-n { font-size: 14px; color: var(--grey-2); font-variant-numeric: tabular-nums; }
.static-body > h2:first-child { margin-top: 0; }
.to-top { margin-top: 40px; font-size: 16px; }

/* legal pages and About: chapters in a column on the left, one word each */
.page-head-doc { padding-bottom: clamp(20px, 2.5vw, 32px); border-bottom: 1px solid var(--line); }
.doc-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; padding-top: clamp(32px, 4vw, 52px); padding-bottom: clamp(56px, 7vw, 96px); }
.doc-aside { min-width: 0; position: sticky; top: calc(var(--header-h) + 28px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
.toc-side .toc-list { border-left: 1px solid var(--line); }
.toc-side .toc-list a { display: flex; align-items: baseline; gap: 10px; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; font-size: 16px; line-height: 1.35; color: var(--grey); text-decoration: none; transition: color .15s, border-color .15s; }
.toc-side .toc-n { min-width: 2ch; }
.toc-side .toc-list a:hover { color: var(--ink); }
.toc-side .toc-list a:hover .toc-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.toc-side .toc-list a[aria-current="true"] { color: var(--navy); border-left-color: var(--navy); }
.toc-side .toc-list a[aria-current="true"] .toc-n { color: var(--navy); }
.doc-layout .static-body { max-width: 68ch; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .doc-aside { top: var(--header-h); z-index: 40; max-height: none; overflow: visible; margin: 0 calc(var(--gutter) * -1) 28px; padding: 0 var(--gutter); background: #fff; border-bottom: 1px solid var(--line); }
  .toc-side .toc-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  .toc-side .toc-list { display: flex; gap: 22px; border-left: 0; overflow-x: auto; scrollbar-width: none; }
  .toc-side .toc-list::-webkit-scrollbar { display: none; }
  .toc-side .toc-list a { margin: 0; padding: 13px 0 11px; border-left: 0; border-bottom: 2px solid transparent; gap: 6px; white-space: nowrap; font-size: 15px; }
  .toc-side .toc-list a[aria-current="true"] { border-bottom-color: var(--navy); }
  .toc-side .toc-n { min-width: 0; font-size: 13px; }
  .doc-layout .prose h2[id] { scroll-margin-top: calc(var(--header-h) + 72px); }
}

/* guides: box after the short answer */
.toc-compact { margin: 0 0 36px; padding: 20px 22px; border-top: 2px solid var(--navy); background: var(--stone); }
.toc-compact .toc-list a { display: block; line-height: 1.4; padding: 7px 0; font-size: 17px; color: var(--navy); text-decoration: none; }
.toc-compact .toc-list li + li a { border-top: 1px solid var(--line-2); }
.toc-compact .toc-list a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.toc-compact .toc-n { margin-right: 8px; }

/* 1.0.30 – canton without firms: nearby offers */
.empty-place ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.empty-place .btn { margin: 8px 12px 0 0; }

/* 1.0.31 – firm requirements and investor details in the enquiry form */
.req-box { margin: 0 0 20px; padding: 14px 16px; border-left: 2px solid var(--navy); background: var(--stone); }
.req-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.req-box ul { margin: 0; padding-left: 1.1em; font-size: 15px; color: var(--ink-2); }
.req-box li { margin: 2px 0; }
.req-note { margin: 0 0 16px; padding: 12px 14px; font-size: 15px; background: var(--warn-bg); color: var(--warn); border-left: 2px solid var(--warn); }
.req-note.is-block { background: var(--bad-bg); color: var(--bad); border-left-color: var(--bad); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.investor-kv dd .lead-tag { margin-left: 0; }
.form-section fieldset { border: 0; padding: 0; margin-left: 0; margin-right: 0; }
.form-section fieldset legend { padding: 0; margin-bottom: 6px; color: var(--ink-2); font-weight: 600; }
.btn.is-disabled { opacity: .45; cursor: not-allowed; }

/* 1.0.32 – accessibility: focused elements never hide under the sticky header; visible focus on the map */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (max-width: 960px) { html:has(.doc-aside) { scroll-padding-top: calc(var(--header-h) + 64px); } }
.swiss-map .canton:focus-visible path, .swiss-map .canton:focus-visible circle { stroke: var(--ink); stroke-width: 4; paint-order: stroke; }
.swiss-map .canton:focus-visible { outline: none; }
.sent-details summary { cursor: pointer; font-weight: 600; color: var(--ink); }

/* 1.0.32 – mobile: all account links visible, contact always one tap away on a firm profile */
@media (max-width: 860px) {
  .account-nav { flex-wrap: wrap; overflow-x: visible; column-gap: 18px; }
  .account-nav a { padding-right: 0; }
  .mobile-contact-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mobile-contact-bar .btn { width: 100%; }
  body:has(.mobile-contact-bar) .site-footer { padding-bottom: 88px; }
}
@media (min-width: 861px) { .mobile-contact-bar { display: none; } }
.cat-tile h3 a { color: var(--ink); text-decoration: none; } .cat-tile h3 a:hover { color: var(--navy); }
.mobile-contact-bar[hidden] { display: none !important; }
.csrf-error { font-size: 15px; color: var(--bad); margin: 0 0 12px; }

/* ---------- 1.0.40: promotion for all firms ---------- */
.promo-band { color: var(--ink); }
.promo-band-inner { display: flex; gap: 18px; align-items: flex-start; }
.promo-tag { flex: none; display: inline-block; font-size: 14px; font-weight: 600; line-height: 1.5; padding: 2px 10px; border-radius: var(--r); background: var(--navy); color: #fff; margin-top: 3px; }
.promo-copy { min-width: 0; }
.promo-title { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
.promo-text { margin: 0; color: var(--ink-2); max-width: 75ch; }
.promo-band-pricing { background: var(--navy); color: #fff; padding: 26px 0; }
.promo-band-pricing .promo-tag { background: #fff; color: var(--navy); }
.promo-band-pricing .promo-title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 300; color: #fff; }
.promo-band-pricing .promo-text { color: #d9e3ee; }
.promo-panel-area { padding-top: 18px; }
.promo-band-panel { background: var(--navy-tint); border-left: 3px solid var(--navy); padding: 16px 20px; }
.promo-band-panel .promo-title { font-size: 19px; }
.promo-plan-note { background: var(--navy-tint); padding: 10px 14px; border-left: 3px solid var(--navy); }
@media (max-width: 600px) { .promo-band-inner { flex-direction: column; gap: 8px; } }

/* ---------- 1.0.41: gifts for single firms ---------- */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 16px; align-items: start; }
.gift-form .check-row { margin-bottom: 12px; }
.col-check { width: 36px; }
.col-check input { width: 18px; height: 18px; accent-color: var(--navy); }
.plain-list { list-style: none; padding: 0; margin: 0 0 8px; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.d-inline { display: inline; }

/* 1.0.42: verification form (radio group) and admin checklist */
fieldset.field { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
fieldset.field legend { display: block; padding: 0; font-size: 16px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.verify-checklist { border-top: 1px solid var(--line, #e3e5e8); padding-top: 12px; }

/* ---------- 1.0.44 – panel design for admin and account (grey work area, grouped navigation, white panels) ---------- */
.panel-body { background: var(--stone); }
.panel-body main#main { background: var(--stone); }
.panel-body .site-footer { background: #fff; }
.panel-body .flash-area { padding-top: 16px; }
.panel-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.panel-header-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); min-height: 72px; display: flex; align-items: center; gap: 18px; }
.panel-header-tag { font-size: 15px; color: var(--grey); padding-left: 18px; border-left: 1px solid var(--line); }
.panel-header-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 17px; }
.panel-header-nav a, .panel-header-nav .btn-link { color: var(--ink-2); }
.panel-header-nav form { margin: 0; }
.panel-layout { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 88px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
.panel-layout .admin-main, .panel-main { padding: 0; min-width: 0; }
.panel-footer { background: #fff; border-top: 1px solid var(--line); }
.panel-footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.account-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding-top: 40px; }
.panel-nav { align-self: start; position: sticky; top: calc(var(--header-h) + 20px); min-width: 0; }
.panel-nav-admin { top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-width: thin; }
.panel-user { padding: 0 14px 18px; line-height: 1.35; }
.panel-user strong { display: block; font-size: 18px; color: var(--ink); }
.panel-user span { display: block; font-size: 15px; color: var(--grey); overflow-wrap: anywhere; }
.panel-nav-toggle { display: none; }
.panel-nav-list { display: flex; flex-direction: column; }
.panel-nav-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; font-size: 17px; line-height: 1.35; color: var(--ink-2); text-decoration: none; }
.panel-nav-list a:hover { background: rgba(255, 255, 255, .7); color: var(--navy); text-decoration: none; }
.panel-nav-list a.is-active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--navy); }
.panel-nav-list .nav-group { margin: 20px 0 4px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--grey-2); letter-spacing: .01em; }
.panel-nav-list .nav-group-ico { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 14px 6px; font-size: 15px; color: var(--ink); border-top: 1px solid var(--line-2); letter-spacing: 0; }
.panel-nav-list .nav-group-ico:first-child { border-top: 0; padding-top: 0; }
.panel-nav-list .nav-group-ico + a, .panel-nav-list a + .nav-group-ico { margin-top: 0; }
.panel-nav-list .nav-group-ico + a { margin-top: 2px; }
.panel-nav-list a + .nav-group-ico { margin-top: 12px; }
.panel-nav .nav-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); }
.panel-nav .nav-ico .ico { width: 16px; height: 16px; }
.panel-nav-list a.nav-sub { padding-left: 52px; font-size: 16px; }
.nav-count { display: inline-flex; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; align-items: center; justify-content: center; flex: none; }
.nav-count.is-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #e5cf9e; }
.nav-logout-form { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); }
.nav-logout { background: none; border: 0; padding: 9px 14px; font: inherit; font-size: 17px; color: var(--ink-2); cursor: pointer; width: 100%; text-align: left; }
.nav-logout:hover { color: var(--navy); background: rgba(255, 255, 255, .7); }
@media (max-width: 900px) {
  .panel-layout, .account-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 22px; }
  .panel-nav, .panel-nav-admin { position: static; max-height: none; overflow: visible; }
  .panel-user { padding: 0 0 12px; }
  .panel-nav-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 50px; padding: 10px 16px; background: #fff; border: 1px solid var(--line-2); font: inherit; font-size: 17px; color: var(--ink); cursor: pointer; text-align: left; }
  .panel-nav-toggle::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg) translateY(-3px); }
  .panel-nav-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
  .panel-nav-list { display: none; background: #fff; border: 1px solid var(--line-2); border-top: 0; padding: 8px 0; }
  .panel-nav-list.is-open { display: flex; }
  .panel-nav-list a.is-active { background: var(--stone); }
  .panel-header-inner { min-height: 60px; }
  .panel-header-tag { display: none; }
  .panel-header-nav { gap: 16px; font-size: 16px; }
}

/* page parts */
.account-main { min-width: 0; }
.panel-h1 { font-size: clamp(30px, 3vw, 38px); font-weight: 300; line-height: 1.15; margin: 0 0 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head .panel-h1 { margin-bottom: 0; }
.panel-head .eyebrow { margin-bottom: 2px; }
.section-h { font-size: 20px; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin: 34px 0 12px; }
.panel-body .panel { border-color: var(--line); background: #fff; padding: 26px 28px; }
.panel-body .panel h2.panel-title { font-size: 21px; font-weight: 600; letter-spacing: 0; }
.panel-body .admin-top h1 { font-size: clamp(30px, 3vw, 38px); }
.panel-body .stat { border-top-color: var(--line-2); }
.panel-body .conv-list { background: #fff; border: 1px solid var(--line); border-top: 1px solid var(--line); }
.panel-body .conv-item { padding: 16px 20px; }
.panel-body .conv-item:last-child { border-bottom: 0; }
.panel-body .empty { background: #fff; border: 1px solid var(--line); }
.ov-tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ov-task { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ov-task:hover { border-color: var(--navy); text-decoration: none; }
.ov-task-n { grid-row: span 2; font-size: 32px; font-weight: 300; line-height: 1; color: var(--navy); min-width: 28px; font-variant-numeric: tabular-nums lining-nums; }
.ov-task-t { font-size: 17px; line-height: 1.35; }
.ov-task-cta { font-size: 15px; font-weight: 600; color: var(--navy); }
.checklist-steps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.step-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); }
.step-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--ink-2); font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; }
.step-item.is-done .step-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.step-body { min-width: 0; }
.step-body strong { display: block; font-size: 18px; line-height: 1.35; }
.step-body span { display: block; line-height: 1.45; }
.step-item form { margin: 0; }
@media (max-width: 560px) { .step-item { grid-template-columns: 30px minmax(0, 1fr); } .step-item > :last-child:not(.step-body) { grid-column: 2; justify-self: start; } }
.tile-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: #fff; border: 1px solid var(--line); margin-bottom: 8px; overflow: hidden; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; background: #fff; color: var(--ink); text-decoration: none; min-width: 0; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
a.tile:hover { text-decoration: none; color: var(--navy); }
.tile-v { font-size: 32px; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.tile-v-text { font-size: 22px; font-weight: 400; }
.tile-k { font-size: 15px; color: var(--grey); line-height: 1.35; }
.row-list { list-style: none; margin: 0 0 20px; padding: 0; background: #fff; border: 1px solid var(--line); }
.row-list li + li { border-top: 1px solid var(--line); }
.row-link { display: flex; justify-content: space-between; align-items: center; gap: 10px 18px; padding: 15px 20px; color: var(--ink); text-decoration: none; flex-wrap: wrap; }
.row-link:hover { background: #fbfaf8; text-decoration: none; }
.row-link:hover strong { color: var(--navy); }
.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 320px; }
.row-main strong { font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.row-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-list li.is-unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); margin-right: 10px; vertical-align: 3px; }
.badge-success { background: var(--ok-bg); color: var(--ok); }
.badge-warning { background: var(--warn-bg); color: var(--warn); }
.badge-muted { background: var(--stone-2); color: var(--ink-2); }
.badge-new { background: var(--navy); color: #fff; }
.empty-state { padding: 28px; }
.prose-box { font-size: 17px; line-height: 1.6; padding: 14px 18px; background: var(--stone); border-left: 2px solid var(--line-2); overflow-wrap: anywhere; }
.offer-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.offer-head > .badge { margin-left: auto; }
.firm-logo-sm { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--navy); overflow: hidden; }
.firm-logo-sm img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.action-row .btn + .btn { margin-left: 0; }
.tabs-inline { display: flex; gap: 24px; flex-wrap: wrap; margin: 14px 0 16px; border-bottom: 1px solid var(--line-2); }
.tabs-inline a { padding: 8px 0 7px; border-bottom: 2px solid transparent; font-size: 16px; color: var(--grey); text-decoration: none; }
.tabs-inline a.is-active { color: var(--ink); border-bottom-color: var(--navy); font-weight: 600; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 16px; }
.field-narrow { max-width: 380px; }
.measure { max-width: 760px; }
.identity-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.identity-facts { display: flex; gap: 6px; flex-wrap: wrap; }
.identity-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.identity-images figure { margin: 0; }
.identity-images img { width: 100%; height: 300px; object-fit: contain; background: var(--stone); border: 1px solid var(--line); }
.identity-images figcaption { margin-top: 4px; }
.panel-body .chip-nav { border-bottom-color: var(--line-2); }
@media print { .panel-header, .panel-footer, .panel-nav { display: none !important; } .panel-layout { display: block; padding: 0; } }
.panel-body .account-title { margin-bottom: 22px; }
.panel-body .account-title h1 { font-size: clamp(30px, 3vw, 38px); }
.panel-body .account-layout > div > .table-wrap, .panel-body .panel-main > .table-wrap, .panel-body .account-layout > div > .search-list { background: #fff; border: 1px solid var(--line); padding: 0 18px; }
.panel-body .table th { border-bottom-color: var(--line-2); }
.panel-body .table tbody tr:hover td { background: #fbfaf8; }
.panel-body .block-title { font-size: 22px; font-weight: 600; letter-spacing: 0; margin: 36px 0 14px; }

/* ---------- 1.0.46: security, risk, help centre, emergency sheet ---------- */
.badge-danger { background: var(--bad-bg); color: var(--bad); }
.text-error { color: var(--bad); }
.risk-list { list-style: none; margin: 0 0 14px; padding: 0; }
.risk-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.risk-list li:first-child { border-top: 0; }
.risk-list .badge { min-width: 52px; text-align: center; margin-right: 6px; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 18px; margin: 0 0 16px; padding-left: 22px; }
.recovery-codes code { font-size: 1rem; letter-spacing: .04em; }
.totp-steps { padding-left: 22px; }
.totp-steps > li { margin-bottom: 16px; }
.totp-qr { margin: 10px 0; }
.totp-qr svg { width: 200px; height: 200px; max-width: 100%; background: #fff; border: 1px solid var(--line); }
.totp-key { font-size: 1rem; letter-spacing: .08em; word-break: break-all; }
.field-group { border: 1px solid var(--line); padding: 10px 14px 4px; margin: 0 0 14px; }
.field-group legend { padding: 0 6px; }
.help-cat { scroll-margin-top: calc(var(--header-h) + 24px); margin: 0 0 40px; }
.help-cat > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin: 0 0 14px; }
.help-cat > h2 .ico { width: 22px; height: 22px; color: var(--navy); }
.help-body { min-width: 0; max-width: 76ch; }
.help-q { border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.help-q:last-child { border-bottom: 1px solid var(--line); }
.help-q > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 600; color: var(--ink); }
.help-q > summary::-webkit-details-marker { display: none; }
.help-q > summary::after { content: '+'; flex: none; font-weight: 400; font-size: 1.25rem; line-height: 1; color: var(--navy); }
.help-q[open] > summary::after { content: '–'; }
.help-q > summary:hover { color: var(--navy); }
.help-q > .prose { padding: 0 0 18px; }
.help-q:target > summary, .help-q.is-target > summary { color: var(--navy); }
.help-assistant { border-left: 3px solid var(--navy); }
.help-thread .msg { max-width: 100%; }
.sheet-body { background: #fff; }
.sheet { max-width: 820px; margin: 0 auto; padding: 28px 16px 40px; font-size: 15px; line-height: 1.5; }
.sheet h1 { font-size: 1.6rem; margin-bottom: 4px; }
.sheet h2 { font-size: 1.1rem; margin: 22px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.sheet-actions { display: flex; gap: 8px; margin-bottom: 18px; }
.sheet-table { width: 100%; border-collapse: collapse; }
.sheet-table th, .sheet-table td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--line); }
.sheet-table th { width: 30%; background: var(--stone); font-weight: 600; }
.sheet-steps li { margin-bottom: 6px; }
@media print { .sheet { padding: 0; font-size: 11pt; } .sheet-table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.totp-steps .inline-form .field { flex: 0 1 220px; }
.totp-steps .code-input { max-width: 220px; letter-spacing: .15em; }
.break-all { word-break: break-all; }
.checklist-status .step-item { grid-template-columns: 70px minmax(0, 1fr); align-items: start; padding: 14px 18px; }
.checklist-status .step-item > .badge { justify-self: start; text-align: center; min-width: 60px; margin-top: 3px; }
@media (max-width: 560px) { .checklist-status .step-item { grid-template-columns: 1fr; gap: 6px; } }

/* 1.0.49: lead pipeline, stage filter, reply templates */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 15px; color: var(--ink-2); text-decoration: none; background: #fff; }
.chip:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.row-flex { display: flex; justify-content: space-between; align-items: center; gap: 10px 18px; padding: 14px 20px; flex-wrap: wrap; }
.h-sub { font-size: 18px; margin: 6px 0 12px; }
.lead-lock { border-left: 3px solid var(--navy); }
.crumbs-bar { padding-top: 14px; padding-bottom: 0; color: var(--grey); }
.crumbs-bar a { color: var(--grey); }
.crumbs-bar [aria-current] { color: var(--ink-2); }
.dir-facts { margin-top: 10px; }
.hero-note { margin: -22px 0 28px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.tpl-form > summary { cursor: pointer; }

/* 1.0.52: text proposal inside the profile editor; long words in check grids wrap instead of overlapping */
.ptext-inline { margin: 0 0 18px; border: 1px solid var(--line-2); background: #fff; }
.ptext-inline > summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; color: var(--navy); font-weight: 600; list-style: none; }
.ptext-inline > summary::-webkit-details-marker { display: none; }
.ptext-inline[open] > summary { border-bottom: 1px solid var(--line); }
.ptext-body { padding: 14px; }
.check-grid .check-row > span { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
/* 1.0.52: numbered sections in long forms (firm verification) */
.form-step { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin: 28px 0 12px; padding-top: 20px; border-top: 1px solid var(--line, #e5e2dc); }
.panel-title + .form-step { margin-top: 8px; padding-top: 0; border-top: 0; }
.form-step-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--ink-2); font-size: 13px; flex: none; }
/* 1.0.52: benefits pages (for investors / for firms) */
.bn-hero-wrap { background: #fff; border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 80px); }
.bn-hero { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.bn-hero.has-shot { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.bn-hero h1 { font-size: clamp(36px, 4vw, 56px); font-weight: 300; line-height: 1.08; letter-spacing: -0.018em; max-width: 16ch; margin-bottom: 22px; }
.bn-hero .hero-lead { margin-bottom: 30px; }
.bn-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bn-shot { margin: 0; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 18px 40px -24px rgba(11, 46, 79, .35); }
.bn-shot a { display: block; cursor: zoom-in; }
.bn-shot img { display: block; width: 100%; height: auto; }
.bn-h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 28px; }
.bn-steps-sec .step p { color: var(--ink-2); margin: 0; }
.bn-group-sec { padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
.bn-group { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.bn-group.has-shot { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.bn-group.has-shot.is-flipped .bn-group-text { order: 2; }
.bn-group .bn-h2 { margin-bottom: 14px; }
.bn-group-lead { color: var(--grey); max-width: 50ch; margin: 0 0 18px; }
.bn-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.bn-more li { border-top: 1px solid var(--ink); padding: 20px 0 28px; }
.bn-more h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.bn-more p { color: var(--grey); font-size: 17px; margin: 0; max-width: 38ch; }
.bn-end { background: var(--navy); color: #fff; padding: clamp(44px, 5vw, 72px) 0; }
.bn-end-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.bn-end h2 { color: #fff; font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); max-width: 24ch; margin-bottom: 10px; }
.bn-end p { margin: 0; }
.bn-end a:not(.btn) { color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: transparent; color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.bn-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.bn-lightbox::backdrop { background: rgba(8, 14, 22, .9); }
.bn-lightbox[open] { display: grid; place-items: center; }
.bn-lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; background: #fff; }
.bn-lightbox-close { position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
@media (max-width: 960px) {
  .bn-hero.has-shot, .bn-group.has-shot { grid-template-columns: minmax(0, 1fr); }
  .bn-group.has-shot.is-flipped .bn-group-text { order: 0; }
  .bn-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .bn-more { grid-template-columns: minmax(0, 1fr); } }
/* 1.0.52: account for investors next to «Firma eintragen» in the header; hint under the home search */
.main-nav a.btn.nav-register { color: var(--ink); background: transparent; border: 1px solid var(--ink); }
.main-nav a.btn.nav-register:hover { color: #fff; background: var(--ink); }
.nav-actions .nav-register + .btn { margin-left: -10px; }
.hero-register { margin: 16px 0 0; color: var(--grey); }
.hero-register a { font-weight: 600; }
@media (max-width: 1180px) { .nav-actions .nav-register + .btn { margin-left: 0; } }
.main-nav a { white-space: nowrap; }
/* 1.0.53: details from the firm's website */
.pimport > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pimport > summary .ico { width: 18px; height: 18px; color: var(--navy); }
.pimport[open] > summary { margin-bottom: 10px; }
.pimport-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pimport-list li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.pimport-list .check-row > span { min-width: 0; overflow-wrap: anywhere; }
/* 1.0.53: small «i» next to a column heading (explanation in the title) */
.info-dot { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 600; color: var(--grey); vertical-align: 1px; cursor: help; }

/* 1.0.54: messenger */
.chat { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.chat .msg { max-width: 76%; padding: 12px 16px 10px; background: var(--white); border: 1px solid var(--line); border-radius: 10px 10px 10px 2px; }
.chat .msg.mine { align-self: flex-end; background: var(--navy); border-color: var(--navy); color: #fff; border-radius: 10px 10px 2px 10px; }
.chat .msg.msg-admin { background: var(--navy-tint); }
.chat .msg .meta { font-size: 13px; margin-bottom: 2px; }
.chat .msg .body { font-size: 17px; }
.chat-day { text-align: center; margin: 8px 0 2px; font-size: 13px; color: var(--grey); }
.chat-day span { background: var(--white); padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; }
.msg-files { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.msg-files a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; word-break: break-all; }
.msg.mine .msg-files a { color: #fff; text-decoration: underline; }
.msg-file-ico { display: inline-block; min-width: 32px; padding: 1px 4px; font-size: 11px; font-weight: 600; text-align: center; border: 1px solid currentColor; border-radius: 3px; }
.msg-tools { margin-top: 4px; }
.msg-translation { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-2); font-size: 16px; white-space: pre-wrap; color: var(--ink-2); }
.msg-read { margin-top: 2px; font-size: 12px; text-align: right; color: #b3c3d3; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.msg.mine .link-btn { color: #fff; }
.chat-compose { margin-top: 8px; }
.chat-assist { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.chat-assist > div { flex-basis: 100%; }
.chat-assist-tr { display: inline-flex; gap: 4px; align-items: center; }
.chat-assist select { min-height: 32px; padding: 2px 8px; font-size: 14px; width: auto; }
.btn-xs { min-height: 32px; padding: 4px 10px; font-size: 14px; }
.chat-safety summary { cursor: pointer; font-weight: 600; }
tr.is-unread td:first-child strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); margin-right: 8px; vertical-align: 2px; }
@media (max-width: 600px) { .chat .msg { max-width: 92%; } }
.identity-manual { margin: 6px 0 12px 26px; padding-left: 12px; border-left: 2px solid var(--line); }
.identity-manual label { font-size: 15px; }
.privacy-box { padding: 16px 18px; background: var(--stone); border: 1px solid var(--line); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 18px; }
