/* ==========================================================================
   Tryvon design system — ocean/teal + sand + gold, glass surfaces, light & dark.
   Tokens ported from the Lovable design (oklch), class names shared by every Razor page.
   Mobile-first, WCAG AA contrast, 44px touch targets, Tamil-friendly line height.
   ========================================================================== */
:root {
  color-scheme: light;
  --font-ui: "Plus Jakarta Sans", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ta: "Noto Sans Tamil", "Plus Jakarta Sans", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 2rem);
  /* page width: 1200px on laptops, grows with big screens (84% of the width), capped at 1760px */
  --page-max: clamp(1200px, 84vw, 1760px);
  --section: clamp(3rem, 7vw, 6rem);
  --radius: 14px; --radius-lg: 22px; --radius-xl: 28px;

  --bg: oklch(0.985 0.008 85);
  --ink: oklch(0.22 0.035 225);
  --surface: oklch(0.965 0.014 82);
  --card: oklch(1 0 0);
  --brand: oklch(0.47 0.085 200);
  --brand-ink: oklch(0.985 0.01 190);
  --brand-dark: oklch(0.4 0.08 205);
  --brand-light: oklch(0.94 0.035 195);
  --ocean: oklch(0.55 0.09 205);
  --ocean-deep: oklch(0.27 0.055 225);
  --sand: oklch(0.9 0.045 80);
  --gold: oklch(0.76 0.13 78);
  --gold-ink: oklch(0.28 0.06 60);
  --ok: oklch(0.5 0.13 155); --ok-bg: oklch(0.94 0.05 155);
  --err: oklch(0.52 0.19 27); --err-bg: oklch(0.95 0.035 27);
  --warn: oklch(0.55 0.13 60); --warn-bg: oklch(0.95 0.06 85);
  --muted: oklch(0.46 0.025 225);
  --soft: oklch(0.95 0.012 85);
  --line: oklch(0.9 0.015 85);
  --input: oklch(0.86 0.018 85);
  --ring: oklch(0.55 0.1 200);
  --on-image: oklch(0.99 0 0);
  --wa: oklch(0.6 0.15 150);

  --glass: color-mix(in oklab, var(--card) 70%, transparent);
  --glass-line: color-mix(in oklab, var(--ink) 9%, transparent);
  --mesh:
    radial-gradient(60% 60% at 12% 18%, color-mix(in oklab, var(--ocean) 32%, transparent), transparent 70%),
    radial-gradient(50% 50% at 88% 8%, color-mix(in oklab, var(--gold) 28%, transparent), transparent 70%),
    radial-gradient(70% 60% at 70% 95%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 70%),
    var(--bg);
  --grad-ocean: linear-gradient(135deg, var(--ocean-deep), var(--brand) 55%, var(--ocean));
  --grad-gold: linear-gradient(135deg, oklch(0.86 0.11 88), var(--gold) 50%, oklch(0.7 0.13 65));
  --grad-image: linear-gradient(180deg, transparent 38%, oklch(0.15 0.03 225 / 0.78));
  --grad-text: linear-gradient(100deg, var(--brand), var(--ocean) 45%, oklch(0.62 0.13 70));
  --shadow-sm: 0 1px 2px oklch(0.2 0.03 225 / 0.06), 0 2px 6px oklch(0.2 0.03 225 / 0.04);
  --shadow: 0 2px 4px oklch(0.2 0.03 225 / 0.05), 0 10px 24px -6px oklch(0.2 0.03 225 / 0.12);
  --shadow-lg: 0 4px 10px oklch(0.2 0.03 225 / 0.06), 0 28px 60px -16px oklch(0.25 0.06 210 / 0.28);
  --shadow-glow: 0 10px 34px -10px color-mix(in oklab, var(--brand) 60%, transparent);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.17 0.025 225); --ink: oklch(0.95 0.012 85); --surface: oklch(0.2 0.028 225); --card: oklch(0.22 0.03 225);
  --brand: oklch(0.72 0.1 195); --brand-ink: oklch(0.18 0.03 225); --brand-dark: oklch(0.8 0.09 195); --brand-light: oklch(0.3 0.05 205);
  --ocean: oklch(0.65 0.1 200); --ocean-deep: oklch(0.13 0.03 225); --sand: oklch(0.35 0.03 80);
  --gold: oklch(0.8 0.12 80); --gold-ink: oklch(0.22 0.05 60);
  --ok: oklch(0.76 0.14 155); --ok-bg: oklch(0.3 0.06 155); --err: oklch(0.75 0.15 27); --err-bg: oklch(0.3 0.07 27);
  --warn: oklch(0.82 0.12 80); --warn-bg: oklch(0.32 0.05 80);
  --muted: oklch(0.74 0.02 220); --soft: oklch(0.25 0.025 225); --line: oklch(1 0 0 / 10%); --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.72 0.1 195);
  --glass: color-mix(in oklab, var(--card) 64%, transparent); --glass-line: oklch(1 0 0 / 10%);
  --shadow: 0 2px 4px oklch(0 0 0 / 0.25), 0 10px 24px -6px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 4px 10px oklch(0 0 0 / 0.3), 0 28px 60px -16px oklch(0 0 0 / 0.6);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-ui); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease; overflow-x: hidden; }
