/* VoIPMatcher: one stylesheet, no build step. */

@font-face { font-family: "Sora"; src: url("/fonts/sora-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; src: url("/fonts/sora-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; src: url("/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; src: url("/fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; src: url("/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
    --ink: #0b1b2b;
    --ink-2: #13283d;
    --ink-3: #1d3954;
    --night: #08131f;
    --teal: #14b89a;
    --teal-strong: #0b8f78;   /* teal text on white, AA */
    --teal-soft: #e4f6f1;
    --bg: #f5f7f9;
    --surface: #ffffff;
    --line: #dfe5eb;
    --line-strong: #c7d1db;
    --text: #0b1b2b;
    --muted: #556576;
    --on-dark: #e9f0f6;
    --on-dark-muted: #9fb2c4;
    --warn: #b7791f;
    --warn-soft: #fdf3e1;
    --bad: #c2413a;
    --bad-soft: #fbe9e7;
    --good: #0b8f78;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 2px rgba(11, 27, 43, .06), 0 8px 24px rgba(11, 27, 43, .06);
    --font: "Plex", -apple-system, "Segoe UI", "Noto Sans", sans-serif;
    --display: "Sora", "Plex", -apple-system, sans-serif;
    --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 600 .78rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-strong); }
.dark .eyebrow { color: var(--teal); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .6em 1.15em; border-radius: var(--radius); border: 1px solid transparent; font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #04241d; }
.btn-primary:hover { background: #1fcca9; color: #04241d; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.dark .btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.25); }
.dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 34px; padding: .35em .75em; font-size: .85rem; }
.btn-link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--ink); }
.btn-danger { color: var(--bad); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header.on-dark { background: rgba(8,19,31,.82); border-bottom-color: rgba(255,255,255,.08); color: var(--on-dark); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 650 1.2rem/1 var(--display); letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: 650; color: var(--teal-strong); }
.on-dark .brand, .dark .brand { color: #fff; }
.on-dark .brand b, .dark .brand b { color: var(--teal); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a, .main-nav .btn-link { color: inherit; text-decoration: none; padding: .5em .7em; border-radius: 8px; font-weight: 500; font-size: .94rem; }
.main-nav a:hover { background: rgba(127,140,155,.12); color: inherit; }
.main-nav .btn { margin-left: 8px; }
.on-dark .main-nav a:not(.btn) { color: var(--on-dark); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35em; padding: .5em .7em; border-radius: 8px; font-weight: 500; font-size: .94rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 160px; }
.lang li a { display: block; padding: .45em .7em; border-radius: 6px; color: var(--text); text-decoration: none; }
.lang li a:hover, .lang li a[aria-current] { background: var(--teal-soft); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 20px; background: #fff; color: var(--text); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .on-dark .main-nav a:not(.btn) { color: var(--text); }
    .main-nav a, .main-nav .lang summary { padding: .8em .4em; }
    .main-nav .btn { margin: 10px 0 0; }
    .lang ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
}

/* Dark hero */
.dark { background: var(--night); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .muted { color: var(--on-dark-muted); }
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--night) url("/img/hero.jpg") center right / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,19,31,.96) 0%, rgba(8,19,31,.82) 42%, rgba(8,19,31,.35) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: "text form" "demo form"; gap: 0 clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { grid-area: text; }
.hero-grid .quick { grid-area: form; }
.hero-grid .demo { grid-area: demo; align-self: start; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--on-dark-muted); max-width: 56ch; margin-bottom: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--on-dark); font-size: .92rem; }
.trust li { display: inline-flex; align-items: center; gap: .45em; }
.trust .icon { color: var(--teal); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; grid-template-areas: "text" "form" "demo"; gap: 28px; } .hero h1 { max-width: 20ch; } }

