/* GENERATED by tools/build_css_bundles.py — do not edit directly.
   Exact source order is recorded at every boundary. */

/* ===== BEGIN v360-polish.css sha256:fefebcdb6be53ea2 ===== */
/* v360 — evidence-led compact visual system.
   Loaded last on every page. It keeps Daastgir's merchant palette while
   removing the oversized headers, marathon pages and cascade conflicts found
   in the 726-state browser baseline. */

/* Safe shrink points: flex/grid children and long Persian/Latin content may
   wrap, but nothing is hidden just to silence overflow. */
:is(.header-inner,.between,.cluster,.grid,.panel-layout,.panel-main-content,
    .panel-head,.card,.field,.info-row,.business-workspace-head) > * { min-width: 0; }
:is(h1,h2,h3,h4,p,li,td,th,label,.card-title,.field-hint,.alert,.badge) {
  overflow-wrap: anywhere;
}
:is(h1,h2,h3,.section-head h2) { text-wrap: balance; }
.main-content { min-height: 54dvh; }

/* One compact header row on desktop. Secondary destinations remain available
   in the complete drawer; no destination or capability is removed. */
.site-header { box-shadow: 0 1px 0 var(--color-border); }
.site-header .header-inner { min-height: 64px; }
.site-header .brand-logo { width: 42px; height: 42px; object-fit: contain; }
.site-header .brand-text { line-height: 1.25; }
.site-header .brand-text small { margin-top: 2px; }
.site-header .main-nav { min-width: 0; justify-content: center; }
.site-header .main-nav a { min-height: 40px; padding: 7px 9px; font-size: 12px; white-space: nowrap; }
.site-header .header-actions { flex: none; gap: 6px; }
.site-header .header-actions :is(.btn,.btn-icon) { min-height: 40px; }
@media (min-width: 1200px) {
  :root[data-dg-bazaar] { --header-h: 68px; }
  :root[data-dg-bazaar] .header-inner {
    min-height: 68px; height: 68px; padding-block: 5px; flex-wrap: nowrap;
    gap: 10px;
  }
  :root[data-dg-bazaar] .main-nav {
    display: flex !important; order: initial; flex: 1 1 auto;
    margin: 0; padding: 0; border: 0; overflow: hidden;
    justify-content: center; gap: 1px; min-height: 0;
  }
  :root[data-dg-bazaar] .main-nav a { padding-inline: 8px; }
  :root[data-dg-bazaar] .site-header .brand-text small { display: none; }
}
@media (max-width: 1199px) {
  :root[data-dg-bazaar] .main-nav { display: none !important; }
}
@media (max-width: 600px) {
  .site-header .header-inner { min-height: 58px; gap: 5px; }
  .site-header .brand-logo { width: 38px; height: 38px; }
  .site-header .brand-text small { display: none; }
  .site-header .brand-text strong { font-size: 15px; }
  .site-header .header-actions { gap: 3px; }
  .site-header .header-actions .btn-icon,
  .site-header .nav-toggle { width: 40px; height: 40px; }
}

/* Interior page rhythm: the title explains the page; it must not consume the
   page. Breadcrumb, heading and first card now read as one compact block. */
.breadcrumb { padding: 7px 0 3px; min-height: 30px; }
.page-hero { padding: 12px 0 14px; }
.page-hero > .eyebrow { min-height: 26px; margin-bottom: 6px; padding: 3px 9px; }
.page-hero :is(h1,h2) { font-size: clamp(1.35rem, 2.2vw, 1.95rem); line-height: 1.35; margin: 0; }
.page-hero p { margin-top: 5px; font-size: clamp(.86rem, 1.2vw, 1rem); line-height: 1.7; max-width: 62ch; }
.section { padding-block: 34px; }
.section-sm { padding-block: 20px; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.4; }
.section-head p { font-size: .95rem; line-height: 1.75; }
.card-pad { padding: clamp(15px, 1.7vw, 21px); }
.field { margin-bottom: 12px; }
:is(.input,.select,.textarea) { min-height: 42px; }
.textarea { min-height: 92px; }
.mb-lg { margin-bottom: 15px; }
.mt-lg { margin-top: 15px; }
@media (max-width: 600px) {
  .breadcrumb > svg:has(+ [aria-current="page"]),
  .breadcrumb > [aria-current="page"] { display: none; }
  .page-hero { padding: 9px 0 11px; }
  .page-hero :is(h1,h2) { font-size: 1.24rem; }
  .page-hero p { font-size: .84rem; }
  .section { padding-block: 24px; }
  .section-sm { padding-block: 14px; }
  .card-pad { padding: 14px; }
}

/* Homepage hero: desktop keeps the branded market photograph, but both copy
   and image fit within the first viewport. Mobile uses a landscape scene,
   two-column open-now list, and shorter control rhythm instead of a 1090px
   pre-content wall. */
:root[data-dg-bazaar] .h-hero { padding-top: 20px; }
:root[data-dg-bazaar] .h-hero-in {
  width: min(calc(100% - 48px), 1320px); gap: 18px 34px; align-items: center;
}
:root[data-dg-bazaar] .h-hero-copy { padding-block: 4px; }
:root[data-dg-bazaar] .h-hero-copy h1 {
  font-size: clamp(29px, 2.65vw, 42px); line-height: 1.45;
  letter-spacing: -.7px; margin: 13px 0 10px;
}
:root[data-dg-bazaar] .h-hero-lead { font-size: 14px; line-height: 1.8; }
:root[data-dg-bazaar] .h-hero-search { margin: 16px 0 12px; }
:root[data-dg-bazaar] .h-hero-search .input,
:root[data-dg-bazaar] .h-hero-search .btn { height: 44px; }
:root[data-dg-bazaar] .h-hero-cta .btn { min-height: 42px; }
:root[data-dg-bazaar] .h-hero-trust { margin-top: 14px; }
:root[data-dg-bazaar] .b-scene { aspect-ratio: 4 / 3; max-height: 500px; }
:root[data-dg-bazaar] .h-open { padding: 13px 16px; gap: 8px 14px; }
:root[data-dg-bazaar] .hero-mini { padding-block: 6px; }
:root[data-dg-bazaar] .section { padding-block: 34px; }
:root[data-dg-bazaar] .section-head { margin-bottom: 18px; }
:root[data-dg-bazaar] .h-catcard {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 54px;
  grid-template-rows: auto auto;
  grid-template-areas: "name icon" "nums icon";
  align-content: center;
  align-items: center;
  column-gap: 10px;
  min-height: 126px;
  padding: 15px;
}
:root[data-dg-bazaar] .h-catcard-ic {
  position: static !important;
  grid-area: icon;
  align-self: center;
  justify-self: center;
  max-width: 54px;
}
:root[data-dg-bazaar] .h-catcard-name {
  grid-area: name;
  min-width: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
:root[data-dg-bazaar] .h-catcard-nums { grid-area: nums; min-width: 0; }
@media (max-width: 800px) {
  :root[data-dg-bazaar] .h-hero { padding-top: 11px; }
  :root[data-dg-bazaar] .h-hero-in {
    width: calc(100% - 28px); max-width: none; gap: 14px;
  }
  :root[data-dg-bazaar] .h-hero-copy { padding: 2px 0 0; }
  :root[data-dg-bazaar] .h-hero-copy h1 {
    font-size: clamp(25px, 7.7vw, 30px); line-height: 1.5;
    margin: 10px 0 8px;
  }
  :root[data-dg-bazaar] .h-hero-lead { font-size: 13px; line-height: 1.75; }
  :root[data-dg-bazaar] .h-hero-search { margin: 13px 0 10px; padding: 4px; }
  :root[data-dg-bazaar] .h-hero-search .input,
  :root[data-dg-bazaar] .h-hero-search .btn { height: 42px; }
  :root[data-dg-bazaar] .h-hero-cta { gap: 7px; }
  :root[data-dg-bazaar] .h-hero-cta .btn { min-height: 40px; }
  :root[data-dg-bazaar] .h-hero-trust { margin-top: 10px; gap: 5px 9px; }
  :root[data-dg-bazaar] .b-scene { width: 100%; aspect-ratio: 16 / 9; max-height: 230px; }
  :root[data-dg-bazaar] .h-open { width: 100%; padding: 11px; }
  :root[data-dg-bazaar] .h-open-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  :root[data-dg-bazaar] .hero-mini { padding: 8px 5px; border-bottom: 0; border-inline-start: 1px solid var(--b-line); }
  :root[data-dg-bazaar] .h-open > .btn { grid-row: auto; }
  :root[data-dg-bazaar] .section { padding-block: 24px; }
  :root[data-dg-bazaar] .h-catcard { min-height: 118px; padding: 13px; }
}

/* The 182-category index is an index, not a 15,000px wall. Each parent is a
   native disclosure; the first group is open and search/navigation opens the
   relevant group. All images, leaves and links stay in the DOM and reachable. */
.catgroup {
  margin: 0 0 9px; padding: 0; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); background: var(--color-card); overflow: clip;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.catgroup > summary { list-style: none; cursor: pointer; }
.catgroup > summary::-webkit-details-marker { display: none; }
.catgroup-head {
  display: grid; grid-template-columns: 48px minmax(0,1fr) auto 18px;
  align-items: center; margin: 0; padding: 11px 13px; gap: 11px;
}
.catgroup-photo { width: 48px; height: 48px; border-radius: 10px; }
.catgroup-meta { min-width: 0; }
.catgroup-title { display: block; font-size: 1rem; font-weight: 800; line-height: 1.35; }
.catgroup-blurb { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.55; }
.catgroup-actions { padding: 8px 12px 0; border-top: 1px solid var(--color-border); }
.catgroup-all { display: inline-flex; min-height: 36px; padding: 5px 9px; font-size: .78rem; }
.catgroup-caret { width: 18px; height: 18px; color: var(--color-muted-foreground); transition: transform .18s ease; }
.catgroup[open] .catgroup-caret { transform: rotate(180deg); }
.catgroup .catcard-grid { padding: 8px 12px 12px; }
.catcard { min-height: 52px; padding: 7px 9px; border-radius: 9px; }
.catcard-grid { grid-template-columns: repeat(auto-fill,minmax(165px,1fr)); gap: 7px; }
.cats-search-wrap { padding: 12px; }
.cats-nav-bar { top: var(--header-h); margin-bottom: 10px; padding-block: 4px; }
.cats-nav-scroll .chip { min-height: 38px; padding: 5px 10px; }
@media (max-width: 640px) {
  .catgroup-head { grid-template-columns: 44px minmax(0,1fr) auto 16px; padding: 9px; gap: 7px; }
  .catgroup-photo { width: 44px; height: 44px; }
  .catgroup-head > .badge { padding-inline: 6px; font-size: 12px; }
  .catgroup-actions { padding: 6px 8px 0; }
  .catgroup-all { width: 100%; justify-content: center; padding-inline: 8px; }
  .catgroup-all svg { width: 18px; height: 18px; }
  .catgroup .catcard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 7px 8px 8px; gap: 6px; }
  .catcard { min-width: 0; }
  .catcard-thumb { width: 34px; height: 34px; }
  .catcard-name { font-size: 11.5px; }
  .catcard-n { font-size: 10px; padding-inline: 5px; }
}

/* Business detail: image, identity and actions become one compact information
   header. Description stays complete in the About card and is only clamped in
   the summary header. */
.biz-hero {
  display: grid; grid-template-columns: 108px minmax(0,1fr) minmax(250px,270px);
  align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-xl);
  min-height: 0; margin-bottom: 16px;
}
.biz-hero .art,
.biz-hero .art.photo { width: 108px; height: 108px; border-radius: 14px; object-fit: cover; }
.biz-hero h1 { font-size: clamp(1.25rem,2vw,1.75rem); line-height: 1.35; }
.biz-hero .sub {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; line-height: 1.7; margin-top: 5px;
}
.biz-action-panel {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  min-width: 0; padding: 8px; gap: 6px; border-radius: 12px;
}
.biz-action-title,.biz-action-subtitle,.biz-action-panel .quick-acts { grid-column: 1 / -1; }
.biz-action-panel > .btn { min-height: 40px; padding-inline: 7px; }
.biz-action-panel .quick-acts { margin-top: 2px; gap: 5px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.biz-action-panel .qa-btn { min-height: 48px; padding: 5px 3px; }
@media (max-width: 720px) {
  .biz-hero { grid-template-columns: 76px minmax(0,1fr); padding: 12px; gap: 10px; }
  .biz-hero .art,
  .biz-hero .art.photo { width: 76px; height: 76px; border-radius: 11px; }
  .biz-hero h1 { font-size: 1.14rem; }
  .biz-hero .card-meta { font-size: 11px; gap: 5px; }
  .biz-hero .sub { font-size: 12px; }
  .biz-action-panel {
    grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: stretch;
  }
  .biz-action-title,.biz-action-subtitle,.biz-action-panel .quick-acts { grid-column: 1 / -1; }
  .biz-action-panel .quick-acts { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .biz-action-panel .btn { padding-inline: 7px; font-size: 12px; }
}

/* Forms and panel hierarchy. Public footer is removed from admin markup in
   ui.py; this layer compacts the remaining workflow without hiding tools. */
.page-panel .panel-layout { gap: 14px; padding-block: 12px; }
.page-panel .panel-head { padding: 9px 11px; margin-bottom: 11px; }
.page-panel .panel-head h1 { font-size: clamp(1rem,1.45vw,1.22rem); }
.page-panel .panel-context-bar { margin-top: 6px; }
.page-panel .card-pad { padding: clamp(13px,1.5vw,18px); }
.page-panel .field { margin-bottom: 10px; }
.page-panel :is(.input,.select) { min-height: 40px; }
.page-panel .textarea { min-height: 82px; }
.page-panel .hours-grid { gap: 5px; }
.page-panel .hours-row { min-height: 44px; gap: 7px; padding-block: 4px; }
.page-panel .table-wrap { max-width: 100%; overflow-x: auto; }
.page-panel .table :is(th,td) { padding: 8px 9px; }
.business-workspace { margin-bottom: 11px; }
.business-workspace-head { padding: 9px 11px; }
.business-workspace-nav { padding: 5px; }
.business-workspace-link { min-height: 38px; padding: 5px 9px; }

/* Selected-business editor sections use native disclosure widgets. */
.business-editor-section { padding: 0 !important; overflow: clip; }
.business-editor-section > summary {
  list-style: none; display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 14px; cursor: pointer;
  background: color-mix(in oklab,var(--color-card) 94%,var(--color-primary) 6%);
}
.business-editor-section > summary::-webkit-details-marker { display: none; }
.business-editor-section > summary .section-caret { margin-inline-start: auto; transition: transform .18s ease; }
.business-editor-section[open] > summary .section-caret { transform: rotate(180deg); }
.business-editor-body { padding: 13px 15px 15px; border-top: 1px solid var(--color-border); }
@media (max-width: 600px) {
  .page-panel .panel-layout { padding-block: 7px 12px; }
  .page-panel .panel-head { padding: 7px 8px; margin-bottom: 9px; }
  .page-panel .panel-context-current { min-height: 27px; }
  .page-panel .card-pad { padding: 12px; }
  .business-editor-section > summary { min-height: 44px; padding: 8px 11px; }
  .business-editor-body { padding: 11px; }
  .page-panel .hours-row { grid-template-columns: minmax(62px,.7fr) 1fr 1fr auto; }
  .page-panel .hours-row > span:first-child { grid-column: auto; }
  .page-panel .hours-row .input { min-width: 0; padding-inline: 4px; font-size: 12px; }
  .page-panel .hours-row .check span { display: none; }
}

/* Footer: all links remain visible, but mobile uses two compact columns rather
   than a one-column thousand-pixel tail. */
.site-footer { margin-top: 34px; padding-block: 28px 0 !important; }
.site-footer .footer-grid { gap: 18px 24px; padding-bottom: 18px; }
.site-footer .footer-col h3 { margin-bottom: 7px; }
.site-footer .footer-col a,
.site-footer .footer-col li > span { min-height: 34px; padding-block: 3px; line-height: 1.45; }
.site-footer .footer-bottom { padding-block: 12px; gap: 8px 14px; }
.site-footer .trust-row { padding-block: 8px; }
@media (max-width: 560px) {
  .site-footer { padding-bottom: 76px !important; }
  .site-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 16px; }
  .site-footer .footer-about { grid-column: 1 / -1; }
  .site-footer .footer-about p { margin-top: 7px; line-height: 1.65; }
  .site-footer .footer-col:last-child { grid-column: 1 / -1; }
  .site-footer .footer-col:last-child ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 10px; }
  .site-footer .footer-bottom { display: grid; justify-items: start; font-size: 11px; }
  .site-footer::after { width: 90px !important; height: 90px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .catgroup-caret,.section-caret { transition: none; }
}
/* ===== END v360-polish.css ===== */

/* ===== BEGIN v360-field-hotfix.css sha256:af2500c7fac185d2 ===== */
/* v360 field hotfixes reported from the live owner dashboard.
   Loaded after v360-polish.css. Keep the site header and owner panel as
   separate visual regions, and give the pending-work heading, action and
   status message independent layout space. */

/* The owner shell is intentionally not a .panel-layout (its old duplicate
   sidebar was removed), so it needs its own top rhythm below the site header. */
.page-panel .owner-shell {
  padding-block: clamp(14px, 2vw, 22px) 24px;
}
.page-panel .owner-shell > .panel-head {
  margin-top: 0;
}

.owner-pending-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.owner-pending-head > * { min-width: 0; }
.owner-pending-head .card-title { margin: 0; }
.owner-pending-body { min-width: 0; }
.owner-pending-body > .alert { margin: 0; }

@media (max-width: 560px) {
  .page-panel .owner-shell {
    padding-top: 12px;
    padding-bottom: 20px;
  }
  .owner-pending-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
  }
  .owner-pending-head .btn {
    justify-self: start;
    min-height: 44px;
  }
}
/* ===== END v360-field-hotfix.css ===== */

/* ===== BEGIN v367-local.css sha256:e2cbcc0fd1ce4306 ===== */
/* v367 — local-market identity, random business stream and staged onboarding. */

/* The selected city remains visible in the global chrome. */
.header-city { max-width: 170px; }
.header-city span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-city-bar {
  display: flex;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  gap: 9px;
  padding: 5px max(12px, calc((100vw - var(--container-wide)) / 2));
  color: var(--color-foreground);
  background: color-mix(in oklab, var(--color-primary) 8%, var(--color-card));
  border-top: 1px solid var(--color-border);
  text-decoration: none;
}
.mobile-city-bar > svg { width: 19px; height: 19px; color: var(--color-primary); flex: none; }
.mobile-city-bar > span { display: flex; align-items: baseline; gap: 7px; min-width: 0; flex: 1; }
.mobile-city-bar small { color: var(--color-muted-foreground); font-size: 12px; }
.mobile-city-bar strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-city-bar em { font-size: 12px; font-style: normal; color: var(--color-primary); font-weight: 800; }
.mobile-city-bar > svg:last-child { width: 16px; height: 16px; }

/* The first screen is a task surface, not an explanation panel. */
.h-hero-in.h-hero-in-compact {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}
.h-hero-in-compact .h-hero-copy { grid-column: 1; width: 100%; }

/* Local-business stream: bounded payload, automatic advance and touch scroll. */
.h-local-stream-wrap { position: relative; z-index: 1; padding-bottom: clamp(22px, 4vw, 40px); }
.local-stream {
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: clamp(14px, 2vw, 20px);
  background: color-mix(in oklab, var(--color-card) 95%, transparent);
  box-shadow: var(--e2);
  overflow: hidden;
}
.local-stream-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.local-stream-head h2 { margin: 7px 0 0; font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.4; }
.local-stream-all {
  min-height: 40px; display: inline-flex; align-items: center; gap: 5px;
  color: var(--color-primary); font-size: 13px; font-weight: 800; white-space: nowrap;
}
.local-stream-all svg { width: 16px; height: 16px; }
.local-stream-window {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 16px;
  padding: 2px;
}
.local-stream-window::-webkit-scrollbar { display: none; }
.local-stream-window:focus-visible { outline: 3px solid color-mix(in oklab, var(--color-primary) 38%, transparent); outline-offset: 3px; }
.local-stream-track { display: flex; width: max-content; gap: 10px; padding: 2px 1px 5px; }
.local-stream-card {
  direction: rtl; text-align: start;
  width: clamp(245px, 29vw, 330px); min-height: 82px;
  display: flex; align-items: center; gap: 10px;
  padding: 11px; border-radius: 16px;
  color: var(--color-foreground); text-decoration: none;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  scroll-snap-align: start;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.local-stream-card:hover { border-color: var(--color-primary); box-shadow: var(--e2); transform: translateY(-2px); }
.local-stream-card:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 2px; }
.local-stream-card { scroll-snap-stop: always; }
.local-stream-art {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 14px; color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 11%, transparent);
}
.local-stream-art svg { width: 31px; height: 31px; }
.local-stream-copy { min-width: 0; flex: 1; display: grid; gap: 5px; }
.local-stream-copy strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-stream-copy small { color: var(--color-muted-foreground); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-stream-card .badge { flex: none; max-width: 92px; }
.local-stream-go { display: grid; place-items: center; color: var(--color-muted-foreground); }
.local-stream-go svg { width: 16px; height: 16px; }
.local-stream-empty { display: flex; align-items: center; gap: 14px; }
.local-stream-empty-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 10%, transparent); flex: none; }
.local-stream-empty-icon svg { width: 26px; height: 26px; }
.local-stream-empty > div { flex: 1; min-width: 0; }
.local-stream-empty h2 { margin: 0 0 4px; font-size: 1.15rem; }
.local-stream-empty p { margin: 0; color: var(--color-muted-foreground); font-size: 13px; line-height: 1.7; }

/* Route cards are navigation, so they must never wait invisibly for an
   animation observer. The earlier reveal selector left a large empty card. */
.js .h-route-board:not(.is-in) .h-route-card {
  opacity: 1;
  transform: none;
}

/* Formal product mission: short, factual and role-neutral. */
.h-mission-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(18px, 4vw, 42px);
  padding: clamp(18px, 3vw, 30px); border-radius: 22px;
  border: 1px solid var(--color-border);
  background: linear-gradient(145deg, color-mix(in oklab, var(--color-primary) 9%, var(--color-card)), var(--color-card));
}
.h-mission-copy h2 { margin: 10px 0 7px; font-size: clamp(1.25rem, 2.4vw, 1.8rem); }
.h-mission-copy p { margin: 0; color: var(--color-muted-foreground); line-height: 1.9; }
.h-mission-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.h-mission-steps li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--color-background); border: 1px solid var(--color-border); }
.h-mission-steps li > b { width: 34px; height: 34px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--color-primary); color: var(--color-on-primary); }
.h-mission-steps li > span { display: grid; gap: 2px; }
.h-mission-steps strong { font-size: 13px; }
.h-mission-steps small { color: var(--color-muted-foreground); font-size: 12px; line-height: 1.55; }

/* City selection reflects the remembered/account market. */
.market-choice { position: relative; }
.market-choice.is-selected { border-color: color-mix(in oklab, var(--color-primary) 58%, var(--color-border)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 10%, transparent), var(--e2); }
.market-choice-current { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; }

/* Two-step onboarding. One decision per screen keeps the mobile task clear. */
.page-onboarding .main-content { min-height: calc(100dvh - var(--header-h)); display: grid; }
.page-onboarding .bottom-nav { display: none !important; }
.page-onboarding { padding-bottom: 0 !important; }
.onboard-shell { width: min(100% - 24px, 640px); margin: clamp(20px, 5vh, 52px) auto; align-self: start; }
.onboard-card { padding: clamp(18px, 4vw, 30px); border-radius: 24px; border: 1px solid var(--color-border); box-shadow: var(--e3); }
.onboard-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-bottom: 22px; }
.onboard-progress > span { display: grid; justify-items: center; gap: 4px; color: var(--color-muted-foreground); }
.onboard-progress b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--color-border); background: var(--color-background); }
.onboard-progress small { font-size: 12px; }
.onboard-progress > i { height: 3px; border-radius: 99px; background: var(--color-border); }
.onboard-progress .is-done { color: var(--color-primary); }
.onboard-progress span.is-done b { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-on-primary); }
.onboard-progress i.is-done { background: var(--color-primary); }
.onboard-head { text-align: center; margin-bottom: 20px; }
.onboard-head .mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 18px; color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 11%, transparent); }
.onboard-head .mark svg { width: 27px; height: 27px; }
.onboard-head .eyebrow { display: inline-flex; margin: 0 0 7px; }
.onboard-head h1 { margin: 0; font-size: clamp(1.35rem, 4vw, 1.8rem); }
.onboard-head > p:last-child { margin: 7px auto 0; max-width: 52ch; color: var(--color-muted-foreground); line-height: 1.8; }
.onboard-privacy, .onboard-local-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 13px; margin: 0 0 14px; color: var(--color-muted-foreground); background: color-mix(in oklab, var(--color-primary) 7%, transparent); font-size: 12px; line-height: 1.7; }
.onboard-privacy svg, .onboard-local-note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--color-primary); }
.onboard-markets { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.onboard-market { position: relative; display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 12px; border: 2px solid var(--color-border); border-radius: 16px; cursor: pointer; background: var(--color-background); }
.onboard-market input { position: absolute; opacity: 0; pointer-events: none; }
.onboard-market:has(input:checked) { border-color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 7%, var(--color-background)); }
.onboard-market:focus-within { outline: 3px solid color-mix(in oklab, var(--color-primary) 30%, transparent); outline-offset: 2px; }
.onboard-market-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 11%, transparent); }
.onboard-market-icon svg { width: 22px; height: 22px; }
.onboard-market > span:nth-of-type(2) { min-width: 0; flex: 1; display: grid; gap: 4px; }
.onboard-market strong { font-size: 14px; }
.onboard-market small { font-size: 12px; color: var(--color-muted-foreground); }
.onboard-market-check { width: 21px; height: 21px; color: var(--color-border-strong); }
.onboard-market:has(input:checked) .onboard-market-check { color: var(--color-primary); }
.onboard-foot { margin: 13px 0 0; text-align: center; color: var(--color-muted-foreground); font-size: 12px; }

@media (max-width: 860px) {
  .h-mission-card { grid-template-columns: 1fr; }
  .local-stream-head { align-items: flex-start; }
}
@media (max-width: 600px) {
  .h-hero { padding-top: 10px; }
  .h-local-stream-wrap { width: 100% !important; padding-inline: 12px; }
  .local-stream { padding: 13px 10px; border-radius: 18px; }
  .local-stream-head { gap: 10px; }
  .local-stream-head .eyebrow { display: none; }
  .local-stream-head h2 { margin: 0; }
  .local-stream-all { min-height: 36px; }
  .local-stream-card { width: min(82vw, 294px); min-height: 78px; }
  .local-stream-card .badge { display: none; }
  .local-stream-empty { align-items: center; flex-wrap: wrap; }
  .local-stream-empty > .btn { width: 100%; }
  .h-mission-card { padding: 16px; border-radius: 18px; }
  .h-route-card small { display: none; }
  .ai-bar {
    inset-inline-start: auto;
    inset-inline-end: 14px;
    width: 52px;
    height: 52px;
    padding: 6px;
    gap: 0;
  }
  .ai-bar-text, .ai-bar-cta { display: none; }
  .ai-bar-orb { width: 38px; height: 38px; }
  .onboard-shell { margin: 14px auto 28px; }
  .onboard-card { padding: 17px 14px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .local-stream-window { scroll-behavior: auto; }
  .local-stream-card { transition: none; }
}
/* ===== END v367-local.css ===== */

/* ===== BEGIN v369-scope.css sha256:ce0c44af3545d213 ===== */
/* v369 — multi-city scope + facts-first homepage */
.h-hero-scope { padding-bottom: clamp(30px, 5vw, 56px); }
.h-hero-scope .h-hero-in { padding-bottom: 0; }
.h-hero-scope .h-hero-badge { text-decoration: none; }

.scope-overview { padding-top: clamp(26px, 5vw, 54px) !important; }
.scope-overview .container-wide {
  padding-block: clamp(20px, 3.5vw, 34px);
  padding-inline: clamp(15px, 3vw, 30px);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-card);
  box-shadow: var(--e2);
}
.scope-overview-head,
.scope-categories-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.scope-overview-head h2,
.scope-categories-head h2 { margin: 7px 0 0; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.scope-overview-head p { margin: 4px 0 0; color: var(--color-muted-foreground); font-size: 13px; }
.scope-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scope-stat {
  min-height: 112px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-content: center;
  gap: 2px 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: color-mix(in oklab, var(--color-primary) 5%, var(--color-card));
}
.scope-stat > span { grid-row: 1 / span 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 12%, transparent); }
.scope-stat > span svg { width: 20px; height: 20px; }
.scope-stat strong { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.15; }
.scope-stat small { color: var(--color-muted-foreground); line-height: 1.55; }
.scope-national-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--color-foreground);
  color: var(--color-background);
}
.scope-national-total > span { display: flex; align-items: center; gap: 8px; }
.scope-national-total svg { width: 19px; height: 19px; }
.scope-national-total b { font-size: 1.1rem; }
.scope-city-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.scope-city-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-card);
}
.scope-city-row:hover { border-color: var(--color-primary); }
.scope-city-row > span { min-width: 0; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 2px 7px; }
.scope-city-row svg { grid-row: 1 / span 2; width: 18px; color: var(--color-primary); }
.scope-city-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-city-row small { color: var(--color-muted-foreground); }
.scope-city-row > b { flex: none; font-size: 1.05rem; }

