/* Console layout: glass sidebar, content canvas, KPI tiles, charts, modals. */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; gap: 0; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px;
  border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .45));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.side .logo { padding: 4px 8px; }
.org-card { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 12, 14, .014); display: grid; gap: 6px; }
.org-card b { font-weight: 500; font-size: 14px; line-height: 1.3; }
.org-card .row { display: flex; gap: 6px; flex-wrap: wrap; }
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 11px; color: var(--ink-2);
  font-size: 14px; transition: background .2s, color .2s;
}
.side-nav a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; flex: none; }
.side-nav a:hover { background: rgba(12, 12, 14, .028); color: var(--ink); }
.side-nav a[aria-current="page"] { background: rgba(12, 12, 14, .044); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.side-foot { margin-top: auto; display: grid; gap: 10px; font-size: 13px; color: var(--muted); }
.side-foot .user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-foot .user > div { min-width: 0; }
.side-foot .user > div > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .btn { justify-self: start; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font: 600 14px/1 var(--sans); flex: none; }

.main { min-width: 0; padding: 30px clamp(18px, 3.4vw, 46px) 70px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.topbar h1 { font: 600 clamp(26px, 2.8vw, 34px)/1.1 var(--display); letter-spacing: -.035em; margin: 6px 0 0; }
.topbar h1 em { color: var(--ink-2); }
.topbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 20px; display: grid; gap: 10px; }
.kpi .label { font: 500 11px/1.2 var(--sans); letter-spacing: 0; color: var(--muted); }
.kpi .value { font: 600 32px/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
@media (max-width: 1100px) { .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; } }
.box { padding: 22px; min-width: 0; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.box-head h2 { font: 500 15px/1.3 var(--sans); margin: 0; }
.box-head .muted { font-size: 12.5px; }

/* bar chart */
.chart { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: 4px; height: 170px; padding-top: 10px; }
.chart .bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.chart .bar span { display: block; width: 100%; min-height: 2px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, rgba(12, 12, 14, .88), rgba(12, 12, 14, .42)); transition: opacity .2s; }
.chart .bar.empty span { background: rgba(12, 12, 14, .044); }
.chart .bar b { position: absolute; left: 50%; bottom: calc(var(--h) + 6px); transform: translateX(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--accent);  }
.chart .bar:hover span { opacity: .7; }
.chart-axis { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--faint); margin-top: 10px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--ink); margin-right: 6px; vertical-align: -1px; }
.legend i.dot { border-radius: 50%; background: var(--accent); }

