/* Travel desk — deep navy, bright gold, white type (after the agent-webinar deck), Rubik everywhere. */
:root {
  color-scheme: dark;
  --bg: #071029; --bg-2: #0B1840; --surface: #0E1C46; --raised: #132555; --sunken: #091434;
  --line: rgba(217, 178, 95, .26); --line-soft: rgba(255, 255, 255, .09);
  --ink: #F6F4EE; --muted: #B5BFD8; --faint: #9AA6C4;
  --gold: #D9B25F; --gold-hi: #F6E3A6; --gold-deep: #B5842F;
  --gold-grad: linear-gradient(135deg, #F6E3A6 0%, #D9B25F 48%, #B5842F 100%);
  --ok: #6FD6A4; --ok-bg: rgba(111, 214, 164, .13); --late: #FF9C8C; --late-bg: rgba(255, 156, 140, .14);
  --warn: #F2C56B; --warn-bg: rgba(242, 197, 107, .14); --info: #9DBEFF; --info-bg: rgba(157, 190, 255, .13);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(0, 0, 0, .28);
  --side-w: 232px; --r: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: Rubik, system-ui, sans-serif; font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 620px at 85% -10%, #14296A 0%, transparent 60%), radial-gradient(900px 600px at -10% 110%, #10214F 0%, transparent 55%), var(--bg); background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
.login a, .note a { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: 0; }
h1 { font-size: 25px; font-weight: 700; }
h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 14px; color: var(--muted); font-weight: 500; }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
svg.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- shell ---- */
.side { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--side-w); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(180deg, rgba(14, 28, 70, .92), rgba(7, 16, 41, .96)); border-inline-end: 1px solid var(--line); z-index: 20; overflow-y: auto; }
.brand { padding: 4px 10px 18px; }
.brand b { display: block; font-size: 19px; font-weight: 700; }
.brand span { font-size: 12px; color: var(--faint); }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-weight: 500; position: relative; }
.nav a:hover { background: rgba(255, 255, 255, .05); color: var(--ink); }
.nav a.on { color: var(--gold-hi); background: linear-gradient(90deg, rgba(217, 178, 95, .16), rgba(217, 178, 95, .03)); box-shadow: inset 0 0 0 1px var(--line); }
.nav a .badge { margin-inline-start: auto; }
.side .foot { margin-top: auto; padding: 12px 10px 0; font-size: 12px; color: var(--faint); }
.main { margin-inline-start: var(--side-w); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 26px 30px 80px; }
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.top .sub { color: var(--muted); margin-top: 3px; font-size: 13.5px; }
.top .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 5px; color: var(--faint); font-size: 13px; margin-bottom: 8px; }
.back:hover { color: var(--gold); }
.mnav, .mtop { display: none; }

