    /* LiveSpace product additions.
       Loaded after the four original stylesheets, which stay byte-identical. Every rule
       here is a scoped change requested for this version; it reuses the original tokens. */

    /* ---------- home ---------- */

    /* hanging lights: same lamps, sway and glow, slightly dimmer light */
    .hero .lamp .cone {
      background: linear-gradient(rgba(255, 207, 113, .48), rgba(255, 224, 160, 0))
    }

    /* the four goals sit directly under the search */
    .arch>.hero-purp {
      position: relative;
      z-index: 3;
      width: min(620px, 100%);
      margin-top: clamp(8px, 1.4vh, 12px)
    }

    /* the map is a still preview: no pins, no pulses; it opens the real map */
    .hero-map.ex-map {
      cursor: pointer
    }

    .map-preview .you {
      animation: none
    }

    .hero-map .hm-open {
      bottom: 18px;
      width: 44px;
      height: 44px;
      padding: 0;
      justify-content: center;
      box-shadow: var(--sh)
    }

    .hero-map .hm-open svg {
      width: 20px;
      height: 20px
    }

    /* open / closed: a lamp that glows yellow when open, plain grey when closed */
    .olamp {
      position: relative;
      display: inline-grid;
      place-items: center;
      flex: none;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      vertical-align: middle
    }

    .olamp svg {
      position: relative;
      width: 14px;
      height: 17px
    }

    .olamp.on {
      color: #FFB21A
    }

    .olamp.on::before {
      content: "";
      position: absolute;
      inset: -2px;
      border-radius: 50%;
      background: radial-gradient(circle at 50% 62%, rgba(255, 207, 113, .85) 0, rgba(255, 207, 113, .35) 42%, rgba(255, 207, 113, 0) 70%);
      animation: olampGlow 2.6s ease-in-out infinite
    }

    .olamp.on svg {
      filter: drop-shadow(0 0 3px rgba(255, 178, 26, .85))
    }

    .olamp.on svg path:last-child {
      opacity: .8
    }

    .olamp.off {
      color: #B8B1A5
    }

    .olamp.off svg path:last-child {
      display: none
    }

    @keyframes olampGlow {

      0%,
      100% {
        opacity: .65;
        transform: scale(.92)
      }

      50% {
        opacity: 1;
        transform: scale(1.06)
      }
    }

    .cd-pills .olamp {
      background: rgba(255, 249, 236, .92);
      box-shadow: 0 0 0 1px var(--line2)
    }

    /* café cards: three measured indicators (seats, noise, Wi-Fi) fill the row */
    .ccard .tiles {
      grid-template-columns: repeat(3, 1fr)
    }

    /* about: three measured indicators (sockets are not measured) */
    .g4.g3 {
      grid-template-columns: repeat(3, 1fr)
    }

    @media (max-width:820px) {
      .g4.g3 {
        grid-template-columns: 1fr
      }
    }

    @media (min-width:1000px) {
      .arch>.hero-purp {
        margin-top: 12px
      }

      .arch::before {
        background: radial-gradient(ellipse 74% 58% at 50% 18%, rgba(255, 249, 236, .96) 44%, rgba(255, 249, 236, .75) 64%, rgba(255, 249, 236, 0) 84%)
      }

      .hero-map .hm-open {
        right: 24px;
        bottom: 24px
      }
    }

    /* ---------- real map ---------- */

    .map-live .map-land {
      fill: #DCE6C4
    }

    /* ---------- café detail: the whole current state fits the first screen ----------
       The visualization gets every pixel of height the screen allows (800×520 world),
       the three indicators sit in a narrow compact column next to it, and the day
       forecast runs the full width underneath (first thing after scrolling). */

    @media (min-width:821px) {
      .wrap.cd {
        max-width: 1600px;
        padding-block: 8px 0;
        --side-w: 292px;
        /* height used above and below the plan: roof, card header, paddings */
        --plan-w: max(520px, calc((100dvh - var(--hd) - 216px) * 1.538))
      }

      .cd-head.roof2 {
        min-height: 104px;
        margin: 0 0 8px
      }

      .roof2 .cd-title {
        padding: 22px 120px 4px
      }

      .roof2 .cd-title h1 {
        font-size: clamp(24px, 2.2vw, 34px)
      }

      .roof2 .mood-line {
        margin-top: 0
      }

      .roof2 .cd-pills {
        margin-top: 4px
      }

      .cd .cd-grid {
        grid-template-columns: minmax(0, calc(var(--plan-w) + 26px)) var(--side-w);
        grid-template-areas: "plan side" "pred pred";
        justify-content: center;
        gap: 12px
      }

      .cd .plan-card {
        padding: 10px 12px 12px
      }

      .cd .plan-card .card-h {
        margin-bottom: 8px
      }

      .cd .plan-outer {
        max-width: var(--plan-w)
      }

      /* three compact indicators */
      .cd .side-stack {
        gap: 8px
      }

      .cd .cd-fresh {
        padding: 6px 10px;
        font-size: 11px
      }

      .cd .mcard {
        padding: 10px 12px
      }

      .cd .mcard h3 {
        font-size: 11px;
        margin-bottom: 4px
      }

      .cd .sc-row {
        flex-wrap: wrap;
        row-gap: 2px
      }

      .cd .seatcard .big-pct b {
        font-size: 32px
      }

      .cd .seatcard .big-pct span {
        font-size: 13px
      }

      .cd .sc-row small {
        font-size: 11px
      }

      .cd .chairs {
        gap: 2px;
        margin-top: 6px
      }

      .cd .chairs i {
        width: 11px;
        height: 11px;
        margin-bottom: 0
      }

      .cd .ssbig {
        gap: 10px
      }

      .cd .ssbig .art {
        width: 64px;
        height: 44px;
        border-radius: 12px
      }

      .cd .ssbig .art svg {
        width: 52px;
        height: 52px
      }

      .cd .ssbig b,
      .cd .wfbig b {
        font-size: 14px
      }

      .cd .ssbig small,
      .cd .wfbig small {
        font-size: 11px;
        line-height: 1.3;
        display: block
      }

      .cd .ss-scale {
        margin-top: 6px
      }

      .cd .ss-scale button {
        height: 26px
      }

      .cd .wfbig {
        gap: 10px
      }

      .cd .wfbig .wf {
        width: 38px;
        height: 30px
      }

      /* the day forecast: full width, taller bars */
      .cd .pred {
        margin-bottom: 16px
      }

      .cd .pr-bars {
        height: 64px;
        gap: 6px
      }
    }

    @media (min-width:821px) and (max-width:1100px) {
      .wrap.cd {
        --side-w: 264px
      }
    }

    /* ---------- data freshness: demo, live, outdated ---------- */

    .cd-fresh {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      padding: 8px 12px;
      border-radius: var(--r-m);
      background: var(--paper);
      border: 1px solid var(--line);
      font-size: 12px;
      font-weight: 700;
      color: var(--ink2);
      line-height: 1.3
    }

    .cd-fresh small {
      flex-basis: 100%;
      font-weight: 600;
      color: var(--ink3)
    }

    .b-stale {
      background: var(--terraBg);
      color: var(--terraT)
    }

    .b-stale::before {
      content: "!";
      font-size: 11px;
      line-height: 1
    }

    /* ---------- accounts (same header buttons, popovers and forms as the rest of the site) ---------- */

    .acc-dot {
      position: absolute;
      top: 7px;
      right: 7px;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--orange);
      box-shadow: 0 0 0 2px var(--paper)
    }

    .acc-actions {
      display: flex;
      gap: 8px
    }

    .acc-actions .btn {
      flex: 1;
      justify-content: center
    }

    .acc-link {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 10px 8px;
      border-radius: 10px;
      font-weight: 700;
      color: var(--ink);
      text-align: left
    }

    .acc-link:hover {
      background: var(--sand2)
    }

    .acc-link svg {
      width: 18px;
      height: 18px;
      color: var(--brown)
    }

    .auth-tabs {
      margin: 4px 0 14px
    }

    .mdl .auth-form {
      grid-template-columns: 1fr;
      padding: 0;
      border: 0;
      max-width: none;
      gap: 12px
    }

    .auth-form .btn-p,
    .auth-form .btn-g {
      justify-content: center;
      padding: 14px
    }

    .auth-msg {
      margin: 0;
      padding: 10px 12px;
      border-radius: 10px;
      background: var(--terraBg);
      color: var(--terraT);
      font-size: 13px;
      font-weight: 700
    }

    .fld.err select,
    .fld.err textarea {
      border-color: var(--terra)
    }

    .gate {
      max-width: 560px;
      margin: 48px auto;
      text-align: center;
      padding: 36px 28px
    }

    .gate h1 {
      font-size: 28px;
      margin: 10px 0 6px
    }

    .gate .btn {
      margin-top: 10px
    }

    .gate-ic {
      display: inline-grid;
      place-items: center;
      width: 56px;
      height: 56px;
      border-radius: 18px;
      background: var(--sand2);
      color: var(--brown)
    }

    .gate-ic svg {
      width: 28px;
      height: 28px
    }

    /* ---------- partnership form additions ---------- */

    .pf-hours {
      display: flex;
      align-items: center;
      gap: 8px
    }

    .pf-hours span {
      font-weight: 800;
      color: var(--ink3)
    }

    .pf-purp .chip {
      position: relative;
      cursor: pointer
    }

    .pf-purp .chip input {
      position: absolute;
      opacity: 0;
      pointer-events: none
    }

    .pf-purp .chip:has(input:checked) {
      background: var(--brown);
      border-color: var(--brown);
      color: #fff
    }

    .pf-purp .chip:has(input:focus-visible) {
      outline: 2px solid var(--orange);
      outline-offset: 2px
    }

    .pf-hint {
      margin: 0;
      font-size: 13px
    }
    .pf-steps { grid-column: 1/-1; display: flex; gap: 8px; list-style: none; margin: 0 0 4px; padding: 0 }
    .pf-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink2); padding-bottom: 10px; border-bottom: 3px solid var(--line) }
    .pf-steps li b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); border: 1.5px solid var(--line2); font-size: 12px }
    .pf-steps li.on, .pf-steps li.past { color: var(--brown); border-color: var(--brown) }
    .pf-steps li.on b, .pf-steps li.past b { background: var(--brown); border-color: var(--brown); color: #fff }
    .pf-step { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; animation: lIn .3s }
    .pf-step[hidden], .pf-nav [hidden] { display: none !important }
    .pf-nav { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap }
    .pf-nav [data-next], .pf-nav [data-submit] { margin-left: auto }

    .ph-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 10px
    }

    .ph-grid:empty {
      display: none
    }

    .ph {
      position: relative;
      margin: 0;
      aspect-ratio: 4/3;
      border-radius: 12px;
      overflow: hidden;
      background: var(--sand)
    }

    .ph img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block
    }

    .ph .pv-x {
      position: absolute;
      top: 6px;
      right: 6px;
      background: rgba(255, 255, 255, .92)
    }

    .ph-add {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 18px;
      border: 1.5px dashed var(--line2);
      border-radius: 12px;
      background: var(--cream);
      color: var(--brown);
      font-weight: 800;
      cursor: pointer;
      transition: border-color .2s, background .2s
    }

    .ph-add:hover {
      border-color: var(--brown);
      background: var(--sand2)
    }

    .ph-add[hidden] {
      display: none
    }

    .ph-add svg {
      width: 22px;
      height: 22px
    }

    .ph-add input {
      position: absolute;
      inset: 0;
      opacity: 0;
      pointer-events: none
    }

    .fld.pf-photos.err .ph-add {
      border-color: var(--terra)
    }

    .pf-claim {
      max-width: 720px;
      margin: 0 auto 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap
    }

    .pf-claim small {
      display: block
    }

    /* ---------- café-owner dashboard ---------- */

    .own {
      padding-block: 24px 0
    }

    .own-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 18px
    }

    .own-head h1 {
      font-size: clamp(28px, 3vw, 40px);
      margin: 8px 0 4px
    }

    .own-head p {
      margin: 0
    }

    .own-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      align-items: start
    }

    .own-vis,
    .own-info {
      grid-column: 1/-1
    }

    .own-msg {
      margin: 0 0 12px;
      font-weight: 700;
      color: var(--ink)
    }

    .own-note {
      font-size: 13px;
      margin: 8px 0 0
    }

    .own-steps {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 8px
    }

    .own-steps li {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--ink3);
      font-weight: 700;
      font-size: 14px
    }

    .own-steps i {
      flex: none;
      display: grid;
      place-items: center;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: 1.5px solid var(--line2);
      font-style: normal;
      font-size: 12px;
      background: var(--paper)
    }

    .own-steps i svg {
      width: 14px;
      height: 14px
    }

    .own-steps small {
      display: block;
      font-weight: 600;
      font-size: 11px;
      color: var(--ink3)
    }

    .own-steps .st-done {
      color: var(--ink2)
    }

    .own-steps .st-done i {
      background: var(--sand);
      border-color: var(--seat-free-b);
      color: var(--brown)
    }

    .own-steps .st-on {
      color: var(--ink)
    }

    .own-steps .st-on i {
      background: var(--orange);
      border-color: var(--brown);
      color: var(--ink)
    }

    .own-steps .st-bad i {
      background: var(--terraBg)
    }

    .own-tiles {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
      margin-top: 12px
    }

    .own-tile {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 12px;
      border-radius: var(--r-m);
      background: var(--cream);
      border: 1px solid var(--line)
    }

    .own-tile small {
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: 800;
      color: var(--ink2)
    }

    .own-tile small svg {
      width: 14px;
      height: 14px
    }

    .own-tile b {
      font-size: 22px
    }

    .own-plan {
      max-width: 900px;
      margin: 0 auto
    }

    .own-devices {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 8px
    }

    .own-devices li {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap
    }

    .dot {
      display: inline-block;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--closed)
    }

    .dot.on {
      background: #2E7D4F
    }

    .own-info .form,
    .adm .form {
      max-width: none;
      padding: 0;
      border: 0
    }

    @media (max-width:820px) {
      .own-grid {
        grid-template-columns: minmax(0, 1fr)
      }
      .pf-step {
        grid-template-columns: 1fr
      }
    }

    /* ---------- admin / developer dashboard: functional, plain ---------- */

    .adm {
      padding-block: 24px 40px
    }

    .adm-head {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 14px
    }

    .adm-head h1,
    .adm-head h2 {
      margin: 0
    }

    .adm-head [data-refresh] {
      margin-left: auto
    }

    .adm-tabs {
      margin-bottom: 16px
    }

    .adm-n {
      font-size: 30px;
      font-weight: 800
    }

    .adm-scroll {
      overflow-x: auto;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--r-m)
    }

    .adm-t {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px
    }

    .adm-t th,
    .adm-t td {
      text-align: left;
      vertical-align: top;
      padding: 9px 10px;
      border-bottom: 1px solid var(--line)
    }

    .adm-t thead th {
      background: var(--cream);
      font-size: 12px;
      color: var(--ink2);
      white-space: nowrap
    }

    .adm-t tr.muted td {
      opacity: .55
    }

    .adm-code {
      margin: 6px 0 0;
      padding: 10px;
      border-radius: 10px;
      background: #2B2118;
      color: #F6EBDA;
      font-size: 12px;
      overflow: auto;
      max-height: 320px;
      white-space: pre-wrap;
      word-break: break-all
    }

    .adm-mono {
      font-family: ui-monospace, Consolas, monospace;
      font-size: 12px
    }

    .adm-token {
      margin-bottom: 16px;
      border-color: var(--orange)
    }

    .adm-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      align-items: start
    }

    .adm-wide {
      grid-column: 1/-1
    }

    .adm-vis {
      display: grid;
      grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
      gap: 16px;
      align-items: start
    }

    .adm-form {
      gap: 10px
    }

    .adm-form h3 {
      grid-column: 1/-1;
      margin: 0
    }

    .adm-actions {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 8px
    }

    .adm-check {
      grid-column: 1/-1;
      display: flex;
      gap: 8px;
      align-items: center;
      font-size: 13px;
      font-weight: 700
    }

    .adm-filters {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
      margin-bottom: 12px
    }

    .adm-filter {
      display: flex;
      gap: 6px;
      align-items: center;
      font-size: 13px;
      font-weight: 700
    }

    .adm-filter select {
      border: 1.5px solid var(--line2);
      border-radius: 10px;
      padding: 6px 8px;
      background: var(--paper)
    }

    .adm-list {
      font-size: 13px;
      padding-left: 18px
    }

    .adm-suggest {
      grid-column: 1/-1;
      margin: 0;
      padding: 10px;
      border-radius: 10px;
      background: var(--sand2);
      font-size: 13px
    }

    .adm-suggest svg,
    .adm h2 svg,
    .adm h3 svg {
      width: 16px;
      height: 16px;
      vertical-align: -3px
    }

    @media (max-width:900px) {

      .adm-grid,
      .adm-vis {
        grid-template-columns: minmax(0, 1fr)
      }
    }

    /* ---------- staff / owner live page: plan, advice and current state on one screen ----------
       The advice is the first thing on the right; the plan takes the height the screen allows;
       temporary statuses and the music suggestion follow below the fold. */

    .st-top {
      --st-plan-w: max(440px, calc((100dvh - var(--hd) - 196px) * 1.538));
      display: grid;
      grid-template-columns: minmax(0, calc(var(--st-plan-w) + 34px)) minmax(300px, 400px);
      justify-content: center;
      align-items: start;
      gap: 16px;
      margin-top: 14px
    }

    .st-top .card {
      padding: 14px 16px
    }

    .st-top .card-h {
      margin-bottom: 10px
    }

    .st-top .card-h h2 {
      font-size: 18px
    }

    .st-plan .plan-outer {
      max-width: var(--st-plan-w);
      margin-inline: auto
    }

    .st-side {
      display: flex;
      flex-direction: column;
      gap: 12px
    }

    .st-advice {
      border: 2px solid var(--amberL)
    }

    .st-advice .ins {
      padding: 12px 14px;
      margin-top: 8px;
      background: #FFF7E6
    }

    .st-advice .ins:first-of-type {
      margin-top: 0
    }

    .st-advice .ins b {
      font-size: 16px;
      line-height: 1.3;
      color: var(--ink)
    }

    .st-advice .ins small {
      display: block;
      margin-top: 3px;
      font-size: 13px;
      line-height: 1.4
    }

    .st-now .occ-ring {
      gap: 16px;
      flex-wrap: nowrap
    }

    .st-now .occ-ring svg {
      width: 104px;
      height: 104px;
      flex: none
    }

    .st-now .occ-ring>div {
      gap: 12px !important;
      grid-template-columns: repeat(3, auto) !important
    }

    .st-now .occ-ring b.num {
      font-size: 22px !important
    }

    .st-now .occ-ring small,
    .st-now .occ-ring b {
      white-space: nowrap
    }

    .st-now .occ-ring>div>div:nth-child(2) b {
      font-size: 14px !important
    }

    .st-more {
      margin-top: 24px
    }

    @media (max-width:820px) {
      .st-top {
        grid-template-columns: minmax(0, 1fr)
      }

      .st-side {
        display: contents
      }

      .st-advice {
        order: -1
      }

      .st-plan .plan-outer {
        max-width: none
      }
    }

    /* ---------- admin layout editor: two templates, every object movable ---------- */

    .le {
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-width: 0
    }

    .le-templates {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px
    }

    .le-tpl {
      display: grid;
      grid-template-columns: auto 1fr;
      grid-template-rows: auto auto;
      column-gap: 10px;
      align-items: center;
      text-align: left;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1.5px solid var(--line2);
      background: var(--paper);
      transition: border-color .2s, box-shadow .2s
    }

    .le-tpl.on {
      border-color: var(--orange);
      box-shadow: 0 0 0 3px rgba(255, 157, 0, .18)
    }

    .le-tpl small {
      grid-column: 2;
      color: var(--ink3);
      font-size: 12px
    }

    .le-sw {
      grid-row: 1 / span 2;
      display: flex;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 0 0 1px var(--line2)
    }

    .le-sw i {
      width: 12px;
      height: 34px
    }

    .le-tools {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center
    }

    .le-tools .chip {
      padding: 6px 11px;
      font-size: 13px
    }

    .le-tools .chip:disabled {
      opacity: .4;
      cursor: default
    }

    .le-lab {
      font-size: 12px;
      font-weight: 800;
      color: var(--ink2);
      min-width: 92px
    }

    .le-sel .le-del:not(:disabled) {
      color: var(--terraT)
    }

    .le-reset {
      margin-left: auto;
      padding: 6px 12px;
      font-size: 13px
    }

    .le-plan {
      outline: none;
      border-radius: 14px
    }

    .le-plan:focus-visible {
      box-shadow: 0 0 0 3px rgba(255, 157, 0, .35)
    }

    .le-hint {
      margin: 0;
      font-size: 12px;
      color: var(--ink3)
    }

    .le-hint.warn {
      color: var(--terraT);
      font-weight: 700
    }
