/* =============================================================================
   Asaase Plans - look and feel
   Drafting film, blue-black ink, a faint survey grid, and the pink edge of a plan
   ("Shewn Edged Pink") as the only accent. Light and dark themes share one set of names.
   Shared by the Dash app (app_dash.py) and the account pages (web_service.py).
   ============================================================================= */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --film: #F3F5F4;          /* drafting film - the page */
  --paper: #FFFFFF;         /* sheets and panels */
  --ink: #16202A;           /* blue-black drafting ink */
  --muted: #5B6772;
  --rule: #D5DCDF;          /* grid lines and borders */
  --rule-strong: #A9B5BC;
  --grid: rgba(22, 32, 42, 0.055);
  --pink: #C72A72;          /* the plan's pink edge */
  --pink-hover: #A81F5E;
  --on-pink: #FFFFFF;
  --pink-wash: rgba(199, 42, 114, 0.07);
  --link: #1F5F8B;
  --ok: #1B7046;
  --err: #B4232F;
  --warn-bg: #FFF4DA;
  --warn-ink: #6F4500;
  --shadow: 0 1px 0 rgba(22, 32, 42, 0.04);
  /* Dash 4 component colours */
  --Dash-Fill-Inverse-Strong: var(--paper);
  --Dash-Text-Strong: var(--ink);
  --Dash-Text-Primary: var(--ink);
  --Dash-Text-Weak: var(--muted);
  --Dash-Text-Disabled: var(--muted);
  --Dash-Stroke-Strong: var(--rule-strong);
  --Dash-Stroke-Weak: var(--rule);
  --Dash-Fill-Interactive-Strong: var(--pink);
  --Dash-Fill-Interactive-Weak: var(--pink-wash);
  --Dash-Fill-Primary-Hover: var(--pink-wash);
  --Dash-Fill-Primary-Active: rgba(199, 42, 114, 0.14);
  --Dash-Fill-Disabled: rgba(91, 103, 114, 0.12);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --film: #0E1620;          /* blueprint night, not black */
  --paper: #152130;
  --ink: #E3EAEF;
  --muted: #9AA9B5;
  --rule: #273746;
  --rule-strong: #3E5163;
  --grid: rgba(227, 234, 239, 0.045);
  --pink: #F0679F;
  --pink-hover: #F68BB7;
  --on-pink: #2A0716;
  --pink-wash: rgba(240, 103, 159, 0.12);
  --link: #8CC3EA;
  --ok: #72D3A0;
  --err: #FF8E93;
  --warn-bg: #352A10;
  --warn-ink: #F3D284;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  --Dash-Fill-Primary-Active: rgba(240, 103, 159, 0.2);
  --Dash-Fill-Disabled: rgba(154, 169, 181, 0.14);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--film);
  color: var(--ink);
  font-family: "Archivo Variable", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
h1, h2, h3, h4 { font-stretch: 118%; font-weight: 640; letter-spacing: -0.005em; margin: 0; }
p { margin: 0 0 0.6em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- masthead: the plan's title block ---------- */
.masthead {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--rule);
}
.masthead-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 28px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  display: inline-block;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.05;
  font-stretch: 125%;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--pink);          /* edged pink */
}
.brand:hover { text-decoration: none; }
.tagline { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 60ch; }
.masthead-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.version { font-size: 12px; color: var(--muted); }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; }
:root[data-theme="dark"] .when-light, :root:not([data-theme="dark"]) .when-dark { display: none; }

/* ---------- account bar (paid service) ---------- */
.account-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 22px;
  font-size: 14px;
}
.account-bar .who b { font-weight: 640; }
.account-bar .balance { color: var(--muted); }
.account-bar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.account-bar nav a { font-weight: 560; text-decoration: none; }
.account-bar nav a:hover { text-decoration: underline; }

