/* Tiny Drupal Taxi — one stylesheet for the office, the booking site and the installer.
   Identity: the road. Asphalt sidebar, lane-grey rules, and the yellow commercial
   number plate as the one signature element (registration numbers, booking references). */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --asphalt: #1f2933;
  --asphalt-2: #2b3742;
  --asphalt-3: #3a4855;
  --plate: #f5c518;
  --plate-ink: #111418;
  --road: #f7f8f5;
  --paper: #ffffff;
  --lane: #d9ddd6;
  --lane-soft: #ebede8;
  --ink: #1f2933;
  --muted: #5b6670;
  --signal: #1e8e5a;
  --signal-soft: #e3f3ea;
  --brake: #c8382e;
  --brake-soft: #fbe8e6;
  --amber: #c26a00;
  --amber-soft: #fdf0dc;
  --sky: #1f5f9e;
  --sky-soft: #e6eef7;
  --radius: 6px;
  --shadow: 0 1px 0 var(--lane), 0 6px 18px -12px rgba(31, 41, 51, .35);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--road); }
a { color: var(--sky); }
a:hover { color: var(--asphalt); }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1.1; margin: 0 0 .5rem; letter-spacing: .01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .75rem; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--plate); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img { max-width: 100%; }

/* ------------------------------------------------------------------ plate */
.plate {
  display: inline-block; font-family: var(--cond); font-weight: 700; letter-spacing: .06em;
  background: var(--plate); color: var(--plate-ink); border: 2px solid var(--plate-ink);
  border-radius: 4px; padding: 0 .45em; line-height: 1.5; white-space: nowrap; font-size: .95rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.plate.big { font-size: 1.6rem; padding: .05em .5em; }
.plate.ref { background: var(--paper); }

/* ----------------------------------------------------------------- office */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--asphalt); color: #dfe5ea; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .brand { padding: 1.1rem 1.1rem .9rem; display: flex; gap: .7rem; align-items: center; border-bottom: 2px dashed var(--asphalt-3); }
.side .brand b { display: block; font-family: var(--cond); font-size: 1.15rem; color: #fff; line-height: 1.1; }
.side .brand span { font-size: .8rem; color: #a9b4bd; }
.side nav { padding: .6rem 0 1rem; flex: 1; }
.side .group { font-family: var(--cond); font-size: .8rem; color: #8e9aa4; padding: .9rem 1.1rem .25rem; letter-spacing: .04em; }
.side a { display: flex; align-items: center; gap: .6rem; color: #dfe5ea; text-decoration: none; padding: .42rem 1.1rem; border-left: 4px solid transparent; font-weight: 500; }
.side a:hover { background: var(--asphalt-2); color: #fff; }
.side a[aria-current="page"] { background: var(--asphalt-2); border-left-color: var(--plate); color: #fff; }
.side a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side .who { border-top: 2px dashed var(--asphalt-3); padding: .9rem 1.1rem; font-size: .9rem; }
.side .who a { padding: .2rem 0; border: 0; display: inline; color: var(--plate); }
.navtoggle { display: none; }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.6rem; border-bottom: 1px solid var(--lane); background: var(--paper); position: sticky; top: 0; z-index: 30; }
.topbar .crumbs { font-size: .9rem; color: var(--muted); }
.topbar .actions { display: flex; gap: .6rem; align-items: center; }
.bell { position: relative; display: inline-flex; padding: .3rem; color: var(--ink); }
.bell .dot { position: absolute; top: 0; right: 0; background: var(--brake); color: #fff; font-size: .7rem; border-radius: 9px; padding: 0 .35rem; line-height: 1.3; }
.content { padding: 1.4rem 1.6rem 3rem; max-width: 1400px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.pagehead p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 600 .95rem/1 var(--font); padding: .62rem 1rem; border-radius: var(--radius); border: 2px solid var(--asphalt); background: var(--asphalt); color: #fff; text-decoration: none; cursor: pointer; min-height: 40px; }
.btn:hover { background: var(--asphalt-2); color: #fff; }
.btn.go { background: var(--plate); color: var(--plate-ink); border-color: var(--plate-ink); }
.btn.go:hover { background: #ffd43b; color: var(--plate-ink); }
.btn.ok { background: var(--signal); border-color: var(--signal); }
.btn.danger { background: var(--paper); color: var(--brake); border-color: var(--brake); }
.btn.danger:hover { background: var(--brake-soft); }
.btn.quiet { background: var(--paper); color: var(--ink); border-color: var(--lane); }
.btn.quiet:hover { border-color: var(--asphalt); }
.btn.small { padding: .35rem .6rem; min-height: 32px; font-size: .85rem; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
form.inline { display: inline; }

/* ------------------------------------------------------------------ forms */
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.field { margin-bottom: .9rem; }
.field .help { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=datetime-local], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: .55rem .65rem; border: 1.5px solid var(--lane); border-radius: var(--radius); background: var(--paper); color: var(--ink); min-height: 42px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--asphalt); outline: none; box-shadow: 0 0 0 3px rgba(245, 197, 24, .45); }
input[type=checkbox], input[type=radio] { width: 1.1rem; height: 1.1rem; accent-color: var(--asphalt); vertical-align: -2px; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; margin-bottom: .5rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-family: var(--cond); font-weight: 700; font-size: 1.15rem; margin-bottom: .6rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 150px; }

/* ------------------------------------------------------------------ panels */
.panel { background: var(--paper); border: 1px solid var(--lane); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel.stripe { border-left: 5px solid var(--asphalt); }
.panel.stripe.ok { border-left-color: var(--signal); }
.panel.stripe.warn { border-left-color: var(--amber); }
.panel.stripe.bad { border-left-color: var(--brake); }
.panel.dark { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
.panel.dark .muted { color: #b9c3cb; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.cols.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* stats: a strip of road signs, not a wall of identical cards */
.signs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--lane); border-radius: var(--radius); background: var(--paper); margin-bottom: 1rem; }
.sign { flex: 1 1 150px; padding: .9rem 1.1rem; border-right: 1px dashed var(--lane); }
.sign:last-child { border-right: 0; }
.sign b { display: block; font-family: var(--cond); font-size: 1.9rem; line-height: 1; }
.sign span { font-size: .85rem; color: var(--muted); }
.sign a { text-decoration: none; color: inherit; }

/* ------------------------------------------------------------------ tables */
.tablewrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--lane); border-radius: var(--radius); margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font-family: var(--cond); font-weight: 600; font-size: .95rem; color: var(--muted); padding: .6rem .8rem; border-bottom: 2px solid var(--lane); white-space: nowrap; }
td { padding: .6rem .8rem; border-bottom: 1px dashed var(--lane); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: var(--road); }
.empty { padding: 2rem; text-align: center; color: var(--muted); }
.pager { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; margin: -.4rem 0 1rem; font-size: .9rem; }

/* ------------------------------------------------------------- status pills */
.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .55rem; border-radius: 99px; background: var(--lane-soft); color: var(--ink); white-space: nowrap; }
.pill.ok { background: var(--signal-soft); color: var(--signal); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.bad { background: var(--brake-soft); color: var(--brake); }
.pill.info { background: var(--sky-soft); color: var(--sky); }
.pill.dark { background: var(--asphalt); color: #fff; }

/* ------------------------------------------------------------------ flash */
.flash { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid; font-weight: 500; white-space: pre-line; }
.flash.ok { background: var(--signal-soft); border-color: var(--signal); color: #145c3b; }
.flash.error { background: var(--brake-soft); border-color: var(--brake); color: #8f2119; }
.flash.warn { background: var(--amber-soft); border-color: var(--amber); color: #7a4300; }
.flash.info { background: var(--sky-soft); border-color: var(--sky); color: #174a7b; }

/* --------------------------------------------------------------- timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 3px dashed var(--lane); }
.timeline li { position: relative; padding: 0 0 .9rem .6rem; }
.timeline li::before { content: ""; position: absolute; left: -1.55rem; top: .35rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--asphalt); }
.timeline li.ok::before { border-color: var(--signal); }
.timeline li.bad::before { border-color: var(--brake); }
.timeline time { font-size: .82rem; color: var(--muted); display: block; }

/* ----------------------------------------------------------------- board */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: .8rem; overflow-x: auto; }
.lane { background: var(--lane-soft); border-radius: var(--radius); padding: .6rem; min-height: 200px; }
.lane > h3 { display: flex; justify-content: space-between; font-size: 1rem; margin: .1rem .2rem .6rem; }
.ticket { display: block; background: var(--paper); border: 1px solid var(--lane); border-left: 5px solid var(--asphalt); border-radius: var(--radius); padding: .55rem .65rem; margin-bottom: .5rem; text-decoration: none; color: var(--ink); }
.ticket:hover { border-color: var(--asphalt); }
.ticket.soon { border-left-color: var(--plate); }
.ticket.late { border-left-color: var(--brake); }
.ticket .t { font-family: var(--cond); font-weight: 700; font-size: 1.15rem; }
.ticket .a { font-size: .9rem; }
.ticket .m { font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; gap: .4rem; margin-top: .25rem; }
.map { height: 380px; border-radius: var(--radius); border: 1px solid var(--lane); background: var(--lane-soft); }
.map.tall { height: 520px; }
.driverlist { list-style: none; margin: 0; padding: 0; }
.driverlist li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px dashed var(--lane); }
.dotline { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--lane); margin-right: .35rem; }
.dotline.on { background: var(--signal); }
.dotline.busy { background: var(--plate); }

/* ------------------------------------------------------------------ tabs */
.tabs { display: flex; gap: .2rem; border-bottom: 2px solid var(--lane); margin-bottom: 1rem; overflow-x: auto; }
.tabs a { padding: .5rem .9rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--plate); }

/* ----------------------------------------------------------------- dialog */
dialog { border: 0; border-radius: 10px; padding: 0; width: min(560px, calc(100vw - 2rem)); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(31, 41, 51, .55); }
dialog .dhead { background: var(--asphalt); color: #fff; padding: .8rem 1.1rem; display: flex; justify-content: space-between; align-items: center; }
dialog .dhead h2 { margin: 0; font-size: 1.2rem; }
dialog .dbody { padding: 1.1rem; }
dialog .close { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* ------------------------------------------------------------- fare lines */
.fare { width: 100%; }
.fare td { border-bottom: 1px dotted var(--lane); padding: .35rem 0; }
.fare td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fare tr.total td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; font-size: 1.1rem; padding-top: .5rem; }
.fare .q { color: var(--muted); font-size: .85rem; }

/* ----------------------------------------------------------------- AI bits */
.ai { border: 1.5px dashed var(--sky); background: var(--sky-soft); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; }
.ai h3 { color: var(--sky); font-size: 1rem; display: flex; gap: .4rem; align-items: center; }
.ai .found { font-size: .9rem; margin-top: .4rem; }
.chatbox { position: fixed; right: 1rem; bottom: 1rem; width: min(380px, calc(100vw - 2rem)); background: var(--paper); border: 1px solid var(--lane); border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); z-index: 60; display: none; flex-direction: column; max-height: 70vh; }
.chatbox.open { display: flex; }
.chatbox header { background: var(--asphalt); color: #fff; padding: .6rem .9rem; border-radius: 10px 10px 0 0; display: flex; justify-content: space-between; align-items: center; }
.chatbox .log { padding: .8rem; overflow-y: auto; flex: 1; font-size: .92rem; }
.chatbox .msg { margin-bottom: .6rem; padding: .5rem .7rem; border-radius: 8px; background: var(--lane-soft); white-space: pre-wrap; }
.chatbox .msg.me { background: var(--plate); margin-left: 2rem; }
.chatbox form { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--lane); }
.chatfab { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; }

/* ---------------------------------------------------------- public pages */
.pub-top { background: var(--asphalt); color: #fff; }
.pub-top .in { max-width: 1100px; margin: 0 auto; padding: .9rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pub-top a { color: #fff; text-decoration: none; }
.pub-top .co { display: flex; gap: .7rem; align-items: center; font-family: var(--cond); font-size: 1.3rem; font-weight: 700; }
.pub-top img { max-height: 40px; background: #fff; border-radius: 4px; padding: 2px; }
.pub-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.2rem 3rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .95; }
.hero .road { border-top: 6px dashed var(--plate); width: 140px; margin: 1rem 0 1.2rem; }
.bookcard { background: var(--paper); border: 2px solid var(--asphalt); border-radius: 10px; padding: 1.2rem; box-shadow: 6px 6px 0 var(--asphalt); }
.services { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.services label { margin: 0; }
.services input { position: absolute; opacity: 0; }
.services span { display: inline-block; border: 1.5px solid var(--lane); border-radius: 99px; padding: .3rem .75rem; font-weight: 600; font-size: .88rem; cursor: pointer; background: var(--paper); }
.services input:checked + span { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
.services input:focus-visible + span { outline: 3px solid var(--plate); }
.pub-foot { border-top: 1px solid var(--lane); color: var(--muted); font-size: .85rem; padding: 1.2rem; text-align: center; }
.status-hero { text-align: left; padding: 1.2rem; border-radius: 10px; background: var(--asphalt); color: #fff; margin-bottom: 1rem; }
.status-hero h1 { color: #fff; }
.code { font-family: var(--cond); font-size: 2.4rem; letter-spacing: .3em; background: var(--plate); color: var(--plate-ink); border: 2px solid var(--plate-ink); border-radius: 6px; padding: 0 .4em; display: inline-block; }
.steps { display: flex; gap: .3rem; list-style: none; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; }
.steps li { flex: 1 1 90px; font-size: .78rem; text-align: center; border-top: 5px solid var(--lane); padding-top: .3rem; color: var(--muted); }
.steps li.done { border-top-color: var(--signal); color: var(--ink); }
.steps li.now { border-top-color: var(--plate); color: var(--ink); font-weight: 700; }
.wa { background: #25d366; border-color: #128c4a; color: #06301a; }
.wa:hover { background: #2fe375; color: #06301a; }

/* -------------------------------------------------------------- installer */
.install { max-width: 760px; margin: 2rem auto; padding: 0 1rem; }
.install .card { background: var(--paper); border: 2px solid var(--asphalt); border-radius: 10px; padding: 1.5rem; box-shadow: 6px 6px 0 var(--asphalt); }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { padding: .45rem 0; border-bottom: 1px dashed var(--lane); display: flex; gap: .6rem; }
.checks .y { color: var(--signal); font-weight: 700; }
.checks .n { color: var(--brake); font-weight: 700; }
.key { font-family: ui-monospace, monospace; background: var(--road); border: 1px solid var(--lane); padding: .7rem; border-radius: 6px; word-break: break-all; user-select: all; }
pre.code-block { background: var(--asphalt); color: #e6edf2; padding: .8rem; border-radius: 6px; overflow-x: auto; font-size: .85rem; }

/* ----------------------------------------------------------- print / pdf */
.preview-frame { width: 100%; height: 720px; border: 1px solid var(--lane); border-radius: var(--radius); background: #888; }

/* ---------------------------------------------------------- responsiveness */
@media (max-width: 1100px) {
  .cols, .cols.even { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side nav, .side .who { display: none; }
  .side.open nav, .side.open .who { display: block; }
  .navtoggle { display: inline-flex; margin-left: auto; background: none; border: 2px solid var(--asphalt-3); color: #fff; border-radius: 6px; padding: .3rem .6rem; font: inherit; }
  .side .brand { border-bottom: 0; }
  .topbar { position: static; padding: .7rem 1rem; }
  .content { padding: 1rem 1rem 3rem; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
  .board { grid-template-columns: 1fr; }
  h1 { font-size: 1.6rem; }
  .sign { flex-basis: 45%; border-bottom: 1px dashed var(--lane); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .side, .topbar, .btn, .filters, .chatfab { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
}

/* ---- map pins, booking-site extras */
.pin { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--cond); border: 2px solid var(--asphalt); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.pin.pickup { background: var(--signal); color: #fff; }
.pin.drop { background: var(--plate); color: var(--asphalt); }
.pin.stop { background: #fff; color: var(--asphalt); }
.pin.car { width: 30px; height: 18px; border-radius: 4px; background: var(--plate); }
.pin.car::after { content: "TAXI"; font-size: 10px; letter-spacing: .05em; color: var(--asphalt); }
.pin.car.stale { background: #c9ced2; }
#estimate.loading { opacity: .5; transition: opacity .2s; }
.estimate .fare { margin-top: .2rem; }
.btn.big { min-height: 52px; font-size: 1.1rem; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 2rem; color: var(--lane); cursor: pointer; margin: 0; line-height: 1; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--plate); }
.stars input:focus-visible + label { outline: 3px solid var(--sky); }
[hidden] { display: none !important; }
.btn svg, .pill svg { width: 18px; height: 18px; flex: none; }
.side .brand .plate, .side a .plate { color: var(--asphalt); }
.heatmap { display: grid; grid-template-columns: 2.4rem repeat(24, 1fr); gap: 2px; font-size: .7rem; }
.heatmap div { aspect-ratio: 1; border-radius: 2px; }
.heatmap .lbl { aspect-ratio: auto; color: var(--muted); align-self: center; }
.filled { box-shadow: 0 0 0 3px var(--sky-soft), 0 0 0 4px var(--sky) !important; transition: box-shadow .3s; }
.ai h3 svg, .panel h2 svg, .pagehead svg, .chatfab svg { width: 18px; height: 18px; flex: none; }
.ocr-bar { display: inline-block; width: 90px; height: 6px; background: var(--lane); border-radius: 3px; vertical-align: middle; overflow: hidden; }
.ocr-bar span { display: block; height: 100%; background: var(--sky); transition: width .2s; }
.ocr-result { border: 1px solid var(--lane); border-radius: var(--radius); background: var(--paper); padding: .5rem .7rem; margin-top: .4rem; }
.ocr-result .kv { margin: .2rem 0 .4rem; }

/* UPI QR codes (office booking page, settings test, booking website) */
.upi-card { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: .6rem 0; }
.upi-card svg { flex: none; width: 200px; height: 200px; border: 1px solid var(--lane, #D9DDD6); border-radius: 8px; background: #fff; }
.upi-card > div, .upi-card > p { flex: 1 1 14rem; min-width: 0; }
.upi-box summary { cursor: pointer; margin: .4rem 0; }
.upi-test { display: flex; gap: 1rem; align-items: center; margin: .5rem 0 1rem; }
.upi-test svg { flex: none; width: 140px; height: 140px; }
.upi-pay { border-top: 1px solid var(--lane, #D9DDD6); margin-top: .9rem; padding-top: .7rem; }
.upi-pay h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.upi-pay .btn.upi-app { width: 100%; text-align: center; }
/* a upi:// link only works on phones; on a computer the QR code is the way */
@media (hover: hover) and (pointer: fine) { .upi-pay .upi-app { display: none; } }
@media print { .upi-card svg { border: 0; } }

/* Platform → Sample data: downloadable sample images */
.sample-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.sample-files a { display: flex; flex-direction: column; gap: .25rem; font-size: .78rem; text-decoration: none; overflow-wrap: anywhere; }
.sample-files img { width: 100%; height: 84px; object-fit: cover; object-position: top; border: 1px solid var(--lane, #D9DDD6); border-radius: 6px; background: #fff; }

/* shown on a map when its tiles can't load */
.map { position: relative; }
.map-note { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 500; background: rgba(255,255,255,.95); border: 1px solid var(--lane, #D9DDD6);
  border-radius: 6px; padding: .4rem .6rem; font-size: .8rem; color: #333; }