/* Sensor additions retain the original style sheets and native page layout. */
.sensor-panel{padding:14px 0;display:grid;gap:9px;min-width:0}.sensor-meta,.sensor-values{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.sensor-values b{font-size:22px;margin-left:6px}.sensor-panel small{color:var(--ink3)}.sensor-panel p{margin:0;font-size:12px;line-height:1.6}.sensor-compact{padding:10px 16px;border-top:1px solid var(--line)}.sensor-compact .sensor-values b{font-size:16px}.sensor-compact small{font-size:11px}.sensor-diagnostics{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;margin:6px 0}.own-devices li{flex-wrap:wrap}.sensor-history{margin-top:16px}.sensor-history table{min-width:600px} [data-sensor-status="offline"],[data-sensor-status="stale"]{color:var(--terra)}

/* Real microphone readings: relative device levels, never inferred SPL. */
.live-noise{display:grid;gap:10px;min-width:0}.live-noise p{margin:0;font-size:12px}.live-noise small{font-size:11px;color:var(--ink3);line-height:1.6}.noise-reading b{font-size:30px}.noise-meter{height:10px;background:var(--line);border-radius:10px;overflow:hidden}.noise-meter i{display:block;height:100%;background:var(--terra,#B6771D);transition:width .45s ease;border-radius:10px}.noise-history{width:100%;height:auto;max-height:100px;overflow:hidden}.noise-history polyline{fill:none;stroke:#B6771D;stroke-width:2}.noise-history circle{fill:#7B542F}.noise-grid{fill:none;stroke:var(--line);stroke-width:1}.noise-thresholds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.noise-thresholds label{font-size:11px}.noise-thresholds input{width:100%;min-width:0;padding:6px;box-sizing:border-box}.live-noise summary{font-size:12px;cursor:pointer}.live-noise details p{margin:8px 0}@media(prefers-reduced-motion:reduce){.noise-meter i{transition:none}}


/* ===== Customer features: menu, «Очих» + pre-order, phone sign-in (additive; original sheets untouched) ===== */
.linkb{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--brown);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.linkb:hover{color:var(--brown2)}
.btn.me-danger{color:var(--terraT);background:var(--terraBg)}
.me-ask{font-size:13px;font-weight:700;color:var(--terraT)}

/* café page */
.cd-cust{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:20px;margin-top:20px;align-items:start}
.cd-cust .card-h h2,.st-cust .card-h h2,.own-orders .card-h h2,.own-menu .card-h h2{display:flex;align-items:center;gap:8px}
.cd-cust .card-h h2 svg,.st-cust .card-h h2 svg,.own-orders .card-h h2 svg,.own-menu .card-h h2 svg{width:22px;height:22px;color:var(--brown)}

/* public menu */
.menu-note{margin:0 0 12px;font-size:13px}
.menu-out-k{font-weight:800;color:var(--ink2)}
.menu-cats{margin-bottom:6px}
.menu-group h3{font-size:14px;letter-spacing:.02em;color:var(--ink2);margin:16px 0 10px}
.menu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.menu-item{position:relative;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--cream);display:flex;flex-direction:column;min-width:0}
.menu-item img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:var(--sand)}
.menu-txt{padding:10px 12px 12px;display:flex;flex-direction:column;gap:4px;min-width:0}
.menu-txt b{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.menu-price{font-weight:800;color:var(--brown)}
.menu-item.is-out img{filter:grayscale(1);opacity:.5}
.menu-item.is-out .menu-txt{opacity:.55}
.menu-item.is-out .menu-price{text-decoration:line-through}
.menu-out{position:absolute;top:8px;left:8px;background:var(--ink);color:#fff;font-size:11px;font-weight:800;padding:4px 9px;border-radius:999px;letter-spacing:.02em}

/* «Очих» panel */
.going-count{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-size:14px}
.going-count svg{width:20px;height:20px;color:var(--brown);flex:none}
.going-cta{display:flex;flex-direction:column;gap:12px}
.going-cta p{margin:0;font-size:14px}
.going-cta .btn{justify-content:center;padding:14px}
.going-cta .btn:disabled{opacity:.5;cursor:default}
.going-who{margin:14px 0 0;font-size:13px}
.going-active{display:grid;gap:14px}
.going-timer{display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px;border-radius:18px;background:var(--sand2);text-align:center}
.going-timer b{font-size:40px;line-height:1.1;color:var(--ink)}
.going-timer small{font-size:12px;color:var(--ink2);font-weight:700}
.going-active.ph-grace .going-timer{background:var(--terraBg)}
.going-detail{display:grid;gap:10px}
.going-detail p{margin:0;font-size:13px}
.going-detail>.btn,.going-other .btn{justify-self:start}
.going-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.going-tot{justify-content:space-between;font-size:14px;border-top:1px dashed var(--line2);padding-top:8px}
.going-lines{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:14px}
.going-lines li{display:flex;justify-content:space-between;gap:12px}
.going-note-txt{font-style:italic;color:var(--ink2)}
.going-other{display:grid;gap:12px}
.going-other p{margin:0;font-size:14px}
.going-ask{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.going-ask span{font-size:13px;font-weight:700}
.going-st{background:var(--sand2);color:var(--ink2)}
.going-st.st-accepted{background:var(--amberL);color:var(--ink)}
.going-st.st-ready{background:var(--brown);color:#fff}
.going-st.st-cancelled,.going-st.st-expired{background:var(--terraBg);color:var(--terraT)}

/* «Очих» flow (modal) */
.going-steps{display:flex;gap:6px;list-style:none;padding:0;margin:10px 0 0}
.going-steps li{width:28px;height:5px;border-radius:5px;background:var(--line2)}
.going-steps li.on{background:var(--orange)}
.going-steps li.done{background:var(--brown)}
.going-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.going-time{display:flex;flex-direction:column;align-items:center;gap:4px;padding:18px 8px;border:2px solid var(--line2);border-radius:18px;background:var(--cream);cursor:pointer;font:inherit;color:var(--ink);transition:border-color .2s,background .2s}
.going-time b{font-size:20px}
.going-time small{color:var(--ink2)}
.going-time:hover{border-color:var(--sage)}
.going-time[aria-pressed="true"]{border-color:var(--brown);background:var(--sand2)}
.going-hint{font-size:13px;margin:12px 0}
.going-menu{display:grid;gap:4px;max-height:min(46vh,420px);overflow:auto;padding-right:4px}
.going-menu h3{font-size:13px;color:var(--ink2);margin:10px 0 6px}
.going-item{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px;border-radius:14px;border:1px solid transparent}
.going-item.on{background:var(--sand2);border-color:var(--line2)}
.going-item img{width:58px;height:44px;border-radius:10px;object-fit:cover;display:block}
.going-item b{display:block;font-size:14px}
.going-item small{color:var(--brown);font-weight:800}
.going-qty{display:flex;align-items:center;gap:6px}
.going-qty button{width:34px;height:34px;border-radius:50%;border:1.5px solid var(--line2);background:var(--paper);display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.going-qty button svg{width:16px;height:16px}
.going-qty button:disabled{opacity:.35;cursor:default}
.going-qty output{min-width:22px;text-align:center;font-weight:800}
.going-note{margin-top:12px}
.going-note textarea{resize:vertical}
.going-note small{align-self:flex-end;font-size:11px}
.going-foot{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}
.going-foot .btn{padding:13px 18px}
.going-foot .btn:disabled{opacity:.5;cursor:default}
.going-total{margin-right:auto;display:flex;flex-direction:column}
.going-total small{font-size:12px;color:var(--ink2)}
.going-total b{font-size:22px}
.going-sum{margin:0;display:grid;gap:10px}
.going-sum>div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.going-sum dt{font-size:13px;color:var(--ink2);font-weight:700}
.going-sum dd{margin:0}
.going-sum-total dd{font-size:20px;font-weight:800}
.going-pay{display:flex;gap:10px;align-items:flex-start;margin:14px 0 0;padding:12px;border-radius:14px;background:var(--sand2);font-size:13px}
.going-pay svg{width:18px;height:18px;flex:none;color:var(--brown);margin-top:1px}

/* phone sign-in */
.otp-demo{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 14px;padding:10px 12px;border-radius:12px;background:var(--sand2);font-size:13px}
.otp-phone{display:flex;align-items:stretch}
.otp-phone span{display:grid;place-items:center;padding:0 12px;border:1.5px solid var(--line2);border-right:0;border-radius:12px 0 0 12px;background:var(--sand);font-weight:800;color:var(--ink2)}
.fld .otp-phone input{border-radius:0 12px 12px 0}
.otp-sent{margin:0;font-size:14px}
.fld .otp-input{font-size:26px;letter-spacing:.5em;text-align:center;font-weight:800;padding:12px 0 12px .5em}
.fld .otp-input:disabled{opacity:.5}
.auth-form .btn:disabled{opacity:.55;cursor:default}

/* staff / owner */
.st-cust{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:20px;margin-top:20px;align-items:start}
.own-orders,.own-menu{grid-column:1/-1}
.inc-sum{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:18px;background:var(--sand2);margin-bottom:6px}
.inc-sum>b{font-size:40px;line-height:1;color:var(--brown)}
.inc-sum-t{display:flex;flex-direction:column;font-weight:700}
.inc-sum small{font-weight:500;font-size:12px}
.inc-h{font-size:15px;margin:16px 0 10px;display:flex;gap:8px}
.inc-list{display:grid;gap:12px}
.inc-row{border:1px solid var(--line);border-radius:16px;padding:12px 14px;display:grid;gap:8px;background:var(--cream)}
.inc-row.st-ready{border-color:var(--brown)}
.inc-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.inc-when{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;color:var(--ink2)}
.inc-when svg{width:15px;height:15px}
.inc-tot{display:flex;justify-content:space-between;font-size:13px;border-top:1px dashed var(--line2);padding-top:8px}
.inc-act{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.inc-act .btn{padding:9px 14px}
.inc-act .btn:disabled{opacity:.5}
.me-note{margin:0 0 10px;font-size:13px}
.me-new{padding:9px 14px}
.me-new:disabled{opacity:.5;cursor:default}
.me-new svg{width:16px;height:16px}
.me-group h3{font-size:13px;color:var(--ink2);margin:14px 0 6px}
.me-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.me-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:8px;border-radius:14px;border:1px solid var(--line)}
.me-row img{width:58px;height:44px;border-radius:10px;object-fit:cover;display:block}
.me-row.is-out img{filter:grayscale(1);opacity:.55}
.me-info{display:flex;flex-direction:column;min-width:0}
.me-info b{overflow-wrap:anywhere}
.me-avail{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ink2);font-weight:700}
.me-btns{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.me-btns .btn{padding:8px 12px;font-size:13px}
.me-form{margin:6px 0 14px;padding:16px;border:1.5px solid var(--line2);border-radius:18px;background:var(--cream)}
.me-form-h{grid-column:1/-1;margin:0;font-size:16px}
.me-photo{flex-direction:row;align-items:center;gap:14px;flex-wrap:wrap}
.me-photo img{width:116px;height:88px;border-radius:14px;object-fit:cover;border:1px solid var(--line2)}
.me-photo img.is-placeholder{opacity:.7}
.me-photo-act{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.me-photo-act .btn{cursor:pointer;padding:9px 14px}
.me-photo-act .btn svg{width:16px;height:16px}
.me-price{display:flex;align-items:center;gap:8px}
.me-price span{font-weight:800;color:var(--ink2)}
.me-check{justify-content:center}
.me-check label{display:flex;gap:8px;align-items:center;cursor:pointer}
.me-check input{width:18px;height:18px;accent-color:var(--brown)}
.me-actions{flex-direction:row;gap:10px}
.me-actions .btn{padding:12px 18px}
.me-actions .btn:disabled{opacity:.5}

@media (max-width:900px){
  .cd-cust,.st-cust{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:600px){
  .menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .going-sum>div{grid-template-columns:minmax(0,1fr);gap:2px}
  .going-time{padding:14px 4px}
  .me-row{grid-template-columns:58px minmax(0,1fr)}
  .me-avail,.me-btns{grid-column:1/-1;justify-content:space-between}
  .me-form{padding:12px}
  .going-foot .btn{flex:1;justify-content:center}
  .going-total{flex-basis:100%}
}


/* ===== UI/UX from the oyundari branch (commits b6e67b1, 50e6f2f), restored frontend-only ===== */
    /* home «Ойролцоох кафенууд»: the study, work and friends tags without the yellow fill */
    .cgrid .tagp2:is([data-tag="Сурах"], [data-tag="Ажиллах"], [data-tag="Найзуудтай"]) {
      background: transparent
    }

    /* ---------- home on phones (js/features/home/mobile-home.js) ----------
       four hanging lamps · title · search · recommendation carousel (five cafés, each
       under its own rooftop) that fits the first screen · one-at-a-time tour */
.mhome, .ss-dots { display: none }

/* noise cards on phones: no scrollbar, dots like the recommendation carousel instead */
@media (max-width:820px) {
  .ss-row { scrollbar-width: none; scroll-padding-inline: 16px }
  .ss-row .ss-card { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always }
  .ss-row::-webkit-scrollbar { display: none }
  .ss-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px }
  .ss-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line2); transition: width .3s, background .3s }
  .ss-dots i.on { width: 20px; background: var(--brown) }
}

@media (max-width:820px) {
  .hero { display: none }
  /* --bh: card height, so lamps, title, search and the whole carousel fit the first screen */
  .mhome { --bh: clamp(200px, calc(100svh - var(--hd) - var(--tab) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 292px), 420px); display: block; position: relative; padding: 0 16px 6px; overflow-x: clip; background: radial-gradient(130% 50% at 50% 0, #FFEFD2 0, rgba(251, 247, 240, 0) 72%) }

  /* hanging lamps with their cones of light, as on the desktop hero */
  .mh-lamps { position: relative; z-index: 1; height: 56px; margin: 0 -16px; pointer-events: none }
  .ml { position: absolute; top: 0; width: 54px; margin-left: -27px; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; animation: chSway var(--dur) ease-in-out var(--del) infinite alternate }
  .ml.ring { animation: chRing 1.5s cubic-bezier(.3, .7, .4, 1) }
  .ml-cord { width: 1.5px; height: var(--cord); background: var(--brown) }
  .ml svg { position: relative; z-index: 1; display: block; width: 54px; height: auto; margin-top: -1px }
  .ml .ml-bulb { animation: rfWin 2.4s ease-in-out infinite alternate }
  .ml-cone { width: 150px; height: 150px; margin-top: -4px; clip-path: polygon(41% 0, 59% 0, 88% 100%, 12% 100%); background: linear-gradient(rgba(255, 207, 113, .5), rgba(255, 224, 160, 0)); pointer-events: none; animation: glow 4s ease-in-out var(--del) infinite }
  .ml.ring .ml-cone { animation: chFlash 1.2s ease-out }

  .mh-title { position: relative; z-index: 3; margin: 0; text-align: center; font-family: var(--f-disp); font-weight: 700; font-size: clamp(21px, 6.3vw, 26px); line-height: 1.25; letter-spacing: -.01em; color: var(--ink); animation: mhIn .7s cubic-bezier(.2, .9, .3, 1) backwards }
  .mh-title em { font-style: normal; color: var(--orange2); background: linear-gradient(transparent 62%, rgba(255, 207, 113, .65) 0) no-repeat 0 0 / 0 100%; animation: mhMark .7s .6s ease-out forwards }

  /* search */
  .mh-search { position: relative; z-index: 3; display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 4px 4px 4px 14px; border: 1.5px solid var(--line2); border-radius: 17px; background: var(--paper); box-shadow: 0 12px 26px -16px rgba(123, 84, 47, .55); transition: border-color .2s, box-shadow .2s; animation: mhIn .7s .12s cubic-bezier(.2, .9, .3, 1) backwards }
  .mh-search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 157, 0, .16), 0 12px 26px -16px rgba(123, 84, 47, .55) }
  .mh-s-ic { display: grid; color: var(--ink3) }
  .mh-s-ic svg { width: 20px; height: 20px }
  .mh-search input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink) }
  .mh-search input::placeholder { color: var(--ink3) }
  .mh-go { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 13px; background: var(--brown); color: #fff; font-weight: 800; font-size: 14px; transition: transform .15s, background .2s }
  .mh-go:active { transform: scale(.95); background: var(--brown2) }

  .mh-h { margin: 0; font-family: var(--f-disp); font-size: 17px; font-weight: 700; color: var(--ink) }

  /* recommendations */
  .mh-rec { position: relative; z-index: 3; margin-top: 12px; animation: mhIn .7s .24s cubic-bezier(.2, .9, .3, 1) backwards }
  .mh-rec-h { display: flex; align-items: center; gap: 8px }
  .mh-help { display: grid; place-items: center; width: 24px; height: 24px; margin-right: auto; padding: 0; border: 1.5px solid var(--line2); border-radius: 50%; background: var(--paper); color: var(--brown); font-size: 13px; font-weight: 800; line-height: 1 }
  .mh-help:active { transform: scale(.9) }
  .mh-rec-h a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--brown) }
  .mh-rec-h a svg { width: 14px; height: 14px }
  .mh-chips { display: flex; gap: 8px; margin: 8px -16px 0; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none }
  .mh-chips::-webkit-scrollbar { display: none }
  .mh-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1.5px solid var(--line2); border-radius: 999px; background: var(--paper); color: var(--ink2); font-size: 13px; font-weight: 800; transition: background .2s, color .2s, border-color .2s, transform .15s }
  .mh-chip svg { width: 15px; height: 15px }
  .mh-chip .wf { color: currentColor !important }
  .mh-chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff }
  .mh-chip:active { transform: scale(.94) }

  .mh-track { display: flex; margin: 0 -16px; padding: 2px 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; outline: 0 }
  .mh-track::-webkit-scrollbar { display: none }
  .mh-empty { margin: 0 auto; color: var(--ink3) }
  .rc { flex: 0 0 min(72vw, 300px); margin: 0 max(-5vw, -22px); scroll-snap-align: center; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent }
  .mh-rec:not(.seen) .rc { opacity: 0 }
  .mh-rec.seen .rc { animation: rcDeal .75s calc(var(--n) * 90ms) cubic-bezier(.2, 1.25, .4, 1) backwards }
  .rc-card { position: relative; transform: translateY(var(--y, 0)) scale(var(--s, 1)); transform-origin: 50% 70%; will-change: transform }
  .rc-roof { position: relative; z-index: 2; margin: 0 -9px -8px; filter: drop-shadow(0 4px 3px rgba(62, 42, 23, .28)) }
  .rc-roof svg { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 0 }
  .rc.on .rc-roof svg { animation: rfPop .7s cubic-bezier(.3, 1.6, .5, 1) }
  .rf-lantern { transform-box: fill-box; transform-origin: 50% 0; animation: chSway 2.6s ease-in-out infinite alternate }
  .rf-smoke circle { animation: rfSmoke 2.6s ease-out infinite }
  .rf-smoke circle + circle { animation-delay: -1.3s }
  .rf-win { animation: rfWin 3s ease-in-out infinite alternate }
  .mhome .rc-body { height: var(--bh); border-radius: 6px 6px 26px 26px }
  .rc-card::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: 6px 6px 26px 26px; background: var(--cream); opacity: calc(var(--dim, 0) * .9); pointer-events: none }
  .mh-dots { display: flex; justify-content: center; gap: 6px; margin-top: -6px }
  @media (max-height:700px) { .rc-kick { display: none } .rc-info h3 { font-size: 22px; margin-bottom: 6px } }
  .mh-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line2); transition: width .3s, background .3s }
  .mh-dots i.on { width: 20px; background: var(--brown) }

  /* tour: a spotlight that glides from one part of the page to the next */
  .tour { position: fixed; inset: 0; z-index: 95 }
  .tour-spot { position: fixed; border-radius: 22px; box-shadow: 0 0 0 200vmax rgba(36, 24, 12, .64); opacity: 0; transition: left .5s cubic-bezier(.3, 1.15, .4, 1), top .5s cubic-bezier(.3, 1.15, .4, 1), width .5s cubic-bezier(.3, 1.15, .4, 1), height .5s cubic-bezier(.3, 1.15, .4, 1), opacity .35s }
  .tour-spot::after { content: ""; position: absolute; inset: -5px; border: 2.5px solid var(--amberL); border-radius: 26px; animation: tourRing 1.7s ease-out infinite }
  .tour.in .tour-spot { opacity: 1 }
  .tour-b { position: fixed; width: min(330px, calc(100vw - 24px)); padding: 16px 16px 12px; border-radius: 20px; background: var(--paper); box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(14px) scale(.92); transition: top .5s cubic-bezier(.3, 1.15, .4, 1), left .5s cubic-bezier(.3, 1.15, .4, 1), transform .4s cubic-bezier(.3, 1.5, .5, 1), opacity .25s }
  .tour.in .tour-b { opacity: 1; transform: none }
  .tour.out .tour-b { opacity: 0; transform: scale(.9) }
  .tour.out .tour-spot { opacity: 0 }
  .tour-arrow { position: absolute; top: -7px; left: calc(var(--ax, 50%) - 8px); width: 16px; height: 16px; border-radius: 3px; background: var(--paper); transform: rotate(45deg); transition: left .5s cubic-bezier(.3, 1.15, .4, 1) }
  .tour-b.up .tour-arrow { top: auto; bottom: -7px }
  .tour-c { display: flex; gap: 12px }
  .tour-c.swap { animation: tourSwap .45s cubic-bezier(.2, .9, .3, 1) }
  .tour-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sand); color: var(--brown) }
  .tour-c.swap .tour-ic { animation: tourIc .6s .1s cubic-bezier(.3, 1.7, .5, 1) backwards }
  .tour-ic svg { width: 22px; height: 22px }
  .tour-c small { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--orange2) }
  .tour-c b { display: block; margin: 1px 0 3px; font-size: 16px; font-weight: 800; color: var(--ink) }
  .tour-c p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink2) }
  .tour-f { display: flex; align-items: center; gap: 6px; margin-top: 14px }
  .tour-dots { display: flex; gap: 5px; margin-right: auto }
  .tour-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line2); transition: width .35s, background .35s }
  .tour-dots i.on { width: 16px; background: var(--orange) }
  .tour-skip { padding: 8px 10px; border: 0; background: none; color: var(--ink3); font-size: 13px; font-weight: 800 }
  .tour-next { height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--brown); color: #fff; font-size: 14px; font-weight: 800 }
  .tour-next:active { transform: scale(.95) }
  .tour-burst { position: fixed; z-index: 96; width: 0; height: 0; pointer-events: none }
  .tour-burst i { position: absolute; left: -4px; top: -6px; width: 9px; height: 13px; border-radius: 50%; background: var(--brown); animation: tourBean .9s cubic-bezier(.2, .8, .3, 1) forwards }
  .tour-burst i:nth-child(3n) { background: var(--orange) }
  .tour-burst i:nth-child(3n+1) { background: var(--amberL) }
}