.scope-categories { padding-top: clamp(26px, 5vw, 52px); }
.scope-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.scope-cat-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-card);
  transition: border-color var(--dur-2), transform var(--dur-2), box-shadow var(--dur-2);
}
.scope-cat-card:hover { border-color: var(--color-primary); transform: translateY(-1px); box-shadow: var(--e1); }
.scope-cat-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 10%, transparent); }
.scope-cat-icon img { width: 30px; height: 30px; }
.scope-cat-copy { min-width: 0; display: grid; gap: 3px; }
.scope-cat-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-cat-copy small { color: var(--color-muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-cat-count { min-width: 68px; display: grid; justify-items: end; gap: 2px; }
.scope-cat-count b { font-size: 1.05rem; }
.scope-cat-count small { color: var(--color-muted-foreground); font-size: 11px; }
.scope-cat-more { margin-top: 12px; }
.scope-cat-more > summary { margin-inline: auto; list-style: none; width: max-content; }
.scope-cat-more > summary::-webkit-details-marker { display: none; }
.scope-cat-more[open] > summary { margin-bottom: 12px; }
.scope-category-foot { display: flex; justify-content: space-between; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border); color: var(--color-muted-foreground); font-size: 13px; }
.scope-category-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); font-weight: 800; }
.scope-category-foot svg { width: 15px; }

.market-picker-page { padding-bottom: 110px; }
.market-picker-hero { margin-bottom: 18px; }
.market-picker { display: grid; gap: 16px; }
.market-all-check,
.market-check {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-card);
}
.market-all-check { min-height: 78px; border-color: color-mix(in oklab, var(--color-primary) 45%, var(--color-border)); background: color-mix(in oklab, var(--color-primary) 6%, var(--color-card)); }
.market-all-check input,
.market-check input { position: absolute; opacity: 0; pointer-events: none; }
.market-check-box { width: 24px; height: 24px; display: grid; place-items: center; position: relative; border: 2px solid var(--color-border); border-radius: 8px; background: var(--color-background); }
.market-check-box svg { width: 15px; height: 15px; opacity: 0; }
.market-all-check input:checked + .market-check-box,
.market-check input:checked + .market-check-box { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-primary-foreground); }
.market-all-check input:checked + .market-check-box svg,
.market-check input:checked + .market-check-box svg { opacity: 1; }
.market-all-check input:indeterminate + .market-check-box { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-primary-foreground); }
.market-all-check input:indeterminate + .market-check-box svg { opacity: 0; }
.market-all-check input:indeterminate + .market-check-box::after { content: ""; width: 11px; height: 2px; border-radius: 2px; background: currentColor; position: absolute; }
.market-all-check input:focus-visible + .market-check-box,
.market-check input:focus-visible + .market-check-box { outline: 3px solid var(--color-ring); outline-offset: 3px; }
.market-all-check > span:not(.market-check-box),
.market-check-copy { min-width: 0; display: grid; gap: 3px; }
.market-all-check small,
.market-check small { color: var(--color-muted-foreground); }
.market-all-check > b,
.market-check > b { font-size: 1rem; }
.market-search { margin-top: 2px; }
.market-selected-summary { min-height: 24px; color: var(--color-muted-foreground); font-size: 13px; font-weight: 700; }
.market-groups { display: grid; gap: 14px; }
.market-province { margin: 0; padding: 14px; border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-card); }
.market-province legend { padding-inline: 7px; font-weight: 900; }
.market-check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.market-check[hidden], .market-province[hidden] { display: none; }
.market-picker-submit { position: sticky; bottom: 12px; z-index: 12; display: flex; justify-content: flex-end; gap: 10px; padding: 10px; border: 1px solid var(--color-border); border-radius: 18px; background: color-mix(in oklab, var(--color-background) 90%, transparent); box-shadow: var(--e3); backdrop-filter: blur(14px); }
.market-picker-submit .btn-primary { min-width: 160px; }

@media (max-width: 720px) {
  .scope-overview { padding-top: 28px !important; }
  .scope-overview .container-wide { width: calc(100% - 24px); padding: 15px 12px; border-radius: 20px; }
  .scope-overview-head, .scope-categories-head { align-items: flex-start; }
  .scope-overview-head .btn, .scope-categories-head .btn { min-height: 40px; padding-inline: 10px; }
  .scope-stat-grid { grid-template-columns: 1fr; gap: 8px; }
  .scope-stat { min-height: 78px; grid-template-columns: 34px 1fr; padding: 11px 12px; }
  .scope-stat > span { width: 34px; height: 34px; }
  .scope-stat strong { font-size: 1.35rem; }
  .scope-national-total { align-items: flex-start; flex-direction: column; gap: 7px; }
  .scope-city-grid, .scope-cat-grid, .market-check-list { grid-template-columns: 1fr; }
  .scope-cat-card { min-height: 70px; padding: 10px 11px; }
  .scope-cat-copy small { display: none; }
  .scope-category-foot { align-items: flex-start; flex-direction: column; }
  .market-picker-page { padding-inline: 12px; }
  .market-picker-hero { padding-bottom: 0; }
  .market-picker-submit { bottom: 8px; }
  .market-picker-submit .btn { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scope-cat-card { transition: none; }
  .scope-cat-card:hover { transform: none; }
}
/* ===== END v369-scope.css ===== */

/* ===== BEGIN v370-home.css sha256:5f8763446b33517c ===== */
/* v370 — one global scope control + lively factual category visuals */
.home-hero-layout.h-hero-in-compact {
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  max-width: 1320px;
  gap: clamp(26px, 4vw, 58px);
  justify-content: stretch;
}
.home-hero-layout .h-hero-copy { grid-column: auto; }
.home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 900;
}
.home-hero-kicker svg { width: 17px; height: 17px; }
.home-category-visual {
  display: grid;
  grid-template-columns: 1.16fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(112px, 1fr));
  gap: 10px;
  min-height: 244px;
  padding: 10px;
  border: 1px solid color-mix(in oklab, var(--color-primary) 22%, var(--color-border));
  border-radius: 26px;
  background: color-mix(in oklab, var(--color-card) 82%, transparent);
  box-shadow: var(--e3);
  backdrop-filter: blur(14px);
}
.home-visual-cat {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  border-radius: 17px;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  transform: translateZ(0);
}
.home-visual-cat.is-featured { grid-row: 1 / span 2; }
.home-visual-cat::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(5,17,13,.84) 100%);
}
.home-visual-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.03);
  transition: transform 600ms cubic-bezier(.2,.75,.2,1), filter 300ms ease;
}
.home-visual-cat:hover img { transform: scale(1.055); filter: saturate(1.08) contrast(1.04); }
.home-visual-cat > span {
  position: absolute;
  z-index: 2;
  inset-inline: 11px;
  bottom: 10px;
  display: grid;
  gap: 1px;
  min-width: 0;
  text-shadow: 0 1px 5px rgba(0,0,0,.5);
}
.home-visual-cat strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.home-visual-cat small { color: rgba(255,255,255,.82); font-size: 10px; }
.home-visual-cat.is-featured strong { font-size: 16px; }
.home-visual-cat.is-featured small { font-size: 11px; }

.scope-overview .container-wide {
  background:
    radial-gradient(30rem 15rem at 100% 0%, color-mix(in oklab, var(--color-primary) 9%, transparent), transparent 65%),
    var(--color-card);
}
.scope-stat { position: relative; overflow: hidden; }
.scope-stat::after {
  content: "";
  position: absolute;
  inset-inline-end: -24px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--color-primary) 9%, transparent);
}
.scope-stat:nth-child(2) { background: color-mix(in oklab, var(--color-accent) 8%, var(--color-card)); }
.scope-stat:nth-child(2)::after { background: color-mix(in oklab, var(--color-accent) 12%, transparent); }
.scope-stat:nth-child(3) { background: color-mix(in oklab, var(--color-primary) 3%, var(--color-muted)); }
.scope-stat > span,
.scope-stat strong,
.scope-stat small { position: relative; z-index: 1; }
.scope-national-total {
  background: linear-gradient(110deg, var(--color-foreground), color-mix(in oklab, var(--color-foreground) 82%, var(--color-primary)));
}
.scope-city-row:hover { border-color: var(--color-border); }
.scope-market-more { margin: 10px 4px 0; color: var(--color-muted-foreground); font-size: 12px; }

@media (max-width: 900px) {
  .home-hero-layout.h-hero-in-compact { grid-template-columns: 1fr; gap: 16px; }
  .home-category-visual {
    display: flex;
    min-height: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    padding: 7px;
    border-radius: 20px;
    scrollbar-width: none;
  }
  .home-category-visual::-webkit-scrollbar { display: none; }
  .home-visual-cat,
  .home-visual-cat.is-featured {
    flex: 0 0 clamp(132px, 39vw, 184px);
    height: 104px;
    grid-row: auto;
    scroll-snap-align: start;
    border-radius: 14px;
  }
  .home-visual-cat.is-featured strong,
  .home-visual-cat strong { font-size: 13px; }
  .home-visual-cat.is-featured small,
  .home-visual-cat small { font-size: 10px; }
}

@media (max-width: 720px) {
  .h-hero-scope { padding-bottom: 24px; }
  .home-hero-kicker { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-visual-cat img { transition: none; }
  .home-visual-cat:hover img { transform: none; }
}
/* ===== END v370-home.css ===== */

/* ===== BEGIN v371-redesign.css sha256:907c60dd3bd9dcd2 ===== */
/* ========================================================================== 
   DASTGIR v371 — Site-wide visual system
   Direction: calm local-commerce editorial UI. High information clarity,
   restrained elevation, strong Persian typography, adaptive compact/medium/
   expanded layouts, and one consistent surface language across every role.
   Loaded last; html[data-dg-design="editorial"] scopes the redesign.
   ========================================================================== */

/* 1) FOUNDATIONS --------------------------------------------------------- */
html[data-dg-design="editorial"] {
  color-scheme: light;
  --brand-50: #eef8f3;
  --brand-100: #d8efe5;
  --brand-200: #b4dec9;
  --brand-300: #7fc4a4;
  --brand-400: #45a17d;
  --brand-500: #19785e;
  --brand-600: #10664f;
  --brand-700: #0c5542;
  --brand-800: #0b4336;
  --brand-900: #08342a;
  --accent-300: #f1bd72;
  --accent-400: #e5a54c;
  --accent-500: #c77a19;
  --accent-600: #a85f10;
  --color-primary: #10664f;
  --color-primary-hover: #0b503f;
  --color-primary-text: #0b5a46;
  --color-on-primary: #fffef8;
  --color-accent: #a85b0d;
  --color-accent-hover: #874607;
  --color-on-accent: #fffdf8;
  --color-background: #f5f3ed;
  --color-background-2: #ece9e0;
  --color-surface: #fffdf8;
  --color-card: #fffdf8;
  --color-card-foreground: #17231e;
  --color-foreground: #17231e;
  --color-muted: #eeece5;
  --color-muted-foreground: #53615b;
  --color-faint: #68756f;
  --color-border: #dcded7;
  --color-border-strong: #c5cac2;
  --color-ring: #19785e;
  --glass-bg: #fffdf8;
  --glass-bg-strong: #fffdf8;
  --glass-bg-weak: #faf8f1;
  --glass-border: #dcded7;
  --glass-hairline: #e4e4dc;
  --glass-blur: 0px;
  --glass-blur-lg: 0px;
  --glass-specular: none;
  --e1: 0 1px 2px rgba(18, 35, 28, .04);
  --e2: 0 8px 24px rgba(18, 35, 28, .07);
  --e3: 0 16px 38px rgba(18, 35, 28, .09);
  --e4: 0 22px 56px rgba(18, 35, 28, .12);
  --e-glow: 0 0 0 3px rgba(25, 120, 94, .16);
  --e-glow-gold: 0 0 0 3px rgba(185, 104, 18, .15);
  --e-inset-top: none;
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 26px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 88px;
  --container: 1160px;
  --container-wide: 1320px;
  --header-h: 72px;
  --tap: 44px;
  --tap-lg: 50px;
}

html[data-dg-design="editorial"][data-theme="dark"] {
  color-scheme: dark;
  --brand-50: #10261f;
  --brand-100: #143429;
  --brand-200: #1b4d3c;
  --brand-300: #62bc94;
  --brand-400: #58b68e;
  --brand-500: #42a37c;
  --brand-600: #278563;
  --brand-700: #187054;
  --brand-800: #105b45;
  --brand-900: #e3f5ec;
  --color-primary: #69c59c;
  --color-primary-hover: #82d4ae;
  --color-primary-text: #83d7b0;
  --color-on-primary: #092a20;
  --color-accent: #efb361;
  --color-accent-hover: #f6c47d;
  --color-on-accent: #3c2307;
  --color-background: #101612;
  --color-background-2: #0b100d;
  --color-surface: #17201b;
  --color-card: #17201b;
  --color-card-foreground: #edf3ef;
  --color-foreground: #edf3ef;
  --color-muted: #202a24;
  --color-muted-foreground: #b2bdb7;
  --color-faint: #9daaa3;
  --color-border: #314038;
  --color-border-strong: #43544b;
  --color-ring: #69c59c;
  --glass-bg: #17201b;
  --glass-bg-strong: #17201b;
  --glass-bg-weak: #131b17;
  --glass-border: #314038;
  --glass-hairline: #29362f;
  --e1: 0 1px 2px rgba(0,0,0,.24);
  --e2: 0 10px 28px rgba(0,0,0,.25);
  --e3: 0 18px 44px rgba(0,0,0,.30);
  --e4: 0 24px 64px rgba(0,0,0,.38);
}

html[data-dg-design="editorial"] body {
  font-size: 1rem;
  line-height: 1.72;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--color-primary) 3%, var(--color-background)) 0, var(--color-background) 260px);
  color: var(--color-foreground);
}
html[data-dg-design="editorial"] .spatial-bg,
html[data-dg-design="editorial"] .spatial-grain { display: none !important; }
html[data-dg-design="editorial"] .main-content { min-height: 62dvh; }
html[data-dg-design="editorial"] :is(.container,.container-wide) {
  width: min(calc(100% - 48px), var(--container-wide));
}
html[data-dg-design="editorial"] .container { max-width: var(--container); }
html[data-dg-design="editorial"] .section { padding-block: clamp(48px, 7vw, 84px); }
html[data-dg-design="editorial"] .section-sm { padding-block: clamp(28px, 4vw, 48px); }
html[data-dg-design="editorial"] :focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: 7px;
}
html[data-dg-design="editorial"] :is(h1,h2,h3,h4,h5) {
  font-weight: 850;
  letter-spacing: -.018em;
}
html[data-dg-design="editorial"] :is(.reveal,.reveal-3d,.tilt,.layer-1,.layer-2,.layer-3) {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  will-change: auto !important;
}
html[data-dg-design="editorial"] :is(.tilt:hover,.tilt:focus-within) { transform: none !important; }
html[data-dg-design="editorial"] .sheen,
html[data-dg-design="editorial"] .glass::before { display: none !important; }

/* 2) HEADER, DRAWER, MOBILE NAV ----------------------------------------- */
html[data-dg-design="editorial"] .site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: var(--header-h);
  background: color-mix(in oklab, var(--color-background) 90%, transparent);
  border-bottom: 1px solid var(--color-border);
  box-shadow: none;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
html[data-dg-design="editorial"] .site-header.is-stuck {
  background: color-mix(in oklab, var(--color-background) 96%, transparent);
  box-shadow: 0 8px 30px rgba(20,35,29,.08);
}
html[data-dg-design="editorial"] .header-inner {
  min-height: var(--header-h);
  gap: 18px;
}
html[data-dg-design="editorial"] .brand {
  gap: 10px;
  min-width: max-content;
}
html[data-dg-design="editorial"] .site-header .brand-logo,
html[data-dg-design="editorial"] .site-header .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 0 0 1px var(--color-border), var(--e1);
  background: var(--color-card);
}
html[data-dg-design="editorial"] .site-header .brand-mark img { width: 28px; height: 28px; }
html[data-dg-design="editorial"] .site-header .brand-text {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 900;
}
html[data-dg-design="editorial"] .site-header .brand-text small {
  font-size: 10.5px;
  color: var(--color-muted-foreground);
  font-weight: 600;
  margin-top: 4px;
}
html[data-dg-design="editorial"] .main-nav {
  align-self: stretch;
  gap: 1px;
  margin-inline: 0;
  padding: 0 4px;
}
html[data-dg-design="editorial"] .main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 100%;
  padding: 0 11px;
  border-radius: 0;
  color: var(--color-muted-foreground);
  font-size: 13px;
  font-weight: 700;
  background: transparent;
}
html[data-dg-design="editorial"] .main-nav a:hover { color: var(--color-foreground); background: transparent; }
html[data-dg-design="editorial"] .main-nav a[aria-current="page"] {
  color: var(--color-primary-text);
  background: transparent;
}
html[data-dg-design="editorial"] .main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 10px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--color-primary);
}
html[data-dg-design="editorial"] .header-actions { gap: 6px; }
html[data-dg-design="editorial"] .site-header :is(.btn,.btn-icon) {
  min-height: 42px;
  border-radius: 11px;
  box-shadow: none;
}
html[data-dg-design="editorial"] .site-header .btn-icon { width: 42px; }
html[data-dg-design="editorial"] .header-city {
  max-width: 160px;
  background: transparent;
  border-color: var(--color-border);
}
html[data-dg-design="editorial"] .header-city span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-dg-design="editorial"] .account-chip {
  max-width: 160px;
  border-color: transparent;
  background: var(--color-muted);
}
html[data-dg-design="editorial"] .account-avatar {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
html[data-dg-design="editorial"] .mobile-city-bar {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
}
html[data-dg-design="editorial"] .mobile-nav .backdrop { background: rgba(5,13,9,.62); }
html[data-dg-design="editorial"] .mobile-nav .panel {
  width: min(92vw, 390px);
  padding: 20px;
  background: var(--color-background);
  border-inline-start: 1px solid var(--color-border);
  box-shadow: var(--e4);
}
html[data-dg-design="editorial"] .mnav-group {
  border: 1px solid var(--color-border);
  background: var(--color-card);
  border-radius: 14px;
  overflow: clip;
}
html[data-dg-design="editorial"] .mnav-summary {
  min-height: 58px;
  border-radius: 0;
  padding: 10px 12px;
}
html[data-dg-design="editorial"] .mnav-group[open] .mnav-summary {
  background: color-mix(in oklab, var(--color-primary) 7%, var(--color-card));
  border-bottom: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .mnav-links { padding: 6px; }
html[data-dg-design="editorial"] .mnav-links a {
  min-height: 46px;
  border-radius: 9px;
}
html[data-dg-design="editorial"] .mnav-links a[aria-current="page"] {
  background: color-mix(in oklab, var(--color-primary) 12%, var(--color-card));
  color: var(--color-primary-text);
}

/* 3) CONTROLS AND PRIMITIVES -------------------------------------------- */
html[data-dg-design="editorial"] .btn {
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 11px;
  font-weight: 800;
  box-shadow: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
html[data-dg-design="editorial"] .btn:hover { transform: translateY(-1px); }
html[data-dg-design="editorial"] .btn:active { transform: translateY(0); }
html[data-dg-design="editorial"] .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
html[data-dg-design="editorial"] .btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--e2);
}
html[data-dg-design="editorial"] .btn-accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}
html[data-dg-design="editorial"] :is(.btn-glass,.btn-outline) {
  background: var(--color-card);
  color: var(--color-foreground);
  border: 1px solid var(--color-border-strong);
}
html[data-dg-design="editorial"] :is(.btn-glass,.btn-outline):hover {
  background: var(--color-muted);
  border-color: var(--color-primary);
  color: var(--color-primary-text);
}
html[data-dg-design="editorial"] .btn-ghost:hover { background: var(--color-muted); }
html[data-dg-design="editorial"] .btn-sm { min-height: 40px; padding: 7px 13px; }
html[data-dg-design="editorial"] .btn-lg { min-height: 52px; padding-inline: 21px; border-radius: 13px; }
html[data-dg-design="editorial"] .btn-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  background: var(--color-card);
}
html[data-dg-design="editorial"] .btn-icon:hover {
  color: var(--color-primary-text);
  border-color: var(--color-primary);
  background: var(--color-muted);
}
html[data-dg-design="editorial"] :is(.input,.select,.textarea) {
  min-height: 48px;
  border: 1px solid var(--color-border-strong);
  border-radius: 11px;
  background: var(--color-card);
  color: var(--color-foreground);
  box-shadow: 0 1px 0 rgba(20,35,29,.02);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
html[data-dg-design="editorial"] :is(.input,.select,.textarea):hover { border-color: color-mix(in oklab, var(--color-primary) 40%, var(--color-border)); }
html[data-dg-design="editorial"] :is(.input,.select,.textarea):focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 17%, transparent);
}
html[data-dg-design="editorial"] .textarea { min-height: 112px; }
html[data-dg-design="editorial"] .field-label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--color-foreground);
  font-size: .875rem;
  font-weight: 800;
}
html[data-dg-design="editorial"] .field-hint { margin-top: 6px; line-height: 1.6; color: var(--color-muted-foreground); }
html[data-dg-design="editorial"] .search-wrap .search-icon { color: var(--color-muted-foreground); }
html[data-dg-design="editorial"] :is(.chip,.sub-pill,.badge) {
  border-radius: 999px;
  border-color: var(--color-border);
  box-shadow: none;
}
html[data-dg-design="editorial"] .chip {
  min-height: 40px;
  background: var(--color-card);
}
html[data-dg-design="editorial"] .chip:hover,
html[data-dg-design="editorial"] .chip.is-active {
  border-color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 10%, var(--color-card));
  color: var(--color-primary-text);
}
html[data-dg-design="editorial"] .badge { font-weight: 800; }
html[data-dg-design="editorial"] .badge-neutral { background: var(--color-muted); color: var(--color-muted-foreground); }
html[data-dg-design="editorial"] .badge-info { background: color-mix(in oklab, var(--color-primary) 12%, var(--color-card)); color: var(--color-primary-text); }
html[data-dg-design="editorial"] .badge-featured { background: color-mix(in oklab, var(--color-accent) 14%, var(--color-card)); color: var(--color-warning-text); }
html[data-dg-design="editorial"] .glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-dg-design="editorial"] :is(.card,.glass) {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--e1);
}
html[data-dg-design="editorial"] .card {
  border-radius: var(--radius-lg);
  overflow: clip;
}
html[data-dg-design="editorial"] .card-pad { padding: clamp(18px, 2.3vw, 28px); }
html[data-dg-design="editorial"] .card-hover { transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
html[data-dg-design="editorial"] .card-hover:hover {
  transform: translateY(-2px) !important;
  border-color: color-mix(in oklab, var(--color-primary) 42%, var(--color-border));
  box-shadow: var(--e2);
}
html[data-dg-design="editorial"] .divider { border-color: var(--color-border); }
html[data-dg-design="editorial"] .alert {
  border-radius: 12px;
  border-width: 1px;
  box-shadow: none;
}
html[data-dg-design="editorial"] .empty-state {
  border: 1px dashed var(--color-border-strong);
  border-radius: 16px;
  background: color-mix(in oklab, var(--color-muted) 45%, transparent);
}

/* 4) PAGE TITLES AND GENERAL CONTENT ------------------------------------ */
html[data-dg-design="editorial"] .page-hero {
  position: relative;
  padding: clamp(28px, 4vw, 50px) 0 24px;
  border-bottom: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .page-hero::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 24px;
  width: 52px;
  height: 4px;
  border-radius: 4px;
  background: var(--color-accent);
}
html[data-dg-design="editorial"] .page-hero > .eyebrow { margin-top: 12px; }
html[data-dg-design="editorial"] .page-hero :is(h1,h2) {
  max-width: 24ch;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.3;
}
html[data-dg-design="editorial"] .page-hero p {
  max-width: 65ch;
  margin-top: 8px;
  color: var(--color-muted-foreground);
  font-size: 1rem;
}
html[data-dg-design="editorial"] .page-hero.text-center::before { inset-inline: calc(50% - 26px); }
html[data-dg-design="editorial"] .page-hero.text-center :is(h1,h2,p) { margin-inline: auto; }
html[data-dg-design="editorial"] .eyebrow {
  min-height: 30px;
  padding: 5px 10px;
  margin-bottom: 10px;
  color: var(--color-primary-text);
  background: color-mix(in oklab, var(--color-primary) 9%, transparent);
  border: 0;
  font-size: .76rem;
  font-weight: 850;
}
html[data-dg-design="editorial"] .section-head { margin-bottom: clamp(20px, 3vw, 34px); }
html[data-dg-design="editorial"] .section-head h2 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); }
html[data-dg-design="editorial"] .section-head p { color: var(--color-muted-foreground); font-size: 1rem; }
html[data-dg-design="editorial"] .prose {
  max-width: 74ch;
  font-size: 1rem;
  line-height: 1.9;
}
html[data-dg-design="editorial"] .prose :is(h2,h3) { margin-block: 1.6em .55em; }

/* 5) HOME — DISCOVERY FIRST --------------------------------------------- */
html[data-dg-design="editorial"] .h-hero {
  isolation: isolate;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 22%, color-mix(in oklab, var(--color-primary) 15%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in oklab, var(--color-card) 90%, var(--color-primary)) 0%, var(--color-background) 72%);
  border-bottom: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .h-hero::before,
html[data-dg-design="editorial"] .h-hero::after,
html[data-dg-design="editorial"] .h-hero .b-scene,
html[data-dg-design="editorial"] .h-hero > .hero-visual { display: none !important; }
html[data-dg-design="editorial"] .h-hero-in,
html[data-dg-design="editorial"] .h-hero-in.h-hero-in-compact,
html[data-dg-design="editorial"] .home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, .95fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  min-height: 490px;
  padding-block: clamp(56px, 7vw, 90px);
}
html[data-dg-design="editorial"] .h-hero-copy { max-width: 660px; }
html[data-dg-design="editorial"] .home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-primary) 10%, transparent);
  color: var(--color-primary-text);
  font-size: .78rem;
  font-weight: 850;
}
html[data-dg-design="editorial"] .h-hero-copy h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.65rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.04em;
  color: var(--color-foreground);
}
html[data-dg-design="editorial"] .h-hero-copy h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 20px;
  border-radius: 6px;
  background: var(--color-accent);
}
html[data-dg-design="editorial"] .h-hero-search {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  max-width: 640px;
  margin: 30px 0 0;
  padding: 7px;
  border: 1px solid var(--color-border-strong);
  border-radius: 15px;
  background: var(--color-card);
  box-shadow: var(--e2);
}
html[data-dg-design="editorial"] .h-hero-search .input {
  min-height: 50px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
html[data-dg-design="editorial"] .h-hero-search .input:focus { box-shadow: none; }
html[data-dg-design="editorial"] .h-hero-search .btn { min-height: 50px; border-radius: 10px; }
html[data-dg-design="editorial"] .home-category-visual {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: repeat(4, 78px);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: color-mix(in oklab, var(--color-card) 82%, transparent);
  box-shadow: var(--e3);
}
html[data-dg-design="editorial"] .home-visual-cat {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 13px;
  border: 1px solid color-mix(in oklab, #fff 26%, transparent);
  background: var(--color-muted);
}
html[data-dg-design="editorial"] .home-visual-cat.is-featured {
  grid-row: 1 / -1;
  grid-column: 1;
}
html[data-dg-design="editorial"] .home-visual-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 350ms ease;
}
html[data-dg-design="editorial"] .home-visual-cat:hover img { transform: scale(1.055); }
html[data-dg-design="editorial"] .home-visual-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4,15,10,.82), rgba(4,15,10,.02) 72%);
}
html[data-dg-design="editorial"] .home-visual-cat span {
  position: absolute;
  z-index: 1;
  inset-inline: 12px;
  bottom: 9px;
  color: #fff;
}
html[data-dg-design="editorial"] .home-visual-cat strong { display: block; font-size: .88rem; }
html[data-dg-design="editorial"] .home-visual-cat small { display: block; margin-top: 1px; font-size: .69rem; color: rgba(255,255,255,.82); }
html[data-dg-design="editorial"] .scope-overview {
  padding-block: clamp(36px,5vw,60px);
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .scope-overview > .container-wide {
  display: grid;
  grid-template-columns: minmax(200px,.65fr) minmax(0,1.35fr);
  gap: 20px 34px;
  align-items: start;
}
html[data-dg-design="editorial"] .scope-overview-head { grid-row: span 3; }
html[data-dg-design="editorial"] .scope-overview-head h2 { font-size: clamp(1.65rem,2.8vw,2.5rem); }
html[data-dg-design="editorial"] .scope-stat-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
html[data-dg-design="editorial"] .scope-stat {
  min-height: 112px;
  padding: 16px;
  border: 0;
  border-inline-start: 3px solid color-mix(in oklab, var(--color-primary) 50%, var(--color-border));
  border-radius: 0;
  background: var(--color-background);
  box-shadow: none;
}
html[data-dg-design="editorial"] .scope-stat > span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: color-mix(in oklab, var(--color-primary) 10%, transparent);
}
html[data-dg-design="editorial"] .scope-stat strong { font-size: clamp(1.4rem,2.3vw,2rem); }
html[data-dg-design="editorial"] .scope-national-total {
  margin: 0;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--color-foreground);
  color: var(--color-background);
}
html[data-dg-design="editorial"][data-theme="dark"] .scope-national-total { background: #e7eee9; color: #101612; }
html[data-dg-design="editorial"] .scope-city-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
html[data-dg-design="editorial"] .scope-city-row {
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-card);
}
html[data-dg-design="editorial"] .h-route-section { padding-block: clamp(28px,4vw,46px); }
html[data-dg-design="editorial"] .h-route-board {
  display: grid;
  grid-template-columns: 180px minmax(0,1fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: color-mix(in oklab, var(--color-primary) 6%, var(--color-card));
  box-shadow: none;
}
html[data-dg-design="editorial"] .h-route-head { padding: 0; }
html[data-dg-design="editorial"] .h-route-head h2 { font-size: 1.2rem; }
html[data-dg-design="editorial"] .h-route-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
}
html[data-dg-design="editorial"] .h-route-card {
  min-height: 104px;
  padding: 13px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-card);
  box-shadow: none;
}
html[data-dg-design="editorial"] .h-route-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--e2);
}
html[data-dg-design="editorial"] .h-route-ic {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
html[data-dg-design="editorial"] .scope-categories { padding-top: 46px; }
html[data-dg-design="editorial"] .scope-categories-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
html[data-dg-design="editorial"] .scope-categories-head h2 { font-size: clamp(1.55rem,2.6vw,2.25rem); }
html[data-dg-design="editorial"] .scope-cat-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
html[data-dg-design="editorial"] .scope-cat-card {
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-card);
  box-shadow: none;
}
html[data-dg-design="editorial"] .scope-cat-card:hover {
  transform: translateX(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--e1);
}
html[data-dg-design="editorial"] .scope-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--color-muted);
}
html[data-dg-design="editorial"] .scope-cat-copy strong { font-size: .94rem; }
html[data-dg-design="editorial"] .scope-cat-copy small { color: var(--color-muted-foreground); }
html[data-dg-design="editorial"] .scope-cat-count { padding-inline-start: 12px; border-inline-start: 1px solid var(--color-border); }
html[data-dg-design="editorial"] .scope-cat-count b { font-size: 1.02rem; }
html[data-dg-design="editorial"] .scope-category-foot { border-color: var(--color-border); }
html[data-dg-design="editorial"] .scope-category-foot a,
html[data-dg-design="editorial"] .owner-shell a.text-xs {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* 6) DIRECTORY, CATEGORIES, CATALOG ------------------------------------- */
html[data-dg-design="editorial"] .dir-toolbar {
  top: calc(var(--header-h) + 12px);
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: color-mix(in oklab, var(--color-background) 94%, transparent);
  box-shadow: var(--e1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
html[data-dg-design="editorial"] .dir-row { gap: 10px; }
html[data-dg-design="editorial"] [data-dir-grid],
html[data-dg-design="editorial"] .grid-3:has(> .biz-card),
html[data-dg-design="editorial"] .grid-4:has(> .biz-card) {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}
html[data-dg-design="editorial"] .biz-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 15px;
}
html[data-dg-design="editorial"] .biz-card .card-media {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background: var(--color-muted);
}
html[data-dg-design="editorial"] .biz-card .biz-cover { width: 100%; height: 100%; object-fit: cover; }
html[data-dg-design="editorial"] .biz-card .card-body { padding: 15px; }
html[data-dg-design="editorial"] .biz-card .card-title { font-size: 1rem; }
html[data-dg-design="editorial"] .biz-card .card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-muted-foreground);
}
html[data-dg-design="editorial"] .biz-card .card-foot { border-color: var(--color-border); }
html[data-dg-design="editorial"] .fav-btn { background: var(--color-card); border: 1px solid var(--color-border); }
html[data-dg-design="editorial"] .cats-search-wrap { max-width: 860px; margin-inline: auto; }
html[data-dg-design="editorial"] .cats-nav-bar {
  border: 0;
  background: transparent;
  box-shadow: none;
}
html[data-dg-design="editorial"] .catgroup {
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: var(--color-card);
  box-shadow: none;
  overflow: clip;
}
html[data-dg-design="editorial"] .catgroup-head {
  min-height: 78px;
  padding: 12px 16px;
}
html[data-dg-design="editorial"] .catgroup[open] .catgroup-head { background: color-mix(in oklab, var(--color-primary) 6%, var(--color-card)); }
html[data-dg-design="editorial"] .catgroup-photo { border-radius: 10px; }
html[data-dg-design="editorial"] .catcard-grid { padding: 12px; gap: 8px; }
html[data-dg-design="editorial"] .cat-card,
html[data-dg-design="editorial"] .catcard {
  border-radius: 11px;
  border-color: var(--color-border);
  box-shadow: none;
}
html[data-dg-design="editorial"] .item-grid { gap: 16px; }
html[data-dg-design="editorial"] .item-card { border-radius: 15px; }
html[data-dg-design="editorial"] .item-card .card-media { background: var(--color-muted); }
html[data-dg-design="editorial"] .item-price { color: var(--color-primary-text); }
html[data-dg-design="editorial"] .pager a,
html[data-dg-design="editorial"] .pager .pg-cur { border-radius: 10px; box-shadow: none; }

