/* KhaoDeals — one stylesheet for the public site, the restaurant portal and admin.
   Warm paper, ink type, one paprika accent, saffron for paid placements. */

:root {
  --ink: #16130f; --ink-2: #4a443c; --ink-3: #7b7368; --ink-4: #a39b8f;
  --paper: #f6f3ee; --card: #fff; --soft: #efe9e0; --soft-2: #faf8f4;
  --line: #e7e1d7; --line-2: #d8d0c3;
  --brand: #b8321f; --brand-2: #962615; --brand-tint: #f8e7e2;
  --saffron: #d9930f; --saffron-ink: #6b4704; --saffron-tint: #fbf1d9;
  --green: #2f6b3f; --green-tint: #e5f0e7;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(22, 19, 15, .05), 0 6px 20px rgba(22, 19, 15, .07);
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --under: var(--paper);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--paper); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.01em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.mt { margin-top: 24px; }
.center { text-align: center; justify-content: center; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

/* ---------------------------------------------------------------- icons */
.ic { width: 18px; height: 18px; flex: none; }
.ic-md { width: 28px; height: 28px; flex: none; }
.ic-lg { width: 44px; height: 44px; flex: none; }
.ic-xl { width: 72px; height: 72px; flex: none; }
.mark { width: 28px; height: 28px; flex: none; }
.mark-slice { fill: var(--brand); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; background: none; }
.btn .ic { width: 17px; height: 17px; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2b2620; }
.btn-line { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-3); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); }
.btn-danger { background: var(--card); color: var(--brand); border-color: #e9b8ae; }
.btn-danger:hover { background: var(--brand-tint); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-row, .cta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cta-row { gap: 12px; margin-top: 24px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: none; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }

/* ---------------------------------------------------------------- notice + header */
.notice { background: var(--ink); color: #eee3d1; font-size: 13.5px; }
.notice .wrap { display: flex; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.notice .ic { width: 16px; height: 16px; color: var(--saffron); }
@media (max-width: 700px) {
  .notice { font-size: 12.5px; line-height: 1.45; }
  .notice .wrap { display: block; padding-top: 7px; padding-bottom: 7px; }
  .notice .ic { display: none; }
  .notice a { margin-left: 4px; }
}
.notice a { color: #fff; font-weight: 600; text-decoration-color: var(--saffron); }
.hdr { position: sticky; top: 0; z-index: 40; background: var(--card); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.wordmark { font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.wordmark b { font-weight: 700; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 550; color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--soft); }
.nav .nav-sep, .nav .nav-cta { display: none; }
.hdr-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.city-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; background: var(--soft); font-size: 14px; font-weight: 600; }
.city-pill .ic { width: 15px; height: 15px; color: var(--brand); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .hdr-in { gap: 12px; }
  .menu-btn { display: inline-grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .nav .nav-sep { display: block; height: 1px; background: var(--line); margin: 6px 0; }
  .nav .nav-cta { display: flex; align-items: center; gap: 8px; color: var(--brand); }
}
@media (max-width: 700px) { .hide-sm { display: none !important; } .city-pill { height: 30px; padding: 0 10px; font-size: 13px; } }

/* ---------------------------------------------------------------- hero */
.hero { padding: 44px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--paper), var(--paper)) ; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: 40px; align-items: stretch; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.eyebrow .ic { width: 15px; height: 15px; color: var(--brand); }
.eyebrow.light { color: #d9cdb9; }
.hero h1, .biz-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.02em; }
.hero h1 em, .biz-hero h1 em { font-style: italic; color: var(--brand); }
.lede { font-size: 18px; color: var(--ink-2); margin-top: 16px; max-width: 620px; }
.finder { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.finder fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.finder legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.finder-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-width: 52px; height: 40px; padding: 0 12px; font-weight: 600; border-right: 1px solid var(--line-2); cursor: pointer; }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -3px; }
.quick { margin-top: 16px; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.quick a { color: var(--ink-2); font-weight: 550; }
.hero-panel { background: var(--ink); color: #f1e8d9; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.panel-k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #b9ad99; font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin: 0; }
.stats div { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 10px; }
.stats dt { font-size: 13px; color: #b9ad99; }
.stats dd { margin: 2px 0 0; font-size: 34px; font-weight: 650; color: #fff; letter-spacing: -.02em; }
.panel-best { margin-top: auto; display: block; text-decoration: none; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; }
.panel-best:hover { background: rgba(255, 255, 255, .1); }
.panel-best small { display: block; font-size: 12px; color: var(--saffron); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.panel-best b { display: block; color: #fff; font-size: 17px; margin: 4px 0 2px; }
.panel-best span { font-size: 14px; color: #d7cab5; }
.panel-best em { font-style: normal; color: #fff; font-weight: 600; margin-left: 6px; }

/* ---------------------------------------------------------------- sections */
.sec { padding: 44px 0; }
.sec + .sec { padding-top: 8px; }
.sec-tint { --under: var(--soft); background: var(--soft); padding: 44px 0 !important; }
.sec-feat { padding-top: 40px; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.sec-h.center { justify-content: center; text-align: center; }
.sec-h h2 { font-size: 26px; }
.sec-h p { color: var(--ink-3); margin-top: 6px; font-size: 15px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; color: var(--ink); }
.more-link .ic { width: 16px; height: 16px; }
.more-link:hover { color: var(--brand); }

/* ---------------------------------------------------------------- deal card */
.grid-deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.deal { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.deal:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.deal.is-feat { border-color: #ecd29a; }
.deal-media { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 1; text-decoration: none; overflow: hidden; }
.deal-media img { width: 100%; height: 100%; object-fit: cover; }
.deal-ic { display: grid; place-items: center; }
.deal-cat { position: absolute; left: 14px; bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.flag { position: absolute; top: 10px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.flag .ic { width: 13px; height: 13px; }
.flag-feat { left: 10px; background: var(--saffron); color: #2a1c02; }
.flag-save { right: 10px; background: var(--green); color: #fff; }
.deal-body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.deal-rest { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); font-weight: 550; min-width: 0; }
.deal-rest a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-rest a:hover { text-decoration: underline; }
.vf { display: inline-flex; align-items: center; gap: 4px; color: #2c6aa0; font-size: 13px; font-weight: 600; }
.vf .ic { width: 15px; height: 15px; }
.deal-title { font-size: 17.5px; line-height: 1.25; font-weight: 650; }
.deal-title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.deal-rest a, .deal .vf { position: relative; z-index: 2; }
.deal-items { font-size: 14px; color: var(--ink-2); display: grid; gap: 1px; }
.deal-items li { position: relative; padding-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-items li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }
.deal-items li.more { color: var(--ink-3); padding-left: 12px; }
.deal-items li.more::before { display: none; }
.deal-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-3); margin-top: auto; padding-top: 4px; }
.deal-meta span { display: inline-flex; align-items: center; gap: 4px; }
.deal-meta .ic { width: 14px; height: 14px; }
.deal-foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 12px 16px 14px; border-top: 1.5px dashed var(--line-2); }
.deal-foot::before, .deal-foot::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--under); border: 1px solid var(--line); }
.deal-foot::before { left: -9px; }
.deal-foot::after { right: -9px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.price s { color: var(--ink-4); font-size: 13.5px; }
.price small { flex-basis: 100%; display: inline-block; width: fit-content; margin-top: 3px; padding: 2px 8px; border-radius: 99px; background: var(--green-tint); color: var(--green); font-size: 12.5px; font-weight: 650; }
.deal-end { font-size: 12.5px; color: var(--ink-3); text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.deal-end.soon { color: var(--brand); font-weight: 650; }
.sample { display: inline-block; font-size: 11px; font-weight: 650; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: 6px; padding: 1px 6px; text-transform: none; letter-spacing: 0; }

/* food-type tints */
.cat-burgers { background: #f4e5d1; color: #84531a; }
.cat-pizza { background: #f6ddd4; color: #9e3a22; }
.cat-desi { background: #f0ddc9; color: #7a461a; }
.cat-biryani { background: #f6e9c6; color: #85610e; }
.cat-bbq { background: #e4dfd8; color: #3c332a; }
.cat-fried-chicken { background: #f5e7c5; color: #8c620f; }
.cat-shawarma { background: #e7e9d4; color: #545f28; }
.cat-chinese { background: #f2d8d3; color: #8a2a20; }
.cat-pasta { background: #ede5d2; color: #69582c; }
.cat-breakfast { background: #f7f0d4; color: #857015; }
.cat-desserts { background: #f3dfe4; color: #883452; }
.cat-cafe { background: #e9ded4; color: #5a3a27; }

/* monograms */
.mono, .mono-xs, .mono-sm, .mono-lg { display: inline-grid; place-items: center; flex: none; font-weight: 700; letter-spacing: -.02em; border-radius: 10px; object-fit: cover; }
.mono { width: 44px; height: 44px; font-size: 16px; }
.mono-xs { width: 22px; height: 22px; font-size: 10px; border-radius: 6px; }
.mono-sm { width: 32px; height: 32px; font-size: 13px; border-radius: 8px; }
.mono-lg { width: 76px; height: 76px; font-size: 26px; border-radius: 16px; }
.hue-0 { background: #e9dccb; color: #6b4a22; } .hue-1 { background: #dfe6d8; color: #3f5530; }
.hue-2 { background: #f0d9d2; color: #8a3423; } .hue-3 { background: #dbe3ea; color: #2f4a63; }
.hue-4 { background: #efe3c4; color: #765811; } .hue-5 { background: #e8dbe6; color: #61385b; }
.hue-6 { background: #d9e6e3; color: #2d5a52; } .hue-7 { background: #e6e0d5; color: #4a4238; }
.hue-bg-0 { background: #efe5d8; } .hue-bg-1 { background: #e7ece2; } .hue-bg-2 { background: #f4e4de; } .hue-bg-3 { background: #e5eaef; }
.hue-bg-4 { background: #f3ead3; } .hue-bg-5 { background: #eee4ec; } .hue-bg-6 { background: #e3ece9; } .hue-bg-7 { background: #ece7de; }

/* ---------------------------------------------------------------- home blocks */
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.value-col { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 8px; }
.value-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.value-h span { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 16px; }
.value-h a { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.value-list li + li { border-top: 1px solid var(--line); }
.value-list a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; text-decoration: none; }
.value-list a:hover b { color: var(--brand); }
.rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); font-size: 13px; font-weight: 700; }
.vl-main { min-width: 0; }
.vl-main b, .vl-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-main b { font-size: 15px; font-weight: 600; }
.vl-main small, .vl-price small { font-size: 12.5px; color: var(--ink-3); }
.vl-price { text-align: right; }
.vl-price b { display: block; font-size: 16px; color: var(--green); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .55); margin-bottom: 10px; }
.cat b { font-size: 15.5px; color: var(--ink); }
.cat small { font-size: 13px; color: var(--ink-2); opacity: .8; }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chips a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 550; font-size: 14.5px; }
.area-chips a:hover { border-color: var(--ink-3); }
.area-chips span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: var(--soft); font-size: 12.5px; font-weight: 700; }
.biz-band { background: var(--ink); color: #f1e8d9; padding: 56px 0; }
.biz-in { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; }
.biz-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; color: #fff; }
.biz-band p { color: #cdbfa9; margin-top: 12px; font-size: 17px; max-width: 620px; }
.biz-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- listing */
.list-head { padding: 22px 0 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.list-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; letter-spacing: -.015em; }
.list-intro { color: var(--ink-2); margin-top: 8px; font-size: 16px; max-width: 720px; }
.list-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 56px; }
.filters { position: sticky; top: 80px; }
.filters form { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 16px; }
.filters-h { display: flex; align-items: center; justify-content: space-between; }
.filters-h a { font-size: 13.5px; color: var(--ink-3); }
.filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters legend, .fld-l { font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 7px; padding: 0; }
.filters legend { text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; color: var(--ink-3); }
.filters select { width: 100%; }
.close-filters, .sheet-only, .filters-btn { display: none !important; }
.js .no-js-only { display: none !important; }
.search-in { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.search-in .ic { color: var(--ink-3); width: 17px; height: 17px; }
.search-in input:not([type=checkbox]):not([type=radio]):not([type=file]) { border: 0; outline: 0; flex: 1; min-width: 0; height: 100%; background: none; padding: 0; }
.search-in:focus-within { border-color: var(--ink-3); box-shadow: 0 0 0 3px rgba(184, 50, 31, .12); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 550; cursor: pointer; user-select: none; }
.opt span:hover { border-color: var(--ink-3); }
.opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.results-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-height: 42px; }
.results-bar .count { color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.results-bar .count b { color: var(--ink); }
.sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.sort select { height: 38px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.chip .ic { width: 14px; height: 14px; opacity: .7; }
.chip:hover .ic { opacity: 1; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 28px; }
.pager > a, .pager > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.pager .off { opacity: .4; }
.pager .nums { display: flex; gap: 4px; border: 0; background: none; padding: 0; }
.pager .nums a, .pager .nums b, .pager .nums span { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 9px; text-decoration: none; font-weight: 600; }
.pager .nums b { background: var(--ink); color: #fff; }
.pager .nums a:hover { background: var(--soft); }
.empty { text-align: center; padding: 56px 20px; background: var(--card); border: 1px dashed var(--line-2); border-radius: 16px; display: grid; justify-items: center; gap: 10px; color: var(--ink-2); }
.empty .ic-lg, .empty .ic-xl { color: var(--ink-4); }
.empty h1, .empty h2 { font-size: 22px; color: var(--ink); }
.empty.big { margin: 48px auto; }
.empty-sm { padding: 18px; color: var(--ink-3); }

@media (max-width: 900px) {
  .list-layout { grid-template-columns: 1fr; gap: 0; }
  .filters { position: fixed; inset: 0; z-index: 60; top: auto; height: 88vh; transform: translateY(100%); transition: transform .25s ease; visibility: hidden; }
  .filters.open { transform: none; visibility: visible; box-shadow: 0 -20px 60px rgba(0, 0, 0, .25); }
  .filters form { height: 100%; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px 24px; align-content: start; }
  .close-filters { display: inline-grid !important; }
  .js .sheet-only { display: inline-flex !important; position: sticky; bottom: 0; }
  .js .filters-btn { display: inline-flex !important; }
  .filters-h { position: sticky; top: -18px; background: var(--card); padding: 4px 0 8px; z-index: 1; gap: 12px; }
  .filters-h a { margin-left: auto; }
}

/* ---------------------------------------------------------------- deal page */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; padding-bottom: 32px; }
.detail-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 6; border-radius: 18px; overflow: hidden; }
.detail-media:has(img) { aspect-ratio: 16 / 9; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-rest { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--ink-2); }
.detail-rest a { text-decoration: none; }
.detail-rest a:hover { text-decoration: underline; }
.detail-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1.04; margin-top: 8px; letter-spacing: -.015em; }
.detail-sub { color: var(--ink-3); margin-top: 8px; }
.block { margin-top: 30px; }
.block h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.ticks { display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; }
.ticks .ic { color: var(--green); margin-top: 3px; }
.desc { margin-top: 14px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.facts dt .ic { width: 15px; height: 15px; }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.facts.small div { padding: 8px 10px; }
.branches { display: grid; gap: 10px; }
.branches li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.branches small { color: var(--ink-3); margin-left: 6px; }
.branches p { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }
.branches .muted { display: flex; align-items: center; gap: 5px; font-size: 13.5px; }
.branches .muted .ic { width: 14px; height: 14px; }
.branches.compact li { padding: 10px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.branches.compact li:first-child { border-top: 0; }
.report { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 16px; }
.report summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 14.5px; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report-form { display: grid; gap: 12px; margin-top: 14px; max-width: 520px; }
.detail-side { position: sticky; top: 84px; }
.buy { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.buy-price b { font-size: 38px; font-weight: 700; letter-spacing: -.03em; }
.buy-price s { color: var(--ink-4); font-size: 16px; }
.save { background: var(--green); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.buy-pp { margin-top: 4px; color: var(--ink-2); }
.buy-pp b { color: var(--green); }
.svc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }
.svc li { display: inline-flex; align-items: center; gap: 5px; }
.svc .ic { width: 15px; height: 15px; color: var(--green); }
.buy-ends { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.buy-ends.soon { color: var(--brand); }
.buy-ends .ic { width: 16px; height: 16px; }
.buy-actions { display: grid; gap: 8px; margin-top: 18px; }
.fine { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.45; }

/* ---------------------------------------------------------------- restaurant pages */
.rest-hero { position: relative; border-bottom: 1px solid var(--line); }
.rest-cover { width: 100%; height: 240px; object-fit: cover; }
.rest-in { padding-top: 20px; padding-bottom: 24px; }
.rest-id { display: flex; gap: 18px; align-items: center; }
.rest-id h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 46px); display: flex; align-items: center; gap: 10px; }
.rest-id h1 .vf .ic { width: 26px; height: 26px; }
.rest-id p { color: var(--ink-2); margin-top: 4px; }
.rest-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.rest-tags span { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .65); }
.rest-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rest-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.rest-side { display: grid; gap: 14px; position: sticky; top: 84px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.side-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 8px; }
.side-card p { color: var(--ink-2); font-size: 14.5px; }
.inline-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.inline-filter .search-in { flex: 1 1 240px; }
.inline-filter select { flex: 0 1 220px; }
.rest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding-bottom: 56px; }
.rest-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; }
.rest-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.rest-card b { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.rest-card small { display: block; color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); border-top: 1px dashed var(--line-2); padding-top: 10px; }
.rc-foot span:last-child { color: var(--green); font-weight: 650; }
.zones { columns: 3 300px; column-gap: 20px; padding-bottom: 32px; }
.zone { break-inside: avoid; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 20px; }
.zone h2 { font-size: 16px; margin-bottom: 8px; }
.zone li a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; text-decoration: none; border-top: 1px solid var(--line); font-size: 15px; }
.zone li:first-child a { border-top: 0; }
.zone li a:hover span { color: var(--brand); }
.zone b { font-size: 13px; background: var(--soft); border-radius: 99px; padding: 1px 9px; }
.zone em { font-style: normal; font-size: 12.5px; color: var(--ink-4); }
.soon-cities { text-align: center; padding: 28px; border: 1px dashed var(--line-2); border-radius: 16px; display: grid; justify-items: center; gap: 10px; }
.soon-cities p { color: var(--ink-2); }

/* ---------------------------------------------------------------- for restaurants */
.biz-hero { padding: 48px 0; border-bottom: 1px solid var(--line); }
.biz-hero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 16px 64px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.steps b { display: block; font-size: 16px; }
.steps span { color: var(--ink-2); font-size: 14.5px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.feature-grid .ic-md { color: var(--brand); margin-bottom: 12px; }
.feature-grid h3 { font-size: 17px; margin-bottom: 6px; }
.feature-grid p { color: var(--ink-2); font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plans.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.plan-hi { border: 2px solid var(--ink); }
.plan-add { background: var(--saffron-tint); border-color: #ecd29a; }
.plan-badge { position: absolute; top: -12px; left: 20px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.plan h3 { font-size: 20px; }
.plan-blurb { color: var(--ink-2); font-size: 14.5px; min-height: 2.6em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; padding: 8px 0 6px; border-bottom: 1px dashed var(--line-2); }
.plan-price b { font-size: 30px; letter-spacing: -.03em; }
.plan-price span { color: var(--ink-3); font-size: 14px; }
.plan ul { display: grid; gap: 8px; margin: 6px 0 auto; padding-bottom: 14px; }
.plan li { display: flex; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.plan li .ic { color: var(--green); width: 17px; height: 17px; margin-top: 2px; }
.plan form { display: grid; gap: 8px; }
.plans-note { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 18px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq p { color: var(--ink-2); padding-bottom: 16px; }

/* ---------------------------------------------------------------- prose */
.prose { padding-top: 32px; padding-bottom: 64px; }
.prose h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 48px); margin-bottom: 14px; }
.prose h2 { font-size: 19px; margin: 28px 0 8px; }
.prose p { color: var(--ink-2); margin-bottom: 10px; }
.prose .lede { margin: 0 0 18px; }
.contact-direct { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px !important; }
.card-form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 14px; margin-top: 8px; }

/* ---------------------------------------------------------------- forms */
.fld { display: grid; gap: 0; min-width: 0; align-content: start; }
.fld-l { display: block; }
.fld-h { color: var(--ink-3); font-size: 12.5px; margin-top: 5px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); outline: 0; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 10px 12px; line-height: 1.45; resize: vertical; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b7368' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-3); box-shadow: 0 0 0 3px rgba(184, 50, 31, .12); }
.search-in input:not([type=checkbox]):not([type=radio]):not([type=file]):focus { box-shadow: none; }
.row2, .row3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
fieldset.fld { border: 0; padding: 0; margin: 0; }
.file { display: block; margin-top: 10px; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1.5px dashed var(--line-2); border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.file span:hover { border-color: var(--ink-3); color: var(--ink); }
.file input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.thumb { width: 100%; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 8px; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.form-narrow { max-width: 760px; display: grid; gap: 14px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .fld { flex: 1 1 200px; }
.inline-form.tight { flex-wrap: nowrap; align-items: center; gap: 6px; }
.inline-form.tight input { height: 36px; }

/* flash */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 14.5px; border: 1px solid transparent; }
.flash .ic { margin-top: 1px; }
.flash.ok { background: var(--green-tint); color: #1f4b2b; border-color: #cfe1d3; }
.flash.err { background: var(--brand-tint); color: #7d2112; border-color: #f0cfc7; }
.flash.warn { background: var(--saffron-tint); color: var(--saffron-ink); border-color: #efdcaa; }
.flash.secret code { font-size: 16px; background: #fff; padding: 2px 8px; border-radius: 6px; border: 1px solid #cfe1d3; user-select: all; }

/* ---------------------------------------------------------------- footer */
.ftr { background: var(--card); border-top: 1px solid var(--line); padding: 44px 0 24px; margin-top: 24px; }
.ftr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.ftr-brand p { color: var(--ink-2); margin-top: 12px; font-size: 15px; max-width: 320px; }
.ftr-brand .fine { margin-top: 10px; }
.ftr h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 12px; }
.ftr li { margin-bottom: 7px; font-size: 14.5px; }
.ftr li a { text-decoration: none; color: var(--ink-2); }
.ftr li a:hover { color: var(--ink); text-decoration: underline; }
.ftr-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 550; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- auth */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--paper); }
.auth-main { width: 100%; max-width: 480px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.auth-card .brand { margin-bottom: 8px; }
.auth-card h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; }
.auth-sub { color: var(--ink-2); margin-top: -6px; }
.auth-alt { text-align: center; color: var(--ink-2); font-size: 14.5px; }
.auth-alt.small { font-size: 13px; color: var(--ink-3); margin-top: -6px; }
.auth-foot { text-align: center; margin-top: 18px; }
.auth-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); text-decoration: none; font-size: 14px; }

/* ---------------------------------------------------------------- app shell */
body.app { background: var(--paper); }
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: #e9dfcf; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; }
.side .brand { color: #fff; }
.side .wordmark b { color: #f08d73; }
.side .mark-slice { fill: #f08d73; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 16px; }
.side .wordmark { font-size: 19px; }
.panel > p:not(:last-child) { margin-bottom: 14px; }
.side-tag { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #b5a891; border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px; padding: 2px 5px; font-size: 9.5px; flex: none; }
.side-who { display: flex; gap: 10px; align-items: center; padding: 12px 8px; margin-bottom: 10px; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.side-who b { display: block; color: #fff; font-size: 14.5px; line-height: 1.25; }
.side-who small { display: block; color: #a99d88; font-size: 12px; word-break: break-all; }
.side nav { display: grid; gap: 2px; }
.side nav a, .side-foot a, .side-foot button { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: #d6cab6; text-decoration: none; font-size: 14.5px; font-weight: 550; border: 0; background: none; width: 100%; cursor: pointer; text-align: left; }
.side nav a:hover, .side-foot a:hover, .side-foot button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side nav a[aria-current] { background: rgba(255, 255, 255, .12); color: #fff; }
.side nav a[aria-current] .ic { color: #f08d73; }
.side .count { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; background: var(--saffron); color: #2a1c02; border-radius: 99px; padding: 1px 8px; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 2px; }
.topbar { display: none; }
.app-main { padding: 28px 32px 56px; max-width: 1240px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; letter-spacing: -.02em; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-actions form { display: inline; }
.page-intro { color: var(--ink-2); margin: -8px 0 18px; max-width: 760px; }
.acting { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 16px; background: var(--saffron); color: #2a1c02; font-size: 14px; font-weight: 600; }
.acting div { display: flex; align-items: center; gap: 8px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; min-width: 0; }
.panel h2 { font-size: 16.5px; margin-bottom: 12px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-h h2 { margin: 0; }
.panel-h a { font-size: 14px; font-weight: 600; }
.panel.danger { border-color: #f0cfc7; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cols > .panel { margin-bottom: 0; }
.cols + .panel, .cols + .cols, .cols + section { margin-top: 16px; }
.span2 { grid-column: span 2; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; min-width: 0; }
a.kpi:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.kpi-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--soft); color: var(--ink-2); flex: none; }
.kpi small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.kpi b { display: block; font-size: 26px; letter-spacing: -.02em; margin: 2px 0; }
.kpi span { display: block; font-size: 12.5px; color: var(--ink-3); }
.chart-h { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; align-items: center; }
.chart-h span { display: inline-flex; align-items: center; gap: 6px; }
.chart-h .muted { margin-left: auto; }
.key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.key-v, .b-v { background: #efc9bd; fill: #efc9bd; }
.key-k, .b-k { background: var(--brand); fill: var(--brand); }
.chart svg { width: 100%; height: auto; }
.chart text { font-size: 10px; fill: var(--ink-3); font-family: var(--font); }
.chart .axis { stroke: var(--line); }
.upsell { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }
.upsell .ic { width: 15px; height: 15px; }
.todo { display: grid; gap: 4px; }
.todo li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.todo li:first-child { border-top: 0; padding-top: 0; }
.todo li > .ic { color: var(--ink-3); margin-top: 2px; }
.todo .t-warn > .ic { color: var(--brand); }
.todo b { display: block; font-size: 14.5px; }
.todo span { display: block; color: var(--ink-2); }
.todo a { font-weight: 600; font-size: 13.5px; }
.log li { display: grid; grid-template-columns: 120px 180px minmax(0, 1fr) auto; gap: 10px; font-size: 13.5px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.log li:first-child { border-top: 0; }
.log small { color: var(--ink-3); }
.plain li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.plain li:first-child { border-top: 0; }
.plain b { display: block; font-size: 14.5px; }
.plain small { display: block; color: var(--ink-3); font-size: 12.5px; }
.plain.cols-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.plain.cols-2 li:nth-child(2) { border-top: 0; }
.cards-list { display: grid; gap: 12px; }
.cards-list .panel { margin: 0; }
.branch-card, .req { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.branch-card small { color: var(--ink-3); margin-left: 8px; }
.branch-card p { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }
.req p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.req-side { display: grid; gap: 10px; justify-items: end; min-width: 240px; }
.req-side .amount { font-size: 22px; }
.msg.unread { border-left: 3px solid var(--brand); }
.msg-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg-h small { color: var(--ink-3); margin-left: auto; }
.msg-body { white-space: pre-wrap; margin: 10px 0; color: var(--ink); }
.tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; font-weight: 600; font-size: 14.5px; color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs em { font-style: normal; font-size: 12px; background: var(--soft); border-radius: 99px; padding: 0 7px; color: var(--ink-2); }
.tabs-note { margin-left: auto; font-size: 13.5px; color: var(--ink-3); padding: 0 4px; }
.tabs-search { margin-left: auto; padding-bottom: 6px; }
.tabs-search .search-in { height: 36px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.panel .table-wrap { border-radius: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 650; background: var(--soft-2); padding: 10px 12px; white-space: nowrap; }
.tbl td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl .act { text-align: right; width: 1%; white-space: nowrap; }
.tbl .strong { font-weight: 650; text-decoration: none; }
.tbl .strong:hover { text-decoration: underline; }
.tbl .clip { max-width: 260px; color: var(--ink-2); font-size: 13.5px; }
.tbl tr.row-warn td { background: #fffaf0; }
.cell-id { display: flex; gap: 10px; align-items: center; }
.acts { display: flex; gap: 2px; justify-content: flex-end; align-items: center; }
.acts form { display: inline; }
.mini-form { display: inline-flex !important; align-items: center; gap: 2px; }
.mini-form select { height: 32px; width: auto; padding: 0 26px 0 8px; font-size: 13px; background-position: right 6px center; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.pill .ic { width: 13px; height: 13px; }
.pill-live, .pill-active, .pill-approved, .pill-resolved { background: var(--green-tint); color: var(--green); }
.pill-pending, .pill-waiting, .pill-feat { background: var(--saffron-tint); color: var(--saffron-ink); }
.pill-suspended, .pill-rejected, .pill-open { background: var(--brand-tint); color: var(--brand-2); }
.pill-paused, .pill-hidden, .pill-ended { background: var(--soft); color: var(--ink-3); }
.meter { width: 100%; height: 10px; border-radius: 99px; overflow: hidden; appearance: none; border: 0; background: var(--soft); margin: 10px 0 6px; }
.meter::-webkit-progress-bar { background: var(--soft); border-radius: 99px; }
.meter::-webkit-progress-value { background: var(--ink); border-radius: 99px; }
.meter::-moz-progress-bar { background: var(--ink); border-radius: 99px; }
.plan-now { font-size: 15px; color: var(--ink-2); }
.plan-now b { font-size: 22px; color: var(--ink); }
.pay-info p { margin-bottom: 4px; font-weight: 550; }
.plans-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.plans-edit .panel { margin: 0; display: grid; gap: 12px; align-content: start; }
.zone-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 16px 0 8px; }
.area-admin { display: flex; flex-wrap: wrap; gap: 6px; }
.area-admin li { display: inline-flex; align-items: center; gap: 6px; background: var(--soft-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 4px 3px 12px; font-size: 14px; }
.area-admin small { color: var(--ink-3); font-size: 12px; }
.area-admin .icon-btn { width: 26px; height: 26px; }
.area-admin .icon-btn .ic { width: 14px; height: 14px; }

/* deal form */
.form-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.form-main .panel { display: grid; gap: 14px; }
.form-main .panel h2 { margin-bottom: 0; }
.form-side { position: sticky; top: 16px; display: grid; gap: 0; }
.pp-line { font-size: 14px; color: var(--green); font-weight: 600; min-height: 1.4em; }
.branch-opts { margin-top: 8px; }
.preview-panel .pv-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 6px; background: var(--soft-2); }
.pv-card small { color: var(--ink-3); font-weight: 600; }
.pv-card b { font-size: 16.5px; }
.pv-card ul { font-size: 13.5px; color: var(--ink-2); display: grid; gap: 1px; }
.pv-card ul li::before { content: "· "; }
.pv-card p { border-top: 1px dashed var(--line-2); padding-top: 8px; margin-top: 4px; }
.pv-card strong { font-size: 19px; }
.pv-card span { font-size: 13px; color: var(--green); font-weight: 600; }
.sticky-save { display: grid; gap: 6px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-in, .biz-hero-in, .biz-in { grid-template-columns: 1fr; gap: 28px; }
  .finder-row { grid-template-columns: 1fr 1fr; }
  .finder-row .btn { grid-column: 1 / -1; }
  .value-grid { grid-template-columns: 1fr; }
  .detail, .rest-body { grid-template-columns: 1fr; gap: 24px; }
  .detail-side, .rest-side { position: static; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 70; transform: translateX(-100%); transition: transform .25s ease; visibility: hidden; }
  .side.open { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(22, 19, 15, .45); }
  .topbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .app-main { padding: 20px 16px 48px; }
  .cols { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .form-cols { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .log li { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .hero { padding: 28px 0; }
  .lede { font-size: 16.5px; }
  .finder { padding: 14px; }
  .finder-row { grid-template-columns: 1fr; }
  .seg { display: flex; }
  .seg label { flex: 1; }
  .seg span { min-width: 0; }
  .stats dd { font-size: 28px; }
  .sec { padding: 32px 0; }
  .sec-h h2 { font-size: 22px; }
  .grid-deals, .grid-3 { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .plans, .feature-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; flex-direction: column; gap: 8px; }
  .kpi b { font-size: 22px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 24px; }
  .rest-id { align-items: flex-start; }
  .pager .nums { display: none; }
  .tabs-note, .tabs-search { margin-left: 0; width: 100%; }
  .req, .branch-card { flex-direction: column; }
  .req-side { justify-items: start; min-width: 0; }
  .plain.cols-2 { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 700px) { .deal-media { aspect-ratio: 3 / 1; } }