/* café cards (phone carousel and desktop «Танд санал болгох» share the same card) */
.rc-body { position: relative; height: 360px; border-radius: 22px; overflow: hidden; background: var(--sand) }
.rc-body::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 28, 15, 0) 34%, rgba(42, 28, 15, .6) 54%, rgba(42, 28, 15, .94) 100%); pointer-events: none }
.rc-scene { position: absolute; inset: 0; width: 100%; height: 100% }
.rc .sc-steam { animation: scSteam 2.4s ease-in-out infinite }
.rc .sc-glow { animation: glow 3s ease-in-out infinite }
.rc .sc-bub { animation: scBub 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 0 100% }
.rc .sc-screen, .rc .sc-stars { animation: rfWin 2s ease-in-out infinite alternate }
.rc-open { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 249, 236, .92); color: var(--ink); font-size: 11px; font-weight: 800 }
/* open = the same lamp as on the café cards, switched on and glowing; it flickers on
   each time its card comes to the middle */
.rc-open { padding-left: 4px }
.rc-open .olamp { width: 24px; height: 24px; margin: -4px -2px -4px 0 }
.rc-open .olamp svg { width: 12px; height: 15px }
.rc-open .olamp.on::before { inset: -5px; background: radial-gradient(circle at 50% 60%, rgba(255, 178, 26, .95) 0, rgba(255, 207, 113, .55) 38%, rgba(255, 207, 113, 0) 70%) }
.rc.on .rc-open .olamp.on svg, .rc.on .rc-open .olamp.on::before { animation: lampOn 1s ease-out both }
.rc.on .rc-open .olamp.on::before { animation: lampOn 1s ease-out both, olampGlow 2.6s 1s ease-in-out infinite }
.heart.rc-heart { position: absolute; z-index: 3; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 4px 10px -4px rgba(62, 42, 23, .4) }
.heart.rc-heart svg { width: 19px; height: 19px }
.rc-info { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; color: #fff }
.rc-kick { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; opacity: .92 }
.rc-kick svg { width: 13px; height: 13px; flex: none }
.rc-info h3 { margin: 2px 0 8px; font-family: var(--f-disp); font-size: 25px; font-weight: 700; letter-spacing: -.01em; color: #fff }
.rc-stats { display: flex; gap: 4px; overflow: hidden }
.rc-stats span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .15); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 11px; font-weight: 700; white-space: nowrap }
.rc-stats svg { width: 14px; height: 14px; flex: none }
.rc-stats .wf { color: #fff !important }
.rc-free b { color: var(--amberL) }
.rc-more { display: flex; align-items: center; justify-content: flex-end; height: 46px; margin-top: 12px; padding: 0 5px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px) }
.rc-more i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1) }
.rc-more i svg { width: 16px; height: 16px }
.rc.on .rc-more i { animation: rcNudge 2.4s 1s ease-in-out infinite }
.rc-more:active i { transform: translateX(4px) scale(.94) }