/* 7) DETAIL, MAP, REVIEWS, CONTENT -------------------------------------- */
html[data-dg-design="editorial"] .biz-hero {
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--e2);
}
html[data-dg-design="editorial"] .photo,
html[data-dg-design="editorial"] .news-hero-img,
html[data-dg-design="editorial"] .item-detail-media { border-radius: 16px; }
html[data-dg-design="editorial"] .info-row {
  min-height: 48px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .review {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-card);
  box-shadow: none;
}
html[data-dg-design="editorial"] .review-reply {
  border-inline-start: 3px solid var(--color-primary);
  background: var(--color-muted);
}
html[data-dg-design="editorial"] .map-stage {
  min-height: min(70dvh, 690px);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--e2);
  overflow: hidden;
}
html[data-dg-design="editorial"] .map-stage-head { background: var(--color-card); border-bottom: 1px solid var(--color-border); }
html[data-dg-design="editorial"] .map-legend {
  border-radius: 12px;
  background: color-mix(in oklab, var(--color-card) 92%, transparent);
  border: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .arch-card,
html[data-dg-design="editorial"] .price-card,
html[data-dg-design="editorial"] .event-card {
  border-radius: 15px;
  border-color: var(--color-border);
  box-shadow: var(--e1);
}
html[data-dg-design="editorial"] .owner-cta {
  border-radius: 20px;
  background: linear-gradient(135deg, #0c5542, #123a30);
  box-shadow: var(--e3);
}

/* 8) FORMS, TABLES, TABS ------------------------------------------------ */
html[data-dg-design="editorial"] form.card,
html[data-dg-design="editorial"] .business-editor-section {
  overflow: visible;
}
html[data-dg-design="editorial"] .business-editor-section {
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: var(--color-card);
  box-shadow: none;
}
html[data-dg-design="editorial"] .business-editor-body { padding: 18px; }
html[data-dg-design="editorial"] .tabs {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-muted);
}
html[data-dg-design="editorial"] .tabs button {
  min-height: 42px;
  border-radius: 9px;
}
html[data-dg-design="editorial"] .tabs button[aria-selected="true"] {
  background: var(--color-card);
  color: var(--color-primary-text);
  box-shadow: var(--e1);
}
html[data-dg-design="editorial"] .table-wrap {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: none;
  background: var(--color-card);
}
html[data-dg-design="editorial"] .table th {
  background: var(--color-muted);
  color: var(--color-foreground);
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
}
html[data-dg-design="editorial"] .table :is(th,td) {
  padding: 12px 14px;
  border-color: var(--color-border);
}
html[data-dg-design="editorial"] .table tbody tr:hover { background: color-mix(in oklab, var(--color-primary) 5%, transparent); }
html[data-dg-design="editorial"] .switch { background: var(--color-border-strong); }
html[data-dg-design="editorial"] .switch:has(input:checked) { background: var(--color-primary); }

/* 9) AUTH AND ONBOARDING ------------------------------------------------ */
html[data-dg-design="editorial"] .auth-wrap {
  min-height: calc(100dvh - var(--header-h));
  padding-block: 48px;
  background:
    radial-gradient(circle at 80% 10%, color-mix(in oklab, var(--color-primary) 12%, transparent), transparent 35%);
}
html[data-dg-design="editorial"] .auth-card {
  width: min(100%, 490px);
  padding: clamp(24px,4vw,40px);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  box-shadow: var(--e3);
}
html[data-dg-design="editorial"] .auth-head .mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: none;
}
html[data-dg-design="editorial"] .auth-head h1 { font-size: clamp(1.5rem,3vw,2rem); }
html[data-dg-design="editorial"] .otp-input { letter-spacing: .22em; font-size: 1.25rem; }
html[data-dg-design="editorial"] .onboard-market {
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: var(--color-card);
}
html[data-dg-design="editorial"] .onboard-market:has(input:checked) {
  border-color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 8%, var(--color-card));
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--color-primary) 13%, transparent);
}