body.lang-ta { line-height: 1.75; font-family: var(--font-ta); }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
body.lang-ta h1, body.lang-ta h2 { letter-spacing: 0; }
p { margin: 0 0 .8rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.i.lg { width: 1.5em; height: 1.5em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--card); padding: 10px 14px; z-index: 100; border-radius: 10px; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--ring) 70%, transparent); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 20px var(--gutter); }
.wrap-wide { max-width: max(1440px, var(--page-max)); margin: 0 auto; padding: 20px var(--gutter); }
.muted { color: var(--muted); } .small { font-size: .875rem; } .right { text-align: right; } .center { text-align: center; }
.inline { display: inline; } .nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.g2 { grid-template-columns: 1fr 1fr; } .grid.g3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } .grid.g4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid.g4 { grid-template-columns: 1fr 1fr; } }
.eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 .6rem; }
.text-gradient { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding-block: var(--section) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border: 1px solid var(--glass-line); }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; padding: 10px var(--gutter) 0; }
.topbar-inner { max-width: var(--page-max); margin: 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px 8px 14px;
  border-radius: 20px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand .dot { color: var(--gold); }
.brand small { font-weight: 700; color: var(--brand); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--brand-light); }
/* logo: ribbon symbol + vector "TRYVON" (currentColor) + gold tag line */
.brand { gap: 9px; color: #093746; }
:root[data-theme="dark"] .brand { color: #F4F1EA; }
.brand picture { display: contents; }
.brand-symbol { height: 36px; width: auto; display: block; transition: transform .35s var(--ease); }
.brand:hover .brand-symbol { transform: rotate(-4deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; line-height: 1; }
.brand .wordmark-name { height: 17px; width: 112px; display: block; }
.brand-tag { font-size: 9px; font-weight: 800; letter-spacing: .56em; margin-right: -.56em; color: #C9952F; }
:root[data-theme="dark"] .brand-tag { color: #E8BA54; }
.brand .wordmark { height: 46px; width: 147px; display: block; }
.footer .brand { color: #FFFFFF; }
.footer .brand-symbol { height: 50px; }
.footer .brand .wordmark-name { height: 25px; width: 165px; }
.footer .brand-tag { font-size: 12.5px; color: #E8BA54; }
.office .brand small { display: none; }
@media (max-width: 380px) { .brand-symbol { height: 30px; } .brand .wordmark-name { height: 15px; width: 99px; } }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn, .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; transition: transform .25s var(--ease), background .2s; }
.icon-btn:hover, .menu-toggle:hover { transform: rotate(-8deg); background: var(--soft); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.mainnav { display: none; width: 100%; flex-direction: column; gap: 2px; padding: 6px 0 4px; }
.mainnav.open { display: flex; animation: drop .25s var(--ease); }
.mainnav a, .mainnav .linklike { color: var(--muted); text-decoration: none; padding: 10px 14px; font-weight: 600; font-size: .94rem; border-radius: 999px; min-height: 44px; display: flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.mainnav a:hover, .mainnav .linklike:hover, .mainnav a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.nav-sep { flex: 1; }
.lang-switch { border: 1px solid var(--line) !important; color: var(--ink) !important; font-family: var(--font-ta); }
.nav-cta { background: var(--ink) !important; color: var(--bg) !important; }
.nav-cta:hover { background: var(--brand) !important; color: var(--brand-ink) !important; }
@media (min-width: 1240px) {
  .menu-toggle { display: none; }
  .mainnav { display: flex; flex-direction: row; width: auto; flex: 1; align-items: center; padding: 0; order: 1; }
  .top-actions { order: 2; margin-left: 0; }
  .mainnav a, .mainnav .linklike { padding: 8px 9px; font-size: .86rem; white-space: nowrap; }
}
@media (min-width: 1240px) and (max-width: 1499px) { .public .brand small { display: none; } .public .mainnav a .i, .public .mainnav .linklike .i { display: none; } }
.linklike { background: none; border: 0; cursor: pointer; font: inherit; color: var(--brand); padding: 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: var(--brand-ink); border: 1px solid transparent;
  border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; font-size: .94rem; cursor: pointer; text-decoration: none; min-height: 46px;
  box-shadow: var(--shadow-glow); transition: transform .2s var(--ease), background .2s, box-shadow .2s, filter .2s; }
.btn:hover { background: var(--brand-dark); color: var(--brand-ink); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.secondary { background: var(--glass); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.secondary:hover { background: var(--soft); color: var(--ink); }
.btn.gold { background: var(--grad-gold); color: var(--gold-ink); box-shadow: var(--shadow); }
.btn.gold:hover { filter: brightness(1.05); color: var(--gold-ink); }
.btn.danger { background: var(--err); color: #fff; box-shadow: none; }
.btn.wa { background: var(--wa); color: #fff; box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--wa) 70%, transparent); }
.btn.wa:hover { filter: brightness(1.07); color: #fff; background: var(--wa); }
.btn.small { padding: 6px 14px; min-height: 36px; font-size: .85rem; box-shadow: none; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: 6px; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--input); border-radius: var(--radius); font: inherit; background: var(--card); color: var(--ink);
  min-height: 48px; transition: border-color .2s, box-shadow .2s; }
input[type=file] { font: inherit; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 999px; padding: 8px 14px; margin-right: 10px; cursor: pointer; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
.field { margin-bottom: 16px; }
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -5000px; }
.form-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); }
.form-narrow { max-width: 480px; margin: 2vh auto 0; }
.errors { background: var(--err-bg); color: var(--err); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.errors ul { margin: 0; padding-left: 18px; }
.field-validation-error { color: var(--err); font-size: .85rem; }
.flash { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; font-weight: 600; animation: drop .3s var(--ease); }
.flash.ok { background: var(--ok-bg); color: var(--ok); } .flash.error { background: var(--err-bg); color: var(--err); }
details > summary { cursor: pointer; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: .86rem; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip.on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }

/* ---------- hero (home) ---------- */
.hero { position: relative; margin: -124px calc(50% - 50vw) 0; padding: 178px var(--gutter) 64px; background: linear-gradient(180deg, transparent 72%, var(--bg)), var(--mesh); color: var(--ink); overflow: hidden; }
.hero-inner { max-width: calc(var(--page-max) - 2 * var(--gutter)); margin: 0 auto; position: relative; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1.04; max-width: 17ch; margin-bottom: 1rem; letter-spacing: -0.035em; }
body.lang-ta .hero h1 { font-size: clamp(1.8rem, 4.6vw, 3rem); line-height: 1.25; max-width: 22ch; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 58ch; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: 40px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--gold) 26%, transparent), transparent 65%); filter: blur(10px); animation: floaty 9s ease-in-out infinite; pointer-events: none; }
.searchbar { display: grid; gap: 8px; grid-template-columns: 1fr; padding: 10px; margin-top: 28px; border-radius: var(--radius-xl);
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); max-width: 980px; position: relative; z-index: 1; }
.searchbar select, .searchbar input { border-color: transparent; background: var(--card); }
.searchbar .btn { min-height: 48px; }
@media (min-width: 760px) { .searchbar { grid-template-columns: 1.6fr 1fr 1fr 1fr auto; } }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; position: relative; z-index: 1; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 640px; margin: 40px 0 0; position: relative; z-index: 1; }
.stats dt { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.stats dd { margin: 0; color: var(--muted); font-size: .8rem; }
.trustline { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; margin-top: 14px; position: relative; z-index: 1; }
.trustline span { display: inline-flex; gap: 6px; align-items: center; }
.trustline .i { color: var(--brand); }
@keyframes floaty { 50% { transform: translateY(-16px); } }

/* page hero for inner pages */
.page-hero { margin: -124px calc(50% - 50vw) 24px; padding: 158px var(--gutter) 32px; background: linear-gradient(180deg, transparent 60%, var(--bg)), var(--mesh); }
.page-hero > * { max-width: calc(var(--page-max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.page-hero p { color: var(--muted); max-width: 64ch; }

/* ---------- steps / features ---------- */
.steps-grid { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.step::after { content: counter(s, decimal-leading-zero); position: absolute; right: 16px; top: 10px; font-size: 2.6rem; font-weight: 800; color: color-mix(in oklab, var(--brand) 12%, transparent); letter-spacing: -0.04em; }
.step .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); margin-bottom: 14px; }
.step h3 { margin-bottom: .35rem; } .step p { color: var(--muted); font-size: .92rem; margin: 0; }
.feature-band { display: grid; overflow: hidden; border-radius: var(--radius-xl); background: var(--grad-ocean); color: oklch(0.98 0.01 190); box-shadow: var(--shadow-lg); }
@media (min-width: 860px) { .feature-band { grid-template-columns: 1.1fr .9fr; } }
.feature-band .copy { padding: clamp(26px, 5vw, 56px); }
.feature-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.feature-band p, .feature-band li { opacity: .9; }
.feature-band ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.feature-band li { display: flex; gap: 10px; align-items: flex-start; }
.feature-band .art { min-height: 240px; position: relative; background:
  radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--gold) 55%, transparent), transparent 45%),
  radial-gradient(circle at 75% 70%, oklch(0.75 0.1 190 / .55), transparent 50%), oklch(0.2 0.05 220 / .35); }
.feature-band .art .float-card { position: absolute; left: 0; right: 0; margin-inline: auto; top: 50%; translate: 0 -50%; rotate: -3deg; width: min(300px, 82%); padding: 16px; border-radius: 20px; color: var(--ink);
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid oklch(1 0 0 / 30%); box-shadow: var(--shadow-lg); animation: floaty 7s ease-in-out infinite; }
.why-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why { padding: 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.why .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-gold); color: var(--gold-ink); margin-bottom: 14px; }
.area-tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .area-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.area-tile { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--on-image); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--grad-ocean); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.area-tile:nth-child(3n+2) { background: linear-gradient(150deg, oklch(0.42 0.07 175), oklch(0.62 0.1 150)); }
.area-tile:nth-child(3n) { background: linear-gradient(150deg, oklch(0.45 0.08 60), oklch(0.72 0.12 78)); }
.area-tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, oklch(1 0 0 / 22%), transparent 40%), repeating-linear-gradient(115deg, oklch(1 0 0 / 5%) 0 2px, transparent 2px 14px); }
.area-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--on-image); }
.area-tile strong { font-size: 1.05rem; position: relative; } .area-tile span { font-family: var(--font-ta); font-size: .82rem; opacity: .9; position: relative; }
.cta-band { display: flex; gap: 18px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); }
.cta-band h2 { margin: 0 0 .3rem; }
.services { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
a.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.service h3 { display: flex; gap: 8px; align-items: center; font-size: 1rem; } .service p { margin: 0; font-size: .86rem; }
.service.soon { opacity: .62; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding: 10px 0 10px 50px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 34px; height: 34px; border-radius: 12px; background: var(--grad-ocean); color: oklch(0.98 0.01 190); display: grid; place-items: center; font-weight: 800; }

/* ---------- filters & results ---------- */
.filters { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border: 1px solid var(--glass-line); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow); }
.filters .grid { gap: 12px; }
.filters label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filters-more { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.filters-more > summary { list-style: none; display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: .9rem; color: var(--brand); min-height: 40px; }
.filters-more > summary::-webkit-details-marker { display: none; }
.filters-more[open] > summary { margin-bottom: 12px; }
.results-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 16px; }
.results-head select { width: auto; min-height: 40px; border-radius: 999px; padding: 6px 14px; }
.count-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; }
.split { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .split.with-map { grid-template-columns: minmax(0, 1fr) 460px; } .split.with-map .map-col { order: 2; } }
.map-col .map { position: sticky; top: 96px; height: min(72vh, 720px); }
.empty { text-align: center; padding: clamp(28px, 6vw, 56px) 20px; border-radius: var(--radius-xl); background: var(--surface); border: 1px dashed var(--input); }
.empty .ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); }