@keyframes chSway { from { transform: rotate(-3deg) } to { transform: rotate(3deg) } }
@keyframes chRing { 0% { transform: rotate(0) } 14% { transform: rotate(18deg) } 32% { transform: rotate(-13deg) } 50% { transform: rotate(8deg) } 68% { transform: rotate(-4deg) } 84% { transform: rotate(2deg) } 100% { transform: rotate(0) } }
@keyframes chFlash { 0% { opacity: 1; transform: scale(1) } 25% { opacity: 1; transform: scale(1.5) } 100% { opacity: .8; transform: scale(1) } }
@keyframes mhIn { from { opacity: 0; transform: translateY(14px) } }
@keyframes mhMark { to { background-size: 100% 100% } }
@keyframes rcDeal { from { opacity: 0; transform: translateX(60px) rotate(6deg) } }
@keyframes rfPop { 0% { transform: scaleY(.6) } 60% { transform: scaleY(1.1) } 100% { transform: scaleY(1) } }
@keyframes rfSmoke { 0% { opacity: 0; transform: translateY(6px) scale(.6) } 30% { opacity: .9 } 100% { opacity: 0; transform: translateY(-12px) scale(1.4) } }
@keyframes rfWin { from { opacity: .75 } to { opacity: 1 } }
@keyframes scSteam { 0%, 100% { opacity: .2; transform: translateY(2px) } 50% { opacity: .9; transform: translateY(-3px) } }
@keyframes scBub { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.08) rotate(-2deg) } }
@keyframes arrowBob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(4px) } }
@keyframes arrowDraw { to { stroke-dashoffset: 0 } }
@keyframes lampOn { 0% { opacity: .2; filter: grayscale(1) } 18% { opacity: 1; filter: none } 28% { opacity: .35 } 42%, 100% { opacity: 1; filter: none } }
@keyframes rcLive { 70% { box-shadow: 0 0 0 7px rgba(255, 157, 0, 0) } 100% { box-shadow: 0 0 0 0 rgba(255, 157, 0, 0) } }
@keyframes rcNudge { 0%, 70%, 100% { transform: none } 80% { transform: translateX(4px) } 90% { transform: translateX(-1px) } }
@keyframes tourRing { from { opacity: .95; transform: scale(.98) } to { opacity: 0; transform: scale(1.07) } }
@keyframes tourSwap { from { opacity: 0; transform: translateX(18px) } }
@keyframes tourIc { from { transform: scale(.4) rotate(-20deg) } }
@keyframes tourBean { to { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--rz)) } }
/* ---------- map page and «Кафенууд»: tags without the yellow fill ---------- */
.pv .tagp2, .cgrid2 .tagp2 { background: transparent }