/* 10) OWNER AND ADMIN WORKSPACES ---------------------------------------- */
html[data-dg-design="editorial"] .panel-layout {
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  gap: 24px;
  padding-block: 24px 48px;
}
html[data-dg-design="editorial"] .panel-side {
  width: 270px;
  padding: 12px;
  border-radius: 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: none;
}
html[data-dg-design="editorial"] .panel-side-head { padding: 8px 8px 14px; }
html[data-dg-design="editorial"] .panel-nav { gap: 9px; }
html[data-dg-design="editorial"] .panel-nav-group {
  padding: 5px;
  border-radius: 11px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .panel-nav-title { padding: 5px 7px; font-size: 10.5px; }
html[data-dg-design="editorial"] .panel-nav a {
  min-height: 42px;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--color-muted-foreground);
  font-size: .79rem;
}
html[data-dg-design="editorial"] .panel-nav a:hover { background: var(--color-card); border-color: var(--color-border); }
html[data-dg-design="editorial"] .panel-nav a[aria-current="page"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: none;
}
html[data-dg-design="editorial"] .panel-head {
  min-height: 74px;
  padding: 14px 18px;
  border-radius: 15px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: none;
}
html[data-dg-design="editorial"] .panel-head h1 { font-size: 1.15rem; }
html[data-dg-design="editorial"] .owner-shell { padding-block: 24px 48px; }
html[data-dg-design="editorial"] .owner-shell > .panel-head {
  min-height: 0;
  padding: 14px 18px;
  margin-bottom: 14px;
}
html[data-dg-design="editorial"] .panel-context-bar {
  border-radius: 12px;
  background: var(--color-card);
  border-color: var(--color-border);
}
html[data-dg-design="editorial"] .panel-context-link { border-radius: 9px; }
html[data-dg-design="editorial"] .panel-nav-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 9px;
}
html[data-dg-design="editorial"] .panel-nav-tile {
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--color-card);
  border-color: var(--color-border);
  box-shadow: none;
}
html[data-dg-design="editorial"] .panel-nav-tile:hover {
  transform: none;
  background: color-mix(in oklab, var(--color-primary) 7%, var(--color-card));
  border-color: var(--color-primary);
}
html[data-dg-design="editorial"] .quick-grid { gap: 9px; }
html[data-dg-design="editorial"] .quick-tile {
  min-height: 88px;
  border-radius: 12px;
  background: var(--color-card);
  border-color: var(--color-border);
  box-shadow: none;
}
html[data-dg-design="editorial"] .quick-tile:hover { transform: none; border-color: var(--color-primary); }
html[data-dg-design="editorial"] .panel-quick-section {
  border-radius: 12px;
  background: var(--color-background);
  border-color: var(--color-border);
}
html[data-dg-design="editorial"] .panel-quick-links a { border-radius: 9px; }
html[data-dg-design="editorial"] .bulk-bar {
  border-radius: 13px;
  background: color-mix(in oklab, var(--color-card) 94%, transparent);
  border-color: var(--color-primary);
  box-shadow: var(--e2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
html[data-dg-design="editorial"] .todo-item,
html[data-dg-design="editorial"] .pending-card,
html[data-dg-design="editorial"] .chat-inbox-card,
html[data-dg-design="editorial"] .notif-list > * {
  border-color: var(--color-border);
  border-radius: 12px;
  background: var(--color-card);
  box-shadow: none;
}

/* 11) FOOTER AND UTILITIES ---------------------------------------------- */
html[data-dg-design="editorial"] .site-footer {
  margin-top: clamp(44px,7vw,84px);
  padding: 46px 0 0 !important;
  background: #102019;
  color: #e8f0eb;
  border-top: 4px solid #c98226;
}
html[data-dg-design="editorial"] .site-footer .footer-grid {
  grid-template-columns: minmax(240px,1.4fr) repeat(3,minmax(150px,1fr));
  gap: 30px 48px;
  padding-bottom: 34px;
}
html[data-dg-design="editorial"] .site-footer .brand-mark { background: #fff; border-radius: 11px; }
html[data-dg-design="editorial"] .site-footer .brand-text { color: #fff; }
html[data-dg-design="editorial"] .site-footer .brand-text small,
html[data-dg-design="editorial"] .site-footer .footer-about p,
html[data-dg-design="editorial"] .site-footer .text-muted { color: #aebdb5; }
html[data-dg-design="editorial"] .site-footer h3 {
  padding-bottom: 9px;
  margin-bottom: 6px;
  border-bottom: 1px solid #31463c;
  color: #fff;
  font-size: .9rem;
}
html[data-dg-design="editorial"] .site-footer .footer-col a,
html[data-dg-design="editorial"] .site-footer .footer-col li > span {
  min-height: 34px;
  padding-block: 4px;
  color: #c7d3cc;
  font-size: .82rem;
}
html[data-dg-design="editorial"] .site-footer .footer-col a:hover { color: #fff; }
html[data-dg-design="editorial"] .site-footer .trust-row {
  padding: 14px 0;
  border-top: 1px solid #31463c;
  border-bottom: 1px solid #31463c;
}
html[data-dg-design="editorial"] .site-footer .trust-row img { border-radius: 10px; background: #fff; }
html[data-dg-design="editorial"] .site-footer .footer-bottom {
  padding-block: 14px;
  color: #9fb0a7;
  font-size: .74rem;
}
html[data-dg-design="editorial"] .sup-fab,
html[data-dg-design="editorial"] .assistant-fab { box-shadow: var(--e3); }

/* 12) MEDIUM / TABLET --------------------------------------------------- */
@media (max-width: 1160px) {
  html[data-dg-design="editorial"] .main-nav a { padding-inline: 8px; font-size: 12px; }
  html[data-dg-design="editorial"] .site-header .brand-text small { display: none; }
  html[data-dg-design="editorial"] .h-hero-in,
  html[data-dg-design="editorial"] .h-hero-in.h-hero-in-compact,
  html[data-dg-design="editorial"] .home-hero-layout {
    grid-template-columns: minmax(0,1fr) minmax(350px,.86fr);
    min-height: 440px;
  }
  html[data-dg-design="editorial"] .h-hero-copy h1 { font-size: clamp(2.25rem,5.5vw,3.6rem); }
  html[data-dg-design="editorial"] [data-dir-grid],
  html[data-dg-design="editorial"] .grid-3:has(> .biz-card),
  html[data-dg-design="editorial"] .grid-4:has(> .biz-card) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html[data-dg-design="editorial"] .site-footer .footer-grid { grid-template-columns: 1.25fr repeat(3,1fr); gap: 24px; }
}

@media (max-width: 1024px) {
  html[data-dg-design="editorial"] .main-nav { display: none; }
  html[data-dg-design="editorial"] .nav-toggle { display: inline-grid; }
  html[data-dg-design="editorial"] .panel-layout { grid-template-columns: 1fr; }
  html[data-dg-design="editorial"] .panel-side { display: none; }
  html[data-dg-design="editorial"] .panel-main-content { grid-column: 1; }
  html[data-dg-design="editorial"] .panel-nav-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  html[data-dg-design="editorial"] .scope-overview > .container-wide { grid-template-columns: 1fr; }
  html[data-dg-design="editorial"] .scope-overview-head { grid-row: auto; }
  html[data-dg-design="editorial"] .h-route-board { grid-template-columns: 1fr; }
}

/* 13) COMPACT / MOBILE -------------------------------------------------- */
@media (max-width: 760px) {
  html[data-dg-design="editorial"] {
    --header-h: 58px;
    --radius-lg: 14px;
    --radius-xl: 17px;
    --space-2xl: 36px;
    --space-3xl: 48px;
  }
  html[data-dg-design="editorial"] body {
    padding-bottom: calc(var(--botnav-h) + env(safe-area-inset-bottom));
    font-size: .9375rem;
    line-height: 1.7;
  }
  html[data-dg-design="editorial"] :is(.container,.container-wide) {
    width: min(calc(100% - 28px), var(--container-wide)) !important;
  }
  html[data-dg-design="editorial"] .section { padding-block: 38px !important; }
  html[data-dg-design="editorial"] .section-sm { padding-block: 24px !important; }
  html[data-dg-design="editorial"] .header-inner { min-height: 58px; gap: 8px; }
  html[data-dg-design="editorial"] .site-header .brand { min-width: 0; margin-inline-end: auto; }
  html[data-dg-design="editorial"] .site-header .brand-mark,
  html[data-dg-design="editorial"] .site-header .brand-logo { width: 36px; height: 36px; border-radius: 10px; }
  html[data-dg-design="editorial"] .site-header .brand-mark img { width: 24px; height: 24px; }
  html[data-dg-design="editorial"] .site-header .brand-text { font-size: .9rem; }
  html[data-dg-design="editorial"] .site-header .brand-text small { display: none; }
  html[data-dg-design="editorial"] .site-header :is(.btn-icon,.nav-toggle) {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 10px;
  }
  html[data-dg-design="editorial"] .mobile-city-bar {
    min-height: 45px;
    padding: 7px 14px;
  }
  html[data-dg-design="editorial"] .mobile-city-bar > span { display: grid; gap: 0; }
  html[data-dg-design="editorial"] .mobile-city-bar small { font-size: 10px; line-height: 1.2; }
  html[data-dg-design="editorial"] .mobile-city-bar strong { font-size: 12px; line-height: 1.45; }
  html[data-dg-design="editorial"] .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 5px 5px env(safe-area-inset-bottom);
    background: color-mix(in oklab, var(--color-card) 96%, transparent);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -10px 30px rgba(15,27,21,.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  html[data-dg-design="editorial"] .bottom-nav a {
    position: relative;
    min-width: 0;
    min-height: 54px;
    padding: 6px 2px 4px;
    border-radius: 10px;
    color: var(--color-muted-foreground);
    font-size: 10px;
    font-weight: 750;
  }
  html[data-dg-design="editorial"] .bottom-nav a svg { width: 20px; height: 20px; }
  html[data-dg-design="editorial"] .bottom-nav a[aria-current="page"] {
    color: var(--color-primary-text);
    background: color-mix(in oklab, var(--color-primary) 10%, transparent);
  }
  html[data-dg-design="editorial"] .bottom-nav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 0;
    width: 24px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--color-primary);
  }
  html[data-dg-design="editorial"] .page-hero {
    padding: 28px 0 18px !important;
  }
  html[data-dg-design="editorial"] .page-hero::before { top: 18px; width: 40px; height: 3px; }
  html[data-dg-design="editorial"] .page-hero > .eyebrow { margin-top: 6px; }
  html[data-dg-design="editorial"] .page-hero :is(h1,h2) { font-size: clamp(1.45rem,7vw,2rem) !important; }
  html[data-dg-design="editorial"] .page-hero p { font-size: .875rem; line-height: 1.75; }
  html[data-dg-design="editorial"] .page-hero.notifications-hero {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 28px !important;
  }
  html[data-dg-design="editorial"] .h-hero-in,
  html[data-dg-design="editorial"] .h-hero-in.h-hero-in-compact,
  html[data-dg-design="editorial"] .home-hero-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    min-height: 0;
    padding-block: 34px 30px;
  }
  html[data-dg-design="editorial"] .h-hero-copy { width: 100%; }
  html[data-dg-design="editorial"] .home-hero-kicker { margin-bottom: 12px; font-size: .72rem; }
  html[data-dg-design="editorial"] .h-hero-copy h1 {
    max-width: 17ch;
    font-size: clamp(2rem,10vw,2.85rem) !important;
    line-height: 1.22;
  }
  html[data-dg-design="editorial"] .h-hero-copy h1::after { width: 54px; height: 4px; margin-top: 14px; }
  html[data-dg-design="editorial"] .h-hero-search {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 5px;
    margin-top: 22px;
    padding: 5px;
    border-radius: 13px;
  }
  html[data-dg-design="editorial"] .h-hero-search .input { min-height: 48px; font-size: 16px; padding-inline: 38px 8px; }
  html[data-dg-design="editorial"] .h-hero-search .btn { width: 48px; min-width: 48px; min-height: 48px; padding: 0; }
  html[data-dg-design="editorial"] .h-hero-search .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html[data-dg-design="editorial"] .home-category-visual {
    display: flex;
    gap: 9px;
    margin-inline: -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  html[data-dg-design="editorial"] .home-category-visual::-webkit-scrollbar { display: none; }
  html[data-dg-design="editorial"] .home-visual-cat,
  html[data-dg-design="editorial"] .home-visual-cat.is-featured {
    flex: 0 0 146px;
    width: 146px;
    height: 100px;
    min-height: 100px;
    border-radius: 13px;
    scroll-snap-align: start;
  }
  html[data-dg-design="editorial"] .scope-overview { padding-block: 30px; }
  html[data-dg-design="editorial"] .scope-overview > .container-wide { gap: 16px; }
  html[data-dg-design="editorial"] .scope-overview-head h2 { font-size: 1.65rem; }
  html[data-dg-design="editorial"] .scope-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  html[data-dg-design="editorial"] .scope-stat {
    min-height: 96px;
    padding: 12px;
  }
  html[data-dg-design="editorial"] .scope-stat:first-child { grid-column: 1 / -1; }
  html[data-dg-design="editorial"] .scope-stat strong { font-size: 1.35rem; }
  html[data-dg-design="editorial"] .scope-national-total {
    align-items: flex-start;
    gap: 5px;
    padding: 12px;
  }
  html[data-dg-design="editorial"] .scope-city-grid { grid-template-columns: 1fr; }
  html[data-dg-design="editorial"] .h-route-board {
    gap: 12px;
    padding: 14px;
    border-radius: 15px;
  }
  html[data-dg-design="editorial"] .h-route-head { display: flex; }
  html[data-dg-design="editorial"] .h-route-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  html[data-dg-design="editorial"] .h-route-card { min-height: 108px; padding: 12px; }
  html[data-dg-design="editorial"] .scope-categories { padding-top: 32px !important; }
  html[data-dg-design="editorial"] .scope-categories-head { margin-bottom: 16px; }
  html[data-dg-design="editorial"] .scope-categories-head h2 { font-size: 1.45rem; }
  html[data-dg-design="editorial"] .scope-cat-grid { grid-template-columns: 1fr; gap: 8px; }
  html[data-dg-design="editorial"] .scope-cat-card { min-height: 72px; padding: 10px 11px; }
  html[data-dg-design="editorial"] .scope-cat-icon { width: 40px; height: 40px; }
  html[data-dg-design="editorial"] .scope-cat-copy small {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  html[data-dg-design="editorial"] .scope-cat-count { min-width: 60px; }
  html[data-dg-design="editorial"] [data-dir-grid],
  html[data-dg-design="editorial"] .grid-3:has(> .biz-card),
  html[data-dg-design="editorial"] .grid-4:has(> .biz-card) {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  html[data-dg-design="editorial"] .biz-card {
    grid-template-columns: 118px minmax(0,1fr);
    grid-template-rows: 1fr;
    min-height: 154px;
    border-radius: 14px !important;
  }
  html[data-dg-design="editorial"] .biz-card .card-media {
    width: 118px;
    min-height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
  }
  html[data-dg-design="editorial"] .biz-card .card-body { min-width: 0; padding: 11px 12px; }
  html[data-dg-design="editorial"] .biz-card .card-title,
  html[data-dg-design="editorial"] .biz-card .card-title a { font-size: .93rem !important; }
  html[data-dg-design="editorial"] .biz-card .card-desc { -webkit-line-clamp: 1; margin-top: 5px; font-size: .76rem; }
  html[data-dg-design="editorial"] .biz-card .cluster { gap: 4px; margin-top: 5px; }
  html[data-dg-design="editorial"] .biz-card .cluster .badge:nth-child(n+3) { display: none; }
  html[data-dg-design="editorial"] .biz-card .card-foot { margin-top: 7px; padding-top: 7px; }
  html[data-dg-design="editorial"] .biz-card .card-fav-btn { width: 38px; min-width: 38px; height: 38px; }
  html[data-dg-design="editorial"] .dir-toolbar {
    position: static;
    padding: 10px;
    border-radius: 12px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  html[data-dg-design="editorial"] .catgroup-head { min-height: 68px; padding: 9px 10px; }
  html[data-dg-design="editorial"] .catgroup-photo { width: 50px; height: 50px; }
  html[data-dg-design="editorial"] .catgroup-blurb { display: none; }
  html[data-dg-design="editorial"] .catcard-grid { grid-template-columns: 1fr; padding: 8px; }
  html[data-dg-design="editorial"] .item-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  html[data-dg-design="editorial"] .map-stage { min-height: 62dvh; border-radius: 14px; }
  html[data-dg-design="editorial"] .card-pad { padding: 16px; }
  html[data-dg-design="editorial"] :is(.input,.select,.textarea) { font-size: 16px; }
  html[data-dg-design="editorial"] .grid-2 { grid-template-columns: 1fr; }
  html[data-dg-design="editorial"] .table-wrap {
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  html[data-dg-design="editorial"] .table { min-width: 640px; }
  html[data-dg-design="editorial"] .panel-layout { padding-block: 14px 28px; }
  html[data-dg-design="editorial"] .panel-head {
    min-height: 0;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
  }
  html[data-dg-design="editorial"] .panel-context-bar { grid-template-columns: 1fr; }
  html[data-dg-design="editorial"] .panel-nav-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  html[data-dg-design="editorial"] .panel-nav-tile { min-height: 50px; padding: 8px 10px; font-size: .76rem; }
  html[data-dg-design="editorial"] .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  html[data-dg-design="editorial"] .quick-tile { min-height: 82px; padding: 11px 8px; }
  html[data-dg-design="editorial"] .panel-quick-grid { grid-template-columns: 1fr; }
  html[data-dg-design="editorial"] .auth-wrap { min-height: auto; padding-block: 28px; }
  html[data-dg-design="editorial"] .auth-card { padding: 22px 18px; border-radius: 16px; box-shadow: var(--e2); }
  html[data-dg-design="editorial"] .site-footer {
    margin-top: 50px;
    padding-top: 34px !important;
  }
  html[data-dg-design="editorial"] .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
    padding-bottom: 22px;
  }
  html[data-dg-design="editorial"] .site-footer .footer-about { grid-column: 1 / -1; }
  html[data-dg-design="editorial"] .site-footer .footer-about p { max-width: 48ch; }
  html[data-dg-design="editorial"] .site-footer .footer-col:last-child { grid-column: 1 / -1; }
  html[data-dg-design="editorial"] .site-footer .footer-bottom {
    align-items: flex-start;
    text-align: start;
  }
}

@media (max-width: 390px) {
  html[data-dg-design="editorial"] :is(.container,.container-wide) { width: min(calc(100% - 24px), var(--container-wide)) !important; }
  html[data-dg-design="editorial"] .h-hero-copy h1 { font-size: 1.9rem !important; }
  html[data-dg-design="editorial"] .h-route-grid { grid-template-columns: 1fr 1fr; }
  html[data-dg-design="editorial"] .h-route-card small { font-size: 10px; }
  html[data-dg-design="editorial"] .biz-card { grid-template-columns: 104px minmax(0,1fr); }
  html[data-dg-design="editorial"] .biz-card .card-media { width: 104px; }
  html[data-dg-design="editorial"] .scope-cat-copy strong { font-size: .86rem; }
  html[data-dg-design="editorial"] .scope-cat-count { min-width: 54px; }
  html[data-dg-design="editorial"] .scope-cat-count small { font-size: 9px; }
  html[data-dg-design="editorial"] .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 14) FORCED COLORS / REDUCED MOTION / PRINT ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html[data-dg-design="editorial"] *,
  html[data-dg-design="editorial"] *::before,
  html[data-dg-design="editorial"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@media (forced-colors: active) {
  html[data-dg-design="editorial"] :is(.btn,.card,.glass,.input,.select,.textarea,.chip,.badge) { border: 1px solid CanvasText; }
  html[data-dg-design="editorial"] .main-nav a[aria-current="page"] { text-decoration: underline; }
}
@media print {
  html[data-dg-design="editorial"] .site-header,
  html[data-dg-design="editorial"] .bottom-nav,
  html[data-dg-design="editorial"] .site-footer,
  html[data-dg-design="editorial"] .sup-fab,
  html[data-dg-design="editorial"] .assistant-fab { display: none !important; }
  html[data-dg-design="editorial"] body { background: #fff; color: #000; padding: 0; }
  html[data-dg-design="editorial"] .card { box-shadow: none; break-inside: avoid; }
}
/* ===== END v371-redesign.css ===== */

/* ===== BEGIN v372-density.css sha256:4d49611049f8ff55 ===== */
/* ========================================================================== 
   DASTGIR v372 — Density and proportion correction

   Evidence-led correction to v371. The product is information-rich, so the
   default is now productive/comfortable density rather than expressive
   marketing density. Vertical space is reduced without shrinking interaction
   targets. Decorative rules are removed; borders remain only where they
   communicate a control, container, table, or state.
   ========================================================================== */

/* 1) Productive type and spacing ---------------------------------------- */
html[data-dg-design="editorial"] {
  --fs-xs: .75rem;
  --fs-sm: .8125rem;
  --fs-md: .875rem;
  --fs-base: .9375rem;
  --fs-lg: 1rem;
  --fs-xl: 1.125rem;
  --fs-2xl: 1.375rem;
  --fs-3xl: 1.75rem;
  --fs-4xl: 2.125rem;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 14px;
  --space-lg: 20px;
  --space-xl: 28px;
  --space-2xl: 36px;
  --space-3xl: 48px;
  --space-4xl: 64px;
}
html[data-dg-design="editorial"] body {
  font-size: 15px;
  line-height: 1.62;
}
html[data-dg-design="editorial"] :is(h1,h2,h3,h4,h5) {
  font-weight: 800;
  letter-spacing: -.012em;
}
html[data-dg-design="editorial"] p { line-height: 1.68; }
html[data-dg-design="editorial"] .section {
  padding-block: clamp(36px, 4.4vw, 56px) !important;
}
html[data-dg-design="editorial"] .section-sm {
  padding-block: clamp(20px, 2.8vw, 34px) !important;
}
html[data-dg-design="editorial"] .section-head {
  margin-bottom: clamp(15px, 2vw, 22px);
}
html[data-dg-design="editorial"] .section-head h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  line-height: 1.35;
}
html[data-dg-design="editorial"] .section-head p {
  margin-top: 5px;
  font-size: .9rem;
  line-height: 1.65;
}
html[data-dg-design="editorial"] .eyebrow {
  min-height: 26px;
  margin-bottom: 7px;
  padding: 3px 9px;
  font-size: .71rem;
}

/* 2) Page headings: no ornamental separators --------------------------- */
html[data-dg-design="editorial"] .page-hero {
  padding: 22px 0 14px !important;
  border-bottom: 0 !important;
}
html[data-dg-design="editorial"] .page-hero::before { display: none !important; }
html[data-dg-design="editorial"] .page-hero > .eyebrow { margin-top: 0; }
html[data-dg-design="editorial"] .page-hero :is(h1,h2) {
  max-width: 30ch;
  font-size: clamp(1.45rem, 2.15vw, 2rem) !important;
  line-height: 1.34;
}
html[data-dg-design="editorial"] .page-hero p {
  max-width: 70ch;
  margin-top: 5px;
  font-size: .9rem;
  line-height: 1.65;
}
html[data-dg-design="editorial"] .breadcrumb {
  min-height: 32px;
  padding-block: 6px;
  font-size: .75rem;
}

/* 3) Home: fit useful content in the first and second viewports --------- */
html[data-dg-design="editorial"] .h-hero {
  min-height: 0;
  border-bottom: 0;
}
html[data-dg-design="editorial"] .h-hero-in,
html[data-dg-design="editorial"] .h-hero-in.h-hero-in-compact,
html[data-dg-design="editorial"] .home-hero-layout {
  min-height: 410px !important;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .92fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(28px, 3.5vw, 44px) !important;
}
html[data-dg-design="editorial"] .home-hero-kicker {
  min-height: 26px;
  margin-bottom: 10px;
  padding: 3px 9px;
  font-size: .72rem;
}
html[data-dg-design="editorial"] .h-hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.1vw, 2.65rem) !important;
  line-height: 1.22 !important;
  letter-spacing: -.025em;
}
html[data-dg-design="editorial"] .h-hero-copy h1::after { display: none; }
html[data-dg-design="editorial"] .h-hero-search {
  max-width: 600px;
  margin-top: 20px;
  padding: 5px;
  border-radius: 13px;
  box-shadow: var(--e1);
}
html[data-dg-design="editorial"] .h-hero-search .input,
html[data-dg-design="editorial"] .h-hero-search .btn { min-height: 46px; }
html[data-dg-design="editorial"] .home-category-visual {
  grid-template-rows: repeat(4, 64px);
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  box-shadow: var(--e2);
}
html[data-dg-design="editorial"] .home-visual-cat { border-radius: 10px; }
html[data-dg-design="editorial"] .home-visual-cat span { inset-inline: 9px; bottom: 6px; }
html[data-dg-design="editorial"] .home-visual-cat strong { font-size: .78rem; }
html[data-dg-design="editorial"] .home-visual-cat small { font-size: .64rem; }

html[data-dg-design="editorial"] .scope-overview {
  padding-block: clamp(26px, 3.4vw, 42px) !important;
  background: var(--color-card);
  border: 0;
}
html[data-dg-design="editorial"] .scope-overview > .container-wide {
  grid-template-columns: minmax(170px, .52fr) minmax(0, 1.48fr);
  gap: 14px 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-dg-design="editorial"] .scope-overview-head { padding-top: 4px; }
html[data-dg-design="editorial"] .scope-overview-head h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}
html[data-dg-design="editorial"] .scope-overview-head p { font-size: .78rem; }
html[data-dg-design="editorial"] .scope-stat-grid { gap: 8px; }
html[data-dg-design="editorial"] .scope-stat {
  min-height: 86px;
  grid-template-columns: 32px 1fr;
  gap: 1px 9px;
  padding: 11px 12px;
  border: 0;
  background: var(--color-background);
}
html[data-dg-design="editorial"] .scope-stat::after { display: none; }
html[data-dg-design="editorial"] .scope-stat > span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
html[data-dg-design="editorial"] .scope-stat > span svg { width: 17px; height: 17px; }
html[data-dg-design="editorial"] .scope-stat strong { font-size: clamp(1.15rem, 1.8vw, 1.55rem); }
html[data-dg-design="editorial"] .scope-stat small { font-size: .72rem; }
html[data-dg-design="editorial"] .scope-national-total {
  min-height: 42px;
  margin-top: 0;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .78rem;
}
html[data-dg-design="editorial"] .scope-national-total b { font-size: .9rem; }
html[data-dg-design="editorial"] .scope-city-grid { gap: 7px; margin-top: 0; }
html[data-dg-design="editorial"] .scope-city-row {
  min-height: 48px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: .78rem;
}
html[data-dg-design="editorial"] .scope-city-row > b { font-size: .88rem; }

html[data-dg-design="editorial"] .h-route-section { padding-block: 22px !important; }
html[data-dg-design="editorial"] .h-route-board {
  grid-template-columns: 140px minmax(0,1fr);
  gap: 14px;
  padding: 13px;
  border-radius: 12px;
}
html[data-dg-design="editorial"] .h-route-board::before { display: none !important; }
html[data-dg-design="editorial"] .h-route-head h2 { font-size: 1rem; }
html[data-dg-design="editorial"] .h-route-grid { gap: 7px; }
html[data-dg-design="editorial"] .h-route-card {
  min-height: 78px;
  padding: 9px 10px;
  border-radius: 9px;
}
html[data-dg-design="editorial"] .h-route-card strong { font-size: .82rem; }
html[data-dg-design="editorial"] .h-route-card small { font-size: .68rem; }
html[data-dg-design="editorial"] .h-route-ic {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

html[data-dg-design="editorial"] .scope-categories {
  padding-block: 30px 38px !important;
}
html[data-dg-design="editorial"] .scope-categories-head { margin-bottom: 13px; }
html[data-dg-design="editorial"] .scope-categories-head h2 {
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
}
html[data-dg-design="editorial"] .scope-cat-grid { gap: 7px; }
html[data-dg-design="editorial"] .scope-cat-card {
  min-height: 64px;
  grid-template-columns: 36px minmax(0,1fr) auto;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
}
html[data-dg-design="editorial"] .scope-cat-card:hover { transform: none; }
html[data-dg-design="editorial"] .scope-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
html[data-dg-design="editorial"] .scope-cat-icon img { width: 25px; height: 25px; }
html[data-dg-design="editorial"] .scope-cat-copy { gap: 1px; }
html[data-dg-design="editorial"] .scope-cat-copy strong { font-size: .83rem; }
html[data-dg-design="editorial"] .scope-cat-copy small { font-size: .7rem; }
html[data-dg-design="editorial"] .scope-cat-count {
  min-width: 54px;
  padding-inline-start: 0;
  border-inline-start: 0;
}
html[data-dg-design="editorial"] .scope-cat-count b { font-size: .88rem; }
html[data-dg-design="editorial"] .scope-cat-count small { font-size: 9px; }
html[data-dg-design="editorial"] .scope-cat-more { margin-top: 9px; }
html[data-dg-design="editorial"] .scope-category-foot {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 0;
  font-size: .72rem;
}

/* 4) Discovery and commerce -------------------------------------------- */
html[data-dg-design="editorial"] .dir-toolbar {
  padding: 9px;
  border-radius: 11px;
}
html[data-dg-design="editorial"] .dir-row { gap: 7px; }
html[data-dg-design="editorial"] .dir-meta { margin-block: 13px 9px; }
html[data-dg-design="editorial"] [data-dir-grid],
html[data-dg-design="editorial"] .grid-3:has(> .biz-card),
html[data-dg-design="editorial"] .grid-4:has(> .biz-card) { gap: 12px; }
html[data-dg-design="editorial"] .biz-card { border-radius: 11px; }
html[data-dg-design="editorial"] .biz-card .card-body { padding: 12px; }
html[data-dg-design="editorial"] .biz-card .card-title { font-size: .9rem; }
html[data-dg-design="editorial"] .biz-card .card-desc { font-size: .76rem; line-height: 1.55; }
html[data-dg-design="editorial"] .biz-card .card-meta { font-size: .72rem; }
html[data-dg-design="editorial"] .biz-card .card-foot {
  margin-top: 7px;
  padding-top: 5px;
  border-top: 0;
}
html[data-dg-design="editorial"] .cats-search-wrap { padding: 16px; }
html[data-dg-design="editorial"] .ux-scope-card {
  gap: 10px;
  margin-bottom: 13px;
  padding: 13px;
  border-radius: 11px;
  box-shadow: var(--e1);
}
html[data-dg-design="editorial"] .ux-scope-card::before { display: none; }
html[data-dg-design="editorial"] .ux-scope-icon { width: 42px; height: 42px; border-radius: 9px; }
html[data-dg-design="editorial"] .ux-scope-icon svg { width: 21px; height: 21px; }
html[data-dg-design="editorial"] .ux-scope-copy strong { font-size: .9rem; margin-bottom: 2px; }
html[data-dg-design="editorial"] .ux-scope-copy span,
html[data-dg-design="editorial"] .ux-scope-copy small { line-height: 1.65; }
html[data-dg-design="editorial"] .scope-pill { min-height: 38px; padding: 6px 10px; }
html[data-dg-design="editorial"] .catgroup { margin-bottom: 8px; border-radius: 11px; }
html[data-dg-design="editorial"] .catgroup-head { min-height: 64px; padding: 9px 12px; }
html[data-dg-design="editorial"] .catgroup-title { font-size: .9rem; }
html[data-dg-design="editorial"] .catgroup-blurb { font-size: .72rem; }
html[data-dg-design="editorial"] .catcard-grid { padding: 9px; gap: 6px; }
html[data-dg-design="editorial"] .item-grid { gap: 12px; }
html[data-dg-design="editorial"] .item-card { border-radius: 11px; }

/* 5) Storefront and content: group with space, not repeated rules ------- */
html[data-dg-design="editorial"] .biz-hero {
  min-height: 0 !important;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 16px;
  border-radius: 14px;
  box-shadow: var(--e1);
}
html[data-dg-design="editorial"] .biz-hero .art,
html[data-dg-design="editorial"] .biz-hero .art.photo {
  width: 104px;
  height: 104px;
  border-radius: 11px;
}
html[data-dg-design="editorial"] .biz-hero h1 { font-size: clamp(1.35rem,2vw,1.8rem); }
html[data-dg-design="editorial"] .biz-hero .sub { margin-top: 4px; font-size: .8rem; }
html[data-dg-design="editorial"] .biz-layout { gap: 16px; grid-template-columns: minmax(0,1fr) 300px; }
html[data-dg-design="editorial"] .info-row {
  min-height: 38px;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 0;
  font-size: .8rem;
}
html[data-dg-design="editorial"] .info-row .k { min-width: 76px; }
html[data-dg-design="editorial"] .hours-table { font-size: .78rem; }
html[data-dg-design="editorial"] .hours-table td {
  padding: 6px 0;
  border-bottom: 0;
}
html[data-dg-design="editorial"] .hours-table tr.today td {
  background: color-mix(in oklab, var(--color-primary) 8%, transparent);
}
html[data-dg-design="editorial"] .review {
  padding: 12px;
  margin-top: 8px;
  border-bottom: 0;
}
html[data-dg-design="editorial"] .review-body { margin-top: 7px; line-height: 1.65; }
html[data-dg-design="editorial"] .review-reply { margin-top: 10px; padding: 10px 12px; }
html[data-dg-design="editorial"] .prose {
  max-width: 68ch;
  font-size: .94rem;
  line-height: 1.75;
}
html[data-dg-design="editorial"] .prose :is(h2,h3) { margin-block: 1.25em .4em; }
html[data-dg-design="editorial"] .map-stage { min-height: min(64dvh, 600px); border-radius: 13px; }

/* 6) Forms, accounts, and workspaces ----------------------------------- */
html[data-dg-design="editorial"] .card-pad { padding: clamp(15px,1.7vw,22px); }
html[data-dg-design="editorial"] .field-label { margin-bottom: 5px; font-size: .81rem; }
html[data-dg-design="editorial"] .field-hint { margin-top: 4px; font-size: .72rem; }
html[data-dg-design="editorial"] :is(.input,.select,.textarea) { min-height: 44px; }
html[data-dg-design="editorial"] .textarea { min-height: 96px; }
html[data-dg-design="editorial"] .auth-wrap { padding-block: 28px; }
html[data-dg-design="editorial"] .auth-card {
  width: min(100%, 460px);
  padding: clamp(20px,3vw,30px);
  border-radius: 15px;
}
html[data-dg-design="editorial"] .auth-head .mark { width: 48px; height: 48px; border-radius: 12px; }
html[data-dg-design="editorial"] .auth-head h1 { font-size: clamp(1.3rem,2.4vw,1.7rem); }
html[data-dg-design="editorial"] .auth-head p { line-height: 1.6; }
html[data-dg-design="editorial"] .owner-shell { padding-block: 16px 34px; }
html[data-dg-design="editorial"] .owner-shell > .panel-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px !important;
  padding: 10px 14px;
}
html[data-dg-design="editorial"] .panel-layout { gap: 18px; padding-block: 18px 36px; }
html[data-dg-design="editorial"] .panel-head {
  min-height: 62px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 11px;
}
html[data-dg-design="editorial"] .panel-head h1 { font-size: 1.02rem; }
html[data-dg-design="editorial"] .panel-head p { font-size: .72rem; }
html[data-dg-design="editorial"] .quick-tile { min-height: 74px; padding: 10px 8px; }
html[data-dg-design="editorial"] .panel-nav-tile { min-height: 48px; }
html[data-dg-design="editorial"] .table :is(th,td) { padding: 9px 11px; }
html[data-dg-design="editorial"] .table th { font-size: .72rem; }

/* 7) Footer: finish the page without a second long page ---------------- */
html[data-dg-design="editorial"] .site-footer {
  margin-top: 30px;
  padding-top: 30px !important;
}
html[data-dg-design="editorial"] .site-footer .footer-grid {
  gap: 20px 32px;
  padding-bottom: 20px;
}
html[data-dg-design="editorial"] .site-footer h3 {
  padding-bottom: 3px;
  margin-bottom: 3px;
  border-bottom: 0;
  font-size: .82rem;
}
html[data-dg-design="editorial"] .site-footer .footer-col a,
html[data-dg-design="editorial"] .site-footer .footer-col li > span {
  min-height: 29px;
  padding-block: 2px;
  font-size: .76rem;
}
html[data-dg-design="editorial"] .site-footer .footer-about p { font-size: .78rem; line-height: 1.7; }
html[data-dg-design="editorial"] .site-footer .trust-row {
  justify-content: flex-start;
  padding: 8px 0 0;
  border-top: 0;
  border-bottom: 0;
}
html[data-dg-design="editorial"] .site-footer .trust-row img { width: 62px; height: 62px; }
html[data-dg-design="editorial"] .site-footer .footer-bottom {
  padding-block: 9px;
  border-top: 0;
}

/* 8) Medium ------------------------------------------------------------- */
@media (max-width: 1024px) {
  html[data-dg-design="editorial"] .h-hero-in,
  html[data-dg-design="editorial"] .h-hero-in.h-hero-in-compact,
  html[data-dg-design="editorial"] .home-hero-layout {
    min-height: 350px !important;
    grid-template-columns: minmax(0,1fr) minmax(320px,.85fr);
    gap: 24px;
    padding-block: 26px 32px !important;
  }
  html[data-dg-design="editorial"] .h-hero-copy h1 { font-size: clamp(1.9rem,4.2vw,2.7rem) !important; }
  html[data-dg-design="editorial"] .scope-overview > .container-wide { grid-template-columns: 1fr; }
  html[data-dg-design="editorial"] .scope-overview-head { display: flex; align-items: end; justify-content: space-between; }
  html[data-dg-design="editorial"] .biz-layout { grid-template-columns: 1fr; }
}

/* 9) Compact ------------------------------------------------------------ */
@media (max-width: 760px) {
  html[data-dg-design="editorial"] body { font-size: 14px; line-height: 1.62; }
  html[data-dg-design="editorial"] .section { padding-block: 28px !important; }
  html[data-dg-design="editorial"] .section-sm { padding-block: 18px !important; }
  html[data-dg-design="editorial"] .page-hero { padding: 18px 0 9px !important; }
  html[data-dg-design="editorial"] .page-hero :is(h1,h2) {
    font-size: clamp(1.25rem, 5.7vw, 1.55rem) !important;
    line-height: 1.38;
  }
  html[data-dg-design="editorial"] .page-hero p { margin-top: 3px; font-size: .8rem; }
  html[data-dg-design="editorial"] .h-hero-in,
  html[data-dg-design="editorial"] .h-hero-in.h-hero-in-compact,
  html[data-dg-design="editorial"] .home-hero-layout {
    min-height: 0 !important;
    gap: 18px;
    padding-block: 24px 20px !important;
  }
  html[data-dg-design="editorial"] .home-hero-kicker { margin-bottom: 8px; }
  html[data-dg-design="editorial"] .h-hero-copy h1 {
    max-width: 19ch;
    font-size: clamp(1.62rem, 7.6vw, 2rem) !important;
    line-height: 1.3;
  }
  html[data-dg-design="editorial"] .h-hero-search { margin-top: 15px; }
  html[data-dg-design="editorial"] .h-hero-search .input,
  html[data-dg-design="editorial"] .h-hero-search .btn { min-height: 46px; }
  html[data-dg-design="editorial"] .home-category-visual { gap: 7px; padding-bottom: 2px; }
  html[data-dg-design="editorial"] .home-visual-cat,
  html[data-dg-design="editorial"] .home-visual-cat.is-featured {
    flex-basis: 132px;
    width: 132px;
    height: 86px;
    min-height: 86px;
    border-radius: 10px;
  }
  html[data-dg-design="editorial"] .scope-overview { padding-block: 22px !important; }
  html[data-dg-design="editorial"] .scope-overview > .container-wide { gap: 10px; }
  html[data-dg-design="editorial"] .scope-overview-head { display: block; }
  html[data-dg-design="editorial"] .scope-overview-head h2 { font-size: 1.25rem; }
  html[data-dg-design="editorial"] .scope-stat { min-height: 72px; padding: 9px 10px; }
  html[data-dg-design="editorial"] .scope-stat strong { font-size: 1.15rem; }
  html[data-dg-design="editorial"] .scope-national-total { padding: 8px 10px; }
  html[data-dg-design="editorial"] .scope-city-row { min-height: 44px; }
  html[data-dg-design="editorial"] .h-route-section { padding-block: 17px !important; }
  html[data-dg-design="editorial"] .h-route-board { gap: 9px; padding: 10px; }
  html[data-dg-design="editorial"] .h-route-grid { gap: 6px; }
  html[data-dg-design="editorial"] .h-route-card { min-height: 86px; padding: 9px; }
  html[data-dg-design="editorial"] .scope-categories { padding-block: 25px 30px !important; }
  html[data-dg-design="editorial"] .scope-categories-head h2 { font-size: 1.22rem; }
  html[data-dg-design="editorial"] .ux-scope-card { padding: 11px; gap: 8px; }
  html[data-dg-design="editorial"] .ux-scope-copy span { font-size: .76rem; }
  html[data-dg-design="editorial"] .ux-scope-copy small { font-size: .68rem; }
  html[data-dg-design="editorial"] .ux-scope-actions { gap: 6px; }
  html[data-dg-design="editorial"] .scope-pill { min-height: 42px; }
  html[data-dg-design="editorial"] .scope-cat-card { min-height: 58px; }
  html[data-dg-design="editorial"] .scope-cat-copy small { display: none; }
  html[data-dg-design="editorial"] .scope-category-foot { gap: 4px; }
  html[data-dg-design="editorial"] .biz-card {
    min-height: 138px;
    grid-template-columns: 108px minmax(0,1fr);
  }
  html[data-dg-design="editorial"] .biz-card .card-media { width: 108px; }
  html[data-dg-design="editorial"] .biz-card .card-body { padding: 9px 10px; }
  html[data-dg-design="editorial"] .biz-card .card-title,
  html[data-dg-design="editorial"] .biz-card .card-title a { font-size: .86rem !important; }
  html[data-dg-design="editorial"] .biz-card .card-desc { font-size: .7rem; }
  html[data-dg-design="editorial"] .biz-hero { padding: 14px; gap: 11px; }
  html[data-dg-design="editorial"] .biz-hero .art,
  html[data-dg-design="editorial"] .biz-hero .art.photo { width: 76px; height: 76px; }
  html[data-dg-design="editorial"] .biz-hero h1 { font-size: 1.18rem; }
  html[data-dg-design="editorial"] .map-stage { min-height: 58dvh; }
  html[data-dg-design="editorial"] .card-pad { padding: 13px; }
  html[data-dg-design="editorial"] :is(.input,.select,.textarea) { min-height: 44px; font-size: 16px; }
  html[data-dg-design="editorial"] .site-footer { margin-top: 24px; padding-top: 24px !important; }
  html[data-dg-design="editorial"] .site-footer .footer-grid { gap: 10px 16px; padding-bottom: 10px; }
  html[data-dg-design="editorial"] .site-footer .footer-about {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: end;
    gap: 5px 10px;
  }
  html[data-dg-design="editorial"] .site-footer .footer-about > :is(.brand,p) { grid-column: 1 / -1; }
  html[data-dg-design="editorial"] .site-footer .footer-about p { margin-top: 3px; }
  html[data-dg-design="editorial"] .site-footer .footer-about .social-row { grid-column: 1; margin-top: 3px !important; }
  html[data-dg-design="editorial"] .site-footer .footer-about .trust-row { grid-column: 2; padding: 0; }
  html[data-dg-design="editorial"] .site-footer .footer-about .trust-row img { width: 52px; height: 52px; }
  html[data-dg-design="editorial"] .site-footer .footer-col a,
  html[data-dg-design="editorial"] .site-footer .footer-col li > span { min-height: 25px; padding-block: 1px; }
  html[data-dg-design="editorial"] .site-footer .footer-col:last-child ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
  }
  html[data-dg-design="editorial"] .site-footer .footer-bottom {
    gap: 3px 10px;
    padding-block: 6px;
    font-size: .65rem;
  }
  html[data-dg-design="editorial"] .site-footer .tehran-clock { padding: 2px 8px; }
}

@media (max-width: 390px) {
  html[data-dg-design="editorial"] .h-hero-copy h1 { font-size: 1.62rem !important; }
  html[data-dg-design="editorial"] .biz-card { grid-template-columns: 96px minmax(0,1fr); }
  html[data-dg-design="editorial"] .biz-card .card-media { width: 96px; }
}
/* ===== END v372-density.css ===== */

/* ===== BEGIN v373-desktop.css sha256:d1651aefc21a652e ===== */
/* ========================================================================== 
   DASTGIR v373 — intentional large-screen composition

   Mobile and tablet behavior remain owned by the earlier adaptive layers.
   This release starts at 1180px and turns large viewports into purposeful
   workspaces: broader containers, twelve-column page headings, four-column
   discovery, adaptive category groups, and paired owner/admin work areas.
   ========================================================================== */

/* Structural wrappers remain one-column and mobile-first until the desktop
   breakpoint. Declaring them here preserves the original spacing on phones
   while letting the same semantic regions become workspaces on large screens. */
html[data-dg-design="editorial"] :is(.owner-command-grid,.owner-growth-grid,.owner-tools-grid,.owner-close-grid) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
html[data-dg-design="editorial"] :is(.owner-command-grid,.owner-growth-grid,.owner-tools-grid,.owner-close-grid) > .mb-lg {
  margin-bottom: 0;
}
html[data-dg-design="editorial"] .panel-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
html[data-dg-design="editorial"] :is(.panel-ops-grid,.panel-dashboard-footer) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
html[data-dg-design="editorial"] :is(.panel-ops-priority,.panel-ops-data) {
  display: grid;
  gap: 16px;
  min-width: 0;
}
html[data-dg-design="editorial"] :is(.panel-ops-priority,.panel-ops-data) > * {
  min-width: 0;
}
html[data-dg-design="editorial"] :is(.panel-ops-grid,.panel-dashboard-footer) .card {
  margin-bottom: 0;
}

@media (min-width: 1180px) {
  html[data-dg-design="editorial"] {
    --container: 1220px;
    --container-wide: 1480px;
  }

  html[data-dg-design="editorial"] :is(.container,.container-wide) {
    width: min(calc(100% - 56px), var(--container-wide));
  }

  /* Interior pages use the horizontal space as a composed title band instead
     of stretching one narrow mobile column across the screen. */
  html[data-dg-design="editorial"] .page-hero:not(.text-center) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 4px;
    align-items: end;
    min-height: 112px;
    padding-block: 22px 18px !important;
  }
  html[data-dg-design="editorial"] .page-hero:not(.text-center) > .eyebrow {
    grid-column: 1 / 5;
    align-self: start;
    justify-self: start;
  }
  html[data-dg-design="editorial"] .page-hero:not(.text-center) > :is(h1,h2) {
    grid-column: 1 / 8;
    max-width: 26ch;
    margin: 0;
  }
  html[data-dg-design="editorial"] .page-hero:not(.text-center) > p {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
    align-self: end;
    max-width: 52ch;
    margin: 0 0 3px;
  }
  html[data-dg-design="editorial"] .page-hero:not(.text-center) > .cluster {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
    align-self: end;
    justify-self: end;
  }

  /* Homepage: a true desktop lead with a strong copy region and a visual
     category index, followed by information arranged across the canvas. */
  html[data-dg-design="editorial"] .home-hero-layout {
    grid-template-columns: minmax(0, 6.4fr) minmax(460px, 5.6fr);
    gap: clamp(48px, 5vw, 82px);
    min-height: 430px !important;
    padding-block: 36px !important;
  }
  html[data-dg-design="editorial"] .h-hero-copy { max-width: 760px; }
  html[data-dg-design="editorial"] .h-hero-copy h1 { max-width: 19ch; }
  html[data-dg-design="editorial"] .home-category-visual {
    grid-template-rows: repeat(4, 70px);
    border-radius: 20px;
  }
  html[data-dg-design="editorial"] .scope-overview > .container-wide {
    grid-template-columns: minmax(210px, 3fr) minmax(0, 9fr);
    gap: 14px 34px;
  }
  html[data-dg-design="editorial"] .scope-city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html[data-dg-design="editorial"] .h-route-board {
    grid-template-columns: 170px minmax(0, 1fr);
    padding: 15px;
  }
  html[data-dg-design="editorial"] .scope-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Directory command area: primary query/context and secondary filters get
     distinct regions. Results are four useful cards, not three wide banners. */
  html[data-dg-design="editorial"] .page-route-businesses .dir-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, .9fr);
    column-gap: 18px;
    row-gap: 4px;
    align-items: start;
    padding: 11px;
  }
  html[data-dg-design="editorial"] .page-route-businesses .dir-toolbar > .dir-row {
    grid-column: 1;
    grid-row: 1;
  }
  html[data-dg-design="editorial"] .page-route-businesses .dir-citybar {
    grid-column: 1;
    grid-row: 2;
  }
  html[data-dg-design="editorial"] .page-route-businesses .dir-filters {
    grid-column: 2;
    grid-row: 1 / 3;
    min-width: 0;
    margin: 0;
    padding-inline-start: 16px;
    border-inline-start: 1px solid var(--color-border);
  }
  html[data-dg-design="editorial"] .page-route-businesses .dir-filters-body {
    padding-top: 0;
  }
  html[data-dg-design="editorial"] .page-route-businesses .dir-chips {
    padding-top: 8px;
  }
  html[data-dg-design="editorial"] :is([data-dir-grid],.grid-3:has(> .biz-card),.grid-4:has(> .biz-card)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
  }

  /* Closed category groups form a compact index. Whichever group is opened
     receives the full line and a four-column child catalog. */
  html[data-dg-design="editorial"] .page-route-categories .cats-groups-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: start;
  }
  html[data-dg-design="editorial"] .page-route-categories .catgroup {
    margin: 0;
  }
  html[data-dg-design="editorial"] .page-route-categories .catgroup[open] {
    grid-column: 1 / -1;
  }
  html[data-dg-design="editorial"] .page-route-categories .catgroup[open] .catcard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Commerce and details retain comfortable card widths at 1440–1920px. */
  html[data-dg-design="editorial"] .page-route-catalog .item-grid.lg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  html[data-dg-design="editorial"] .biz-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
  }
  html[data-dg-design="editorial"] .map-stage {
    min-height: min(68dvh, 720px);
  }

  /* Owner dashboard: paired operational zones use the width while preserving
     the exact mobile-first order when the viewport drops below this query. */
  html[data-dg-design="editorial"] :is(.owner-command-grid,.owner-growth-grid,.owner-tools-grid,.owner-close-grid) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
  html[data-dg-design="editorial"] .owner-command-grid {
    grid-template-columns: minmax(330px, .75fr) minmax(0, 1.25fr);
  }
  html[data-dg-design="editorial"] :is(.owner-command-grid,.owner-growth-grid,.owner-tools-grid,.owner-close-grid) > .mb-lg {
    margin-bottom: 0;
  }
  html[data-dg-design="editorial"] .owner-shell .quick-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  html[data-dg-design="editorial"] .rw-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }

  /* Administrator desktop is an application frame, not a centered phone
     layout. The fixed navigation, KPI field, triage and diagnostics each get
     an explicit region. */
  html[data-dg-design="editorial"] .page-admin .panel-layout {
    grid-template-columns: minmax(0, 292px) minmax(0, 1fr);
    gap: 24px;
  }
  html[data-dg-design="editorial"] .page-admin .panel-side {
    width: 292px;
    inset-inline-start: max(28px, calc((100vw - var(--container-wide)) / 2));
  }
  html[data-dg-design="editorial"] .page-admin .panel-head {
    padding: 12px 16px;
  }
  html[data-dg-design="editorial"] .panel-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
  }
  html[data-dg-design="editorial"] .panel-ops-grid {
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
  }
  html[data-dg-design="editorial"] .panel-ops-grid .panel-ops-priority,
  html[data-dg-design="editorial"] .panel-ops-grid .panel-ops-data {
    display: grid;
    gap: 16px;
  }
  html[data-dg-design="editorial"] .panel-ops-grid .card { margin-bottom: 0; }
  html[data-dg-design="editorial"] .panel-dashboard-footer {
    display: grid;
    gap: 16px;
    align-items: start;
  }
  html[data-dg-design="editorial"] :is(.panel-ops-grid,.panel-dashboard-footer) > * {
    min-width: 0;
  }
  html[data-dg-design="editorial"] .panel-dashboard-footer > .card { margin-bottom: 0; }
  html[data-dg-design="editorial"] .panel-command-center { padding: 18px 20px; }
  html[data-dg-design="editorial"] .panel-command-main {
    grid-template-columns: minmax(250px, .8fr) minmax(420px, 1.2fr);
  }

  html[data-dg-design="editorial"] .site-footer .footer-grid {
    grid-template-columns: minmax(300px, 1.55fr) repeat(3, minmax(170px, 1fr));
    gap: 24px 54px;
  }
}

