/* SPDX-License-Identifier: LicenseRef-Reservoice-Proprietary
   Copyright (c) 2026 Reservoice. All rights reserved. */

/* The dashboard shares the website's tokens so the two read as one product:
   navy ink, one blue for every action, warm paper under white cards, DM Sans
   for everything that is read and Fraunces for the few numbers and the
   greeting that are looked at. Orange means exactly one thing, that a guest
   is waiting on a person; nothing else may use it. */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/dmsans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/dmsans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/fraunces-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/fraunces-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0b1b33;
  --ink-2: #123a6e;
  --blue: #1f509a;
  --blue-deep: #18417e;
  --mist: #e8eff9;
  --sky: #6fa8e8;
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --surface: #ffffff;
  --line: #e3dfd5;
  --line-soft: #efece5;
  --muted: #4a586d;
  --muted-2: #7a8597;
  --wait: #b4541f;
  --wait-bg: #fdf0e6;
  --ok: #2f7a4f;
  --ok-bg: #e6f3ea;
  --wa: #1fa855;
  --ig: #d6336c;
  --web: #0e7490;
  --phone: #1f509a;
  --mail: #6b5b95;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --r: 12px;
  --r-s: 8px;
  --side: 236px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .04), 0 10px 30px -18px rgba(11, 27, 51, .25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 14.5px/1.5 var(--body);
  font-feature-settings: "tnum" 1;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
[hidden] { display: none !important; }

/* ---------- prototype bar: who is looking ---------- */
.proto {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--ink); color: #dfe7f3; font-size: 12.5px;
  padding: 7px max(16px, env(safe-area-inset-right, 0px)) 7px max(16px, env(safe-area-inset-left, 0px));
}
.proto b { color: #fff; font-weight: 600; }
.proto .note { color: #a9b8d0; flex: 1; min-width: 0; }
.proto .seg { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.proto .seg a { color: #c9d5e6; }
.proto .seg a.on { background: #fff; color: var(--ink); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - 32px);
  background: linear-gradient(to right, var(--surface) 0, var(--surface) var(--side), var(--line) var(--side), var(--line) calc(var(--side) + 1px), var(--paper) calc(var(--side) + 1px)); }
.side {
  background: var(--surface);
  padding: 22px 16px 20px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: calc(100vh - 32px); overflow: auto;
}
.side .brand { padding: 2px 8px 4px; color: var(--ink); }
.side .brand .wordmark { height: 20px; width: auto; }
.side .label { font-size: 12px; color: var(--muted-2); margin: 4px 0 6px 8px; }
.picker {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--r-s); padding: 9px 12px;
  font-weight: 500; width: 100%; background: var(--surface); text-align: left; cursor: pointer;
}
.picker:hover { border-color: var(--sky); }
.picker svg { width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.picker .sub { display: block; font-size: 12px; color: var(--muted-2); font-weight: 400; }
.support-link { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0 8px; font-size: 12.5px; font-weight: 500; color: var(--blue); }
.nav { display: grid; gap: 2px; }
.nav a, .nav .off {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: var(--r-s); font-weight: 500; color: var(--ink);
}
.nav a:hover { background: var(--paper); }
.nav a.on { background: var(--mist); color: var(--blue); font-weight: 600; }
.nav .off { color: var(--muted-2); cursor: default; }
.nav .off small { font-size: 11.5px; font-weight: 500; background: var(--paper-2); color: var(--muted); border-radius: 999px; padding: 2px 8px; }
.nav .count { font-size: 11.5px; font-weight: 700; color: #c2410c; background: var(--wait-bg); border-radius: 999px; padding: 2px 8px; }
.nav .count.calm { color: var(--blue); background: var(--mist); }
.nav-group { margin-top: 6px; }
.side .foot { margin-top: auto; font-size: 12px; color: var(--muted-2); padding: 0 8px; }
.menu-btn { display: none; }

.main { min-width: 0; padding: 26px clamp(16px, 3vw, 40px) 72px; }
.wrap { max-width: 1180px; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.top.slim { justify-content: flex-end; margin-bottom: 8px; }
.top .date { font-size: 13px; color: var(--muted); }
.top .hello { font: 500 30px/1.15 var(--display); letter-spacing: -.01em; margin-top: 2px; }
.top .tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.seg a, .seg button { padding: 7px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.seg a.on, .seg button.on { background: var(--ink); color: #fff; font-weight: 600; }
.seg a:hover:not(.on) { color: var(--ink); }

.user { position: relative; }
.user > button {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font-size: 13px; font-weight: 500;
}
.user .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink-2); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.user .menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px;
}
.user .menu a, .user .menu .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 7px; font-size: 13.5px; }
.user .menu a:hover { background: var(--paper); }
.user .menu .row { color: var(--muted); }
.user .menu .sep { border-top: 1px solid var(--line-soft); margin: 4px 0; }
.lang-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.lang-seg a { padding: 3px 9px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lang-seg a.on { background: var(--ink); color: #fff; }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font: 500 26px/1.2 var(--display); letter-spacing: -.01em; }
.page-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; max-width: 60ch; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; display: grid; gap: 4px; position: relative; min-width: 0; }
.kpi .k { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.kpi .v { font: 500 34px/1.1 var(--display); letter-spacing: -.01em; margin-top: 4px; }
.kpi .v small { font: 500 16px/1 var(--body); color: var(--muted); margin-left: 4px; }
.kpi .v small.low { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--paper-2); border-radius: 999px; padding: 3px 8px; vertical-align: middle; margin-left: 8px; }
.kpi .n { font-size: 12.5px; color: var(--muted); }
.kpi .n.up { color: var(--blue); font-weight: 600; }
.kpi .n.down { color: var(--muted); font-weight: 600; }
.kpi .n.late { color: var(--wait); font-weight: 600; }
.how { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted-2); font-size: 11px; font-weight: 600; cursor: help; }
.how .tip {
  display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 15;
  width: 260px; background: var(--ink); color: #e9eef6; font-size: 12.5px; line-height: 1.45; font-weight: 400;
  padding: 10px 12px; border-radius: 9px; text-align: left; cursor: default;
}
.how:hover .tip, .how:focus-within .tip { display: block; }
.kpi:first-child .how .tip { left: 0; transform: none; }
.quiet { background: var(--paper-2); border-radius: var(--r-s); padding: 10px 14px; font-size: 13px; color: var(--muted); margin: -4px 0 18px; }

/* ---------- cards and lists ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.card-head b { display: block; font-size: 15px; font-weight: 600; }
.card-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-head .all { font-size: 13px; color: var(--blue); font-weight: 500; white-space: nowrap; }
.card-body { padding: 0 18px 16px; }
.card .empty { padding: 20px 18px 22px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line-soft); }
.card .empty .ghost { margin-top: 10px; }
.rows > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-soft); }
.rows > li.sample { background: #fbfaf7; }
.rows .text { min-width: 0; }
.rows .text b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .text > span { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .age { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rows .age.late { color: var(--wait); }
.reqs > li { grid-template-columns: minmax(0, 1fr) auto; }

.pill { display: inline-grid; place-items: center; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--mist); color: var(--blue); }
.pill.whatsapp { background: #e6f6ec; color: #16793d; }
.pill.instagram_dm, .pill.instagram { background: #fbe8ef; color: #a8285a; }
.pill.web { background: #e3f3f6; color: var(--web); }
.pill.phone { background: var(--mist); color: var(--phone); }
.pill.email { background: #ece9f4; color: var(--mail); }
.pill.ghost { background: var(--paper-2); color: var(--muted); font-weight: 500; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.late { color: var(--wait); background: var(--wait-bg); }
.tag.open { color: var(--blue); background: var(--mist); }
.tag.done { color: var(--ok); background: var(--ok-bg); }
.tag.off { color: var(--muted); background: var(--paper-2); }
.tag.sample { color: var(--muted); background: var(--paper-2); font-weight: 500; display: inline-block; margin-left: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); margin-right: 7px; vertical-align: 1px; }
.dot.live, .dot.connected { background: var(--ok); }
.dot.setup { background: var(--wait); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-s); font-size: 13.5px; font-weight: 600; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--paper); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.ghost { border-color: var(--line); color: var(--muted); font-weight: 500; }
.btn.ghost:hover { color: var(--ink); }
.btn.small { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.done { border-color: var(--ok-bg); background: var(--ok-bg); color: var(--ok); cursor: default; }
.btn svg { width: 16px; height: 16px; }

/* ---------- chart ---------- */
.chart { position: relative; height: 200px; padding: 6px 18px 16px; }
.chart canvas { width: 100% !important; height: 100% !important; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); padding: 0 18px 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfbf8; }
.table .num { font-variant-numeric: tabular-nums; text-align: right; }
.table .when { color: var(--muted); white-space: nowrap; font-size: 13px; }
.table .trunc { display: block; max-width: 44ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .guest { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.table a.link { color: var(--blue); font-weight: 500; }
.tscroll { overflow-x: auto; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--muted); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 8px 0 10px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--blue); }

/* ---------- thread ---------- */
.takeover { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--r); padding: 14px 18px; margin-bottom: 18px; }
.takeover.paused { border-left-color: var(--wait); background: var(--wait-bg); }
.takeover .t { font-weight: 600; }
.takeover.paused .t { color: var(--wait); }
.takeover .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; max-width: 70ch; }
.chat { display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.msg { padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; word-break: break-word; max-width: 82%; font-size: 14px; line-height: 1.5; }
.msg.in { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: var(--mist); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.staff { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg .meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.msg.staff .meta { color: #b4c3da; }
.composer { margin-top: 18px; max-width: 72ch; }
.composer form { display: flex; gap: 10px; }
.composer textarea { flex: 1; min-height: 44px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.composer .note, .readonly { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.readonly { background: var(--paper-2); border-radius: var(--r-s); padding: 10px 14px; max-width: 72ch; margin-top: 18px; }

/* ---------- forms, drawer, toast ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--mist); }
.field .hint { font-size: 12px; color: var(--muted-2); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.backdrop { position: fixed; inset: 0; background: rgba(11, 27, 51, .35); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--surface); z-index: 31; box-shadow: -20px 0 60px -30px rgba(11, 27, 51, .5); display: flex; flex-direction: column; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font: 500 20px/1.2 var(--display); }
.drawer .body { padding: 20px 22px; overflow: auto; display: grid; gap: 18px; align-content: start; }
.drawer footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; }
.x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.x svg { width: 14px; height: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow); }
.done-box { background: var(--ok-bg); color: var(--ok); border-radius: var(--r-s); padding: 14px 16px; font-weight: 500; }

/* presets */
.presets { display: grid; gap: 8px; }
.preset { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; cursor: pointer; color: var(--ink); font-size: 13.5px; font-weight: 400; text-align: left; }
.preset:has(input:checked) { border-color: var(--blue); background: var(--mist); }
.preset input { margin: 3px 0 0; accent-color: var(--blue); width: 16px; height: 16px; }
.preset > span { display: block; }
.preset b { display: block; font-weight: 600; }
.preset > span > span { display: block; font-size: 12.5px; color: var(--muted); }

/* the permission matrix */
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 0; font-size: 12.5px; }
.matrix td { padding: 5px 0; border-top: 1px solid var(--line-soft); }
.matrix td:last-child, .matrix th:last-child { text-align: right; }
.matrix td:first-child { font-weight: 500; }
.lvl { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.lvl label { padding: 5px 10px; font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: pointer; border-left: 1px solid var(--line); }
.lvl label:first-child { border-left: 0; }
.lvl label:has(input:checked) { background: var(--ink); color: #fff; }
.lvl label.over { color: var(--muted-2); background: var(--paper-2); cursor: not-allowed; }
.lvl input { position: absolute; opacity: 0; width: 0; height: 0; }
.rule { font-size: 12.5px; color: var(--muted); background: var(--paper-2); border-radius: var(--r-s); padding: 9px 12px; }

/* ---------- hotel profile ---------- */
.profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile .card { padding-bottom: 6px; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0; }
.kv > div { display: contents; }
.kv dt, .kv dd { padding: 10px 18px; border-top: 1px solid var(--line-soft); margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.kv dd .missing { color: var(--muted-2); font-style: italic; }
.kv dd .edit { font-size: 12.5px; color: var(--blue); font-weight: 500; white-space: nowrap; opacity: 0; }
.kv > div:hover .edit, .kv dd:hover .edit { opacity: 1; }
.banner { background: var(--mist); border-radius: var(--r-s); padding: 12px 16px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }
.banner.support { background: var(--ink); color: #dfe7f3; padding: 8px 14px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; }
.banner.support a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- empty / soon ---------- */
.soon { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 40px; max-width: 640px; display: grid; gap: 14px; }
.soon .big { font: 500 28px/1.2 var(--display); }
.soon ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.placeholder { border: 1px dashed var(--line); border-radius: var(--r); padding: 40px; color: var(--muted); max-width: 640px; }

/* ---------- sign-in screens (login, password, forgot, reset): no shell ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 45% 55%; background: var(--surface); }
.auth-brand {
  background: var(--ink); color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px;
}
.auth-brand .wordmark { height: 34px; width: auto; }
.auth-tag { color: rgba(255, 255, 255, .68); font-size: 14px; margin-top: 16px; max-width: 30ch; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 24px 12% 24px 24px; }
.auth-box { width: 100%; max-width: 340px; }
.auth-box h1 { font: 600 20px/1.3 var(--body); margin-bottom: 16px; overflow-wrap: anywhere; }
.auth-box form { display: flex; flex-direction: column; gap: 6px; }
.auth-box label { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.auth-box input:not([type=hidden]) {
  width: 100%; height: 44px; border-radius: var(--r-s); padding: 0 12px;
  border: 1px solid var(--line); background: var(--surface);
}
.auth-box input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--mist); }
.auth-box .btn { width: 100%; min-height: 44px; margin-top: 10px; }
.auth-hint { font-size: 12px; color: var(--muted-2); }
.auth-intro { color: var(--muted); margin-bottom: 14px; }
.auth-error, .auth-note { border-radius: var(--r-s); padding: 12px; font-size: 13px; margin-bottom: 14px; }
.auth-error { background: #fbeceb; color: #9b2c2c; }
.auth-note { background: var(--mist); color: var(--ink-2); }
.auth-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; }
.auth-links a, .auth-linkbtn { color: var(--blue); }
.auth-links a:hover, .auth-linkbtn:hover { text-decoration: underline; }
.auth-box form.auth-inline { display: inline; }
.auth-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; }
/* The mark only moves above the form once the brand panel is gone. */
.auth-mark { display: none; color: var(--ink); margin-bottom: 22px; }
.auth-mark .wordmark { height: 22px; width: auto; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form { padding: 24px 16px; align-items: flex-start; padding-top: 12vh; }
  .auth-mark { display: block; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .shell { background: var(--paper); }
  .side { position: static; height: auto; border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 10px; }
  .side .brand { display: flex; align-items: center; justify-content: space-between; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-s); padding: 6px 10px; font-size: 13px; font-weight: 500; cursor: pointer; }
  .menu-btn svg { width: 16px; height: 16px; }
  .side .collapsible { display: none; }
  .side.open .collapsible { display: block; }
  .side .foot { display: none; }
  .profile { grid-template-columns: 1fr; }
  .top .hello { font-size: 24px; }
}
@media (max-width: 520px) {
  .proto .note { display: none; }
  .proto { justify-content: space-between; }
  .kpis { grid-template-columns: 1fr; }
  .kpi .v { font-size: 30px; }
  .grid2 { grid-template-columns: 1fr; }
  .rows > li { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
  .rows > li .age { grid-column: 1; }
  .rows > li .btn { grid-column: 2; justify-self: end; }
  .reqs > li { grid-template-columns: minmax(0, 1fr); }
  .reqs > li > .tag, .reqs > li > div { justify-self: start; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { padding-bottom: 0; border-top: 1px solid var(--line-soft); }
  .kv dd { border-top: 0; padding-top: 2px; }
  .kv dd .edit { opacity: 1; }
  .msg { max-width: 94%; }
  .composer form { flex-direction: column; }
  .tabs { gap: 14px; }
  .table .trunc { max-width: 26ch; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- live shell (templates/dash/base.html) ---------- */
/* No prototype bar above the shell, so the full viewport height is ours. */
body.dash .shell { min-height: 100vh; }
body.dash .side { height: 100vh; }
.pick { position: relative; }
.hotel-one { padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-s); font-weight: 500; overflow-wrap: anywhere; }
.pick > summary { list-style: none; }
.pick > summary::-webkit-details-marker { display: none; }
.pick-menu {
  margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface);
  padding: 4px; display: grid; gap: 2px; max-height: 50vh; overflow: auto;
}
.pick-menu a, .pick-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; border: 0;
  background: transparent; font-size: 13.5px; cursor: pointer; overflow-wrap: anywhere;
}
.pick-menu a:hover, .pick-menu button:hover { background: var(--paper); }
.pick-menu .on { background: var(--mist); color: var(--blue); font-weight: 600; }
.pick-menu form { margin: 0; }
.user .uname { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user .menu form { margin: 0; }
.user .menu .menu-item {
  display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 7px; border: 0;
  background: transparent; font-size: 13.5px; cursor: pointer;
}
.user .menu .menu-item:hover { background: var(--paper); }
.lang-seg button { padding: 3px 9px; font-size: 12px; font-weight: 600; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.lang-seg button.on { background: var(--ink); color: #fff; }
.banner.support form { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.card.spaced { margin-top: 16px; }
.card-head .tag { margin-left: 6px; }
.hotel-of { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.rows .text .summary { color: var(--ink); white-space: normal; }
.chan { display: inline-grid; place-items: center; color: var(--muted-2); }
.chan.whatsapp { color: var(--wa); }
.chan.instagram_dm { color: var(--ig); }
.chan.web { color: var(--web); }
.chan.phone { color: var(--phone); }
.chan.email { color: var(--mail); }
@media (min-width: 1101px) { .kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  body.dash .shell { min-height: 0; }
  body.dash .side { height: auto; }
  .side.open .nav.collapsible { display: grid; }
}
@media (max-width: 520px) {
  .user .uname { max-width: 14ch; }
  .rows .text b { white-space: normal; }
}