/* ---------- café page: a compact header and a «Дэлгэрэнгүй» heading on phones ---------- */
.rf-trap, .cd-more-h, .cd-arrow { display: none }
.cd-tag { display: contents }
.back-ic { display: grid; transform: scaleX(-1) }
.cd-tags { display: contents }
.plan-legend.off { display: none !important }
/* map preview: the seat row stays a row */
.pv-ms>div>.seats:first-child { display: inline-flex }
@media (max-width:820px) {
  /* map page: the café list scrolls vertically and the closed sheet is lower, so the map is bigger */
  .ex-side { --peek: 178px }
  .ex-side:not(.full) .ex-list { flex-direction: column; flex: 1; overflow: hidden; scroll-snap-type: none; padding: 4px 16px 16px }
  .ex-side:not(.full) .lcard { flex: none; scroll-snap-align: none }

  /* café page: no roof, just a short header —
     [map] Name [♡][⚖] / mood line / hours · walk / the goal tags on their own line */
  .cd-head.roof2 { display: grid; grid-template-columns: 1fr minmax(0, max-content) 1fr; align-items: center; gap: 0 10px; min-height: 0; margin: 4px 0 14px; padding: 0 }
  .roof2 .roof-svg { display: none }
  .roof2 .back { position: static; grid-column: 1; grid-row: 1; justify-self: start }
  .roof2 .cd-act { position: static; grid-column: 3; grid-row: 1; justify-self: end }
  .roof2 .cd-title { display: contents }
  .roof2 .cd-title h1 { grid-column: 2; grid-row: 1; margin: 0; font-size: 26px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
  .roof2 .mood-line { grid-column: 1 / -1; grid-row: 2; max-width: none; margin: 8px 0 0; font-size: 13px; text-align: center }
  .roof2 .cd-pills { grid-column: 1 / -1; grid-row: 3; justify-content: center; gap: 6px; margin-top: 8px }
  .roof2 .cd-pills .tagp2 { background: transparent }
  /* the goal tags under the opening / walk / hours line, each with an arrow curving onto it */
  .roof2 .cd-tags { display: flex; flex-basis: 100%; justify-content: center; gap: 28px; margin-top: 2px }
  .roof2 .cd-tag { display: flex; flex-direction: column; align-items: center }
  /* each arrow draws itself in, then keeps gently pointing down at its word */
  .cd-arrow { animation: arrowBob 1.8s 1.5s ease-in-out infinite; display: block; width: 34px; height: 29px; margin-bottom: -2px; fill: none; stroke: var(--brown); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
  .cd-arrow path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: arrowDraw .7s .3s ease-out forwards }
  .cd-arrow path + path { animation-delay: .9s; animation-duration: .3s }
  .cd-tag:nth-child(2) .cd-arrow { animation-delay: 1.8s }
  .cd-tag:nth-child(2) .cd-arrow path { animation-delay: .55s }
  .cd-tag:nth-child(2) .cd-arrow path + path { animation-delay: 1.15s }
  .roof2 .cd-tag .tagp2 { border: 0; padding: 0 2px; background: transparent; font-size: 15px; font-weight: 800 }
  .roof2 #cdMode { display: none }
  /* separates the live picture of the café from the details below it */
  .cd .cd-grid { grid-template-areas: "plan" "more" "side" "pred" }
  .cd-more-h { margin: 10px 2px 0; font-family: var(--f-disp); font-size: 22px; font-weight: 700; color: var(--ink); text-align: center }
  .cd-more-h { grid-area: more; display: block }
  /* «Кафе дотор» centred, with the picture/table switch under it */
  .cd .plan-card .card-h { flex-direction: column; align-items: center; text-align: center }
  .cd .plan-card .card-h .r { margin: 0 }
  .cd .plan-card .plan-legend { justify-content: center }
  /* «Бүх кафе»: two lamps, one at each side */
  .lamps-hd .lamp.l1 { left: -10px !important }
  .lamps-hd .lamp.l6 { left: calc(100% - 80px) !important }
  .lamps-hd .lamp.l6 .cord { height: 8px !important }
  .plan-sizer { pointer-events: none }
  /* the plan's buttons sit in a row under it, so they never cover a seat */
  .cd .plan-tools { position: static; flex-direction: row; justify-content: flex-end; margin-top: 10px }
  .cd .plan-tools .pt-sep { width: 1px; height: auto; margin: 4px 2px; background: var(--line2) }
}
/* ---------- desktop home: lighter map, window panes, «Танд санал болгох» carousel ---------- */
.drec, .arch-panes { display: none }

@media (min-width:821px) {
  .hero-map.ex-map { opacity: .5 }
  /* the title as on phones: orange «кафе» with a marker stroke that draws in */
  .arch h1 em { font-style: normal; color: var(--orange2); background: linear-gradient(transparent 62%, rgba(255, 207, 113, .65) 0) no-repeat 0 0 / 0 100%; animation: mhMark .7s .5s ease-out forwards }
  /* first screen: the hero leaves room so the «Танд санал болгох» title shows at the bottom */
  .hero { height: calc(100dvh - var(--hd) - 166px); min-height: 460px }
  .drec { display: block; padding-top: 34px }
  /* short screens: smaller table so it never covers the stats under the lamps */
  @media (max-height:820px) { .hero .deco { transform: scale(.68); transform-origin: 50% 100% } .hero .deco:not(.deco-table) { bottom: 0 } }
  .drec-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px }
  .drec-nav { display: flex; gap: 8px }
  .drec-nav button { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line2); border-radius: 50%; background: var(--paper); color: var(--brown); transition: background .2s, border-color .2s, transform .15s }
  .drec-nav button:hover { border-color: var(--brown); background: var(--sand2) }
  .drec-nav button:active { transform: scale(.94) }
  .drec-nav button svg { width: 18px; height: 18px }
  .drec-nav button:first-child svg { transform: scaleX(-1) }
  .drec-chips { display: flex; flex-wrap: wrap; gap: 8px }
  .drec .mh-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border: 1.5px solid var(--line2); border-radius: 999px; background: var(--paper); color: var(--ink2); font-size: 14px; font-weight: 800; transition: background .2s, color .2s, border-color .2s }
  .drec .mh-chip svg { width: 16px; height: 16px }
  .drec .mh-chip:hover { border-color: var(--brown) }
  .drec .mh-chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff }
  .drec-track { display: flex; gap: 30px; margin: 0 -12px; padding: 4px 12px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; scrollbar-width: none; outline: 0 }
  .drec-track::-webkit-scrollbar { display: none }
  .drec .rc { flex: 0 0 272px; scroll-snap-align: start; position: relative; cursor: pointer; animation: lIn .4s both }
  .drec .rc-body { transition: transform .25s cubic-bezier(.3, 1.4, .5, 1) }
  .drec .rc:hover .rc-body { transform: translateY(-4px) }
  .drec .rc:hover .rc-more i { transform: translateX(3px) }
  .drec .mh-empty { color: var(--ink3); margin: 20px 0 }
  /* rooftops, as on phones (five shapes in turn) */
  .drec-track { padding-top: 10px }
  .drec .rc-roof { position: relative; z-index: 2; margin: 0 -9px -8px; filter: drop-shadow(0 4px 3px rgba(62, 42, 23, .28)) }
  .drec .rc-roof svg { display: block; width: 100%; height: auto; overflow: visible }
  .drec .rc-body { border-radius: 6px 6px 22px 22px }
  .drec .rc-card { transition: transform .25s cubic-bezier(.3, 1.4, .5, 1) }
  .drec .rc:hover .rc-card { transform: translateY(-4px) }
  .drec .rc:hover .rc-body { transform: none }
  .drec .rf-lantern { transform-box: fill-box; transform-origin: 50% 0; animation: chSway 2.6s ease-in-out infinite alternate }
  .drec .rf-smoke circle { animation: rfSmoke 2.6s ease-out infinite }
  .drec .rf-smoke circle + circle { animation-delay: -1.3s }
  /* just the round arrow, without the frosted bar behind it */
  .drec .rc-more { border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none }
}