/* ---- surfaces ---- */
.card { background: linear-gradient(180deg, rgba(19, 37, 85, .82), rgba(14, 28, 70, .82)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card > .hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card > .hd .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid > .card { margin-bottom: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: linear-gradient(160deg, rgba(25, 46, 104, .9), rgba(14, 28, 70, .9)); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; box-shadow: var(--shadow); min-width: 0; }
.tile .k { color: var(--muted); font-size: 12.5px; }
.tile .v { font-size: 24px; font-weight: 700; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .h { color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.empty { color: var(--faint); padding: 10px 2px; font-size: 13.5px; }
.note { border: 1px dashed var(--line); border-radius: 12px; padding: 11px 13px; color: var(--muted); font-size: 13px; background: rgba(217, 178, 95, .05); }

/* ---- rows ---- */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-top: 1px solid var(--line-soft); min-width: 0; border-radius: 8px; }
.rows > .row:first-child { border-top: 0; }
a.row:hover, .row.click:hover { background: rgba(255, 255, 255, .04); }
.row .mainc { flex: 1; min-width: 0; }
.row .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s.wrapt, .row .t.wrapt { white-space: normal; }
.row .end { display: flex; align-items: center; gap: 6px; flex: none; }
.row .when { color: var(--gold-hi); font-size: 12.5px; white-space: nowrap; text-align: end; flex: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 600; font-size: 14px; color: #1B1608; background: var(--gold-grad); }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(217, 178, 95, .12); color: var(--gold); }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, .07); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.late { background: var(--late-bg); color: var(--late); }
.pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.info { background: var(--info-bg); color: var(--info); } .pill.gold { background: rgba(217, 178, 95, .16); color: var(--gold-hi); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold-grad); color: #1B1608; font-size: 11.5px; font-weight: 600; display: inline-grid; place-items: center; }
.badge.hot { background: var(--late); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 18px; }
.kv div span { display: block; color: var(--faint); font-size: 12px; }
.kv div b { font-weight: 500; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--gold-grad); color: #1B1608; border-color: transparent; font-weight: 600; box-shadow: 0 6px 18px rgba(217, 178, 95, .22); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: var(--gold-hi); }
.btn.wa { color: var(--ok); border-color: rgba(111, 214, 164, .35); }
.btn.danger { color: var(--late); border-color: rgba(255, 156, 140, .35); }
.btn.sm { min-height: 32px; padding: 4px 10px; font-size: 12.5px; border-radius: 9px; }
.btn.icon { padding: 0; width: 34px; min-height: 34px; }
.btn[disabled] { opacity: .5; cursor: default; }
.seg { display: inline-flex; gap: 3px; background: var(--sunken); padding: 4px; border-radius: 12px; border: 1px solid var(--line-soft); }
.seg button, .seg a { border: 0; background: none; padding: 6px 14px; border-radius: 9px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; }
.seg .on { background: var(--gold-grad); color: #1B1608; font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; display: inline-flex; gap: 6px; align-items: center; }
.tabs a.on { color: var(--gold-hi); border-bottom-color: var(--gold); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-soft); background: none; color: var(--muted); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; min-height: 32px; }
.chip.on { border-color: var(--gold); color: var(--gold-hi); background: rgba(217, 178, 95, .12); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--sunken); border: 1px solid var(--line-soft); border-radius: 11px; padding: 10px 12px; width: 100%; min-width: 0; outline: none; }
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 178, 95, .16); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=checkbox] { width: 20px; height: 20px; padding: 0; accent-color: var(--gold); flex: none; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 420px; }
.search input { padding-inline-start: 38px; }
.search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
label.f > small { display: block; color: var(--faint); font-size: 12px; margin-top: 4px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; flex-direction: column; gap: 4px; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 4px; cursor: pointer; border-radius: 8px; }
.check.done .ct { color: var(--faint); text-decoration: line-through; }
.switch { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 0; cursor: pointer; padding: 0; }
.switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.switch.on { background: var(--gold); } .switch.on::after { inset-inline-start: 21px; }

/* ---- flights: travellers & baggage; hotels: rooms & gallery ---- */
.bagbox { margin-top: 8px; padding: 8px 11px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line-soft); font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.gph { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--sunken); aspect-ratio: 4 / 3; }
.gph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gph .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 6px 10px; font-size: 12px; text-align: start; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.gph .cap.illu { color: #F2C56B; }
.overlay.lb { padding: 16px; background: rgba(2, 6, 18, .92); }
.lb .modal { max-width: 1100px; background: none; border: 0; box-shadow: none; }
.lb-wrap { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 32px); }
.lb-wrap img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 14px; align-self: center; background: #000; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #fff; }
.lb-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.lb-tools select { width: auto; }
select[class^="pill-"] { border-radius: 999px; font-size: 13px; }
select.pill-ok { border-color: rgba(111, 214, 164, .5); color: var(--ok); } select.pill-warn { border-color: rgba(242, 197, 107, .5); color: var(--warn); }
select.pill-info { border-color: rgba(157, 190, 255, .5); color: var(--info); } select.pill-late { border-color: rgba(255, 156, 140, .5); color: var(--late); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .overlay.lb { align-items: center; } .lb .modal { border-radius: 0; } }