@media (min-width: 1600px) {
  html[data-dg-design="editorial"] :is(.container,.container-wide) {
    width: min(calc(100% - 80px), var(--container-wide));
  }
  html[data-dg-design="editorial"] .home-hero-layout {
    grid-template-columns: minmax(0, 7fr) minmax(500px, 5fr);
  }
  html[data-dg-design="editorial"] .panel-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* ===== END v373-desktop.css ===== */

/* ===== BEGIN v373-legibility.css sha256:adf64778733fcbe9 ===== */
/* ========================================================================== 
   DASTGIR v373 — compact-layout legibility guard

   The editorial density correction must not turn supporting Persian labels
   into 9–11px microcopy on phones. This keeps the proportions requested after
   v371 while enforcing a 12px floor for factual homepage/footer labels.
   Bottom-navigation labels retain their separate documented contract.
   ========================================================================== */

@media (max-width: 767px) {
  html[data-dg-design="editorial"] :is(
    .mobile-city-bar small,
    .home-hero-kicker,
    .eyebrow,
    .scope-stat small,
    .h-route-card small,
    .scope-cat-copy small,
    .scope-cat-count small,
    .scope-category-foot,
    .site-footer .footer-bottom
  ) {
    font-size: 12px;
  }
}
/* ===== END v373-legibility.css ===== */

/* ===== BEGIN v374-advertising.css sha256:e34bb8645bb38317 ===== */
/* v374 — calm, disclosed, viewability-ready first-party advertising.
   Native placement must never become a popup, sticky overlay or false organic
   result. The unit is server-rendered, so these dimensions reserve its complete
   media area before the lazy image decodes and keep CLS at zero. */

.dgcmp-unit {
  min-height: 154px;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--color-primary) 24%, var(--color-border));
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg,
      color-mix(in oklab, var(--color-primary) 7%, var(--color-card)) 0%,
      var(--color-card) 58%,
      color-mix(in oklab, var(--color-accent) 7%, var(--color-card)) 100%);
  box-shadow: var(--e1);
  contain: layout paint;
}

.dgcmp-unit:hover {
  transform: translateY(-2px);
  box-shadow: var(--e3);
}

.dgcmp-link {
  min-height: inherit;
  padding: 16px 18px;
}

.dgcmp-link:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--color-primary) 45%, transparent);
  outline-offset: -3px;
}

.dgcmp-flag-wrap {
  margin-bottom: 10px;
}

.dgcmp-disclosure {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid color-mix(in oklab, var(--color-foreground) 22%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-foreground) 7%, var(--color-card));
  color: var(--color-foreground);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .01em;
}

.dgcmp-sponsored-by {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--color-muted-foreground);
  font-size: 12px;
  line-height: 1.45;
}

.dgcmp-sponsored-by svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.dgcmp-sponsored-by strong {
  color: var(--color-foreground);
  font-weight: 750;
}

.dgcmp-inner {
  gap: 16px;
}

.dgcmp-media {
  width: clamp(128px, 13vw, 176px);
  height: 100px;
  border: 1px solid color-mix(in oklab, var(--color-primary) 18%, var(--color-border));
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--color-primary) 10%, var(--color-card));
}

.dgcmp-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.dgcmp-title {
  max-width: 48ch;
  font-size: clamp(16px, 1.35vw, 20px);
}

.dgcmp-desc {
  max-width: 70ch;
  line-height: 1.7;
}

.dgcmp-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.dgcmp-cta svg {
  width: 15px;
  height: 15px;
  transition: transform var(--dur-2) var(--ease-out);
}

.dgcmp-link:hover .dgcmp-cta svg {
  transform: translateX(-3px);
}

.home-campaign-section {
  padding-block: clamp(8px, 1.4vw, 18px);
}

.page-route-home .dgcmp-unit[data-dgcmp-surface="home"] {
  max-width: 1180px;
  margin-inline: auto;
}

/* A storefront ad is deliberately subordinate to the shop's own catalogue.
   It may be the same shop's campaign or a generic platform message, never a
   competing storefront campaign (enforced server-side). */
.page-route-storefront .dgcmp-unit[data-dgcmp-surface="business"] {
  margin-top: var(--space-lg);
}

@media (min-width: 1180px) {
  .page-route-home .dgcmp-unit[data-dgcmp-surface="home"] .dgcmp-link {
    padding-inline: 24px;
  }

  .page-route-home .dgcmp-unit[data-dgcmp-surface="home"] .dgcmp-media {
    width: 190px;
    height: 112px;
  }
}

@media (max-width: 640px) {
  .dgcmp-unit {
    min-height: 292px;
  }

  .dgcmp-link {
    padding: 13px 14px 15px;
  }

  .dgcmp-flag-wrap {
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .dgcmp-sponsored-by {
    justify-content: flex-end;
    text-align: start;
  }

  .dgcmp-inner {
    gap: 11px;
  }

  .dgcmp-media {
    width: 100%;
    height: auto;
    min-height: 132px;
    aspect-ratio: 16 / 9;
  }

  .dgcmp-media img {
    aspect-ratio: 16 / 9;
  }

  .dgcmp-title {
    font-size: 16px;
  }

  .dgcmp-desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .dgcmp-action-row {
    margin-top: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dgcmp-unit,
  .dgcmp-cta svg {
    transition: none;
  }

  .dgcmp-unit:hover,
  .dgcmp-link:hover .dgcmp-cta svg {
    transform: none;
  }
}

@media (forced-colors: active) {
  .dgcmp-unit,
  .dgcmp-disclosure,
  .dgcmp-media {
    border: 1px solid CanvasText;
  }
}
/* ===== END v374-advertising.css ===== */

/* ===== BEGIN v375-crafted-layers.css sha256:f937299d5bfe9a2a ===== */
/* ========================================================================== 
   DASTGIR v375 — Crafted Local Layers
   A selective glass / clay / skeuomorphic / neumorphic system.
   Depth communicates hierarchy or affordance. It never replaces contrast.
   This layer loads after v374 and preserves every functional component.
   ========================================================================== */

/* 1) MATERIAL TOKENS ----------------------------------------------------- */
html[data-dg-version="375"] {
  --craft-canvas: #f2eee5;
  --craft-canvas-deep: #e6dfd2;
  --craft-paper: #fffdf8;
  --craft-paper-2: #f9f5ec;
  --craft-glass: rgba(255,253,248,.88);
  --craft-glass-strong: rgba(255,253,248,.96);
  --craft-line: rgba(72,83,75,.18);
  --craft-line-strong: rgba(72,83,75,.30);
  --craft-highlight: rgba(255,255,255,.96);
  --craft-shadow-color: 27,45,37;
  --craft-shadow-xs: 0 1px 2px rgba(var(--craft-shadow-color),.07), 0 1px 0 var(--craft-highlight) inset;
  --craft-shadow-sm: 0 7px 18px rgba(var(--craft-shadow-color),.08), 0 1px 0 var(--craft-highlight) inset;
  --craft-shadow-md: 0 14px 34px rgba(var(--craft-shadow-color),.11), 0 1px 0 var(--craft-highlight) inset;
  --craft-shadow-clay: 0 13px 24px rgba(var(--craft-shadow-color),.10), 0 -5px 12px rgba(var(--craft-shadow-color),.035) inset, 0 2px 0 rgba(255,255,255,.82) inset;
  --craft-shadow-pressed: 0 1px 0 rgba(255,255,255,.72), inset 0 2px 5px rgba(var(--craft-shadow-color),.14);
  --craft-blur: 12px;
  --craft-radius-control: 12px;
  --craft-radius-card: 18px;
  --craft-radius-clay: 22px;
  --craft-space-1: 4px;
  --craft-space-2: 8px;
  --craft-space-3: 12px;
  --craft-space-4: 16px;
  --craft-space-5: 24px;
  --craft-space-6: 32px;
  --craft-space-7: 48px;
  --craft-space-8: 64px;
  --e1: var(--craft-shadow-xs);
  --e2: var(--craft-shadow-sm);
  --e3: var(--craft-shadow-md);
  --glass-bg: var(--craft-paper);
  --glass-bg-strong: var(--craft-paper);
  --glass-bg-weak: var(--craft-paper-2);
  --glass-border: var(--craft-line);
  --color-background: var(--craft-canvas);
  --color-background-2: var(--craft-canvas-deep);
  --color-card: var(--craft-paper);
  --color-surface: var(--craft-paper);
  --color-border: #d6d7d0;
  --color-border-strong: #b9c0b9;
}

html[data-dg-version="375"][data-theme="dark"] {
  --craft-canvas: #101511;
  --craft-canvas-deep: #090d0b;
  --craft-paper: #18201b;
  --craft-paper-2: #141b17;
  --craft-glass: rgba(24,32,27,.86);
  --craft-glass-strong: rgba(24,32,27,.95);
  --craft-line: rgba(211,226,217,.16);
  --craft-line-strong: rgba(211,226,217,.28);
  --craft-highlight: rgba(255,255,255,.055);
  --craft-shadow-color: 0,0,0;
  --craft-shadow-xs: 0 2px 3px rgba(0,0,0,.28), 0 1px 0 var(--craft-highlight) inset;
  --craft-shadow-sm: 0 8px 20px rgba(0,0,0,.30), 0 1px 0 var(--craft-highlight) inset;
  --craft-shadow-md: 0 17px 38px rgba(0,0,0,.38), 0 1px 0 var(--craft-highlight) inset;
  --craft-shadow-clay: 0 14px 28px rgba(0,0,0,.35), 0 -6px 14px rgba(0,0,0,.15) inset, 0 2px 0 rgba(255,255,255,.045) inset;
  --craft-shadow-pressed: 0 1px 0 rgba(255,255,255,.04), inset 0 3px 7px rgba(0,0,0,.38);
  --glass-bg: var(--craft-paper);
  --glass-bg-strong: var(--craft-paper);
  --glass-bg-weak: var(--craft-paper-2);
  --glass-border: var(--craft-line);
  --color-background: var(--craft-canvas);
  --color-background-2: var(--craft-canvas-deep);
  --color-card: var(--craft-paper);
  --color-surface: var(--craft-paper);
  --color-border: #334139;
  --color-border-strong: #4b5e53;
}

/* 2) CANVAS, TYPE, RHYTHM ----------------------------------------------- */
html[data-dg-version="375"] body {
  /* Must not force horizontal panning at browser zoom 200% (effective narrow viewport). */
  min-width: 0;
  font-size: 16px;
  line-height: 1.68;
  background:
    radial-gradient(900px 420px at 88% -70px, color-mix(in oklab, var(--color-primary) 10%, transparent), transparent 68%),
    radial-gradient(720px 360px at 4% 30%, color-mix(in oklab, var(--color-accent) 6%, transparent), transparent 72%),
    var(--craft-canvas);
  background-attachment: fixed;
}
html[data-dg-version="375"] :is(.container,.container-wide) {
  width: min(calc(100% - 48px), var(--container-wide));
}
html[data-dg-version="375"] .section { padding-block: clamp(42px, 5.5vw, 68px); }
html[data-dg-version="375"] .section-sm { padding-block: clamp(24px, 3vw, 38px); }
html[data-dg-version="375"] :is(h1,h2,h3,h4) {
  text-wrap: balance;
  letter-spacing: -.012em;
}
html[data-dg-version="375"] p { text-wrap: pretty; }
html[data-dg-version="375"] :is(.page-hero p,.h-hero-copy p,.section-head p,.card-desc,.prose) {
  max-width: 68ch;
}
html[data-dg-version="375"] :focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--color-ring) 18%, transparent);
}

/* 3) GLASS: ONLY CHROME AND CONTROL LAYERS ------------------------------ */
html[data-dg-version="375"] .site-header {
  background: var(--craft-glass-strong);
  border-bottom: 1px solid var(--craft-line);
  box-shadow: 0 8px 28px rgba(var(--craft-shadow-color),.07);
}
html[data-dg-version="375"] .site-header.is-stuck {
  background: var(--craft-glass-strong);
  box-shadow: 0 10px 34px rgba(var(--craft-shadow-color),.12);
}
html[data-dg-version="375"] :is(.mobile-nav .panel,.market-picker .panel,.assistant-panel,.support-panel) {
  background: var(--craft-glass-strong);
  border-color: var(--craft-line-strong);
  box-shadow: var(--craft-shadow-md);
}
html[data-dg-version="375"] .mobile-city-bar {
  background: var(--craft-glass-strong);
  border-color: var(--craft-line);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 761px) {
    html[data-dg-version="375"] .site-header,
    html[data-dg-version="375"] :is(.mobile-nav .panel,.market-picker .panel,.assistant-panel,.support-panel) {
      -webkit-backdrop-filter: blur(var(--craft-blur)) saturate(135%);
      backdrop-filter: blur(var(--craft-blur)) saturate(135%);
    }
  }
}

/* 4) PAPER AND CARDS ----------------------------------------------------- */
html[data-dg-version="375"] :is(.card,.glass) {
  border: 1px solid var(--craft-line);
  background:
    linear-gradient(145deg, color-mix(in oklab, var(--craft-paper) 97%, white) 0%, var(--craft-paper) 56%, var(--craft-paper-2) 100%);
  box-shadow: var(--craft-shadow-xs);
}
html[data-dg-version="375"] .glass {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-dg-version="375"] .card {
  border-radius: var(--craft-radius-card);
}
html[data-dg-version="375"] .card-hover {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
html[data-dg-version="375"] .card-hover:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--color-primary) 35%, var(--color-border));
  box-shadow: var(--craft-shadow-md);
}
html[data-dg-version="375"] .card-hover:active { transform: translateY(0); }
html[data-dg-version="375"] :is(.prose,form.card,.table-wrap,.review,.qa-item) {
  background-color: var(--craft-paper);
}

/* 5) CLAY: LARGE, LOW-DENSITY AFFORDANCES ------------------------------- */
html[data-dg-version="375"] :is(.h-route-card,.scope-stat,.stat-card,.quick-tile,.panel-nav-tile,.empty-state,.feat-card) {
  border: 1px solid var(--craft-line);
  border-radius: var(--craft-radius-clay);
  background:
    radial-gradient(circle at 28% 12%, rgba(255,255,255,.20), transparent 42%),
    linear-gradient(145deg, color-mix(in oklab, var(--color-primary) 5%, var(--craft-paper)) 0%, var(--craft-paper) 62%, color-mix(in oklab, var(--color-accent) 4%, var(--craft-paper-2)) 100%);
  box-shadow: var(--craft-shadow-clay);
}
html[data-dg-version="375"] :is(.h-route-ic,.stat-icon,.icon-wrap,.quick-tile > svg,.scope-stat > span:first-child,.panel-nav-tile > svg) {
  border: 1px solid var(--craft-line);
  background: color-mix(in oklab, var(--color-primary) 9%, var(--craft-paper));
  box-shadow: var(--craft-shadow-pressed);
}
html[data-dg-version="375"] :is(.h-route-card,.quick-tile,.panel-nav-tile) {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
html[data-dg-version="375"] :is(.h-route-card,.quick-tile,.panel-nav-tile):hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--color-primary) 42%, var(--color-border));
  box-shadow: var(--craft-shadow-md);
}
html[data-dg-version="375"] :is(.h-route-card,.quick-tile,.panel-nav-tile):active {
  transform: translateY(1px);
  box-shadow: var(--craft-shadow-pressed);
}

/* 6) CONTROLS: EXPLICIT CONTRAST + SELECTIVE NEUMORPHISM ---------------- */
html[data-dg-version="375"] .btn {
  min-height: 44px;
  border-radius: var(--craft-radius-control);
  transition: transform 130ms ease, box-shadow 130ms ease, background-color 130ms ease, border-color 130ms ease;
}
html[data-dg-version="375"] .btn:hover { transform: translateY(-1px); }
html[data-dg-version="375"] .btn:active { transform: translateY(1px); }
html[data-dg-version="375"] .btn-primary {
  border: 1px solid color-mix(in oklab, var(--color-primary) 76%, black);
  background: linear-gradient(145deg, color-mix(in oklab, var(--color-primary) 91%, white), var(--color-primary));
  box-shadow: 0 8px 16px color-mix(in oklab, var(--color-primary) 24%, transparent), 0 1px 0 rgba(255,255,255,.22) inset;
}
html[data-dg-version="375"] .btn-accent {
  border: 1px solid color-mix(in oklab, var(--color-accent) 76%, black);
  background: linear-gradient(145deg, color-mix(in oklab, var(--color-accent) 90%, white), var(--color-accent));
  box-shadow: 0 8px 16px color-mix(in oklab, var(--color-accent) 22%, transparent), 0 1px 0 rgba(255,255,255,.22) inset;
}
html[data-dg-version="375"] :is(.btn-glass,.btn-outline,.btn-icon,.chip,.tabs button) {
  border: 1px solid var(--craft-line-strong);
  background: linear-gradient(145deg, var(--craft-paper), var(--craft-paper-2));
  box-shadow: var(--craft-shadow-xs);
}
html[data-dg-version="375"] :is(.btn-icon,.chip,.tabs button):active,
html[data-dg-version="375"] :is(.chip.is-active,.tabs button[aria-selected="true"],.switch input:checked + .track) {
  box-shadow: var(--craft-shadow-pressed);
}
html[data-dg-version="375"] .btn-sm { min-height: 40px; }
html[data-dg-version="375"] .btn-icon { min-width: 42px; min-height: 42px; }
html[data-dg-version="375"] :is(.input,.select,.textarea) {
  border: 1px solid var(--craft-line-strong);
  border-radius: var(--craft-radius-control);
  background: color-mix(in oklab, var(--craft-paper) 96%, var(--craft-canvas));
  box-shadow: inset 0 2px 5px rgba(var(--craft-shadow-color),.07), 0 1px 0 var(--craft-highlight);
}
html[data-dg-version="375"] :is(.input,.select,.textarea):focus {
  border-color: var(--color-primary);
  box-shadow: inset 0 2px 4px rgba(var(--craft-shadow-color),.06), 0 0 0 3px color-mix(in oklab, var(--color-primary) 17%, transparent);
}
html[data-dg-version="375"] input[type="range"] {
  accent-color: var(--color-primary);
}
html[data-dg-version="375"] input[type="range"]::-webkit-slider-runnable-track {
  min-height: 8px;
  border: 1px solid var(--craft-line);
  border-radius: 999px;
  background: var(--color-muted);
  box-shadow: var(--craft-shadow-pressed);
}
html[data-dg-version="375"] .field-label { font-weight: 800; }
html[data-dg-version="375"] .field-hint { font-size: .75rem; line-height: 1.7; }
html[data-dg-version="375"] :is(.field-hint,.text-muted) { color: var(--color-muted-foreground); }

/* 7) PAGE HERO AND HOME -------------------------------------------------- */
html[data-dg-version="375"] .page-hero {
  isolation: isolate;
  padding: clamp(26px, 3.5vw, 44px) 0 22px;
  border-bottom: 0;
}
html[data-dg-version="375"] .page-hero::before {
  z-index: -1;
  inset-inline-start: -18px;
  top: 18px;
  width: 78px;
  height: 78px;
  border-radius: 28px 44px 32px 48px;
  background: color-mix(in oklab, var(--color-accent) 10%, transparent);
  transform: rotate(12deg);
}
html[data-dg-version="375"] .page-hero :is(h1,h2) {
  max-width: 24ch;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.28;
}
html[data-dg-version="375"] .page-hero p {
  margin-top: 8px;
  font-size: .96rem;
  line-height: 1.78;
}
html[data-dg-version="375"] .h-hero {
  overflow: clip;
  border-bottom: 0;
  background:
    radial-gradient(620px 320px at 83% 20%, color-mix(in oklab, var(--color-primary) 13%, transparent), transparent 72%),
    radial-gradient(520px 310px at 12% 80%, color-mix(in oklab, var(--color-accent) 9%, transparent), transparent 72%),
    linear-gradient(180deg, var(--craft-paper-2), color-mix(in oklab, var(--craft-canvas) 92%, var(--craft-paper)));
}
html[data-dg-version="375"] .home-hero-layout {
  position: relative;
}
html[data-dg-version="375"] .h-hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 3.7vw, 3.45rem);
  line-height: 1.2;
}
html[data-dg-version="375"] .home-hero-kicker,
html[data-dg-version="375"] .eyebrow {
  min-height: 26px;
  font-size: .75rem;
  border: 1px solid color-mix(in oklab, var(--color-primary) 20%, var(--craft-line));
  background: color-mix(in oklab, var(--color-primary) 8%, var(--craft-paper));
  box-shadow: 0 1px 0 var(--craft-highlight) inset;
}
html[data-dg-version="375"] .h-hero-search {
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--craft-line-strong);
  border-radius: 16px;
  background: var(--craft-paper);
  box-shadow: var(--craft-shadow-pressed), 0 12px 24px rgba(var(--craft-shadow-color),.06);
}
html[data-dg-version="375"] .h-hero-search .input {
  border: 0;
  background: transparent;
  box-shadow: none;
}
html[data-dg-version="375"] .home-category-visual {
  padding: 10px;
  border: 1px solid var(--craft-line);
  border-radius: 24px;
  background: var(--craft-glass);
  box-shadow: var(--craft-shadow-md);
}
html[data-dg-version="375"] .home-visual-cat {
  border: 1px solid var(--craft-line);
  box-shadow: var(--craft-shadow-sm);
}
html[data-dg-version="375"] .home-visual-cat::after {
  background: linear-gradient(180deg, transparent 24%, rgba(6,15,11,.88));
}
html[data-dg-version="375"] .home-visual-cat strong { font-size: .8125rem; }
html[data-dg-version="375"] .home-visual-cat small { font-size: .75rem; }
html[data-dg-version="375"] .scope-overview > .container-wide {
  padding: clamp(18px, 2.5vw, 30px);
  border: 1px solid var(--craft-line);
  border-radius: 24px;
  background: color-mix(in oklab, var(--craft-paper) 96%, transparent);
  box-shadow: var(--craft-shadow-sm);
}
html[data-dg-version="375"] .scope-national-total {
  border: 1px solid color-mix(in oklab, var(--color-primary) 20%, var(--craft-line));
  border-radius: 14px;
  background: color-mix(in oklab, var(--color-primary) 7%, var(--craft-paper));
  color: var(--color-foreground);
  box-shadow: inset 0 1px 0 var(--craft-highlight);
}
html[data-dg-version="375"] .scope-national-total :is(strong,span,b) { color: inherit; }
html[data-dg-version="375"] .scope-city-row {
  border-color: var(--craft-line);
  border-radius: 13px;
  background: var(--craft-paper-2);
  box-shadow: inset 0 1px 0 var(--craft-highlight);
}
html[data-dg-version="375"] .h-route-board {
  border: 1px solid var(--craft-line);
  border-radius: 24px;
  background: var(--craft-paper-2);
  box-shadow: inset 0 1px 0 var(--craft-highlight);
}
html[data-dg-version="375"] :is(
  .scope-stat small,
  .h-route-card small,
  .scope-cat-copy small,
  .scope-cat-count small,
  .scope-category-foot,
  .catgroup-blurb,
  .ux-scope-copy small,
  .biz-card .card-meta,
  .catcard-name,
  .panel-head p,
  .table th,
  .site-header .brand-text small,
  .site-footer .footer-bottom,
  .tehran-clock
) { font-size: .75rem; }
html[data-dg-version="375"] .panel-nav-title { font-size: .75rem; }
html[data-dg-version="375"] .scope-cat-card,
html[data-dg-version="375"] .catcard {
  border-color: var(--craft-line);
  border-radius: 14px;
  background: var(--craft-paper);
  box-shadow: var(--craft-shadow-xs);
}
html[data-dg-version="375"] :is(.scope-cat-card,.catcard):hover {
  border-color: color-mix(in oklab, var(--color-primary) 38%, var(--color-border));
  box-shadow: var(--craft-shadow-sm);
}

/* 8) SKEUOMORPHIC CUES: FUNCTIONAL, NOT DECORATIVE ---------------------- */
html[data-dg-version="375"] .map-stage {
  border: 1px solid var(--craft-line-strong);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 15%, color-mix(in oklab, var(--color-primary) 6%, transparent), transparent 25%),
    radial-gradient(circle at 72% 66%, color-mix(in oklab, var(--color-accent) 5%, transparent), transparent 26%),
    var(--craft-paper-2);
  box-shadow: var(--craft-shadow-md);
}
html[data-dg-version="375"] .map-stage-head {
  border-bottom: 1px solid var(--craft-line);
  background: var(--craft-paper);
  box-shadow: 0 3px 10px rgba(var(--craft-shadow-color),.06);
}
html[data-dg-version="375"] .biz-hero {
  border: 1px solid var(--craft-line);
  border-radius: 22px;
  background:
    linear-gradient(165deg, color-mix(in oklab, var(--color-primary) 7%, var(--craft-paper)), var(--craft-paper) 58%, var(--craft-paper-2));
  box-shadow: var(--craft-shadow-md);
}
html[data-dg-version="375"] .biz-hero .art {
  border: 1px solid var(--craft-line-strong);
  box-shadow: var(--craft-shadow-clay);
}
html[data-dg-version="375"] :is(.pay-receipt,.pay-card-box) {
  border: 1px solid var(--craft-line-strong);
  background: var(--craft-paper);
  box-shadow: var(--craft-shadow-sm);
}
html[data-dg-version="375"] .pay-receipt {
  border-radius: 10px 10px 18px 18px;
}

/* 9) DIRECTORY, CATALOG, ADS -------------------------------------------- */
html[data-dg-version="375"] .dir-toolbar {
  border: 1px solid var(--craft-line);
  background: var(--craft-paper);
  box-shadow: var(--craft-shadow-sm);
}
html[data-dg-version="375"] .biz-card {
  overflow: hidden;
  border-color: var(--craft-line);
  box-shadow: var(--craft-shadow-sm);
}
html[data-dg-version="375"] .biz-card .card-media {
  background: color-mix(in oklab, var(--color-primary) 6%, var(--craft-paper-2));
}
html[data-dg-version="375"] .item-card {
  overflow: hidden;
  border-color: var(--craft-line);
  box-shadow: var(--craft-shadow-sm);
}
html[data-dg-version="375"] .dgcmp-unit {
  border-color: color-mix(in oklab, var(--color-primary) 30%, var(--craft-line));
  background:
    radial-gradient(circle at 8% 10%, color-mix(in oklab, var(--color-accent) 9%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in oklab, var(--color-primary) 8%, var(--craft-paper)), var(--craft-paper));
  box-shadow: var(--craft-shadow-sm);
}
html[data-dg-version="375"] .dgcmp-media {
  box-shadow: var(--craft-shadow-pressed);
}

/* v377 merchant advertising workflow ----------------------------------- */
html[data-dg-version="375"] .dgcmp-owner-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 3vw, 34px); border: 1px solid var(--craft-line-strong);
  border-radius: 24px; background: linear-gradient(135deg,
    color-mix(in oklab, var(--color-primary) 12%, var(--craft-paper)), var(--craft-paper));
  box-shadow: var(--craft-shadow-md);
}
html[data-dg-version="375"] .dgcmp-owner-hero h2 { margin: 8px 0 5px; font-size: clamp(1.35rem, 2.6vw, 2rem); }
html[data-dg-version="375"] .dgcmp-owner-hero p { margin: 0; color: var(--color-muted-foreground); }
html[data-dg-version="375"] .dgcmp-options-grid,
html[data-dg-version="375"] .dgcmp-campaign-grid,
html[data-dg-version="375"] .dgcmp-tariff-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
html[data-dg-version="375"] .dgcmp-option-card { display: flex; flex-direction: column; min-width: 0; }
html[data-dg-version="375"] .dgcmp-option-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  color: var(--color-primary); background: color-mix(in oklab,var(--color-primary) 10%,var(--craft-paper)); box-shadow: var(--craft-shadow-pressed); }
html[data-dg-version="375"] .dgcmp-option-fact { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: var(--color-muted-foreground); font-size: .8125rem; }
html[data-dg-version="375"] .dgcmp-option-fact svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--color-primary); }
html[data-dg-version="375"] .dgcmp-price-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: auto; padding-top: 16px; }
html[data-dg-version="375"] .dgcmp-price-choice { min-height: 58px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px;
  border: 1px solid color-mix(in oklab,var(--color-primary) 32%,var(--craft-line)); border-radius: 12px; background: var(--craft-paper-2); text-align: center; font-size: .75rem; }