/* the arch reads as a window: a frame bar down the middle and one across, over the faded map */
@media (min-width:1000px) {
  .arch-panes { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none }
  .arch-panes::before, .arch-panes::after { content: ""; position: absolute; background: var(--brown); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08) }
  .arch-panes::before { left: 50%; top: 0; bottom: 0; width: 10px; margin-left: -5px }
  .arch-panes::after { left: 0; right: 0; top: 64%; height: 10px; margin-top: -5px }
}

/* menu editor: who changed an item last (owner / staff / LiveSpace admin) */
.me-by{font-weight:700;color:var(--ink2)}
.me-by-admin{color:var(--brown)}
.adm-menu .card-h h2{display:flex;align-items:center;gap:8px}
.adm-menu .card-h h2 svg{width:22px;height:22px;color:var(--brown)}

/* admin: café owner assignment */
.adm-owner h3{display:flex;align-items:center;gap:8px}
.adm-owner h3 svg{width:20px;height:20px;color:var(--brown)}
.adm-owner-now{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin:6px 0 10px}
.adm-owner .adm-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center}


/* ===== Бодит газрын зураг (MapLibre GL · js/map-gl.js). Ачаалал бүтэлгүйтвэл зурсан SVG хэвээр. ===== */
.map-gl,
.map-gl.maplibregl-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  font-family: var(--f-ui, Manrope), sans-serif
}