/* ---------- listing card ---------- */
.card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; position: relative; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card a.cover { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--soft), var(--surface)); }
.card .media::after { content: ""; position: absolute; inset: 0; background: var(--grad-image); pointer-events: none; }
.card .img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); background: var(--soft); aspect-ratio: 4/3; }
.card:hover .img { transform: scale(1.06); }
.card .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.card .noimg .i { width: 40px; height: 40px; opacity: .5; }
.card .overlay { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; color: var(--on-image); z-index: 1; }
.card .price { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-shadow: 0 1px 12px oklch(0 0 0 / .3); }
.card .approx { font-size: .78rem; opacity: .9; margin-top: 2px; }
.card .type-chip { flex: none; font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--ink); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--glass-line); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .title { font-weight: 700; font-size: .98rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.card .checked-on { margin-top: auto; font-size: .78rem; font-weight: 650; display: inline-flex; gap: 6px; align-items: center; color: var(--ink); }
.card .checked-on .i { color: var(--brand); }
.card .checked-on.none { color: var(--muted); font-weight: 500; }
.card .fav { position: absolute; top: 12px; right: 12px; z-index: 3; }
.card .badges { position: absolute; left: 12px; top: 12px; right: 64px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.favbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; color: var(--ink); text-decoration: none; font-size: 1.15rem; line-height: 1;
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), color .2s; }
.favbtn:hover { transform: scale(1.1); color: var(--err); }
.favbtn.on { color: oklch(0.6 0.22 20); }