html[data-dg-version="375"] a.dgcmp-price-choice:hover { border-color: var(--color-primary); transform: translateY(-1px); }
html[data-dg-version="375"] .dgcmp-price-choice.is-disabled { opacity: .65; }
html[data-dg-version="375"] .dgcmp-campaign-card { color: inherit; min-width: 0; transition: transform .18s ease,border-color .18s ease; }
html[data-dg-version="375"] .dgcmp-campaign-card:hover { transform: translateY(-2px); border-color: color-mix(in oklab,var(--color-primary) 45%,var(--craft-line)); }
html[data-dg-version="375"] .dgcmp-mini-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
html[data-dg-version="375"] .dgcmp-mini-stats > span { display: grid; grid-template-columns: auto 1fr; gap: 2px 6px; align-items: center; padding: 9px; border-radius: 11px; background: var(--craft-paper-2); }
html[data-dg-version="375"] .dgcmp-mini-stats svg { width: 15px; height: 15px; color: var(--color-primary); }
html[data-dg-version="375"] .dgcmp-mini-stats small { grid-column: 1/-1; color: var(--color-muted-foreground); }
html[data-dg-version="375"] .dgcmp-process { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
html[data-dg-version="375"] .dgcmp-process > div { display: flex; gap: 8px; align-items: flex-start; min-width: 0; padding: 10px; border-radius: 12px; background: var(--craft-paper-2); }
html[data-dg-version="375"] .dgcmp-process b { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--color-primary); background: color-mix(in oklab,var(--color-primary) 12%,transparent); }
html[data-dg-version="375"] .dgcmp-process span { display: flex; flex-direction: column; min-width: 0; }
html[data-dg-version="375"] .dgcmp-process small { color: var(--color-muted-foreground); }
html[data-dg-version="375"] .dgcmp-booking-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
html[data-dg-version="375"] .dgcmp-booking-price { display: flex; flex-direction: column; align-items: end; padding: 12px 16px; border-radius: 14px; background: var(--craft-paper-2); }
html[data-dg-version="375"] .dgcmp-booking-price strong { font-size: 1.3rem; color: var(--color-primary); }
html[data-dg-version="375"] .dgcmp-owner-preview-img,
html[data-dg-version="375"] .dgcmp-admin-preview-img { width: 100%; max-height: 270px; object-fit: cover; aspect-ratio: 1.91/1; border-radius: 15px; border: 1px solid var(--craft-line); }
html[data-dg-version="375"] .dgcmp-lifecycle { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
html[data-dg-version="375"] .dgcmp-life-step { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--color-muted-foreground); text-align: center; }
html[data-dg-version="375"] .dgcmp-life-step > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--craft-line); background: var(--craft-paper-2); }
html[data-dg-version="375"] .dgcmp-life-step.is-done > span,
html[data-dg-version="375"] .dgcmp-life-step.is-current > span { border-color: var(--color-primary); color: var(--color-primary); background: color-mix(in oklab,var(--color-primary) 11%,var(--craft-paper)); }
html[data-dg-version="375"] .dgcmp-edit-box > summary,
html[data-dg-version="375"] .admin-direct-ad > summary,
html[data-dg-version="375"] .dgcmp-tariff-grid + summary { min-height: 44px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
html[data-dg-version="375"] .dgcmp-report-list { display: grid; gap: 8px; }
html[data-dg-version="375"] .dgcmp-report-row { display: grid; grid-template-columns: 90px minmax(80px,1fr) minmax(145px,auto); align-items: center; gap: 10px; font-size: .78rem; }
html[data-dg-version="375"] .dgcmp-report-bar { height: 8px; border-radius: 999px; background: var(--craft-paper-2); overflow: hidden; }
html[data-dg-version="375"] .dgcmp-report-bar i { display: block; height: 100%; background: var(--color-primary); border-radius: inherit; }
html[data-dg-version="375"] .admin-ad-title { display: flex; align-items: center; gap: 9px; min-width: 210px; }
html[data-dg-version="375"] .admin-ad-title > div { display: flex; flex-direction: column; }
html[data-dg-version="375"] .admin-ad-thumb { width: 46px; height: 46px; flex: 0 0 auto; object-fit: cover; border-radius: 12px; border: 1px solid var(--craft-line); }
html[data-dg-version="375"] .admin-ad-thumb.is-empty { display: grid; place-items: center; color: var(--color-primary); background: var(--craft-paper-2); }
html[data-dg-version="375"] .dgcmp-sales-ready { border-inline-start: 4px solid var(--color-warning); }
html[data-dg-version="375"] .dgcmp-sales-ready.is-ready { border-inline-start-color: var(--color-success); }
html[data-dg-version="375"] .dgcmp-tariff-card { min-width: 0; }
html[data-dg-version="375"] .dgcmp-history { margin: 0; padding-inline-start: 20px; display: grid; gap: 10px; }
html[data-dg-version="375"] .dgcmp-history li { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; }
html[data-dg-version="375"] .dgcmp-history small { grid-column: 1/-1; color: var(--color-muted-foreground); }
@media (max-width: 900px) {
  html[data-dg-version="375"] .dgcmp-process { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html[data-dg-version="375"] .dgcmp-detail-grid,
  html[data-dg-version="375"] .dgcmp-admin-edit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  html[data-dg-version="375"] .dgcmp-owner-hero,
  html[data-dg-version="375"] .dgcmp-booking-summary { align-items: stretch; flex-direction: column; }
  html[data-dg-version="375"] .dgcmp-owner-hero .btn { width: 100%; }
  html[data-dg-version="375"] .dgcmp-booking-price { align-items: flex-start; }
  html[data-dg-version="375"] .dgcmp-options-grid,
  html[data-dg-version="375"] .dgcmp-campaign-grid,
  html[data-dg-version="375"] .dgcmp-tariff-grid { grid-template-columns: 1fr; }
  html[data-dg-version="375"] .dgcmp-lifecycle { grid-template-columns: repeat(5, minmax(72px,1fr)); overflow-x: auto; padding-bottom: 6px; }
  html[data-dg-version="375"] .dgcmp-report-row { grid-template-columns: 76px 1fr; }
  html[data-dg-version="375"] .dgcmp-report-row strong { grid-column: 1/-1; }
}
@media (max-width: 420px) {
  html[data-dg-version="375"] .dgcmp-price-grid,
  html[data-dg-version="375"] .dgcmp-mini-stats { grid-template-columns: 1fr; }
  html[data-dg-version="375"] .dgcmp-process { grid-template-columns: 1fr; }
}

/* 10) AUTH, OWNER, ADMIN ------------------------------------------------- */
html[data-dg-version="375"] .auth-card {
  border: 1px solid var(--craft-line-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 4%, color-mix(in oklab, var(--color-primary) 10%, transparent), transparent 34%),
    var(--craft-paper);
  box-shadow: var(--craft-shadow-md);
}
html[data-dg-version="375"] .auth-head .mark {
  border: 1px solid var(--craft-line);
  border-radius: 17px;
  box-shadow: var(--craft-shadow-clay);
}
html[data-dg-version="375"] .panel-side {
  border: 1px solid var(--craft-line);
  border-radius: 20px;
  background: var(--craft-paper-2);
  box-shadow: var(--craft-shadow-sm);
}
html[data-dg-version="375"] .panel-nav-group {
  border-color: var(--craft-line);
  border-radius: 14px;
  background: var(--craft-paper);
  box-shadow: inset 0 1px 0 var(--craft-highlight);
}
html[data-dg-version="375"] .panel-nav a {
  border-radius: 10px;
}
html[data-dg-version="375"] .panel-nav a[aria-current="page"] {
  border: 1px solid color-mix(in oklab, var(--color-primary) 28%, var(--craft-line));
  background: color-mix(in oklab, var(--color-primary) 12%, var(--craft-paper));
  box-shadow: var(--craft-shadow-pressed);
}
html[data-dg-version="375"] .panel-head,
html[data-dg-version="375"] .panel-command-center {
  border: 1px solid var(--craft-line);
  border-radius: 17px;
  background: var(--craft-paper);
  box-shadow: var(--craft-shadow-sm);
}
html[data-dg-version="375"] .panel-metric-grid > .card,
html[data-dg-version="375"] .biz-own-stats > *,
html[data-dg-version="375"] .story-stats > * {
  border-radius: 18px;
  box-shadow: var(--craft-shadow-clay);
}
html[data-dg-version="375"] .table-wrap {
  border: 1px solid var(--craft-line);
  border-radius: 14px;
  box-shadow: var(--craft-shadow-xs);
}
html[data-dg-version="375"] .table th {
  background: var(--craft-paper-2);
  border-color: var(--craft-line);
}
html[data-dg-version="375"] .table td { border-color: var(--craft-line); }
html[data-dg-version="375"] .table tbody tr:hover td {
  background: color-mix(in oklab, var(--color-primary) 5%, var(--craft-paper));
}

/* 11) FOOTER ------------------------------------------------------------- */
html[data-dg-version="375"] .site-footer {
  position: relative;
  overflow: clip;
  border-top: 0;
  background:
    radial-gradient(520px 260px at 80% 0, rgba(104,197,154,.12), transparent 70%),
    #0d1813;
}
html[data-dg-version="375"] .site-footer::before { display: none; }

/* 12) RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1024px) {
  html[data-dg-version="375"] .h-hero-copy h1 {
    font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  }
  html[data-dg-version="375"] .home-category-visual { border-radius: 20px; }
  html[data-dg-version="375"] .panel-side { border-radius: 17px; }
}

@media (max-width: 760px) {
  html[data-dg-version="375"] body {
    font-size: 15px;
    line-height: 1.65;
    background-attachment: scroll;
  }
  html[data-dg-version="375"] :is(.container,.container-wide) {
    width: min(calc(100% - 28px), var(--container-wide));
  }
  html[data-dg-version="375"] .section { padding-block: 30px; }
  html[data-dg-version="375"] .section-sm { padding-block: 18px; }
  html[data-dg-version="375"] .site-header {
    background: var(--craft-paper);
    box-shadow: 0 5px 16px rgba(var(--craft-shadow-color),.10);
  }
  html[data-dg-version="375"] .page-hero {
    padding: 20px 0 12px;
  }
  html[data-dg-version="375"] .page-hero::before {
    top: 10px;
    width: 58px;
    height: 58px;
    border-radius: 20px 31px 23px 33px;
  }
  html[data-dg-version="375"] .page-hero :is(h1,h2) {
    font-size: clamp(1.32rem, 6vw, 1.65rem);
  }
  html[data-dg-version="375"] .page-hero p { font-size: .86rem; }
  html[data-dg-version="375"] .h-hero-copy h1 {
    max-width: 18ch;
    font-size: clamp(1.68rem, 7.4vw, 2.12rem);
  }
  html[data-dg-version="375"] .h-hero-search {
    padding: 5px;
    border-radius: 14px;
  }
  html[data-dg-version="375"] .home-category-visual {
    padding: 7px;
    border-radius: 16px;
    box-shadow: var(--craft-shadow-sm);
  }
  html[data-dg-version="375"] .scope-overview > .container-wide {
    padding: 14px;
    border-radius: 18px;
  }
  html[data-dg-version="375"] .h-route-board {
    padding: 10px;
    border-radius: 18px;
  }
  html[data-dg-version="375"] :is(.h-route-card,.scope-stat,.quick-tile,.panel-nav-tile,.empty-state,.feat-card) {
    border-radius: 16px;
    box-shadow: var(--craft-shadow-sm);
  }
  html[data-dg-version="375"] .card { border-radius: 15px; }
  html[data-dg-version="375"] .card-hover:hover,
  html[data-dg-version="375"] :is(.h-route-card,.quick-tile,.panel-nav-tile):hover {
    transform: none;
  }
  html[data-dg-version="375"] .main-content :is(.input,.select,.textarea) {
    min-height: 44px;
    font-size: 16px;
  }
  html[data-dg-version="375"] .btn-sm { min-height: 42px; }
  html[data-dg-version="375"] .panel-side { box-shadow: none; }
  html[data-dg-version="375"] .map-stage { border-radius: 15px; }
}

@media (max-width: 360px) {
  html[data-dg-version="375"] :is(.container,.container-wide) {
    width: min(calc(100% - 20px), var(--container-wide));
  }
  html[data-dg-version="375"] .h-hero-search {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }
  html[data-dg-version="375"] .h-hero-search .btn { width: 100%; }
}

/* 13) ACCESSIBILITY AND DEGRADATION ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html[data-dg-version="375"] :is(.card-hover,.h-route-card,.quick-tile,.panel-nav-tile,.btn) {
    transition: none;
  }
  html[data-dg-version="375"] :is(.card-hover,.h-route-card,.quick-tile,.panel-nav-tile,.btn):hover,
  html[data-dg-version="375"] :is(.card-hover,.h-route-card,.quick-tile,.panel-nav-tile,.btn):active {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  html[data-dg-version="375"] .site-header,
  html[data-dg-version="375"] :is(.mobile-nav .panel,.market-picker .panel,.assistant-panel,.support-panel,.home-category-visual) {
    background: var(--craft-paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  html[data-dg-version="375"] :is(.site-header,.card,.glass,.h-route-card,.scope-stat,.stat-card,.quick-tile,.panel-nav-tile,.empty-state,.input,.select,.textarea,.btn,.chip,.panel-side,.panel-nav-group,.map-stage,.auth-card,.dgcmp-unit) {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
  }
  html[data-dg-version="375"] :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
}

@media print {
  html[data-dg-version="375"] body { background: #fff; }
  html[data-dg-version="375"] :is(.card,.glass,.h-route-card,.scope-stat,.panel-side,.map-stage,.auth-card) {
    background: #fff;
    box-shadow: none;
  }
}
/* ===== END v375-crafted-layers.css ===== */

/* ===== BEGIN v380-ad-platform.css sha256:92ffe903337eb071 ===== */
/* v380 — professional direct-sold rotation, products and reporting. */

/* Public campaign changes are automatic, viewability-gated and visually calm. */
.dgcmp-unit { position: relative; }
.dgcmp-visual { opacity: 1; transition: opacity 180ms ease; }
.dgcmp-visual.is-changing { opacity: .2; }
/* Keep the directory campaign visually separate from both the result summary
   above and the shop-card header below. */
.dgcmp-directory-wrap {
  margin-block: var(--space-lg) var(--space-xl);
  isolation: isolate;
}

.dgcmp-admin-edit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); align-items: start; }

/* Merchant comparison makes the commercial difference between relative share
   and exclusive clock-time explicit without exposing internal delivery jargon. */
.dgcmp-priority-grid,
.dgcmp-exclusive-grid,
.dgcmp-report-splits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}
.dgcmp-priority-choice,
.dgcmp-exclusive-choice {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
}
.dgcmp-priority-choice:hover,
.dgcmp-exclusive-choice:hover { border-color: var(--color-primary); box-shadow: var(--e1); }
.dgcmp-priority-choice small,
.dgcmp-exclusive-choice small { color: var(--color-muted-foreground); line-height: 1.65; }
.dgcmp-product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-primary-text);
  font-size: .78rem;
  font-weight: 750;
}
.dgcmp-capacity-note {
  padding: 10px 12px;
  border-inline-start: 3px solid var(--color-primary);
  background: var(--color-muted);
  border-radius: var(--radius-sm);
}
.dgcmp-stat-table th,
.dgcmp-stat-table td { white-space: nowrap; }
.dgcmp-benchmark-lock {
  border: 1px dashed var(--color-border-strong);
  background: var(--color-muted);
}

@media (max-width: 760px) {
  .dgcmp-priority-grid,
  .dgcmp-exclusive-grid,
  .dgcmp-report-splits { grid-template-columns: 1fr; }
  .dgcmp-directory-wrap { margin-block: var(--space-lg); }
}

@media (prefers-reduced-motion: reduce) {
  .dgcmp-visual { transition: none; }
}

@media (forced-colors: active) {
  .dgcmp-priority-choice,
  .dgcmp-exclusive-choice { border: 1px solid CanvasText; background: Canvas; color: CanvasText; }
}
/* ===== END v380-ad-platform.css ===== */

/* ===== BEGIN v384-dual-theme-ads.css sha256:7f2401698a2f6189 ===== */
/* ===== v384: dual-theme controls + observable live advertising ===== */
:root { color-scheme: light dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

/* The crafted active navigation surface is pale in day mode; do not inherit
   the white text from the older solid-primary treatment. */
html[data-dg-version="375"] .panel-nav a[aria-current="page"] {
  color: var(--color-foreground);
}

.theme-toggle { flex: 0 0 auto; }
.theme-toggle[aria-pressed="true"] {
  color: var(--color-accent);
  background: color-mix(in oklab, var(--color-accent) 12%, var(--color-card));
}

.dgcmp-health-board { overflow: clip; }
.dgcmp-health-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.dgcmp-health-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--color-card) 90%, var(--color-primary) 3%);
}
.dgcmp-health-card .between { align-items: flex-start; gap: 8px; }
.dgcmp-health-card .badge { font-size: 12px; text-align: center; }
.dgcmp-health-metrics small { font-size: 12px; }
.dgcmp-health-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-block: 14px 9px;
}
.dgcmp-health-metrics span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.dgcmp-health-metrics b { font-size: var(--fs-md); }
.dgcmp-health-metrics small { color: var(--color-muted-foreground); font-size: 10px; }
.dgcmp-admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) minmax(160px, 1fr) minmax(160px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-muted);
}
.dgcmp-admin-filters .input,
.dgcmp-admin-filters .select { min-height: 40px; }

.dgcmp-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  align-items: start;
  gap: var(--space-lg);
}
.dgcmp-draft-preview { position: sticky; top: calc(var(--header-h, 72px) + 18px); }
.dgcmp-preview-unit { min-height: 0; margin: 0; pointer-events: none; }
.dgcmp-preview-unit .dgcmp-link { cursor: default; }
.dgcmp-preview-unit .dgcmp-inner { align-items: center; }
.dgcmp-preview-unit .dgcmp-media { min-width: 110px; }
.dgcmp-owner-kpis { align-items: stretch; }

@media (max-width: 1100px) {
  .dgcmp-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgcmp-admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgcmp-admin-filters > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .dgcmp-builder-layout { grid-template-columns: 1fr; }
  .dgcmp-draft-preview { position: static; }
}
@media (max-width: 640px) {
  .dgcmp-flag-wrap { flex-wrap: wrap; }
  .dgcmp-health-grid,
  .dgcmp-admin-filters { grid-template-columns: 1fr; }
  .dgcmp-admin-filters > :first-child { grid-column: auto; }
  .dgcmp-health-card { padding: 12px; }
  .dgcmp-filter-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .dgcmp-filter-tabs .btn { flex: 0 0 auto; }
  .dgcmp-preview-unit { min-height: 280px; }
}
@media (forced-colors: active) {
  .dgcmp-health-card, .dgcmp-admin-filters { border: 1px solid CanvasText; }
}
/* ===== END v384 ===== */
/* ===== END v384-dual-theme-ads.css ===== */

/* ===== BEGIN v385-formal-light-rotation.css sha256:a84c947acf5df065 ===== */
/* ========================================================================== 
   DASTGIR v385 — formal advertising and genuinely bright day theme
   ========================================================================== */

/* Day is neutral-white rather than a dim cream approximation of night. */
html[data-dg-version="375"][data-theme="light"] {
  color-scheme: light;
  --craft-canvas: #fbfcfb;
  --craft-canvas-deep: #f1f4f2;
  --craft-paper: #ffffff;
  --craft-paper-2: #f7f9f8;
  --craft-glass: rgba(255,255,255,.91);
  --craft-glass-strong: rgba(255,255,255,.98);
  --craft-line: rgba(39,64,50,.16);
  --craft-line-strong: rgba(39,64,50,.27);
  --craft-highlight: #ffffff;
  --craft-shadow-color: 24,48,36;
  --color-background: #fbfcfb;
  --color-background-2: #f1f4f2;
  --color-foreground: #1d2922;
  --color-card: #ffffff;
  --color-card-foreground: #1d2922;
  --color-surface: #ffffff;
  --color-muted: #eef2ef;
  --color-muted-foreground: #526058;
  --color-faint: #66736b;
  --color-border: #d9e0db;
  --color-border-strong: #bcc8c0;
  --glass-bg: #ffffff;
  --glass-bg-strong: #ffffff;
  --glass-bg-weak: #f7f9f8;
  --glass-border: rgba(39,64,50,.16);
}

html[data-dg-version="375"][data-theme="light"] body,
html[data-dg-version="375"][data-theme="light"] .main-content {
  background-color: var(--color-background);
}
html[data-dg-version="375"][data-theme="light"] .site-header,
html[data-dg-version="375"][data-theme="light"] .mobile-bottom-nav {
  background: rgba(255,255,255,.97);
}

/* Public advertising stays formal: disclosure and sponsor are sufficient.
   Automatic delivery is operational behaviour, not a promotional badge. */
.dgcmp-unit .dgcmp-flag-wrap { justify-content: flex-start; }

/* Reduced motion keeps the required automatic content update while making it
   instantaneous; no fade, pulse or spatial animation is introduced. */
@media (prefers-reduced-motion: reduce) {
  .dgcmp-visual,
  .dgcmp-visual.is-changing { transition: none !important; opacity: 1; }
}
/* ===== END v385-formal-light-rotation.css ===== */

/* ===== BEGIN v386-white-canvas-fast-rotation.css sha256:a2fcb3c3bb667d02 ===== */
/* ========================================================================== 
   DASTGIR v386 — pure-white day canvas
   Only the page backdrop is flattened; card hierarchy and the dark theme stay.
   ========================================================================== */
html[data-dg-version="375"][data-theme="light"] {
  --craft-canvas: #ffffff;
  --craft-canvas-deep: #ffffff;
  --color-background: #ffffff;
  --color-background-2: #ffffff;
}

html[data-dg-version="375"][data-theme="light"],
html[data-dg-version="375"][data-theme="light"] body,
html[data-dg-version="375"][data-theme="light"] .main-content {
  background: #ffffff !important;
  background-image: none !important;
}

html[data-dg-version="375"][data-theme="light"] .spatial-bg,
html[data-dg-version="375"][data-theme="light"] .spatial-grain {
  display: none !important;
}
/* ===== END v386-white-canvas-fast-rotation.css ===== */

/* ===== BEGIN v390-mobile-storefront-spacing-images.css sha256:fc56c22447294245 ===== */
/* ========================================================================== 
   DASTGIR v390 — storefront separation and complete mobile business imagery
   ========================================================================== */

/* The business campaign is a distinct section, never the visual continuation
   of the facts card or catalogue immediately before it. The route selector is
   intentionally specific; v390 also preserves the repaired route metadata. */
.page-route-storefront .biz-layout > div > .dgcmp-unit[data-dgcmp-surface="business"] {
  margin-block-start: clamp(22px, 3vw, 32px);
  scroll-margin-block-start: calc(var(--header-h, 72px) + 18px);
}

@media (max-width: 760px) {
  .page-route-storefront .biz-layout > div > .dgcmp-unit[data-dgcmp-surface="business"] {
    margin-block-start: 24px;
  }

  /* Mobile visitors must see the whole business image, whether it is an
     uploaded photograph or category artwork. Desktop keeps its editorial
     crop; mobile cards, identity artwork and gallery use contain-fit. */
  .biz-card :is(.biz-cover, .biz-thumb-art img),
  .page-route-storefront .biz-hero .art,
  .page-route-storefront .gallery-main.photo img,
  .page-route-storefront .gallery-thumbs img {
    object-fit: contain !important;
    object-position: center !important;
    background: color-mix(in oklab, var(--color-muted) 72%, var(--color-card));
  }

  /* mobile-refine.css deliberately gave category artwork a cover crop with a
     more-specific !important selector. Repeat that specificity here so shops
     without uploaded photos also show the complete category illustration. */
  [data-dir-grid] .biz-card .biz-thumb-art img.ic {
    object-fit: contain !important;
    object-position: center !important;
    background: color-mix(in oklab, var(--color-muted) 72%, var(--color-card));
  }

  .biz-card .card-media.has-photo {
    position: relative !important;
    overflow: hidden;
  }

  .biz-card .card-media.has-photo > .biz-cover {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    padding: 3px;
  }

  .page-route-storefront .biz-hero .art.photo {
    padding: 3px;
  }

  .page-route-storefront .gallery-main.photo {
    position: relative;
    height: clamp(230px, 62dvh, 560px);
    min-height: 230px;
    aspect-ratio: auto;
    background: color-mix(in oklab, var(--color-muted) 78%, var(--color-card));
  }

  .page-route-storefront .gallery-main.photo img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
  }

  .page-route-storefront .gallery-thumbs button {
    background: color-mix(in oklab, var(--color-muted) 78%, var(--color-card));
  }

  /* A campaign without an uploaded creative must not reserve a large, blank
     16:9 rectangle. Keep a compact, explicit platform illustration instead. */
  .dgcmp-unit .dgcmp-media.dgcmp-media-icon {
    height: 96px;
    min-height: 96px;
    aspect-ratio: auto;
    color: var(--color-primary);
    background: color-mix(in oklab, var(--color-primary) 12%, var(--color-card));
  }

  .dgcmp-unit .dgcmp-media.dgcmp-media-icon svg {
    width: 46px;
    height: 46px;
    opacity: 1;
  }
}

@media (forced-colors: active) {
  .page-route-storefront .gallery-main.photo,
  .page-route-storefront .gallery-thumbs button {
    border: 1px solid CanvasText;
    background: Canvas;
  }
}
/* ===== END v390-mobile-storefront-spacing-images.css ===== */

/* ===== BEGIN v391-standard-business-media.css sha256:a0beacb9d251e468 ===== */
/* ========================================================================== 
   DASTGIR v391 — standard, complete mobile business media areas
   The old 76×76 / 112×112 squares made complete artwork technically visible
   but practically tiny. Mobile now allocates a bounded full-width media frame
   before identity/content, for both directory cards and storefront headers.
   ========================================================================== */

/* On desktop, keep the established three-column hero geometry while the new
   semantic wrapper remains transparent to CSS Grid. */
.biz-hero-media { display: contents; }

/* Ruflo status values must remain distinct from their labels in both the
   narrow panel stack and the four-column desktop summary. */
.ruflo-stats .stat-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.ruflo-stats .stat-card :is(small,strong,span) {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  /* Directory/home business card: one orderly media area, then information.
     This intentionally overrides the legacy horizontal 112px thumbnail card. */
  html[data-dg-design="editorial"] .biz-card,
  [data-dir-grid] .biz-card,
  .biz-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    flex-direction: initial !important;
    align-items: stretch !important;
    gap: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }

  html[data-dg-design="editorial"] .biz-card .card-media,
  [data-dir-grid] .biz-card .card-media,
  .biz-card .card-media {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: relative !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 190px !important;
    max-height: 420px;
    aspect-ratio: 16 / 9 !important;
    flex: none !important;
    border: 0 !important;
    border-bottom: 1px solid var(--color-border) !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background:
      linear-gradient(135deg,
        color-mix(in oklab, var(--color-primary) 5%, var(--color-card)),
        color-mix(in oklab, var(--color-muted) 82%, var(--color-card))) !important;
  }

  html[data-dg-design="editorial"] .biz-card .card-body,
  [data-dir-grid] .biz-card .card-body,
  .biz-card .card-body {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100%;
    min-width: 0 !important;
    padding: 13px 14px 15px !important;
  }

  /* Both uploaded photos and category artwork use the whole large frame and
     remain complete. Portrait/square art may have calm side space, never crop. */
  .biz-card .card-media.has-photo > .biz-cover,
  [data-dir-grid] .biz-card .card-media.has-photo > .biz-cover,
  .biz-card .biz-thumb-art,
  .biz-card .biz-thumb-art img,
  [data-dir-grid] .biz-card .biz-thumb-art img.ic {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    padding: clamp(8px, 2.5vw, 14px) !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }

  /* Storefront identity: media is a first-class full-width header region,
     followed by name/facts and then actions. No 76px logo next to the title. */
  html[data-dg-design="editorial"] .page-route-storefront .biz-hero,
  .page-route-storefront .biz-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 0 14px !important;
    overflow: hidden;
  }

  .page-route-storefront .biz-hero-media {
    display: grid;
    place-items: center;
    grid-column: 1;
    grid-row: 1;
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 200px;
    max-height: 430px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    background:
      radial-gradient(circle at 75% 24%,
        color-mix(in oklab, var(--color-accent) 13%, transparent), transparent 42%),
      linear-gradient(135deg,
        color-mix(in oklab, var(--color-primary) 7%, var(--color-card)),
        color-mix(in oklab, var(--color-muted) 84%, var(--color-card)));
  }

  html[data-dg-design="editorial"] .page-route-storefront .biz-hero-media .art,
  .page-route-storefront .biz-hero-media .art,
  .page-route-storefront .biz-hero-media .art.photo {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    padding: clamp(10px, 3vw, 18px) !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }

  .page-route-storefront .biz-hero-identity {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0 !important;
    padding: 14px 14px 10px;
  }

  .page-route-storefront .biz-hero .biz-action-panel {
    grid-column: 1 !important;
    grid-row: 3;
    width: auto;
    margin-inline: 14px;
  }
}

@media (max-width: 360px) {
  .biz-card .card-media { min-height: 184px !important; }
  .page-route-storefront .biz-hero-media { min-height: 190px; }
}

@media (forced-colors: active) {
  .biz-card .card-media,
  .page-route-storefront .biz-hero-media {
    border: 1px solid CanvasText !important;
    background: Canvas !important;
  }
}
/* ===== END v391-standard-business-media.css ===== */

/* ===== BEGIN v394-ui-ux.css sha256:758bcb152bd2f511 ===== */
/* Dastgir v394-derived stable UI/UX correction layer.
   Loaded last by tools/build_css_bundles.py. These corrections intentionally
   follow the editorial design contract rather than a release number, so a
   cache-busting version bump cannot silently disable validated layout fixes. */

/* Keep the three compact mobile header controls independently tappable. */
@media (max-width: 760px) {
  html[data-dg-design="editorial"] .site-header :is(.btn-icon,.nav-toggle) {
    width: var(--tap) !important;
    min-width: var(--tap) !important;
    height: var(--tap) !important;
    min-height: var(--tap) !important;
  }
}

/* Bulk actions must follow the compact mobile flow rather than sticking over
   the title/action row while the toolbar wraps. */
@media (max-width: 520px) {
  html[data-dg-design="editorial"] .bulk-bar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  html[data-dg-design="editorial"] .bulk-bar > * {
    min-width: 0;
    max-width: 100%;
  }
  html[data-dg-design="editorial"] .bulk-bar .select,
  html[data-dg-design="editorial"] .bulk-bar .btn {
    width: 100%;
  }
}

/* Keep compact health labels readable after the legacy 10px rule. */
html[data-dg-design="editorial"] .dgcmp-health-metrics small {
  font-size: 12px !important;
}