.list { display: grid; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list-row:last-child { border-bottom: 0; }
.list-row .meta { font-size: 12.5px; color: var(--muted); }
.empty { padding: 34px 10px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .h3 { color: var(--ink); }

/* ---------- hotel search ---------- */
.crumb { margin: 0; font-size: 13px; color: var(--muted); }
.search-box { padding: 18px; margin-bottom: 22px; position: relative; z-index: 5; }
.search-grid { display: grid; gap: 12px; grid-template-columns: minmax(200px, 1.7fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(170px, 1.3fr) 84px 96px auto; align-items: end; }
.search-grid input[type="date"] { min-width: 0; padding-right: 8px; }
.search-grid .field { position: relative; min-width: 0; }
.search-go { height: 46px; padding: 0 26px; }
.nights { color: var(--muted); font-weight: 400; margin-left: 4px; }
.guests-btn { text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest, .guests { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.suggest { width: max(100%, 380px); max-height: 380px; overflow-y: auto; }
.suggest-item { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.suggest-item[aria-selected="true"], .suggest-item:hover { background: rgba(12, 12, 14, .039); }
.suggest-item .kind { font-size: 11.5px; color: var(--muted); }
.suggest-item .kind.city { color: var(--ink-2); }
.suggest-item .what { min-width: 0; display: grid; }
.suggest-item .what b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-item .what small, .suggest-item .count { font-size: 12px; color: var(--muted); }
.guests { width: 320px; padding: 14px; display: grid; gap: 14px; }
.guest-room { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.guest-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.guest-head b { font-weight: 500; }
.stepper { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-2); }
.stepper > div { display: flex; align-items: center; gap: 12px; }
.stepper .btn { width: 34px; padding: 0; font-size: 16px; }
.stepper b { min-width: 16px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.ages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ages select { height: 38px; }
.guest-foot { display: flex; justify-content: space-between; gap: 8px; }
.loading { display: flex; align-items: center; gap: 12px; padding: 34px 4px; color: var(--muted); font-size: 14px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { all: unset; cursor: pointer; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.link:hover { color: var(--ink); }

/* results */
.results { transition: opacity .2s; }
.results.refining { opacity: .55; pointer-events: none; }
.results-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 22px; align-items: start; }
.filters { position: sticky; top: 18px; padding: 18px; display: grid; gap: 4px; max-height: calc(100vh - 36px); overflow-y: auto; scrollbar-width: thin; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; }
.filters-head b { font-weight: 600; font-size: 15px; }
.fgroup { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0 12px; display: grid; gap: 8px; min-width: 0; }
.fgroup legend { float: left; width: 100%; padding: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--ink); }
.fgroup .input { height: 38px; }
.check { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check small { color: var(--faint); font-variant-numeric: tabular-nums; }
.check input, .switch-check { appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 5px; border: 1px solid var(--line-3); background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--on-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check:hover { color: var(--ink); }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.seg-sm { padding: 3px; }
.seg-sm button { height: 30px; padding: 0 12px; font-size: 13px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.results-head h2 { margin: 0; font: 600 22px/1.2 var(--display); letter-spacing: -.025em; }
.results-head p { margin: 4px 0 0; font-size: 13.5px; }
.sort-label { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sort { height: 38px; min-width: 200px; }
.results-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; font-size: 12.5px; color: var(--muted); }

.hotel { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 20px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); margin-bottom: 12px; transition: border-color .2s; }
.hotel:hover { border-color: var(--line-2); }
.hotel-img { all: unset; cursor: pointer; display: block; align-self: stretch; position: relative; min-height: 196px; border-radius: 12px; overflow: hidden; }
.hotel-img img, .hotel-img .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: rgba(12, 12, 14, .04); }
.ph { background: radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, .9), transparent 55%), linear-gradient(140deg, #ecece8, #f8f8f6); border: 1px solid var(--line); }
.hotel-body { display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 6px 6px 6px 0; min-width: 0; }
.hotel-top { display: flex; justify-content: space-between; gap: 16px; }
.hotel h3 { margin: 0 0 6px; font: 600 18px/1.3 var(--display); letter-spacing: -.02em; }
.hotel h3 button { all: unset; cursor: pointer; }
.hotel h3 button:hover { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.stars { margin-left: 8px; font-size: 12px; letter-spacing: 1px; color: var(--warn); vertical-align: 2px; }
.meta { font-size: 13px; color: var(--muted); margin: 0 0 3px; }
.score { display: flex; align-items: center; gap: 10px; flex: none; text-align: right; }
.score > span { display: grid; font-size: 13px; font-weight: 500; }
.score small { font-size: 12px; font-weight: 400; color: var(--muted); }
.score b { order: 2; min-width: 38px; height: 38px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px 10px 10px 2px; background: var(--ink); color: var(--on-ink); font: 600 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.hotel-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.hotel-foot .tags, .rate .tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hotel-foot .tags { flex: 1 1 200px; min-width: 0; }
.room-name { width: 100%; font-size: 13.5px; color: var(--ink-2); margin-bottom: 2px; }
.from { display: grid; justify-items: end; gap: 3px; text-align: right; font-size: 12.5px; margin-left: auto; }
.from b { font: 600 24px/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.from .btn { margin-top: 8px; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 22px 0 6px; }
.pager .btn { min-width: 36px; }

/* hotel page */
.modal.wide { width: min(1080px, 100%); }
.hp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-right: 80px; }
.hp-head h2 { margin: 2px 0 4px; }
.hp-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 150px 150px; gap: 8px; margin: 18px 0; }
.hp-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.hp-gallery img.lead { grid-row: span 2; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { all: unset; cursor: pointer; padding: 12px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.hp-overview .prose { max-height: none; }
.facility-list { list-style: none; padding: 0; margin: 0; columns: 3 200px; column-gap: 24px; font-size: 13.5px; color: var(--ink-2); }
.facility-list li { padding: 6px 0; break-inside: avoid; border-bottom: 1px solid var(--line); }
.reviews-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.reviews-head .score { text-align: left; }
.review { padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; }
.review p { margin: 8px 0 0; line-height: 1.6; }
.review-top { display: flex; gap: 12px; align-items: center; }
.review-top b { font-weight: 500; }
.review-score { min-width: 34px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.pro { color: var(--ok); } .con { color: var(--bad); }
.room-group { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.room-info img, .room-info .ph { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.room-info h4 { margin: 12px 0 8px; font: 600 15px/1.35 var(--sans); letter-spacing: -.01em; }
.room-facts { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); }
.room-rates { display: grid; align-content: start; }
.rate { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.rate:last-child { border-bottom: 0; }
.rate > div > b { font-weight: 500; }
.rate .tags { margin-top: 8px; }
.rate .breakdown { display: grid; justify-items: end; gap: 2px; font-size: 12px; color: var(--muted); text-align: right; }
.rate .breakdown b { color: var(--ink); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* booking */
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; margin-top: 8px; }
.section-title { font: 600 14px/1.3 var(--sans); margin: 24px 0 12px; letter-spacing: -.005em; }
.book-form .field { margin-top: 10px; }
.book-form textarea.input { height: auto; padding-top: 10px; resize: vertical; }
.guest-block { padding: 14px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; }
.guest-block .label { display: block; margin-bottom: 4px; }
.terms { grid-template-columns: 18px minmax(0, 1fr); margin: 22px 0 6px; }
.terms span { white-space: normal; }
.book-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.book-summary { position: sticky; top: 0; padding: 18px; display: grid; gap: 10px; font-size: 13.5px; }
.book-summary details summary { cursor: pointer; color: var(--ink-2); font-size: 13px; }
dl.sum { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 0; font-size: 13.5px; }
dl.sum dt { color: var(--muted); }
dl.sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
dl.sum .total { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; }
.penalties { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.btn.danger-fill { background: var(--bad); color: #fff; border-color: var(--bad); }

/* bookings */
.box-head.wrap { flex-wrap: wrap; }
.booking-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.booking-filters .input { height: 38px; }
.booking-filters input[type="search"] { width: 280px; }
.booking-filters .inline { display: flex; gap: 8px; align-items: center; font-size: 13px; }
table.rows-link tbody tr { cursor: pointer; }
table.rows-link tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.num.neg { color: var(--bad); }
a.list-row:hover { background: rgba(12, 12, 14, .011); }
.voucher-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.voucher-head h2 { font: 600 24px/1.2 var(--display); letter-spacing: -.025em; margin: 2px 0 2px; }
.voucher-dates { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 22px 0 6px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 12, 14, .011); }
.voucher-dates > div { display: grid; gap: 4px; font-size: 13px; }
.voucher-dates > div:last-child { text-align: right; }
.voucher-dates b { font: 600 18px/1.2 var(--display); letter-spacing: -.02em; }
.nights-pill { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.cards .box + .box { margin-top: 16px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--line-2); display: grid; gap: 14px; }
.timeline li { position: relative; display: grid; gap: 2px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: -20.5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--bg); }
.timeline b { font-weight: 500; text-transform: capitalize; }
.print-only { display: none; }

@media (max-width: 1400px) {
  .search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-grid .dest { grid-column: span 2; }
}
@media (max-width: 980px) {
  .results-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: none; }
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .room-group { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid .dest, .search-grid .guests-wrap, .search-go { grid-column: 1 / -1; }
  .suggest { width: 100%; }
  .hotel { grid-template-columns: minmax(0, 1fr); }
  .hotel-img { min-height: 210px; }
  .hotel-body { padding: 0 4px 4px; }
  .hotel-foot { align-items: stretch; flex-direction: column; }
  .from { justify-items: start; text-align: left; }
  .rate { grid-template-columns: minmax(0, 1fr) auto; }
  .rate .breakdown { justify-items: start; text-align: left; grid-column: 1; }
  .hp-head { margin-right: 0; flex-direction: column; padding-top: 30px; }
  .hp-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 90px; }
  .hp-gallery img:nth-child(n+4) { display: none; }
  .hp-gallery img.lead { grid-column: span 2; grid-row: auto; }
  .booking-filters input[type="search"] { width: 100%; }
  .voucher-dates { grid-template-columns: 1fr 1fr; }
  .nights-pill { display: none; }
}

@media print {
  body { background: #fff !important; color: #000; }
  body::before, .side, .topbar .actions, .demo-bar, .toast, .span-4 { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  .glass { background: #fff !important; border-color: #ccc !important; box-shadow: none !important; backdrop-filter: none !important; }
  .span-8 { grid-column: span 12; }
  .muted, .meta, dl.facts dt, .form-note, .crumb { color: #555 !important; }
  .chip { color: #000 !important; border-color: #999 !important; background: none !important; }
  .print-only { display: block; }
}

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 70; background: rgba(28, 28, 34, .22); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); overflow-y: auto; padding: 6vh 16px; }
.modal { width: min(760px, 100%); margin: 0 auto; padding: 30px; }
.modal h2 { font: 600 24px/1.2 var(--display); letter-spacing: -.035em; margin: 0 0 6px; }
.modal-close { float: right; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 20px 0; font-size: 14px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.gallery { display: flex; gap: 8px; overflow-x: auto; margin: 16px 0; scrollbar-width: thin; }
.gallery img { height: 120px; border-radius: 10px; flex: none; }
.prose { white-space: pre-wrap; color: var(--ink-2); font-size: 14px; line-height: 1.7; max-height: 240px; overflow: auto; }
.secret { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-3); background: #fbfbfa; font: 13px var(--mono); word-break: break-all; }
.notice { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(12, 12, 14, .017); font-size: 13.5px; color: var(--ink-2); }
.notice.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }

/* sandbox workspace switcher */
.env-switch { position: fixed; right: 18px; top: 14px; z-index: 65; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; font-size: 12.5px; }
.env-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); }
.env-badge .live-dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px var(--accent-soft); }
.env-switch .seg a { height: 28px; padding: 0 12px; font-size: 12.5px; }
.env-switch .seg a[aria-current] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
@media print { .env-switch { display: none !important; } }
/* demo bar */
.demo-bar .seg a { height: 30px; }
.demo-bar .seg a[aria-current] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.demo-bar { position: sticky; top: 0; z-index: 60; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 13px; color: var(--ink-2); }

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); gap: 12px; }
  .side .org-card, .side-foot .user { display: none; }
  .side-nav { display: flex; overflow-x: auto; width: 100%; order: 3; gap: 4px; scrollbar-width: none; }
  .side-nav a { flex: none; }
  .side-foot { margin: 0 0 0 auto; }
  .main { padding: 24px 16px 60px; }
  .side .logo .tld { display: none; }
  .topbar h1 { font-size: 30px; }
  .box { padding: 16px; }
  .chart { gap: 2px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi .value { font-size: 32px; }
}

/* ---------- agent tools ---------- */
.recent { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -8px 0 20px; font-size: 13px; }
.chip-btn { cursor: pointer; background: var(--glass); transition: border-color .2s, color .2s; }
.chip-btn:hover { border-color: var(--line-3); color: var(--ink); }
.results-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.switch.sm { font-size: 13px; color: var(--ink-2); gap: 8px; }
.switch.sm input { width: 34px; height: 20px; }
.switch.sm input::after { width: 14px; height: 14px; }
.switch.sm input:checked::after { transform: translateX(14px); }
.net-line { font-size: 12px; color: var(--faint); }
body.customer-view .net-line, body.customer-view .agent-only { display: none !important; }
.from-actions { display: flex; gap: 6px; margin-top: 8px; }
.from .btn { margin-top: 0; }
.shortlist[aria-pressed="true"] { background: var(--accent-soft); border-color: rgba(124, 58, 237, .3); color: var(--accent-ink); }
.quote-bar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 10px 10px 10px 18px; border-radius: 999px; font-size: 13.5px; }
.quote-names { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-actions { display: flex; gap: 6px; }
.map-link { margin-left: 10px; font-size: 13px; }
.hp-gallery { position: relative; }
.photo-count { position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 500; }
.success-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; margin-bottom: 18px; border-color: var(--ok-line); }
.success-banner .tick { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-weight: 700; }
.success-banner b { font-size: 15px; }
.success-banner p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.success-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) {
  .success-banner { grid-template-columns: auto minmax(0, 1fr); }
  .success-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .quote-bar { border-radius: 18px; flex-wrap: wrap; }
  .results-tools { width: 100%; }
  .env-switch { position: static; margin: 10px 16px 0; justify-content: space-between; }
}

/* light theme polish */
.glass.flat { box-shadow: var(--glass-hi), 0 1px 2px rgba(16, 16, 24, .04), 0 12px 32px -20px rgba(16, 16, 24, .12); }
.hotel { background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 2px rgba(16, 16, 24, .04); }
.hotel:hover { border-color: var(--line-3); box-shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 18px 40px -22px rgba(16, 16, 24, .2); }
.modal { background: rgba(255, 255, 255, .9); }
.side { box-shadow: inset -1px 0 0 var(--line); }
.side-nav a[aria-current="page"] { background: #fff; box-shadow: 0 1px 2px rgba(16, 16, 24, .06), inset 0 0 0 1px var(--line); }
.kpi .value { color: var(--ink); }
.score b { border-radius: 9px 9px 9px 2px; }