.qr { background: #fff; padding: 10px; border-radius: 12px; width: 190px; max-width: 100%; }
.qr svg { display: block; width: 100%; height: auto; }

/* ---- document recognition review ---- */
.xitem label.f.unsure input { border-color: var(--warn); background: rgba(242, 197, 107, .08); }
.xitem label.f.unsure > span, .xitem label.f.missing > span { color: var(--warn); }
.xitem label.f.missing input { border-style: dashed; }
.xitem h3 { margin: 12px 0 6px; }
.xconf { font-size: 13px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(242, 197, 107, .4); background: rgba(242, 197, 107, .07); margin-bottom: 8px; }

/* ---- multi-select ---- */
.tags { margin-bottom: 12px; }
.tags .lbl { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.tag-box { border: 1px solid var(--line-soft); border-radius: 11px; background: var(--sunken); padding: 8px; }
.tag-box .tag-q { border: 0; background: rgba(255, 255, 255, .04); margin-bottom: 8px; padding: 8px 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 170px; overflow-y: auto; }
.tag-opt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 11px 4px 8px; cursor: pointer; font-size: 13px; color: var(--muted); }
.tag-opt input { width: 16px; height: 16px; }
.tag-opt:has(input:checked) { border-color: var(--gold); color: var(--gold-hi); background: rgba(217, 178, 95, .12); }
.tag-box .tag-add { margin-top: 8px; }

/* ---- tables ---- */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: start; color: var(--faint); font-weight: 500; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 600; border-top: 1px solid var(--line); }
td.n, th.n { text-align: end; white-space: nowrap; }

/* ---- modal ---- */
.overlay { position: fixed; inset: 0; background: rgba(3, 8, 24, .72); backdrop-filter: blur(4px); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: linear-gradient(180deg, #152863, #0E1C46); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: pop .16s ease-out; }
.modal.wide { max-width: 760px; }
.modal > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal .body { min-height: 0; }
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0; } }
.modal > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 6px; }
.modal > header h2 { font-size: 18px; }
.modal .body { padding: 12px 20px; overflow-y: auto; }
.modal footer { display: flex; gap: 8px; padding: 12px 20px 18px; flex-wrap: wrap; }
.modal footer .sp { flex: 1; }
.stepbar { display: flex; gap: 6px; margin-bottom: 14px; }
.stepbar i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.stepbar i.on { background: var(--gold-grad); }
.steptitle { color: var(--gold-hi); font-size: 13px; margin-bottom: 10px; }
.toasts { position: fixed; bottom: 22px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 90; pointer-events: none; }
.toast { background: #F6F4EE; color: #10193A; padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast.err { background: #FFD9D2; color: #6A1A0E; }
.menu { position: absolute; z-index: 70; min-width: 180px; background: #152863; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.menu button { display: flex; width: 100%; align-items: center; gap: 8px; text-align: start; background: none; border: 0; color: var(--ink); font: inherit; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.menu button:hover { background: rgba(255, 255, 255, .07); }

/* ---- login ---- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .box { width: 100%; max-width: 380px; text-align: center; }
.login h1 { font-size: 30px; margin-bottom: 6px; }
.login form { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.login .err { color: var(--late); min-height: 20px; font-size: 13.5px; }

/* ---- search overlay ---- */
.spot { align-items: flex-start; padding-top: 9vh; }
.spot .modal { max-width: 600px; }
.spot input { border: 0; background: none; font-size: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); border-radius: 0; box-shadow: none !important; }
.spot .res { overflow-y: auto; padding: 6px 10px 12px; }

/* ---- calendar ---- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.cal .dow { padding: 8px; font-size: 12px; color: var(--faint); background: var(--sunken); text-align: center; }
.cal .day { min-height: 104px; padding: 6px; border-top: 1px solid var(--line-soft); border-inline-start: 1px solid var(--line-soft); min-width: 0; }
.cal .day:nth-child(7n + 1) { border-inline-start: 0; }
.cal .day.out { opacity: .35; }
.cal .day .d { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.cal .day.today .d { color: #1B1608; background: var(--gold-grad); border-radius: 999px; display: inline-block; padding: 0 8px; font-weight: 600; }
.ev { display: block; font-size: 11.5px; padding: 2px 6px; border-radius: 6px; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(255, 255, 255, .07); border-inline-start: 3px solid var(--faint); }
.ev.dep { border-color: var(--gold); background: rgba(217, 178, 95, .15); } .ev.ret { border-color: var(--info); background: var(--info-bg); }
.ev.checkin { border-color: var(--warn); } .ev.payment, .ev.supplier { border-color: var(--ok); } .ev.task { border-color: #C7A6FF; } .ev.birthday { border-color: #FF9CCB; } .ev.flight { border-color: var(--gold); }
.ev.done { opacity: .5; text-decoration: line-through; }
.agenda { display: none; }

/* ---- itinerary ---- */
.day-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 8px; }
.day-hd b { font-size: 15px; } .day-hd span { color: var(--faint); font-size: 12.5px; }
.it { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-soft); border-radius: 13px; margin-bottom: 8px; background: rgba(255, 255, 255, .03); }
.it.drag { opacity: .4; } .it.over { border-color: var(--gold); }
.it .time { width: 44px; flex: none; color: var(--gold-hi); font-size: 13px; padding-top: 7px; text-align: center; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photos .ph { position: relative; width: 92px; height: 68px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph button { position: absolute; top: 3px; inset-inline-end: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; line-height: 1; }
.frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--sunken); border: 1px solid var(--line-soft); border-radius: 12px; padding: 8px 12px; }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; color: var(--gold-hi); font-size: 13px; }