/* 1) Brand and footer ---------------------------------------------------- */
html[data-dg-design="editorial"] :is(.site-header,.site-footer) .brand-mark {
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-dg-design="editorial"] :is(.site-header,.site-footer) .brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
html[data-dg-design="editorial"] .site-footer .social-row {
  align-items: center;
  gap: 6px;
}
html[data-dg-design="editorial"] .site-footer .social-row a {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: #fff;
}
html[data-dg-design="editorial"] .site-footer .social-row a:hover {
  border-color: rgba(255,255,255,.34);
  background: rgba(255,255,255,.11);
  color: #fff;
}
html[data-dg-design="editorial"] .site-footer .social-row svg {
  width: 15px;
  height: 15px;
  display: block;
  margin: auto;
}
html[data-dg-design="editorial"] .site-footer .brand-mark img {
  filter: brightness(0) invert(1);
  opacity: .94;
}
html[data-dg-design="editorial"] .site-footer :is(.footer-contact-row,.footer-contact-link) {
  width: 100%;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  line-height: 1.55;
  text-align: start;
}
html[data-dg-design="editorial"] .site-footer :is(.footer-contact-row,.footer-contact-link) > svg {
  width: 15px;
  height: 15px;
  justify-self: center;
  color: #fff;
}
html[data-dg-design="editorial"] .site-footer :is(.footer-contact-row,.footer-contact-link) > :is(span,a) {
  min-width: 0;
}
html[data-dg-design="editorial"] .trust-seal-link {
  position: relative;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 11px;
  background: rgba(255,255,255,.055);
}
html[data-dg-design="editorial"] .trust-seal-img {
  position: absolute;
  inset: 0;
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0;
}
html[data-dg-design="editorial"] .trust-seal-fallback {
  display: grid;
  place-items: center;
  gap: 4px;
  color: #d7e2dc;
  font-size: .68rem;
  line-height: 1.2;
}
html[data-dg-design="editorial"] .trust-seal-fallback svg { width: 22px; height: 22px; }
html[data-dg-design="editorial"] .trust-seal-link.is-loaded .trust-seal-img { opacity: 1; }
html[data-dg-design="editorial"] .trust-seal-link.is-loaded .trust-seal-fallback { opacity: 0; }

/* 2) Homepage search and scope ------------------------------------------ */
html[data-dg-design="editorial"] .h-hero {
  z-index: 4;
  overflow: visible;
}
html[data-dg-design="editorial"] .h-hero::after { overflow: hidden; }
html[data-dg-design="editorial"] .h-hero-in,
html[data-dg-design="editorial"] .h-hero-copy,
html[data-dg-design="editorial"] .h-hero-search,
html[data-dg-design="editorial"] .h-hero-search .search-wrap {
  position: relative;
  overflow: visible;
}
html[data-dg-design="editorial"] .h-hero-search {
  border-color: color-mix(in oklab, var(--color-primary) 34%, var(--color-border));
  background: color-mix(in oklab, var(--color-card) 96%, transparent);
  box-shadow: 0 14px 34px rgba(9,55,40,.13), inset 0 1px 0 rgba(255,255,255,.66);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
html[data-dg-design="editorial"] .h-hero-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 15%, transparent),
              0 16px 36px rgba(9,55,40,.16);
}
html[data-dg-design="editorial"] .h-hero-search .search-icon { color: var(--color-primary); }
html[data-dg-design="editorial"] .h-hero-search .live-sugg {
  z-index: 400;
  top: calc(100% + 10px);
  max-height: min(360px,55dvh);
  border-color: color-mix(in oklab, var(--color-primary) 24%, var(--color-border));
  background: var(--color-card);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 18px 46px rgba(7,37,27,.23);
}
html[data-dg-design="editorial"] .scope-overview {
  position: relative;
  z-index: 1;
}
html[data-dg-design="editorial"] .scope-overview-head h2 {
  color: var(--color-foreground);
  font-weight: 900;
  letter-spacing: -.02em;
}
html[data-dg-design="editorial"] .scope-overview-head .eyebrow {
  color: color-mix(in oklab, var(--color-primary) 88%, var(--color-foreground));
  font-weight: 800;
}

/* 3) Directory saved searches, result heading and pagination ------------ */
html[data-dg-design="editorial"] .saved-search-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 12px;
  min-width: 0;
}
html[data-dg-design="editorial"] .saved-search-list {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0,1fr);
  align-items: center;
  gap: 8px 10px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: color-mix(in oklab, var(--color-primary) 4%, var(--color-card));
}
html[data-dg-design="editorial"] .saved-search-list[hidden] { display: none; }
html[data-dg-design="editorial"] .saved-search-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-muted-foreground);
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}
html[data-dg-design="editorial"] .saved-search-label svg { width: 15px; height: 15px; }
html[data-dg-design="editorial"] .saved-chips {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  padding-block: 1px;
}
html[data-dg-design="editorial"] .saved-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 34px;
  padding: 0 9px 0 3px;
  border: 1px solid color-mix(in oklab, var(--color-primary) 22%, var(--color-border));
  border-radius: 999px;
  background: var(--color-card);
  font-size: .78rem;
}
html[data-dg-design="editorial"] .saved-chip a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--color-foreground);
  white-space: nowrap;
}
html[data-dg-design="editorial"] .saved-chip small { margin-inline-start: 3px; color: var(--color-muted-foreground); }
html[data-dg-design="editorial"] .saved-chip button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-muted-foreground);
  font-size: 1.05rem;
  line-height: 1;
}
html[data-dg-design="editorial"] .saved-chip button:hover {
  background: var(--color-muted);
  color: var(--color-destructive);
}
html[data-dg-design="editorial"] .save-search-action {
  flex: none;
  min-height: 42px;
}
html[data-dg-design="editorial"] .ux-scope-card-shops { margin-top: 0; }
html[data-dg-design="editorial"] .dir-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 4px 0 18px;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
}
html[data-dg-design="editorial"] .dir-meta > span:first-child {
  color: var(--color-foreground);
  font-weight: 700;
}
html[data-dg-design="editorial"] .dir-meta > span:last-child {
  color: var(--color-muted-foreground);
  font-size: .75rem;
}
html[data-dg-design="editorial"] [data-dir-results] { scroll-margin-top: calc(var(--header-h) + 16px); }
html[data-dg-design="editorial"] [data-dir-results]:focus { outline: none; }
html[data-dg-design="editorial"] .pager {
  gap: 8px;
  direction: rtl;
}
html[data-dg-design="editorial"] .pager-pages {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
html[data-dg-design="editorial"] .pager :is(a,.pg-cur,.pg-gap) {
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}
html[data-dg-design="editorial"] .pager-pages :is(a,.pg-cur) {
  width: 44px;
  min-width: 44px;
  padding: 0;
}
html[data-dg-design="editorial"] .pager .pager-step { min-width: 82px; }
html[data-dg-design="editorial"] .pager .pg-cur {
  border: 2px solid color-mix(in oklab, var(--color-primary) 82%, #000);
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 17%, transparent);
}
html[data-dg-design="editorial"] .pager .pg-gap { min-width: 24px; padding: 0; }

/* 4) Authentication and OTP --------------------------------------------- */
html[data-dg-design="editorial"] body[class*="page-route-login"] .auth-wrap {
  min-height: auto;
  padding-block: clamp(30px,6vw,64px);
}
html[data-dg-design="editorial"] body[class*="page-route-login"] .auth-card {
  width: min(100%,440px);
  padding: clamp(22px,4vw,34px);
}
html[data-dg-design="editorial"] .auth-card :is(.input,.select,.textarea) {
  border-width: 1px;
  font-size: 1rem;
}
html[data-dg-design="editorial"] .auth-head { margin-bottom: 22px; }
html[data-dg-design="editorial"] .auth-head h1 {
  font-size: clamp(1.4rem,3vw,1.8rem);
  line-height: 1.35;
}
html[data-dg-design="editorial"] .auth-head p {
  max-width: 36ch;
  margin: 8px auto 0;
  line-height: 1.75;
}
html[data-dg-design="editorial"] .otp-feedback {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}
html[data-dg-design="editorial"] .auth-alert {
  margin: 0;
  align-items: flex-start;
  line-height: 1.7;
}
html[data-dg-design="editorial"] .auth-alert.is-expired {
  margin-bottom: 4px;
  border-width: 2px;
  box-shadow: 0 8px 22px color-mix(in oklab, var(--color-destructive) 12%, transparent);
}
html[data-dg-design="editorial"] .auth-primary-form { display: grid; gap: 2px; }
html[data-dg-design="editorial"] .otp-input {
  min-height: 58px;
  padding-inline: 16px;
  text-align: center;
  font-size: clamp(1.35rem,6vw,1.7rem);
  font-weight: 800;
  letter-spacing: .28em;
  font-variant-numeric: tabular-nums;
}
html[data-dg-design="editorial"] .otp-resend-form { margin-top: 12px; }
html[data-dg-design="editorial"] .otp-auth-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] body[class*="page-route-login"] .site-footer {
  margin-top: clamp(24px,5vw,48px);
}

/* 5) Owner dashboard hierarchy and navigation --------------------------- */
html[data-dg-design="editorial"] .owner-businesses-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
}
html[data-dg-design="editorial"] .owner-businesses-head,
html[data-dg-design="editorial"] .owner-section-head,
html[data-dg-design="editorial"] .real-visitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
}
html[data-dg-design="editorial"] .owner-businesses-head .btn { margin-inline-start: auto; }
html[data-dg-design="editorial"] .owner-command-grid,
html[data-dg-design="editorial"] .owner-growth-grid,
html[data-dg-design="editorial"] .owner-tools-grid,
html[data-dg-design="editorial"] .owner-close-grid,
html[data-dg-design="editorial"] .owner-recent-grid { gap: 18px; }
html[data-dg-design="editorial"] :is(.owner-today-card,.owner-quick-card,.owner-story-card,.owner-completeness-card,.owner-sections-card,.owner-recent-card) {
  min-width: 0;
}
html[data-dg-design="editorial"] .owner-stats-grid .stat {
  min-width: 0;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  overflow: hidden;
}
html[data-dg-design="editorial"] .owner-stats-grid .stat > .layer-1:last-child {
  width: 100%;
  min-width: 0;
  display: grid;
  justify-items: center;
}
html[data-dg-design="editorial"] .owner-stats-grid .stat-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto;
}
html[data-dg-design="editorial"] .owner-stats-grid .stat-icon svg { width: 23px; height: 23px; }
html[data-dg-design="editorial"] .owner-stats-grid .stat-value {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem,3vw,1.85rem);
}
html[data-dg-design="editorial"] .owner-stats-grid .stat-label { margin-top: 3px; line-height: 1.45; }
html[data-dg-design="editorial"] .owner-all-link {
  min-width: 62px;
  justify-content: center;
}
html[data-dg-design="editorial"] .owner-sections-card .panel-nav-grid { gap: 9px; }
html[data-dg-design="editorial"] :is(.owner-sections-card .panel-nav-tile,.panel-nav a) > svg {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-dg-design="editorial"] .story-camera-action {
  width: auto;
  min-width: 0;
  min-height: 38px;
  padding: 7px 11px;
  font-size: .78rem;
}
html[data-dg-design="editorial"] .story-camera-action svg { width: 16px; height: 16px; }
html[data-dg-design="editorial"] .real-visitor-card {
  padding-block: clamp(22px,4vw,34px);
}
html[data-dg-design="editorial"] .real-visitor-card .grid {
  gap: 14px;
  margin-block: 18px;
}

/* 6) Structured feature cards, toggles, maps and preview ---------------- */
html[data-dg-design="editorial"] .form-feature-card {
  overflow: clip;
  border-color: color-mix(in oklab, var(--color-primary) 18%, var(--color-border));
}
html[data-dg-design="editorial"] .form-feature-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .form-feature-head > div { min-width: 0; }
html[data-dg-design="editorial"] .form-feature-head .card-title { margin: 0; }
html[data-dg-design="editorial"] .form-feature-head p {
  margin: 5px 0 0;
  color: var(--color-muted-foreground);
  font-size: .8rem;
  line-height: 1.7;
}
html[data-dg-design="editorial"] .form-feature-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in oklab, var(--color-primary) 10%, var(--color-card));
  color: var(--color-primary);
}
html[data-dg-design="editorial"] .form-feature-icon svg { width: 19px; height: 19px; }
html[data-dg-design="editorial"] .form-feature-body { padding-top: 14px; }
html[data-dg-design="editorial"] .form-feature-body > .switch {
  width: 100%;
  min-width: 0;
}
html[data-dg-design="editorial"] .form-feature-card :is(.switch,.switch-row) {
  line-height: 1.6;
}
html[data-dg-design="editorial"] .form-feature-card :is(.switch,.switch-row) .track { flex: none; }
html[data-dg-design="editorial"] .leaflet-control-zoom a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1 !important;
  text-indent: 0 !important;
}
html[data-dg-design="editorial"] .leaflet-control-zoom a::before { inset: 50% auto auto 50%; transform: translate(-50%,-50%); }
html[data-dg-design="editorial"] .product-preview-card { overflow: hidden; }
html[data-dg-design="editorial"] .product-preview-head {
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-lg);
  padding: 15px var(--space-lg) 13px;
  border-bottom: 1px solid var(--color-border);
  background: color-mix(in oklab, var(--color-primary) 5%, var(--color-card));
}
html[data-dg-design="editorial"] .product-preview-head .card-title { margin: 0; }
html[data-dg-design="editorial"] .product-preview-head p {
  margin: 5px 0 0;
  color: var(--color-muted-foreground);
  font-size: .78rem;
  font-weight: 600;
}

/* 7) Storefront actions, hours and overflow containment ----------------- */
html[data-dg-design="editorial"] .detail-action-card .detail-card-head {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .detail-action-card .detail-card-head .card-title { margin: 0; }
html[data-dg-design="editorial"] .detail-action-card .detail-card-head p {
  margin: 6px 0 0;
  color: var(--color-muted-foreground);
  font-size: .8rem;
  line-height: 1.65;
}
html[data-dg-design="editorial"] .detail-action-card .detail-card-body { padding-top: 16px; }
html[data-dg-design="editorial"] .hours-current-status {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid color-mix(in oklab, var(--color-primary) 20%, var(--color-border));
  border-radius: 11px;
  background: color-mix(in oklab, var(--color-primary) 5%, var(--color-card));
}
html[data-dg-design="editorial"] .hours-schedule {
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .hours-schedule-title {
  margin: 0 0 8px;
  color: var(--color-muted-foreground);
  font-size: .76rem;
  font-weight: 800;
}
html[data-dg-design="editorial"] .follow-btn {
  min-height: var(--tap);
  padding: 6px 10px;
  gap: 5px;
  font-size: .8125rem;
}
html[data-dg-design="editorial"] .follow-btn svg { width: 15px; height: 15px; }
html[data-dg-design="editorial"] .follow-btn small { font-size: .75rem; }
html[data-dg-design="editorial"] .storefront-form,
html[data-dg-design="editorial"] .storefront-form :is(.field,.input,.select,.textarea,label) {
  min-width: 0;
  max-width: 100%;
}
html[data-dg-design="editorial"] .storefront-form :is(.input,.select,.textarea) {
  width: 100%;
  box-sizing: border-box;
}
html[data-dg-design="editorial"] .qa-question-form .textarea {
  min-height: 96px;
  resize: vertical;
}
html[data-dg-design="editorial"] .review-form .textarea { min-height: 108px; }
html[data-dg-design="editorial"] .anti-spam-field {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html[data-dg-design="editorial"] .anti-spam-field > * { width: 1px !important; max-width: 1px !important; }

/* 8) Responsive ---------------------------------------------------------- */
@media (max-width: 760px) {
  html[data-dg-design="editorial"] .h-hero { z-index: 5; }
  html[data-dg-design="editorial"] .h-hero-search .live-sugg {
    position: absolute;
    width: calc(100vw - 28px);
    max-width: none;
    inset-inline-start: auto;
    inset-inline-end: 0;
  }
  html[data-dg-design="editorial"] .saved-search-bar {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    margin-block: 12px 14px;
  }
  html[data-dg-design="editorial"] .saved-search-list {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 9px;
  }
  html[data-dg-design="editorial"] .save-search-action {
    justify-self: stretch;
    width: 100%;
    justify-content: center;
  }
  html[data-dg-design="editorial"] .dir-meta {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 14px;
    padding-block: 9px;
  }
  html[data-dg-design="editorial"] .dir-meta > span:last-child { line-height: 1.6; }
  html[data-dg-design="editorial"] .pager { gap: 7px; }
  html[data-dg-design="editorial"] .pager-pages { order: 3; flex-basis: 100%; }
  html[data-dg-design="editorial"] .pager .pager-step { flex: 1 1 calc(50% - 4px); }
  html[data-dg-design="editorial"] .owner-businesses-head {
    align-items: stretch;
    flex-direction: column;
  }
  html[data-dg-design="editorial"] .owner-businesses-head .btn {
    width: 100%;
    margin: 4px 0 0;
    justify-content: center;
  }
  html[data-dg-design="editorial"] .owner-section-head { align-items: flex-start; }
  html[data-dg-design="editorial"] .owner-stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  html[data-dg-design="editorial"] .owner-stats-grid .stat {
    min-height: 132px;
    padding: 14px 8px;
  }
  html[data-dg-design="editorial"] .owner-recent-card { padding: 16px 14px; }
  html[data-dg-design="editorial"] .real-visitor-card { padding: 22px 15px; }
  html[data-dg-design="editorial"] .real-visitor-head { align-items: flex-start; }
  html[data-dg-design="editorial"] .form-feature-head { gap: 10px; }
  html[data-dg-design="editorial"] .product-preview-head {
    margin: -16px -14px 16px;
    padding-inline: 14px;
  }
  html[data-dg-design="editorial"] body[class*="page-route-login"] .auth-wrap { padding-block: 24px 32px; }
  html[data-dg-design="editorial"] body[class*="page-route-login"] .auth-card { padding: 22px 17px; }
  html[data-dg-design="editorial"] .otp-input { letter-spacing: .22em; padding-inline: 10px; }
  html[data-dg-design="editorial"] body[class*="page-route-login"] .site-footer {
    margin-top: 18px;
    padding-top: 28px !important;
  }
  html[data-dg-design="editorial"] body[class*="page-route-login"] .site-footer .footer-grid {
    gap: 16px;
    padding-bottom: 16px;
  }
  html[data-dg-design="editorial"] .storefront-form { width: 100%; overflow: clip; }
}

@media (max-width: 390px) {
  html[data-dg-design="editorial"] .owner-stats-grid .stat-value { font-size: 1.35rem; }
  html[data-dg-design="editorial"] .pager-pages :is(a,.pg-cur) { width: 42px; min-width: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-dg-design="editorial"] .h-hero-search,
  html[data-dg-design="editorial"] .saved-chip,
  html[data-dg-design="editorial"] .pager * { transition: none !important; }
}

/* ======================================================================
   Stable critical workflow corrections — rebuilt from the v394 baseline.
   ====================================================================== */

/* Footer contact/trust visibility. The official Enamad image keeps its
   original remote URL and verification link; only its containing layout is
   allowed to size naturally so the full mark is never clipped. */
html[data-dg-design="editorial"] .site-footer .social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
html[data-dg-design="editorial"] .site-footer .social-row .social-link {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 12px;
  background: #fff;
  color: #123b30;
  box-shadow: 0 6px 18px rgba(0,0,0,.22), inset 0 0 0 1px rgba(10,60,45,.05);
}
html[data-dg-design="editorial"] .site-footer .social-row .social-link:hover,
html[data-dg-design="editorial"] .site-footer .social-row .social-link:focus-visible {
  background: #fff;
  color: #071e18;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.28), 0 0 0 3px rgba(255,255,255,.2);
}
html[data-dg-design="editorial"] .site-footer .social-row .social-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}
html[data-dg-design="editorial"] .site-footer .social-row .social-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.15;
}
html[data-dg-design="editorial"] .site-footer .social-whatsapp { color: #087c49 !important; }
html[data-dg-design="editorial"] .site-footer .social-bale { color: #1769aa !important; }
html[data-dg-design="editorial"] .site-footer .social-email { color: #9a3412 !important; }
html[data-dg-design="editorial"] .site-footer .footer-contact-item {
  margin-block: 3px;
}
html[data-dg-design="editorial"] .site-footer .footer-contact-link {
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.075);
  color: #fff !important;
}
html[data-dg-design="editorial"] .site-footer .footer-contact-link > svg {
  width: 18px !important;
  height: 18px !important;
  color: #fff !important;
  stroke-width: 2.2;
}
html[data-dg-design="editorial"] .site-footer .footer-contact-link :is(span,a) {
  color: #fff;
  opacity: 1;
}
html[data-dg-design="editorial"] .site-footer .trust-row {
  justify-content: flex-start;
  padding-block: 14px 2px;
}
html[data-dg-design="editorial"] .trust-seal-link {
  position: relative;
  width: 142px;
  height: auto;
  min-height: 158px;
  display: grid;
  grid-template-rows: 128px auto;
  place-items: center;
  gap: 7px;
  overflow: visible;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 14px;
  background: #fff;
  color: #173a31 !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
}
html[data-dg-design="editorial"] .trust-seal-stage {
  position: relative;
  width: 126px;
  height: 128px;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 9px;
  background: #fff;
}
html[data-dg-design="editorial"] .trust-seal-img {
  position: relative;
  inset: auto;
  z-index: 2;
  display: block;
  width: auto;
  height: auto;
  max-width: 125px;
  max-height: 128px;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
}
html[data-dg-design="editorial"] .trust-seal-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #17463a;
  background: #fff;
  font-weight: 800;
}
html[data-dg-design="editorial"] .trust-seal-fallback > span {
  font-size: .75rem;
}
html[data-dg-design="editorial"] .trust-seal-link > small {
  color: #31584e;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}
html[data-dg-design="editorial"] .trust-seal-link.is-loaded .trust-seal-img { opacity: 1; visibility: visible; }
html[data-dg-design="editorial"] .trust-seal-link.is-loaded .trust-seal-fallback { display: none; }
html[data-dg-design="editorial"] .trust-seal-link.is-unavailable .trust-seal-img { visibility: hidden; }
html[data-dg-design="editorial"] .trust-seal-link.is-unavailable .trust-seal-fallback { display: grid; }

/* Homepage live results: bound to the actual search field, never to a logical
   edge that changes meaning under RTL. */
html[data-dg-design="editorial"] .h-hero-search .search-wrap { min-width: 0; }
html[data-dg-design="editorial"] .h-hero-search .live-sugg {
  box-sizing: border-box;
  inset-inline: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  transform: none;
}
html[data-dg-design="editorial"] .h-hero-search .live-sugg button {
  min-width: 0;
  overflow: hidden;
}
@media (max-width: 760px) {
  html[data-dg-design="editorial"] .h-hero-search {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0,1fr) 48px;
    align-items: stretch;
    gap: 6px;
    box-sizing: border-box;
  }
  html[data-dg-design="editorial"] .h-hero-search .search-wrap {
    width: 100%;
    min-width: 0;
  }
  html[data-dg-design="editorial"] .h-hero-search .live-sugg {
    position: absolute;
    inset-inline: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(360px,52dvh);
    overflow-x: hidden;
  }
  html[data-dg-design="editorial"] .h-hero-search .btn {
    width: 48px !important;
    min-width: 48px;
    padding: 0;
  }
}

/* Directory pager: the label is geometrically centred independently of the
   chevron. This fixes both text baseline and RTL asymmetry. */
html[data-dg-design="editorial"] .pager .pager-step {
  position: relative;
  display: grid !important;
  place-items: center;
  min-width: 96px;
  height: 46px;
  padding: 0 38px !important;
  text-align: center;
  line-height: 1.45;
}
html[data-dg-design="editorial"] .pager .pager-step > span {
  grid-area: 1 / 1;
  display: block;
  width: max-content;
  max-width: 100%;
  line-height: 1.45;
}
html[data-dg-design="editorial"] .pager .pager-step > svg {
  position: absolute;
  top: 50%;
  width: 17px;
  height: 17px;
  margin: 0;
  transform: translateY(-50%);
}
html[data-dg-design="editorial"] .pager .pager-step[rel="prev"] > svg { inset-inline-start: 13px; }
html[data-dg-design="editorial"] .pager .pager-step[rel="next"] > svg { inset-inline-end: 13px; }
@media (max-width: 760px) {
  html[data-dg-design="editorial"] .pager .pager-step {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
}

/* Story composer -------------------------------------------------------- */
html[data-dg-design="editorial"] .story-composer-card { overflow: visible; }
html[data-dg-design="editorial"] .story-composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
html[data-dg-design="editorial"] .story-composer-head h2 { margin-top: 7px; }
html[data-dg-design="editorial"] .story-composer-head p {
  max-width: 68ch;
  margin-top: 6px;
  color: var(--color-muted-foreground);
  font-size: .86rem;
}
html[data-dg-design="editorial"] .story-media-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: color-mix(in oklab, var(--color-primary) 4%, var(--color-card));
}
html[data-dg-design="editorial"] .story-media-pick > div:first-child { display: grid; gap: 4px; }
html[data-dg-design="editorial"] .story-media-pick small { color: var(--color-muted-foreground); }
html[data-dg-design="editorial"] .story-pick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-dg-design="editorial"] .story-compose-preview {
  display: grid;
  grid-template-columns: minmax(210px,.58fr) minmax(0,1.42fr);
  gap: 22px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: color-mix(in oklab, var(--color-background) 72%, var(--color-card));
}
html[data-dg-design="editorial"] .story-compose-preview[hidden] { display: none; }
html[data-dg-design="editorial"] .story-compose-phone {
  position: relative;
  width: min(100%,260px);
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
  border: 7px solid #18201d;
  border-radius: 28px;
  background: #0a0e0d;
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}
html[data-dg-design="editorial"] .story-compose-phone [data-story-media-preview],
html[data-dg-design="editorial"] .story-compose-phone :is(img,video) {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #090d0b;
}
html[data-dg-design="editorial"] .story-preview-label {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.64);
  color: #fff;
  font-size: .68rem;
  text-align: center;
}
html[data-dg-design="editorial"] .story-cover-editor { min-width: 0; display: grid; align-content: start; gap: 14px; }
html[data-dg-design="editorial"] .story-cover-editor > div:first-child p { margin-top: 4px; color: var(--color-muted-foreground); font-size: .8rem; }
html[data-dg-design="editorial"] .story-cover-canvas-wrap {
  position: relative;
  width: min(100%,220px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px dashed var(--color-border-strong);
  border-radius: 16px;
  background: var(--color-muted);
}
html[data-dg-design="editorial"] .story-cover-canvas-wrap::before {
  content: "جلد پیش‌نمایش";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--color-muted-foreground);
  font-size: .75rem;
}
html[data-dg-design="editorial"] .story-cover-canvas-wrap :is(canvas,img) {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
html[data-dg-design="editorial"] .story-cover-canvas-wrap canvas { visibility: hidden; }
html[data-dg-design="editorial"] .story-cover-canvas-wrap.has-frame canvas { visibility: visible; }
html[data-dg-design="editorial"] .story-frame-controls {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 9px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .story-frame-controls[hidden] { display: none; }
html[data-dg-design="editorial"] .story-frame-controls label { grid-column: 1 / -1; font-size: .8rem; font-weight: 800; }
html[data-dg-design="editorial"] .story-frame-controls input[type="range"] { width: 100%; accent-color: var(--color-primary); }
html[data-dg-design="editorial"] .story-cover-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
html[data-dg-design="editorial"] .story-cover-status { color: var(--color-muted-foreground); font-size: .78rem; }
html[data-dg-design="editorial"] .story-cover-status.is-ok { color: var(--color-success-text); font-weight: 800; }
html[data-dg-design="editorial"] .story-publish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .story-publish-row p { display: flex; align-items: center; gap: 8px; color: var(--color-muted-foreground); font-size: .78rem; }
html[data-dg-design="editorial"] .story-publish-row p svg { width: 18px; height: 18px; color: var(--color-primary); flex: none; }
html[data-dg-design="editorial"] .story-thumb-btn {
  width: 76px;
  height: 76px;
  overflow: hidden;
  background: var(--color-muted);
  border: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .story-thumb-btn > img { width: 100%; height: 100%; display: block; object-fit: cover; }
html[data-dg-design="editorial"] .story-thumb-empty { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--color-muted-foreground); }
html[data-dg-design="editorial"] .story-thumb-empty svg { width: 23px; height: 23px; }
html[data-dg-design="editorial"] .story-thumb-empty small { line-height: 1.2; font-size: .62rem; }
html[data-dg-design="editorial"] .story-row-copy { flex: 1 1 220px; min-width: 0; }
html[data-dg-design="editorial"] .story-row-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
html[data-dg-design="editorial"] .story-row-actions form { display: inline-flex; }

/* Story archive --------------------------------------------------------- */
html[data-dg-design="editorial"] .story-archive-page .main-content { overflow: clip; }
html[data-dg-design="editorial"] .story-archive-shell { padding-block: 20px 56px; }
html[data-dg-design="editorial"] .story-archive-back { margin-bottom: 12px; }
html[data-dg-design="editorial"] .story-archive-hero {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  margin-bottom: 28px;
  padding: clamp(20px,4vw,38px);
  border: 1px solid color-mix(in oklab, var(--color-primary) 22%, var(--color-border));
  border-radius: 24px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--color-primary) 12%, var(--color-card)), var(--color-card));
  box-shadow: var(--e2);
}
html[data-dg-design="editorial"] .story-archive-hero::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  inset-inline-end: -90px;
  top: -110px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--color-primary) 13%, transparent);
  pointer-events: none;
}
html[data-dg-design="editorial"] .story-archive-business {
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 5px solid var(--color-card);
  border-radius: 28px;
  background: var(--color-muted);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
}
html[data-dg-design="editorial"] .story-archive-business img { width: 100%; height: 100%; object-fit: cover; }
html[data-dg-design="editorial"] .story-archive-business > span svg { width: 54px; height: 54px; color: var(--color-primary); }
html[data-dg-design="editorial"] .story-archive-copy { position: relative; z-index: 1; min-width: 0; }
html[data-dg-design="editorial"] .story-archive-copy h1 { margin-top: 8px; font-size: clamp(1.65rem,4vw,2.55rem); }
html[data-dg-design="editorial"] .story-archive-copy > p { max-width: 62ch; margin-top: 7px; color: var(--color-muted-foreground); }
html[data-dg-design="editorial"] .story-archive-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
html[data-dg-design="editorial"] .story-archive-facts > span {
  min-width: 92px;
  display: grid;
  gap: 1px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: color-mix(in oklab, var(--color-background) 74%, var(--color-card));
}
html[data-dg-design="editorial"] .story-archive-facts strong { font-size: 1.18rem; }
html[data-dg-design="editorial"] .story-archive-facts small { color: var(--color-muted-foreground); font-size: .68rem; }
html[data-dg-design="editorial"] .story-archive-section { margin-top: 28px; }
html[data-dg-design="editorial"] .story-archive-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
html[data-dg-design="editorial"] .story-archive-section-head > div { display: flex; align-items: center; gap: 8px; }
html[data-dg-design="editorial"] .story-archive-section-head h2 { font-size: 1.18rem; }
html[data-dg-design="editorial"] .story-archive-section-head small { color: var(--color-muted-foreground); }
html[data-dg-design="editorial"] .story-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 5px color-mix(in oklab,var(--color-success) 15%,transparent); }
html[data-dg-design="editorial"] .arch-grid { grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 14px; }
html[data-dg-design="editorial"] .arch-card {
  position: relative;
  gap: 0;
  border-radius: 17px;
  text-align: start;
  box-shadow: 0 8px 24px rgba(10,40,31,.08);
}
html[data-dg-design="editorial"] .arch-card:focus-visible { outline: 3px solid color-mix(in oklab,var(--color-primary) 35%,transparent); outline-offset: 3px; }
html[data-dg-design="editorial"] .arch-thumb { isolation: isolate; aspect-ratio: 9 / 13; overflow: hidden; }
html[data-dg-design="editorial"] .arch-thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; z-index: 2; background: linear-gradient(transparent,rgba(0,0,0,.56)); pointer-events: none; }
html[data-dg-design="editorial"] .arch-thumb > :is(img,video) { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; background: #101613; }
html[data-dg-design="editorial"] .arch-thumb-fallback { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; align-content: center; gap: 5px; color: var(--color-muted-foreground); }
html[data-dg-design="editorial"] .arch-thumb-fallback svg { width: 32px; height: 32px; }
html[data-dg-design="editorial"] .arch-kind { position: absolute; z-index: 3; inset-inline-start: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; background: rgba(0,0,0,.68); color: #fff; font-size: .66rem; }
html[data-dg-design="editorial"] .arch-kind svg { width: 13px; height: 13px; }
html[data-dg-design="editorial"] .arch-thumb .story-vid-tag { z-index: 4; width: 42px; height: 42px; inset: 50% auto auto 50%; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(0,0,0,.62); }
html[data-dg-design="editorial"] .arch-meta { gap: 8px; padding: 12px; }
html[data-dg-design="editorial"] .arch-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
html[data-dg-design="editorial"] .arch-meta-top strong { min-width: 0; font-size: .7rem; }
html[data-dg-design="editorial"] .arch-cap { min-height: 2.8em; color: var(--color-foreground); font-weight: 700; line-height: 1.6; }
html[data-dg-design="editorial"] .arch-play { display: inline-flex; align-items: center; gap: 5px; color: var(--color-primary-text); font-size: .72rem; font-weight: 800; }
html[data-dg-design="editorial"] .arch-play svg { width: 15px; height: 15px; }
html[data-dg-design="editorial"] .arch-thumb.is-thumb-missing > img { display: none; }

/* Advertising 30-day details: symmetric cards at every width ------------ */
html[data-dg-design="editorial"] .dgcmp-results-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
html[data-dg-design="editorial"] .dgcmp-kpi-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
html[data-dg-design="editorial"] .dgcmp-kpi-grid .stat { min-width: 0; min-height: 108px; padding: 14px; overflow: hidden; }
html[data-dg-design="editorial"] .dgcmp-kpi-grid .stat-value { overflow-wrap: anywhere; }
html[data-dg-design="editorial"] .dgcmp-daily { padding: 16px; border: 1px solid var(--color-border); border-radius: 14px; background: color-mix(in oklab,var(--color-background) 72%,var(--color-card)); }
html[data-dg-design="editorial"] .dgcmp-daily > h3 { margin-bottom: 12px; font-size: .95rem; }
html[data-dg-design="editorial"] .dgcmp-report-list { display: grid; gap: 8px; }
html[data-dg-design="editorial"] .dgcmp-30day-details { margin-top: 18px; border: 1px solid var(--color-border); border-radius: 15px; background: var(--color-card); overflow: clip; }
html[data-dg-design="editorial"] .dgcmp-30day-details > summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; cursor: pointer; list-style: none; }
html[data-dg-design="editorial"] .dgcmp-30day-details > summary::-webkit-details-marker { display: none; }
html[data-dg-design="editorial"] .dgcmp-30day-details > summary > span { display: flex; align-items: center; gap: 10px; }
html[data-dg-design="editorial"] .dgcmp-30day-details > summary > span > span { display: grid; gap: 2px; }
html[data-dg-design="editorial"] .dgcmp-30day-details > summary small { color: var(--color-muted-foreground); font-size: .7rem; }
html[data-dg-design="editorial"] .dgcmp-30day-details > summary > svg { transition: transform .2s ease; }
html[data-dg-design="editorial"] .dgcmp-30day-details[open] > summary > svg { transform: rotate(180deg); }
html[data-dg-design="editorial"] .dgcmp-report-splits { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 0 15px 16px; }
html[data-dg-design="editorial"] .dgcmp-breakdown { min-width: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: 13px; }
html[data-dg-design="editorial"] .dgcmp-breakdown > h3 { padding: 12px 13px; font-size: .9rem; background: color-mix(in oklab,var(--color-primary) 5%,var(--color-card)); border-bottom: 1px solid var(--color-border); }
html[data-dg-design="editorial"] .dgcmp-breakdown-head,
html[data-dg-design="editorial"] .dgcmp-breakdown-row { display: grid; grid-template-columns: minmax(145px,1.3fr) repeat(4,minmax(94px,.7fr)); align-items: center; gap: 8px; }
html[data-dg-design="editorial"] .dgcmp-breakdown-head { padding: 9px 12px; color: var(--color-muted-foreground); font-size: .69rem; font-weight: 800; border-bottom: 1px solid var(--color-border); }
html[data-dg-design="editorial"] .dgcmp-breakdown-row { padding: 10px 12px; border-bottom: 1px solid var(--color-border); }
html[data-dg-design="editorial"] .dgcmp-breakdown-row:last-child { border-bottom: 0; }
html[data-dg-design="editorial"] .dgcmp-breakdown-row h4 { min-width: 0; font-size: .8rem; overflow-wrap: anywhere; }
html[data-dg-design="editorial"] .dgcmp-breakdown-row dl { display: contents; }
html[data-dg-design="editorial"] .dgcmp-breakdown-row dl > div { min-width: 0; }
html[data-dg-design="editorial"] .dgcmp-breakdown-row dt { display: none; }
html[data-dg-design="editorial"] .dgcmp-breakdown-row dd { font-size: .76rem; font-weight: 800; }
html[data-dg-design="editorial"] .dgcmp-breakdown-empty { padding: 16px; color: var(--color-muted-foreground); }
html[data-dg-design="editorial"] .dgcmp-privacy-note { display: flex; align-items: flex-start; gap: 7px; }
html[data-dg-design="editorial"] .dgcmp-privacy-note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }

