@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

:root {
  --bg: #f6f3f4;
  --card: #ffffff;
  --border: #e2e2e6;
  --text: #1c1c1f;
  --muted: #6b6b74;
  --accent: #660033;
  --accent-dark: #4d0026;
  --accent-soft: #fdf0f5;
  --best: #e6f4ea;
  --danger: #b3261e;
  --ok: #1a7f37;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; }

header.top {
  background: linear-gradient(135deg, #4d0026, #7a0a42);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 12px rgba(77, 0, 38, 0.25);
  color: #fff;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
header.top h1 { margin: 0; font-size: 1.2rem; }
header.top .sub { font-weight: 400; opacity: 0.8; font-size: 0.9rem; margin-left: 0.4rem; }
nav { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
nav .meta { font-size: 0.85rem; opacity: 0.85; margin: 0 0.5rem 0 1rem; }

.tab, .link-btn {
  background: transparent;
  color: #fff;
  border: 1px solid transparent;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
}
.tab:hover, .link-btn:hover { background: rgba(255, 255, 255, 0.12); }
.tab.active { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.15); }

main { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.card.narrow { max-width: 420px; margin: 3rem auto; }
.card h2 { margin-top: 0; font-size: 1.1rem; }
.card h3 { font-size: 0.95rem; margin: 1.25rem 0 0.5rem; }

.hint { color: var(--muted); font-size: 0.9rem; margin-top: -0.25rem; }
.muted { color: var(--muted); font-weight: 400; }
.empty { color: var(--muted); padding: 0.5rem 0; }

input[type="text"], input[type="number"], input[type="password"], input[type="search"], select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}
input[type="file"] { font-size: 0.9rem; }

button {
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}
button:hover { background: var(--accent-dark); }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.secondary:hover { background: var(--accent-soft); }
button.small { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
button:disabled { opacity: 0.5; cursor: wait; }
.icon-btn {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}
.icon-btn:hover { background: #fdecea; border-color: var(--danger); }

.row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.5rem; }
.row > * { flex: 1 1 180px; }
.row > button { flex: 0 0 auto; }
.row.end { justify-content: flex-end; margin-top: 1rem; }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; color: var(--muted); }
.field.small { flex: 0 0 120px; }

.msg { font-size: 0.9rem; margin: 0.5rem 0 0; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--ok); }

.pickers { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 0.75rem; }
.picker-group { display: flex; flex-direction: column; gap: 0.25rem; min-width: 200px; }
.picker-zone { font-weight: 700; font-size: 0.85rem; color: var(--accent); }
.picker-group label { font-size: 0.9rem; cursor: pointer; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
td.actions { text-align: right; white-space: nowrap; }

table.compare th { color: var(--text); text-transform: none; font-size: 0.95rem; letter-spacing: 0; }
table.compare th .pkg { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
table.compare .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.compare tr.total td { font-weight: 700; border-top: 2px solid var(--text); border-bottom: none; }
table.compare td.best { background: var(--best); color: var(--ok); }

table.edit input { min-width: 90px; padding: 0.35rem 0.45rem; font-size: 0.85rem; }
table.edit td { padding: 0.3rem; }
table.edit td:first-child input { min-width: 180px; }

.notes { margin-top: 1rem; display: grid; gap: 0.6rem; font-size: 0.85rem; }
.note { border-left: 3px solid var(--accent); padding-left: 0.6rem; }

/* ---- login ---- */
.auth {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 900px;
  margin: 2.5rem auto;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(77, 0, 38, 0.15);
}
.auth-brand {
  background: linear-gradient(160deg, #4d0026, #8a0d4c);
  color: #fff;
  padding: 2.5rem 2rem;
}
.auth-brand .logo {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: grid; place-items: center;
  font-weight: 800; letter-spacing: 0.02em; margin-bottom: 1.5rem;
}
.auth-brand h2 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 0.75rem; }
.auth-brand p { opacity: 0.85; line-height: 1.5; }
.auth-brand ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; font-size: 0.92rem; }
.auth-brand li::before { content: "\2713"; margin-right: 0.6rem; font-weight: 700; opacity: 0.9; }
.auth-form { padding: 2.5rem 2rem; display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.auth-form h2 { margin: 0; font-size: 1.4rem; }
.auth-form .hint { margin: -0.5rem 0 0.25rem; }
button.big { padding: 0.75rem 1rem; font-size: 1rem; border-radius: 8px; }
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102, 0, 51, 0.15);
}
@media (max-width: 720px) { .auth { grid-template-columns: 1fr; margin: 1rem auto; } .auth-brand { padding: 1.5rem; } }

/* ---- home / compare ---- */
.hero {
  background: linear-gradient(135deg, #ffffff, #fbeef4);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
}
.hero h2 { margin: 0; font-size: 1.75rem; letter-spacing: -0.01em; }
.hero p { margin: 0.35rem 0 1.25rem; color: var(--muted); }
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchbox input {
  padding: 0.95rem 1rem 0.95rem 2.9rem;
  font-size: 1.05rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(77, 0, 38, 0.08);
}
.stats { display: flex; gap: 0.5rem; margin-top: 0.9rem; flex-wrap: wrap; }
.stats span {
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  background: rgba(102, 0, 51, 0.08); padding: 0.25rem 0.7rem; border-radius: 999px;
}

.pickers { display: grid; gap: 0.9rem; margin-bottom: 1.25rem; }
.picker-zone { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 0.45rem 0.95rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); font-size: 0.9rem; font-weight: 500;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}
.chip:hover span { border-color: var(--accent); }
.chip.on span { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(102, 0, 51, 0.3); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(102, 0, 51, 0.3); }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.sum-card {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 1.1rem 1.2rem;
}
.sum-card.best { border-color: #7cc48f; background: linear-gradient(180deg, #f2faf4, #fff); box-shadow: 0 6px 20px rgba(26, 127, 55, 0.12); }
.badge {
  position: absolute; top: -0.6rem; right: 1rem; background: var(--ok); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; letter-spacing: 0.03em;
}
.sum-zone { font-weight: 700; font-size: 0.85rem; color: var(--accent); }
.sum-pkg { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.6rem; }
.sum-total { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sum-total small { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.sum-card.best .sum-total { color: var(--ok); }
.sum-diff { margin-top: 0.3rem; font-size: 0.8rem; color: var(--danger); font-weight: 600; }

.card.flush { padding: 0; overflow: hidden; }
.card.flush table.compare th { background: #faf7f8; padding: 0.9rem 1rem; }
.card.flush table.compare td { padding: 0.8rem 1rem; }
table.compare tbody tr:hover td { background: #fcf8fa; }
table.compare td:first-child, table.compare th:first-child { position: sticky; left: 0; background: #fff; }
table.compare th:first-child { background: #faf7f8; }
table.compare td.na { color: #b5b0b3; }
table.compare tr.total td { background: #faf7f8; font-size: 1.05rem; }
table.compare tr.total td.best { background: var(--best); }
.pad { padding: 1.5rem !important; text-align: center; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state h3 { color: var(--text); margin: 0.5rem 0 0.25rem; }
.empty-icon { font-size: 2.5rem; }

.note { background: #fff; border-radius: 8px; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-left: 3px solid var(--accent); }

/* ---- v6: activity / search / compare ---- */
.tab .count:not(:empty) {
  display: inline-block; min-width: 1.3rem; margin-left: 0.25rem; padding: 0 0.35rem;
  border-radius: 999px; background: #fff; color: var(--accent); font-size: 0.75rem; line-height: 1.3rem;
}
.banner {
  background: #fff4e5; border: 1px solid #f5c26b; color: #7a4b00;
  padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.92rem;
}
.link-btn.dark { color: #7a4b00; text-decoration: underline; padding: 0 0.25rem; }
.link-btn.dark:hover { background: transparent; }

.hero.center { text-align: center; }
.center { text-align: center; justify-content: center; }
.filters { display: grid; grid-template-columns: 2fr repeat(4, minmax(130px, 1fr)); gap: 0.75rem; align-items: end; }
.filters .field { color: var(--text); font-weight: 600; font-size: 0.78rem; }
.filters input, .filters select { font-weight: 400; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters .grow { grid-column: 1 / -1; } }
.searchbox.small input { padding: 0.55rem 0.8rem 0.55rem 2.4rem; font-size: 0.95rem; border-radius: 8px; box-shadow: none; }
.searchbox.small svg { left: 0.8rem; }
.searchbox.big { max-width: 720px; margin: 0 auto; }
.searchbox.big input { font-size: 1.15rem; padding: 1.05rem 1rem 1.05rem 3.1rem; border-radius: 999px; }
.searchbox.big svg { left: 1.2rem; }
.row.between { justify-content: space-between; margin: 0.9rem 0 0; }
.row.between > * { flex: 0 1 auto; }
.quick { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.9rem; }
.row.between .quick { margin-top: 0; }
.qchip {
  background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.3rem 0.8rem; font-size: 0.82rem; font-weight: 500;
}
.qchip:hover { background: var(--accent-soft); border-color: var(--accent); }
.qchip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.toggle { display: flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; cursor: pointer; white-space: nowrap; }
.toggle input { accent-color: var(--accent); width: 1rem; height: 1rem; }

.results-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.results-head h3 { margin: 0; font-size: 1.15rem; }
.results-head .actions { display: flex; gap: 0.5rem; }

.stale { font-size: 0.68rem; font-weight: 700; color: #7a4b00; background: #fff4e5; border: 1px solid #f5c26b; border-radius: 999px; padding: 0.05rem 0.45rem; vertical-align: middle; }
.warn { color: #7a4b00; }
mark { background: #ffe58a; color: inherit; border-radius: 2px; padding: 0 1px; }

.search-info { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; color: var(--muted); font-size: 0.85rem; margin: 0 0 0.75rem; }
.fchip { background: rgba(102, 0, 51, 0.08); color: var(--accent); font-weight: 600; border-radius: 999px; padding: 0.2rem 0.65rem; }
.results { display: grid; gap: 0.75rem; }
.result {
  display: flex; justify-content: space-between; gap: 1rem; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; transition: box-shadow 0.12s, border-color 0.12s;
}
.result:hover { border-color: #d7bccb; box-shadow: 0 6px 18px rgba(77, 0, 38, 0.08); }
.result-zone { font-size: 0.8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.result h3 { margin: 0.15rem 0 0.4rem; font-size: 1.1rem; }
.result-meta { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.result-meta b { color: var(--text); font-weight: 600; }
.result-notes { font-size: 0.85rem; margin-top: 0.4rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.tag { font-size: 0.75rem; background: #f1edef; border-radius: 6px; padding: 0.15rem 0.5rem; }
.result-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 0.5rem; min-width: 150px; }
.result-total { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-total small { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.badge.inline { position: static; }
@media (max-width: 640px) { .result { flex-direction: column; } .result-side { flex-direction: row; align-items: center; min-width: 0; } }

.hero .pickers { margin: 0.5rem 0 0; }
table.edit input.tiny { min-width: 60px; width: 70px; }
#reviewBody > .field { margin-bottom: 0.75rem; }

@media print {
  header.top, .hero, .results-head .actions, .banner, .search-info, #sResults, .hint { display: none !important; }
  body, main { background: #fff; padding: 0; }
  .card, .sum-card, .note { box-shadow: none !important; break-inside: avoid; }
  table.compare td:first-child, table.compare th:first-child { position: static; }
}
.link-btn.inline { color: var(--accent); padding: 0; text-decoration: underline; font-weight: 600; }
.link-btn.inline:hover { background: transparent; }

/* ---- activity sync ---- */
.sync { border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 0.75rem; }
.sync-head { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 0.6rem; }
.sync-head .muted { font-size: 0.82rem; }
.sync .row { margin-bottom: 0; }
.pill { font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 0.15rem 0.6rem; }
.pill.ok { background: var(--best); color: var(--ok); }
.pill.warn { background: #fff4e5; color: #7a4b00; }
.pill.bad { background: #fdecea; color: var(--danger); }
.pill.idle { background: #f1edef; color: var(--muted); }
.change { font-size: 0.85rem; margin: 0.6rem 0 0; }
.change .plus { color: var(--ok); }
.change .minus { color: #7a4b00; }
.names { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.2rem; }
.pending { background: #fff4e5; border: 1px solid #f5c26b; border-radius: 8px; padding: 0.6rem 0.8rem; margin-top: 0.6rem; font-size: 0.85rem; }
.pending .row { margin-top: 0.5rem; }
input[type="url"] { width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem; background: #fff; color: var(--text); }

/* ---- v8: simple search + admin console ---- */
header.top h1 { font-size: 1.3rem; }
.search-hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.search-hero h2 { font-size: 1.9rem; margin: 0 0 1.25rem; letter-spacing: -0.01em; text-wrap: balance; }
.search-hero .quick { margin-top: 1rem; }
.res-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
.res-head h3 { margin: 0; font-size: 1.15rem; }
.res-head .muted { font-size: 0.85rem; }

table.results-table { font-size: 0.95rem; }
table.results-table th { background: #faf7f8; padding: 0.8rem 0.9rem; white-space: nowrap; }
table.results-table td { padding: 0.9rem; vertical-align: middle; }
table.results-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.results-table td.na { color: #b5b0b3; }
table.results-table td.total { font-weight: 800; font-size: 1.05rem; }
table.results-table tr.best td { background: #f2faf4; }
table.results-table tr.best td.total { color: var(--ok); }
table.results-table tbody tr:not(.more-row):hover td { background: #fcf8fa; }
table.results-table tr.best:hover td { background: #eaf6ee; }
td.zone { min-width: 220px; }
.zname { font-weight: 700; font-size: 1rem; }
.zpkg { color: var(--muted); font-size: 0.85rem; margin-top: 0.1rem; }
.zact { font-size: 0.78rem; color: var(--accent); margin-top: 0.25rem; }
.small-text { font-size: 0.8rem; margin-top: 0.3rem; }
tr.more-row td { background: #faf7f8; padding: 0.5rem 0.9rem 0.8rem 1.8rem; }
.more-pkg { display: flex; justify-content: space-between; gap: 1rem; max-width: 520px; font-size: 0.88rem; padding: 0.2rem 0; }

.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.admin-head h2 { margin: 0; font-size: 1.4rem; }
.admin-head .hint { margin: 0.3rem 0 0; max-width: 60ch; }
.admin-head form { flex: 0 1 420px; margin: 0; }
.zone-card { padding: 1.1rem 1.25rem; }
.zc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin-bottom: 0.75rem; }
.zc-head h3 { margin: 0; font-size: 1.15rem; }
.zc-head .muted { font-size: 0.82rem; }
.zc-actions { margin-left: auto; display: flex; gap: 0.4rem; }
.source { border-top: 1px solid var(--border); padding: 0.8rem 0 0.2rem; }
.source-title { font-weight: 700; font-size: 0.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.source-title .muted { font-weight: 400; font-size: 0.8rem; }
.source .row { margin-bottom: 0; }
label.upload {
  flex: 0 0 auto; cursor: pointer; border: 1px solid var(--accent); color: var(--accent); background: transparent;
  border-radius: 6px; padding: 0.3rem 0.6rem; font-size: 0.8rem; font-weight: 600;
}
label.upload:hover { background: var(--accent-soft); }
td.actions .reset input { width: 160px; display: inline-block; padding: 0.3rem 0.5rem; font-size: 0.85rem; }

/* ---- live website check ---- */
.live { font-size: 0.85rem; padding: 0.45rem 0.75rem; border-radius: 8px; margin: 0 0 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.live.checking { background: #f1edef; color: var(--muted); }
.live.ok { background: var(--best); color: var(--ok); }
.live.bad { background: #fff4e5; color: #7a4b00; }
.live .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok); flex: none; }
.spinner { width: 0.9rem; height: 0.9rem; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.zsrc { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
.msg.warnmsg { color: #7a4b00; }

.visa-pick { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; font-weight: 600; font-size: 0.9rem; }
.visa-pick select { width: auto; padding: 0.35rem 0.6rem; }
.znote { font-size: 0.72rem; color: #7a4b00; margin-top: 0.2rem; max-width: 34ch; }
.res-head.second { margin-top: 1.75rem; }
.res-head.second h3 { color: var(--muted); }
.empty-state.small { padding: 1.5rem 1rem; }
table.results-table td.allin { text-align: center; color: var(--muted); font-size: 0.85rem; font-style: italic; }
.znote.warn { color: var(--danger); font-weight: 600; }

a.alink { color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor; }
a.alink:hover { border-bottom-style: solid; }
.acode { font-size: 0.68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.zsrc a { color: inherit; text-decoration: underline; }

table.edit tr.flagged td { background: #fdecea; }
table.edit tr.flag-row td { color: var(--danger); font-size: 0.8rem; padding: 0.2rem 0.6rem 0.6rem; }
.flagtxt { color: var(--danger); font-weight: 600; } .oktxt { color: var(--ok); font-weight: 600; }

/* ---- questionnaire ---- */
.quiz { max-width: 860px; margin: 1rem auto; }
.quiz-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.quiz-head h2 { margin: 0; flex: 1 1 auto; }
.quiz-progress { flex: 0 0 160px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.quiz-progress div { height: 100%; background: var(--accent); transition: width .3s; }
.qstep h3 { font-size: 1rem; margin: 1.1rem 0 .6rem; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.qgrid.two { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.qgrid.three { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.qopt { text-align: left; background: var(--card); color: var(--text); border: 1.5px solid var(--border); border-radius: 10px; padding: .7rem .85rem; display: flex; flex-direction: column; gap: .2rem; font-weight: 400; }
.qopt b { font-size: .92rem; } .qopt span { font-size: .78rem; color: var(--muted); }
.qopt:hover { border-color: var(--accent); background: var(--accent-soft); }
.qopt.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.qstep .field { margin-top: .9rem; }
.qstep textarea { width: 100%; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.qmatch { margin-top: .5rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.quiz-nav { margin-top: 1.5rem; }
.qsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: .5rem 0 1rem; }
.qsum h3 { margin: .2rem 0 .5rem; font-size: .95rem; }
.qsum dl { display: grid; grid-template-columns: 110px 1fr; gap: .3rem .6rem; margin: 0; font-size: .9rem; }
.qsum dt { color: var(--muted); } .qsum dd { margin: 0; }
.qrec { border: 2px solid #7cc48f; background: #f2faf4; border-radius: 12px; padding: 1rem 1.2rem; margin: .5rem 0 1rem; display: grid; gap: .3rem; }
.qprice { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; } .qprice small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.qalt { display: grid; gap: .6rem; } .qalt-item { border: 1px solid var(--border); border-radius: 10px; padding: .7rem 1rem; display: grid; gap: .2rem; }
.qalt-item .qprice { font-size: 1.15rem; }
.approval { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .2rem .7rem; }
.approval.easy { background: var(--best); color: var(--ok); } .approval.medium { background: #fff4e5; color: #7a4b00; } .approval.strict { background: #fdecea; color: var(--danger); }
.qdocs { margin: 0; padding-left: 1.1rem; font-size: .88rem; display: grid; gap: .2rem; }

/* =====================================================================
   Design layer: refined, product-grade look. Overrides only; the markup
   and behaviour are unchanged.
   ===================================================================== */
:root {
  --bg: #f8f8fa;
  --card: #ffffff;
  --border: #e9e9ee;
  --border-strong: #d9d9e1;
  --text: #0f1115;
  --muted: #667085;
  --accent: #5c0a33;
  --accent-dark: #3f0623;
  --accent-soft: #f8eef3;
  --ring: rgba(92, 10, 51, 0.14);
  --best: #ecfdf3;
  --ok: #067647;
  --danger: #b42318;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -6px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 24px 48px -12px rgba(16, 24, 40, 0.14);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(1200px 480px at 50% -220px, rgba(92, 10, 51, 0.07), transparent 70%),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.006em;
}
h1, h2, h3 { letter-spacing: -0.02em; }
a { color: var(--accent); }

/* Header: light, glassy, quiet */
header.top {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: var(--text);
  box-shadow: none;
  border-bottom: 1px solid var(--border);
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
}
header.top h1 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
header.top h1::before {
  content: "PM"; display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(145deg, #7a1245, var(--accent-dark));
  color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 6px rgba(92, 10, 51, 0.3);
}
nav { gap: 0.15rem; }
.tab, header .link-btn {
  color: #475467; font-weight: 500; font-size: 0.9rem;
  padding: 0.45rem 0.85rem; border-radius: 9px; border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.tab:hover, header .link-btn:hover { background: #f2f2f5; color: var(--text); }
.tab.active { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }

main { max-width: 1180px; padding: 2rem clamp(1rem, 4vw, 2rem) 4rem; }

/* Surfaces */
.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}
.card h2 { font-size: 1.15rem; font-weight: 700; }

/* Controls */
input[type="text"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-family: inherit; font-size: 0.93rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
button {
  font-family: inherit; font-weight: 600; border-radius: 10px;
  padding: 0.6rem 1.05rem;
  background: linear-gradient(180deg, #6d0f3d, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(16, 24, 40, 0.12);
  transition: transform 0.08s, box-shadow 0.15s, background 0.15s;
}
button:hover { background: linear-gradient(180deg, #5c0a33, var(--accent-dark)); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
button.secondary, .icon-btn, label.upload {
  background: #fff; color: #344054;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
button.secondary:hover, .icon-btn:hover, label.upload:hover { background: #f9f9fb; color: var(--text); border-color: #c8c8d2; }
button.small, label.upload { padding: 0.42rem 0.8rem; font-size: 0.84rem; border-radius: 9px; }
.icon-btn { color: var(--danger); }
.link-btn.inline { background: none; box-shadow: none; }
button:disabled { opacity: 0.5; }

/* Sign in */
.auth { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.auth-brand {
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(150deg, #7a1245 0%, #4a0829 55%, #2a0417 100%);
}
.auth-brand h2 { font-size: 1.9rem; line-height: 1.15; letter-spacing: -0.03em; }
.auth-form h2 { font-size: 1.35rem; }
button.big { padding: 0.8rem 1rem; font-size: 0.98rem; }

/* Banners */
.banner { border-radius: 12px; box-shadow: none; font-size: 0.9rem; }

/* Search hero */
.search-hero { padding: clamp(1.5rem, 5vw, 3.5rem) 0 1.25rem; }
.search-hero h2 {
  font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08;
  background: linear-gradient(180deg, #0f1115 30%, #4b1a33);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.searchbox.big input, .searchbox input[type="search"], .searchbox input[type="text"] {
  border-radius: 16px; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  font-size: 1.1rem;
}
.searchbox.big input:focus { box-shadow: 0 0 0 5px var(--ring), var(--shadow-lg); }
.visa-pick { font-weight: 500; color: #344054; }
.visa-pick select { width: auto; }
.qchip, .chip span, .fchip {
  background: #fff; border: 1px solid var(--border-strong); color: #344054;
  border-radius: 999px; font-weight: 500; box-shadow: var(--shadow-sm);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.qchip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.qchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Results */
.res-head h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.live { border-radius: 10px; font-size: 0.84rem; border: 1px solid transparent; }
.live.ok { background: #f0fdf4; border-color: #d1fadf; color: #05603a; }
.live.bad { background: #fffaeb; border-color: #fef0c7; color: #93370d; }
.card.flush { padding: 0; overflow: hidden; }
table.results-table th {
  background: #fafafb; color: #667085;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
table.results-table td { border-bottom: 1px solid #f0f0f3; padding-top: 1rem; padding-bottom: 1rem; }
table.results-table tbody tr:last-child td { border-bottom: none; }
table.results-table tr.best td { background: #f6fef9; }
table.results-table tr.best td:first-child { box-shadow: inset 3px 0 0 #12b76a; }
table.results-table td.total { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
table.results-table tr.best td.total { color: var(--ok); }
.zname { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.badge { background: #12b76a; border-radius: 999px; font-weight: 600; letter-spacing: 0.01em; }
a.alink { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(92, 10, 51, 0.25); }
a.alink:hover { border-bottom-color: var(--accent); }
.acode { background: #f2f2f5; color: #475467; border-radius: 6px; padding: 0.05rem 0.35rem; font-size: 0.75em; font-weight: 500; }
.zsrc { color: #98a2b3; }

/* Status pills */
.pill { border-radius: 999px; font-weight: 600; font-size: 0.72rem; padding: 0.15rem 0.55rem; background: #f2f4f7; color: #475467; border: 1px solid #eaecf0; }
.pill.ok { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.pill.warn { background: #fffaeb; color: #b54708; border-color: #fedf89; }
.pill.bad { background: #fef3f2; color: #b42318; border-color: #fecdca; }

/* Admin */
.admin-head h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.zone-card { transition: box-shadow 0.2s; }
.zone-card:hover { box-shadow: var(--shadow-lg); }
.zc-head { padding-bottom: 0.9rem; border-bottom: 1px solid #f0f0f3; }
.zc-head h3 { font-size: 1.15rem; font-weight: 700; }
.source { padding: 1rem 0 0.25rem; }
.source + .source { border-top: 1px solid #f0f0f3; margin-top: 0.75rem; }
.source-title { font-weight: 600; }
.pending { border-radius: 12px; background: #fcfcfd; border: 1px solid var(--border); }
table.grid th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #667085; }

/* Questionnaire */
.quiz { padding: clamp(1.25rem, 3vw, 2rem); }
.quiz-head h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.quiz-progress { height: 6px; border-radius: 999px; background: #f0f0f3; }
.quiz-progress div { border-radius: 999px; background: linear-gradient(90deg, #7a1245, var(--accent)); transition: width 0.35s ease; }
.qstep h3 { font-size: 1.02rem; font-weight: 650; }
.qopt {
  background: #fff; color: var(--text); text-align: left;
  border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.qopt:hover { background: #fff; border-color: #c4a3b4; box-shadow: var(--shadow-md); }
.qopt.on { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.qopt b { color: var(--text); }
.qopt span { color: var(--muted); }
.qrec { border-radius: 16px; }

@media (max-width: 720px) {
  header.top { padding: 0.6rem 1rem; }
  .card { border-radius: 14px; padding: 1.1rem; }
  .search-hero h2 { font-size: 1.8rem; }
}
.tab, .link-btn, header .link-btn { background: transparent; box-shadow: none; }
.tab.active { background: var(--accent-soft); }
.link-btn.dark, .banner .link-btn { background: none; box-shadow: none; padding: 0.1rem 0.2rem; }
.zc-head { border-bottom: none; }
label.upload, button.small { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; min-height: 34px; }
.searchbox.big input:focus { box-shadow: 0 0 0 4px var(--ring), var(--shadow-md); }
.source .row + .row { margin-top: 0.6rem; }
@media (max-width: 720px) {
  nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  .tab, header .link-btn { white-space: nowrap; }
}

/* Price proof and activity details */
.proof-btn {
  display: block; margin: 0.35rem 0 0 auto; padding: 0.15rem 0.55rem; min-height: 0;
  font-size: 0.72rem; font-weight: 600; border-radius: 999px;
  background: #fff; color: var(--accent); border: 1px solid rgba(92, 10, 51, 0.25); box-shadow: none;
}
.proof-btn:hover, .proof-btn.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
tr.proof-row td { background: #fcfcfd; padding: 0.75rem 1rem 1rem; }
.proof { font-size: 0.86rem; color: #344054; margin: 0.35rem 0; }
.proof-head { margin-bottom: 0.35rem; }
.proof-ctx { color: #98a2b3; font-size: 0.8rem; margin-bottom: 0.25rem; }
.proof blockquote {
  margin: 0; padding: 0.55rem 0.75rem; border-left: 3px solid var(--accent);
  background: #fff; border-radius: 0 8px 8px 0; box-shadow: var(--shadow-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; white-space: pre-wrap; word-break: break-word;
}
.proof mark { background: #fef0c7; color: inherit; padding: 0 2px; border-radius: 3px; font-weight: 700; }
.proof.none { color: #b54708; }
.more-pkg + .proof { margin: 0.2rem 0 0.8rem; }
details.adet { margin-top: 0.45rem; font-size: 0.84rem; }
details.adet > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.8rem; list-style: none; }
details.adet > summary::before { content: "▸ "; }
details.adet[open] > summary::before { content: "▾ "; }
.adet-item { margin: 0.5rem 0; padding: 0.6rem 0.75rem; background: #fcfcfd; border: 1px solid var(--border); border-radius: 10px; max-width: 640px; }
.adet-meta { color: #667085; font-size: 0.78rem; margin-top: 0.15rem; }
.adet-item p { margin: 0.35rem 0 0; color: #344054; line-height: 1.5; }
.adet-req { margin-top: 0.35rem; color: #93370d; font-size: 0.8rem; }
.adet-src { color: #98a2b3; font-size: 0.76rem; }
td.desc-cell { max-width: 420px; font-size: 0.8rem; color: #475467; }

/* History, reports, companies */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0.5rem 0 1.25rem; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.page-head .hint { margin: 0.3rem 0 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }
.row.wrap { flex-wrap: wrap; }
.row.wrap > input, .row.wrap > select { flex: 1 1 160px; }
.field.small { font-size: 0.78rem; color: #667085; font-weight: 500; display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 150px; }
.field.grow { flex: 2 1 220px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.tile span { display: block; color: #667085; font-size: 0.8rem; font-weight: 500; }
.tile b { display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 0.15rem; }
table.grid { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.grid th { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); background: #fafafb; }
table.grid td { padding: 0.55rem 0.6rem; border-bottom: 1px solid #f0f0f3; vertical-align: top; }
table.grid td.num, table.grid th.num { text-align: right; }
table.grid tr.warnrow td { background: #fffbfa; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 1.5rem; }
.tpill { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.12rem 0.5rem; border-radius: 999px; background: #f2f4f7; color: #475467; white-space: nowrap; }
.tpill.t-search { background: #eff8ff; color: #175cd3; }
.tpill.t-questionnaire { background: #f4f3ff; color: #5925dc; }
.tpill.t-feedback, .tpill.t-open { background: #fffaeb; color: #b54708; }
.tpill.t-login { background: #ecfdf3; color: #067647; }
.tpill.t-login_failed { background: #fef3f2; color: #b42318; }
.tpill.t-done { background: #ecfdf3; color: #067647; }
.fb { border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem 0.9rem; margin-bottom: 0.75rem; background: #fff; }
.fb.resolved { opacity: 0.8; }
.fb-head { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; font-size: 0.88rem; }
.fb p { margin: 0.4rem 0; }
.fb-reply { border-left: 3px solid var(--accent); background: #fcfcfd; padding: 0.4rem 0.7rem; margin: 0.4rem 0; border-radius: 0 8px 8px 0; font-size: 0.86rem; }
.fb-reply p { margin: 0.2rem 0 0; }
.fb .row { margin-top: 0.5rem; }
#histFilter { margin-bottom: 0.75rem; }
input[type="date"] { border: 1px solid var(--border-strong); border-radius: 10px; padding: 0.55rem 0.7rem; font-family: inherit; font-size: 0.9rem; box-shadow: var(--shadow-sm); background: #fff; color: var(--text); }

/* Admin sub-tabs and report levels */
.subtabs { display: flex; gap: 0.25rem; padding: 0.3rem; margin: 0.25rem 0 1.5rem; background: #f0f0f3; border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
.subtab { background: transparent; color: #475467; box-shadow: none; border-radius: 9px; padding: 0.5rem 1rem; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.subtab:hover { background: rgba(255, 255, 255, 0.6); color: var(--text); }
.subtab.active { background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }
.formtitle { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 700; }
.row.between { display: flex; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.row.between > input { flex: 1; }
.row.between > select { width: auto; min-width: 200px; }
td.actions { white-space: nowrap; }
td.actions button { margin-left: 0.25rem; }
.level-card { border-left: 4px solid var(--accent); }
.level-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.level-head h3 { margin: 0.35rem 0 0.15rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.level-contact { margin-top: 0.3rem; color: #344054; }
.level-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0.9rem 0 0.5rem; color: #667085; font-size: 0.86rem; }
.level-facts b { color: var(--text); margin-left: 0.25rem; }
.row.wrap > #newRole { flex: 0 1 200px; }
td.actions { white-space: nowrap; width: 1%; }

/* =====================================================================
   Apple-grade layer. System type (SF Pro on Apple devices), generous
   whitespace, borderless surfaces, pill controls. Overrides only.
   ===================================================================== */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --hair: rgba(0, 0, 0, 0.08);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --accent: #8a1550;
  --accent-dark: #6d0f3f;
  --accent-soft: rgba(138, 21, 80, 0.07);
  --ring: rgba(138, 21, 80, 0.18);
  --ok: #248a3d;
  --danger: #d70015;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-feature-settings: normal;
}
body { background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif; letter-spacing: -0.015em; }
::selection { background: rgba(138, 21, 80, 0.16); }

/* Global nav: thin, frosted, small type */
header.top {
  height: 52px; padding: 0 max(22px, calc((100vw - 1024px) / 2));
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
header.top h1 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; gap: 0.5rem; }
header.top h1::before { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; background: linear-gradient(160deg, #a51d63, #5e0b35); box-shadow: none; }
.tab, header .link-btn { font-size: 13.5px; font-weight: 400; letter-spacing: -0.01em; color: rgba(0, 0, 0, 0.8); padding: 6px 11px; border-radius: 980px; }
.tab:hover, header .link-btn:hover { background: transparent; color: var(--accent); }
.tab.active { background: transparent; color: var(--text); font-weight: 600; }

main { max-width: 1024px; padding: 40px 22px 96px; }

/* Surfaces: borderless, rounded, quiet */
.card, .tile, .auth { border: none; border-radius: 18px; box-shadow: none; background: var(--card); }
.card { padding: 28px 30px; }
.card h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.hint, .muted { color: var(--muted); }
.banner { background: #fff; border: none; border-radius: 14px; color: var(--text); box-shadow: none; padding: 12px 18px; font-size: 15px; }
.banner .link-btn { color: var(--accent); text-decoration: none; }

/* Controls: Apple pills and soft fields */
button {
  border-radius: 980px; padding: 9px 20px; font-size: 16px; font-weight: 400; letter-spacing: -0.01em;
  background: var(--accent); box-shadow: none; transition: background 0.2s, opacity 0.2s;
}
button:hover { background: var(--accent-dark); }
button:active { transform: none; opacity: 0.85; }
button.secondary, .icon-btn, label.upload { background: rgba(0, 0, 0, 0.05); color: var(--text); border: none; box-shadow: none; }
button.secondary:hover, .icon-btn:hover, label.upload:hover { background: rgba(0, 0, 0, 0.09); color: var(--text); }
.icon-btn { color: var(--danger); }
button.small, label.upload { padding: 6px 14px; font-size: 14px; min-height: 30px; border-radius: 980px; }
input[type="text"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], input[type="date"], select, textarea {
  border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 12px; padding: 11px 14px; font-size: 16px; box-shadow: none; background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.link-btn.inline { color: var(--accent); }

/* Sign in: a calm, centred Apple-ID style card */
.auth { max-width: 900px; margin: 48px auto; overflow: hidden; box-shadow: var(--shadow-lg); border-radius: 28px; }
.auth-brand { background: radial-gradient(120% 90% at 0% 0%, #b4246d 0%, #7a1145 42%, #2b0518 100%); padding: 56px 48px; }
.auth-brand .logo { border-radius: 14px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); }
.auth-brand h2 { font-size: 40px; font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin-top: 28px; }
.auth-brand p { font-size: 19px; opacity: 0.85; line-height: 1.4; }
.auth-form { padding: 56px 48px; }
.auth-form h2 { font-size: 28px; font-weight: 600; }
button.big { padding: 14px 20px; font-size: 17px; border-radius: 12px; }

/* Search hero */
.search-hero { padding: 48px 0 28px; text-align: center; }
.search-hero h2 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05;
  background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--text); margin-bottom: 28px;
}
.searchbox.big input, .searchbox input[type="search"], .searchbox input[type="text"] {
  height: 60px; border-radius: 16px; font-size: 19px; border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.searchbox.big input:focus { box-shadow: 0 0 0 4px var(--ring), 0 4px 24px rgba(0, 0, 0, 0.06); }
.visa-pick { font-size: 16px; color: var(--muted); }
.qchip, .chip span, .fchip { background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); color: var(--text); font-size: 15px; padding: 6px 14px; box-shadow: none; border-radius: 980px; }
.qchip:hover { background: #fff; border-color: var(--accent); color: var(--accent); }

/* Results */
.res-head { margin-top: 36px; }
.res-head h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.live { border: none; border-radius: 12px; font-size: 14px; padding: 10px 14px; }
.live.ok { background: rgba(36, 138, 61, 0.08); color: #1d6b31; }
.live.bad { background: rgba(255, 159, 10, 0.1); color: #8a5300; }
.card.flush { border-radius: 18px; }
table.results-table th { background: #fff; color: var(--muted); text-transform: none; letter-spacing: -0.01em; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--hair); padding-top: 16px; padding-bottom: 12px; }
table.results-table td { border-bottom: 1px solid var(--hair); padding-top: 22px; padding-bottom: 22px; }
table.results-table tr.best td { background: rgba(36, 138, 61, 0.04); }
table.results-table tr.best td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
table.results-table td.total { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
table.results-table tr.best td.total { color: var(--ok); }
.zname { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.zpkg { font-size: 15px; color: var(--muted); }
.badge { background: var(--ok); font-weight: 500; font-size: 12px; padding: 2px 8px; }
.znote { font-size: 13.5px; }
a.alink { color: var(--accent); border-bottom: none; }
a.alink:hover { text-decoration: underline; }
.acode { background: rgba(0, 0, 0, 0.05); color: var(--muted); border-radius: 6px; }
.proof-btn { background: transparent; color: var(--accent); border: 1px solid rgba(138, 21, 80, 0.3); font-size: 13px; padding: 3px 10px; min-height: 0; }
.proof-btn:hover, .proof-btn.on { background: var(--accent-soft); }
.proof blockquote { border-left-color: var(--accent); box-shadow: none; background: #f5f5f7; font-size: 13.5px; }
tr.proof-row td { background: #fbfbfd; }
.adet-item { background: #f5f5f7; border: none; border-radius: 12px; }
details.adet > summary { color: var(--accent); font-weight: 500; }

/* Pills / status */
.pill, .tpill { border: none; font-weight: 500; font-size: 12.5px; padding: 3px 9px; }
.pill.ok, .tpill.t-login, .tpill.t-done { background: rgba(36, 138, 61, 0.1); color: #1d6b31; }
.pill.warn, .tpill.t-feedback, .tpill.t-open { background: rgba(255, 159, 10, 0.12); color: #8a5300; }
.pill.bad, .tpill.t-login_failed { background: rgba(215, 0, 21, 0.08); color: #b0000f; }
.tpill.t-search { background: rgba(0, 113, 227, 0.08); color: #0062c4; }
.tpill.t-questionnaire { background: rgba(137, 68, 171, 0.1); color: #7a3a9a; }

/* Admin: segmented control and large page titles */
.subtabs { background: rgba(0, 0, 0, 0.05); border-radius: 10px; padding: 2px; margin: 0 auto 36px; }
.subtab { font-size: 14px; font-weight: 500; padding: 6px 18px; border-radius: 8px; color: var(--text); }
.subtab:hover { background: transparent; color: var(--text); }
.subtab.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04); }
#admin { display: flex; flex-direction: column; }
#admin > .subtabs { align-self: center; }
.page-head h2, .admin-head h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.page-head .hint, .admin-head .hint { font-size: 17px; max-width: 640px; }
.zone-card:hover { box-shadow: none; }
.zc-head h3 { font-size: 24px; font-weight: 600; }
.source + .source { border-top: 1px solid var(--hair); }
.pending { background: #f5f5f7; border: none; }
.formtitle { font-size: 17px; font-weight: 600; }

/* Tables (admin, reports, history) */
table.grid { font-size: 15px; }
table.grid th { background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: -0.01em; border-bottom: 1px solid var(--hair); padding: 10px 12px; }
table.grid td { border-bottom: 1px solid var(--hair); padding: 14px 12px; }
table.grid tbody tr:last-child td { border-bottom: none; }
table.grid tbody tr:hover td { background: #fbfbfd; }

/* Report tiles */
.tiles { gap: 14px; }
.tile { padding: 20px 22px; }
.tile span { font-size: 14px; color: var(--muted); }
.tile b { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.level-card { border-left: none; background: linear-gradient(180deg, #fff, #fbfbfd); }
.level-head h3 { font-size: 32px; font-weight: 700; letter-spacing: -0.025em; }
.fb { border: none; background: #f5f5f7; border-radius: 14px; }
.fb-reply { background: #fff; }

/* Questionnaire */
.quiz { padding: 40px; }
.quiz-head h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.025em; }
.quiz-progress { height: 4px; background: rgba(0, 0, 0, 0.07); }
.quiz-progress div { background: var(--accent); }
.qstep h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin-top: 28px; }
.qopt { border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 16px; box-shadow: none; padding: 18px 18px; background: #fff; }
.qopt:hover { border-color: rgba(0, 0, 0, 0.25); box-shadow: none; }
.qopt.on { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 1.5px var(--accent) inset; }
.qopt b { font-size: 17px; font-weight: 600; }
.qopt span { font-size: 14px; }
.qrec { border-radius: 18px; }

/* Preview banner (preview build only) */
.preview-note { background: #fbfbfd; color: var(--muted); border-bottom: 1px solid rgba(0, 0, 0, 0.06); font-size: 13px; }

@media (max-width: 720px) {
  header.top { height: auto; padding: 10px 16px; }
  main { padding: 24px 16px 64px; }
  .card { padding: 20px; border-radius: 16px; }
  .search-hero { padding: 24px 0 16px; }
  .page-head h2, .admin-head h2 { font-size: 30px; }
  .auth-brand, .auth-form { padding: 36px 28px; }
  .auth-brand h2 { font-size: 30px; }
  .quiz { padding: 24px; }
}
header.top { padding: 0 max(22px, calc((100vw - 980px) / 2)); }
.searchbox.big input:focus, .searchbox input:focus { border-color: rgba(138, 21, 80, 0.45); box-shadow: 0 0 0 3px rgba(138, 21, 80, 0.1), 0 4px 24px rgba(0, 0, 0, 0.06); }
.quick { align-items: center; }
.banner + section, #pwBanner { margin-bottom: 20px; }
.quiz { margin-top: 8px; }
.res-head h3 { line-height: 1.15; } @media (max-width: 720px) { .res-head h3 { font-size: 24px; } }

/* Always light controls, even when the computer is in dark mode */
:root { color-scheme: light; }
input, select, textarea { color: var(--text); background-color: #fff; -webkit-text-fill-color: currentColor; }
input::placeholder, textarea::placeholder { color: #8e8e93; -webkit-text-fill-color: #8e8e93; opacity: 1; }
textarea { font-family: inherit; font-size: 16px; line-height: 1.5; width: 100%; }

/* =====================================================================
   Amana Corporate brand (#0E6686) on the Apple-style layout.
   ===================================================================== */
:root {
  --accent: #0e6686;
  --accent-dark: #0a4f68;
  --accent-soft: rgba(14, 102, 134, 0.08);
  --ring: rgba(14, 102, 134, 0.2);
}
::selection { background: rgba(14, 102, 134, 0.18); }
a, .link-btn.inline, a.alink, details.adet > summary, .banner .link-btn { color: var(--accent); }
button { background: var(--accent); }
button:hover { background: var(--accent-dark); }
button.secondary, .icon-btn, label.upload { background: rgba(0, 0, 0, 0.05); }
button.secondary:hover, .icon-btn:hover, label.upload:hover { background: rgba(0, 0, 0, 0.09); }
.icon-btn { color: var(--danger); }
.tab:hover, header .link-btn:hover { color: var(--accent); }
.qchip:hover { border-color: var(--accent); color: var(--accent); }
.qchip.on { background: var(--accent); border-color: var(--accent); }
.qopt.on { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent) inset; }
.quiz-progress div { background: var(--accent); }
.proof-btn { color: var(--accent); border-color: rgba(14, 102, 134, 0.35); }
.proof-btn:hover, .proof-btn.on { background: var(--accent-soft); }
.proof blockquote { border-left-color: var(--accent); }
.fb-reply { border-left-color: var(--accent); }
.searchbox.big input:focus, .searchbox input:focus { border-color: rgba(14, 102, 134, 0.5); box-shadow: 0 0 0 3px rgba(14, 102, 134, 0.12), 0 4px 24px rgba(0, 0, 0, 0.06); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }

/* Header: Amana wordmark + product name */
header.top h1.brand { display: flex; align-items: center; gap: 12px; margin: 0; }
header.top h1.brand::before { content: none; display: none; }
.brand-logo { height: 22px; width: auto; display: block; }
.brand-app { font-size: 16px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; padding-left: 12px; border-left: 1px solid rgba(0, 0, 0, 0.15); line-height: 18px; }

/* Sign in: Apple ID style, one centred column */
.auth { display: block; max-width: 440px; margin: 64px auto 32px; background: #fff; border-radius: 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); overflow: hidden; }
.auth-brand { background: none; color: var(--text); text-align: center; padding: 48px 40px 8px; }
.auth-logo { height: 46px; width: auto; display: block; margin: 0 auto 28px; }
.auth-brand h2 { color: var(--text); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.auth-brand p { color: var(--muted); font-size: 17px; margin: 8px 0 0; opacity: 1; }
.auth-brand ul, .auth-brand .logo { display: none; }
.auth-form { padding: 28px 40px 44px; }
.auth-form h2 { display: none; }
.auth-form .field { font-size: 14px; color: var(--muted); }
.auth-form input { height: 48px; font-size: 17px; }
button.big { width: 100%; border-radius: 12px; padding: 14px; font-size: 17px; font-weight: 500; }

/* Search hero */
.search-hero { padding: 56px 0 32px; }
.eyebrow { color: var(--accent); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.search-hero h2 { font-size: clamp(40px, 6.6vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; margin: 0 0 18px; }
.search-hero h2 .soft { color: #86868b; }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 36px; line-height: 1.38; letter-spacing: -0.015em; }

/* Footer */
.site-foot { background: #f5f5f7; border-top: 1px solid rgba(0, 0, 0, 0.08); margin-top: 24px; }
.foot-inner { max-width: 980px; margin: 0 auto; padding: 28px 22px 40px; color: #6e6e73; font-size: 13px; line-height: 1.5; }
.foot-logo { height: 18px; width: auto; display: block; margin-bottom: 14px; opacity: 0.9; }
.foot-inner p { margin: 0 0 8px; max-width: 720px; }
.foot-legal { color: #86868b; }

@media (max-width: 720px) {
  .brand-logo { height: 18px; }
  .brand-app { font-size: 14px; padding-left: 10px; }
  .auth { margin: 24px auto; }
  .auth-brand { padding: 36px 24px 4px; }
  .auth-form { padding: 24px 24px 32px; }
  .search-hero { padding: 28px 0 20px; }
}
.brand-logo { height: 26px; }
#loginMsg:empty { display: none; }
.auth-form { padding-bottom: 36px; }

/* =====================================================================
   Redesign: branded hero, result cards, quiet status.
   ===================================================================== */

/* Hero: a brand-blue panel, white type, search front and centre */
.search-hero {
  position: relative; overflow: hidden;
  margin: 0 0 8px; padding: 64px 32px 44px; border-radius: 28px; text-align: center; color: #fff;
  background:
    radial-gradient(700px 320px at 15% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(600px 300px at 110% 120%, rgba(64, 196, 230, 0.35), transparent 60%),
    linear-gradient(135deg, #0e6686 0%, #0b5572 45%, #083b50 100%);
  box-shadow: 0 30px 60px -30px rgba(8, 59, 80, 0.6);
}
.search-hero .eyebrow { color: rgba(255, 255, 255, 0.75); font-size: 16px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.search-hero h2 { color: #fff; font-size: clamp(36px, 5.6vw, 62px); }
.search-hero h2 .soft { color: rgba(255, 255, 255, 0.55); }
.search-hero .lede { color: rgba(255, 255, 255, 0.82); }
.search-hero .searchbox { max-width: 680px; margin: 0 auto; }
.search-hero .searchbox svg { color: #0e6686; }
.searchbox.big input, .search-hero .searchbox input { height: 62px; border: none; border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); font-size: 18px; }
.searchbox.big input:focus, .search-hero .searchbox input:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 12px 40px rgba(0, 0, 0, 0.25); }
.search-hero .visa-pick { color: rgba(255, 255, 255, 0.85); margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; }
.search-hero .visa-pick select { background: rgba(255, 255, 255, 0.16); color: #fff; -webkit-text-fill-color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 980px; padding: 6px 30px 6px 14px; }
.search-hero .visa-pick select option { color: #1d1d1f; }
.search-hero #examples { margin-top: 18px; color: rgba(255, 255, 255, 0.75); }
.search-hero .qchip { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; }
.search-hero .qchip:hover { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.5); color: #fff; }

/* Results heading + status */
.res-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 40px 0 6px; }
.res-head h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.res-head.second { margin-top: 56px; }
.res-head.second h3 { font-size: 22px; }
.statusline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: #6e6e73; margin: 4px 0 18px; }
.statusline > span { display: inline-flex; align-items: center; gap: 6px; }
.statusline .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.ok { background: #30b158; } .dot.warn { background: #ff9f0a; } .dot.idle { background: #c7c7cc; }

/* Result cards */
.zcards { display: grid; gap: 14px; }
.zc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 210px; background: #fff; border-radius: 20px; overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; }
.zc:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); transform: translateY(-1px); }
.zc.is-best { box-shadow: 0 0 0 2px #30b158 inset; }
.zc-body { padding: 24px 26px 20px; min-width: 0; }
.zc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zc-top h4 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.zc-badge { font-size: 13px; font-weight: 600; color: #fff; background: #30b158; border-radius: 980px; padding: 3px 10px; }
.zc-badge.warn { background: #ff9f0a; }
.zc-pkg { color: #424245; font-size: 17px; margin-top: 2px; }
.zc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.tag { font-size: 13.5px; color: #1d1d1f; background: #f5f5f7; border-radius: 8px; padding: 4px 9px; }
.tag.warn { color: #8a5300; background: rgba(255, 159, 10, 0.12); }
.zc-break { font-size: 14px; color: #6e6e73; margin-top: 8px; }
.zc-act { margin-top: 12px; font-size: 15px; }
.zc-label { font-size: 13px; font-weight: 600; color: #6e6e73; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px; }
.zc-note { margin: 10px 0 0; font-size: 14px; color: #6e6e73; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zc-note:hover { -webkit-line-clamp: unset; }
.zc-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 12px; }
.zc-actions details.adet { margin: 0; flex-basis: 100%; }
.zc-actions details.adet:not([open]) { flex-basis: auto; }
.zc-link { background: none; color: var(--accent); padding: 0; font-size: 14px; font-weight: 500; border-radius: 0; }
.zc-link:hover { background: none; text-decoration: underline; }
.zc-src { margin-top: 10px; font-size: 13px; color: #86868b; }
.zc-price { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; padding: 24px 26px; background: #fbfbfd; border-left: 1px solid rgba(0, 0, 0, 0.05); text-align: right; }
.zc.is-best .zc-price { background: rgba(48, 177, 88, 0.06); }
.zc-cur { font-size: 14px; color: #6e6e73; font-weight: 500; }
.zc-amt { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: #1d1d1f; }
.zc.is-best .zc-amt { color: #248a3d; }
.zc-sub { font-size: 13px; color: #86868b; margin-bottom: 10px; }
.zc .proof-btn { margin: 0; font-size: 13.5px; padding: 6px 14px; border-radius: 980px; background: #fff; }
.zc-drawer { grid-column: 1 / -1; padding: 18px 26px 22px; background: #fbfbfd; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.zc-drawer .more-pkg { display: flex; justify-content: space-between; padding: 8px 0 4px; font-size: 15px; }

/* Quiet banners */
#pwBanner { background: rgba(14, 102, 134, 0.07); color: #0a4f68; border-radius: 14px; }
.empty-state.small { background: #fff; border-radius: 20px; padding: 36px 24px; margin-top: 28px; }

@media (max-width: 720px) {
  .search-hero { padding: 40px 18px 28px; border-radius: 22px; }
  .zc { grid-template-columns: 1fr; }
  .zc-price { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; border-left: none; border-top: 1px solid rgba(0, 0, 0, 0.05); padding: 16px 22px; flex-wrap: wrap; }
  .zc-price .proof-btn { margin-left: auto; }
  .zc-sub { margin: 0; }
  .zc-body { padding: 20px 22px 16px; }
}
.search-hero .searchbox, .search-hero .searchbox.big { border: none; background: none; box-shadow: none; padding: 0; position: relative; }
.search-hero #examples, .search-hero #examples * { color: inherit; }
.search-hero #examples { color: rgba(255, 255, 255, 0.75); }
.search-hero #examples .qchip { color: #fff; }
.zc-drawer .more-pkg { width: 100%; border-top: 1px solid rgba(0, 0, 0, 0.06); padding-top: 12px; }
.zc-drawer .more-pkg:first-child { border-top: none; padding-top: 0; }

/* Activity log */
.log-day { font-size: 14px; font-weight: 600; color: #6e6e73; padding: 18px 0 6px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); position: sticky; top: 52px; background: #fff; z-index: 1; }
.log-day:first-child { padding-top: 0; }
.log-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) 110px; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-size: 15px; }
.log-time { color: #6e6e73; font-variant-numeric: tabular-nums; font-size: 14px; padding-top: 1px; }
.log-ip { color: #a1a1a6; font-size: 13px; text-align: right; }
.log-target { font-weight: 500; }
.log-detail { color: #6e6e73; font-size: 14px; margin-top: 3px; }
.log-changes { margin: 6px 0 0; padding: 0 0 0 18px; color: #424245; font-size: 14px; }
.log-changes li { margin: 2px 0; }
.log-row.t-login_failed { background: rgba(215, 0, 21, 0.03); }
.tpill.t-prices_changed, .tpill.t-price_file_read, .tpill.t-price_link_changed { background: rgba(14, 102, 134, 0.1); color: #0a4f68; }
.tpill.t-user_added, .tpill.t-user_updated, .tpill.t-user_removed, .tpill.t-password_reset, .tpill.t-password_changed { background: rgba(137, 68, 171, 0.1); color: #7a3a9a; }
.row.center { justify-content: center; margin-top: 12px; }
@media (max-width: 720px) { .log-row { grid-template-columns: 64px minmax(0, 1fr); } .log-ip { display: none; } }
.hist-all { font-size: 14px; color: #6e6e73; margin: -4px 0 10px; }

/* Activity log: one compact toolbar */
.log-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.log-bar select, .log-bar input[type="search"] { width: auto; flex: 0 1 auto; border-radius: 980px; padding: 9px 16px; font-size: 15px; background: #fff; }
.log-bar select { padding-right: 34px; }
.log-bar input[type="search"] { flex: 1 1 200px; min-width: 160px; }
.log-dates { display: inline-flex; align-items: center; gap: 6px; color: #6e6e73; }
.log-dates input { width: auto; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.log-summary { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: #6e6e73; margin: 0 0 14px 4px; }
.log-summary b { color: #1d1d1f; font-weight: 600; }
.log-summary .warn b, .log-summary .warn { color: #d70015; }
.log-empty { text-align: center; padding: 28px 10px 18px; }
.log-empty h3 { margin: 0 0 6px; font-size: 19px; }
.log-empty p { color: #6e6e73; margin: 0 0 14px; }
.log-empty .row { gap: 8px; }
#logXlsxBtn { align-self: center; }
.a-preview .pending { position: relative; }
.panel-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.06); color: #1d1d1f; font-size: 14px; line-height: 30px; text-align: center; }
.panel-close:hover { background: rgba(0, 0, 0, 0.12); }
button.secondary.on { background: rgba(14, 102, 134, 0.12); color: #0a4f68; }
.a-preview .pending { padding-top: 16px; padding-right: 52px; } .a-preview .a-filter { margin-top: 10px; }
.qpkg { font-size: 17px; color: #424245; margin: 2px 0 4px; }
.qwhy { margin-top: 12px; padding: 10px 14px; background: rgba(255, 255, 255, 0.7); border-radius: 10px; font-size: 14.5px; color: #1d1d1f; }

/* Questionnaire: exact activity check and approvals */
.qcheck { margin: 10px 0 6px; padding: 14px 16px; border-radius: 12px; font-size: 15px; background: #f5f5f7; }
.qcheck.valid { background: rgba(48, 177, 88, 0.07); }
.qcheck.invalid { background: rgba(215, 0, 21, 0.05); }
.qcheck-head { font-weight: 600; margin-bottom: 6px; }
.qcheck.valid .qcheck-head { color: #1d6b31; }
.qcheck.invalid .qcheck-head { color: #b0000f; }
.qcheck-zones { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.qcheck .quick { margin-top: 8px; justify-content: flex-start; }
.qwarn { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 159, 10, 0.1); color: #6b4100; font-size: 14.5px; line-height: 1.45; }
.qwarn ul { margin: 6px 0 0; padding-left: 18px; }
.qwarn li { margin: 3px 0; }
.qok { margin-top: 8px; color: #1d6b31; font-size: 14.5px; }

/* =====================================================================
   apple.com system: type scale, 44px global nav, edge-to-edge hero
   tiles, ribbons, pill buttons, form fields and footer.
   Brand colour (#0E6686) and Amana logo unchanged.
   ===================================================================== */
:root {
  font-family: "SF Pro Text", "SF Pro Icons", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --apple-text: #1d1d1f;
  --apple-gray: #6e6e73;
  --apple-line: #d2d2d7;
  --apple-tile: #f5f5f7;
}
html { overflow-x: hidden; }
body { font-size: 17px; line-height: 1.47059; font-weight: 400; letter-spacing: -0.022em; color: var(--apple-text); background: #fff; }
h1, h2, h3, h4, .search-hero h2, .page-head h2, .admin-head h2, .res-head h3, .zc-top h4, .zname, .quiz-head h2, .level-head h3, .auth-brand h2 {
  font-family: "SF Pro Display", "SF Pro Icons", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
}

/* Global nav: 44px, translucent, 12px links */
header.top { height: 44px; padding: 0 max(22px, calc((100vw - 1024px) / 2 + 22px)); background: rgba(250, 250, 252, 0.8); border-bottom: none; box-shadow: none; }
.brand-logo { height: 20px; }
.brand-app { font-size: 15px; font-weight: 400; line-height: 16px; padding-left: 10px; }
.tab, header .link-btn { font-size: 13px; font-weight: 400; letter-spacing: -0.01em; color: rgba(0, 0, 0, 0.8); padding: 0 10px; height: 44px; border-radius: 0; }
.tab.active { font-weight: 400; color: #000; }
.tab:hover, header .link-btn:hover { color: #000; background: none; }

/* Layout: views sit on white; tiles use the Apple light grey */
main { max-width: none; padding: 0 0 80px; }
.view, #loginView { max-width: 1024px; margin: 0 auto; padding: 48px 22px 0; box-sizing: border-box; }
#home { padding-top: 0; max-width: none; padding-left: 0; padding-right: 0; }
#home #results { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.card, .zc, .tile, .quiz, .level-card { background: var(--apple-tile); }
.zc-price { background: transparent; border-left: 1px solid rgba(0, 0, 0, 0.06); }
.zc-drawer, tr.proof-row td { background: #fff; }
.zc:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); transform: none; }

/* Ribbon (temporary-password notice) */
#pwBanner { max-width: none; margin: 0; border-radius: 0; text-align: center; font-size: 15px; padding: 12px 22px; background: var(--apple-tile); color: var(--apple-text); }
#pwBanner .link-btn { font-size: 15px; }

/* Hero tile: edge to edge, Apple type scale, brand colour kept */
.search-hero { border-radius: 0; margin: 0 0 12px; padding: 84px 22px 64px; box-shadow: none; }
.search-hero .eyebrow { font-size: 21px; font-weight: 600; letter-spacing: 0.011em; text-transform: none; color: rgba(255, 255, 255, 0.85); }
.search-hero h2 { font-size: 56px; line-height: 1.07143; letter-spacing: -0.005em; margin: 6px 0 12px; }
.lede { font-size: 28px; line-height: 1.14286; letter-spacing: 0.007em; max-width: 760px; margin: 0 auto 40px; }
.search-hero .searchbox input { height: 56px; border-radius: 12px; font-size: 17px; box-shadow: none; }
.search-hero .searchbox input:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4); }
.search-hero .visa-pick, .search-hero #examples { font-size: 15px; }

/* Headlines inside pages */
.page-head h2, .admin-head h2 { font-size: 48px; line-height: 1.08349; letter-spacing: -0.003em; }
.page-head .hint, .admin-head .hint { font-size: 21px; line-height: 1.381; letter-spacing: 0.011em; color: var(--apple-gray); }
.res-head h3 { font-size: 32px; line-height: 1.125; letter-spacing: 0.004em; }
.card h2 { font-size: 24px; line-height: 1.16667; letter-spacing: 0.009em; }
.quiz-head h2 { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
.qstep h3 { font-size: 24px; line-height: 1.16667; letter-spacing: 0.009em; }
.tile b { font-size: 40px; font-weight: 600; }

/* Buttons: Apple pills (brand colour) */
button { font-size: 17px; line-height: 1.17648; letter-spacing: -0.022em; padding: 11px 21px; border-radius: 980px; font-weight: 400; }
button.small, label.upload, .proof-btn { font-size: 15px; padding: 8px 16px; line-height: 1.28577; border-radius: 980px; }
button.secondary, label.upload { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.secondary:hover, label.upload:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
button.secondary.on { background: var(--accent); color: #fff; }
.icon-btn { background: transparent; border: 1px solid rgba(215, 0, 21, 0.4); }
.link-btn.inline, .zc-link, details.adet > summary { font-size: 15px; }
.zc-link::after, .link-btn.inline::after { content: " ›"; }

/* Form fields: Apple style */
input[type="text"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], input[type="date"], select, textarea {
  border: 1px solid var(--apple-line); border-radius: 12px; font-size: 17px; padding: 14px 16px; background: #fff; letter-spacing: -0.022em;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14, 102, 134, 0.18); }
.field, .field.small { font-size: 13px; color: var(--apple-gray); }
.log-bar select, .log-bar input[type="search"] { font-size: 15px; padding: 9px 16px; }

/* Segmented control */
.subtabs { background: rgba(118, 118, 128, 0.12); border-radius: 9px; padding: 2px; margin-bottom: 40px; }
.subtab { font-size: 14px; padding: 6px 16px; border-radius: 7px; }

/* Sign-in */
.auth { background: #fff; box-shadow: none; border: 1px solid var(--apple-line); border-radius: 18px; }
.auth-brand h2 { font-size: 40px; letter-spacing: 0; }
.auth-brand p { font-size: 21px; }

/* Footer: apple.com style */
.site-foot { background: var(--apple-tile); border-top: none; margin-top: 0; }
.foot-inner { max-width: 980px; padding: 17px 22px 21px; font-size: 13px; line-height: 1.33337; letter-spacing: -0.01em; color: var(--apple-gray); }
.foot-inner p { border-bottom: 1px solid var(--apple-line); padding: 0 0 10px; margin: 0 0 10px; }
.foot-inner .foot-legal { border-bottom: none; color: #86868b; }
.foot-logo { height: 16px; margin: 4px 0 12px; }

@media (max-width: 734px) {
  header.top { height: auto; padding: 8px 16px; }
  .tab, header .link-btn { height: 36px; }
  .search-hero { padding: 56px 18px 44px; }
  .search-hero h2 { font-size: 40px; line-height: 1.1; }
  .lede { font-size: 21px; line-height: 1.19048; }
  .page-head h2, .admin-head h2 { font-size: 32px; }
  .page-head .hint, .admin-head .hint { font-size: 17px; }
  .quiz-head h2 { font-size: 28px; }
  .view, #loginView { padding: 32px 16px 0; }
}
#loginView.auth { max-width: 440px; margin: 64px auto 80px; padding: 0; }
@media (max-width: 734px) { #loginView.auth { margin: 24px 16px 48px; } }

/* Compact hero once a search is typed, so results sit near the top */
.search-hero .eyebrow, .search-hero h2, .search-hero .lede { transition: opacity 0.2s, max-height 0.25s, margin 0.25s; max-height: 260px; overflow: hidden; }
#home.searching .search-hero { padding-top: 36px; padding-bottom: 28px; }
#home.searching .search-hero .eyebrow, #home.searching .search-hero h2, #home.searching .search-hero .lede { opacity: 0; max-height: 0; margin: 0; }
/* Native search clear / datalist arrow look out of place */
#q::-webkit-calendar-picker-indicator, #qExact::-webkit-calendar-picker-indicator { display: none !important; }
#q::-webkit-search-cancel-button { -webkit-appearance: none; height: 16px; width: 16px; cursor: pointer; opacity: 0.5;
  background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2386868b'/%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
#q::-webkit-search-cancel-button:hover { opacity: 0.8; }
/* Overview before searching */
.overview { max-width: 980px; margin: 48px auto 72px; padding: 0 22px; }
.overview .tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.overview .tile { border-radius: 18px; padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.overview .tile b { font-size: 32px; color: var(--accent); }
.overview p { font-size: 16px; margin-top: 20px; }
/* Footer aligned with the header width */
.foot-inner { margin: 0 auto; }
/* Visible keyboard focus for every control */
button:focus-visible, a:focus-visible, .qopt:focus-visible, .qchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Phones: wrap the nav so every item (incl. Log out) is visible */
@media (max-width: 734px) {
  header.top nav { flex-wrap: wrap; justify-content: center; overflow: visible; row-gap: 2px; }
  header.top nav .tab, header.top nav .link-btn { padding: 0 10px; }
}
.qstep h3 .qmulti { font-size: 15px; font-weight: 400; margin-left: 8px; letter-spacing: 0; }
.qall { margin-top: 28px; }
.qall > summary { cursor: pointer; list-style: none; }
.qall > summary::-webkit-details-marker { display: none; }
.qall > summary h3 { display: inline; margin-right: 10px; }
.qall > summary h3::before { content: "▾ "; color: var(--accent); }
.qall:not([open]) > summary h3::before { content: "▸ "; }
.qalt-item.dim { opacity: 0.85; }
.qwhynot { font-size: 14px; color: #9a5b00; background: #fff4e0; border-radius: 8px; padding: 4px 10px; display: inline-block; margin-bottom: 8px; }
.qwhynot { width: fit-content; }

/* Client companies: list of cards, Add company at the top */
.co-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.co-head-row #coAddBtn { flex: none; }
.co-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.co-form .field input { width: 100%; margin-top: 4px; }
#coManagers { margin: 8px 0 16px; }
.co-tools { margin: 8px 0 4px; gap: 12px; }
.co-tools input { flex: 1; }
.co-list { display: grid; gap: 16px; margin-bottom: 40px; }
.co-card { background: var(--apple-tile); border-radius: 18px; padding: 22px 24px; transition: box-shadow 0.4s; }
.co-card.flash { box-shadow: 0 0 0 3px var(--accent); }
.co-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.co-top h3 { font-size: 22px; margin: 0 0 2px; }
.co-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.co-box { background: #fff; border-radius: 14px; padding: 16px 18px; }
.co-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--apple-gray); margin: 0 0 10px; }
.co-box a { color: var(--accent); }
.co-users { list-style: none; margin: 0 0 10px; padding: 0; }
.co-users li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--apple-line); }
.co-users li:last-child { border-bottom: none; }
.co-users .unassign { color: #b42318; font-size: 14px; }
.co-users .unassign::after { content: none; }
.co-assign { gap: 8px; margin: 6px 0 8px; }
.co-assign select { font-size: 15px; padding: 8px 12px; flex: 1; }
@media (max-width: 734px) { .co-grid { grid-template-columns: 1fr; } }

/* Date fields: calendar icon always visible, whole field opens the calendar */
input[type="date"] { min-width: 170px; cursor: pointer; padding-right: 12px; }
input[type="date"]::-webkit-calendar-picker-indicator { display: block; opacity: 0.75; cursor: pointer; margin-left: 6px; }
.period-chips { margin-bottom: 14px; }
.period-chips .qchip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
#coManagerPick { width: 100%; margin-top: 4px; }
.mgr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mgr-tags:empty { display: none; }
.mgr-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; border-radius: 980px; padding: 4px 4px 4px 12px; font-size: 15px; }
.mgr-tag button { background: transparent; color: #fff; border: none; padding: 0 8px; font-size: 17px; line-height: 1; cursor: pointer; }
.mgr-tag button:hover { background: rgba(255,255,255,0.2); }

/* Date-range calendar */
.date-field { cursor: pointer; min-width: 150px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E6686' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; padding-right: 42px !important; }
.range-pop { position: absolute; z-index: 1000; background: #fff; border: 1px solid var(--apple-line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.16); padding: 14px; color: #1d1d1f; }
.rp-head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.rp-head b { flex: 1; text-align: center; font-size: 16px; }
.rp-head button { background: transparent; color: var(--accent); border: none; padding: 4px 10px; font-size: 18px; border-radius: 8px; }
.rp-head button:hover { background: rgba(14,102,134,0.08); }
.rp-week, .rp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.rp-week span { font-size: 12px; color: var(--apple-gray); padding: 4px 0; }
.rp-grid button { background: transparent; color: #1d1d1f; border: none; padding: 0; height: 36px; font-size: 15px; border-radius: 8px; }
.rp-grid button:hover:not(:disabled) { background: rgba(14,102,134,0.1); }
.rp-grid button.in { background: rgba(14,102,134,0.12); border-radius: 0; }
.rp-grid button.start, .rp-grid button.end { background: var(--accent); color: #fff; }
.rp-grid button.today { font-weight: 700; text-decoration: underline; }
.rp-grid button:disabled { color: #c7c7cc; cursor: default; }
.rp-sel { display: flex; gap: 8px; margin-top: 10px; }
.rp-sel span { flex: 1; font-size: 13px; color: var(--apple-gray); border: 1px solid var(--apple-line); border-radius: 10px; padding: 6px 10px; }
.rp-sel span b { display: block; font-size: 15px; color: #1d1d1f; }
.rp-sel span.now { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(14,102,134,0.15); }
.rp-hint { font-size: 13px; color: var(--apple-gray); margin: 8px 0; }
.rp-foot { display: flex; justify-content: flex-end; gap: 8px; }
input[type="text"].date-field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E6686' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }

/* ===== apple.com fidelity layer (styling only; same content, Amana blue kept) ===== */
body { color: #1d1d1f; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
/* Global nav: frosted bar, 12px links, like apple.com */
header.top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); background: rgba(251, 251, 253, 0.8); }
.tab, header .link-btn { color: rgba(0, 0, 0, 0.8); transition: color 0.2s; }
.tab:hover, header .link-btn:hover { color: #000; background: transparent; }
.tab.active { color: #000; font-weight: 400; box-shadow: none; }
/* Section headlines centred like apple.com product sections; actions sit below */
.page-head, .admin-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin: 8px auto 40px; max-width: 980px; }
.page-head > div, .admin-head > div { display: flex; flex-direction: column; align-items: center; }
.page-head h2, .admin-head h2 { font-size: 56px; line-height: 1.07143; font-weight: 600; letter-spacing: -0.005em; margin: 0 0 6px; }
.page-head .hint, .admin-head .hint { font-size: 24px; line-height: 1.16667; font-weight: 400; letter-spacing: 0.009em; color: #1d1d1f; max-width: 760px; margin: 0; }
.co-head-row { align-items: center; justify-content: center; }
.admin-head form.row { justify-content: center; max-width: 560px; width: 100%; }
.admin-head form.row input { flex: 1; }
/* Cards and tiles: apple grey tiles, no borders or shadows */
.card, .co-card, .tile, .quiz, .level-card, .filters-card { background: #f5f5f7; border: none; box-shadow: none; border-radius: 18px; }
.co-box { border-radius: 12px; }
h3 { font-weight: 600; letter-spacing: 0.009em; }
.card h2, .card > h3 { font-weight: 600; }
/* Tables: quiet, apple spec-sheet style */
table.grid { font-size: 15px; }
table.grid th { font-size: 13px; font-weight: 600; color: #6e6e73; text-transform: none; letter-spacing: -0.01em; background: transparent; border-bottom: 1px solid #d2d2d7; }
table.grid td { border-bottom: 1px solid #e8e8ed; }
table.grid tbody tr:hover { background: rgba(0, 0, 0, 0.02); }
/* Text links: apple "Learn more ›" style in Amana blue */
a, .link-btn { color: var(--accent); }
a:hover, .link-btn:hover { text-decoration: underline; }
.muted, .hint { color: #6e6e73; }
/* Pills: apple sizes */
.qchip { border-color: #d2d2d7; color: #1d1d1f; }
.qchip:hover { border-color: #86868b; }
.qchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Segmented control */
.subtabs { background: rgba(118, 118, 128, 0.12); }
.subtab.active { box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); }
@media (max-width: 734px) {
  .page-head h2, .admin-head h2 { font-size: 32px; line-height: 1.125; }
  .page-head .hint, .admin-head .hint { font-size: 19px; line-height: 1.21; }
}
.admin-head form.row { flex: none; align-items: center; }
.page-head > button, .admin-head > button { align-self: center; }

/* Phones: nothing wider than the screen */
.grid-2 > *, .card, .co-card, .zc { min-width: 0; }
.muted, .zone-meta, .small-text { overflow-wrap: anywhere; }
@media (max-width: 734px) {
  .grid-2 { grid-template-columns: 1fr !important; }
  .subtabs { display: flex; flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .subtab { padding: 6px 12px; }
  .card { padding-left: 16px; padding-right: 16px; }
  .table-scroll { max-width: 100%; overflow-x: auto; }
}

/* ===== Questionnaire (main page) ===== */
.qform { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; margin: 8px 0 18px; }
.qform .field input { width: 100%; margin-top: 4px; }
#quiz h4 { font-size: 17px; font-weight: 600; margin: 20px 0 10px; letter-spacing: -0.01em; }
#quiz .qsec { margin-top: 34px; }
#quiz textarea, #quiz #qOtherCat, #quiz #qVisaExpiry, #quiz #qCorporate { width: 100%; margin-top: 6px; }
.qgrid.yn { grid-template-columns: repeat(2, minmax(0, 160px)); }
.qgrid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.qgrid.eleven { grid-template-columns: repeat(11, minmax(0, 1fr)); }
.qgrid.yn .qopt, .qgrid.five .qopt, .qgrid.eleven .qopt { text-align: center; padding: 14px 8px; }
.qacts { display: grid; gap: 10px; margin-top: 8px; }
.qact-line { display: flex; gap: 10px; align-items: flex-start; }
.qact-n { width: 22px; padding-top: 15px; color: var(--apple-gray); font-weight: 600; }
.qact-field { position: relative; flex: 1; }
.qact-field input { width: 100%; }
.qact.ok { border-color: #34c759; background: #f3fbf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334c759' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.qsugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid var(--apple-line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); padding: 6px; max-height: 320px; overflow: auto; }
.qsugg-box { display: grid; gap: 4px; margin-top: 8px; }
.qsugg-item { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: transparent; color: #1d1d1f; border: none; border-radius: 8px; padding: 8px 10px; font-size: 16px; }
.qsugg-box .qsugg-item { background: #fff; border: 1px solid var(--apple-line); }
.qsugg-item:hover { background: rgba(14,102,134,0.08); }
.qsugg-item .muted { white-space: nowrap; }
.quiz-nav { align-items: center; gap: 12px; }
#quizMsg:empty { display: none; }
/* Comparison table (the agreed format) */
.qresult-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.qresult-head .row { gap: 8px; flex-wrap: wrap; }
table.cmp { font-size: 16px; min-width: 520px; }
table.cmp th:first-child { text-align: left; white-space: nowrap; color: #1d1d1f; font-weight: 500; }
table.cmp thead th { vertical-align: bottom; }
.cmp-zone { font-size: 16px; font-weight: 700; color: #1d1d1f; }
.cmp-pkg { font-size: 13px; font-weight: 400; color: var(--apple-gray); white-space: normal; max-width: 180px; margin-left: auto; }
table.cmp td.num, table.cmp th.num { text-align: right; }
table.cmp .best { background: rgba(14,102,134,0.06); }
table.cmp tr.cmp-total th, table.cmp tr.cmp-total td { border-top: 2px solid #1d1d1f; font-size: 17px; }
table.cmp tr.cmp-sub th, table.cmp tr.cmp-sub td { font-size: 14px; color: var(--apple-gray); }
.cmp-detail { background: #fff; border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.cmp-detail summary { cursor: pointer; }
@media (max-width: 734px) {
  .qgrid.eleven { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .qgrid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
  header.top, .subtabs, .quiz-nav, .qresult-head .row, .site-foot, #pwBanner, .preview-note { display: none !important; }
  .card.quiz { box-shadow: none; background: #fff; }
  .cmp-detail { break-inside: avoid; }
}
dl.qsummary { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; background: #fff; border-radius: 14px; padding: 18px 20px; margin: 8px 0 22px; font-size: 16px; }
dl.qsummary dt { color: var(--apple-gray); margin: 0; }
dl.qsummary dd { margin: 0; }
@media (max-width: 734px) { dl.qsummary { grid-template-columns: 1fr; } dl.qsummary dt { margin-top: 6px; } }
ul.qreq { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
ul.qreq li { margin: 4px 0; }
#qApprovals .qcheck, #qOfficeHint .qcheck { margin-bottom: 16px; }
#qExactKw { width: 100%; margin-top: 8px; }
.qexact-list { display: grid; gap: 8px; margin-top: 10px; max-height: 460px; overflow: auto; }
.qexact-row { display: block; width: 100%; text-align: left; background: #fff; color: #1d1d1f; border: 1px solid var(--apple-line); border-radius: 12px; padding: 10px 14px; }
.qexact-row:hover { border-color: var(--accent); background: #fff; }
.qexact-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 16px; }
.qexact-zones { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 13px; color: #424245; }
.tag.nat-manufacture { background: #fdf0e1; color: #9a5b00; }
.tag.nat-service { background: #e8f1fb; color: #0b5cad; }
.tag.nat-commercial { background: #e9f7ee; color: #1d7a3a; }
.qexact-card { margin-top: 24px; background: #fff; }
.qgrid.eight { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.qgrid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qgrid.eight .qopt { text-align: center; padding: 14px 6px; }
.qconsent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 16px; }
.qconsent input { width: 18px; height: 18px; margin-top: 2px; }
@media (max-width: 734px) { .qgrid.eight { grid-template-columns: repeat(4, minmax(0, 1fr)); } .qgrid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qpicked { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 14px; }
.qpick { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--accent); border-radius: 980px; padding: 4px 4px 4px 12px; font-size: 15px; }
.qpick button { background: transparent; color: var(--accent); border: none; padding: 0 8px; font-size: 17px; }
.qexact-add { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 15px; }
.qfees { font-size: 14px; background: #fff7e6; border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
#qSector { margin: 6px 0 10px; }
#qSector .qchip .muted { font-size: 12px; }
.qlock { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: rgba(14,102,134,0.06); border: 1px solid var(--accent); border-radius: 14px; padding: 14px 18px; margin-bottom: 14px; }
.qlock > div:first-child { flex: 1; }
.qlock-price { font-size: 26px; font-weight: 700; text-align: right; }
.qclar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.qclar input { width: 100%; margin-top: 4px; }
.qclar-file { margin: 6px 0; font-size: 15px; }
.qmatchonly { display: flex; gap: 8px; align-items: center; font-size: 15px; margin: 6px 0; }
.qexact-row .qexact-add { margin-left: auto; color: #fff; }
.qreq-line { color: #6b4a00; margin-top: 4px; }
table.qpicked-t { font-size: 15px; margin-bottom: 14px; }
.otp-steps { padding-left: 20px; font-size: 16px; }
.otp-steps li { margin: 10px 0; }
.otp-qr svg { display: block; margin: 8px 0; width: 180px; height: 180px; }
#loginCaptcha:not(:empty) { margin: 6px 0 12px; }
.cmp-wrap { background: #fff; border-radius: 16px; padding: 16px 18px; margin: 10px 0 22px; }
table.cmp .cmp-in { width: 110px; text-align: right; padding: 6px 8px; font-size: 16px; border: 1px solid transparent; background: transparent; border-radius: 8px; }
table.cmp .cmp-in:hover, table.cmp .cmp-in:focus { border-color: var(--apple-line); background: #fff; }
table.cmp td.cmp-missing { background: #fdecea; }
table.cmp td.cmp-missing .cmp-in::placeholder { color: #b42318; }
table.cmp td.cmp-edited { background: #fff6d6; }
.cmp-legend { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 13px; }
.cmp-legend.miss { background: #fdecea; color: #b42318; }
.cmp-legend.ed { background: #fff6d6; color: #8a6100; }
.cmp-choose { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
table.cmp td.num { white-space: nowrap; }

/* Admin → Activity sorting */
.cls-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 8px 0 4px; }
.cls-stat { background: var(--card, #fff); border: 1px solid var(--line, #e5e5ea); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.cls-stat b { font-size: 1.5rem; }
.cls-stat span { color: var(--muted, #6e6e73); font-size: .85rem; }
.cls-last { grid-column: 1 / -1; margin: 0; }
.cls-t select { min-width: 0; max-width: 190px; padding: 4px 6px; font-size: .85rem; }
.tag.ai-tag { background: #eef4ff; color: #0b5cd5; border-color: #cfe0ff; }

/* Activity waterfall: kind -> sector -> file category -> activity */
.qhow { margin: 6px 0 12px; border: 1px solid var(--apple-line); border-radius: 12px; padding: 10px 14px; background: #fbfbfd; }
.qhow summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.qhow ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: #424245; }
.wf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; margin: 6px 0 10px; }
.wf-sep { color: #86868b; }
.wf-tools { display: grid; gap: 6px; }
.wf-step { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; margin: 16px 0 10px; }
.wf-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; }
.wf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; max-height: 520px; overflow: auto; }
.wf-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: #fff; color: #1d1d1f; border: 1px solid var(--apple-line); border-radius: 14px; padding: 14px 16px; font-weight: 400; }
.wf-tile:hover { border-color: var(--accent); background: #f5f9ff; color: #1d1d1f; }
.wf-t { font-weight: 600; font-size: 16px; }
.wf-s { font-size: 14px; color: #6e6e73; }
.wf-n { font-size: 13px; color: var(--accent); margin-top: auto; }
#qWf .qexact-row { margin-bottom: 8px; }
#qWf .qexact-row summary { cursor: pointer; list-style: none; }
#qWf .qexact-row summary::-webkit-details-marker { display: none; }
#qWf .qexact-row summary::before { content: '›'; color: #86868b; transition: transform .15s; display: inline-block; }
#qWf .qexact-row[open] summary::before { transform: rotate(90deg); }
.tag.wf-appr { background: #fff4e5; color: #9a5b00; border-color: #ffe0b2; }
.wf-detail { margin: 10px 0 2px; display: grid; gap: 8px; font-size: 14px; }
.wf-detail > div { display: grid; grid-template-columns: 210px 1fr; gap: 10px; }
.wf-detail dt { color: #6e6e73; }
.wf-detail dd { margin: 0; color: #1d1d1f; }
@media (max-width: 640px) { .wf-detail > div { grid-template-columns: 1fr; gap: 2px; } .wf-tiles { grid-template-columns: 1fr 1fr; } }

/* Questionnaire options as dropdowns */
.qselect { width: 100%; max-width: 560px; display: block; margin: 6px 0 14px; padding: 12px 14px; font-size: 17px; border: 1px solid var(--apple-line); border-radius: 12px; background: #fff; color: #1d1d1f; }
.qselect[multiple] { min-height: 150px; padding: 6px; }
.wf-tile.on { border-color: var(--accent); background: #eef5ff; box-shadow: 0 0 0 1px var(--accent) inset; }
.qexact-row.wf-open .wf-detail { border-top: 1px solid var(--apple-line); padding-top: 10px; }

/* Price comparison: one package per card, scrolling down */
.cmp-cards { display: grid; gap: 14px; margin: 10px 0; }
.cmp-card { background: #fff; border: 1px solid var(--apple-line); border-radius: 16px; padding: 16px 18px; }
.cmp-card.best { border-color: #1a7f37; box-shadow: 0 0 0 1px #1a7f37 inset; }
.cmp-card.chosen { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.cmp-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cmp-rank { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; }
.cmp-card-total { margin-left: auto; text-align: right; font-size: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cmp-low { background: #e6f4ea; color: #1a7f37; border-color: #b7e1c1; font-size: 12px; }
.cmp-mini { width: 100%; margin: 4px 0 10px; }
.cmp-mini th { text-align: left; font-weight: 400; color: #6e6e73; width: 50%; }
.hist-det { min-width: 240px; line-height: 1.45; }
.hist-zone { white-space: nowrap; }
.hist-layout { grid-template-columns: 1fr !important; }
.hist-zone { white-space: normal; }
.tag.rel-tag { background: #f3eefe; color: #6b3fb5; border-color: #e0d4fa; }

/* Final quote */
#qFinal { margin-top: 18px; }
.final-quote { background: #fff; border: 2px solid var(--accent); border-radius: 16px; padding: 18px 20px; }
.fq-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fq-total { margin-left: auto; font-size: 24px; font-weight: 700; }
.final-quote h4 { margin: 14px 0 6px; }
.fq-actions { margin-top: 12px; gap: 8px; flex-wrap: wrap; }
@media print {
  body.print-quote * { visibility: hidden; }
  body.print-quote #finalQuote, body.print-quote #finalQuote * { visibility: visible; }
  body.print-quote #finalQuote { position: absolute; left: 0; top: 0; width: 100%; border: none; }
}

/* =====================================================================
   Premium layer — design only (typography, spacing, surfaces, motion).
   ===================================================================== */
:root {
  --ink: #0b1b2b;
  --ink-2: #33475b;
  --muted: #6b7a8c;
  --line: #e6ebf1;
  --line-2: #d6dee7;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --accent: #0e6686;
  --accent-dark: #0a4f68;
  --accent-2: #13a3c4;
  --accent-soft: rgba(14, 102, 134, 0.07);
  --ring: rgba(19, 163, 196, 0.22);
  --radius: 18px;
  --shadow-1: 0 1px 2px rgba(11, 27, 43, 0.04), 0 1px 1px rgba(11, 27, 43, 0.02);
  --shadow-2: 0 1px 2px rgba(11, 27, 43, 0.04), 0 8px 24px -6px rgba(11, 27, 43, 0.08);
  --shadow-3: 0 2px 4px rgba(11, 27, 43, 0.04), 0 24px 48px -12px rgba(11, 27, 43, 0.16);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
html body {
  font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
  background:
    radial-gradient(1200px 520px at 85% -120px, rgba(19, 163, 196, 0.10), transparent 60%),
    radial-gradient(900px 480px at -10% -80px, rgba(14, 102, 134, 0.08), transparent 60%),
    var(--canvas);
  background-attachment: fixed;
}
html body h1, html body h2, html body h3, html body h4 { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; }
html body h2 { font-weight: 700; }
html body h3 { font-weight: 700; font-size: 18px; }
html body h4 { font-weight: 600; font-size: 16px; }
html body .muted, html body .hint { color: var(--muted); }
html body .small-text { font-size: 14px; }

/* Header: frosted glass bar */
html body header.top {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(11, 27, 43, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 24px -18px rgba(11, 27, 43, 0.25);
  padding: 14px max(24px, calc((100vw - 1200px) / 2));
}
html body .brand-logo { height: 24px; }
html body .brand-app { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); border-left-color: var(--line-2); }
html body nav .tab, html body header .link-btn {
  font-family: var(--font); font-weight: 500; font-size: 15px; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; transition: background .18s ease, color .18s ease;
}
html body nav .tab:hover, html body header .link-btn:hover { background: rgba(11, 27, 43, 0.05); color: var(--ink); }
html body nav .tab.active { background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-1); }

/* Page rhythm */
html body main { max-width: 1200px; margin: 0 auto; padding: 8px 24px 64px; }
html body .page-head { padding: 44px 0 20px; }
html body .page-head h2, html body #histTitle { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
html body .page-head .hint { font-size: 17px; margin-top: 8px; }

/* Cards */
html body .card {
  background: var(--surface); border: 1px solid rgba(11, 27, 43, 0.06); border-radius: 22px;
  box-shadow: var(--shadow-2); padding: 32px;
}
html body .card > h2:first-child { font-size: 22px; margin-top: 0; }

/* Buttons */
html body button {
  font-family: var(--font); font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em;
  border-radius: 12px; padding: 11px 20px; min-height: 42px;
  background: linear-gradient(180deg, #11799e 0%, var(--accent) 100%); color: #fff; border: 1px solid rgba(10, 79, 104, 0.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 1px 2px rgba(11, 27, 43, 0.12), 0 6px 16px -8px rgba(14, 102, 134, 0.55);
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
html body button:hover { background: linear-gradient(180deg, #0f6f91 0%, var(--accent-dark) 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 2px 4px rgba(11, 27, 43, 0.12), 0 10px 22px -10px rgba(14, 102, 134, 0.7); }
html body button:active { transform: translateY(1px); }
html body button:disabled { background: #b9c7d3; border-color: transparent; box-shadow: none; cursor: not-allowed; }
html body button.secondary {
  background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-1);
}
html body button.secondary:hover { background: #f7fafc; border-color: #c4d0dc; }
html body button.small { min-height: 34px; padding: 7px 14px; font-size: 14.5px; border-radius: 10px; }
html body button.big { min-height: 50px; font-size: 17px; border-radius: 14px; }
html body .link-btn, html body .link-btn.inline { background: none; border: none; box-shadow: none; min-height: 0; padding: 0; color: var(--accent); font-weight: 600; }
html body .link-btn:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }

/* Fields */
html body input[type="text"], html body input[type="password"], html body input[type="email"], html body input[type="search"],
html body input[type="number"], html body input[type="tel"], html body select, html body textarea {
  font-family: var(--font); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 46px;
  box-shadow: 0 1px 2px rgba(11, 27, 43, 0.04); transition: border-color .15s ease, box-shadow .15s ease;
}
html body input::placeholder, html body textarea::placeholder { color: #9aa8b6; }
html body input:hover, html body select:hover, html body textarea:hover { border-color: #c4d0dc; }
html body input:focus, html body select:focus, html body textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--ring); }
html body select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2333475b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; }
html body select[multiple] { background-image: none; padding-right: 14px; }
html body label.field, html body .field { font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* Questionnaire */
html body .card.quiz { padding: 40px 44px; }
html body .quiz-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
html body #quizStep { font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
html body .qstep h3 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
html body .qstep h4 { font-size: 15px; font-weight: 600; color: var(--ink-2); }
html body .qselect { max-width: 620px; min-height: 50px; font-size: 16.5px; border-radius: 14px; margin: 4px 0 6px; }
html body .quiz-nav { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }

/* Summary & result */
html body .qsum { gap: 20px; }
html body .qsum > div { background: linear-gradient(180deg, #fbfdff, #f5f8fb); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
html body .qsum dt { color: var(--muted); font-size: 13.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
html body .qsum dd { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
html body .cmp-wrap h3 { font-size: 22px; font-weight: 800; margin: 34px 0 6px; }

/* Price cards */
html body .cmp-cards { gap: 16px; }
html body .cmp-card {
  border: 1px solid rgba(11, 27, 43, 0.07); border-radius: 20px; padding: 22px 24px;
  box-shadow: var(--shadow-2); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
html body .cmp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
html body .cmp-card.best { border-color: rgba(26, 127, 55, 0.45); box-shadow: 0 0 0 3px rgba(26, 127, 55, 0.08), var(--shadow-2); background: linear-gradient(180deg, #fbfffc, #fff 40%); }
html body .cmp-card.chosen { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--ring), var(--shadow-3); }
html body .cmp-rank { background: linear-gradient(135deg, var(--accent-2), var(--accent)); width: 32px; height: 32px; font-family: var(--display); font-size: 15px; box-shadow: 0 6px 14px -6px rgba(14, 102, 134, 0.7); }
html body .cmp-zone { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); }
html body .cmp-pkg { color: var(--muted); font-size: 14.5px; }
html body .cmp-card-total b { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
html body .cmp-low { font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: 11.5px; padding: 3px 9px; }
html body .cmp-mini { border-top: 1px solid var(--line); margin-top: 12px; }
html body .cmp-mini th, html body .cmp-mini td { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
html body .cmp-mini th { color: var(--muted); font-weight: 500; }
html body .cmp-mini td { font-variant-numeric: tabular-nums; font-weight: 500; }
html body .cmp-mini .cmp-total th, html body .cmp-mini .cmp-total td { border-bottom: none; color: var(--ink); font-weight: 700; padding-top: 14px; }

/* Chosen package bar */
html body .qlock { background: linear-gradient(135deg, #0b3a4f 0%, #0e6686 60%, #13a3c4 130%); color: #fff; border: none; border-radius: 20px; padding: 22px 26px; box-shadow: var(--shadow-3); }
html body .qlock .muted, html body .qlock b { color: #fff; }
html body .qlock .muted { opacity: .75; }
html body .qlock-price { font-family: var(--display); font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
html body .qlock button.secondary { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }
html body .qlock button.secondary:hover { background: rgba(255, 255, 255, 0.24); }

/* Activity steps */
html body .wf-step { font-family: var(--display); font-size: 19px; font-weight: 700; margin: 30px 0 14px; }
html body .wf-num { background: linear-gradient(135deg, var(--accent-2), var(--accent)); width: 30px; height: 30px; min-width: 30px; box-shadow: 0 6px 14px -6px rgba(14, 102, 134, 0.7); }
html body .wf-tile { border: 1px solid var(--line); border-radius: 18px; padding: 20px; gap: 6px; box-shadow: var(--shadow-1); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
html body .wf-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: #c4d0dc; background: #fff; }
html body .wf-tile.on { border-color: var(--accent-2); background: linear-gradient(180deg, #f2fbfe, #fff); box-shadow: 0 0 0 3px var(--ring), var(--shadow-2); }
html body .wf-t { font-family: var(--display); font-size: 17px; font-weight: 700; }
html body .wf-n { font-weight: 600; }
html body #qExactKw { min-height: 54px; font-size: 17px; border-radius: 16px; padding-left: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none'%3E%3Ccircle cx='8' cy='8' r='6' stroke='%236b7a8c' stroke-width='1.8'/%3E%3Cpath d='m12.5 12.5 4 4' stroke='%236b7a8c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px center; }
html body .qexact-row { border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow-1); transition: box-shadow .2s ease, border-color .2s ease; }
html body .qexact-row:hover { border-color: #c9d6e2; box-shadow: var(--shadow-2); }
html body .qexact-top b { font-family: var(--display); font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; }
html body .wf-detail { gap: 10px; }
html body .wf-detail dt { font-size: 14px; font-weight: 500; }
html body .wf-detail dd { font-size: 15px; }

/* Tags */
html body .tag { border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; letter-spacing: .01em; border: 1px solid transparent; }
html body .acode { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: #f1f4f8; color: var(--ink-2); border: 1px solid var(--line); border-radius: 7px; padding: 2px 7px; }

/* Final quote */
html body .final-quote { border: none; border-radius: 22px; padding: 28px 30px; box-shadow: 0 0 0 1px rgba(14, 102, 134, 0.18), var(--shadow-3); background: linear-gradient(180deg, #f6fbfd, #fff 90px); }
html body .fq-total { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-dark); }

/* Tables */
html body table.grid { border-collapse: separate; border-spacing: 0; width: 100%; }
html body table.grid thead th { background: #f7f9fc; color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; border-bottom: 1px solid var(--line); }
html body table.grid thead th:first-child { border-top-left-radius: 12px; }
html body table.grid thead th:last-child { border-top-right-radius: 12px; }
html body table.grid tbody td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
html body table.grid tbody tr:hover td { background: #fafcfe; }

/* Admin sub-tabs: segmented control */
html body .subtabs { display: inline-flex; gap: 4px; padding: 5px; background: rgba(11, 27, 43, 0.05); border-radius: 14px; margin: 28px 0 8px; flex-wrap: wrap; }
html body .subtab { background: transparent; color: var(--ink-2); border: none; box-shadow: none; min-height: 36px; padding: 8px 16px; border-radius: 10px; font-weight: 500; }
html body .subtab:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
html body .subtab.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1), 0 2px 8px -2px rgba(11, 27, 43, 0.12); }

/* Chips, banners, messages */
html body .qchip { border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 500; padding: 7px 14px; box-shadow: var(--shadow-1); }
html body .qchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
html body .banner { background: linear-gradient(90deg, #fff7e6, #fffaf0); border-bottom: 1px solid #f5e1b8; color: #6b4e16; font-weight: 500; }
html body .qwarn { border-radius: 14px; border: 1px solid #f5d9a8; background: #fffaf0; }

/* Sign-in */
html body .auth { border-radius: 28px; box-shadow: 0 0 0 1px rgba(11, 27, 43, 0.05), 0 40px 80px -24px rgba(11, 27, 43, 0.28); margin-top: 72px; }
html body .auth-brand h2 { font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--ink) 30%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html body .auth-brand p { font-size: 17px; }
html body .auth-form button[type="submit"] { width: 100%; min-height: 52px; font-size: 17px; border-radius: 14px; }

/* Footer */
html body .site-foot { background: transparent; border-top: 1px solid var(--line); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  html body .view:not([hidden]) { animation: pmFade .35s ease both; }
  @keyframes pmFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 640px) {
  html body .card, html body .card.quiz { padding: 22px 18px; border-radius: 18px; }
  html body main { padding: 4px 14px 48px; }
  html body header.top { padding: 12px 16px; }
}
html body header.top { height: auto; min-height: 64px; }
html body nav .tab, html body header .link-btn { height: auto; line-height: 1.2; }
html body select:not([multiple]) {
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2333475b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 16px center !important;
}
.a-rows { margin: 10px 0; }
.a-rows > summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 6px 0; }
.a-rows[open] > summary { margin-bottom: 8px; }

/* History: readable rows */
html body #histRows td { padding: 16px 14px; font-size: 15px; line-height: 1.5; }
.hq-type { font-weight: 600; color: var(--ink, #0b1b2b); }
.hq-acts { font-size: 14px; color: var(--ink-2, #33475b); margin-top: 2px; }
.hist-det { min-width: 280px; }
.hd-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #1a7f37; background: #e6f4ea; border-radius: 999px; padding: 2px 9px; margin-bottom: 4px; }
.hd-main { font-weight: 600; }
.hd-opt { display: flex; gap: 8px; align-items: baseline; margin-top: 3px; }
.hd-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 50%; background: #eef2f7; color: #33475b; font-size: 12px; font-weight: 700; }
.zone-overview { margin-bottom: 20px; } .zone-overview h3 { margin-top: 0; }

/* Recommended package */
.cmp-rec { margin: 26px 0 8px; padding: 20px 24px; border-radius: 20px; background: linear-gradient(135deg, #f2fbfe, #ffffff 70%); border: 1px solid rgba(19, 163, 196, 0.35); box-shadow: 0 0 0 4px rgba(19, 163, 196, 0.08), 0 12px 30px -16px rgba(11, 27, 43, 0.3); }
.cmp-rec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 17px; }
.cmp-rec-price { margin-left: auto; font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 24px; font-weight: 800; color: #0a4f68; }
.cmp-rec-why { margin: 10px 0 12px; padding-left: 20px; color: #33475b; font-size: 15px; display: grid; gap: 3px; }
.tag.cmp-rec-tag { background: linear-gradient(135deg, #13a3c4, #0e6686); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; padding: 3px 10px; border: none; }
.cmp-card-total .cmp-rec-tag { margin-bottom: 2px; }

/* All packages of the same free zone on a price card */
.zone-pkgs { margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--soft, #f4f7fa); font-size: .86rem; }
.zone-pkgs-h { font-weight: 700; margin-bottom: 6px; }
.zone-pkgs ul { list-style: none; margin: 0; padding: 0; }
.zone-pkgs li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.zone-pkgs li.on { font-weight: 700; }
.zone-pkgs li { display: block; padding: 8px 0; border-top: 1px solid var(--line, #e3e8ee); }
.zone-pkgs li:first-child { border-top: 0; }
.zp-top { display: flex; justify-content: space-between; gap: 12px; }
.zp-spec > div { margin-top: 3px; } .spec-k { font-weight: 700; margin-right: 4px; }

/* Visa details (price templates) */
.qextra { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; margin-top: 8px; }
.qextra label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; }
.cmp-calc { margin: 8px 0 0; font-size: .85rem; }
.cmp-calc td { padding: 2px 0; } .cmp-calc tr.sub td { font-weight: 700; border-top: 1px solid var(--line, #ddd); }
.cmp-adjust { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--soft, #f4f7fa); }
.cmp-adjust > .adj-row, .cmp-adjust > .calc-warn, .cmp-adjust > .muted { padding: 2px 0; }
.adj-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.adj-row label { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: space-between; }
.adj-row input { width: 72px; padding: 4px 6px; }
.adj-lines { margin-top: 6px; border-top: 1px solid var(--line, #e3e8ee); padding-top: 6px; }
.adj-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 1px 0; }
.adj-total { font-weight: 700; border-top: 1px solid var(--line, #e3e8ee); margin-top: 4px; padding-top: 4px; }
.a-add { margin: 8px 0; } .a-add summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.a-add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; align-items: center; }
.calc-warn { color: #c62828; font-weight: 600; margin-top: 4px; }
.calc-pill { display: inline-block; margin: 0 0 8px; }
.qinside { margin: 10px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--soft, #eef6f8); border: 1px solid var(--line, #cfe3e8); }
.qinside label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.qinside select { max-width: 200px; }
.qsplit { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; margin-bottom: 6px; }
.qsplit label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.qsplit-out { display: block; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line, #dde5ea); font-weight: 600; }

/* Calculator breakdown: Item | Qty | AED */
.calc-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: .9rem; }
.calc-table th, .calc-table td { padding: 8px 6px; border-bottom: 1px solid var(--line, #e3e8ee); text-align: left; vertical-align: top; }
.calc-table thead th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6b7785); font-weight: 600; }
.calc-table .q { width: 56px; text-align: center; color: var(--muted, #6b7785); }
.calc-table .a { width: 110px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-table tr.calc-total td { border-bottom: 0; border-top: 2px solid var(--ink, #10202c); font-weight: 700; font-size: 1rem; }
.adj-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }

/* ---- Price finder (filters left, results right) ---- */
.finder { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .finder { grid-template-columns: minmax(0, 1fr); } }
.ff-side { display: grid; gap: 14px; position: sticky; top: 84px; }
@media (max-width: 860px) { .ff-side { position: static; } }
.ff-box { background: #fff; border: 1px solid var(--line, #dde5ea); border-radius: 14px; padding: 14px 16px; }
.ff-box h3 { margin: 0 0 10px; font-size: 1rem; }
.ff-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: .86rem; font-weight: 600; }
.ff-field small { font-weight: 400; color: var(--muted, #6b7785); }
.ff-field select { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line, #dde5ea); background: #fff; font: inherit; }
.ff-check { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 0; font-size: .9rem; cursor: pointer; }
.ff-check small { color: var(--muted, #6b7785); font-variant-numeric: tabular-nums; }
.ff-links { font-size: .82rem; margin-bottom: 4px; }
.ff-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ff-top h2 { margin: 0; font-size: 1.3rem; }
.ff-sort { display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.ff-sort select { padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line, #dde5ea); background: #fff; font: inherit; }
.ff-card { background: #fff; border: 1px solid var(--line, #dde5ea); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.ff-card.best { border-color: #9fd4c4; box-shadow: 0 6px 20px rgba(13, 107, 87, .08); }
.ff-card-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ff-card-h h3, .ff-card-h h2 { margin: 0 0 2px; }
.ff-price { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ff-price b { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.ff-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .85rem; color: var(--muted, #6b7785); }
.ff-opts span.on { color: var(--ink, #10202c); font-weight: 600; }
.ff-det { margin-top: 10px; } .ff-det summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--accent, #0d6b57); }
.ff-chosen { padding: 18px 20px; }
.ff-chosen h3 { margin: 18px 0 8px; }
.ff-chosen input[type=search], .ff-chosen #ffClient { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line, #dde5ea); font: inherit; }
.ff-chosen .row.end { gap: 8px; margin-top: 12px; } .ff-chosen #ffClient { max-width: 320px; }
.ff-hits { display: grid; gap: 4px; margin-top: 6px; max-height: 300px; overflow: auto; border: 1px solid var(--line, #dde5ea); border-radius: 10px; padding: 6px; }
.ff-hit { display: flex; justify-content: space-between; gap: 10px; text-align: left; background: #fff; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; }
.ff-hit:hover { background: var(--soft, #eef6f8); } .ff-hit small { color: var(--muted, #6b7785); white-space: nowrap; }
.ff-flags { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff4e5; color: #8a4b00; font-size: .88rem; display: grid; gap: 4px; }
.flag-gt { background: #fff4e5; color: #8a4b00; }
.tab[hidden] { display: none !important; }
.ff-sort { white-space: nowrap; }

/* ===== Price finder — Amana cost-calculator look, Booking-style filters ===== */
.finder {
  --fc-bg:#f3f5f4; --fc-surface:#fff; --fc-line:#dde3e0; --fc-muted:#5d6b66; --fc-fg:#15211d;
  --fc-accent:#0d6b57; --fc-accent-soft:#e2f0eb; --fc-sand:#f5ead2; --fc-sand-fg:#5b4410; --fc-danger:#b3261e; --fc-input:#f8faf9;
  --fc-sans:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif; --fc-mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  display:grid; grid-template-columns:290px minmax(0,1fr); gap:24px; align-items:start;
  font-family:var(--fc-sans); color:var(--fc-fg); font-size:15px; line-height:1.45;
}
#finder { background:var(--fc-bg, #f3f5f4); }
@media (max-width:900px){ .finder{ grid-template-columns:minmax(0,1fr); } }
.finder h1,.finder h2,.finder h3{ font-family:var(--fc-sans); letter-spacing:-.01em; }
.finder select,.finder input[type=search],.finder input[type=text]{ font:inherit; color:var(--fc-fg); background:var(--fc-input); border:1px solid var(--fc-line); border-radius:6px; padding:7px 9px; }
.finder select:focus-visible,.finder input:focus-visible,.finder button:focus-visible{ outline:2px solid var(--fc-accent); outline-offset:1px; }
.fc-muted{ color:var(--fc-muted); font-size:14px; margin:4px 0; }
/* sidebar */
.fc-side{ position:sticky; top:84px; } @media (max-width:900px){ .fc-side{ position:static; } }
.fc-filter{ background:var(--fc-surface); border:1px solid var(--fc-line); border-radius:10px; overflow:hidden; }
.fc-filter > h2{ margin:0; padding:12px 16px; font-size:17px; border-bottom:1px solid var(--fc-line); }
.fc-filter section{ padding:14px 16px; border-bottom:1px solid var(--fc-line); }
.fc-filter section:last-child{ border-bottom:0; }
.fc-filter h3{ margin:0 0 10px; font-size:15px; }
.fc-range{ margin:0 0 6px; font-size:14px; }
.fc-hist{ display:flex; align-items:flex-end; gap:2px; height:44px; padding:0 6px; }
.fc-hist span{ flex:1; background:#d7dfdb; border-radius:2px 2px 0 0; min-height:2px; }
.fc-hist span.in{ background:#a9c7bd; }
.finder input[type=range]{ width:100%; accent-color:var(--fc-accent); margin-top:4px; }
.fc-q{ display:grid; grid-template-columns:1fr 92px; gap:8px; align-items:center; padding:6px 0; font-size:14px; }
.fc-q small{ display:block; color:var(--fc-muted); font-size:12.5px; }
.fc-q select{ font-family:var(--fc-mono); text-align:right; }
.fc-links{ display:flex; gap:12px; margin-bottom:6px; }
.fc-links button,.fc-link{ border:0; background:none; padding:2px 0; color:var(--fc-accent); font:inherit; font-size:14px; font-weight:500; cursor:pointer; }
.fc-link.del{ color:var(--fc-danger); }
.fc-check{ display:grid; grid-template-columns:auto 1fr auto; gap:9px; align-items:center; padding:5px 0; cursor:pointer; font-size:14.5px; }
.fc-check input{ width:17px; height:17px; accent-color:var(--fc-accent); }
.fc-check small{ color:var(--fc-muted); font-family:var(--fc-mono); font-size:13px; }
/* results */
.fc-top{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom:14px; }
.fc-top h1{ margin:0; font-size:22px; }
.fc-sort{ display:flex; align-items:center; gap:8px; border:1px solid var(--fc-line); border-radius:999px; padding:4px 6px 4px 14px; background:var(--fc-surface); font-size:14.5px; white-space:nowrap; }
.fc-sort select{ border:0; background:none; font-weight:600; }
.fc-card{ display:grid; grid-template-columns:88px minmax(0,1fr) 210px; gap:16px; background:var(--fc-surface); border:1px solid var(--fc-line); border-radius:10px; padding:16px; margin-bottom:14px; }
.fc-card.best{ border-color:#9cc9b9; box-shadow:0 4px 16px rgba(13,107,87,.08); }
@media (max-width:700px){ .fc-card{ grid-template-columns:minmax(0,1fr); } .fc-badge{ display:none !important; } .fc-price{ align-items:flex-start !important; text-align:left !important; } }
.fc-badge{ width:88px; height:88px; border-radius:10px; background:var(--fc-accent-soft); color:var(--fc-accent); display:grid; place-items:center; font-weight:700; font-size:22px; font-family:var(--fc-mono); }
.fc-info h3{ margin:0 0 2px; font-size:19px; }
.fc-name{ border:0; background:none; padding:0; font:inherit; font-weight:700; color:var(--fc-accent); cursor:pointer; text-align:left; }
.fc-name:hover{ text-decoration:underline; }
.fc-sub{ color:var(--fc-muted); font-size:14.5px; }
.fc-tags{ display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.fc-tag{ display:inline-block; font-size:12.5px; font-weight:600; padding:2px 8px; border-radius:999px; background:var(--fc-accent-soft); color:var(--fc-accent); }
.fc-tag.low{ background:#0d6b57; color:#fff; } .fc-tag.warn{ background:var(--fc-sand); color:var(--fc-sand-fg); }
.fc-opts{ display:flex; flex-wrap:wrap; gap:4px 14px; font-size:14px; color:var(--fc-muted); }
.fc-opts span.on{ color:var(--fc-fg); font-weight:600; } .fc-opts b{ font-family:var(--fc-mono); font-weight:600; }
.fc-price{ display:flex; flex-direction:column; align-items:flex-end; text-align:right; gap:3px; }
.fc-price small{ color:var(--fc-muted); font-size:13px; }
.fc-price b{ font-size:22px; font-family:var(--fc-mono); font-weight:600; font-variant-numeric:tabular-nums; }
.fc-btn{ font:inherit; font-weight:600; cursor:pointer; border-radius:6px; padding:9px 16px; border:1px solid var(--fc-accent); background:var(--fc-accent); color:#fff; margin-top:6px; }
.fc-btn.ghost{ background:var(--fc-surface); color:var(--fc-fg); border-color:var(--fc-line); }
.fc-btn:disabled{ opacity:.5; cursor:not-allowed; }
.fc-break{ grid-column:1 / -1; }
/* calculator tables */
.fc-scroll{ overflow-x:auto; }
.fc-table{ border-collapse:collapse; width:100%; margin:0; }
.fc-table th,.fc-table td{ padding:9px 12px; text-align:left; border-bottom:1px solid var(--fc-line); vertical-align:middle; }
.fc-table th{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--fc-muted); font-weight:600; background:var(--fc-surface); }
.fc-table .num{ text-align:right; font-family:var(--fc-mono); font-variant-numeric:tabular-nums; white-space:nowrap; }
.fc-table tr.fc-total td{ background:var(--fc-sand); color:var(--fc-sand-fg); font-weight:700; font-size:17px; border-bottom:0; }
.fc-table tr.fc-total td.num{ font-size:18px; }
.fc-warn{ color:var(--fc-danger); font-weight:600; font-size:14px; padding:8px 12px 0; }
/* chosen free zone */
.fc-grid{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; align-items:start; }
@media (max-width:1100px){ .fc-grid{ grid-template-columns:minmax(0,1fr); } }
.fc-cardbox{ background:var(--fc-surface); border:1px solid var(--fc-line); border-radius:10px; overflow:hidden; }
.fc-h{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--fc-line); }
.fc-h h2{ font-size:16px; margin:0; } .fc-h .fc-btn{ margin:0; padding:6px 12px; }
.fc-h.sub{ border-top:1px solid var(--fc-line); }
.fc-acts{ padding:14px 16px; display:grid; gap:10px; }
.fc-acts input[type=search]{ width:100%; padding:10px 12px; }
.fc-hits{ display:grid; gap:2px; max-height:280px; overflow:auto; border:1px solid var(--fc-line); border-radius:8px; padding:4px; }
.fc-hits button{ display:flex; justify-content:space-between; gap:10px; text-align:left; background:var(--fc-surface); border:0; border-radius:6px; padding:8px 10px; cursor:pointer; font:inherit; }
.fc-hits button:hover{ background:var(--fc-accent-soft); } .fc-hits small{ color:var(--fc-muted); font-family:var(--fc-mono); white-space:nowrap; }
.fc-flags{ padding:10px 12px; border-radius:8px; background:var(--fc-sand); color:var(--fc-sand-fg); font-size:14px; display:grid; gap:4px; }
.fc-actions{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:14px 16px; border-top:1px solid var(--fc-line); }
.fc-actions input{ flex:1 1 220px; } .fc-actions .fc-btn{ margin:0; }
.fc-terms{ padding:4px 16px 16px; } .fc-terms h2{ font-size:16px; margin:14px 0 10px; }
.fc-terms ul{ margin:0; padding-left:18px; display:grid; gap:8px; color:var(--fc-muted); }
.fc-empty{ padding:28px 16px; color:var(--fc-muted); text-align:center; }

/* Price finder: undo the app-wide input / button styles inside it */
#finder .finder select, #finder .finder input[type=search], #finder .finder input[type=text] {
  font-size:15px; letter-spacing:0; padding:6px 8px; border-radius:6px; border:1px solid var(--fc-line); background:var(--fc-input); box-shadow:none; width:auto; min-height:0; height:auto;
}
#finder .finder select { -webkit-appearance:auto; appearance:auto; background-image:none; padding-right:4px; }
#finder .finder .fc-q select { width:92px; font-family:var(--fc-mono); }
#finder .finder .fc-sort select { border:0; background:none; font-weight:600; }
#finder .finder input[type=search] { width:100%; padding:10px 12px; }
#finder .finder input:focus, #finder .finder select:focus { box-shadow:none; outline:2px solid var(--fc-accent); outline-offset:1px; border-color:var(--fc-line); }
#finder .finder button { box-shadow:none; transform:none; letter-spacing:0; }
#finder .finder .fc-links button, #finder .finder .fc-link, #finder .finder .fc-name { background:none; border:0; padding:2px 0; border-radius:0; color:var(--fc-accent); font-weight:500; }
#finder .finder .fc-name { font-weight:700; font-size:19px; padding:0; }
#finder .finder .fc-link.del { color:var(--fc-danger); }
#finder .finder .fc-btn { background:var(--fc-accent); color:#fff; border:1px solid var(--fc-accent); border-radius:6px; padding:9px 16px; font-weight:600; }
#finder .finder .fc-btn.ghost { background:var(--fc-surface); color:var(--fc-fg); border-color:var(--fc-line); }
#finder .finder .fc-btn:hover { filter:brightness(.95); }
#finder .finder .fc-hits button { background:var(--fc-surface); color:var(--fc-fg); border:0; border-radius:6px; padding:8px 10px; font-weight:400; }
#finder .finder .fc-hits button:hover { background:var(--fc-accent-soft); }
/* chosen free zone: table full width, terms under it */
#finder .fc-grid { grid-template-columns:minmax(0,1fr); }
#finder .fc-table td:first-child { min-width:200px; }
#finder .finder .fc-q select { text-align:left; text-align-last:left; padding:6px 22px 6px 10px; width:100px; }
#finder .finder .fc-sort select { padding-right:22px; }
#finder .finder select { -webkit-appearance:none !important; appearance:none !important;
  background:var(--fc-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235d6b66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center !important; padding-right:26px !important; }
#finder .finder .fc-sort select { background-color:transparent !important; }
/* Price finder layout: requirements form centred on top, filters + results below */
#finder .finder { display:block; }
#finder .fc-form { max-width:980px; margin:0 auto 22px; background:var(--fc-surface); border:1px solid var(--fc-line); border-radius:10px; overflow:hidden; }
#finder .fc-form .fc-h { justify-content:space-between; }
#finder .fc-fgrid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px 22px; padding:16px; }
@media (max-width:820px){ #finder .fc-fgrid { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:520px){ #finder .fc-fgrid { grid-template-columns:minmax(0,1fr); } }
#finder .fc-f { display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:600; }
#finder .fc-f small { display:block; font-weight:400; color:var(--fc-muted); font-size:12.5px; }
#finder .finder .fc-f input[type=number], #finder .finder .fc-f select { width:100%; font-family:var(--fc-mono); font-size:16px; padding:9px 12px; border:1px solid var(--fc-line); border-radius:6px; background-color:var(--fc-input); box-shadow:none; height:auto; text-align:left; }
#finder .finder .fc-f select { padding-right:30px !important; }
#finder .fc-body { display:grid; grid-template-columns:270px minmax(0,1fr); gap:24px; align-items:start; }
@media (max-width:900px){ #finder .fc-body { grid-template-columns:minmax(0,1fr); } }
/* Price finder: package choice, flags, promotions */
#finder .finder .fc-opt { background:var(--fc-surface); color:var(--fc-muted); border:1px solid var(--fc-line); border-radius:999px; padding:4px 12px; font-size:14px; font-weight:500; cursor:pointer; }
#finder .finder .fc-opt b { font-family:var(--fc-mono); color:var(--fc-fg); }
#finder .finder .fc-opt.on, #finder .finder .fc-opt:hover { border-color:var(--fc-accent); color:var(--fc-accent); background:var(--fc-accent-soft); }
#finder .fc-opts, #finder .fc-pkgs { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
#finder .fc-pkgs { padding:12px 16px 0; }
#finder .fc-flags div.bad { color:var(--fc-danger); font-weight:600; }
#finder .fc-flags div.ok { color:var(--fc-accent); }
#finder .fc-promos { display:grid; gap:12px; margin-bottom:14px; }
#finder .fc-promo { background:linear-gradient(135deg,#0d6b57,#13866d); color:#fff; border-radius:10px; padding:14px 16px; display:grid; gap:6px; }
#finder .fc-promo-tag { font-size:12px; letter-spacing:.06em; text-transform:uppercase; opacity:.85; font-weight:600; }
#finder .fc-promo b { font-size:16px; } #finder .fc-promo p { margin:0; font-size:14px; opacity:.95; }
#finder .fc-promo-foot { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; font-size:13px; }
#finder .fc-promo-foot a, #finder .finder .fc-promo .fc-link { color:#fff; font-weight:600; text-decoration:underline; }
#finder .finder .fc-promo .fc-link.del { color:#ffd9d6; }
#finder .fc-promo-form { background:var(--fc-surface); border:1px solid var(--fc-line); border-radius:10px; padding:14px 16px; display:grid; gap:8px; }
#finder .fc-promo-form h3 { margin:0; font-size:15px; }
#finder .finder .fc-promo-form input, #finder .finder .fc-promo-form textarea, #finder .finder .fc-promo-form select { width:100%; font-size:14px; padding:7px 9px; border:1px solid var(--fc-line); border-radius:6px; background-color:var(--fc-input); font-family:var(--fc-sans); box-shadow:none; }
#finder .fc-promo-btns { display:flex; gap:8px; } #finder .finder .fc-promo-btns .fc-btn { margin:0; padding:7px 12px; }
#finder .finder .fc-promo-add { width:100%; margin:0; }
#finder .fc-sales { padding:36px 28px; text-align:center; display:grid; justify-items:center; gap:10px; border-color:#e6c98a; background:#fffaf0; }
#finder .fc-sales h2 { margin:0; font-size:20px; color:var(--fc-sand-fg); }
#finder .fc-sales p { margin:0; max-width:520px; color:var(--fc-muted); }
#finder .fc-sales-ic { width:56px; height:56px; border-radius:50%; display:grid; place-items:center; background:var(--fc-sand); color:var(--fc-sand-fg); font-size:26px; }
#finder .finder .fc-table select.fc-qty { width:72px; padding:4px 22px 4px 8px !important; font-family:var(--fc-mono); font-size:14px; background-position:right 7px center !important; border-color:#b9d3ca; }
/* Chosen activity details */
#finder .fc-actlist { display:grid; gap:10px; }
#finder .fc-act { border:1px solid var(--fc-line); border-radius:8px; padding:12px 14px; background:var(--fc-surface); }
#finder .fc-act-h { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
#finder .fc-act-h b { font-size:16px; }
#finder .fc-facts { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:8px 16px; margin:10px 0 0; }
#finder .fc-facts dt { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--fc-muted); font-weight:600; }
#finder .fc-facts dd { margin:2px 0 0; font-family:var(--fc-mono); font-size:14px; }
#finder .fc-act-sec { margin-top:10px; }
#finder .fc-act-sec h4 { margin:0 0 4px; font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--fc-muted); }
#finder .fc-act-sec p { margin:0; font-size:14.5px; line-height:1.5; }
#finder .fc-act-sec ul { margin:0; padding-left:18px; font-size:14.5px; color:var(--fc-sand-fg); display:grid; gap:2px; }
#finder .fc-hits mark { background:#fde9b3; color:inherit; border-radius:2px; padding:0 1px; }
#finder .fc-hitcount { margin:0; }
#finder .finder .fc-hits button:disabled { opacity:.55; cursor:default; }

/* Activity alerts: extra cost / approval / restriction / documents */
#finder .fc-tag.bad{ background:#fde8e6; color:var(--fc-danger); }
#finder .fc-alerts{ display:grid; gap:6px; margin:8px 0; }
#finder .fc-al{ border-left:3px solid var(--fc-accent); background:var(--fc-accent-soft); padding:6px 10px; border-radius:6px; font-size:14px; }
#finder .fc-al.warn{ border-color:#b7791f; background:var(--fc-sand); color:var(--fc-sand-fg); }
#finder .fc-al.bad{ border-color:var(--fc-danger); background:#fde8e6; color:var(--fc-danger); }
#finder .fc-al ul{ margin:4px 0 0 18px; padding:0; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) #finder .fc-tag.bad, :root:not([data-theme="light"]) #finder .fc-al.bad{ background:#3a1d1b; } }
:root[data-theme="dark"] #finder .fc-tag.bad, :root[data-theme="dark"] #finder .fc-al.bad{ background:#3a1d1b; }

/* Activity check summary */
#finder .fc-sum{ border:1px solid var(--fc-line, #e3e0d8); border-radius:8px; padding:10px 12px; margin:10px 0; display:grid; gap:4px; font-size:14px; }
#finder .fc-sum h4{ margin:0 0 4px; font-size:14px; text-transform:uppercase; letter-spacing:.04em; }
#finder .fc-sumrow{ display:flex; justify-content:space-between; gap:12px; padding:4px 8px; border-radius:6px; }
#finder .fc-sumrow b{ text-align:right; font-weight:600; }
#finder .fc-sumrow.ok{ color:var(--fc-accent); } #finder .fc-sumrow.warn{ background:var(--fc-sand); color:var(--fc-sand-fg); }
#finder .fc-sumrow.bad{ background:#fde8e6; color:var(--fc-danger); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) #finder .fc-sumrow.bad{ background:#3a1d1b; } }
:root[data-theme="dark"] #finder .fc-sumrow.bad{ background:#3a1d1b; }
@media (max-width:600px){ #finder .fc-sumrow{ flex-direction:column; gap:2px; } #finder .fc-sumrow b{ text-align:left; } }

#finder .fc-f[hidden]{ display:none !important; }

#finder .fc-promo-confirm{ display:inline-flex; gap:8px; align-items:center; font-size:13.5px; font-weight:600; }

/* Promotion ads */
#finder .fc-ad{ position:relative; margin:0 0 16px; border-radius:12px; overflow:hidden; box-shadow:0 6px 22px rgba(13,40,34,.12); }
#finder .fc-ad-slide{ display:none; }
#finder .fc-ad-slide.on{ display:grid; animation:fcAdIn .35s ease; }
@keyframes fcAdIn{ from{ opacity:0; transform:translateY(4px);} to{ opacity:1; transform:none; } }
#finder .fc-ad-slide, #finder .fc-ad-inline{ grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); min-height:190px; color:#fff; }
#finder .fc-ad-inline{ display:grid; border-radius:12px; overflow:hidden; margin:0 0 14px; min-height:150px; }
#finder .st-green{ background:linear-gradient(120deg,#0b5e4c,#14896f); } #finder .st-navy{ background:linear-gradient(120deg,#0f1f3d,#24467e); }
#finder .st-red{ background:linear-gradient(120deg,#8c1c13,#c4372b); } #finder .st-sand{ background:linear-gradient(120deg,#f3e3c3,#e9cf9b); color:#3d2c0c; }
#finder .fc-ad-txt{ padding:22px 24px; display:flex; flex-direction:column; gap:8px; justify-content:center; }
#finder .fc-ad-tag{ font-size:12px; letter-spacing:.08em; text-transform:uppercase; font-weight:700; opacity:.85; }
#finder .fc-ad h3, #finder .fc-ad-inline h3{ margin:0; font-size:22px; line-height:1.2; color:inherit; }
#finder .fc-ad-inline h3{ font-size:18px; }
#finder .fc-ad-txt p{ margin:0; font-size:15px; opacity:.95; }
#finder .fc-ad-price{ font-size:15px; } #finder .fc-ad-price b{ font-family:var(--fc-mono); font-size:18px; } #finder .fc-ad-price small{ opacity:.8; margin-left:4px; }
#finder .fc-ad-cta{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:4px; }
#finder .finder .fc-ad-cta .fc-btn{ margin:0; background:#fff; color:#0b3d32; border-color:#fff; text-decoration:none; }
#finder .finder .fc-ad-cta .fc-btn.ghost{ background:transparent; color:inherit; border-color:currentColor; }
#finder .finder .st-sand .fc-ad-cta .fc-btn:not(.ghost){ background:#3d2c0c; color:#fff; border-color:#3d2c0c; }
#finder .fc-ad-cta small{ opacity:.85; font-size:13px; }
#finder .fc-ad-img{ position:relative; min-height:150px; }
#finder .fc-ad-img img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
#finder .fc-ad-mark{ display:flex; align-items:center; justify-content:center; font-size:64px; font-weight:800; opacity:.22; letter-spacing:-.02em; }
#finder .fc-ad-nav{ position:absolute; right:12px; bottom:10px; display:flex; gap:6px; align-items:center; }
#finder .finder .fc-ad-nav button{ margin:0; padding:0; width:26px; height:26px; border-radius:50%; border:0; background:rgba(255,255,255,.85); color:#0b3d32; font-size:17px; line-height:26px; cursor:pointer; box-shadow:none; }
#finder .finder .fc-ad-nav .dot{ width:9px; height:9px; padding:0; background:rgba(255,255,255,.55); }
#finder .finder .fc-ad-nav .dot.on{ background:#fff; width:22px; border-radius:6px; }
#finder .fc-tag.promo{ background:#c4372b; color:#fff; }
#finder .fc-promo-admin{ background:var(--fc-surface); border:1px solid var(--fc-line); border-radius:10px; padding:12px 14px; display:grid; gap:8px; }
#finder .fc-promo-admin h3{ margin:0; font-size:15px; } #finder .fc-promo-admin h3 small{ font-weight:400; color:var(--fc-muted); }
#finder .fc-promo-row{ display:grid; grid-template-columns:14px minmax(0,1fr) auto; gap:8px; align-items:center; font-size:14px; padding:6px 0; border-top:1px solid var(--fc-line); }
#finder .fc-promo-row small{ display:block; color:var(--fc-muted); font-size:12.5px; }
#finder .fc-promo-row .sw{ width:12px; height:12px; border-radius:3px; }
#finder .fc-bad{ color:var(--fc-danger); font-weight:600; }
#finder .fc-pimg input{ display:block; margin-top:4px; font-size:13px; }
#finder .fc-pimg-prev{ display:flex; gap:8px; align-items:center; } #finder .fc-pimg-prev img{ width:96px; height:58px; object-fit:cover; border-radius:6px; }
@media (max-width:640px){ #finder .fc-ad-slide, #finder .fc-ad-inline{ grid-template-columns:minmax(0,1fr); } #finder .fc-ad-img{ min-height:120px; order:-1; } #finder .fc-ad-mark{ display:none; } #finder .fc-ad h3{ font-size:19px; } }
#finder .finder .fc-ad-nav button{ min-height:0 !important; height:26px !important; width:26px !important; padding:0 !important; line-height:26px !important; flex:none; }
#finder .finder .fc-ad-nav .dot{ height:9px !important; width:9px !important; }
#finder .finder .fc-ad-nav .dot.on{ width:22px !important; }

/* ==========================================================================
   App-wide theme matching the Price finder (green, IBM Plex, flat cards).
   Comes last so it wins over the older layers; the finder keeps its own rules.
   ========================================================================== */
:root {
  --ink: #15211d; --ink-2: #33433d; --muted: #5d6b66; --line: #dde3e0; --line-2: #cfd8d4;
  --surface: #ffffff; --canvas: #f3f5f4; --input: #f8faf9;
  --accent: #0d6b57; --accent-dark: #0a5444; --accent-2: #13866d; --accent-soft: #e2f0eb; --ring: rgba(13, 107, 87, 0.18);
  --sand: #f5ead2; --sand-fg: #5b4410; --danger: #b3261e; --ok: #0d6b57;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
html body { font-family: var(--font); font-size: 15.5px; line-height: 1.5; letter-spacing: 0; color: var(--ink); background: var(--canvas); background-attachment: scroll; }
html body h1, html body h2, html body h3, html body h4 { font-family: var(--font); letter-spacing: -0.01em; color: var(--ink); }

/* Header: same white bar as the Price finder */
html body header.top { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line); box-shadow: none; }
html body .brand-app { font-family: var(--font); font-weight: 600; }
html body nav .tab, html body header .link-btn { font-family: var(--font); color: var(--ink-2); }
html body nav .tab.active { background: var(--ink); color: #fff; }

/* Page titles: left-aligned, like "7 free zones found" */
html body .page-head { padding: 28px 0 14px; text-align: left; }
html body .page-head h2, html body #histTitle { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
html body .page-head .hint { font-size: 15px; margin-top: 4px; color: var(--muted); }
html body .hero h2, html body .hero.center h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; }
html body .hero p, html body .hero.center p { font-size: 15px; color: var(--muted); }

/* Cards: white, thin border, 10px corners, no heavy shadow */
html body .card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; padding: 20px 22px; }
html body .card > h2:first-child, html body .card h2 { font-size: 17px; font-weight: 700; }
html body .card h3 { font-size: 15.5px; font-weight: 600; }
html body .muted, html body .hint, html body .small-text.muted { color: var(--muted); }

/* Buttons: flat green, 8px corners */
html body button { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; border-radius: 8px; padding: 9px 16px; min-height: 38px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent); box-shadow: none; transition: background .15s ease, border-color .15s ease; }
html body button:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: none; }
html body button:active { transform: none; }
html body button:disabled { background: #b8c4bf; border-color: #b8c4bf; color: #fff; }
html body button.secondary, html body label.upload, html body .icon-btn { background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
html body button.secondary:hover, html body label.upload:hover, html body .icon-btn:hover { background: var(--input); border-color: #b9c6c0; color: var(--ink); }
html body button.secondary.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
html body button.small, html body label.upload { min-height: 30px; padding: 5px 12px; font-size: 14px; border-radius: 6px; }
html body button.big { min-height: 44px; font-size: 16px; border-radius: 8px; }
html body .link-btn, html body .link-btn.inline { background: none; border: 0; min-height: 0; padding: 0; color: var(--accent); font-weight: 600; box-shadow: none; }
html body button:focus-visible, html body a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }

/* Fields: light grey fill, thin border, 6px corners */
html body input[type="text"], html body input[type="password"], html body input[type="email"], html body input[type="search"], html body input[type="url"],
html body input[type="number"], html body input[type="tel"], html body input[type="date"], html body select, html body textarea {
  font-family: var(--font); font-size: 15px; color: var(--ink); background-color: var(--input); border: 1px solid var(--line); border-radius: 6px;
  padding: 9px 12px; min-height: 40px; box-shadow: none; }
html body input:hover, html body select:hover, html body textarea:hover { border-color: var(--line-2); }
html body input:focus, html body select:focus, html body textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); background-color: #fff; }
html body select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2333433d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 12px center; padding-right: 34px; }
html body label.field, html body .field { font-size: 14px; font-weight: 600; color: var(--ink); }

/* Tables: uppercase small headers, light header row, tabular numbers */
html body table.grid, html body table.compare, html body table.results-table { font-size: 14.5px; }
html body table.grid th, html body table.compare th, html body table.results-table th { background: var(--input); color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
html body table.grid td, html body table.compare td, html body table.results-table td { border-bottom: 1px solid var(--line); }
html body table.grid tbody tr:hover td { background: #fafcfb; }
html body td.num, html body th.num, html body table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Tags / pills: same as the finder's */
html body .tag, html body .pill, html body .badge { font-family: var(--font); font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
html body .tag.warn { background: var(--sand); color: var(--sand-fg); }

/* Admin sub-tabs: segmented control in the finder's colours */
html body .subtabs { background: #e8eeeb; border-radius: 10px; padding: 4px; }
html body .subtabs .subtab { background: transparent; color: var(--ink-2); border: 0; min-height: 32px; padding: 6px 14px; font-weight: 500; border-radius: 7px; }
html body .subtabs .subtab:hover { background: rgba(255,255,255,.6); color: var(--ink); }
html body .subtabs .subtab.active { background: #fff; color: var(--accent); font-weight: 600; box-shadow: 0 1px 2px rgba(21,33,29,.08); }

/* Sign-in */
html body .auth { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(21,33,29,.08); }
html body .auth-brand h2 { font-family: var(--font); color: var(--ink); }
html body .auth-form h2 { font-size: 20px; }

/* Notices */
html body .msg.ok, html body .ok { color: var(--ok); }
html body .msg.err, html body .err, html body .error { color: var(--danger); }
html body .page-head h2, html body .admin-head h2, html body #histTitle { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 4px; }
html body .page-head .hint, html body .admin-head .hint { font-size: 15px; line-height: 1.5; color: var(--muted); letter-spacing: 0; }
html body table.grid th.num, html body table th.num { font-family: var(--font); }
html body .tpill { font-family: var(--font); font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 2px 8px; }
html body .tpill.t-questionnaire { background: var(--accent-soft); color: var(--accent); }
html body table.grid th, html body table.grid td { padding: 10px 12px; }
html body table.grid td .link-btn { text-decoration: none; }

#finder .fc-emi{ font-size:12.5px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--fc-muted); margin:12px 0 2px; }
#finder .fc-emi:first-of-type{ margin-top:8px; }
#finder .fc-none{ font-size:13.5px; margin:2px 0 4px; }

/* ==========================================================================
   Larger interface: wider pages on big screens, bigger controls and cards.
   ========================================================================== */
html body main { max-width: 1520px; padding: 8px 32px 64px; }
html body header.top { padding: 16px max(32px, calc((100vw - 1520px) / 2 + 32px)); }
html body .brand-logo { height: 30px; }
html body .brand-app { font-size: 19px; }
html body nav .tab, html body header .link-btn { font-size: 16px; padding: 10px 18px; }
html body .view { max-width: 1456px; padding-top: 32px; }
html body #loginView { max-width: 1024px; }
html body .card { padding: 26px 28px; }
html body .card h2, html body .card > h2:first-child { font-size: 19px; }
html body button { min-height: 44px; padding: 10px 20px; font-size: 15px; }
html body button.small { min-height: 34px; padding: 6px 14px; font-size: 14px; }
html body input[type="text"], html body input[type="password"], html body input[type="email"], html body input[type="search"], html body input[type="url"],
html body input[type="number"], html body input[type="tel"], html body input[type="date"], html body select, html body textarea { min-height: 46px; font-size: 15.5px; padding: 11px 14px; }
html body table.grid th, html body table.grid td { padding: 12px 14px; }

/* Price finder */
#finder .fc-form { max-width: none; margin-bottom: 28px; border-radius: 12px; }
#finder .fc-form .fc-h { padding: 18px 24px; }
#finder .fc-form .fc-h h2 { font-size: 20px; }
#finder .fc-fgrid { gap: 18px 28px; padding: 22px 24px 26px; }
#finder .fc-f { font-size: 15px; gap: 8px; }
#finder .fc-f small { font-size: 13px; }
#finder .finder .fc-f select { min-height: 50px; font-size: 17px; padding: 11px 14px; }
#finder .fc-body { grid-template-columns: 330px minmax(0, 1fr); gap: 32px; }
#finder .fc-filter { border-radius: 12px; }
#finder .fc-filter > h2 { font-size: 19px; padding: 16px 20px; }
#finder .fc-filter section { padding: 18px 20px; }
#finder .fc-filter h3 { font-size: 16.5px; }
#finder .fc-check { font-size: 16px; padding: 7px 0; gap: 12px; }
#finder .fc-check input { width: 19px; height: 19px; }
#finder .fc-check small { font-size: 14px; }
#finder .fc-top h1 { font-size: 26px; }
#finder .fc-sort { font-size: 15px; padding: 6px 8px 6px 16px; }
#finder .fc-card { grid-template-columns: 110px minmax(0, 1fr) 250px; gap: 24px; padding: 24px; border-radius: 12px; margin-bottom: 18px; }
#finder .fc-badge { width: 110px; height: 110px; font-size: 28px; border-radius: 12px; }
#finder .fc-info h3 { font-size: 23px; margin-bottom: 4px; }
#finder .fc-sub { font-size: 16px; }
#finder .fc-tag { font-size: 13.5px; padding: 3px 10px; }
#finder .finder .fc-opt { font-size: 15.5px; padding: 7px 15px; }
#finder .fc-price b { font-size: 28px; }
#finder .fc-price small { font-size: 14px; }
#finder .finder .fc-btn { padding: 12px 22px; font-size: 16px; border-radius: 8px; }
#finder .fc-cardbox { border-radius: 12px; }
#finder .fc-h h2 { font-size: 20px; }
#finder .fc-table th, #finder .fc-table td { padding: 13px 16px; }
#finder .fc-table td { font-size: 16px; }
#finder .fc-table th { font-size: 13px; }
#finder .finder .fc-qty { min-height: 38px; font-size: 15px; }
#finder #ffActQ { min-height: 52px; font-size: 17px; }
#finder .finder .fc-hits button { padding: 11px 14px; font-size: 16px; }
#finder .fc-act { padding: 18px 20px; }
#finder .fc-ad-slide, #finder .fc-ad-inline { min-height: 220px; }
#finder .fc-ad h3 { font-size: 26px; } #finder .fc-ad-inline h3 { font-size: 22px; }
#finder .fc-ad-txt { padding: 28px 32px; } #finder .fc-ad-txt p { font-size: 16px; }
@media (max-width: 1100px) { #finder .fc-body { grid-template-columns: 290px minmax(0, 1fr); gap: 24px; } #finder .fc-card { grid-template-columns: 90px minmax(0, 1fr) 220px; } #finder .fc-badge { width: 90px; height: 90px; } }
@media (max-width: 900px) {
  /* Mobile: show the results first — the filter sidebar (budget, emirates, free zone list) used to
     force a long scroll past every filter before the first price card appeared. */
  #finder .fc-body { grid-template-columns: minmax(0, 1fr); }
  #finder .fc-main { order: 1; }
  #finder .fc-side { order: 2; }
}
@media (max-width: 700px) { html body main { padding: 8px 16px 48px; } html body header.top { padding: 12px 16px; } #finder .fc-card { grid-template-columns: minmax(0, 1fr); padding: 18px; } #finder .fc-fgrid { padding: 16px; } }
html body .view { padding-left: 0; padding-right: 0; }
@media (min-width: 1280px) { #finder .fc-fgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
html body .foot-inner { max-width: 1456px; padding-left: 0; padding-right: 0; } @media (max-width: 1520px) { html body .foot-inner { padding-left: 32px; padding-right: 32px; } } @media (max-width: 700px) { html body .foot-inner { padding-left: 16px; padding-right: 16px; } }

/* ==========================================================================
   Business Maker theme (Amana Corporate): Amana teal + white, Inter / Plus Jakarta Sans.
   Look only — no layout or behaviour changes.
   ========================================================================== */
:root {
  --sa-teal: #0e6b8a; --sa-teal-dark: #0a5470; --sa-teal-deep: #08475e; --sa-teal-soft: #e6f3f7; --sa-teal-tint: #f2f9fb;
  --sa-green: #16a34a; --sa-green-soft: #e8f7ee; --sa-bg: #f5f9fb; --sa-line: #dce8ee; --sa-ink: #10263a; --sa-muted: #587080;
  --ink: var(--sa-ink); --ink-2: #2b4255; --muted: var(--sa-muted); --line: var(--sa-line); --line-2: #cbdbe3; --canvas: var(--sa-bg); --input: #f7fbfc;
  --accent: var(--sa-teal); --accent-dark: var(--sa-teal-dark); --accent-2: #1388ad; --accent-soft: var(--sa-teal-soft); --ring: rgba(14, 107, 138, 0.18);
  --sand: #fdf6e3; --sand-fg: #6b4c10; --ok: var(--sa-green);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; --mono: "Inter", system-ui, sans-serif;
}
html body { font-family: var(--font); font-feature-settings: "tnum" 1, "cv11" 1; background: var(--sa-bg); color: var(--sa-ink); }
html body h1, html body h2, html body h3, html body h4 { font-family: var(--display); letter-spacing: -0.015em; color: var(--sa-ink); }

/* Header: white bar, Amana teal logo, teal underline */
html body header.top { background: #fff; border-bottom: 3px solid var(--sa-teal); box-shadow: 0 2px 12px rgba(14, 107, 138, 0.08); }
html body .brand-app { color: var(--sa-teal-deep); font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; border-left-color: var(--sa-line); }
html body nav .tab, html body header .link-btn { color: var(--ink-2); font-weight: 500; background: transparent; border: 0; }
html body nav .tab:hover, html body header .link-btn:hover { color: var(--sa-teal-dark); background: var(--sa-teal-tint); text-decoration: none; }
html body nav .tab.active { background: var(--sa-teal); color: #fff; font-weight: 600; box-shadow: 0 4px 12px -4px rgba(14, 107, 138, 0.5); }

/* Cards, buttons, fields, tables on every page */
html body .card { border: 1px solid var(--sa-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 38, 58, 0.04), 0 10px 28px -20px rgba(14, 107, 138, 0.25); }
html body button { background: var(--sa-teal); border-color: var(--sa-teal); border-radius: 10px; }
html body button:hover { background: var(--sa-teal-dark); border-color: var(--sa-teal-dark); }
html body button.secondary, html body label.upload { background: #fff; color: var(--sa-teal-dark); border-color: var(--line-2); }
html body input:focus, html body select:focus, html body textarea:focus { border-color: var(--sa-teal); box-shadow: 0 0 0 3px var(--ring); }
html body input[type="text"], html body input[type="password"], html body input[type="email"], html body input[type="search"], html body input[type="url"],
html body input[type="number"], html body input[type="tel"], html body input[type="date"], html body select, html body textarea { border-radius: 10px; }
html body table.grid th, html body table.compare th, html body table.results-table th { background: var(--sa-teal-tint); color: var(--sa-teal-dark); }
html body .subtabs { background: var(--sa-teal-soft); } html body .subtabs .subtab.active { color: var(--sa-teal-dark); }
html body .tpill.t-questionnaire { background: var(--sa-teal-soft); color: var(--sa-teal); }
html body .link-btn, html body .link-btn.inline { color: var(--sa-teal); }

/* Sign-in: light teal brand panel */
html body .auth { border-radius: 18px; border: 1px solid var(--sa-line); box-shadow: 0 24px 60px -28px rgba(14, 107, 138, 0.35); }
html body .auth-brand { background: linear-gradient(160deg, #ffffff 0%, var(--sa-teal-soft) 55%, #cfe7ef 100%); color: var(--sa-ink); border-bottom: 1px solid var(--sa-line); }
html body .auth-brand h2 { color: var(--sa-teal-deep); } html body .auth-brand p { color: var(--sa-muted); opacity: 1; }

/* Calculate Cost page */
#finder .finder { --fc-bg: var(--sa-bg); --fc-surface: #fff; --fc-line: var(--sa-line); --fc-muted: var(--sa-muted); --fc-fg: var(--sa-ink);
  --fc-accent: var(--sa-teal); --fc-accent-soft: var(--sa-teal-soft); --fc-sand: #fdf6e3; --fc-sand-fg: #6b4c10; --fc-input: #f7fbfc;
  --fc-sans: var(--font); --fc-mono: var(--font); font-feature-settings: "tnum" 1; }
#finder { background: var(--sa-bg); }
#finder h1, #finder h2, #finder h3 { font-family: var(--display); }
/* Requirements form = light teal hero */
#finder .fc-form { background: linear-gradient(135deg, #ffffff 0%, var(--sa-teal-soft) 60%, #d3eaf2 100%); border: 1px solid #cfe3eb; border-radius: 18px; box-shadow: 0 16px 36px -24px rgba(14, 107, 138, 0.45); }
#finder .fc-form .fc-h { border-bottom: 1px solid #d6e8ef; padding: 24px 28px 18px; background: transparent; }
#finder .fc-form .fc-h h2 { color: var(--sa-teal-deep); font-size: 26px; font-weight: 800; }
#finder .fc-form .fc-h .fc-muted { color: var(--sa-muted); }
#finder .fc-form .fc-f > span { color: var(--sa-ink); } #finder .fc-form .fc-f small { color: var(--sa-muted); }
#finder .finder .fc-form .fc-f select { background-color: #fff; color: var(--sa-ink); border: 1px solid #c7dde6; border-radius: 10px; font-family: var(--font); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 38, 58, 0.05); }
#finder .finder .fc-form .fc-f select:hover { border-color: var(--sa-teal); }
#finder .fc-fgrid { padding: 22px 28px 28px; }
/* Sidebar and cards */
#finder .fc-filter, #finder .fc-cardbox, #finder .fc-promo-admin { border-radius: 14px; border-color: var(--sa-line); box-shadow: 0 1px 2px rgba(16, 38, 58, 0.04); }
#finder .fc-filter > h2 { color: var(--sa-teal-deep); }
#finder .fc-check input { accent-color: var(--sa-teal); }
#finder .fc-card { border-radius: 16px; border-color: var(--sa-line); box-shadow: 0 1px 2px rgba(16, 38, 58, 0.04), 0 12px 28px -22px rgba(14, 107, 138, 0.35); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
#finder .fc-card:hover { border-color: #b9d6e1; box-shadow: 0 2px 4px rgba(16, 38, 58, 0.05), 0 18px 36px -20px rgba(14, 107, 138, 0.4); transform: translateY(-1px); }
#finder .fc-card.best { border: 2px solid var(--sa-green); }
#finder .fc-badge { background: linear-gradient(145deg, var(--sa-teal-soft), #d0e8f0); color: var(--sa-teal-deep); font-family: var(--display); border-radius: 14px; }
#finder .fc-name { color: var(--sa-teal-deep); font-family: var(--display); }
#finder .fc-tag { background: var(--sa-teal-soft); color: var(--sa-teal-dark); }
#finder .fc-tag.low { background: var(--sa-green); color: #fff; }
#finder .fc-tag.warn { background: #fdf6e3; color: #6b4c10; }
#finder .fc-price b { color: var(--sa-teal-deep); font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; }
#finder .finder .fc-btn { background: var(--sa-teal); border-color: var(--sa-teal); border-radius: 10px; }
#finder .finder .fc-btn:hover { background: var(--sa-teal-dark); filter: none; }
#finder .finder .fc-btn.ghost { background: #fff; color: var(--sa-teal-dark); border-color: var(--line-2); }
#finder .finder .fc-opt.on, #finder .finder .fc-opt:hover { border-color: var(--sa-teal); color: var(--sa-teal-dark); background: var(--sa-teal-soft); }
#finder .fc-sort { background: #fff; border-color: var(--sa-line); }
#finder .fc-hist span { background: #dbe8ee; } #finder .fc-hist span.in { background: #8cc3d6; }
#finder input[type=range] { accent-color: var(--sa-teal); }
#finder .fc-table tr.fc-total td { background: var(--sa-green-soft); color: var(--sa-teal-deep); }
#finder .fc-table th { background: var(--sa-teal-tint); color: var(--sa-teal-dark); }
#finder .fc-emi { color: var(--sa-teal); }
#finder .fc-top h1 { color: var(--sa-teal-deep); }

/* ---------------------------------------------------------------------------------------------
   Price lock: client form (lock.html and in the app), the "Lock price" panel, Quotes → Price locks
   --------------------------------------------------------------------------------------------- */
.lk-page { min-height: 100vh; }
.lk-main { max-width: 860px; margin: 0 auto; padding: 24px 16px 40px; }
.lk-foot { text-align: center; color: var(--sa-muted); font-size: 13px; margin-top: 18px; }
.lk-card { background: #fff; border: 1px solid var(--sa-line); border-radius: 16px; padding: 24px; box-shadow: 0 10px 28px -20px rgba(14, 107, 138, 0.35); }
.lk-quote { background: linear-gradient(135deg, var(--sa-teal-deep), var(--sa-teal)); color: #fff; border-radius: 14px; padding: 20px 22px; margin-bottom: 20px; }
.lk-quote h2 { color: #fff; margin: 2px 0 4px; font-size: 24px; }
.lk-quote p { margin: 0; opacity: .9; }
.lk-q-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.lk-eyebrow { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.lk-total { text-align: right; } .lk-total small { display: block; opacity: .8; font-size: 13px; } .lk-total b { font-size: 28px; font-family: var(--display); }
.lk-lines { margin-top: 14px; } .lk-lines summary { cursor: pointer; font-weight: 600; opacity: .95; }
.lk-lines table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.lk-lines td { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.18); } .lk-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.lk-lines td span { opacity: .75; } .lk-lines tr.t td { font-weight: 700; border-bottom: 0; }
.lk-acts { margin-top: 10px !important; font-size: 14px; }
.lk-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.lk-steps li { flex: 1; min-width: 120px; text-align: center; padding: 8px 10px; border-radius: 999px; background: var(--sa-teal-tint); color: var(--sa-muted); font-weight: 600; font-size: 14px; }
.lk-steps li.on { background: var(--sa-teal); color: #fff; }
.lk-form h3 { font-size: 16px; margin: 18px 0 8px; color: var(--sa-teal-deep); } .lk-form h3 small { font-weight: 500; color: var(--sa-muted); font-size: 13px; margin-left: 6px; }
.lk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.lk-row.three { grid-template-columns: repeat(3, 1fr); }
.lk-row.sh { grid-template-columns: 2fr 1.4fr 0.8fr 36px; align-items: end; }
.lk-f { display: flex; flex-direction: column; gap: 4px; } .lk-f span { font-size: 13.5px; font-weight: 600; color: var(--sa-ink); }
.lk-f input, .lk-f textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15.5px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--input); }
.lk-x { background: #fff !important; color: #b42318 !important; border: 1px solid #fecdca !important; padding: 8px 0 !important; height: 42px; }
.lk-shfoot { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lk-link { background: none !important; border: 0 !important; color: var(--sa-teal) !important; padding: 4px 0 !important; font-weight: 600; cursor: pointer; }
.lk-sum { font-weight: 700; font-size: 14px; } .lk-sum.ok { color: #067647; } .lk-sum.bad { color: #b42318; }
.lk-check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 10px; font-size: 14.5px; line-height: 1.45; } .lk-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.lk-err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; border-radius: 10px; padding: 10px 12px; font-weight: 500; }
.lk-pay { display: block; width: 100%; text-align: center; font-size: 17px; font-weight: 700; padding: 14px 18px; border-radius: 12px; background: var(--sa-green) !important; border-color: var(--sa-green) !important; color: #fff !important; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.lk-pay:hover { filter: brightness(.95); }
.lk-fine { color: var(--sa-muted); font-size: 13px; text-align: center; margin: 10px 0 0; }
.lk-done { text-align: center; padding: 10px 8px 4px; } .lk-done h2 { margin: 6px 0 8px; } .lk-done p { color: var(--sa-ink); line-height: 1.5; }
.lk-done.off h2 { color: var(--sa-muted); } .lk-done .lk-pay { max-width: 360px; margin: 14px auto 0; }
.lk-tick { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--sa-green-soft); color: var(--sa-green); font-size: 34px; line-height: 64px; font-weight: 700; }
.lk-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 30, 45, .55); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; }
.lk-overlay[hidden] { display: none; }
.lk-noscroll { overflow: hidden; }
.lk-modal { position: relative; background: #fff; border-radius: 18px; width: 100%; max-width: 860px; padding: 26px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.45); }
.lk-modal .lk-card { border: 0; box-shadow: none; padding: 0; }
.lk-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0 !important; border-radius: 50% !important; background: var(--sa-teal-tint) !important; color: var(--sa-teal-deep) !important; border: 0 !important; font-size: 16px; z-index: 2; }
.lk-sumline { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: var(--sa-teal-tint); border: 1px solid var(--sa-line); border-radius: 12px; padding: 14px 16px; margin: 10px 0 16px; flex-wrap: wrap; }
.lk-sumprice { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--sa-teal-deep); text-align: right; } .lk-sumprice small { display: block; font: 500 13px var(--font); color: var(--sa-muted); }
.lk-choice { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.lk-choice section { border: 1px solid var(--sa-line); border-radius: 14px; padding: 16px; } .lk-choice h3 { margin: 0 0 6px; font-size: 17px; }
.lk-linkrow { display: flex; gap: 8px; margin: 10px 0; } .lk-linkrow input { flex: 1; min-width: 0; font-size: 13.5px; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 10px; }
.lk-share { display: flex; gap: 8px; } .lk-share a { flex: 1; text-align: center; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--sa-teal-dark); font-weight: 600; text-decoration: none; }
.lk-share a:hover { background: var(--sa-teal-tint); }
.lk-note { background: var(--sand); color: var(--sand-fg); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }
.fc-btn.fc-lock { background: var(--sa-green) !important; border-color: var(--sa-green) !important; color: #fff !important; }
.lk-head { align-items: flex-start; gap: 12px; flex-wrap: wrap; } .lk-head input { max-width: 260px; }
.lk-settings { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.lk-set input { width: 90px; padding: 6px 8px; } .lk-set .msg { margin-left: 6px; }
.lk-table .lk-acts-cell { white-space: nowrap; } .lk-table .lk-acts-cell .link-btn { margin-right: 8px; } .link-btn.danger { color: #b42318 !important; }
.lk-detail td { background: var(--sa-teal-tint); }
.lk-detail dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 4px 0; } .lk-detail dt { font-weight: 600; color: var(--sa-muted); } .lk-detail dd { margin: 0; }
@media (max-width: 720px) {
  .lk-row, .lk-row.three, .lk-choice { grid-template-columns: 1fr; }
  .lk-row.sh { grid-template-columns: 1fr 1fr; } .lk-row.sh .lk-x { grid-column: 2; }
  .lk-card, .lk-modal { padding: 16px; } .lk-total { text-align: left; }
  .lk-detail dl { grid-template-columns: 1fr; }
}
.lk-modal .lk-card { margin-top: 22px; }
@media (max-width: 720px) { .lk-steps li { min-width: 0; font-size: 12.5px; padding: 7px 6px; } .lk-steps { flex-wrap: nowrap; } }

/* Public website (price.html): the calculator for clients, with "Lock this price". */
.site-public header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-cta { color: var(--sa-teal-dark); font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
.site-cta:hover { text-decoration: underline; }
.site-hero { max-width: 1180px; margin: 0 auto; padding: 34px 20px 10px; text-align: center; }
.site-hero .eyebrow { color: var(--sa-teal); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0 0 6px; }
.site-hero h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; margin: 0 0 12px; } .site-hero h2 .soft { color: var(--sa-teal); }
.site-hero .lede { max-width: 720px; margin: 0 auto 18px; color: var(--sa-muted); font-size: 17px; line-height: 1.5; }
.site-steps { display: flex; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.site-steps li { background: #fff; border: 1px solid var(--sa-line); border-radius: 999px; padding: 7px 14px 7px 8px; font-weight: 600; font-size: 14.5px; color: var(--sa-ink); }
.site-steps b { display: inline-block; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: var(--sa-teal); color: #fff; text-align: center; margin-right: 6px; font-size: 13px; }
.site-public #finder { display: block; }
.fc-lockbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, var(--sa-green-soft), #fff); border: 1px solid #b7e4c7; flex-wrap: wrap; }
.fc-lockbar b { display: block; font-size: 18px; color: var(--sa-ink); font-family: var(--display); } .fc-lockbar span { color: var(--sa-muted); font-size: 14.5px; }
.fc-lockbar .fc-lock { font-size: 17px; padding: 12px 22px; }
@media (max-width: 720px) { .site-cta { display: none; } .site-hero { padding: 22px 16px 6px; } .fc-lockbar .fc-lock { width: 100%; } }
/* Price lock: documents + Privacy Notice */
.lk-docs { display: grid; gap: 10px; margin-bottom: 6px; }
.lk-doc { border: 1px solid var(--sa-line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.lk-doc.need { border-color: #fedf89; background: #fffdf5; }
.lk-doc-h { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 6px; }
.lk-doc-h b { font-size: 15px; } .lk-req { font-size: 12.5px; font-weight: 700; color: #b54708; } .lk-doc:not(.need) .lk-req { color: #067647; }
.lk-file { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; border-top: 1px dashed var(--sa-line); }
.lk-file span { overflow-wrap: anywhere; } .lk-file small { color: var(--sa-muted); margin-left: 4px; }
.lk-upload { display: inline-flex; margin-top: 6px; cursor: pointer; }
.lk-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lk-upload span { display: inline-block; padding: 9px 14px; border-radius: 10px; border: 1px dashed var(--sa-teal); color: var(--sa-teal-dark); font-weight: 600; font-size: 14.5px; background: var(--sa-teal-tint); }
.lk-upload:focus-within span { box-shadow: 0 0 0 3px var(--ring); }
.lk-link.danger { color: #b42318 !important; }
.lk-fine.lk-left { text-align: left; }
.lk-check a { color: var(--sa-teal-dark); font-weight: 600; }
.legal h3 { color: var(--sa-teal-deep); margin: 20px 0 6px; } .legal p, .legal li { line-height: 1.6; font-size: 15.5px; } .legal ul { padding-left: 20px; }
.lk-detail .lk-file { border-top-color: rgba(14,107,138,.15); }

/* =============================================================================================
   UI/UX layer (Oct 2026): accessible states, 44px touch targets, transitions, skeletons,
   website steps (Package → Activities → Details & payment) and "Find by activity".
   Colours checked for WCAG AA: muted text #587080 on white 5.2:1, teal #0e6b8a 6.0:1,
   white on button green #15803d 5.0:1.
   ============================================================================================= */
:root { --btn-green: #15803d; --btn-green-dark: #116a32; --focus: 0 0 0 3px #fff, 0 0 0 5px #0e6b8a; --ease: 160ms cubic-bezier(.2,.7,.3,1); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: #0e6b8a; color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top var(--ease); }
.skip:focus { top: 12px; outline: none; box-shadow: var(--focus); }

/* Buttons and links: hover / focus / active / disabled, with smooth transitions */
.fc-btn, .lk-pay, .lk-link, .lk-x, .lk-close, .fc-mode, .fc-chip, .fc-opt, .fc-hits button, .lk-upload span, .link-btn, .site-cta, .lk-share a, #finder .fc-link, .pv-bar button {
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease), opacity var(--ease); }
.fc-btn:focus-visible, .lk-pay:focus-visible, .lk-link:focus-visible, .lk-x:focus-visible, .lk-close:focus-visible, .fc-mode:focus-visible, .fc-chip:focus-visible,
.fc-opt:focus-visible, .fc-hits button:focus-visible, .link-btn:focus-visible, .site-cta:focus-visible, .lk-share a:focus-visible, #finder .fc-link:focus-visible,
.lk-check input:focus-visible, .lk-f input:focus-visible, .lk-f textarea:focus-visible, #finder select:focus-visible, #finder input:focus-visible {
  outline: none; box-shadow: var(--focus); }
.fc-btn:active:not(:disabled), .lk-pay:active:not(:disabled), .fc-mode:active, .fc-chip:active, .fc-opt:active, .lk-x:active, .lk-close:active { transform: scale(.97); }
.fc-btn:disabled, .lk-pay:disabled, .lk-pay[aria-busy="true"], .fc-hits button:disabled, .link-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.lk-pay, .fc-btn.fc-lock { background: var(--btn-green) !important; border-color: var(--btn-green) !important; }
.lk-pay:hover:not(:disabled), .fc-btn.fc-lock:hover:not(:disabled) { background: var(--btn-green-dark) !important; border-color: var(--btn-green-dark) !important; filter: none; }
.lk-link:hover { text-decoration: underline; } .lk-link.danger:hover { color: #8f1b12 !important; }
.lk-x:hover { background: #fef3f2 !important; } .lk-close:hover { background: var(--sa-teal-soft) !important; }
.lk-upload:hover span { background: var(--sa-teal-soft); border-style: solid; }
.lk-upload input:disabled + span { opacity: .55; cursor: not-allowed; }
.lk-share a:active, .site-cta:active { transform: scale(.98); }

/* Spinner + skeletons */
.spin { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sk { background: linear-gradient(90deg, #e8eff2 25%, #f4f8fa 50%, #e8eff2 75%); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; border-radius: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-quote { height: 120px; margin-bottom: 18px; } .sk-line { height: 16px; margin: 10px 0; } .sk-line.short { width: 60%; } .sk-field { height: 46px; }
.fc-skel { max-width: 1320px; margin: 0 auto; padding: 0 16px 24px; } .sk-form { height: 200px; margin-bottom: 18px; border-radius: 16px; }
.fc-skel-body { display: grid; grid-template-columns: 300px 1fr; gap: 18px; } .sk-side { height: 420px; } .sk-card { height: 130px; margin-bottom: 14px; }
@media (max-width: 860px) { .fc-skel-body { grid-template-columns: 1fr; } .sk-side { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
.fc-error { text-align: center; padding: 28px 18px; } .fc-error h2 { margin: 0 0 6px; }
.lk-retry { max-width: 260px; margin: 12px auto 0; }

/* Start tabs: Calculate cost | Find by activity */
.fc-modes { display: flex; gap: 6px; max-width: 1320px; margin: 0 auto 12px; padding: 0 16px; }
.fc-mode { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--sa-line) !important; background: #fff !important; color: var(--sa-teal-dark) !important; font-weight: 700; font-size: 15px; cursor: pointer; }
.fc-mode:hover { background: var(--sa-teal-tint) !important; }
.fc-mode.on { background: var(--sa-teal) !important; border-color: var(--sa-teal) !important; color: #fff !important; }
.finder.fc-actsview .fc-side { display: none; } .finder.fc-actsview .fc-body { grid-template-columns: 1fr !important; }
.fc-allsearch h2 { margin: 0 0 10px; font-size: 22px; } .fc-allsearch input { width: 100%; min-height: 52px; font-size: 17px !important; }
.fc-acthelp p { margin: 6px 0; line-height: 1.9; }
.fc-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sa-line) !important; background: var(--sa-teal-tint) !important; color: var(--sa-teal-dark) !important; font-weight: 600; cursor: pointer; margin: 2px; }
.fc-chip:hover { background: var(--sa-teal-soft) !important; }
.fc-actgroup { background: #fff; border: 1px solid var(--sa-line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.fc-actgroup h3 { margin: 0 0 8px; font-size: 17px; }
.fc-actgroup ul { list-style: none; margin: 0; padding: 0; }
.fc-actgroup li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--sa-line); flex-wrap: wrap; }
.fc-actgo { display: flex; align-items: center; gap: 12px; } .fc-actgo b { font-size: 17px; }
.fc-tag.ok { background: #ecfdf3; color: #067647; }

/* Website package page: calculator form and filters step aside, steps on top */
.finder.fc-focus .fc-form, .finder.fc-focus .fc-side, .finder.fc-focus .fc-modes { display: none; }
.finder.fc-focus .fc-body { grid-template-columns: 1fr !important; }
.fc-stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; counter-reset: none; }
.fc-stepper li { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--sa-line); color: var(--sa-muted); font-weight: 600; font-size: 14.5px; }
.fc-stepper li span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sa-teal-tint); color: var(--sa-teal-dark); font-size: 13px; }
.fc-stepper li.on { border-color: var(--sa-teal); color: var(--sa-ink); box-shadow: 0 0 0 3px var(--ring); } .fc-stepper li.on span { background: var(--sa-teal); color: #fff; }
.fc-stepper li.done { color: #067647; } .fc-stepper li.done span { background: #ecfdf3; color: #067647; }
.fc-lockbar { position: sticky; bottom: 12px; z-index: 20; box-shadow: 0 12px 30px -18px rgba(8, 71, 94, .55); background: #fff; }
.fc-lockbar b { font-size: 22px; } .fc-lockhint { flex-basis: 100%; color: var(--sa-muted); font-size: 13.5px; }
.fc-lockhead { margin: 4px 0 12px; }

/* 44px touch targets on phones */
@media (max-width: 720px) {
  .fc-btn, .lk-pay, .lk-x, .lk-close, .link-btn, .lk-link, .fc-opt, #finder select, #finder input[type=search], #finder input[type=text], .lk-f input, .lk-share a, .lk-upload span, .fc-hits button { min-height: 44px; }
  .lk-x, .lk-close { min-width: 44px; } .lk-link, .link-btn { display: inline-flex; align-items: center; padding: 0 8px !important; }
  .lk-check input { width: 22px; height: 22px; }
  .fc-stepper { flex-direction: column; gap: 6px; } .fc-stepper li { font-size: 14px; }
  .fc-modes { padding: 0 16px; } .fc-mode { flex: 1; }
  .fc-actgo { width: 100%; justify-content: space-between; }
  .fc-lockbar { bottom: 8px; } .fc-lockbar .fc-lock { width: 100%; }
}
.finder.fc-actsview .fc-form { display: none; }
#finder .finder .fc-btn:focus-visible, #finder .finder button:focus-visible, #finder .finder select:focus-visible, #finder .finder input:focus-visible, #finder .finder a:focus-visible { outline: none; box-shadow: var(--focus) !important; }
@media (max-width: 720px) { #finder .finder select.fc-qty, #finder .finder .fc-qty { min-height: 44px; } }
body.in-steps .site-hero { display: none; }
body.in-steps #finder { padding-top: 18px; }
.fc-allsearch { padding: 18px 20px !important; margin-bottom: 12px; }
.fc-acthelp { padding: 16px 20px !important; }

/* ---- Audit fixes (Oct 2026) ---------------------------------------------------------------- */
/* Contrast (WCAG AA 4.5:1): footer 3.4 → 5.2, "Best price" 3.3 → 5.0, log IP 2.6 → 5.2, idle pill 4.47 → 6.1 */
html body .foot-legal, html body .foot-inner .foot-legal { color: #587080; }
html body .foot-legal a { color: var(--sa-teal-dark); }
html body #finder .fc-tag.low, .fc-tag.low { background: var(--btn-green); color: #fff; }
html body .log-ip { color: #587080; }
html body .pill.idle { color: #44596a; }
/* Headings kept in order; they look as before */
#finder .fc-top h2.fc-count { margin: 0; font-size: 26px; }
#finder .fc-act-sec h3.fc-h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--fc-muted); }
#finder .fc-sum h3.fc-h4 { margin: 0 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
/* Focus rings that were missing */
#finder #ffAllQ:focus-visible, #finder .finder input[type=search]:focus-visible { outline: none; border-color: var(--sa-teal) !important; box-shadow: var(--focus) !important; }
html body .link-btn:focus-visible, html body .link-btn.inline:focus-visible { outline: none; box-shadow: var(--focus) !important; border-radius: 6px; }
html body .subtab:focus-visible, html body nav .tab:focus-visible { outline: none; box-shadow: var(--focus) !important; }
.table-scroll:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }
/* States for staff controls */
html body button:disabled, html body .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
html body button:active:not(:disabled) { transform: scale(.98); }
html body button, html body nav .tab, html body .subtab, html body .link-btn { transition: background-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease), opacity var(--ease); }
@media (max-width: 720px) { #logoutBtn, #pwBannerBtn, html body nav .tab, html body .subtab { min-height: 44px; display: inline-flex; align-items: center; } }

/* ---- Premium polish: hierarchy, spacing, micro-interactions ---------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#finder .fc-card, .fc-actgroup, .fc-cardbox, .lk-card, .fc-stepper { animation: rise 220ms cubic-bezier(.2,.7,.3,1) both; }
#finder .fc-card:nth-of-type(2) { animation-delay: 30ms; } #finder .fc-card:nth-of-type(3) { animation-delay: 60ms; } #finder .fc-card:nth-of-type(4) { animation-delay: 90ms; }
#finder .fc-card, .fc-actgroup { transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
@media (hover: hover) {
  #finder .fc-card:hover, .fc-actgroup:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -22px rgba(8, 71, 94, .45); border-color: #c5d9e2; }
}
#finder .fc-card.best { border-color: #b7e4c7; box-shadow: 0 0 0 1px #b7e4c7, 0 14px 34px -26px rgba(21, 128, 61, .5); }
#finder .fc-price b, .fc-lockbar b, .lk-total b, .lk-sumprice { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
#finder .fc-opt.on { box-shadow: 0 0 0 2px var(--sa-teal); background: var(--sa-teal-tint); }
.fc-actgroup li { transition: background-color var(--ease); border-radius: 8px; }
@media (hover: hover) { .fc-actgroup li:hover { background: var(--sa-teal-tint); } }
.fc-lockbar { animation: barIn 260ms cubic-bezier(.2,.7,.3,1) both; }
@keyframes barIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fc-stepper li { transition: border-color var(--ease), box-shadow var(--ease), color var(--ease); }
.lk-doc { transition: border-color var(--ease), background-color var(--ease); }
.lk-file { animation: rise 200ms ease both; }
.site-hero h2 { text-wrap: balance; } .site-hero .lede { text-wrap: pretty; }
.fc-allsearch h2 label { cursor: text; }

/* ---- ui-ux-pro-max pass: trust signals, SVG icons, inline errors, progressive disclosure ---- */
.ic { display: inline-block; vertical-align: -3px; flex: none; }
.ic.lg { width: 28px; height: 28px; }
.site-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; padding: 0; margin: 0 auto 18px; max-width: 980px; }
.site-trust li { display: flex; align-items: center; gap: 8px; color: var(--sa-ink); font-size: 14.5px; }
.site-trust svg { color: var(--btn-green); flex: none; }
.site-trust b { font-weight: 700; }
.fc-flags > div { display: flex; gap: 8px; align-items: flex-start; } .fc-flags .ic { margin-top: 2px; }
.fc-flags .ok .ic { color: var(--btn-green); } .fc-flags > div:not(.ok) .ic { color: #b54708; } .fc-flags .bad .ic { color: #b42318; }
.fc-sales-ic { display: grid; place-items: center; }
.fc-sort .ic { color: var(--sa-teal); margin-right: 2px; }
.fc-tag.promo .ic { width: 13px; height: 13px; vertical-align: -2px; }
.fc-secure { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #067647 !important; font-size: 13.5px; font-weight: 600; }
.fc-secure .ic { width: 15px; height: 15px; }
/* More options (website calculator) */
.finder.fc-public:not(.fc-more-open) [data-ffmore] { display: none; }
.fc-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 4px 0 0; padding: 0 14px; border-radius: 10px; border: 1px dashed var(--sa-teal) !important; background: var(--sa-teal-tint) !important; color: var(--sa-teal-dark) !important; font-weight: 700; cursor: pointer; transition: background-color var(--ease), border-color var(--ease); }
.fc-more small { font-weight: 500; color: var(--sa-muted); }
.fc-more:hover { background: var(--sa-teal-soft) !important; border-style: solid !important; }
.fc-more:focus-visible { outline: none; box-shadow: var(--focus); }
.fc-more[aria-expanded="true"] { border-style: solid !important; }
@media (max-width: 720px) { .fc-more { width: 100%; justify-content: flex-start; flex-wrap: wrap; } }
/* Inline field errors + error summary */
.lk-f.bad input, .lk-f.bad textarea { border-color: #b42318 !important; background: #fffbfa; }
.lk-ferr { display: flex; gap: 6px; align-items: flex-start; color: #b42318; font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.lk-ferr .ic { width: 15px; height: 15px; margin-top: 1px; }
label.lk-check + .lk-ferr { margin: -6px 0 10px 32px; }
.lk-errsum { border: 2px solid #b42318; background: #fef3f2; border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; }
.lk-errsum:focus { outline: none; box-shadow: var(--focus); }
.lk-errsum h3 { margin: 0 0 6px !important; color: #8f1b12 !important; font-size: 16px !important; }
.lk-errsum ul { margin: 0; padding-left: 18px; } .lk-errsum a { color: #8f1b12; font-weight: 600; }
.lk-errsum a:hover { text-decoration: underline; } .lk-errsum a:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.lk-tick .ic { width: 34px; height: 34px; stroke-width: 2.5; vertical-align: middle; }
.lk-req .ic { width: 13px; height: 13px; vertical-align: -2px; }
.lk-x .ic { width: 16px; height: 16px; vertical-align: middle; }
.lk-file .ic { color: var(--sa-teal); }
#finder .finder.fc-public:not(.fc-more-open) [data-ffmore] { display: none !important; }
.lk-f span.lk-ferr { color: #b42318; font-size: 13.5px; font-weight: 600; }
.lk-errsum, .lk-f input, .lk-f textarea, .lk-check input { scroll-margin-top: 110px; }
#finder .fc-form > .fc-more { margin: 0 28px 22px; } @media (max-width: 720px) { #finder .fc-form > .fc-more { margin: 0 16px 16px; width: calc(100% - 32px); } }

/* =============================================================================================
   AMANA DESIGN SYSTEM v2 (Oct 2026) — single source of truth for colour, type, space, radius,
   shadow. Earlier layers above still use --sa-* / --fc-* / --accent names: they are all mapped
   here, so changing a token below changes it everywhere (staff app, website, lock form).
   Contrast (WCAG AA): primary on white 8.8:1 · text on page 13.5:1 · muted on page 5.9:1 ·
   white on success 5.4:1 · warning on white 5.2:1 · error on white 6.6:1.
   ============================================================================================= */
:root {
  /* colour */
  --c-primary: #0B5263; --c-primary-hover: #083D4A; --c-text: #172B3A; --c-muted: #57606A;
  --c-page: #F4F7F9; --c-card: #FFFFFF; --c-border: #D1D9E0; --c-selected: #E5F2F2;
  --c-success: #18794E; --c-warning: #A15C00; --c-error: #B42318;
  --c-success-bg: #EAF5EF; --c-warning-bg: #FFF8EB; --c-error-bg: #FEF3F2;
  /* type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --display: var(--font); --mono: var(--font);
  --fs-page: 28px; --fs-section: 20px; --fs-body: 15px; --fs-dense: 13.5px;
  /* space (8px grid), radius, shadow, control height */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --r-card: 12px; --r-ctl: 10px; --shadow: 0 1px 3px rgba(23, 43, 58, 0.08); --shadow-lift: 0 6px 18px -8px rgba(23, 43, 58, 0.18);
  --ctl-h: 46px;
  /* map older layers onto the tokens */
  --sa-teal: var(--c-primary); --sa-teal-dark: var(--c-primary-hover); --sa-teal-deep: var(--c-primary-hover);
  --sa-teal-soft: var(--c-selected); --sa-teal-tint: #F0F7F7; --sa-green: var(--c-success); --sa-green-soft: var(--c-success-bg);
  --sa-bg: var(--c-page); --sa-line: var(--c-border); --sa-ink: var(--c-text); --sa-muted: var(--c-muted);
  --ink: var(--c-text); --ink-2: #2E4252; --muted: var(--c-muted); --line: var(--c-border); --line-2: #C2CCD5; --canvas: var(--c-page); --input: #FFFFFF;
  --accent: var(--c-primary); --accent-dark: var(--c-primary-hover); --accent-2: var(--c-primary); --accent-soft: var(--c-selected); --ring: rgba(11, 82, 99, 0.2);
  --ok: var(--c-success); --best: var(--c-success-bg); --danger: var(--c-error);
  --btn-green: var(--c-success); --btn-green-dark: #126040;
  --fc-bg: var(--c-page); --fc-surface: var(--c-card); --fc-line: var(--c-border); --fc-muted: var(--c-muted); --fc-fg: var(--c-text);
  --fc-accent: var(--c-primary); --fc-accent-soft: var(--c-selected); --fc-sand: var(--c-warning-bg); --fc-sand-fg: var(--c-warning);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--c-primary);
}
html body { font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; color: var(--c-text); background: var(--c-page); }
html body h1, html body h2, html body h3, html body h4 { font-family: var(--font); color: var(--c-text); letter-spacing: -0.01em; }
/* calm surfaces: one flat card style, subtle shadow, no gradients or glass */
html body .card, #finder .fc-cardbox, #finder .fc-card, #finder .fc-form, .fc-filter, .lk-card, .fc-actgroup, .lk-modal, .fc-lockbar, .fc-stepper li, .lk-doc {
  background: var(--c-card) !important; border: 1px solid var(--c-border) !important; border-radius: var(--r-card) !important; box-shadow: var(--shadow) !important; backdrop-filter: none !important; }
#finder .fc-form { background-image: none !important; }
#finder .fc-card.best { border-color: var(--c-success) !important; box-shadow: 0 0 0 1px var(--c-success), var(--shadow) !important; }
@media (hover: hover) { #finder .fc-card:hover, .fc-actgroup:hover { box-shadow: var(--shadow-lift) !important; transform: translateY(-1px); } }
.lk-quote { background: var(--c-primary) !important; border-radius: var(--r-card); }
.fc-lockbar { background: var(--c-card) !important; border-color: var(--c-success) !important; }
.site-hero h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.site-hero .lede { font-size: 16.5px; color: var(--c-muted); }
#finder .fc-top h2.fc-count, #finder .fc-form h2, .fc-allsearch h2 { font-size: var(--fs-page) !important; font-weight: 800; }
#finder .fc-cardbox h2, .lk-form h3 { font-size: var(--fs-section); }
#finder .fc-table, html body table.grid { font-size: var(--fs-dense); }
/* controls: one height, one radius, one focus ring */
#finder .finder select, #finder .finder input[type=search], #finder .finder input[type=text], .lk-f input, html body input[type=text], html body input[type=search], html body input[type=password], html body input[type=email], html body input[type=number], html body select {
  min-height: var(--ctl-h); border-radius: var(--r-ctl); border: 1px solid var(--c-border); background-color: #fff; color: var(--c-text); }
@media (min-width: 721px) { #finder .finder select.fc-qty { min-height: 38px; } }
html body button, .fc-btn, .lk-pay { border-radius: var(--r-ctl) !important; }
html body button:not(.link-btn):not(.subtab):not(.tab):not(.lk-link):not(.fc-link):not(.lk-x):not(.lk-close):not(.fc-opt):not(.fc-chip):not(.fc-mode):not([data-ffadd]) { min-height: 44px; }
.fc-btn:not(.ghost):not(.fc-lock) { background: var(--c-primary) !important; border-color: var(--c-primary) !important; color: #fff !important; }
.fc-btn:not(.ghost):not(.fc-lock):hover:not(:disabled) { background: var(--c-primary-hover) !important; border-color: var(--c-primary-hover) !important; }
.fc-btn.ghost { background: #fff !important; color: var(--c-primary) !important; border: 1px solid var(--c-border) !important; }
.fc-btn.ghost:hover { background: var(--c-selected) !important; border-color: var(--c-primary) !important; }
/* status: colour plus text/icon, never colour alone */
.pill.ok, .fc-tag.ok { background: var(--c-success-bg) !important; color: var(--c-success) !important; }
.pill.warn, .fc-tag.warn { background: var(--c-warning-bg) !important; color: var(--c-warning) !important; }
.pill.bad, .fc-tag.bad { background: var(--c-error-bg) !important; color: var(--c-error) !important; }
.fc-tag.low { background: var(--c-success) !important; color: #fff !important; }
.lk-ferr, .lk-f span.lk-ferr, .lk-errsum h3, .lk-errsum a { color: var(--c-error) !important; }
.lk-errsum { border-color: var(--c-error); background: var(--c-error-bg); }
.site-trust svg, .fc-secure { color: var(--c-success) !important; }
.fc-mode.on, .fc-stepper li.on span { background: var(--c-primary) !important; border-color: var(--c-primary) !important; }
html body nav .tab.active { background: var(--c-primary); box-shadow: none; }
html body header.top { border-bottom: 3px solid var(--c-primary); box-shadow: var(--shadow); }
.skip { background: var(--c-primary); }

/* ---- Accounts: customer sign-up + website account bar ---------------------------------------- */
.site-user { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.site-user[hidden] { display: none; }
.pm-curr { display: flex; gap: 2px; margin-left: auto; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.pm-curr-btn { min-height: 30px; min-width: 38px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.75); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.pm-curr-btn.on { background: #fff; color: #172B3A; }
.su-name { font-weight: 600; color: var(--c-text); margin-right: 4px; }
.su-btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--c-primary); background: var(--c-primary); color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: background-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease); }
.su-btn:hover { background: var(--c-primary-hover); } .su-btn:active { transform: scale(.98); } .su-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.su-btn.ghost { background: #fff; color: var(--c-primary); border-color: var(--c-border); } .su-btn.ghost:hover { background: var(--c-selected); border-color: var(--c-primary); }
@media (max-width: 720px) { .su-name { display: none; } .su-btn { padding: 0 10px; font-size: 14px; } }
.auth-switch { margin: 4px 0 0; color: var(--c-muted); font-size: 14.5px; }
.auth-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--c-text); }
.auth-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.field.bad input, .auth-check.bad input { border-color: var(--c-error) !important; }
.su-err { color: var(--c-error); font-size: 13.5px; font-weight: 600; }
.auth-check .su-err { flex-basis: 100%; }
.auth-check { flex-wrap: wrap; }
.my-locks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.my-locks li { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 12px 14px; }

/* =============================================================================================
   LEDGER LAYER (tasteskill app style "achromatic-ledger", brand palette kept) — Oct 2026
   Ink on a blue-grey ground, white flat cards with a 1px border (no shadows at rest), radius 8 on
   cards and 6 on controls, figures in tabular numerals. The brand teal is the one data hue: it goes
   on the prices (the screen's main data) and the one primary action; the chrome stays ink and grey.
   ============================================================================================= */
:root { --r-card: 8px; --r-ctl: 6px; --c-rule: #E3E8ED; --c-track: #E8EDF1; --c-bar: #A9B5BF; }
#finder, .lk-card, html body table, .fc-ladder, .my-locks { font-variant-numeric: tabular-nums; }
/* flat surfaces: a border, never a resting shadow */
html body .card, #finder .fc-cardbox, #finder .fc-card, #finder .fc-form, .fc-filter, .lk-card, .fc-actgroup, .fc-stepper li, .lk-doc, html body .auth, html body .auth-form, .fc-lockbar { box-shadow: none !important; }
#finder .fc-card.best { box-shadow: none !important; border-color: var(--c-primary) !important; }
@media (hover: hover) { #finder .fc-card:hover, .fc-actgroup:hover { box-shadow: none !important; transform: none; border-color: #B9C6CF !important; } }
.fc-lockbar { box-shadow: 0 -2px 12px rgba(23, 43, 58, 0.06) !important; }   /* it floats (sticky) */
/* buttons: flat fill, no shadow except the focus ring */
html body button:not(:focus-visible), .fc-btn:not(:focus-visible), .lk-pay:not(:focus-visible), .su-btn:not(:focus-visible), .fc-mode:not(:focus-visible), html body nav .tab:not(:focus-visible) { box-shadow: none !important; }
/* no tiny tracked capitals anywhere in the calculator, the lock form or tables */
#finder *, .lk-card *, html body table th, .fc-emi, .lk-eyebrow, .eyebrow { text-transform: none !important; letter-spacing: normal !important; }
#finder .fc-emi { font-size: 13px !important; font-weight: 600; color: var(--c-muted); margin: 14px 0 4px; }
#finder .fc-table th, html body table.grid th { font-size: 12.5px !important; font-weight: 600; color: var(--c-muted) !important; background: transparent !important; }
/* website intro: a compact title row, left-aligned on the page's grid */
.site-hero { max-width: 1320px; margin: 0 auto; padding: 28px 16px 8px; text-align: left; }
.site-hero .site-h1 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 6px; color: var(--c-text); }
.site-hero .lede { font-size: 16px; margin: 0 0 12px; max-width: 72ch; color: var(--c-text); }
.site-trust { justify-content: flex-start; margin: 0 0 4px; gap: 6px 22px; }
.site-trust li { font-size: 14px; color: var(--c-muted); } .site-trust b { color: var(--c-text); font-weight: 600; }
.brand { display: flex; align-items: center; margin: 0; }
/* calculator form: one compact block (label 14/500 above a 40px control) */
#finder .fc-form .fc-h { padding: 16px 20px 10px !important; }
#finder .fc-form .fc-h h2 { font-size: 20px !important; font-weight: 700; }
#finder .fc-fgrid { gap: 12px 16px !important; padding: 4px 20px 18px !important; }
#finder .fc-f > span { font-size: 14px; font-weight: 500; } #finder .fc-f small { font-size: 12.5px; color: var(--c-muted); font-weight: 400; }
#finder .finder .fc-fgrid select, #finder .finder .fc-fgrid input { min-height: 40px !important; height: 40px; font-size: 15px; }
.fc-modes { margin-bottom: 10px; } .fc-mode { min-height: 40px; border-radius: var(--r-ctl) !important; }
/* results title row: count, the finding, the context */
#finder .fc-top h2.fc-count { font-size: 24px !important; font-weight: 700; }
.fc-finding { margin: 4px 0 2px; font-size: 15.5px; color: var(--c-text); }
.fc-finding b { font-weight: 600; } .fc-finding .fc-money { color: var(--c-primary); font-weight: 700; }
#finder .fc-price b { color: var(--c-primary); }
/* the price ladder */
.fc-ladder { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 14px 16px 10px; margin: 0 0 14px; }
.fc-ladder-h { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--c-muted); }
.fc-ladder ol { list-style: none; margin: 0; padding: 0; }
.fc-lrow { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(120px, 190px) 1fr 104px 70px; align-items: center; gap: 12px; min-height: 34px; padding: 0 8px; border-radius: var(--r-ctl); cursor: pointer; transition: background-color var(--ease); }
.fc-lrow:hover { background: var(--c-selected); } .fc-lrow:active { transform: scale(.995); }
.fc-lrow:focus-visible { outline: none; box-shadow: var(--focus) !important; }
.fc-lname { font-size: 14.5px; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-lbar { height: 8px; background: var(--c-track); border-radius: 4px; overflow: hidden; }
.fc-lbar span { display: block; height: 100%; background: var(--c-bar); border-radius: 4px; }
.fc-lrow.lo .fc-lbar span { background: var(--c-primary); } .fc-lrow.lo .fc-lname, .fc-lrow.lo .fc-lval { font-weight: 700; }
.fc-lval { text-align: right; font-size: 14.5px; color: var(--c-text); } .fc-lrow.lo .fc-lval { color: var(--c-primary); }
.fc-ldiff { text-align: right; font-size: 13px; color: var(--c-muted); }
@media (max-width: 720px) {
  .fc-lrow { grid-template-columns: 1fr 96px; grid-template-rows: auto auto; row-gap: 4px; padding: 6px 8px; }
  .fc-lbar { grid-column: 1 / -1; grid-row: 2; } .fc-ldiff { display: none; }
}
/* lock form: the reference as plain text, no eyebrow */
.lk-ref { margin: 0 0 2px; font-size: 14px; opacity: .9; }
.lk-quote { border-radius: var(--r-card) !important; }
/* sign-in / sign-up: flat panels, solid type */
html body .auth-brand { background: var(--c-selected) !important; background-image: none !important; }
html body .auth-brand h2, html body .search-hero h2 { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: var(--c-text) !important; }
html body .auth-brand p { font-size: 16px !important; opacity: 1; color: var(--c-text); }
html body .auth { border: 1px solid var(--c-border) !important; border-radius: var(--r-card) !important; }
html body .site-foot p, html body .foot-legal { font-size: 14px !important; line-height: 1.5; }
/* one frame: the intro sits on the same outer margins as the calculator */
.site-hero { max-width: none; padding: 26px 32px 6px; }
@media (max-width: 720px) { .site-hero { padding: 20px 16px 4px; } }
.site-public #finder .fc-form .fc-h { padding-top: 12px !important; }
/* the calculator's own variables follow the design tokens (they were set locally on .finder) */
#finder .finder, .finder {
  --fc-bg: var(--c-page); --fc-surface: var(--c-card); --fc-line: var(--c-border); --fc-muted: var(--c-muted); --fc-fg: var(--c-text);
  --fc-accent: var(--c-primary); --fc-accent-soft: var(--c-selected); --fc-sand: var(--c-warning-bg); --fc-sand-fg: var(--c-warning);
  --fc-danger: var(--c-error); --fc-input: #FFFFFF; --fc-sans: var(--font); --fc-mono: var(--font);
}
html body { font-variant-numeric: tabular-nums; }
/* one left edge for intro, tabs and cards (the page's main already supplies the outer margin) */
.site-hero { padding-left: 0 !important; padding-right: 0 !important; }
.fc-modes { max-width: none !important; padding: 0 !important; margin: 0 0 10px !important; }
.fc-mode { white-space: nowrap; }
@media (max-width: 720px) {
  #finder .fc-fgrid { grid-template-columns: 1fr 1fr !important; gap: 10px 12px !important; padding: 4px 14px 14px !important; }
  #finder .fc-f small { display: none; }
  #finder .fc-form .fc-h { padding: 10px 14px 6px !important; }
  .site-public .brand-app { font-size: 16px; }
}
@media (max-width: 720px) {
  #finder .finder .fc-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #finder .finder .fc-fgrid .fc-f, #finder .finder .fc-fgrid select, #finder .finder .fc-fgrid input { min-width: 0; width: 100%; }
}
#finder .finder .fc-fgrid { align-items: end; }

/* =============================================================================================
   PAGE LAYER (Oct 2026): real picture of the place, larger type, the quote as a document.
   ============================================================================================= */
/* sign-in / sign-up: the city on one side, the title and form on the other, full height */
html body .auth.auth-v3 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); max-width: none; width: 100%; margin: 0; min-height: calc(100vh - 78px); border: 0 !important; border-radius: 0 !important; background: var(--c-card); }
html body main:has(> .auth-v3:not([hidden])) { padding: 0 !important; max-width: none !important; }
.auth-photo { margin: 0; position: relative; background: var(--c-primary-hover); min-height: 100%; }
.auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; display: block; }
.auth-photo figcaption { position: absolute; left: 24px; bottom: 20px; color: #fff; font-size: 14px; background: rgba(8, 30, 40, 0.62); padding: 6px 10px; border-radius: 4px; }
.auth-side { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 5vw, 72px); gap: 8px; }
.auth-side > * { width: 100%; max-width: 440px; }
html body .auth-v3 .auth-brand { background: none !important; padding: 0 !important; text-align: left; color: var(--c-text); }
html body .auth-v3 .auth-logo { width: 150px; height: auto; margin: 0 0 28px; display: block; }
html body .auth-v3 .auth-brand h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 12px; color: var(--c-text); }
html body .auth-v3 .auth-brand p { font-size: 17px !important; line-height: 1.5; margin: 0 0 20px; color: var(--c-text); }
html body .auth-v3 .auth-form { padding: 0 !important; background: none; gap: 14px; }
html body .auth-v3 .auth-form h2 { font-size: 20px !important; margin: 4px 0 0; }
@media (max-width: 860px) {
  html body .auth.auth-v3 { grid-template-columns: 1fr; min-height: 0; }
  .auth-photo { height: 210px; min-height: 0; }
  .auth-photo figcaption { left: 16px; bottom: 12px; font-size: 13px; }
  .auth-side { padding: 28px 16px 40px; }
  html body .auth-v3 .auth-logo { display: none; }
}
/* website: title beside the city, calculator straight under it */
.site-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: stretch; padding-top: 28px !important; padding-bottom: 18px !important; }
.site-hero-text { display: flex; flex-direction: column; justify-content: center; }
.site-hero .site-h1 { font-size: clamp(30px, 3.4vw, 46px) !important; line-height: 1.04 !important; letter-spacing: -0.03em !important; font-weight: 800 !important; margin-bottom: 12px !important; }
.site-hero .lede { font-size: 17px !important; }
.site-hero-photo { margin: 0; border-radius: var(--r-card); overflow: hidden; min-height: 220px; max-height: 300px; background: var(--c-primary-hover); }
.site-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 58%; display: block; }
@media (max-width: 860px) { .site-hero { grid-template-columns: 1fr; gap: 16px; } .site-hero-photo { min-height: 160px; max-height: 180px; order: -1; } }
/* the quote as a quotation document */
.lk-docq { background: var(--c-card) !important; color: var(--c-text) !important; border: 1px solid var(--c-border); border-top: 6px solid var(--c-primary); border-radius: var(--r-card) !important; padding: 20px 22px 14px !important; }
.lk-docq-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--c-rule); }
.lk-docq .lk-ref { color: var(--c-muted); font-size: 14px; margin: 0 0 4px; opacity: 1; }
.lk-docq h2 { color: var(--c-text) !important; font-size: 28px !important; margin: 0 !important; letter-spacing: -0.02em; }
.lk-docq .lk-total small { color: var(--c-muted); font-size: 13.5px; opacity: 1; }
.lk-docq .lk-total b { color: var(--c-primary); font-size: 30px; }
.lk-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin: 14px 0 4px; }
.lk-fields dt { font-size: 13px; color: var(--c-muted); margin-bottom: 2px; } .lk-fields dd { margin: 0; font-size: 15.5px; font-weight: 600; }
@media (max-width: 720px) { .lk-fields { grid-template-columns: 1fr 1fr; } .lk-docq h2 { font-size: 24px !important; } .lk-docq .lk-total b { font-size: 24px; } }
.lk-docq .lk-lines summary { color: var(--c-primary); }
.lk-docq .lk-lines table { color: var(--c-text); }
.lk-docq .lk-lines th { text-align: left; font-size: 12.5px; color: var(--c-muted); font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--c-rule); }
.lk-docq .lk-lines td { border-bottom: 1px solid var(--c-rule) !important; padding: 7px 0; }
.lk-docq .lk-lines .num { text-align: right; } .lk-docq .lk-lines td span { color: var(--c-muted); }
.lk-docq .lk-lines tfoot td { font-weight: 700; border-bottom: 0 !important; }
/* footer credit */
.foot-credit { font-size: 13px !important; color: var(--c-muted); margin-top: 6px; }
.foot-credit a, .foot-legal a { color: var(--c-primary); }
html body #loginView.auth.auth-v3 { max-width: none !important; width: 100%; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible; }
@media (max-width: 860px) { html body #loginView.auth.auth-v3 { display: grid; } }
/* page checks: no hairlines, readable footer, a button on the first phone screen, a little life */
html body .auth-v3 .auth-brand, html body .auth-v3 .auth-brand * { border: 0 !important; }
html body .site-foot { border-top: 0 !important; background: #E9EEF2; }
html body .site-foot p, html body .foot-legal, html body .foot-credit { font-size: 15px !important; border: 0 !important; }
html body .foot-inner .foot-legal { border-bottom: 0 !important; }
@media (max-width: 860px) {
  .auth-photo { height: 132px; }
  html body .auth-v3 .auth-brand h1 { font-size: 30px; margin-bottom: 8px; }
  html body .auth-v3 .auth-brand p { font-size: 16px !important; margin-bottom: 12px; }
  .auth-side { padding-top: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes bmRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes bmDrift { from { transform: scale(1.08); } to { transform: scale(1); } }
  .auth-v3:not([hidden]) .auth-photo img, .site-hero-photo img { animation: bmDrift 9s cubic-bezier(.2,.6,.3,1) both; }
  .auth-v3:not([hidden]) .auth-side > * > *, .site-hero-text > * { animation: bmRise .55s cubic-bezier(.2,.7,.3,1) both; }
  .auth-v3:not([hidden]) .auth-side > * > *:nth-child(2), .site-hero-text > *:nth-child(2) { animation-delay: 70ms; }
  .auth-v3:not([hidden]) .auth-side > * > *:nth-child(3), .site-hero-text > *:nth-child(3) { animation-delay: 140ms; }
  .auth-v3:not([hidden]) .auth-side > * > *:nth-child(4) { animation-delay: 210ms; }
  .auth-v3:not([hidden]) .auth-side > * > *:nth-child(5) { animation-delay: 280ms; }
  .auth-v3:not([hidden]) .auth-side > * > *:nth-child(n+6) { animation-delay: 340ms; }
  .auth-photo figcaption { animation: bmRise .6s .5s both; }
}
.auth-photo, .site-hero-photo { overflow: hidden; }
html body .site-foot, html body .site-foot p, html body .foot-legal, html body .foot-credit { color: #3F4A54 !important; }
@media (max-width: 860px) { .auth-side { padding-left: 16px !important; padding-right: 16px !important; } }
.auth-side { padding: 48px 32px 48px clamp(32px, 5vw, 72px) !important; } .auth-side > * { max-width: 560px; }
@media (max-width: 860px) { .auth-side { padding: 20px 16px 40px !important; } }
.site-hero-photo { max-height: 232px !important; min-height: 200px; } .site-hero { padding-top: 22px !important; padding-bottom: 14px !important; }

/* ================= STOREFRONT LAYER (customer website only) =================
   Buy-page look: white ground, soft grey tiles without borders, large type,
   pill buttons, product tiles in a grid, filters behind a button. */
.site-public {
  --sf-ground: #ffffff; --sf-tile: #f5f5f7; --sf-ink: #1d1d1f; --sf-muted: #6e6e73;
  --sf-line: #d2d2d7; --sf-r: 18px; --sf-r-sm: 12px;
  background: var(--sf-ground); color: var(--sf-ink);
  -webkit-font-smoothing: antialiased; letter-spacing: -0.011em;
}
.site-public .top { background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); box-shadow: none; position: sticky; top: 0; z-index: 50; }
.site-public .site-hero { background: var(--sf-ground); padding-block: clamp(40px, 7vw, 96px) clamp(24px, 4vw, 48px); }
.site-public .site-h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; color: var(--sf-ink); }
.site-public .lede { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; color: var(--sf-muted); max-width: 34ch; }
.site-public .site-hero-photo img { border-radius: 28px; }
.site-public .site-trust li { color: var(--sf-ink); }

/* Configurator: the form becomes a row of large tiles */
.site-public .finder { background: transparent; }
  background: #fff; border: 1px solid transparent; border-radius: var(--sf-r-sm); min-height: 56px;
  font-size: 19px; font-weight: 600; color: var(--sf-ink); box-shadow: 0 0 0 1px rgba(0,0,0,.06);
  transition: box-shadow .2s ease, border-color .2s ease;
}

/* Results header */
.site-public #finder .fc-count { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; }
.site-public #finder .fc-top { align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.site-public #finder .fc-sort select { border-radius: 999px; background: var(--sf-tile); border: 0; min-height: 44px; padding-inline: 16px 36px; }
  border: 0; background: var(--sf-tile); color: var(--sf-ink); border-radius: 999px; min-height: 44px;
  padding: 0 20px; font: 600 15px/1 inherit; cursor: pointer; margin-right: 8px; transition: background .2s;
}

/* Filters live behind the button */

/* Product tiles */
.site-public #finder .fc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.site-public #finder .fc-tiles .fc-card {
  display: flex; flex-direction: column; gap: 14px; background: var(--sf-tile); border: 0; border-radius: var(--sf-r);
  box-shadow: none; padding: 28px; margin: 0; position: relative; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.site-public #finder .fc-tiles .fc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.site-public #finder .fc-tiles .fc-card.best { background: var(--sf-tile); box-shadow: inset 0 0 0 2px var(--c-primary); }
.site-public #finder .fc-tiles .fc-badge { width: 48px; height: 48px; border-radius: 14px; font-size: 15px; background: #fff; color: var(--sf-ink); }
.site-public #finder .fc-tiles .fc-info h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.site-public #finder .fc-tiles .fc-name { font: inherit; color: var(--sf-ink); text-align: left; }
.site-public #finder .fc-tiles .fc-sub { font-size: 15px; color: var(--sf-muted); margin-top: 6px; }
.site-public #finder .fc-tiles .fc-tag { border-radius: 999px; background: #fff; border: 0; font-size: 12px; padding: 4px 10px; }
.site-public #finder .fc-tiles .fc-tag.low { background: var(--c-primary); color: #fff; }
.site-public #finder .fc-tiles .fc-opts { display: flex; flex-direction: column; gap: 6px; }
.site-public #finder .fc-tiles .fc-opt { border-radius: var(--sf-r-sm); background: #fff; border: 0; min-height: 44px; text-align: left; justify-content: space-between; display: flex; align-items: center; padding: 0 14px; }
.site-public #finder .fc-tiles .fc-price { margin-top: auto; text-align: left; border: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: none; }
.site-public #finder .fc-tiles .fc-price b { font-size: clamp(28px, 2.6vw, 34px); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; color: var(--sf-ink); }
.site-public #finder .fc-tiles .fc-price small { color: var(--sf-muted); font-size: 13px; }
.site-public #finder .fc-tiles .fc-btn { margin-top: 14px; border-radius: 999px; min-height: 44px; padding: 0 24px; font-size: 16px; background: var(--c-primary); color: #fff; border: 0; width: 100%; transition: background .2s, transform .1s; }
.site-public #finder .fc-tiles .fc-btn:hover { background: var(--c-primary-hover, #083D4A); }
.site-public #finder .fc-tiles .fc-btn:active { transform: scale(.98); }
.site-public #finder .fc-tiles .fc-link { color: var(--c-primary); min-height: 44px; font-size: 15px; }
.site-public #finder .fc-tiles .fc-break { background: #fff; border-radius: var(--sf-r-sm); padding: 12px; overflow-x: auto; }

/* Chosen package / lock: a calm summary like a bag page */
.site-public #finder .fc-cardbox, .site-public .lk-card, .site-public .lk-quote { background: var(--sf-tile); border: 0; border-radius: var(--sf-r); box-shadow: none; }
.site-public .lk-docq { background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.site-public #finder .fc-public button.primary, .site-public .lk-btn, .site-public [data-fflock] { border-radius: 999px; min-height: 48px; font-size: 17px; padding: 0 28px; }
.site-public .site-foot { background: var(--sf-tile); border-top: 0; color: var(--sf-muted); font-size: 12px; }

@keyframes sfIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1080px) { .site-public #finder .fc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .site-public #finder .fc-tiles { grid-template-columns: 1fr; gap: 14px; } .site-public #finder .fc-tiles .fc-card { padding: 22px; } }
.site-public #finder .fc-top { display: flex; justify-content: space-between; }
.site-public #finder .fc-top > div:first-child { flex: 1 1 420px; }
.site-public #finder .fc-tiles .fc-badge { display: none !important; }
.site-public #finder .fc-tiles .fc-card, .site-public #finder .fc-cardbox { background: var(--sf-tile) !important; border: 0 !important; border-radius: var(--sf-r) !important; }
.site-public #finder .fc-tiles .fc-card.best { box-shadow: inset 0 0 0 2px var(--c-primary) !important; }
@media (hover: hover) { .site-public #finder .fc-tiles .fc-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.08) !important; transform: translateY(-3px); } .site-public #finder .fc-tiles .fc-card.best:hover { box-shadow: inset 0 0 0 2px var(--c-primary), 0 14px 34px rgba(0,0,0,.08) !important; } }
.site-public #finder .fc-tiles .fc-tag:not(.low):not(.warn) { background: #fff; }
.site-public main, .site-public #finder, .site-public #finder .finder, .site-public #finder .fc-body, .site-public #finder .fc-main { background: #fff !important; }
.site-public #finder .fc-tiles .fc-card { min-height: 0; }

/* ================= STUDIO LAYER (staff app: same calm language as the website) ================= */
body:not(.site-public):not(.lk-page) {
  --sf-tile: #f5f5f7; --sf-ink: #1d1d1f; --sf-muted: #6e6e73; --sf-line: #e5e5ea; --sf-r: 18px; --sf-r-sm: 12px;
  background: #fff !important; color: var(--sf-ink); -webkit-font-smoothing: antialiased; letter-spacing: -0.011em;
}
body:not(.site-public):not(.lk-page) header.top {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82) !important; border-bottom: 1px solid rgba(0,0,0,.08) !important;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: none !important; min-height: 64px;
}
body:not(.site-public):not(.lk-page) #nav { gap: 4px; }
body:not(.site-public):not(.lk-page) #nav .tab, body:not(.site-public):not(.lk-page) #nav #logoutBtn {
  border: 0 !important; background: transparent !important; color: var(--sf-ink) !important; border-radius: 999px !important;
  min-height: 40px; padding: 0 16px !important; font-size: 15px !important; font-weight: 500 !important; box-shadow: none !important; transition: background .2s;
}
body:not(.site-public):not(.lk-page) #nav .tab:hover, body:not(.site-public):not(.lk-page) #nav #logoutBtn:hover { background: var(--sf-tile) !important; }
body:not(.site-public):not(.lk-page) #nav .tab.active, body:not(.site-public):not(.lk-page) #nav .tab[aria-current], body:not(.site-public):not(.lk-page) #nav .tab[aria-selected="true"] { background: var(--sf-ink) !important; color: #fff !important; }
body:not(.site-public):not(.lk-page) #nav #logoutBtn { color: var(--sf-muted) !important; }

body:not(.site-public):not(.lk-page) .banner { background: var(--sf-tile) !important; border: 0 !important; border-radius: 999px !important; max-width: 640px; margin: 20px auto 0 !important; padding: 10px 20px !important; font-size: 14px; }

body:not(.site-public):not(.lk-page) .page-head { text-align: left !important; padding-block: clamp(32px, 5vw, 64px) 24px !important; }
body:not(.site-public):not(.lk-page) .page-head h2 { font-size: clamp(36px, 4.6vw, 56px) !important; line-height: 1.05 !important; letter-spacing: -0.03em !important; font-weight: 700 !important; color: var(--sf-ink) !important; }
body:not(.site-public):not(.lk-page) .page-head p, body:not(.site-public):not(.lk-page) .page-head .hint { font-size: clamp(17px, 1.6vw, 21px) !important; color: var(--sf-muted) !important; max-width: 60ch; margin-top: 10px; }

body:not(.site-public):not(.lk-page) .card, body:not(.site-public):not(.lk-page) #finder .fc-cardbox, body:not(.site-public):not(.lk-page) #finder .fc-card {
  background: var(--sf-tile) !important; border: 0 !important; border-radius: var(--sf-r) !important; box-shadow: none !important;
}
body:not(.site-public):not(.lk-page) .card { padding: clamp(20px, 3vw, 36px) !important; }
body:not(.site-public):not(.lk-page) .card h3, body:not(.site-public):not(.lk-page) .card > h2 { font-size: 26px !important; letter-spacing: -0.02em; font-weight: 700; color: var(--sf-ink) !important; }

/* Forms and buttons */
body:not(.site-public):not(.lk-page) main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), body:not(.site-public):not(.lk-page) main select, body:not(.site-public):not(.lk-page) main textarea {
  background: #fff !important; border: 1px solid transparent !important; box-shadow: 0 0 0 1px rgba(0,0,0,.08) !important; border-radius: var(--sf-r-sm) !important; min-height: 44px;
  transition: box-shadow .2s;
}
body:not(.site-public):not(.lk-page) main input:focus-visible, body:not(.site-public):not(.lk-page) main select:focus-visible, body:not(.site-public):not(.lk-page) main textarea:focus-visible { outline: none !important; box-shadow: 0 0 0 3px rgba(11,82,99,.35) !important; }
body:not(.site-public):not(.lk-page) main button:not(.tab):not(.link-btn):not(.fc-name):not(.fc-opt):not(.fc-mode):not(.fc-link) { border-radius: 999px !important; min-height: 44px; padding-inline: 22px; font-weight: 600; transition: background .2s, transform .1s; }
body:not(.site-public):not(.lk-page) main button.secondary { background: #fff !important; border: 0 !important; box-shadow: 0 0 0 1px rgba(0,0,0,.12) !important; color: var(--sf-ink) !important; }
body:not(.site-public):not(.lk-page) main button:active { transform: scale(.98); }

/* Tables: white sheet inside the grey tile, rows breathe, no cramped wrapping */
body:not(.site-public):not(.lk-page) .table-scroll { background: #fff; border-radius: var(--sf-r-sm); padding: 4px 8px; }
body:not(.site-public):not(.lk-page) main table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
body:not(.site-public):not(.lk-page) main th { font-size: 12px !important; font-weight: 600 !important; color: var(--sf-muted) !important; text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap; border-bottom: 1px solid var(--sf-line) !important; padding: 14px 12px !important; background: transparent !important; }
body:not(.site-public):not(.lk-page) main td { border-bottom: 1px solid var(--sf-line) !important; padding: 16px 12px !important; vertical-align: top; font-size: 15px; }
body:not(.site-public):not(.lk-page) main tr:last-child td { border-bottom: 0 !important; }
body:not(.site-public):not(.lk-page) main tbody tr { transition: background .15s; }
body:not(.site-public):not(.lk-page) main tbody tr:hover { background: #fafafc; }
body:not(.site-public):not(.lk-page) main td.num, body:not(.site-public):not(.lk-page) main td .pill, body:not(.site-public):not(.lk-page) main td:first-child { white-space: nowrap; }
body:not(.site-public):not(.lk-page) main td { overflow-wrap: anywhere; }
/* Users / companies admin tables: long emails were breaking one character per line because the
   table shrank to its container width. Give it room and let it scroll horizontally instead. */
#panel-users table.grid, #panel-companies table.grid { min-width: 920px; }
#panel-users table.grid td:nth-child(1), #panel-users table.grid td:nth-child(3),
#panel-users table.grid td:nth-child(4), #panel-users table.grid td:nth-child(6),
#panel-users table.grid td:nth-child(9) { white-space: nowrap; overflow-wrap: normal; }
.user-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.6rem; align-items: center; }
.user-form > button { width: 100%; }
body:not(.site-public):not(.lk-page) .pill { border-radius: 999px !important; padding: 4px 10px !important; font-size: 12px !important; font-weight: 600; border: 0 !important; white-space: nowrap; }
body:not(.site-public):not(.lk-page) .link-btn { color: var(--c-primary) !important; font-weight: 600; white-space: nowrap; }
body:not(.site-public):not(.lk-page) .lk-set { background: #fff; border-radius: var(--sf-r-sm); padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Admin sub-tabs as a segmented pill */
body:not(.site-public):not(.lk-page) [role="tablist"]:not(.fc-modes) { background: var(--sf-tile); border-radius: 999px; padding: 4px; display: inline-flex; flex-wrap: wrap; gap: 4px; border: 0 !important; }
body:not(.site-public):not(.lk-page) [role="tablist"]:not(.fc-modes) [role="tab"] { border: 0 !important; border-radius: 999px !important; background: transparent !important; min-height: 40px; padding: 0 18px !important; color: var(--sf-muted) !important; box-shadow: none !important; }
body:not(.site-public):not(.lk-page) [role="tablist"]:not(.fc-modes) [role="tab"][aria-selected="true"] { background: #fff !important; color: var(--sf-ink) !important; box-shadow: 0 1px 4px rgba(0,0,0,.12) !important; }

body:not(.site-public):not(.lk-page) .site-foot, body:not(.site-public):not(.lk-page) footer { background: var(--sf-tile) !important; border: 0 !important; color: var(--sf-muted); }
@media (max-width: 700px) { body:not(.site-public):not(.lk-page) #nav .tab { padding: 0 12px !important; font-size: 14px !important; } }

/* Lock page for clients (link from email) gets the same look */
body.lk-page { background: #fff; color: #1d1d1f; }
body.lk-page .top { background: rgba(255,255,255,.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); box-shadow: none; }
body.lk-page .lk-card, body.lk-page .lk-quote:not(.lk-docq) { background: #f5f5f7; border: 0; border-radius: 18px; box-shadow: none; }

.site-public #finder .fc-body .fc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) { .site-public #finder .fc-body .fc-tiles { grid-template-columns: 1fr; } }
.lk-filled { box-shadow: 0 0 0 2px #18794E !important; transition: box-shadow .4s; }

/* ================= BRAND LAYER: Amana navy + gold, the trusted advisor =================
   Navy for authority, a measured gold for the signature (rules, marks, the chosen price),
   warm ivory paper instead of cold grey, serif for headings and figures, hairline borders. */
body:not(.pro-page) {
  --b-navy: #0E1E3A; --b-navy-2: #1B2F57; --b-navy-3: #2A4170; --b-gold: #B8893B; --b-gold-2: #D4AF6A; --b-gold-ink: #8A6424;
  --b-ivory: #FBF9F4; --b-paper: #F4EFE4; --b-line: #E4DCCB; --b-line-2: #D3C7AE; --b-ink: #14213D; --b-muted: #5B6472;
  --b-serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif; --b-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --c-primary: var(--b-navy) !important; --c-primary-hover: var(--b-navy-2) !important; --c-text: var(--b-ink) !important; --c-muted: var(--b-muted) !important;
  --c-border: var(--b-line) !important; --c-page: var(--b-ivory) !important; --c-selected: #EEF1F7 !important;
  --sf-tile: var(--b-paper) !important; --sf-ink: var(--b-ink) !important; --sf-muted: var(--b-muted) !important; --sf-line: var(--b-line) !important;
  --sf-r: 10px !important; --sf-r-sm: 8px !important;
  font-family: var(--b-sans) !important; background: var(--b-ivory) !important; color: var(--b-ink) !important;
}
html body:not(.pro-page) main, html body:not(.pro-page) #finder, html body:not(.pro-page) #finder .finder, html body:not(.pro-page) #finder .fc-body, html body:not(.pro-page) #finder .fc-main, html body:not(.pro-page) .site-hero { background: transparent !important; }
::selection { background: var(--b-gold-2); color: var(--b-navy); }

/* Type: serif headings and big figures */
html body:not(.pro-page) h1, html body:not(.pro-page) h2, html body:not(.pro-page) .site-h1, html body:not(.pro-page) .page-head h2, html body:not(.pro-page) .fc-count, html body:not(.pro-page) .card h3, html body:not(.pro-page) .card > h2, html body:not(.pro-page) .fc-tiles .fc-info h3, html body:not(.pro-page) .lk-docq h2 {
  font-family: var(--b-serif) !important; font-weight: 600 !important; letter-spacing: -0.015em !important; color: var(--b-navy) !important;
}
html body:not(.pro-page) .site-h1 { font-size: clamp(42px, 5.6vw, 68px) !important; line-height: 1.04 !important; }
html body:not(.pro-page) .fc-tiles .fc-price b, html body:not(.pro-page) .lk-docq .lk-total, html body:not(.pro-page) .lk-quote b { font-family: var(--b-serif) !important; font-weight: 600 !important; font-variant-numeric: lining-nums tabular-nums; color: var(--b-navy) !important; }

/* Signature: a short gold rule above every major heading */
html body:not(.pro-page) .site-h1::before, html body:not(.pro-page) .page-head h2::before, html body:not(.pro-page) .fc-count::before {
  content: ''; display: block; width: 44px; height: 3px; background: var(--b-gold); margin-bottom: 18px; border-radius: 2px;
}
html body:not(.pro-page) .page-head { text-align: left !important; }
html body:not(.pro-page) .page-head h2::before { margin-left: 0; }

/* Header: navy, white wordmark, gold hairline */
html body:not(.pro-page) header.top {
  background: var(--b-navy) !important; border-bottom: 0 !important; box-shadow: inset 0 -2px 0 var(--b-gold) !important; backdrop-filter: none !important; min-height: 68px;
}
html body:not(.pro-page) header.top .brand-logo { filter: brightness(0) invert(1); }
html body:not(.pro-page) header.top .brand-app { color: #fff !important; font-family: var(--b-serif); font-weight: 600; letter-spacing: 0; padding-left: 14px; border-left: 1px solid rgba(212,175,106,.55); }
html body:not(.pro-page) #nav .tab, html body:not(.pro-page) #nav #logoutBtn, html body:not(.pro-page) .site-user button, html body:not(.pro-page) .site-user a, html body:not(.pro-page) .site-user span, html body:not(.pro-page) .site-user b { color: rgba(255,255,255,.86) !important; }
html body:not(.pro-page) #nav .tab:hover, html body:not(.pro-page) #nav #logoutBtn:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
html body:not(.pro-page) #nav .tab.active { background: transparent !important; color: #fff !important; box-shadow: inset 0 -2px 0 var(--b-gold) !important; border-radius: 0 !important; }
html body:not(.pro-page) .site-user button, html body:not(.pro-page) .site-user a { background: transparent !important; border: 1px solid rgba(255,255,255,.28) !important; border-radius: 999px !important; }
html body:not(.pro-page) .site-user button:hover, html body:not(.pro-page) .site-user a:hover { border-color: var(--b-gold-2) !important; color: #fff !important; }
html body:not(.pro-page) .site-user [data-mylocks] { background: var(--b-gold) !important; border-color: var(--b-gold) !important; color: var(--b-navy) !important; font-weight: 600; }

/* Borders: warm hairlines everywhere, modest radius */
html body:not(.pro-page) .card, html body:not(.pro-page) #finder .fc-cardbox, html body:not(.pro-page) #finder .fc-card, html body:not(.pro-page) #finder .fc-form, html body:not(.pro-page) .fc-filter, html body:not(.pro-page) .lk-card, html body:not(.pro-page) .lk-quote, html body:not(.pro-page) .fc-actgroup, html body:not(.pro-page) .lk-doc, html body:not(.pro-page) #finder .fc-side {
  border: 1px solid var(--b-line) !important; border-radius: 10px !important; box-shadow: 0 1px 0 rgba(20,33,61,.03) !important;
}
html body:not(.pro-page) .card, html body:not(.pro-page) #finder .fc-form, html body:not(.pro-page) #finder .fc-side, html body:not(.pro-page) .lk-card, html body:not(.pro-page) .lk-docq { background: #fff !important; }
html body:not(.pro-page) #finder .fc-tiles .fc-card, html body:not(.pro-page) #finder .fc-cardbox { background: #fff !important; }
html body:not(.pro-page) #finder .fc-tiles .fc-card { border-top: 3px solid transparent !important; }
html body:not(.pro-page) #finder .fc-tiles .fc-card.best { border-top-color: var(--b-gold) !important; box-shadow: 0 10px 30px -18px rgba(14,30,58,.35) !important; }
@media (hover: hover) { html body:not(.pro-page) #finder .fc-tiles .fc-card:hover { border-color: var(--b-line-2) !important; box-shadow: 0 14px 34px -20px rgba(14,30,58,.4) !important; transform: translateY(-2px); } }
html body:not(.pro-page) .table-scroll { border: 1px solid var(--b-line); border-radius: 8px; }
html body:not(.pro-page) main th { color: var(--b-muted) !important; border-bottom: 1px solid var(--b-line-2) !important; text-transform: uppercase !important; letter-spacing: .06em !important; font-size: 11px !important; }
html body:not(.pro-page) main td { border-bottom-color: var(--b-line) !important; }

/* Controls */
html body:not(.pro-page) main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), html body:not(.pro-page) main select, html body:not(.pro-page) main textarea {
  border: 1px solid var(--b-line-2) !important; box-shadow: none !important; border-radius: 8px !important; background: #fff !important; color: var(--b-ink) !important;
}
html body:not(.pro-page) main input:focus-visible, html body:not(.pro-page) main select:focus-visible, html body:not(.pro-page) main textarea:focus-visible { border-color: var(--b-navy) !important; box-shadow: 0 0 0 3px rgba(184,137,59,.28) !important; outline: none !important; }
html body:not(.pro-page) input[type=checkbox], html body:not(.pro-page) input[type=radio], html body:not(.pro-page) input[type=range] { accent-color: var(--b-navy); }
html body:not(.pro-page) main button.primary, html body:not(.pro-page) #finder .fc-btn, html body:not(.pro-page) .lk-btn, html body:not(.pro-page) [data-fflock], html body:not(.pro-page) #loginForm button[type=submit], html body:not(.pro-page) #signupForm button[type=submit], html body:not(.pro-page) main button[type=submit] {
  background: var(--b-navy) !important; color: #fff !important; border: 1px solid var(--b-navy) !important; border-radius: 6px !important; font-weight: 600; letter-spacing: .01em;
}
html body:not(.pro-page) main button.primary:hover, html body:not(.pro-page) #finder .fc-btn:hover, html body:not(.pro-page) .lk-btn:hover, html body:not(.pro-page) [data-fflock]:hover, html body:not(.pro-page) main button[type=submit]:hover { background: var(--b-navy-2) !important; box-shadow: inset 0 -2px 0 var(--b-gold) !important; }
html body:not(.pro-page) main button.secondary { border-radius: 6px !important; border: 1px solid var(--b-navy) !important; color: var(--b-navy) !important; background: transparent !important; box-shadow: none !important; }
html body:not(.pro-page) main button:not(.tab):not(.link-btn):not(.fc-name):not(.fc-opt):not(.fc-mode):not(.fc-link) { border-radius: 6px !important; }
html body:not(.pro-page) .link-btn, html body:not(.pro-page) .fc-link, html body:not(.pro-page) main a { color: var(--b-navy-3) !important; }
html body:not(.pro-page) .link-btn:hover, html body:not(.pro-page) main a:hover { color: var(--b-gold-ink) !important; }
html body:not(.pro-page) :focus-visible { outline-color: var(--b-gold) !important; }

/* Tabs and pills */
html body:not(.pro-page) .fc-modes { border-color: var(--b-line) !important; }
html body:not(.pro-page) .fc-mode.on, html body:not(.pro-page) .fc-mode[aria-selected="true"] { background: var(--b-navy) !important; color: #fff !important; border-color: var(--b-navy) !important; }
html body:not(.pro-page) [role="tablist"]:not(.fc-modes) { background: transparent !important; border-radius: 0 !important; padding: 0 !important; border-bottom: 1px solid var(--b-line) !important; gap: 8px !important; }
html body:not(.pro-page) [role="tablist"]:not(.fc-modes) [role="tab"] { border-radius: 0 !important; color: var(--b-muted) !important; }
html body:not(.pro-page) [role="tablist"]:not(.fc-modes) [role="tab"][aria-selected="true"] { background: transparent !important; color: var(--b-navy) !important; box-shadow: inset 0 -2px 0 var(--b-gold) !important; }
html body:not(.pro-page) .fc-tag.low, html body:not(.pro-page) .fc-tiles .fc-tag.low { background: var(--b-gold) !important; color: var(--b-navy) !important; }
html body:not(.pro-page) .fc-tiles .fc-tag:not(.low):not(.warn), html body:not(.pro-page) .fc-tag { background: var(--b-paper) !important; color: var(--b-ink) !important; }
html body:not(.pro-page) .fc-tiles .fc-opt { background: var(--b-ivory) !important; border: 1px solid var(--b-line) !important; }
html body:not(.pro-page) .banner { background: var(--b-paper) !important; border: 1px solid var(--b-line) !important; }

/* Hero */
html body:not(.pro-page) .site-hero { border-bottom: 1px solid var(--b-line); }
html body:not(.pro-page) .site-hero .lede { color: var(--b-muted) !important; }
html body:not(.pro-page) .site-hero-photo img { border-radius: 4px !important; box-shadow: 0 30px 60px -36px rgba(14,30,58,.55); outline: 1px solid var(--b-line); outline-offset: 10px; }
html body:not(.pro-page) .site-trust svg { color: var(--b-gold) !important; }

/* Sign-in page */
html body:not(.pro-page) #loginView.auth.auth-v3 .auth-side { background: var(--b-ivory) !important; }
html body:not(.pro-page) .auth-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,30,58,0) 40%, rgba(14,30,58,.72)); pointer-events: none; }
html body:not(.pro-page) .auth-photo { position: relative; }
html body:not(.pro-page) .auth-photo figcaption { color: #fff !important; position: absolute; z-index: 1; }

/* Footer: navy, gold rule, columns */
html body:not(.pro-page) .brand-foot { background: var(--b-navy) !important; color: rgba(255,255,255,.72) !important; border-top: 3px solid var(--b-gold) !important; padding: 56px 0 28px !important; margin-top: 72px; }
html body:not(.pro-page) .brand-foot .foot-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 32px 48px; max-width: 1376px; margin: 0 auto; padding: 0 32px; text-align: left; }
html body:not(.pro-page) .brand-foot .foot-logo { filter: brightness(0) invert(1); height: 34px; width: auto; }
html body:not(.pro-page) .brand-foot .foot-tag { font-family: var(--b-serif); font-size: 19px; color: #fff; margin-top: 14px; max-width: 28ch; line-height: 1.35; }
html body:not(.pro-page) .brand-foot .foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
html body:not(.pro-page) .brand-foot h2 { font-family: var(--b-sans) !important; font-size: 12px !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--b-gold-2) !important; margin: 0 0 12px; }
html body:not(.pro-page) .brand-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
html body:not(.pro-page) .brand-foot a { color: #fff !important; text-decoration: none; overflow-wrap: anywhere; }
html body:not(.pro-page) .brand-foot a:hover { color: var(--b-gold-2) !important; text-decoration: underline; }
html body:not(.pro-page) .brand-foot .foot-note { grid-column: 1 / -1; font-size: 14px; color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; margin: 0; }
html body:not(.pro-page) .brand-foot .foot-base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.55); }
html body:not(.pro-page) .brand-foot .foot-base p { margin: 0; }
html body:not(.pro-page) .brand-foot .foot-credit a { color: rgba(255,255,255,.75) !important; }
@media (max-width: 760px) { html body:not(.pro-page) .brand-foot .foot-inner { grid-template-columns: 1fr; padding: 0 16px; } html body:not(.pro-page) .brand-foot { margin-top: 48px; } }
html body:not(.pro-page).site-public #finder .fc-tiles .fc-card, html body:not(.pro-page).site-public #finder .fc-cardbox { background: #fff !important; }
html body:not(.pro-page) .brand-foot p, html body:not(.pro-page) .brand-foot .foot-note { color: rgba(255,255,255,.74) !important; }
html body:not(.pro-page) .brand-foot .foot-tag { color: #fff !important; }
html body:not(.pro-page) .brand-foot .foot-base p, html body:not(.pro-page) .brand-foot .foot-credit { color: rgba(255,255,255,.6) !important; }
html body:not(.pro-page) .brand-foot .foot-cols > div { align-self: start; }
html body:not(.pro-page) .brand-foot h2 { margin-top: 0 !important; padding: 0 !important; }
html body:not(.pro-page) .brand-foot h2::before { content: none !important; }
html body:not(.pro-page) .brand-foot li { color: rgba(255,255,255,.74); }
html body:not(.pro-page) .fc-hist span { background: var(--b-line-2) !important; }
html body:not(.pro-page) .fc-hist span.on, html body:not(.pro-page) .fc-hist span.in { background: var(--b-gold) !important; }
html body:not(.pro-page) footer.site-foot.brand-foot.brand-foot, html body:not(.pro-page) footer.brand-foot .foot-inner.foot-inner.foot-inner { color: rgba(255,255,255,.74) !important; background: var(--b-navy) !important; }
html body:not(.pro-page) .brand-foot .foot-credit a, html body:not(.pro-page) .brand-foot .foot-note a { text-decoration: underline !important; }
/* Brand wins over the older staff (studio) layer */
html body:not(.pro-page) header.top.top.top { background: var(--b-navy) !important; border-bottom: 0 !important; box-shadow: inset 0 -2px 0 var(--b-gold) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html body:not(.pro-page) header.top.top #nav .tab.tab, html body:not(.pro-page) header.top.top #nav #logoutBtn { color: rgba(255,255,255,.86) !important; background: transparent !important; }
html body:not(.pro-page) header.top.top #nav .tab.tab:hover, html body:not(.pro-page) header.top.top #nav #logoutBtn:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
html body:not(.pro-page) header.top.top #nav .tab.tab.active { background: transparent !important; color: #fff !important; border-radius: 0 !important; box-shadow: inset 0 -2px 0 var(--b-gold) !important; }
html body:not(.pro-page) main .card.card.card { background: #fff !important; border: 1px solid var(--b-line) !important; border-radius: 10px !important; }
html body:not(.pro-page) main [role="tablist"][role="tablist"]:not(.fc-modes) { background: transparent !important; border-radius: 0 !important; padding: 0 !important; border-bottom: 1px solid var(--b-line) !important; }
html body:not(.pro-page) main [role="tablist"][role="tablist"]:not(.fc-modes) [role="tab"] { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
html body:not(.pro-page) main [role="tablist"][role="tablist"]:not(.fc-modes) [role="tab"][aria-selected="true"] { color: var(--b-navy) !important; box-shadow: inset 0 -2px 0 var(--b-gold) !important; }
html body:not(.pro-page) main .banner.banner { background: var(--b-paper) !important; border: 1px solid var(--b-line) !important; border-radius: 8px !important; }
html body:not(.pro-page) main button:not(.tab):not(.link-btn):not(.fc-name):not(.fc-opt):not(.fc-mode):not(.fc-link):not([role="tab"]) { border-radius: 6px !important; }

/* Guest view: real layout, blurred figures, one clear way in */
.is-guest .fc-blur { filter: blur(7px); user-select: none; cursor: pointer; display: inline-block; padding: 0 2px; }
.is-guest .fc-blur::selection { background: transparent; }
.is-guest #finder .fc-tiles .fc-price::after, .is-guest #finder .fc-card .fc-price::after { content: 'Sign in to see the price'; display: block; font-size: 13px; font-weight: 600; color: var(--b-gold-ink, #8A6424); margin-top: 6px; }
.is-guest #finder .fc-btn[data-ffpick]::after { content: ' · sign in'; font-weight: 500; opacity: .8; }
.gate-card { max-width: 480px; margin: 12vh auto 0; padding: 32px !important; text-align: left; }
.gate-card h2 { margin: 0 0 10px; font-size: 30px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.gate-actions > * { flex: 1 1 180px; min-height: 48px; }
.gate-close { margin-top: 8px; min-height: 44px; }
html body .site-user .su-primary { background: var(--b-gold) !important; border-color: var(--b-gold) !important; color: var(--b-navy) !important; font-weight: 600; }
/* Official white logo on navy: no filter, large enough for the "CORPORATE" line to stay sharp */
html body header.top .brand-logo { filter: none !important; height: 40px !important; width: auto !important; image-rendering: auto; }
html body .brand-foot .foot-logo { filter: none !important; height: 48px !important; }
@media (max-width: 700px) { html body header.top .brand-logo { height: 32px !important; } }
.gate-card { margin: 0 auto !important; padding: 8px 4px !important; }
/* Approval here vs. other free zones */
.fc-apx-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.fc-apx-t th, .fc-apx-t td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--b-line, #E4DCCB); }
.fc-apx-t thead th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--b-muted, #5B6472); font-weight: 600; }
.fc-apx-t tbody th { font-weight: 600; width: 38%; }
.fc-apx-t tbody th small { display: block; font-weight: 400; color: var(--b-muted, #5B6472); margin-top: 2px; }
.fc-apx-t tr.here { background: var(--b-ivory, #FBF9F4); }
.fc-tag.ok { background: #E8F3EC !important; color: #18794E !important; }
.lk-appr { color: var(--b-muted, #5B6472); }
.lk-appr.need { color: #A15C00; font-weight: 600; }

/* ===== Receipts and payment history ===== */
.rc-modal { position: fixed; inset: 0; z-index: 400; background: rgba(14, 30, 58, .55); display: grid; place-items: start center; overflow-y: auto; padding: 4vh 16px; }
.rc-box { background: #fff; width: min(680px, 100%); border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); overflow: hidden; }
.rc { color: var(--b-ink, #14213D); }
.rc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--b-navy, #0E1E3A); color: #fff; padding: 22px 28px; border-bottom: 3px solid var(--b-gold, #B8893B); }
.rc-h > div { display: flex; flex-direction: column; gap: 2px; }
.rc-brand { font-family: var(--b-serif, Georgia, serif); font-size: 22px; letter-spacing: .01em; }
.rc-h span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--b-gold-2, #D4AF6A); font-weight: 700; }
.rc-no { font-variant-numeric: tabular-nums; font-size: 14px; }
.rc-paid { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 26px 28px 18px; border-bottom: 1px solid var(--b-gold, #B8893B); margin: 0 28px; padding-inline: 0; }
.rc-paid h2 { margin: 0; font-size: 26px; }
.rc-paid p { margin: 4px 0 0; color: var(--b-muted, #5B6472); }
.rc-amt { font-family: var(--b-serif, Georgia, serif); font-size: 28px; color: var(--b-navy, #0E1E3A); font-variant-numeric: tabular-nums; }
.rc-dl { margin: 8px 28px 0; }
.rc-dl > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--b-line, #E4DCCB); }
.rc-dl dt { color: var(--b-muted, #5B6472); font-size: 13px; }
.rc-dl dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.rc-note { margin: 18px 28px 0; font-size: 12.5px; color: var(--b-muted, #5B6472); }
.rc-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 22px 28px 26px; }
.rc-actions > * { min-height: 44px; }
.rc-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.rc-btns > * { min-height: 44px; padding-inline: 22px; }
@media (max-width: 560px) { .rc-dl > div { grid-template-columns: 1fr; gap: 2px; } .rc-h, .rc-actions { padding-inline: 18px; } .rc-paid, .rc-dl, .rc-note { margin-inline: 18px; } }
@media print {
  body.rc-printing:not(.rp-letter) > *:not(.rc-modal) { display: none !important; }
  body.rc-printing .rc-modal { position: static; background: none; padding: 0; }
  body.rc-printing .rc-box { box-shadow: none; width: 100%; }
  body.rc-printing .rc-actions { display: none; }
  body.rc-printing .rc-h { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.my-acct h3 { font-family: var(--b-sans, Inter, sans-serif) !important; font-size: 13px !important; letter-spacing: .1em; text-transform: uppercase; color: var(--b-muted, #5B6472) !important; margin: 22px 0 10px; }
.my-acct h3::before { content: none !important; }
.my-pays { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.my-pays th, .my-pays td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--b-line, #E4DCCB); vertical-align: top; }
.my-pays thead th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--b-muted, #5B6472); white-space: nowrap; }
.my-pays .num { text-align: right; white-space: nowrap; }
.my-pays tfoot th, .my-pays tfoot td { border-bottom: 0; padding-top: 14px; }
.my-rc { white-space: nowrap; } .my-rc .link-btn { min-height: 44px; padding: 0 8px; }
.pay-sum { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 4px 0 16px; }
.pay-sum > div { background: var(--b-ivory, #FBF9F4); border: 1px solid var(--b-line, #E4DCCB); border-radius: 8px; padding: 12px 16px; min-width: 150px; display: flex; flex-direction: column; gap: 2px; }
.pay-sum span { font-size: 12px; color: var(--b-muted, #5B6472); }
.pay-sum b { font-family: var(--b-serif, Georgia, serif); font-size: 22px; color: var(--b-navy, #0E1E3A); font-variant-numeric: tabular-nums; }
.pay-sum small { color: var(--b-muted, #5B6472); }
.pay-sum button { align-self: center; margin-left: auto; min-height: 44px; }
.pay-table td { vertical-align: top; }
.pv-demo { width: 100%; margin-top: 12px; min-height: 44px; border: 1px dashed var(--b-gold, #B8893B) !important; background: #FFFBF2 !important; color: var(--b-gold-ink, #8A6424) !important; }
/* Nationality rule (e.g. SHAMS PCC pre-approval) */
.fc-natflag { border: 1px solid #E8C27A; border-left: 4px solid #A15C00; background: #FFF8EB; border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; color: #5A3A00; }
.fc-natflag b { display: block; font-size: 15px; color: #7A4600; }
.fc-natflag p { margin: 6px 0 4px; }
.fc-natflag ul { margin: 6px 0 0 18px; padding: 0; font-size: 14px; }
.fc-natline { margin: 8px 0 0; font-size: 13.5px; color: #7A4600; background: #FFF8EB; border-radius: 6px; padding: 8px 10px; }
/* Footer: brand + 4 columns with Amana's real contact details */
html body .brand-foot .foot-inner { grid-template-columns: minmax(220px, 1.1fr) 2.9fr; }
html body .brand-foot .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
html body .brand-foot .foot-desc { color: rgba(255,255,255,.7) !important; font-size: 14px; line-height: 1.5; margin: 10px 0 0; max-width: 34ch; }
html body .brand-foot .foot-contact { font-style: normal; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.45; }
html body .brand-foot .foot-contact a { text-decoration: none !important; }
html body .brand-foot .foot-social { display: flex; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
html body .brand-foot .foot-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); color: #fff !important; transition: border-color .2s, color .2s, background .2s; }
html body .brand-foot .foot-social a:hover { border-color: var(--b-gold-2); color: var(--b-gold-2) !important; background: rgba(255,255,255,.04); }
html body .brand-foot .foot-legal a { color: rgba(255,255,255,.75) !important; }
@media (max-width: 1100px) { html body .brand-foot .foot-inner { grid-template-columns: 1fr; } }
@media (max-width: 760px) { html body .brand-foot .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { html body .brand-foot .foot-cols { grid-template-columns: 1fr; } }
.rc-co { border-top: 1px solid var(--b-line, #E4DCCB); padding-top: 10px; }
html body .brand-foot .foot-legal a { text-decoration: underline !important; }

/* ===== Web Interface Guidelines fixes ===== */
html { scroll-padding-top: 96px; -webkit-tap-highlight-color: rgba(184, 137, 59, .18); }
button, a, label, summary, select, input[type=checkbox], input[type=radio], [role=tab] { touch-action: manipulation; }
h1, h2, h3, .site-h1, .fc-count { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.lk-overlay, .rc-modal, .lk-modal { overscroll-behavior: contain; }

/* ===== Receipt printer: paper rolls out of an Amana printer slot ===== */
.rp { --rp-w: 320px; display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; }
.rp-slot { position: relative; z-index: 2; width: min(calc(var(--rp-w) + 44px), 100%); height: 26px; border-radius: 13px;
  background: linear-gradient(180deg, #2A4170 0%, #0E1E3A 55%, #08142A 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 #B8893B, 0 10px 22px -10px rgba(14,30,58,.55); }
.rp-slot::before { content: ''; position: absolute; left: 22px; right: 22px; bottom: 5px; height: 4px; border-radius: 4px; background: #040b18; box-shadow: inset 0 1px 2px rgba(0,0,0,.9); }
.rp-light { position: absolute; right: 12px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #5b6b86; }
.rp.feeding .rp-light { background: #D4AF6A; box-shadow: 0 0 8px #D4AF6A; animation: rpBlink .5s steps(2) infinite; }
.rp.done .rp-light { background: #3fb27f; box-shadow: 0 0 6px #3fb27f; }
.rp-feed { position: relative; z-index: 1; width: 100%; overflow: hidden; margin-top: -9px; padding: 0 18px 22px; display: flex; justify-content: center; }
.rp-roll { width: var(--rp-w); max-width: 100%; transform: translateY(-100%); transition: transform 2.6s cubic-bezier(.32,.72,.22,1); filter: drop-shadow(0 12px 18px rgba(14,30,58,.18)) drop-shadow(0 2px 3px rgba(14,30,58,.12)); will-change: transform; }
.rp-roll.tear { animation: rpTear .65s cubic-bezier(.5,0,.75,0) forwards; transform-origin: 20% 0; }
.rp.torn .rp-feed { height: 18px; padding-bottom: 0; }
.rp.torn .rp-roll { display: none; }
.rp.torn .rp-feed::after { content: ''; width: var(--rp-w); max-width: 100%; height: 10px; background: #fffdf8;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x; }
/* thermal paper with a torn zigzag bottom */
.rp-paper { background: linear-gradient(180deg, #f3eee2 0, #fffdf8 18px, #fffdf8 calc(100% - 30px), #fbf7ee 100%); color: #1b2433; padding: 26px 22px 30px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; letter-spacing: .01em;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x; }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rp-mark { display: flex; flex-direction: column; line-height: 1; color: #0E1E3A; }
.rp-mark span { font-family: var(--b-sans, Inter, sans-serif); font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.rp-mark small { font-family: var(--b-sans, Inter, sans-serif); font-size: 7px; letter-spacing: .32em; align-self: flex-end; margin-top: 2px; }
.rp-tag { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #8A6424; border: 1px solid #D4AF6A; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.rp-no { margin: 14px 0 0; font-size: 11px; color: #5B6472; }
.rp-amt { margin: 2px 0 0; font-family: var(--b-serif, Georgia, serif); font-size: 30px; font-weight: 600; color: #0E1E3A; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.rp-when { margin: 2px 0 0; font-size: 11px; color: #5B6472; }
.rp-ok { color: #18794E; font-weight: 700; }
.rp-cut { border-top: 1.5px dashed #cfc5b0; margin: 14px -4px; }
.rp-item { display: flex; flex-direction: column; margin-bottom: 8px; }
.rp-item b { font-size: 12.5px; } .rp-item span { color: #5B6472; }
.rp-row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.rp-row span { color: #5B6472; white-space: nowrap; }
.rp-row b { font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.rp-row.rp-small b { font-size: 10.5px; font-weight: 500; }
.rp-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 2px solid #0E1E3A; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rp-total b { font-size: 15px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.rp-thanks { text-align: center; margin: 18px 0 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8A6424; }
.rp-bars { display: block; width: 78%; height: 40px; margin: 0 auto; fill: #1b2433; }
.rp-barno { text-align: center; margin: 4px 0 0; font-size: 9.5px; letter-spacing: .2em; color: #5B6472; }
.rp-contact { margin-top: 14px; text-align: center; font-size: 9.5px; line-height: 1.55; color: #7a8190; }
.rp-status { text-align: center; margin-top: 6px; min-height: 58px; }
.rp-title { margin: 0; font-family: var(--b-serif, Georgia, serif) !important; font-size: 24px !important; color: #0E1E3A !important; }
.rp-title::before { content: none !important; }
.rp-sub { margin: 4px 0 0; color: #5B6472; font-size: 14px; }
.rp-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; min-height: 46px; }
.rp-btn { min-height: 44px; padding: 0 20px; border-radius: 999px !important; border: 1px solid #D3C7AE !important; background: #fff !important; color: #0E1E3A !important; font: 600 14px/1 var(--b-sans, Inter, sans-serif); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 2px 6px rgba(14,30,58,.08); transition: background-color .2s, border-color .2s, transform .1s; }
.rp-btn:hover { border-color: #B8893B !important; }
.rp-btn:active { transform: scale(.97); }
.rp-btn.gold { background: #D4AF6A !important; border-color: #B8893B !important; }
.rp-btn.gold:hover { background: #c99f55 !important; }
.rp-btn[disabled] { opacity: .75; cursor: progress; }
.rp-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #D3C7AE; border-top-color: #0E1E3A; animation: rpSpin .8s linear infinite; }
.rp-box { width: min(440px, 100%) !important; padding: 26px 18px 22px; position: relative; background: linear-gradient(180deg, #fff, #FBF9F4) !important; }
.rp-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #E4DCCB; background: #fff; font-size: 22px; line-height: 1; color: #0E1E3A; cursor: pointer; }
.rp-inline { margin: 18px auto 0; max-width: 460px; }
@keyframes rpTear { 0% { transform: translateY(0) rotate(0); opacity: 1; } 30% { transform: translateY(4px) rotate(-2deg); } 100% { transform: translateY(160px) rotate(7deg); opacity: 0; } }
@keyframes rpBlink { to { opacity: .35; } }
@keyframes rpSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rp-roll { transition: none; } .rp-roll.tear { animation: none; } .rp-light, .rp-spin { animation: none !important; } }
@media print {
  body.rc-printing * { visibility: hidden !important; }
  body.rc-printing .rp-print-me .rp-paper, body.rc-printing .rp-print-me .rp-paper * { visibility: visible !important; }
  body.rc-printing .rp-print-me .rp-paper { position: fixed; left: 50%; top: 0; transform: translateX(-50%); width: 80mm; -webkit-mask: none; mask: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Receipt: real logo on the paper; letterhead page used for printing */
.rp-logo { display: block; height: 31px; width: auto; }
.rp-contact b { color: #0E6685; font-size: 10.5px; }
.rp-contact a { color: #0E6685; text-decoration: underline; }
.rl { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body.rc-printing .rp-print-me .rp-paper, body.rc-printing .rp-print-me .rp-paper * { visibility: hidden !important; }
  body.rc-printing .rp-print-me .rl, body.rc-printing .rp-print-me .rl * { visibility: visible !important; }
  body.rc-printing .rp-print-me .rl { display: block; position: fixed; inset: 0; width: 210mm; height: 296mm; overflow: hidden; padding: 16mm 18mm 0; box-sizing: border-box; background: #fff; color: #172636; font: 10.5pt/1.45 Inter, Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.rl-h { display: flex; justify-content: space-between; align-items: flex-start; }
.rl-logo { height: 15mm; width: auto; }
.rl-t { text-align: right; display: flex; flex-direction: column; gap: 1mm; }
.rl-t b { color: #0E6685; letter-spacing: .08em; font-size: 12pt; } .rl-t small { color: #667; }
.rl-paid { display: flex; justify-content: space-between; align-items: center; margin-top: 14mm; padding: 5mm 6mm; background: #EDF7F1; border-left: 1.5mm solid #18794E; }
.rl-paid b { color: #18794E; font-size: 9pt; letter-spacing: .08em; } .rl-paid p { margin: 1mm 0; } .rl-paid small { color: #556; }
.rl-paid strong { color: #0B5270; font-size: 20pt; }
.rl h4 { margin: 9mm 0 0; color: #0E6685; font-size: 8.5pt; letter-spacing: .1em; text-transform: uppercase; border-bottom: .4mm solid #0E6685; padding-bottom: 2mm; }
.rl dl { margin: 0; } .rl dl > div { display: grid; grid-template-columns: 55mm 1fr; padding: 2.2mm 0; border-bottom: .2mm solid #dde3e8; }
.rl dt { color: #667; } .rl dd { margin: 0; }
.rl-total { display: flex; justify-content: space-between; margin-top: 5mm; padding: 4mm 5mm; background: #EFF4F7; color: #0B5270; font-weight: 700; font-size: 12pt; }
.rl-note { color: #667; font-size: 8.5pt; margin-top: 7mm; }
.rl-co { position: absolute; left: 18mm; right: 18mm; bottom: 20mm; display: flex; flex-direction: column; gap: 1mm; border-top: .2mm solid #dde3e8; padding-top: 4mm; font-size: 9pt; }
.rl-co b { color: #0E6685; font-size: 10pt; }
.rl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 12mm; background: #0B5270; border-top: 1mm solid #0E6685; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 0 18mm; font-size: 9pt; }
.rl-bar span:first-child { font-weight: 700; }

@media print { html, body { height: auto !important; } body.rc-printing.rp-letter main, body.rc-printing.rp-letter .rc-modal { overflow: visible !important; } body.rc-printing.rp-letter .site-foot, body.rc-printing.rp-letter header.top { display: none !important; } }
@media print { html:has(body.rp-letter), body.rc-printing.rp-letter { height: 296mm !important; max-height: 296mm !important; overflow: hidden !important; } }
/* "amana" wordmark (without CORPORATE): wider than the old logo, so a little shorter */
html body header.top .brand-logo { height: 26px !important; }
html body .brand-foot .foot-logo { height: 32px !important; }
.auth-brand img, .auth-brand .brand-logo { height: 30px !important; width: auto !important; }
.rp-logo { height: 19px !important; }
.rl-logo { height: 10mm !important; }
@media (max-width: 700px) { html body header.top .brand-logo { height: 22px !important; } }
.rp-word { font-family: var(--b-sans, Inter, sans-serif); font-size: 19px; font-weight: 700; color: #0E6685; letter-spacing: -.01em; }
.rl-word { font-size: 22pt; color: #0E6685; letter-spacing: -.01em; }

/* Promotions: one place (the banner above results, admin deletes right here), continuous
   horizontal auto-scroll — replaces the old one-at-a-time fade carousel. */
#finder .fc-ad-marquee { overflow: hidden; margin-bottom: 10px; }
#finder .fc-ad-marquee .fc-ad-track { display: flex; width: max-content; animation: fcAdScroll 28s linear infinite; }
#finder .fc-ad-marquee:hover .fc-ad-track, #finder .fc-ad-marquee:focus-within .fc-ad-track { animation-play-state: paused; }
/* Compact ticker card: no image panel, tight padding, clamped text. */
#finder .fc-ad-marquee .fc-ad-slide { display: block; position: relative; flex: 0 0 240px; width: 240px; min-height: 0; margin-right: 10px; padding: 12px 14px; border-radius: 8px; animation: none; }
#finder .fc-ad-marquee .fc-ad-img { display: none; }
#finder .fc-ad-marquee .fc-ad-txt { padding: 0; gap: 4px; }
#finder .fc-ad-marquee .fc-ad-tag { font-size: 10px; }
#finder .fc-ad-marquee h3 { font-size: 14px; line-height: 1.25; margin: 0; }
#finder .fc-ad-marquee .fc-ad-txt p { font-size: 12px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#finder .fc-ad-marquee .fc-ad-price { font-size: 11.5px; } #finder .fc-ad-marquee .fc-ad-price b { font-size: 13px; }
#finder .fc-ad-marquee .fc-ad-cta { margin-top: 2px; gap: 6px; }
#finder .fc-ad-marquee .fc-ad-cta .fc-btn { padding: 5px 10px; font-size: 12px; min-height: 0; }
@keyframes fcAdScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
#finder .fc-ad-del { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; min-height: 0; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin: 0; }
#finder .fc-ad-del:hover { background: rgba(0,0,0,.55); }
#finder .fc-ad-del svg { width: 11px; height: 11px; }
#finder .fc-ad-delconfirm { position: absolute; top: 6px; right: 6px; background: #fff; color: #0b3d32; border-radius: 6px; padding: 4px 8px; font-size: 11.5px; display: flex; gap: 4px; align-items: center; }
#finder .fc-ad-delconfirm .fc-link { color: #0b3d32; }
@media (max-width: 640px) { #finder .fc-ad-marquee .fc-ad-slide { flex-basis: 70vw; width: 70vw; } }
@media (prefers-reduced-motion: reduce) { #finder .fc-ad-marquee .fc-ad-track { animation: none; } }

/* Staff currency box: sidebar, vertical, right after the Promotions box. */
.fc-currbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.fc-currbar-label { font-size: 13px; font-weight: 600; color: var(--fc-muted, #667085); margin-right: 2px; }
.fc-curr-opt { min-height: 38px; border-radius: 999px; border: 1px solid var(--fc-line, #dde3e0); background: #fff; color: var(--fc-fg, #15211d); font: inherit; font-weight: 600; cursor: pointer; padding: 0 16px; }
.fc-curr-opt.on { background: var(--fc-accent, #0d6b57); color: #fff; border-color: var(--fc-accent, #0d6b57); }