/* ---- phone ---- */
@media (max-width: 900px) {
  .side { display: none; }
  .main { margin-inline-start: 0; }
  .wrap { padding: 14px 16px 104px; }
  .mtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 16px 0; }
  .mtop b { font-size: 17px; }
  .mnav { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; bottom: 0; inset-inline: 0; z-index: 30; background: #091434; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mnav a, .mnav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font: inherit; font-size: 11px; color: var(--faint); background: none; border: 0; position: relative; cursor: pointer; }
  .mnav .on { color: var(--gold-hi); }
  .mnav .badge { position: absolute; top: 0; inset-inline-start: 54%; transform: scale(.85); }
  h1 { font-size: 21px; }
  .grid, .grid3 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .v { font-size: 20px; }
  .card { padding: 15px; }
  .overlay { align-items: flex-end; padding: 0; }
  .overlay.spot { align-items: flex-start; padding: 12px; }
  .modal { max-width: none !important; border-radius: 20px 20px 0 0; max-height: 92vh; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
  .spot .modal { border-radius: 18px; }
  .cal { display: none; } .agenda { display: block; }
  .frame { height: 560px; }
  .hide-m { display: none !important; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .search { max-width: none; }
}
@media (max-width: 420px) { .frow { grid-template-columns: 1fr; gap: 0; } }

/* ---- live flight status ---- */
.live { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; background: rgba(111, 214, 164, .12); border: 1px solid rgba(111, 214, 164, .32); }
.live > b { color: #6FD6A4; }
.live.delay { background: rgba(242, 197, 107, .13); border-color: rgba(242, 197, 107, .4); } .live.delay > b { color: #F2C56B; }
.live.cancel { background: rgba(255, 156, 140, .14); border-color: rgba(255, 156, 140, .45); } .live.cancel > b { color: #FF9C8C; }
.live.done { background: rgba(157, 190, 255, .12); border-color: rgba(157, 190, 255, .35); } .live.done > b { color: #9DBEFF; }
.live .src { color: #9AA6C4; font-size: 12px; flex-basis: 100%; }
.live .dotl { width: 8px; height: 8px; border-radius: 50%; background: currentColor; color: #6FD6A4; animation: pulse 1.8s infinite; }
.live.delay .dotl { color: #F2C56B; } .live.cancel .dotl { color: #FF9C8C; animation: none; } .live.done .dotl { color: #9DBEFF; animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---- accessibility ---- */
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: #F6E3A6; color: #1B1608; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #F6E3A6; outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .side, .mnav, .mtop, .acts, .tabs, .btn { display: none !important; } .main { margin: 0; } body { background: #fff; color: #000; } .card { border-color: #ccc; background: none; box-shadow: none; } }

/* ---- voucher (printable, in the agency's name) ---- */
.voucher { background: #fff; color: #14161B; border-radius: 16px; padding: 34px 38px; max-width: 760px; margin: 0 auto; box-shadow: var(--shadow); }
.voucher header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 3px solid #B5842F; padding-bottom: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.voucher .vbiz { font-size: 24px; font-weight: 700; color: #8a6420; } .voucher .vsub { color: #5B6472; font-size: 13px; margin-top: 2px; }
.voucher .vtitle { font-size: 17px; font-weight: 600; }
.voucher table { width: 100%; border-collapse: collapse; font-size: 15px; }
.voucher th { color: #5B6472; font-weight: 500; width: 34%; padding: 10px 0; border-bottom: 1px solid #E7E1D6; font-size: 13.5px; vertical-align: top; }
.voucher td { padding: 10px 0; border-bottom: 1px solid #E7E1D6; color: #14161B; }
.voucher .vfoot { color: #5B6472; font-size: 12.5px; margin: 18px 0 0; }
@media print { .noprint, .side, .mnav, .mtop { display: none !important; } .voucher { box-shadow: none; padding: 0; } body { background: #fff !important; } .main { margin: 0 !important; } .wrap { padding: 0 !important; } }

/* ---- assistant chat ---- */
.chat .msgs { display: flex; flex-direction: column; gap: 10px; max-height: 58vh; min-height: 220px; overflow-y: auto; padding: 4px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.55; }
.msg p { margin: 0 0 6px; } .msg p:last-child { margin-bottom: 0; }
.msg.me { align-self: flex-start; background: var(--gold-grad); color: #1B1608; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-end; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.msg .rows { margin: 4px 0; } .msg .btn { margin: 4px 0 0 4px; } .msg .linkbox { margin: 6px 0; }
.askbar { display: flex; gap: 8px; } .askbar input { flex: 1; }

/* ---- money room ---- */
.money-left { text-align: center; padding: 6px 0 14px; }
.money-left .k { color: var(--muted); font-size: 13px; }
.money-left .v { font-size: 38px; font-weight: 700; display: block; margin: 2px auto; }
.money-left .h { color: var(--faint); font-size: 12.5px; max-width: 52ch; margin: 0 auto; }
.num.neg, .neg { color: var(--late); } .num.pos, .pos { color: var(--ok); }
.goal { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 14px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.money-month { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid2 > .card { margin-bottom: 0; min-width: 0; }
.pie { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: start; }
.pie svg { width: 100%; height: auto; }
.pie-k { fill: var(--muted); font-size: 12px; font-family: Rubik, sans-serif; }
.pie-v { fill: var(--ink); font-size: 17px; font-weight: 700; font-family: Rubik, sans-serif; }
button.row { width: 100%; background: none; border: 0; border-top: 1px solid var(--line-soft); color: inherit; font: inherit; text-align: start; cursor: pointer; }
button.row:hover, button.row.on { background: rgba(255, 255, 255, .05); }
.pie-row i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.catlist { display: flex; flex-wrap: wrap; gap: 6px; max-height: 210px; overflow-y: auto; padding: 2px; }
.f .lbl { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 1.5px dashed var(--line); border-radius: var(--r); cursor: pointer; text-align: center; }
.drop b { display: inline-flex; gap: 6px; align-items: center; color: var(--gold-hi); }
.drop.on, .drop:hover { background: rgba(217, 178, 95, .07); }
tr.click { cursor: pointer; } tr.click:hover td, tr.click.on td { background: rgba(255, 255, 255, .04); }
@media (max-width: 1100px) { .tiles.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pie { grid-template-columns: 1fr; } .pie svg { max-width: 200px; margin: 0 auto; } .goal { grid-template-columns: 1fr; } .money-left .v { font-size: 32px; } }

/* ---- assistant: AI answers ---- */
.ai-style { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ai-style select { min-height: 36px; }
.msg.ai ul, .msg.ai ol { margin: 4px 0; padding-inline-start: 20px; }
.msg.ai li { margin: 2px 0; }
.msg.ai .tbl-wrap { margin: 6px 0; max-width: 100%; }
.msg.typing p { color: var(--faint); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .msg.typing p { animation: none; } }

/* ---- CRM (leads) ---- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.board .col { background: var(--sunken); border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px; min-height: 140px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.board .col.over { border-color: var(--gold); background: rgba(217, 178, 95, .07); }
.board .col header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; padding: 2px 4px 4px; }
.board .col header div { flex-basis: 100%; }
.lead-card { text-align: start; background: linear-gradient(160deg, rgba(25, 46, 104, .9), rgba(14, 28, 70, .9)); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 3px; width: 100%; }
.lead-card:hover { border-color: var(--gold); }
.lead-card.dragging { opacity: .5; }
.lead-card .t { font-weight: 600; }
.lead-card .s { color: var(--muted); font-size: 12.5px; }
.lead-card .m { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lead-card .n { font-size: 12px; color: var(--faint); }
.lead-card .n.due { color: var(--gold-hi); } .lead-card .n.late { color: var(--late); }
.stages { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 10px; }
.kv dt { color: var(--muted); font-size: 13px; } .kv dd { margin: 0; }
@media (max-width: 700px) { .lead-grid { grid-template-columns: 1fr; } }

/* ---- shared system: sign-up and demo ---- */
.login-alt { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.login form.signup { gap: 8px; }
.plans-mini { margin-top: 14px; text-align: start; font-size: 13px; }
.plans-mini summary { cursor: pointer; color: var(--gold-hi); }
.plans-mini > div { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.qz-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.plan-box { border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; }

/* ======== Look 1 (Sapir 18.11, from the three options): light, navy buttons, gold only as a highlight ========
   On while body has .look1 (the preview link ?look=1). After her OK it becomes the default. */
body.look1 {
  color-scheme: light;
  --bg: #F4F6FB; --bg-2: #EEF1F8; --surface: #FFFFFF; --raised: #FFFFFF; --sunken: #F2F4FA;
  --line: #E1E6F0; --line-soft: #EAEEF5; --ink: #111A3A; --muted: #5E6884; --faint: #8790A8;
  --gold: #C49A45; --gold-hi: #8A6416; --gold-deep: #8A6416; --gold-grad: linear-gradient(135deg, #D9B25F 0%, #B5842F 100%);
  --ok: #0E8F63; --ok-bg: #E3F5EC; --late: #CF4236; --late-bg: #FCE8E6; --warn: #9A5B0C; --warn-bg: #FCEFD3; --info: #1E4FB8; --info-bg: #E8EEFB;
  --shadow: 0 1px 2px rgba(14, 28, 70, .05), 0 6px 18px rgba(14, 28, 70, .06);
  --navy: #13286B; --navy-soft: #EAEFFA; --hover: rgba(14, 28, 70, .045);
  background: var(--bg);
}
body.look1 .gold { background: linear-gradient(135deg, #C49A45, #8A6416); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.look1 .side { background: #FFFFFF; border-inline-end: 1px solid var(--line); }
body.look1 .nav a:hover { background: var(--hover); color: var(--ink); }
body.look1 .nav a.on { color: var(--navy); background: var(--navy-soft); box-shadow: none; }
body.look1 .card, body.look1 .tile, body.look1 .lead-card { background: #FFFFFF; border-color: var(--line); }
body.look1 .note { background: #FBF6EA; border-color: #EBDDBC; }
body.look1 a.row:hover, body.look1 .row.click:hover, body.look1 button.row:hover, body.look1 button.row.on { background: var(--hover); }
body.look1 .avatar { background: var(--navy-soft); color: var(--navy); }
body.look1 .dot { background: var(--navy-soft); color: var(--navy); }
body.look1 .pill { background: #EEF1F6; } body.look1 .pill.gold { background: #FBF3DF; color: #8A6416; }
body.look1 .badge { background: var(--navy); color: #fff; } body.look1 .badge.hot { background: var(--late); }
body.look1 .btn { background: #FFFFFF; border-color: var(--line); }
body.look1 .btn:hover { border-color: var(--navy); }
body.look1 .btn.primary { background: var(--navy); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(19, 40, 107, .22); }
body.look1 .btn.primary:hover { filter: brightness(1.12); }
body.look1 .btn.ghost { background: none; border-color: transparent; } body.look1 .btn.ghost:hover { color: var(--navy); }
body.look1 .btn.wa { border-color: rgba(14, 143, 99, .35); } body.look1 .btn.danger { border-color: rgba(207, 66, 54, .35); }
body.look1 .seg .on { background: var(--navy); color: #fff; }
body.look1 .tabs a.on { color: var(--navy); border-bottom-color: var(--navy); }
body.look1 .chip.on, body.look1 .tag-opt:has(input:checked) { border-color: var(--navy); color: var(--navy); background: var(--navy-soft); }
body.look1 input:focus, body.look1 select:focus, body.look1 textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19, 40, 107, .12); }
body.look1 input[type=checkbox] { accent-color: var(--navy); }
body.look1 .switch { background: #D3D9E6; } body.look1 .switch.on { background: var(--navy); }
body.look1 .bagbox, body.look1 .it { background: #FAFBFE; }
body.look1 .tag-box .tag-q { background: #FFFFFF; }
body.look1 .overlay { background: rgba(14, 28, 70, .32); }
body.look1 .modal { background: #FFFFFF; box-shadow: 0 30px 80px rgba(14, 28, 70, .22); }
body.look1 .stepbar i { background: #E1E6F0; } body.look1 .stepbar i.on { background: var(--navy); }
body.look1 .steptitle { color: var(--navy); }
body.look1 .toast { background: #111A3A; color: #FFFFFF; box-shadow: 0 10px 30px rgba(14, 28, 70, .25); }
body.look1 .toast.err { background: #FCE8E6; color: #8A1F14; }
body.look1 .menu { background: #FFFFFF; box-shadow: 0 16px 40px rgba(14, 28, 70, .18); } body.look1 .menu button:hover { background: var(--hover); }
body.look1 .cal .day.today .d { background: var(--navy); color: #fff; }
body.look1 .ev { background: #F2F4FA; } body.look1 .ev.dep { background: #FBF3DF; }
body.look1 .linkbox code { color: var(--navy); }
body.look1 .msg.me { background: var(--navy); color: #fff; } body.look1 .msg.bot { background: #F2F4FA; border-color: var(--line); }
body.look1 .board .col { background: var(--sunken); } body.look1 .board .col.over { border-color: var(--navy); background: var(--navy-soft); }
body.look1 .drop b { color: var(--navy); } body.look1 .drop.on, body.look1 .drop:hover { background: var(--navy-soft); }
body.look1 .live { background: rgba(14, 143, 99, .07); border-color: rgba(14, 143, 99, .3); } body.look1 .live > b, body.look1 .live .dotl { color: var(--ok); }
body.look1 .live.delay { background: var(--warn-bg); border-color: rgba(154, 91, 12, .3); } body.look1 .live.delay > b, body.look1 .live.delay .dotl { color: var(--warn); }
body.look1 .live.cancel { background: var(--late-bg); border-color: rgba(207, 66, 54, .3); } body.look1 .live.cancel > b, body.look1 .live.cancel .dotl { color: var(--late); }
body.look1 .live.done { background: var(--info-bg); border-color: rgba(30, 79, 184, .25); } body.look1 .live.done > b, body.look1 .live.done .dotl { color: var(--info); }
body.look1 .live .src { color: var(--muted); }
body.look1 .gph .cap.illu { color: #F6E3A6; }
body.look1 .xitem label.f.unsure input { background: var(--warn-bg); }
@media (max-width: 900px) { body.look1 .mnav { background: #FFFFFF; } body.look1 .mnav .on { color: var(--navy); } }
body.look1 :focus-visible { outline-color: var(--gold); }