.ex-map[data-map="gl"] {
  cursor: auto
}

/* Одоогийн тэмдгийг (markerHTML) MapLibre байрлуулна: өөрийн left/top/transform-ийг цуцална. */
.ml-mk .mk {
  position: relative;
  left: auto !important;
  top: auto !important;
  transform: none
}

.maplibregl-marker.ml-mk { z-index: 2 }
.maplibregl-marker.ml-mk:has(.mk.dim) { z-index: 1 }
.maplibregl-marker.ml-mk:has(.mk.hit) { z-index: 4 }
.maplibregl-marker.ml-mk:has(.mk.sel) { z-index: 5 }
.maplibregl-marker.ml-mk:has(.mk.hov),
.maplibregl-marker.ml-mk:hover { z-index: 6 }

/* «Та энд»: зурсан газрын зурагтай адил цэнхэр цэг (зөвхөн «Миний байршил» дарсны дараа). */
.ml-you {
  position: relative;
  width: 18px;
  height: 18px;
  pointer-events: none
}

.ml-you-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #1A73E8;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25)
}

.ml-you-pulse {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: #1A73E8;
  opacity: .18;
  animation: mlYou 2.2s ease-out infinite
}

.ml-you b {
  position: absolute;
  left: 24px;
  top: 0;
  font: 800 12px Manrope, sans-serif;
  color: #1A73E8;
  white-space: nowrap;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff
}