/* ---------- trust badges ---------- */
.badge { position: relative; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 11px; font-size: .74rem; font-weight: 750; border: 1px solid transparent;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap; line-height: 1.2; }
.badge .i { width: 14px; height: 14px; }
.badge.inspected { background: var(--grad-gold); color: var(--gold-ink); box-shadow: var(--shadow-sm); }
.badge.legal { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in oklab, var(--ok) 30%, transparent); }
.badge.listed { background: color-mix(in oklab, var(--card) 88%, transparent); color: var(--ink); border-color: var(--line); }
.badge.boost { background: oklch(0.93 0.05 300); color: oklch(0.4 0.15 300); }
.badge.status { background: var(--err-bg); color: var(--err); }
.badge.unchecked { background: color-mix(in oklab, var(--soft) 90%, transparent); color: var(--muted); border-color: var(--line); }
[data-tip] { cursor: help; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 8px); width: max-content; max-width: 260px; white-space: normal; z-index: 20;
  padding: 10px 12px; border-radius: 14px; font-size: .78rem; font-weight: 500; line-height: 1.45; color: var(--ink); text-align: left;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .2s; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: none; }

/* ---------- listing page ---------- */
.gallery { display: grid; gap: 8px; grid-template-columns: 1fr; border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.gallery img, .gallery .ph { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--soft); cursor: zoom-in; transition: filter .3s; }
.gallery img:hover { filter: brightness(1.06); }
.gallery .side { display: none; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: min(56vh, 520px); }
  .gallery > img:first-child, .gallery > .ph { grid-row: span 2; aspect-ratio: auto; }
  .gallery .side { display: contents; }
  .gallery .side img { aspect-ratio: auto; }
  .gallery.n1 { grid-template-columns: 1fr; } .gallery.n2 { grid-template-columns: 2fr 1fr; } .gallery.n2 .side img { grid-row: span 2; }
  .gallery.n3 { grid-template-columns: 2fr 1fr; }
}
.gallery .all-photos { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; scrollbar-width: thin; }
.thumbs img { width: 104px; height: 70px; object-fit: cover; border-radius: 10px; flex: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: oklch(0.1 0.02 225 / .94); display: none; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox.open { display: flex; animation: fade .2s ease; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 14px; object-fit: contain; cursor: default; }
.lightbox button { position: absolute; background: oklch(1 0 0 / 14%); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 999px; cursor: pointer; font-size: 1.4rem; display: grid; place-items: center; }
.lightbox .lb-close { top: 12px; right: 12px; } .lightbox .lb-prev { left: 12px; } .lightbox .lb-next { right: 12px; }
.lightbox .lb-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .85rem; opacity: .8; }
@keyframes fade { from { opacity: 0; } }
.listing-layout { display: grid; gap: 28px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 1000px) { .listing-layout { grid-template-columns: minmax(0, 1fr) 380px; } .sticky { position: sticky; top: 96px; } }
.listing-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 10px 0 8px; }
.price-block { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; }
.panel { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(16px, 2.6vw, 24px); border: 1px solid var(--line); }
.panel.glass { background: var(--glass); box-shadow: var(--shadow-lg); }
.panel h2 { font-size: 1.2rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts > div { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.facts > div .i { color: var(--brand); margin-top: 3px; }
.facts dt { color: var(--muted); font-size: .76rem; } .facts dd { margin: 0; font-weight: 700; }
.timeline { list-style: none; padding: 0 0 0 28px; margin: 14px 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 6px 0 12px; }
.timeline li .dot { position: absolute; left: -28px; top: 6px; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.timeline li .dot .i { width: 14px; height: 14px; }
.timeline li.ok .dot { background: var(--ok); color: #fff; }
.timeline li.no .dot { background: var(--err); color: #fff; }
.timeline li strong { display: block; font-weight: 650; }
.timeline li span.r { font-size: .82rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; }
.checklist .ok::before { content: "✓"; color: var(--ok); font-weight: 800; }
.checklist .no::before { content: "✗"; color: var(--err); font-weight: 800; }
.checklist .na::before { content: "–"; color: var(--muted); font-weight: 800; }
.honest { border-radius: var(--radius); background: var(--surface); padding: 14px 16px; margin-top: 14px; }
.honest h3 { display: flex; gap: 8px; align-items: center; font-size: .95rem; }
.map { height: 340px; border-radius: var(--radius-lg); z-index: 1; border: 1px solid var(--line); }
.map.big { height: 70vh; }
.video { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: var(--radius-lg); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--brand); }
.notice { background: var(--warn-bg); color: var(--ink); border-radius: var(--radius); padding: 12px 16px; font-size: .92rem; border: 1px solid color-mix(in oklab, var(--warn) 30%, transparent); }
.contact-card h2 { font-size: 1.1rem; }
.mobile-cta { display: none; }
@media (max-width: 999px) {
  .mobile-cta { display: flex; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 65; padding: 8px; border-radius: 20px;
    background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); }
  .mobile-cta .btn { flex: 1; min-height: 48px; padding: 8px 10px; }
  body.has-mobile-cta .wa-float, body.has-mobile-cta .assistant-btn { bottom: 86px; }
  body.has-mobile-cta .assistant-btn { bottom: 156px; }
  body.has-mobile-cta .footer { padding-bottom: 80px; }
}
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: .76rem; font-weight: 700; }
.pill.green { background: var(--ok-bg); color: var(--ok); } .pill.red { background: var(--err-bg); color: var(--err); } .pill.amber { background: var(--warn-bg); color: var(--warn); }

/* map pins (CSS only, no marker images) */
.leaflet-div-icon.pin { background: none; border: 0; }
.pin-price { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; padding: 5px 10px; border-radius: 999px; font: 800 12px/1 var(--font-ui);
  background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; transition: transform .2s, background .2s; }
.pin-price::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: inherit; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.pin-price.inspected { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pin-price:hover, .pin-price.hot { transform: translate(-50%, -100%) scale(1.12); background: var(--brand); color: var(--brand-ink); border-color: var(--brand); z-index: 1000; }
.pin-dot { display: block; width: 22px; height: 22px; transform: translate(-50%, -50%); border-radius: 999px; background: var(--brand); border: 4px solid var(--card); box-shadow: var(--shadow); }
.leaflet-container { font-family: var(--font-ui); background: var(--soft); }
.leaflet-popup-content-wrapper { border-radius: 14px; }

/* ---------- tables, KPIs, office ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-weight: 700; white-space: nowrap; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: color-mix(in oklab, var(--brand) 4%, transparent); }
tr:last-child td { border-bottom: 0; }
tr.overdue td { background: color-mix(in oklab, var(--err) 7%, transparent); }
tr.overdue td:first-child { box-shadow: inset 4px 0 0 var(--err); }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad-ocean); opacity: .8; }
.kpi:nth-child(4n+2)::before { background: var(--grad-gold); } .kpi:nth-child(4n+3)::before { background: linear-gradient(90deg, var(--err), oklch(0.75 0.15 50)); }
.kpi .n { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; } .kpi .l { color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi .n .small { font-size: .78rem; font-weight: 700; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--err); animation: pulse-ring 2s ease-out infinite; vertical-align: middle; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--err) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 650; min-height: 40px; display: inline-flex; align-items: center; }
.tabs a:hover { border-color: var(--brand); }
.tabs a.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.photo-grid figure { margin: 0; position: relative; }
.photo-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%; background: var(--soft); }
.photo-grid button { position: absolute; top: 6px; right: 6px; }
.upload-list { font-size: .85rem; list-style: none; padding: 0; }
.upload-list li { padding: 4px 0; }
.upload-list .done { color: var(--ok); } .upload-list .fail { color: var(--err); }
.dropzone { border: 2px dashed var(--input); border-radius: var(--radius-lg); padding: 22px; text-align: center; background: var(--surface); transition: border-color .2s, background .2s; }
.dropzone:hover { border-color: var(--brand); background: color-mix(in oklab, var(--brand) 5%, var(--surface)); }

/* office shell: sidebar on desktop */
.office .topbar-inner { max-width: none; }
.office .brand small { background: color-mix(in oklab, var(--gold) 25%, transparent); color: var(--gold-ink); }
:root[data-theme="dark"] .office .brand small { color: var(--gold); }
@media (min-width: 1240px) {
  .office .topbar { padding: 0; position: static; }
  .office .topbar-inner { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; border-radius: 0; flex-direction: column; align-items: stretch; flex-wrap: nowrap;
    padding: 18px 14px; gap: 6px; border-width: 0 1px 0 0; box-shadow: none; overflow-y: auto; background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .office .mainnav { flex-direction: column; align-items: stretch; flex: 1; order: 2; gap: 2px; }
  .office .mainnav a, .office .mainnav .linklike { border-radius: 12px; padding: 10px 12px; font-size: .9rem; width: 100%; }
  .office .mainnav form.inline { display: block; }
  .office .top-actions { order: 3; margin: 8px 0 0; justify-content: flex-start; }
  .office .brand { margin-bottom: 4px; }
  .office main, .office .footer { margin-left: 264px; }
  .office main.wrap, .office main.wrap-wide { max-width: none; padding: 28px clamp(20px, 3vw, 40px); }
}
.office-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.office-head h1 { margin: 0; }
.office-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- footer & floating ---------- */
.footer { background: var(--ocean-deep); color: oklch(0.9 0.02 200); margin-top: var(--section); }
.footer a { color: oklch(0.96 0.01 200); text-decoration: none; opacity: .82; } .footer a:hover { opacity: 1; text-decoration: underline; color: #fff; }
.footer-inner { max-width: var(--page-max); margin: 0 auto; padding: 48px var(--gutter) 28px; display: grid; gap: 28px; grid-template-columns: 1fr; font-size: .9rem; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer h4, .footer .foot-h { color: #fff; font-size: .9rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .brand { color: #fff; }
.footer-bottom { max-width: var(--page-max); margin: 0 auto; padding: 18px var(--gutter) 28px; border-top: 1px solid oklch(1 0 0 / 10%); display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; font-size: .8rem; opacity: .75; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.currency-form label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; color: inherit; margin: 0; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.currency-form select { width: auto; min-height: 36px; padding: 4px 30px 4px 12px; border-radius: 999px; }
.footer .currency-form select { background: oklch(1 0 0 / 10%); color: #fff; border-color: oklch(1 0 0 / 20%); }
.footer .currency-form option { color: #111; }
.wa-float { position: fixed; right: 18px; bottom: 18px; background: var(--wa); color: #fff; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 12px 30px -8px color-mix(in oklab, var(--wa) 80%, transparent); z-index: 60; transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 650; }
.pager a:hover { border-color: var(--brand); }
.pager .cur { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.reveal { animation: fade-up .8s var(--ease) both; }
@supports (animation-timeline: view()) { .reveal { animation-timeline: view(); animation-range: entry 0% entry 30%; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.skeleton { background: linear-gradient(90deg, var(--soft) 25%, color-mix(in oklab, var(--soft) 50%, var(--card)) 50%, var(--soft) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- assistant ---------- */
.assistant-btn { position: fixed; right: 18px; bottom: 88px; background: var(--grad-ocean); color: oklch(0.98 0.01 190); border: 0; border-radius: 999px; padding: 0 18px 0 14px; min-height: 52px;
  font: inherit; font-weight: 750; box-shadow: var(--shadow-glow), var(--shadow); z-index: 60; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: transform .25s var(--ease); }
.assistant-btn:hover { transform: translateY(-2px) scale(1.03); }
.assistant { position: fixed; right: 18px; bottom: 88px; width: min(410px, calc(100vw - 24px)); height: min(600px, 76vh); border-radius: var(--radius-xl); display: none; flex-direction: column; z-index: 70; overflow: hidden;
  background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); }
@media (max-width: 520px) { .assistant { right: 12px; left: 12px; width: auto; bottom: 12px; height: 80vh; } }
.assistant.open { display: flex; animation: pop .28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.assistant header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.assistant header .ai-mark { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-gold); color: var(--gold-ink); flex: none; }
.assistant header .t { flex: 1; min-width: 0; } .assistant header .t strong { display: block; } .assistant header .t span { font-size: .76rem; color: var(--muted); }
.assistant header button { background: var(--soft); border: 0; color: var(--ink); width: 40px; height: 40px; border-radius: 999px; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.assistant .msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.assistant .msg { padding: 10px 14px; border-radius: 18px; max-width: 88%; white-space: pre-wrap; font-size: .92rem; line-height: 1.5; animation: fade .25s ease; }
.assistant .msg.user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 6px; }
.assistant .msg.user a { color: inherit; }
.assistant .msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.assistant .msg a { font-weight: 700; }
.assistant .suggest { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.assistant .suggest::-webkit-scrollbar { display: none; }
.assistant .suggest .chip { font-size: .8rem; min-height: 34px; padding: 0 12px; }
.assistant form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.assistant form input { flex: 1; border-radius: 999px; min-height: 46px; }
.assistant form .btn { width: 46px; min-height: 46px; padding: 0; flex: none; }
.assistant .disclaimer { font-size: .7rem; color: var(--muted); padding: 0 16px 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .footer, .wa-float, .assistant-btn, .assistant, .no-print, .flash, .mobile-cta { display: none !important; }
  :root { --bg: #fff; --card: #fff; --ink: #111; }
  body { background: #fff; } .panel, .table-wrap, .form-card, .kpi { box-shadow: none; }
  .office main { margin-left: 0 !important; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
@media (max-width: 640px) {
  .assistant-btn { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 999px; }
  .assistant-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