/* Quick form card */
.quick { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.quick h2 { font-size: 1.25rem; margin-bottom: 16px; color: var(--ink); }
.quick .note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.quick .btn { width: 100%; margin-top: 6px; }

/* Segmented control (radio pills) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; gap: .45em; min-height: 40px; padding: .4em .6em; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; text-align: center; }
.seg input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11,27,43,.12); }
.seg input:focus-visible + label { outline: 3px solid var(--teal); }
.seg input[value="buy"]:checked + label .icon { color: #2f6fd6; }
.seg input[value="sell"]:checked + label .icon { color: var(--teal-strong); }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: .9rem; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
.hint { font-size: .82rem; color: var(--muted); margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=search], select, textarea {
    width: 100%; min-height: 44px; padding: .55em .8em; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--text); font: inherit; font-size: 1rem;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,154,.2); }
.input-unit { display: flex; align-items: stretch; }
.input-unit input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-unit span { display: inline-flex; align-items: center; padding: 0 .8em; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg); color: var(--muted); font-size: .85rem; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { display: inline-flex; align-items: center; gap: .35em; min-height: 36px; padding: .3em .85em; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: .88rem; font-weight: 500; cursor: pointer; user-select: none; }
.chips input:checked + label { background: var(--teal-soft); border-color: var(--teal); color: #064d40; }
.chips input:checked + label::before { content: ""; width: .55em; height: .28em; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-.1em); }
.chips input:focus-visible + label { outline: 3px solid var(--teal); }
.check { display: flex; gap: .6em; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .2em; accent-color: var(--teal-strong); flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.error { color: var(--bad); font-size: .85rem; margin: 0; }
.has-error input, .has-error select { border-color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

/* Searchable country picker */
.picker { position: relative; }
.picker-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 280px; overflow: auto; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.picker-list li { display: flex; justify-content: space-between; gap: 10px; padding: .5em .7em; border-radius: 6px; cursor: pointer; }
.picker-list li[aria-selected=true], .picker-list li:hover { background: var(--teal-soft); }
.picker-list .dial { color: var(--muted); font-family: var(--mono); font-size: .85rem; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.surface { background: var(--surface); }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card .icon-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-strong); margin-bottom: 16px; }
.card .icon-badge .icon { width: 22px; height: 22px; }
.card p { color: var(--muted); margin: 0; }
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 500 .85rem/1 var(--mono); color: var(--teal-strong); margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(48px, 6vw, 80px); }
.split.reverse > :first-child { order: 2; }
.split figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.split figure img { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: .6em; align-items: flex-start; }
.ticks .icon { color: var(--teal-strong); margin-top: .25em; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pill-list a, .pill-list span { display: inline-flex; align-items: center; gap: .5em; padding: .5em .95em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; }
.pill-list a:hover { border-color: var(--teal); color: var(--ink); }
.pill-list .dial { color: var(--muted); font-family: var(--mono); font-size: .8rem; }

/* Hero match demo */
.demo { position: relative; display: grid; gap: 14px; }
.demo-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px 18px; backdrop-filter: blur(6px); }
.demo-card header { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: .8rem; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.demo-card .who { display: inline-flex; align-items: center; gap: .5em; color: #fff; }
.demo-card .who .dot { width: 8px; height: 8px; border-radius: 50%; background: #5a8ff0; }
.demo-card.seller .who .dot { background: var(--teal); }
.demo-card .blur { filter: blur(5px); user-select: none; color: #fff; }
.demo-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
.demo-row span:first-child { color: var(--on-dark-muted); }
.demo-row span:last-child { font-family: var(--mono); color: #fff; }
.demo-match { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; color: #fff; }
.demo-match .score { font: 600 1rem/1 var(--mono); padding: .45em .7em; border-radius: 8px; background: var(--teal); color: #04241d; }
.demo-match .line { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(20,184,154,.8), transparent); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.cta-band { border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: var(--on-dark-muted); margin: 0; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding: 56px 0 32px; font-size: .92rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font: 600 .82rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Page header (inner pages) */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.page-hero .lead { font-size: 1.12rem; color: var(--on-dark-muted); max-width: 62ch; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4em; list-style: none; margin: 0 0 18px; padding: 0; font-size: .85rem; color: var(--on-dark-muted); }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: .4em; opacity: .5; }
.prose { font-size: 1.04rem; }
.prose p, .prose li { color: #2a3b4c; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.stat strong { display: block; font: 600 1.6rem/1.1 var(--display); }
.stat span { color: var(--muted); font-size: .9rem; }
.country-index { columns: 4 220px; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
.country-index li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.country-index a { color: var(--text); text-decoration: none; }
.country-index a:hover { color: var(--teal-strong); }
.country-index .links { display: flex; gap: 10px; font-size: .82rem; white-space: nowrap; }
.country-index .links a { color: var(--teal-strong); }

/* App (member + admin) */
.app-main { padding: 32px 0 72px; min-height: 70vh; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.app-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.app-head p { margin: 6px 0 0; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 14px; }
.flash { display: flex; gap: .6em; align-items: center; padding: 12px 16px; border-radius: var(--radius); background: var(--teal-soft); color: #064d40; margin-bottom: 20px; font-weight: 500; }
.notice { display: flex; gap: .7em; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: #eef3f8; color: var(--ink-2); font-size: .92rem; margin-bottom: 20px; }
.notice .icon { color: var(--teal-strong); margin-top: .15em; }
.notice.warn { background: var(--warn-soft); }
.notice.warn .icon { color: var(--warn); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .cols-2 { grid-template-columns: 1fr; } }

.route-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.route { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.route.paused { opacity: .6; background: var(--bg); }
.route-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.route-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--muted); }
.route-actions { display: flex; gap: 6px; align-items: center; }
.route-actions form { display: inline; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; text-decoration: none; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn.danger:hover { color: var(--bad); border-color: var(--bad); }
.icon-btn .icon { width: 16px; height: 16px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.tag { display: inline-flex; align-items: center; gap: .3em; padding: .2em .55em; border-radius: 6px; font: 600 .72rem/1.3 var(--font); letter-spacing: .03em; text-transform: uppercase; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.tag.buy { background: #e8f0fd; color: #24529f; border-color: #cbdaf6; }
.tag.sell { background: var(--teal-soft); color: #075f50; border-color: #bfe9de; }
.tag.voice { background: #f1ecfb; color: #5b3aa0; border-color: #ddd2f3; }
.tag.sms { background: #fdf0e6; color: #9a4b12; border-color: #f6dcc6; }
.tag.paused { background: #f1f3f5; }

.form-section { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }
.form-section h3 { font-size: 1rem; display: flex; align-items: center; gap: .5em; }
.more { border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 20px; background: var(--bg); }
.more > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 600; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary small { font-weight: 400; color: var(--muted); display: block; }
.more[open] > summary .icon { transform: rotate(180deg); }
.more .more-body { padding: 0 18px 8px; background: #fff; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

.auth-wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
.auth-aside { position: sticky; top: 96px; }
@media (max-width: 960px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { position: static; } }

/* Admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-nav a { display: inline-flex; align-items: center; gap: .45em; padding: .7em .9em; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--teal); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.kpi strong { display: block; font: 600 1.9rem/1.1 var(--display); }
.kpi span { color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; background: var(--bg); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.filters .field { margin: 0; min-width: 140px; }
.filters select, .filters input { min-height: 38px; padding: .35em .6em; font-size: .9rem; }

.match { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.match + .match { margin-top: 16px; }
.match-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.score { display: inline-grid; place-items: center; min-width: 52px; height: 36px; padding: 0 8px; border-radius: 8px; font: 600 1rem/1 var(--mono); }
.score.hi { background: var(--teal); color: #04241d; }
.score.mid { background: #ffe7b8; color: #6b4300; }
.score.lo { background: #eceff3; color: var(--muted); }
.match-sides { display: grid; grid-template-columns: 1fr 1fr; }
.match-side { padding: 16px 18px; }
.match-side + .match-side { border-left: 1px solid var(--line); }
.match-side h4 { margin: 6px 0 4px; font-size: 1.02rem; }
.contact { display: grid; gap: 2px; font-size: .88rem; margin: 6px 0 10px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; font-size: .86rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.reasons { list-style: none; margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.reasons li { font-size: .8rem; padding: .25em .6em; border-radius: 6px; }
.reasons .good { background: var(--teal-soft); color: #064d40; }
.reasons .warn { background: var(--warn-soft); color: #7a4b05; }
.reasons .bad { background: var(--bad-soft); color: #8d2620; }
.match-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg); }
.match-foot select { width: auto; min-height: 36px; }
.match-foot input[type=text] { flex: 1; min-width: 200px; min-height: 36px; }
@media (max-width: 760px) { .match-sides { grid-template-columns: 1fr; } .match-side + .match-side { border-left: 0; border-top: 1px solid var(--line); } }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.pagination a, .pagination span { padding: .4em .75em; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--text); font-size: .9rem; }
.pagination [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.field.wide { grid-column: 1 / -1; }
[hidden] { display: none !important; }
.grid-2, .grid-3 { align-items: start; }
.cols-2 > .panel + .panel { margin-top: 0; }

/* Language menu: always dark text on a white card, whatever the header colour. */
.lang summary { border: 1px solid transparent; }
.lang[open] summary, .lang summary:hover { background: rgba(127,140,155,.14); }
.lang ul { min-width: 190px; padding: 6px; border-radius: 12px; box-shadow: 0 12px 32px rgba(8,19,31,.22); z-index: 40; }
.main-nav .lang li a, .on-dark .main-nav .lang li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text); padding: .55em .75em; border-radius: 8px; font-weight: 500; }
.main-nav .lang li a:hover, .on-dark .main-nav .lang li a:hover { background: var(--bg); color: var(--ink); }
.main-nav .lang li a[aria-current], .on-dark .main-nav .lang li a[aria-current] { background: var(--teal-soft); color: #064d40; }
.main-nav .lang li a[aria-current]::after { content: ""; width: .6em; height: .3em; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-.15em); }
.lang li a span.code { font: 500 .75rem/1 var(--mono); color: var(--muted); }
@media (max-width: 900px) { .lang ul { box-shadow: none; } }

/* Open requests board */
.board-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.board-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); border-top: 3px solid #2f6fd6; }
.board-card.available { border-top-color: var(--teal); }
.board-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.board-tag { font: 600 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #24529f; }
.board-card.available .board-tag { color: var(--teal-strong); }
.board-card h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: baseline; gap: .4em; flex-wrap: wrap; }
.board-card h3 .dial { font: 500 .8rem/1 var(--mono); color: var(--muted); }
.board-bits { margin: 0; font-weight: 500; font-size: .92rem; }
.board-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.board-facts div { display: inline-flex; gap: .35em; padding: .25em .6em; background: var(--bg); border-radius: 6px; font-size: .82rem; }
.board-facts dt { color: var(--muted); }
.board-facts dd { margin: 0; font-family: var(--mono); font-size: .8rem; }
.board-card footer { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head-row h2 { margin: 0; }
.section-head-row p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.filters .seg { flex: 1 1 260px; }
.chips-radio input:checked + label::before { display: none; }
.chips-radio input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.dest-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .dest-grid { grid-template-columns: 1fr; } }
.facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facts div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.cards-ticks { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards-ticks li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; font-weight: 500; }
.sell-band { background: linear-gradient(120deg, var(--ink) 0%, #0f3a43 100%); }
.guide h2 { font-size: 1.45rem; margin-top: 1.8em; }
.guide table { margin: 1em 0 1.5em; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guide td, .guide th { font-size: .95rem; }

/* Guides */
.guide-title { max-width: 22ch; }
.guide-date { margin: 14px 0 0; font-size: .85rem; color: var(--on-dark-muted); }
.guide-shell { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: clamp(28px, 4vw, 64px); justify-content: center; padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 80px); }
.guide-aside { position: sticky; top: 92px; align-self: start; display: grid; gap: 18px; }
.toc { border-left: 2px solid var(--line); padding-left: 16px; }
.toc-title { font: 600 .75rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.toc a { color: var(--text); text-decoration: none; font-size: .9rem; line-height: 1.35; display: block; }
.toc a:hover { color: var(--teal-strong); }
.aside-cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; font-size: .9rem; }
.aside-cta p { margin: 0 0 8px; color: var(--muted); }
.aside-cta p strong { color: var(--ink); }
.guide { font-size: 1.04rem; min-width: 0; }
.guide > :first-child { margin-top: 0; }
.guide .summary { font-size: 1.12rem; line-height: 1.6; color: var(--ink); background: var(--teal-soft); border-left: 4px solid var(--teal); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 28px; }
.guide h2 { font-size: 1.45rem; margin: 2em 0 .6em; scroll-margin-top: 90px; }
.guide h3 { font-size: 1.12rem; margin: 1.5em 0 .5em; }
.guide p, .guide li { color: #2a3b4c; }
.guide ul, .guide ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.guide li { margin-bottom: .45em; }
.guide li::marker { color: var(--teal-strong); }
.guide a { font-weight: 500; }
.guide table { display: block; max-width: 100%; overflow-x: auto; width: max-content; min-width: 100%; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.guide table td, .guide table th { font-size: .94rem; }
.guide table td:first-child { font-weight: 600; white-space: nowrap; }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.guide-links a { display: inline-flex; align-items: center; gap: .5em; padding: .55em .9em; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-size: .92rem; color: var(--text); }
.guide-links a:hover { border-color: var(--teal); }
.guide-cta { margin-top: 44px; padding: 28px; border-radius: var(--radius-lg); background: var(--ink); display: grid; gap: 18px; }
.guide-cta h2 { color: #fff; margin: 0 0 6px; font-size: 1.35rem; }
.guide-cta p { color: var(--on-dark-muted); margin: 0; }
.guide-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-cta .btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.25); }
.guide-cta .btn-ghost:hover { color: #fff; border-color: #fff; }
.guide-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 8px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--teal); transform: translateY(-1px); color: var(--text); }
.guide-card strong { font-family: var(--display); font-weight: 600; line-height: 1.3; }
.guide-card span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.guide-card .guide-cat { font: 600 .7rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-strong); }
.cat-title { font-size: 1.4rem; margin: 40px 0 16px; scroll-margin-top: 90px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cat-nav a { display: inline-flex; gap: .5em; align-items: center; padding: .45em .85em; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: var(--on-dark); text-decoration: none; font-size: .9rem; }
.cat-nav a:hover { border-color: var(--teal); color: #fff; }
.cat-nav span { font: 500 .78rem/1 var(--mono); color: var(--teal); }
@media (max-width: 960px) {
    .guide-shell { grid-template-columns: minmax(0, 1fr); }
    .guide-aside { position: static; order: 0; }
    .aside-cta { display: none; }
}

/* Mobile first refinements */
.toc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc[open] summary .icon { transform: rotate(180deg); }
.toc summary .icon { transition: transform .2s; }
.tag, .board-tag, .guide-card .guide-cat, .guide-cat { font-size: .75rem; }
.section-head-row > a, .dest-grid aside > p > a, .app-head p > a, .guides-more { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; }
.country-index .links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; }
@media (max-width: 960px) {
    .toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 16px; }
    .toc summary { min-height: 48px; margin: 0; }
    .toc nav { padding-bottom: 12px; }
    .toc a { padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
}
@media (max-width: 640px) {
    /* Tables in guides become one card per row, each value with its column label. */
    .guide table.stack { display: block; width: 100%; border: 0; background: none; overflow: visible; }
    .guide table.stack thead { display: none; }
    .guide table.stack tbody, .guide table.stack tr, .guide table.stack td { display: block; width: 100%; }
    .guide table.stack tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
    .guide table.stack td { border: 0; padding: 4px 0; white-space: normal; }
    .guide table.stack td[data-label]::before { content: attr(data-label); display: block; font: 600 .72rem/1.4 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
    .guide table.stack td:first-child { font-size: 1.02rem; padding-top: 0; }
    .guide table.stack td:first-child::before { display: none; }
    /* My routes: actions on their own row, full size. */
    .route { grid-template-columns: 1fr; }
    .route-actions { order: 3; padding-top: 10px; border-top: 1px solid var(--line); justify-content: flex-start; gap: 10px; }
    .icon-btn { width: 44px; height: 44px; }
    .match-foot select, .match-foot .btn { min-height: 44px; }
    .page-hero .actions .btn { width: 100%; }
    .cta-band .btn { width: 100%; }
    .hero h1 { font-size: 2.05rem; }
}
.guide-faq { margin-top: 8px; }
.guide-faq details p { padding-bottom: 16px; }
.guide .checked { font-size: .88rem; color: var(--muted); margin-top: -12px; }
.tool { margin: 36px 0 8px; padding: 22px; border: 2px solid var(--teal); border-radius: var(--radius-lg); background: #fff; }
.tool h2 { margin-top: 0 !important; }
.tool textarea { font-size: 1rem; }
.tool-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
.tool-out div { background: var(--bg); border-radius: var(--radius); padding: 10px 12px; }
.tool-out dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tool-out dd { margin: 2px 0 0; font: 600 1.15rem/1.2 var(--mono); }
@media (max-width: 560px) { .tool-out { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Admin: match rows */
.mlist { display: grid; gap: 8px; }
.mrow { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius); }
.mrow.lvl-complete { border-left-color: var(--teal); }
.mrow.lvl-partial { border-left-color: #e0a12b; }
.mrow.lvl-to_qualify { border-left-color: #7d8ea0; }
.mrow.lvl-incompatible { border-left-color: var(--bad); opacity: .8; }
.mrow > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 2fr) 100px; gap: 12px; align-items: center; padding: 12px 14px; min-height: 56px; }
.mrow > summary::-webkit-details-marker { display: none; }
.mrow[open] > summary { border-bottom: 1px solid var(--line); background: var(--bg); }
.lvl { font: 600 .75rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .05em; }
.lvl-complete .lvl { color: var(--teal-strong); }
.lvl-partial .lvl { color: #9a6a0e; }
.lvl-to_qualify .lvl { color: var(--muted); }
.lvl-incompatible .lvl { color: var(--bad); }
.mrow-main { display: grid; gap: 2px; min-width: 0; }
.mrow-dest { display: flex; gap: 6px; align-items: center; }
.mrow-parties { font-size: .88rem; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mrow-parties .icon { width: 14px; height: 14px; }
.crit-strip { display: flex; flex-wrap: wrap; gap: 4px; }
.crit { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; padding: 2px 6px 2px 4px; border-radius: 6px; background: var(--bg); color: var(--muted); }
.crit .icon { width: 14px; height: 14px; }
.s-ok { color: var(--teal-strong); }
.s-check { color: #9a6a0e; }
.s-no { color: var(--bad); }
.s-unknown { color: #7d8ea0; }
.crit.s-ok { background: var(--teal-soft); }
.crit.s-check { background: var(--warn-soft); }
.crit.s-no { background: var(--bad-soft); }
.mrow-status { font-size: .78rem; text-align: right; color: var(--muted); text-transform: capitalize; }
.mrow-status.st-deal { color: var(--teal-strong); font-weight: 600; }
.match-sheet { padding: 0; }
.crit-table { border: 0; border-radius: 0; border-top: 1px solid var(--line); }
.crit-table td .icon { width: 15px; height: 15px; }
.crit-table td:last-child { white-space: nowrap; }
.crm { font: 600 .68rem/1 var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 3px 6px; border-radius: 5px; background: var(--bg); color: var(--muted); vertical-align: middle; }
.crm-qualified { background: #e8f0fd; color: #24529f; }
.crm-client { background: var(--teal-soft); color: #075f50; }
.crm-not_interested { background: var(--bad-soft); color: #8d2620; }
.level-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.level-tabs a { display: inline-flex; gap: 6px; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); font-size: .9rem; }
.level-tabs a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.level-tabs b { font-family: var(--mono); font-weight: 500; }
@media (max-width: 900px) {
    .mrow > summary { grid-template-columns: 1fr auto; grid-template-areas: "lvl status" "main main" "crit crit"; }
    .mrow > summary .lvl { grid-area: lvl; }
    .mrow > summary .mrow-status { grid-area: status; }
    .mrow > summary .mrow-main { grid-area: main; }
    .mrow > summary .crit-strip { grid-area: crit; }
    .crit span { display: none; }
    .crit { padding: 3px; }
}
a.kpi { text-decoration: none; color: var(--text); }
a.kpi:hover { border-color: var(--teal); }
.kpi-complete strong { color: var(--teal-strong); }
.kpi-partial strong { color: #9a6a0e; }
.mlist > *, .mrow, .match-sheet { min-width: 0; max-width: 100%; }
.mrow .table-wrap { max-width: 100%; }
@media (max-width: 640px) {
    .crit-table table, .crit-table tbody, .crit-table tr, .crit-table td { display: block; width: 100%; }
    .crit-table thead { display: none; }
    .crit-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
    .crit-table td { border: 0; padding: 2px 0; }
    .crit-table td:first-child { font-weight: 600; }
    .crit-table td:nth-child(2)::before { content: "Buyer: "; color: var(--muted); }
    .crit-table td:nth-child(3):not(.res)::before { content: "Seller: "; color: var(--muted); }
    .crit-table td[colspan]::before { content: ""; }
    .match-foot input[type=text] { min-width: 0; }
}
.redacted { display: inline-block; width: 92px; height: 10px; border-radius: 4px; background: rgba(255,255,255,.22); vertical-align: middle; }

/* Messages */
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--teal); color: #04241d; font: 600 .72rem/1 var(--font); vertical-align: middle; }
.thread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.thread-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; min-height: 56px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.thread-item:hover { border-color: var(--teal); color: var(--text); }
.thread-item.unread { border-left: 4px solid var(--teal); }
.thread-item.unread .thread-subject { font-weight: 700; }
.thread-subject { font-weight: 500; }
.thread-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .85rem; }
.thread-company { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
.thread { display: grid; gap: 12px; margin-bottom: 20px; max-width: 760px; }
.msg { padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; max-width: 92%; }
.msg header { font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.msg-body { line-height: 1.6; overflow-wrap: anywhere; }
.msg-them { justify-self: start; }
.msg-me { justify-self: end; background: var(--teal-soft); border-color: #bfe9de; }
.reply-box { max-width: 760px; }
.notice-msg { text-decoration: none; background: var(--teal-soft); color: #064d40; }
.notice-msg:hover { color: #064d40; border-color: var(--teal); }
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; display: grid; gap: 12px; padding: 16px 18px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(8,19,31,.25); font-size: .92rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.consent-actions .btn { min-height: 44px; }