/* Ownership claim workflow --------------------------------------------- */
html[data-dg-design="editorial"] .claim-results { padding: 0; overflow: hidden; }
html[data-dg-design="editorial"] .claim-results > h2 { padding: 17px 18px 0; }
html[data-dg-design="editorial"] .claim-result-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--color-border); }
html[data-dg-design="editorial"] .claim-result-row:first-of-type { border-top: 0; }
html[data-dg-design="editorial"] .claim-result-row > div { min-width: 0; }
html[data-dg-design="editorial"] .claim-workflow { display: grid; gap: 18px; margin-bottom: 22px; }
html[data-dg-design="editorial"] .claim-workflow-head,
html[data-dg-design="editorial"] .claim-study,
html[data-dg-design="editorial"] .claim-questionnaire { padding: clamp(17px,3vw,26px); border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-card); box-shadow: var(--e1); }
html[data-dg-design="editorial"] .claim-workflow-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; align-items: center; border-color: color-mix(in oklab,var(--color-primary) 28%,var(--color-border)); }
html[data-dg-design="editorial"] .claim-workflow-head h2 { margin-top: 3px; font-size: 1.35rem; }
html[data-dg-design="editorial"] .claim-workflow-head p { margin-top: 3px; color: var(--color-muted-foreground); font-size: .78rem; }
html[data-dg-design="editorial"] .claim-step-no { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary); font-weight: 900; }
html[data-dg-design="editorial"] .claim-step-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
html[data-dg-design="editorial"] .claim-step-title h3 { font-size: 1.05rem; }
html[data-dg-design="editorial"] .claim-step-title p { margin-top: 3px; color: var(--color-muted-foreground); font-size: .78rem; }
html[data-dg-design="editorial"] .claim-study-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
html[data-dg-design="editorial"] .claim-study-grid article { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 14px; border: 1px solid var(--color-border); border-radius: 13px; background: color-mix(in oklab,var(--color-primary) 3%,var(--color-card)); }
html[data-dg-design="editorial"] .claim-study-grid article > svg { width: 23px; height: 23px; color: var(--color-primary); }
html[data-dg-design="editorial"] .claim-study-grid p { margin-top: 4px; color: var(--color-muted-foreground); font-size: .77rem; line-height: 1.75; }
html[data-dg-design="editorial"] .claim-fieldset { min-width: 0; margin: 0 0 16px; padding: 17px; border: 1px solid var(--color-border); border-radius: 14px; }
html[data-dg-design="editorial"] .claim-fieldset legend { padding-inline: 8px; font-weight: 900; color: var(--color-foreground); }
html[data-dg-design="editorial"] .claim-account-phone { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 9px 12px; border-radius: 9px; background: var(--color-muted); font-size: .78rem; }
html[data-dg-design="editorial"] .claim-account-phone svg { width: 17px; height: 17px; }
html[data-dg-design="editorial"] .claim-verify-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
html[data-dg-design="editorial"] .claim-verify-grid label,
html[data-dg-design="editorial"] .claim-declarations label { position: relative; min-width: 0; }
html[data-dg-design="editorial"] .claim-verify-grid input,
html[data-dg-design="editorial"] .claim-declarations input { position: absolute; opacity: 0; pointer-events: none; }
html[data-dg-design="editorial"] .claim-verify-grid label > span,
html[data-dg-design="editorial"] .claim-declarations label > span { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 11px; background: var(--color-card); cursor: pointer; font-size: .78rem; }
html[data-dg-design="editorial"] .claim-verify-grid label > span::before,
html[data-dg-design="editorial"] .claim-declarations label > span::before { content: ""; width: 18px; height: 18px; flex: none; border: 2px solid var(--color-border-strong); border-radius: 5px; background: var(--color-background); }
html[data-dg-design="editorial"] .claim-verify-grid input:checked + span,
html[data-dg-design="editorial"] .claim-declarations input:checked + span { border-color: var(--color-primary); background: color-mix(in oklab,var(--color-primary) 8%,var(--color-card)); }
html[data-dg-design="editorial"] .claim-verify-grid input:checked + span::before,
html[data-dg-design="editorial"] .claim-declarations input:checked + span::before { border-color: var(--color-primary); background: var(--color-primary); box-shadow: inset 0 0 0 3px var(--color-card); }
html[data-dg-design="editorial"] .claim-verify-grid input:focus-visible + span,
html[data-dg-design="editorial"] .claim-declarations input:focus-visible + span { outline: 3px solid color-mix(in oklab,var(--color-primary) 25%,transparent); }
html[data-dg-design="editorial"] .claim-declarations { display: grid; gap: 8px; }
html[data-dg-design="editorial"] .claim-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; border-radius: 13px; background: color-mix(in oklab,var(--color-primary) 8%,var(--color-card)); border: 1px solid color-mix(in oklab,var(--color-primary) 24%,var(--color-border)); }
html[data-dg-design="editorial"] .claim-submit-bar > div { display: flex; align-items: center; gap: 10px; }
html[data-dg-design="editorial"] .claim-submit-bar > div > span { display: grid; gap: 2px; }
html[data-dg-design="editorial"] .claim-submit-bar small { color: var(--color-muted-foreground); }
html[data-dg-design="editorial"] .claim-history-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--color-border); }
html[data-dg-design="editorial"] .claim-history-item:first-of-type { border-top: 0; }
html[data-dg-design="editorial"] .claim-history-item > div { display: grid; gap: 2px; }
html[data-dg-design="editorial"] .claim-history-item small { color: var(--color-muted-foreground); font-size: .7rem; }

/* Private manager review cards; no claimant data is exposed publicly. */
html[data-dg-design="editorial"] .claim-review-list { display: grid; gap: 13px; }
html[data-dg-design="editorial"] .claim-review-card { overflow: hidden; border: 1px solid var(--color-border); border-radius: 15px; background: var(--color-card); box-shadow: var(--e1); }
html[data-dg-design="editorial"] .claim-review-card > header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 14px; }
html[data-dg-design="editorial"] .claim-review-card > header p { margin-top: 3px; color: var(--color-muted-foreground); font-size: .72rem; }
html[data-dg-design="editorial"] .claim-review-card details { border-top: 1px solid var(--color-border); }
html[data-dg-design="editorial"] .claim-review-card summary { min-height: 50px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; background: color-mix(in oklab,var(--color-primary) 3%,var(--color-card)); }
html[data-dg-design="editorial"] .claim-review-card summary::-webkit-details-marker { display: none; }
html[data-dg-design="editorial"] .claim-review-card summary svg:last-child { margin-inline-start: auto; }
html[data-dg-design="editorial"] .claim-review-body { display: grid; gap: 12px; padding: 14px; }
html[data-dg-design="editorial"] .claim-review-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
html[data-dg-design="editorial"] .claim-review-grid > div { min-width: 0; display: grid; gap: 3px; padding: 10px; border: 1px solid var(--color-border); border-radius: 9px; }
html[data-dg-design="editorial"] .claim-review-grid > .is-wide { grid-column: 1 / -1; }
html[data-dg-design="editorial"] .claim-review-grid span { color: var(--color-muted-foreground); font-size: .68rem; }
html[data-dg-design="editorial"] .claim-review-grid strong { font-size: .78rem; overflow-wrap: anywhere; }
html[data-dg-design="editorial"] .claim-review-copy { padding: 11px; border-radius: 9px; background: var(--color-muted); }
html[data-dg-design="editorial"] .claim-review-copy p { margin-top: 5px; white-space: pre-wrap; line-height: 1.8; }
html[data-dg-design="editorial"] .claim-review-methods { display: grid; gap: 7px; }
html[data-dg-design="editorial"] .claim-review-methods > div { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-dg-design="editorial"] .claim-review-methods span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 999px; background: color-mix(in oklab,var(--color-success) 10%,var(--color-card)); font-size: .72rem; }
html[data-dg-design="editorial"] .claim-review-methods svg { width: 14px; height: 14px; }
html[data-dg-design="editorial"] .claim-review-acks { display: flex; align-items: center; gap: 7px; color: var(--color-success-text); font-size: .75rem; font-weight: 800; }
html[data-dg-design="editorial"] .claim-review-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 14px; }

@media (max-width: 760px) {
  html[data-dg-design="editorial"] .story-composer-head,
  html[data-dg-design="editorial"] .story-media-pick,
  html[data-dg-design="editorial"] .story-publish-row,
  html[data-dg-design="editorial"] .claim-submit-bar { align-items: stretch; flex-direction: column; }
  html[data-dg-design="editorial"] .story-pick-actions .btn,
  html[data-dg-design="editorial"] .story-publish-row .btn,
  html[data-dg-design="editorial"] .claim-submit-bar .btn { width: 100%; justify-content: center; }
  html[data-dg-design="editorial"] .story-compose-preview { grid-template-columns: 1fr; padding: 13px; }
  html[data-dg-design="editorial"] .story-compose-phone { width: min(100%,230px); }
  html[data-dg-design="editorial"] .story-cover-canvas-wrap { width: min(100%,190px); }
  html[data-dg-design="editorial"] .story-frame-controls { grid-template-columns: 1fr; }
  html[data-dg-design="editorial"] .story-frame-controls .btn { width: 100%; justify-content: center; }
  html[data-dg-design="editorial"] .story-row-main { align-items: flex-start; }
  html[data-dg-design="editorial"] .story-row-actions { width: 100%; }
  html[data-dg-design="editorial"] .story-row-actions > :is(button,form) { flex: 1 1 calc(50% - 4px); }
  html[data-dg-design="editorial"] .story-row-actions .btn { width: 100%; justify-content: center; }
  html[data-dg-design="editorial"] .story-archive-shell { padding-block: 12px 38px; }
  html[data-dg-design="editorial"] .story-archive-hero { grid-template-columns: 86px minmax(0,1fr); gap: 14px; padding: 17px; border-radius: 18px; }
  html[data-dg-design="editorial"] .story-archive-business { width: 86px; border-width: 3px; border-radius: 18px; }
  html[data-dg-design="editorial"] .story-archive-copy h1 { font-size: 1.35rem; }
  html[data-dg-design="editorial"] .story-archive-copy > p { grid-column: 1 / -1; }
  html[data-dg-design="editorial"] .story-archive-facts { grid-column: 1 / -1; gap: 6px; }
  html[data-dg-design="editorial"] .story-archive-facts > span { flex: 1 1 70px; min-width: 0; padding: 7px 8px; }
  html[data-dg-design="editorial"] .arch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  html[data-dg-design="editorial"] .arch-meta { padding: 9px; }
  html[data-dg-design="editorial"] .arch-meta-top { align-items: flex-start; flex-direction: column; gap: 4px; }
  html[data-dg-design="editorial"] .arch-cap { font-size: .75rem; }
  html[data-dg-design="editorial"] .dgcmp-results-card { padding-inline: 12px; }
  html[data-dg-design="editorial"] .dgcmp-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  html[data-dg-design="editorial"] .dgcmp-kpi-grid .stat { min-height: 116px; padding: 11px 8px; flex-direction: column; justify-content: center; text-align: center; }
  html[data-dg-design="editorial"] .dgcmp-kpi-grid .stat-icon { width: 38px; height: 38px; }
  html[data-dg-design="editorial"] .dgcmp-kpi-grid .stat-value { font-size: 1.25rem; }
  html[data-dg-design="editorial"] .dgcmp-report-row { grid-template-columns: 72px minmax(0,1fr); gap: 7px; padding-block: 5px; }
  html[data-dg-design="editorial"] .dgcmp-report-row strong { grid-column: 1 / -1; padding-inline-start: 79px; font-size: .7rem; }
  html[data-dg-design="editorial"] .dgcmp-30day-details > summary { min-height: 68px; padding: 11px; }
  html[data-dg-design="editorial"] .dgcmp-report-splits { padding: 0 9px 11px; gap: 12px; }
  html[data-dg-design="editorial"] .dgcmp-breakdown-head { display: none; }
  html[data-dg-design="editorial"] .dgcmp-breakdown-list { display: grid; gap: 8px; padding: 8px; }
  html[data-dg-design="editorial"] .dgcmp-breakdown-row { display: block; padding: 10px; border: 1px solid var(--color-border); border-radius: 10px; background: color-mix(in oklab,var(--color-background) 72%,var(--color-card)); }
  html[data-dg-design="editorial"] .dgcmp-breakdown-row h4 { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--color-border); }
  html[data-dg-design="editorial"] .dgcmp-breakdown-row dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  html[data-dg-design="editorial"] .dgcmp-breakdown-row dl > div { display: grid; gap: 2px; min-height: 58px; padding: 7px; border-radius: 8px; background: var(--color-card); }
  html[data-dg-design="editorial"] .dgcmp-breakdown-row dt { display: block; color: var(--color-muted-foreground); font-size: .62rem; }
  html[data-dg-design="editorial"] .dgcmp-breakdown-row dd { font-size: .82rem; }
  html[data-dg-design="editorial"] .claim-result-row { align-items: stretch; flex-direction: column; }
  html[data-dg-design="editorial"] .claim-result-row .btn { width: 100%; justify-content: center; }
  html[data-dg-design="editorial"] .claim-workflow-head { grid-template-columns: auto minmax(0,1fr); }
  html[data-dg-design="editorial"] .claim-workflow-head > .btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
  html[data-dg-design="editorial"] .claim-study-grid,
  html[data-dg-design="editorial"] .claim-verify-grid { grid-template-columns: 1fr; }
  html[data-dg-design="editorial"] .claim-fieldset { padding: 13px; }
  html[data-dg-design="editorial"] .claim-history-item { grid-template-columns: minmax(0,1fr) auto; }
  html[data-dg-design="editorial"] .claim-history-item > small:last-child { grid-column: 1 / -1; }
  html[data-dg-design="editorial"] .claim-review-grid { grid-template-columns: 1fr; }
  html[data-dg-design="editorial"] .claim-review-card > header { grid-template-columns: auto minmax(0,1fr); }
  html[data-dg-design="editorial"] .claim-review-card > header > .badge { grid-column: 1 / -1; justify-self: start; }
  html[data-dg-design="editorial"] .claim-review-actions > * { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 380px) {
  html[data-dg-design="editorial"] .story-archive-hero { grid-template-columns: 70px minmax(0,1fr); padding: 13px; }
  html[data-dg-design="editorial"] .story-archive-business { width: 70px; }
  html[data-dg-design="editorial"] .arch-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  html[data-dg-design="editorial"] .dgcmp-kpi-grid { gap: 6px; }
}

/* Late network state: keep a legible trust fallback visible while the official
   remote Enamad response is pending; replace it only after a complete image. */
html[data-dg-design="editorial"] .trust-seal-img {
  opacity: 0;
  visibility: hidden;
}
html[data-dg-design="editorial"] .trust-seal-fallback { display: grid; }
html[data-dg-design="editorial"] .trust-seal-link.is-loaded .trust-seal-img {
  opacity: 1;
  visibility: visible;
}
html[data-dg-design="editorial"] .trust-seal-link.is-loaded .trust-seal-fallback { display: none; }
@media (max-width: 760px) {
  html[data-dg-design="editorial"] .h-hero .h-hero-search .btn {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    padding-inline: 0 !important;
  }
}
@media (max-width: 760px) {
  html[data-dg-design="editorial"] .dgcmp-lifecycle {
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 3px;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }
  html[data-dg-design="editorial"] .dgcmp-life-step { min-width: 0; }
  html[data-dg-design="editorial"] .dgcmp-life-step > span { width: 28px; height: 28px; }
  html[data-dg-design="editorial"] .dgcmp-life-step > small {
    width: 100%;
    max-width: 100%;
    font-size: .6rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
}
/* v444 map preview states — compact first, expandable without leaving /map. */
[data-map-selected] .ms-extra[hidden] { display: none !important; }
.ms-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ms-preview-actions .btn { min-height: 40px; }
.map-stage.has-expanded-card .map-selected {
  max-width: min(390px, calc(100% - 24px));
}
.map-stage.has-expanded-card .ms-extra {
  display: grid;
  gap: 10px;
}
@media (max-width: 1024px) {
  .map-stage.has-expanded-card .map-selected {
    max-height: min(62%, 330px);
    overflow: auto;
    overscroll-behavior: contain;
    padding-bottom: 12px;
  }
  .map-stage.has-expanded-card .map-legend {
    bottom: calc(min(62%, 330px) + 14px);
  }
}
@media (max-width: 420px) {
  .ms-preview-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ms-preview-actions .btn { min-width: 0; padding-inline: 6px; font-size: var(--fs-xs); }
}
@media (prefers-reduced-motion: reduce) {
  .map-stage.has-expanded-card .map-selected { scroll-behavior: auto; }
}

/* v444 map category popup: the editorial card primitive clips overflow, which
   made desktop category results visibly overlap—but not receive taps above—the
   adjacent Leaflet canvas. Keep this one search card open for its popover. */
html[data-dg-design="editorial"] .map-search.card { overflow: visible; }
/* ===== END v394-ui-ux.css ===== */

/* ===== BEGIN v446-rtl-media-type.css sha256:878b9efef0c35a5d ===== */
/* =============================================================================
   v446 — RTL media verification, category thumbnails, stable Persian type
   DG-06 … DG-09.  This late release layer is intentionally token-based so
   light/night share geometry and only semantic colours change.
   ============================================================================= */

:root {
  /* One source of truth for category media; no image may grow a flex row. */
  --catgroup-photo-size: 3.25rem;
  --catcard-thumb-size: 2.5rem;
  --cat-media-radius: var(--radius-md);

  /* Persian typography contract: weights live in the self-hosted variable font. */
  --font-persian: "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
  --type-body: var(--fs-base);
  --type-label: var(--fs-sm);
  --type-caption: var(--fs-xs);
  --type-title: var(--fs-lg);
  --type-heading: var(--fs-2xl);
  --lh-persian: 1.72;
  --lh-label: 1.45;

  /* Deliberately semantic: both themes supply the referenced values. */
  --verified-chip-bg: color-mix(in oklab, var(--color-card) 94%, transparent);
  --verified-chip-fg: var(--color-info-text);
  --verified-chip-outline: color-mix(in oklab, var(--color-info-text) 56%, var(--color-card));
}

html, body { font-family: var(--font-persian); }
body { font-size: var(--type-body); line-height: var(--lh-persian); }
:where(button, input, select, textarea) { font: inherit; }
:where(h1, h2, h3) { line-height: var(--lh-snug); text-wrap: balance; }
:where(label, .badge, .chip, .btn, .field-hint) { line-height: var(--lh-label); }
.nums { font-variant-numeric: tabular-nums; }

/* DG-06 — the confirmation mark is a non-interactive part of the actual media.
   Logical inset-start is the image's right corner in the Persian RTL document. */
.biz-card .card-media > .media-corner-badge,
.biz-hero-photo-frame > .media-corner-badge {
  position: absolute;
  inset-block-start: clamp(6px, 1.1vw, 10px);
  inset-inline-start: clamp(6px, 1.1vw, 10px);
  inset-inline-end: auto;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-inline-size: calc(100% - 16px);
  min-block-size: 25px;
  padding: 3px 8px;
  border: 1px solid var(--verified-chip-outline);
  border-radius: var(--radius-pill);
  outline: 1px solid color-mix(in oklab, var(--color-card) 70%, transparent);
  outline-offset: -2px;
  background: var(--verified-chip-bg);
  color: var(--verified-chip-fg);
  box-shadow: 0 2px 10px color-mix(in oklab, var(--color-foreground) 24%, transparent);
  font-size: var(--type-caption);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.biz-card .card-media > .media-corner-badge .badge { all: unset; display: contents; }
.biz-card .card-media > .media-corner-badge svg,
.biz-hero-photo-frame > .media-corner-badge svg { inline-size: 14px; block-size: 14px; flex: 0 0 14px; }

/* The frame stays a direct grid child when .biz-hero-media is display:contents
   on desktop, and remains the containing block when mobile turns it into a grid. */
.biz-hero-photo-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: color-mix(in oklab, var(--color-muted) 82%, var(--color-card));
}
.biz-hero-photo-frame > img,
.biz-hero-photo-frame > svg {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  object-position: center;
}
.biz-hero-photo-frame > svg { max-inline-size: 64%; max-block-size: 64%; }

/* DG-07 — children are bounded before long Persian labels may flex. */
.catgroup-photo,
.catcard-thumb {
  flex: 0 0 var(--catgroup-photo-size);
  inline-size: var(--catgroup-photo-size);
  block-size: var(--catgroup-photo-size);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--cat-media-radius);
  isolation: isolate;
}
.catcard-thumb {
  flex-basis: var(--catcard-thumb-size);
  inline-size: var(--catcard-thumb-size);
  block-size: var(--catcard-thumb-size);
}
.catgroup-photo :is(img, svg),
.catcard-thumb :is(img, svg) {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform var(--dur-2) var(--ease-out);
}
.catgroup-photo svg,
.catcard-thumb svg { padding: 18%; object-fit: contain; }
.catcard {
  display: flex;
  align-items: center;
  min-inline-size: 0;
  gap: clamp(7px, 1vw, 10px);
  overflow: hidden;
}
.catcard-name {
  flex: 1 1 auto;
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}
.catcard-n {
  flex: 0 0 auto;
  min-inline-size: max-content;
  white-space: nowrap;
  font-size: var(--type-caption);
}
.catcard:hover .catcard-thumb img,
.catgroup-head:hover .catgroup-photo img { transform: scale(1.045); }

/* DG-08 — no dark-only inverse rules; controls retain equivalent metrics. */
:root[data-theme="dark"] .biz-hero-photo-frame,
:root[data-theme="night"] .biz-hero-photo-frame,
:root[data-theme="luxury"] .biz-hero-photo-frame {
  background: color-mix(in oklab, var(--color-muted) 72%, var(--color-card));
}
:root[data-theme="dark"] .catcard-n,
:root[data-theme="night"] .catcard-n,
:root[data-theme="luxury"] .catcard-n {
  border-color: color-mix(in oklab, var(--color-border) 84%, transparent);
}

@media (max-width: 640px) {
  :root { --catgroup-photo-size: 2.75rem; --catcard-thumb-size: 2.125rem; }
  .catgroup-head { min-inline-size: 0; }
  .catgroup-meta { min-inline-size: 0; }
  .catgroup-title, .catgroup-blurb { overflow: hidden; text-overflow: ellipsis; }
  .catgroup-title { white-space: nowrap; }
  .catgroup-head > .badge { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 360px) {
  .catcard-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .catgroup-photo :is(img, svg),
  .catcard-thumb :is(img, svg),
  .catcard:hover .catcard-thumb img,
  .catgroup-head:hover .catgroup-photo img {
    transition: none !important;
    transform: none !important;
  }
}
/* ===== END v446-rtl-media-type.css ===== */