@keyframes mlYou {
  0% { transform: scale(.5); opacity: .5 }
  100% { transform: scale(1.8); opacity: 0 }
}

/* OSM attribution: товч, тайлбартай давхцахгүй */
.ex-map .maplibregl-ctrl-top-left {
  z-index: 6
}

.ex-map .maplibregl-ctrl-attrib {
  font-size: 11px;
  color: var(--ink2);
  background: rgba(255, 255, 255, .9)
}

.ex-map .maplibregl-ctrl-attrib a {
  color: var(--ink2)
}

/* Урьдчилсан карт: «Чиглэл авах» (Google Maps) */
.pv-dir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 1.5px solid var(--line2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--brown);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer
}

.pv-dir svg {
  width: 15px;
  height: 15px
}

.pv-dir:hover {
  border-color: var(--brown)
}

.pv-dir:disabled {
  color: var(--ink3);
  cursor: default;
  border-style: dashed
}

@media (prefers-reduced-motion: reduce) {
  .ml-you-pulse { animation: none }
}

html.rm .ml-you-pulse {
  animation: none
}

.ex-map .maplibregl-ctrl-attrib.maplibregl-compact-show { max-width: 250px }

/* утсан дээр «ДЕМО» тайлбарын доор: OSM attribution үргэлж харагдана */
@media (max-width:820px) {
  .ex-map .maplibregl-ctrl-top-left { top: 58px }
}