/* ---------- workspace ---------- */
.workspace {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 28px 48px;
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.preview-col { display: flex; flex-direction: column; gap: 24px; }
.preview-panel, .results-panel { padding: 18px 20px; }

/* numbered steps: the real order of the work */
.step { padding: 18px 20px 20px; border-top: 1px solid var(--rule); }
.step:first-child { border-top: 0; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.step-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--ink); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 640; font-stretch: 100%;
}
.step-title { font-size: 17px; }
.step-hint { color: var(--muted); font-size: 13px; margin: 2px 0 4px 38px; }
.sub-head { font-size: 14px; font-stretch: 110%; margin: 18px 0 0; }

/* ---------- form controls ---------- */
.field-label { display: block; font-size: 13px; font-weight: 560; color: var(--ink); margin: 12px 0 5px; }
.field-input, input.field-input {
  width: 100%;
  padding: 8px 10px;
  font: inherit; font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
}
.field-input:focus { outline: 2px solid var(--pink); outline-offset: 0; border-color: transparent; }
.field-input::placeholder { color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.choice { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.choice label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.choice input { accent-color: var(--pink); width: 16px; height: 16px; margin: 0; }

.dropzone {
  border: 1.5px dashed var(--rule-strong);
  border-radius: 6px;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone:hover { border-color: var(--pink); background: var(--pink-wash); color: var(--ink); }
.dropzone b { color: var(--ink); font-weight: 600; }
.dropzone.small { padding: 10px; font-size: 13px; }
.file-name { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Dash 4 dropdowns */
.dash-dropdown, .dash-dropdown-wrapper { font-size: 14px; }
.dash-dropdown-trigger, .dash-dropdown .dash-dropdown-trigger {
  background: var(--paper) !important; color: var(--ink) !important; border-color: var(--rule-strong) !important;
  border-radius: 4px !important;
}
.dash-dropdown-content { background: var(--paper) !important; color: var(--ink) !important; border-color: var(--rule) !important; }
.dash-dropdown-search { background: var(--paper) !important; color: var(--ink) !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 600;
  border-radius: 4px; padding: 9px 16px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--pink); color: var(--on-pink); }
.btn-primary:hover { background: var(--pink-hover); text-decoration: none; }
.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--rule-strong); }
.btn-quiet:hover { border-color: var(--ink); text-decoration: none; }
.btn-small { padding: 6px 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-generate {
  width: 100%; padding: 13px 16px; font-size: 16px; font-stretch: 112%; letter-spacing: 0.01em;
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- messages ---------- */
.msg-ok { color: var(--ok); }
.msg-err { color: var(--err); }
.warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 4px; padding: 8px 11px; font-size: 13.5px; margin: 8px 0; }
.form-msg { margin-top: 12px; font-size: 14px; }

/* ---------- preview + results ---------- */
.panel-title { font-size: 15px; font-stretch: 112%; margin-bottom: 8px; }
.empty-state { color: var(--muted); font-size: 14px; padding: 10px 0; }
.empty-state b { color: var(--ink); font-weight: 600; }
.map-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: 14px; margin-top: 8px; }
.map-links a { font-weight: 560; }
.map-links .note { color: var(--muted); font-size: 12.5px; }

.stats { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-bottom: 14px; }
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { font-size: 26px; font-weight: 640; font-stretch: 118%; line-height: 1.15; font-variant-numeric: tabular-nums; }
.download-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.sheet-img { width: 100%; display: block; border: 1px solid var(--rule); background: #fff; }

/* tabs */
.sheet-tabs { margin-top: 12px; }
.sheet-tabs .tab {
  background: transparent !important; color: var(--muted) !important;
  border: 0 !important; border-bottom: 2px solid var(--rule) !important;
  padding: 8px 4px !important; font-weight: 560;
}
.sheet-tabs .tab--selected {
  color: var(--ink) !important; border-bottom: 2px solid var(--pink) !important;
}

/* DataTable text follows the theme */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td,
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th {
  background-color: var(--paper) !important; color: var(--ink) !important; border-color: var(--rule) !important;
}
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th { font-weight: 640 !important; }
.dash-table-container input { color: var(--ink) !important; background: var(--paper) !important; }

/* ---------- account pages (web_service.py) ---------- */
.page { max-width: 1040px; margin: 0 auto; padding: 26px 28px 48px; }
.page .panel { padding: 22px 24px; margin-bottom: 20px; }
.page h2 { font-size: 22px; margin-bottom: 10px; }
.page h3 { font-size: 17px; margin-bottom: 10px; }
.narrow { max-width: 430px; margin: 30px auto; }
.narrow .btn-primary { width: 100%; margin-top: 18px; }
.flash { padding: 10px 13px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; background: var(--pink-wash); color: var(--ink); border-left: 3px solid var(--ok); }
.flash.err { border-left-color: var(--err); }
.flash.demo { background: var(--warn-bg); color: var(--warn-ink); border-left-color: var(--warn-ink); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin-top: 14px; }
.check input { accent-color: var(--pink); margin-top: 3px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.offer { border: 1px solid var(--rule); border-radius: 6px; padding: 16px; }
.offer .price { font-size: 26px; font-weight: 640; font-stretch: 118%; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table th { font-weight: 600; font-size: 13px; color: var(--muted); }
.table td form { display: flex; gap: 6px; flex-wrap: wrap; }
.table td .field-input { width: 104px; padding: 6px 8px; font-size: 13px; }
.scroll-x { overflow-x: auto; }
.price-list { max-width: 560px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-tiles .panel { margin: 0; padding: 16px 18px; }
.footer { color: var(--muted); font-size: 13px; margin-top: 30px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; padding: 16px; }
  .masthead-inner { padding: 18px 16px 14px; }
  .page { padding: 18px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- account page building blocks (class names used in web_service.py) ---------- */
.page .card { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.page .card .card { box-shadow: none; }
.page .msg { padding: 10px 13px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; background: var(--pink-wash); color: var(--ink); border-left: 3px solid var(--ok); }
.page .msg.err { border-left-color: var(--err); }
.page .msg.demo, .page .demo { background: var(--warn-bg); color: var(--warn-ink); border-left: 3px solid var(--warn-ink); }
.page .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.page .price { font-size: 23px; font-weight: 640; font-stretch: 105%; margin: 4px 0 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.page .stat { font-size: 24px; font-weight: 640; font-stretch: 118%; font-variant-numeric: tabular-nums; }
.page .muted { color: var(--muted); font-size: 13.5px; }
.page label { display: block; font-size: 13px; font-weight: 560; margin: 12px 0 5px; }
.page input:not([type="checkbox"]):not([type="hidden"]), .page select {
  width: 100%; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: 4px;
}
.page input:focus, .page select:focus { outline: 2px solid var(--pink); outline-offset: 0; border-color: transparent; }
.page input[type="checkbox"] { accent-color: var(--pink); width: auto; }
.page button {
  display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 14px; font-weight: 600;
  background: var(--pink); color: var(--on-pink); border: 1px solid transparent; border-radius: 4px; padding: 9px 16px; cursor: pointer;
}
.page button:hover { background: var(--pink-hover); }
.page button.secondary { background: var(--paper); color: var(--ink); border-color: var(--rule-strong); }
.page button.secondary:hover { border-color: var(--ink); background: var(--paper); }
.page .full { width: 100%; margin-top: 16px; }
.page .narrow { max-width: 430px; margin: 30px auto; }
.page table { width: 100%; border-collapse: collapse; font-size: 14px; }
.page th, .page td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.page th { font-weight: 600; font-size: 13px; color: var(--muted); background: transparent; }
.page td form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.page td input:not([type="hidden"]) { width: 104px; padding: 6px 8px; font-size: 13px; }
.page td button { padding: 6px 11px; font-size: 13px; }
.masthead nav.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.masthead nav.site-nav a { font-weight: 560; text-decoration: none; }
.masthead nav.site-nav a:hover { text-decoration: underline; }
.masthead nav.site-nav a.quiet { color: var(--muted); }

/* =============================================================================
   App shell: sidebar on the left, content on the right
   ============================================================================= */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--paper); border-right: 1px solid var(--rule);
  padding: 20px 14px 16px;
}
.sidebar .brand {
  font-size: 21px; margin: 2px 8px 6px; padding-bottom: 6px; border-bottom-width: 3px; align-self: flex-start;
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.nav-item:hover { background: var(--pink-wash); text-decoration: none; }
.nav-item.active { background: var(--pink-wash); color: var(--ink); font-weight: 640; box-shadow: inset 3px 0 0 var(--pink); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 0 6px; }
.sidebar-foot .theme-toggle { align-self: flex-start; }
.account-box { border-top: 1px solid var(--rule); padding-top: 12px; font-size: 13.5px; }
.account-name { font-weight: 640; }
.account-balance { color: var(--muted); font-size: 13px; }
.account-logout { font-size: 13px; color: var(--muted); }

/* line icons, drawn with CSS masks so they take the text colour */
.ico { width: 18px; height: 18px; flex: none; background: currentColor; opacity: 0.8;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.nav-item.active .ico { background: var(--pink); opacity: 1; }
.ico-home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7v9h-6v-6H9v6H3z'/%3E%3C/svg%3E"); }
.ico-plus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
.ico-folder { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 6h6l2 2h10v11H3z'/%3E%3C/svg%3E"); }
.ico-wallet { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18M16 15h2'/%3E%3C/svg%3E"); }
.ico-shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3C/svg%3E"); }
.ico-book { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M4 19V5'/%3E%3C/svg%3E"); }

.main { min-width: 0; }
.main .workspace { padding-top: 8px; }
.page-head { max-width: 1400px; margin: 0 auto; padding: 26px 28px 4px; }
.page-title { font-size: 26px; font-stretch: 122%; font-weight: 680; }

/* =============================================================================
   Home page
   ============================================================================= */
.home { max-width: 1120px; margin: 0 auto; padding: 56px 32px 64px; }
.home-title {
  text-align: center; font-size: clamp(26px, 3.4vw, 38px); font-stretch: 125%; font-weight: 700; line-height: 1.1;
}
.home-sub { text-align: center; color: var(--muted); max-width: 62ch; margin: 12px auto 0; }
.page-head .home-sub { text-align: left; margin-left: 0; }
.home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.hcard {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 14px 18px;
  box-shadow: var(--shadow);
}
.hcard-title { font-size: 17px; margin: 16px 6px 4px; }
.hcard-text { color: var(--muted); font-size: 13.5px; margin: 0 6px; }
.hcard-body {
  height: 176px; border-radius: 7px; padding: 12px;
  background-color: var(--film);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  display: flex; flex-direction: column; gap: 8px; justify-content: center;
}
.hdrop {
  height: 176px; border-radius: 7px; cursor: pointer;
  border: 1.5px dashed var(--rule-strong);
  background-color: var(--film);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  transition: border-color 0.15s, background-color 0.15s;
}
.hdrop:hover { border-color: var(--pink); background-color: var(--pink-wash); }
.hdrop-icon {
  display: block; width: 46px; height: 46px; margin: 0 auto 10px; background: var(--pink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M12 4h16l10 10v30H12z'/%3E%3Cpath d='M28 4v10h10'/%3E%3Cpath d='M19 36l4-12 9 3-6 9z' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M12 4h16l10 10v30H12z'/%3E%3Cpath d='M28 4v10h10'/%3E%3Cpath d='M19 36l4-12 9 3-6 9z' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hdrop-text { font-weight: 600; color: var(--ink); }
.hdrop-sub { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.sample-btn {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 6px; padding: 9px 11px;
}
.sample-btn:hover { border-color: var(--pink); box-shadow: inset 3px 0 0 var(--pink); }
.sample-name { font-size: 14px; font-weight: 560; }
.sample-note { font-size: 12px; color: var(--muted); white-space: nowrap; }
.csv-demo { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--paper); border: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.csv-demo th, .csv-demo td { padding: 5px 8px; border-bottom: 1px solid var(--rule); text-align: left; }
.csv-demo th { color: var(--muted); font-weight: 600; }
.csv-demo tr:first-child td { color: var(--pink); }
.hcard-body .btn { align-self: flex-start; }

/* guide: the real order of a job */
.guide { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px 36px; align-items: start; }
.guide-title { grid-column: 1 / -1; font-size: 22px; }
.guide-steps { list-style: none; margin: 0; padding: 0; counter-reset: g; }
.guide-steps li {
  counter-increment: g; position: relative; padding: 0 0 22px 52px;
  border-left: 1.5px solid var(--rule); margin-left: 15px;
}
.guide-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.guide-steps li::before {
  content: counter(g); position: absolute; left: -16px; top: -3px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-weight: 640; font-size: 14px;
}
.guide-steps h3 { font-size: 16px; font-stretch: 110%; margin: 1px 0 4px; }
.guide-steps p { color: var(--muted); font-size: 14px; margin: 0; max-width: 62ch; }
.checklist { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--pink); border-radius: 8px; padding: 18px 20px; }
.checklist h3 { font-size: 16px; margin-bottom: 8px; }
.checklist ul { margin: 0 0 10px; padding-left: 18px; font-size: 14px; }
.checklist li { margin: 5px 0; }

/* account pages inside the shell */
.shell .page { padding-top: 34px; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; border-right: 0; border-bottom: 1px solid var(--rule); padding: 12px 16px; }
  .sidebar .brand { font-size: 18px; margin: 0; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-item { padding: 6px 8px; }
  .sidebar-foot { margin-top: 0; flex-direction: row; align-items: center; padding: 0; }
  .account-box { border-top: 0; padding-top: 0; }
  .home { padding: 32px 16px 48px; }
  .home-cards { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; }
  .page-head { padding: 18px 16px 0; }
}

.brand-tag { font-size: 12.5px; color: var(--muted); margin: 6px 8px 0; }
@media (max-width: 980px) { .brand-tag { display: none; } }

/* History of Survey: the customer's own text */
textarea.history-text { min-height: 260px; resize: vertical; line-height: 1.5; font-family: inherit;
  white-space: pre-wrap; padding: 10px 12px; }
.placeholder-list { font-size: 12.5px; color: var(--ink); word-break: break-word; }
textarea.letter-to { min-height: 108px; resize: vertical; line-height: 1.5; font-family: inherit; padding: 8px 10px; }

/* ---------- illustrations ---------- */
img.only-dark { display: none !important; }
[data-theme="dark"] img.only-light { display: none !important; }
[data-theme="dark"] img.only-dark { display: block !important; }
.illus img, .hero-illus img, .guide-illus img { width: 100%; height: auto; display: block; border-radius: 18px; }
.illus-photo { width: 100%; height: auto; display: block; border-radius: 18px; object-fit: cover; }
.empty-illus { width: 180px; margin: 6px auto 4px; }
.empty-illus img { width: 100%; }
.empty-state { text-align: center; }

/* ---------- output previews ---------- */
.out-tabs { margin-top: 18px; }
.out-tabs .tab { font-size: 13.5px; }
.tab-body { padding-top: 12px; }
.tab-hint { margin: 0 0 10px; }
.sub-tabs .tab { font-size: 12.5px; padding: 6px 2px !important; }

.doc-page {
  position: relative; background: #fff; color: #111;
  font-family: "Times New Roman", Times, "Liberation Serif", serif;
  max-width: 720px; margin: 0 auto; padding: 56px 64px 64px;
  border: 1px solid var(--rule); box-shadow: 0 2px 10px rgba(22, 32, 42, 0.08);
  min-height: 420px;
}
.doc-page p { margin: 0 0 0.55em; }
.doc-page li { margin: 0 0 0.3em 1.6em; }
.doc-gap { height: 0.9em; }

.xl-wrap { position: relative; overflow-x: auto; border: 1px solid var(--rule); background: #fff; }
table.xl { border-collapse: collapse; font-size: 12.5px; color: #111; background: #fff;
  font-variant-numeric: tabular-nums; width: 100%; }
table.xl td, table.xl th { border: 1px solid #DDE3E6; padding: 4px 8px; white-space: nowrap; text-align: left; }
table.xl th { background: #F3F5F4; font-weight: 640; }
.kml-table { max-width: 560px; margin-bottom: 12px; }

/* paid service: previews carry a watermark until the plan is paid for */
.is-protected { user-select: none; -webkit-user-select: none; }
.is-protected::after {
  content: "PREVIEW · PREVIEW · PREVIEW"; position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font: 700 46px/1 Archivo, sans-serif; letter-spacing: 6px; color: rgba(199, 42, 114, 0.13);
  transform: rotate(-24deg); white-space: nowrap; overflow: hidden;
}
@media (max-width: 640px) { .doc-page { padding: 28px 22px; } }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hero-kicker { color: var(--pink); font-weight: 640; font-size: 14.5px; margin: 0 0 10px; }
.hero-title { text-align: left; font-size: clamp(30px, 4vw, 46px); }
.hero-sub { text-align: left; margin: 14px 0 0; max-width: 46ch; font-size: 16px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.hero-points li { padding-left: 22px; position: relative; margin: 6px 0; }
.hero-points li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 7px;
  border-left: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: rotate(-45deg); }
.hero-illus { width: 100%; }
.guide-side { display: grid; gap: 18px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-illus { order: -1; max-width: 520px; }
}
.out-tabs, .sub-tabs { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: thin; }
.out-tabs .tab, .sub-tabs .tab { flex: 0 0 auto !important; width: auto !important; white-space: nowrap;
  padding: 8px 12px !important; }

/* ---------- log in / sign up with the illustration ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 430px); gap: 36px; align-items: center;
  max-width: 1000px; margin: 20px auto; }
.auth .narrow { margin: 0; max-width: none; }
.auth-art img { width: 100%; height: auto; border-radius: 18px; }
.auth-art p { color: var(--muted); font-size: 14.5px; margin: 14px 4px 0; max-width: 48ch; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { max-width: 460px; } }

/* more sidebar icons and groups */
.ico-layers { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 8l9 5 9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
.ico-doc { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M15 3v4h4M9 12h7M9 16h7'/%3E%3C/svg%3E"); }
.ico-table { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1.5'/%3E%3Cpath d='M3 10h18M9 10v9M15 10v9'/%3E%3C/svg%3E"); }
.ico-help { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.3-1 .9-1 1.7v.5M12 17.5v.1'/%3E%3C/svg%3E"); }
.ico-chat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M8 10h8M8 13h5'/%3E%3C/svg%3E"); }
.nav-group { font-size: 11.5px; font-weight: 640; color: var(--muted); margin: 14px 10px 4px; }
.nav-group:first-child { margin-top: 4px; }

/* ---------- samples, templates, guide, help, contact pages ---------- */
#page-samples, #page-templates, #page-pointfile, #page-help, #page-contact { padding-bottom: 48px; }
.sample-grid { max-width: 1400px; margin: 18px auto 0; padding: 0 28px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.sample-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; }
.sample-thumb { width: 100%; aspect-ratio: 520 / 600; object-fit: cover; object-position: top;
  border-bottom: 1px solid var(--rule); background: #fff; }
.sample-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sample-card-body .btn { align-self: flex-start; margin-top: auto; text-decoration: none; }
.sample-meta { color: var(--pink); font-size: 13px; font-weight: 560; margin: 0; }
.tpl-grid { max-width: 1400px; margin: 18px auto 0; padding: 0 28px; display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tpl-panel { padding: 20px 22px; }
.tpl-title { font-size: 17px; margin: 0 0 4px; }
.tpl-gap { margin-top: 28px; }
.tpl-start { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 8px 0 10px; }
.tpl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.tpl-actions .btn { text-decoration: none; }
table.xl.ph-table td { white-space: normal; }
.tpl-panel .ph-table { table-layout: auto; }
table.xl.ph-table td.ph-key { font-weight: 640; color: var(--pink); white-space: nowrap; }
.rule-list { margin: 0; padding-left: 22px; font-size: 14.5px; line-height: 1.55; }
.rule-list li { margin: 0 0 12px; }
.faq { max-width: 860px; margin: 18px 28px 0; display: grid; gap: 10px; }
@media (min-width: 1000px) { .faq { margin-left: max(28px, calc((100% - 1400px) / 2 + 28px)); } }
.faq-item { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 0 18px; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; position: relative;
  padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 11px; font-size: 20px; color: var(--pink); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.faq-item p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.faq-foot { max-width: 860px; margin: 16px 28px; }
.contact-row { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contact-row:first-child { padding-top: 0; }
.contact-value { font-size: 20px; font-weight: 640; }
.contact-row .btn { justify-self: start; text-decoration: none; }
@media (max-width: 860px) { .tpl-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .nav-group { display: none; } }

/* ---------- compact form (New plan) ---------- */
.form-panel .field-label { font-size: 12.5px; margin: 10px 0 4px; }
.form-panel .field-input, .form-panel input.field-input { padding: 5px 9px; font-size: 13.5px; min-height: 32px; }
.form-panel textarea.field-input { padding: 7px 9px; }
.form-panel .dash-dropdown, .form-panel .dash-dropdown-wrapper { font-size: 13.5px; }
.form-panel .dash-dropdown-trigger { min-height: 32px !important; padding-top: 3px !important; padding-bottom: 3px !important; }
.form-panel .choice { font-size: 13.5px; }
.form-panel .dropzone { padding: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.field-grid > div { min-width: 0; }
#wrap-extra_note, #wrap-regional_number { grid-column: 1 / -1; }
@media (max-width: 520px) { .field-grid { grid-template-columns: 1fr; } }
.field-grid { align-items: end; }

/* show / hide password */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 64px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin: 0 !important;
  background: transparent !important; border: 0 !important; color: var(--link) !important; font: inherit;
  font-size: 13px !important; font-weight: 600; padding: 4px 6px !important; cursor: pointer; width: auto !important; }
.pw-toggle:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; border-radius: 4px; }

/* sign in with Google, forgot link */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 10px 14px; margin: 6px 0 4px; border: 1px solid var(--rule-strong); border-radius: 6px;
  background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none; }
.btn-google:hover { background: var(--pink-wash); text-decoration: none; }
.g-mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--rule-strong);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 12px 0 2px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.forgot-link { margin: 6px 0 0; text-align: right; font-size: 13px; }
.flash-bar { max-width: 1400px; margin: 0 auto; padding: 18px 28px 0; }
.flash-bar .msg { padding: 10px 13px; border-radius: 4px; margin-bottom: 8px; font-size: 14px;
  background: var(--pink-wash); color: var(--ink); border-left: 3px solid var(--ok); }
.flash-bar .msg.err { border-left-color: var(--err); }
.redeem-row { display: flex; gap: 10px; max-width: 460px; }
.redeem-row input { flex: 1; }
.redeem-row button { white-space: nowrap; }
.admin-links { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-links .btn { text-decoration: none; }

/* column chooser under the point file */
.col-box { margin-top: 10px; padding: 10px 12px 12px; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--pink-wash); }
.col-title { margin-top: 0 !important; }
.col-hint { margin: 0 0 2px; }
.col-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-grid .field-label { margin-top: 6px; }
@media (max-width: 520px) { .col-grid { grid-template-columns: 1fr; } }
.col-eg { font-size: 12px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- steps fold open and closed (New plan) ---------- */
details.step > summary.step-head { list-style: none; cursor: pointer; margin-bottom: 0; user-select: none;
  border-radius: 6px; padding: 2px 0; }
details.step > summary.step-head::-webkit-details-marker { display: none; }
details.step > summary.step-head:hover .step-title { color: var(--pink); }
details.step > summary.step-head:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.step-arrow { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.step-arrow::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
details.step[open] > summary .step-arrow::before { transform: translateY(2px) rotate(-135deg); }
details.step > summary:hover .step-arrow { background: var(--pink-wash); color: var(--pink); }
details.step:not([open]) { padding-bottom: 18px; }
.step-body { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .step-arrow::before { transition: none; } }

/* not enough balance: pay for this one plan */
.pay-offer { display: grid; gap: 10px; margin-top: 6px; }
.pay-offer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-offer-actions .btn { text-decoration: none; }
/* Google's own button picture (pre-approved asset, shown unchanged) */
.google-official { display: flex; justify-content: center; margin: 6px 0 4px; }
.google-official img { height: 44px; width: auto; display: block; }
.google-official:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.ico-users { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 19c.6-3.3 3-5 6-5s5.4 1.7 6 5'/%3E%3Cpath d='M15.5 5.2a3 3 0 0 1 0 5.6M17.5 14.3c1.8.6 3 2.2 3.5 4.7'/%3E%3C/svg%3E"); }

/* forms that sit on one line (firm page) */
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0; }
.inline-form label { display: flex; flex-direction: column; gap: 4px; min-width: 240px; flex: 1 1 260px; }
.linkbtn { background: none; border: 0; padding: 0 0 0 6px; color: var(--link); cursor: pointer; font: inherit;
  text-decoration: underline; }

/* invite link */
.invite-link { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.invite-link input { flex: 1 1 280px; font-family: inherit; }

/* admin numbers */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-tile { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; }
.stat-tile .num { font-size: 1.6rem; font-weight: 650; line-height: 1.15; color: var(--ink); }
.stat-tile .lbl { color: var(--muted); font-size: .85rem; }
.stat-tile .sub { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.funnel-row { display: grid; grid-template-columns: minmax(150px, 210px) 1fr 120px; gap: 10px; align-items: center;
  margin: 6px 0; }
.funnel-bar { height: 18px; background: var(--grid); border-radius: 4px; overflow: hidden; }
.funnel-bar span { display: block; height: 100%; background: var(--link); border-radius: 0 4px 4px 0; }
.funnel-row .n { font-variant-numeric: tabular-nums; }
.daychart { width: 100%; height: auto; display: block; }
.daychart rect.bar { fill: var(--link); }
.daychart rect.hit { fill: transparent; }
.daychart rect.hit:hover + rect.bar, .daychart g:hover rect.bar { fill: var(--pink); }
.daychart text { fill: var(--muted); font-size: 10px; }
.daychart line { stroke: var(--rule); }
.stat-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 14px; }
@media (max-width: 600px) { .funnel-row { grid-template-columns: 1fr 70px; } .funnel-row .funnel-bar { grid-column: 1 / -1; grid-row: 2; } }
.page button.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--rule-strong); }
.page button.btn-quiet:hover { border-color: var(--ink); background: var(--paper); }
.page button.linkbtn, .page button.linkbtn:hover { background: none; border: 0; padding: 0 0 0 6px; width: auto;
  color: var(--link); font-weight: 400; text-decoration: underline; }
.stat-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.stat-pair .card { margin: 0; }

/* WhatsApp / X logos (official files from assets/social/, shown unchanged) */
.with-logo { display: inline-flex; align-items: center; gap: 10px; }
.social-logo { width: 28px; height: 28px; object-fit: contain; flex: none; }
.social-link { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.social-icon { width: 16px; height: 16px; object-fit: contain; }
