/* MyHostTrip design system — light, calm, navy + gold */
:root {
  --bg: #F6F4EF;
  --bg-warm: #FBF6EA;
  --card: #FFFFFF;
  --line: #ECE8E1;
  --line-2: #F3F0EA;
  --navy: #13213F;
  --navy-2: #1F3158;
  --ink: #1A2233;
  --ink-2: #4A5466;
  --muted: #8A92A0;
  --gold: #C9952C;
  --gold-2: #E2B04F;
  --gold-soft: #FBF1DC;
  --green: #2E8B57;
  --green-soft: #E6F4EB;
  --blue: #3567B0;
  --blue-soft: #E8EFFA;
  --red: #D2544B;
  --red-soft: #FCEBE9;
  --amber: #C2830F;
  --amber-soft: #FCF2DD;
  --violet: #6B5BB5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .04);
  --shadow-lg: 0 20px 50px rgba(19, 33, 63, .12);
  --sidebar: 236px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 85% -10%, #FBF1DC 0%, rgba(251, 241, 220, 0) 60%), var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0; }
small, .muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.gold { color: var(--gold); }
.green { color: var(--green); }
.red { color: var(--red); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.flex { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.grow { flex: 1; min-width: 0; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-15 { font-size: 15px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: #FCFBF9; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; font-weight: 700; font-size: 16px; color: var(--navy); }
.brand img { width: 26px; height: 26px; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--gold); letter-spacing: .02em; }
.nav-label { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 8px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin-bottom: 2px;
  border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s;
}
.nav a svg { color: #6B7385; flex-shrink: 0; }
.nav a:hover { background: #F2EFE9; color: var(--ink); }
.nav a.active { background: var(--navy); color: #fff; box-shadow: 0 6px 14px rgba(19, 33, 63, .22); }
.nav a.active svg { color: #fff; }
.nav a .count { margin-left: auto; background: var(--gold-2); color: var(--navy); font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.nav a.active .count { background: var(--gold-2); }
.sidebar .spacer { flex: 1; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
.sidebar-user .name { font-weight: 600; font-size: 13px; }
.sidebar-user .org { font-size: 11.5px; color: var(--muted); }
.sidebar-user a.logout { margin-left: auto; color: var(--muted); padding: 4px; border-radius: 6px; }
.sidebar-user a.logout:hover { background: #F2EFE9; color: var(--ink); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px; padding: 14px 28px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 19px; font-weight: 700; }
.topbar .subtitle { color: var(--muted); font-size: 13px; margin-left: 4px; }
.topbar .search {
  margin-left: auto; display: flex; align-items: center; gap: 8px; width: 300px;
  background: #F5F3EF; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; color: var(--muted);
}
.topbar .search input { border: 0; background: transparent; outline: none; width: 100%; font: inherit; color: var(--ink); }
.date-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; background: #fff; font-weight: 500; font-size: 13px; white-space: nowrap; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ink-2); }
.icon-btn:hover { background: #F2EFE9; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); border: 2px solid #fff; }
.content { padding: 24px 28px 40px; }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.flash.success { background: var(--green-soft); color: var(--green); }
.flash.error { background: var(--red-soft); color: var(--red); }
.flash.info { background: var(--blue-soft); color: var(--blue); }

/* ---------- Cards & grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 6px; }
.card-h h3 { font-size: 15px; font-weight: 650; }
.card-h .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-b { padding: 8px 20px 18px; }
.link-gold { color: var(--gold); font-weight: 600; font-size: 12.5px; }
.link-gold:hover { text-decoration: underline; }
.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main-side { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.g-side-main { grid-template-columns: 300px minmax(0, 1fr); }
.g-list-detail { grid-template-columns: 320px minmax(0, 1fr); }

.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.kpi .top { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.kpi .ico { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: #F4F1EB; color: var(--navy); }
.kpi .ico.gold { background: var(--gold-soft); color: var(--gold); }
.kpi .ico.green { background: var(--green-soft); color: var(--green); }
.kpi .ico.blue { background: var(--blue-soft); color: var(--blue); }
.kpi .val { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.kpi .meta { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.delta { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.delta.up { color: var(--green); background: var(--green-soft); }
.delta.down { color: var(--red); background: var(--red-soft); }

/* ---------- Avatars, badges, chips ---------- */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 13px; flex-shrink: 0; letter-spacing: .02em; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.lg { width: 54px; height: 54px; font-size: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; background: #F1EFEA; color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.nodot::before { display: none; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.navy { background: #E7EAF1; color: var(--navy); }
.badge.gray { background: #F1EFEA; color: #6B7385; }
.prio { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #F1EFEA; color: #6B7385; }
.prio.haute, .prio.critique { background: var(--red-soft); color: var(--red); }
.prio.basse { background: var(--blue-soft); color: var(--blue); }
.channel { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.channel i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: #F4F2EE; font-size: 12px; font-weight: 500; color: var(--ink-2); border: 1px solid transparent; cursor: pointer; }
.chip:hover { border-color: var(--line); }
.chip.gold { background: var(--gold-soft); color: #8A6414; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; transition: transform .05s, box-shadow .15s, background .15s; }
.btn:hover { background: #FAF9F6; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 6px 14px rgba(19, 33, 63, .18); }
.btn.primary:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--red); }
.btn.sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.seg { display: inline-flex; background: #F1EEE8; border-radius: 10px; padding: 3px; }
.seg a, .seg button { padding: 6px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.seg a.on, .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
label.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, .select, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(226, 176, 79, .18); }
textarea.input { resize: vertical; min-height: 84px; }
.field { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .select, .filter-bar .input { width: auto; padding: 8px 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* ---------- Lists & tables ---------- */
.rows > .row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.rows > .row:first-child { border-top: 0; }
.row .t1 { font-weight: 600; font-size: 13.5px; }
.row .t2 { font-size: 12px; color: var(--muted); margin-top: 2px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FCFBF9; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #FCFAF5; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: var(--muted); font-size: 12.5px; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty svg { color: #C9CDD5; margin-bottom: 8px; }

.progress { height: 6px; background: #EFECE6; border-radius: 6px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 6px; background: var(--green); }
.progress.blue > span { background: var(--blue); }
.progress.gold > span { background: var(--gold-2); }
.progress.navy > span { background: var(--navy); }
.meter-row { margin-bottom: 16px; }
.meter-row .flex { margin-bottom: 7px; font-size: 13px; }

.select-list .item { display: block; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; margin-bottom: 6px; transition: background .15s, border .15s; }
.select-list .item:hover { background: #FBFAF7; }
.select-list .item.on { border-color: var(--gold-2); background: #FFFDF7; box-shadow: 0 0 0 3px rgba(226, 176, 79, .12); }

/* ---------- Timeline (stay journey) ---------- */
.journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 18px 8px 6px; }
.journey::before { content: ""; position: absolute; left: 10%; right: 10%; top: 38px; height: 3px; background: linear-gradient(90deg, var(--gold-2), #F0D49A); border-radius: 3px; box-shadow: 0 0 12px rgba(226, 176, 79, .5); }
.journey .step { position: relative; text-align: center; z-index: 1; }
.journey .dot { width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold-2); }
.journey .step.todo .dot { background: #fff; color: var(--muted); box-shadow: 0 0 0 4px #fff, 0 0 0 6px #E6E2DA; }
.journey .step.now .dot { background: var(--gold-2); color: var(--navy); }
.journey .name { font-weight: 650; font-size: 13.5px; }
.journey .when { font-size: 12px; color: var(--muted); margin-top: 2px; }
.journey .auto { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: #F5F3EF; border-radius: 8px; padding: 6px 10px; font-size: 11.5px; color: var(--ink-2); text-align: left; }
.vtl { position: relative; padding-left: 28px; }
.vtl .ev { position: relative; padding-bottom: 16px; }
.vtl .ev::before { content: ""; position: absolute; left: -20px; top: 22px; bottom: -2px; width: 2px; background: #E6E2DA; }
.vtl .ev:last-child::before { display: none; }
.vtl .ev .mark { position: absolute; left: -28px; top: 1px; width: 18px; height: 18px; border-radius: 5px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.vtl .ev.todo .mark { background: #fff; border: 2px solid #D9D4CB; }
.vtl .ev .time { margin-left: auto; color: var(--gold); font-weight: 600; font-size: 12.5px; }

/* ---------- Calendar ---------- */
.cal-wrap { overflow-x: auto; }
.cal { --day: 74px; --row: 64px; min-width: calc(200px + var(--days) * var(--day)); position: relative; }
.cal-head, .cal-row { display: grid; grid-template-columns: 200px repeat(var(--days), var(--day)); }
.cal-head > div { padding: 10px 0 8px; text-align: center; border-left: 1px solid var(--line-2); }
.cal-head .dw { font-size: 11.5px; color: var(--muted); }
.cal-head .dn { font-size: 17px; font-weight: 700; margin-top: 2px; }
.cal-head .we .dw, .cal-head .we .dn { color: var(--gold); }
.cal-head .today .dn { color: #fff; background: var(--navy); border-radius: 8px; display: inline-block; padding: 0 8px; }
.cal-row { position: relative; border-top: 1px solid var(--line-2); min-height: var(--row); }
.cal-row > .cell { border-left: 1px solid var(--line-2); }
.cal-row > .cell.we { background: rgba(251, 241, 220, .45); }
.cal-row > .cell.today { background: rgba(19, 33, 63, .035); }
.cal-prop { padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; }
.cal-prop .n { font-weight: 600; font-size: 13px; }
.cal-prop .c { font-size: 11.5px; color: var(--muted); }
.bars { position: absolute; left: 200px; right: 0; top: 0; bottom: 0; pointer-events: none; }
.bar {
  position: absolute; top: 9px; height: calc(var(--row) - 18px); border-radius: 9px; padding: 7px 10px; overflow: hidden;
  pointer-events: auto; cursor: pointer; border-left: 3px solid; transition: box-shadow .15s, transform .15s;
}
.bar:hover, .bar.on { box-shadow: 0 0 0 2px var(--gold-2), 0 8px 20px rgba(201, 149, 44, .22); z-index: 5; }
.bar .g { font-weight: 650; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.bar .m { font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend { display: flex; gap: 14px; align-items: center; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.pop { position: fixed; z-index: 100; width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px 18px; display: none; }
.pop.show { display: block; }
.pop .kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 10px; font-size: 13px; margin-top: 12px; }
.pop .kv span:nth-child(odd) { color: var(--muted); }
.pop .kv span:nth-child(even) { font-weight: 600; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kcol { background: #F3F1EC; border-radius: 14px; padding: 12px; min-height: 420px; }
.kcol-h { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13px; padding: 2px 4px 12px; }
.kcol-h .n { margin-left: auto; background: #E6E2DA; color: var(--ink-2); font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.kcard { display: block; background: #fff; border-radius: 12px; padding: 12px 13px; margin-bottom: 10px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .03); transition: border .15s, box-shadow .15s; }
.kcard:hover { border-color: #DED8CC; }
.kcard.on { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(226, 176, 79, .15); }
.kcard .t { font-weight: 650; font-size: 13.5px; }
.kcard .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.kcard .time { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); margin: 10px 0 8px; }
.checklist .ci { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; }
.checklist .ci input { display: none; }
.checklist .box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #D4CFC5; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: transparent; transition: all .15s; }
.checklist .ci.done .box { background: var(--green); border-color: var(--green); color: #fff; }
.checklist .ci button { all: unset; display: flex; align-items: center; gap: 10px; cursor: pointer; width: 100%; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photos > div { aspect-ratio: 4 / 3; border-radius: 10px; }

/* ---------- Messages ---------- */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; height: calc(100vh - 140px); min-height: 520px; }
.inbox .list { overflow-y: auto; padding: 10px; }
.conv { display: flex; gap: 11px; padding: 12px; border-radius: 12px; border: 1px solid transparent; margin-bottom: 4px; }
.conv:hover { background: #FBFAF7; }
.conv.on { border-color: var(--gold-2); background: #FFFDF7; box-shadow: 0 0 0 3px rgba(226, 176, 79, .12); }
.conv .n { font-weight: 650; font-size: 13.5px; }
.conv .p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.conv .unread { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); }
.thread { display: flex; flex-direction: column; min-height: 0; }
.thread-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-b { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(#FFFFFF, #FDFCFA); }
.bubble { max-width: 68%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.bubble.in { background: #F1EFEA; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.system, .bubble.note { align-self: flex-end; background: #FFF8E8; border: 1px solid #F1DDAE; color: #7A5A12; font-size: 12.5px; }
.bubble.note { align-self: center; background: #F4F2EE; border-color: var(--line); color: var(--ink-2); }
.bmeta { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.bmeta.r { text-align: right; }
.composer { border-top: 1px solid var(--line); padding: 12px 16px; }
.composer textarea { border: 0; outline: none; resize: none; width: 100%; font: inherit; min-height: 44px; }

/* ---------- Assistant ---------- */
.ai-wrap { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - 150px); }
.ai-feed { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 10px 0 20px; }
.ai-q { align-self: flex-end; display: flex; align-items: center; gap: 10px; }
.ai-q .b { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 600; }
.ai-a { display: flex; gap: 12px; align-items: flex-start; }
.ai-a .spark { color: var(--gold); margin-top: 14px; }
.ai-a .b { background: #fff; border: 1.5px solid #F0D49A; border-radius: 16px; padding: 18px 22px; box-shadow: 0 0 0 6px rgba(226, 176, 79, .08), 0 18px 40px rgba(201, 149, 44, .12); line-height: 1.6; max-width: 640px; }
.ai-a .b h4 { font-size: 14.5px; margin-bottom: 6px; }
.ai-a .b ul { margin: 6px 0 0; padding-left: 18px; }
.ai-a .src { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: 11.5px; color: var(--muted); }
.ai-input { position: sticky; bottom: 16px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 10px 16px; box-shadow: var(--shadow-lg); }
.ai-input input { flex: 1; border: 0; outline: none; font: inherit; font-size: 14px; }
.ai-sugg { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 14px 0; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); margin-right: 4px; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* ---------- Property thumbnails (illustrated) ---------- */
.thumb { position: relative; border-radius: 12px; overflow: hidden; background: #D6EBF5 url(../img/scenes/sea.svg) center / cover no-repeat; }
.thumb.city { background-color: #3D4E7C; background-image: url(../img/scenes/city.svg); }
.thumb.mountain { background-color: #E2EEF6; background-image: url(../img/scenes/mountain.svg); }
.thumb.desert { background-color: #F9D6A4; background-image: url(../img/scenes/desert.svg); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, #0F1B36 0%, #172A52 60%, #0E1830 100%); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px; }
.auth-hero .brand { color: #fff; padding: 0; }
.auth-hero h2 { color: #fff; font-size: 34px; line-height: 1.2; font-weight: 650; max-width: 440px; }
.auth-hero p.lead { color: #C9D2E3; margin-top: 14px; max-width: 420px; line-height: 1.6; }
.auth-hero .chans { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-hero .chans > span { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); padding: 5px 12px 5px 5px; border-radius: 20px; font-size: 12.5px; font-weight: 500; color: #E5EAF3; transition: background .2s, transform .2s; }
.auth-hero .chans > span:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.auth-hero .chans > span.more { border-style: dashed; color: #C9D2E3; }
.auth-hero .chans .ch-logo { flex-shrink: 0; border-radius: 5px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.auth-hero .chans-l { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8F9BB5; margin-bottom: 10px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 26px; font-weight: 700; }
.auth-card .sub { color: var(--muted); margin: 6px 0 26px; }

/* ---------- Owner portal ---------- */
.owner-tag { color: var(--gold); font-weight: 600; font-size: 13.5px; margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.statement-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #F8F7F4; margin-bottom: 8px; }
.statement-row.hl { background: #FFF6E3; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 24, 45, .35); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.show { display: flex; }
.modal { width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-b { padding: 20px 22px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }

/* ---------- Print (statements) ---------- */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main-side { grid-template-columns: 1fr; }
  .topbar .search { width: 200px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sidebar .nav-label, .sidebar .spacer { display: none; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .g-3, .g-2, .g-list-detail, .g-side-main, .kanban, .inbox, .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .topbar .search { display: none; }
}

/* =====================================================================
   v2 — sections, trial, photos, wizard, finance back-office, reviews, agents
   ===================================================================== */
.sidebar { padding: 16px 12px 12px; }
.brand { padding: 4px 8px 12px; }
.nav-scroll { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.nav-scroll .nav-label { padding-top: 12px; }
.nav a { padding: 7px 10px; font-size: 13px; }
.nav a .soon { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #128C4A; background: #E3F6EA; padding: 2px 6px; border-radius: 6px; }
.nav a.active .soon { background: rgba(255,255,255,.16); color: #CFF5DD; }
.nav-bottom { padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
.org-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 6px; }
.org-chip img { width: 30px; height: 30px; object-fit: contain; border-radius: 7px; background: #fff; }
.org-chip .org-initials { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: var(--gold-2); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.org-chip .n { display: block; font-weight: 650; font-size: 12.5px; color: var(--ink); max-width: 150px; }
.org-chip .p { display: block; font-size: 10.5px; color: var(--gold); font-weight: 600; }
.trial-chip { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 4px 0 6px; border: 1px solid #F1DDB0; border-radius: 13px; background: linear-gradient(180deg, #FFFDF7, #FFF6E3); color: var(--navy); text-decoration: none; white-space: nowrap; transition: border-color .15s, box-shadow .15s, transform .15s; }
.trial-chip:hover { border-color: #E9C46A; box-shadow: 0 6px 16px -6px rgba(226, 150, 40, .45); transform: translateY(-1px); }
.trial-chip .tc-ring { position: relative; width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.trial-chip .tc-ring svg { position: absolute; inset: 0; }
.trial-chip .tc-ring .trk { fill: #fff; stroke: #F3E6C8; stroke-width: 3; }
.trial-chip .tc-ring .val { fill: none; stroke: url(#tcGrad); stroke-width: 3; stroke-linecap: round; animation: tcFill 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.trial-chip .tc-ring b { position: relative; font-size: 11px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.trial-chip.warn .tc-ring b { color: #C2560E; }
.trial-chip.ending .tc-ring b { color: var(--red); }
.trial-chip .tc-txt { display: flex; flex-direction: column; line-height: 1.15; padding-right: 6px; }
.trial-chip .tc-l { font-size: 10.5px; font-weight: 600; color: #B0781A; letter-spacing: .01em; }
.trial-chip .tc-d { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.trial-chip .tc-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--navy); background: #F2B544; padding: 7px 10px 7px 11px; border-radius: 9px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); transition: background .15s; }
.trial-chip .tc-cta svg { transition: transform .2s; }
.trial-chip:hover .tc-cta { background: #F5C25E; }
.trial-chip:hover .tc-cta svg { transform: translateX(2px); }
@keyframes tcFill { from { stroke-dasharray: 0 72.26; } }
@media (max-width: 1440px) { .topbar .trial-chip .tc-cta { display: none; } .topbar .trial-chip { padding-right: 8px; } }
.topbar .search { margin-left: auto; }

/* tabs (underline) */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 2px 12px; font-size: 13px; font-weight: 650; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; letter-spacing: .01em; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--navy); border-bottom-color: var(--gold-2); }
.tabs.caps a { text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.page-head h2 { font-size: 26px; margin-top: 6px; }
.page-head p { color: var(--muted); margin-top: 6px; }

/* photos */
.cover { position: relative; overflow: hidden; background: #EFECE6; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .cover img { transform: scale(1.03); }
.cover .n-photos { position: absolute; right: 10px; bottom: 10px; background: rgba(15,24,45,.65); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 12px; display: inline-flex; gap: 5px; align-items: center; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 150px 150px; gap: 8px; border-radius: 14px; overflow: hidden; }
.gallery a, .gallery div { display: block; overflow: hidden; background: #EFECE6; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .main { grid-row: 1 / 3; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: #EFECE6; border: 1px solid var(--line); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .tag { position: absolute; left: 8px; top: 8px; background: var(--gold-2); color: var(--navy); font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.ph .acts { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.ph:hover .acts { opacity: 1; }
.ph .acts button { border: 0; background: rgba(255,255,255,.92); border-radius: 7px; padding: 5px 7px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.ph.removed { opacity: .35; }
.ph .rm { position: absolute; right: 6px; top: 6px; }
.lightbox { position: fixed; inset: 0; background: rgba(8,12,24,.9); z-index: 300; display: none; align-items: center; justify-content: center; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 50%; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 22px; }
.lightbox .prev { left: 24px; } .lightbox .next { right: 24px; } .lightbox .close { top: 24px; right: 24px; }

/* wizard */
.wizard { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.wz-steps { position: sticky; top: 84px; padding: 18px 14px; }
.wz-steps .wz-prog { margin: 4px 6px 16px; }
.wz-steps .wz-prog .fs-12 { margin-bottom: 6px; display: flex; justify-content: space-between; }
.wz-step { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 11px; cursor: pointer; color: var(--ink-2); position: relative; }
.wz-step:hover { background: #F8F6F2; }
.wz-step .num { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #DDD7CC; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; background: #fff; flex-shrink: 0; color: var(--muted); }
.wz-step .t { font-weight: 650; font-size: 13px; }
.wz-step .d { font-size: 11.5px; color: var(--muted); }
.wz-step.on { background: #FFF8E8; color: var(--ink); }
.wz-step.on .num { border-color: var(--gold-2); background: var(--gold-2); color: var(--navy); box-shadow: 0 0 0 4px rgba(226,176,79,.2); }
.wz-step.done .num { border-color: var(--navy); background: var(--navy); color: #fff; }
.wz-step:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 42px; height: 8px; width: 2px; background: #E6E2DA; }
.wz-panel { display: none; }
.wz-panel.on { display: block; animation: wzin .25s ease; }
@keyframes wzin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wz-head { padding: 22px 26px 6px; }
.wz-head .k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.wz-head h2 { font-size: 22px; margin-top: 6px; }
.wz-head p { color: var(--muted); margin-top: 6px; }
.wz-body { padding: 18px 26px 8px; }
.wz-foot { display: flex; align-items: center; gap: 10px; padding: 16px 26px; border-top: 1px solid var(--line); background: #FCFBF9; border-radius: 0 0 var(--radius) var(--radius); }
.opt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border .15s, box-shadow .15s, background .15s; font-weight: 600; font-size: 13px; }
.opt:hover { border-color: #D9D2C3; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt svg { color: var(--navy); }
.opt.on, .opt:has(input:checked) { border-color: var(--gold-2); background: #FFFBF1; box-shadow: 0 0 0 3px rgba(226,176,79,.15); }
.amen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.amen-grid .opt { flex-direction: row; align-items: center; padding: 12px; font-weight: 550; }
.counter { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.counter .t { font-weight: 600; } .counter .d { font-size: 12px; color: var(--muted); }
.counter .ctl { display: flex; align-items: center; gap: 14px; }
.counter .ctl button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #D9D2C3; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.counter .ctl button:hover { border-color: var(--navy); }
.counter .ctl input { width: 46px; text-align: center; border: 0; font: inherit; font-weight: 700; font-size: 16px; background: transparent; }
.dropzone { border: 2px dashed #DCD5C8; border-radius: 14px; padding: 30px; text-align: center; background: #FCFBF8; cursor: pointer; transition: border .15s, background .15s; }
.dropzone.drag { border-color: var(--gold-2); background: #FFF9EB; }
.dropzone .big { width: 54px; height: 54px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.toggle input { display: none; }
.toggle .sw { width: 40px; height: 23px; border-radius: 12px; background: #DAD5CC; position: relative; transition: background .15s; flex-shrink: 0; }
.toggle .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + .sw { background: var(--green); }
.toggle input:checked + .sw::after { transform: translateX(17px); }
.recap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.recap .box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.recap .box h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
.recap .box h4 a { color: var(--gold); text-transform: none; letter-spacing: 0; font-weight: 600; cursor: pointer; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 46px; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: 12.5px; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.err-msg { color: var(--red); font-size: 12px; margin-top: 6px; display: none; }
.field.invalid .input, .field.invalid .select { border-color: var(--red); }
.field.invalid .err-msg { display: block; }

/* KPI hero + misc */
.hero-kpi { border-radius: 16px; padding: 20px 22px; color: #fff; background: linear-gradient(135deg, #13213F 0%, #1F3A6B 55%, #2B5C8A 100%); box-shadow: 0 14px 30px rgba(19,33,63,.22); }
.hero-kpi.teal { background: linear-gradient(135deg, #0E5B57 0%, #138A7A 60%, #4FB07A 100%); box-shadow: 0 14px 30px rgba(14,91,87,.25); }
.hero-kpi .lbl { font-weight: 650; font-size: 14px; opacity: .95; }
.hero-kpi .v { font-size: 44px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.hero-kpi .m { font-size: 12px; opacity: .85; }
.pill-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.16); }
.amount-pos { color: var(--green); font-weight: 650; }
.amount-neg { color: var(--red); font-weight: 650; }
.mini-bar { height: 8px; border-radius: 6px; background: #EFECE6; overflow: hidden; }
.mini-bar > span { display: block; height: 100%; background: var(--navy); border-radius: 6px; }
.stack { display: flex; height: 22px; border-radius: 6px; overflow: hidden; font-size: 11px; font-weight: 700; color: #fff; }
.stack > span { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; }
.dot-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.dot-l i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.soon-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: #E3F6EA; color: #128C4A; font-size: 11.5px; font-weight: 700; }
.wa-green { color: #25D366; }
.callout { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #EEF8F5; border: 1px solid #CDE9E1; }
.callout .ic { width: 34px; height: 34px; border-radius: 50%; background: #0E5B57; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ch-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ch-card .h { padding: 9px 12px; color: #fff; font-weight: 700; font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; }
.ch-card .b { padding: 12px; }
.ch-card .big { font-size: 26px; font-weight: 750; }
.bars-v { display: flex; align-items: flex-end; gap: 16px; height: 170px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.bars-v .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bars-v .col b { font-size: 12px; margin-bottom: 4px; }
.bars-v .col span { width: 70%; max-width: 46px; background: #138A7A; border-radius: 4px 4px 0 0; min-height: 3px; }
.bars-v-l { display: flex; gap: 16px; padding: 6px 6px 0; }
.bars-v-l span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.issue { display: flex; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--line-2); }
.issue:first-child { border-top: 0; }
.issue .sev { width: 6px; border-radius: 4px; flex-shrink: 0; }
.issue blockquote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid #E6E2DA; background: #FAF9F6; border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: 12.5px; font-style: italic; }
.rv { padding: 16px 18px; border-top: 1px solid var(--line-2); }
.rv:first-child { border-top: 0; }
.rv .resp { margin-top: 10px; padding: 10px 12px; background: #F6F8FC; border-radius: 10px; font-size: 12.5px; color: var(--ink-2); }
.ai-sum { margin-top: 8px; display: flex; gap: 8px; font-size: 12.5px; color: #6A4F12; background: #FFF8E8; border: 1px solid #F1DDAE; border-radius: 10px; padding: 8px 10px; }

/* agents & map */
.agent-list { max-height: 560px; overflow-y: auto; }
.agent-row { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-top: 1px solid var(--line-2); cursor: pointer; }
.agent-row:hover { background: #FBFAF7; }
.agent-row .st { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.agent-row .st i, .map-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.st-live { background: #1FA463; } .st-recent { background: #E5A21A; } .st-off { background: #C3C8D0; } .st-none { background: transparent; border: 1.5px solid #C3C8D0; }
.av-wrap { position: relative; }
.av-wrap .ring { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; }
.av-wrap.live .ring { border-color: #1FA463; }
#map { height: 600px; border-radius: 14px; overflow: hidden; z-index: 1; }
.map-wrap { position: relative; }
.map-legend { position: absolute; z-index: 500; left: 12px; top: 12px; background: #fff; border-radius: 10px; padding: 7px 12px; display: flex; gap: 14px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow); }
.map-btn { position: absolute; z-index: 500; right: 12px; top: 12px; }
.agent-pin { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: var(--navy); border: 3px solid #C3C8D0; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.agent-pin.live { border-color: #1FA463; } .agent-pin.recent { border-color: #E5A21A; }
.prop-pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--navy); border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.prop-pin::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); }
.ck-card .ci { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; border-top: 1px dashed var(--line-2); }
.ck-card .ci:first-child { border-top: 0; }
.ck-card .ci button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; }
.ck-card .box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #D4CFC5; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: transparent; }
.ck-card .ci.done .box { background: var(--green); border-color: var(--green); color: #fff; }
.ck-card .ci.missed .box { background: var(--red); border-color: var(--red); color: #fff; }
.ck-card .ci.missed .lbl { text-decoration: line-through; color: var(--muted); }
.ck-card.validated { opacity: .86; }
.phone-mock { width: 270px; border-radius: 34px; border: 10px solid #13213F; background: #F6F4EF; padding: 14px 12px; box-shadow: var(--shadow-lg); margin: 0 auto; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.spark span { flex: 1; background: #CFE3DC; border-radius: 3px 3px 0 0; min-height: 2px; }
.spark span.hi { background: #138A7A; }

/* print docs (contracts) */
.doc { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 44px 52px; line-height: 1.6; font-size: 13.5px; }
.doc h1 { font-size: 22px; text-align: center; margin-bottom: 4px; }
.doc h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin: 22px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.doc .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc .sig { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.doc .sig div { border-top: 1px solid var(--ink); padding-top: 8px; font-size: 12px; color: var(--muted); min-height: 70px; }
.doc .logo { max-height: 54px; max-width: 180px; }
.doc table { width: 100%; border-collapse: collapse; }
.doc td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
@media print { .doc { border: 0; padding: 0; } .content { padding: 0; } }

@media (max-width: 1200px) {
  .wizard { grid-template-columns: 1fr; }
  .wz-steps { position: static; }
  .opt-grid, .amen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.topbar h1 { white-space: nowrap; }
.topbar .subtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 1; }

/* ---- ticket photos ---- */
.tk-photo { position: relative; display: block; height: 140px; border-radius: 12px; overflow: hidden; background-color: #EFECE6; }
.tk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-photo a { display: block; height: 100%; cursor: zoom-in; }
.tk-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(15, 24, 45, .68); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 12px; display: inline-flex; gap: 5px; align-items: center; backdrop-filter: blur(4px); }
.tk-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.tk-strip .ph { position: relative; height: 54px; border-radius: 8px; overflow: hidden; background: #EFECE6; }
.tk-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-photo .rm, .tk-strip .rm { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(15, 24, 45, .72); color: #fff; font-size: 14px; line-height: 22px; cursor: pointer; opacity: 0; transition: opacity .15s; padding: 0; }
.tk-photo:hover .rm, .tk-strip .ph:hover .rm { opacity: 1; }
@media (hover: none) { .tk-photo .rm, .tk-strip .rm { opacity: 1; } }

/* ---- animated glowing logo (login) ---- */
.auth-hero::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; left: -120px; top: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 210, 122, .30), rgba(247, 210, 122, .08) 45%, rgba(247, 210, 122, 0) 68%); animation: mhDrift 16s ease-in-out infinite alternate; pointer-events: none; }
.auth-hero::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -140px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(90, 130, 220, .22), rgba(90, 130, 220, 0) 70%); animation: mhDrift 20s ease-in-out infinite alternate-reverse; pointer-events: none; }
.auth-hero .logo-glow { position: relative; width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; background: radial-gradient(circle, #FFF7E2 0%, #F3D58C 45%, rgba(243, 213, 140, 0) 72%); animation: mhBreath 4.8s ease-in-out infinite; }
.auth-hero .lg-ring { position: absolute; inset: -16px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 236, 180, 0) 0deg, rgba(255, 236, 180, .75) 50deg, rgba(255, 236, 180, 0) 110deg, rgba(255, 236, 180, 0) 180deg, rgba(255, 236, 180, .55) 235deg, rgba(255, 236, 180, 0) 290deg); -webkit-mask: radial-gradient(circle, transparent 56%, #000 58%, #000 66%, transparent 70%); mask: radial-gradient(circle, transparent 56%, #000 58%, #000 66%, transparent 70%); filter: blur(2px); animation: mhSpin 7s linear infinite; }
.auth-hero .lg-ripple { position: absolute; inset: 14px; border-radius: 50%; border: 1.5px solid rgba(247, 210, 122, .6); opacity: 0; animation: mhRipple 3.6s ease-out infinite; }
.auth-hero .lg-ripple.r2 { animation-delay: 1.8s; }
.auth-hero .mh-logo { position: relative; z-index: 1; width: 64px; height: 64px; overflow: visible; animation: mhFloat 4.8s ease-in-out infinite; }
.auth-hero .mh-logo .m { stroke-dasharray: 152; stroke-dashoffset: 152; animation: mhDraw 1.3s .15s cubic-bezier(.65, 0, .35, 1) forwards; }
.auth-hero .mh-logo .m-glint { stroke-dasharray: 16 140; stroke-dashoffset: 156; opacity: 0; animation: mhGlint 3.4s 1.9s ease-in-out infinite; }
.auth-hero .mh-logo .pin { transform-box: fill-box; transform-origin: 50% 100%; animation: mhPinDrop .8s 1.15s cubic-bezier(.34, 1.56, .64, 1) both, mhPinBob 2.6s 2.2s ease-in-out infinite; }
@keyframes mhDraw { to { stroke-dashoffset: 0; } }
@keyframes mhGlint { 0% { stroke-dashoffset: 156; opacity: 0; } 12% { opacity: .95; } 70% { opacity: .95; } 85%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes mhPinDrop { from { transform: translateY(-30px) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mhPinBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes mhBreath { 0%, 100% { box-shadow: 0 0 36px 4px rgba(247, 210, 122, .28); transform: scale(1); } 50% { box-shadow: 0 0 72px 18px rgba(247, 210, 122, .5); transform: scale(1.05); } }
@keyframes mhRipple { 0% { transform: scale(.85); opacity: .85; } 100% { transform: scale(2); opacity: 0; } }
@keyframes mhSpin { to { transform: rotate(360deg); } }
@keyframes mhFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes mhDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(150px, -70px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  .auth-hero::before, .auth-hero::after, .auth-hero .logo-glow, .auth-hero .lg-ring, .auth-hero .lg-ripple, .auth-hero .mh-logo, .auth-hero .mh-logo .m-glint, .auth-hero .mh-logo .pin { animation: none; }
  .auth-hero .mh-logo .m { animation: none; stroke-dashoffset: 0; }
}

/* ---- real-data banner (client showcase workspace) ---- */
.env-bar { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 28px; min-height: 44px; color: #DCE4F5; font-size: 13px; line-height: 1.4;
  background: radial-gradient(220px 70px at 76% 50%, rgba(242, 181, 68, .22), rgba(242, 181, 68, 0) 70%), linear-gradient(100deg, #0E1B40 0%, #18357F 52%, #2453C9 100%); }
.env-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #F2B544, #EF6F3C 45%, #F2B544); }
.env-bar .env-org { width: 28px; height: 28px; border-radius: 8px; background: #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; font-size: 10px; font-weight: 800; color: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.env-bar .env-org img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.env-bar .env-text { min-width: 0; }
.env-bar .env-text b { color: #fff; font-weight: 700; }
.env-bar .env-route { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 12px; font-weight: 600; color: #fff; }
.env-bar .env-route .city { display: inline-flex; align-items: center; gap: 6px; }
.env-bar .env-route .flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.env-bar .env-route .arc { overflow: visible; margin-top: -6px; }
.env-bar .env-tag { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 4px 11px 4px 9px; border-radius: 999px; background: #10B981; color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px -4px rgba(16, 185, 129, .7); }
.env-bar .env-tag i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.env-bar .env-tag i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: envPing 1.8s ease-out infinite; }
@keyframes envPing { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@media (max-width: 1500px) { .env-bar .env-route { display: none; } .env-bar .env-tag { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .env-bar .env-tag i::after, .trial-chip .tc-ring .val { animation: none; } .env-bar .plane { display: none; } }
@media (max-width: 760px) { .env-bar { padding: 7px 14px; font-size: 12px; } .env-bar .env-tag { display: none; } }

/* ---- premium badge + channel logos ---- */
.nav a .premium { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #8A6514; background: linear-gradient(135deg, #FBEBC2, #F3D58C); padding: 2px 5px; border-radius: 6px; }
.nav a > span:not(.count):not(.soon):not(.premium) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nav a.active .premium { background: rgba(243, 213, 140, .22); color: #F7DC97; }
.premium-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8A6514; background: linear-gradient(135deg, #FBEBC2, #F3D58C); padding: 4px 10px; border-radius: 20px; }
.ch-logo-wrap { position: relative; display: inline-flex; flex-shrink: 0; border-radius: 5px; overflow: hidden; background: #fff; }
.ch-logo-wrap img.ch-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.ch-logo-wrap .ch-fb { display: none; position: absolute; inset: 0; }
.ch-logo-wrap.fallback img { display: none; }
.ch-logo-wrap.fallback .ch-fb { display: block; }
.ch-logo-wrap .ch-fb svg { width: 100%; height: 100%; }

/* ---- Google Maps markers ---- */
.gm-agent { transform: translateY(50%); }
.gm-prop { padding: 0 0 4px 6px; }
.gm-pop { font: 13px/1.5 Inter, system-ui, sans-serif; color: var(--ink); padding: 2px 4px; }

/* ---- WhatsApp page ---- */
.wa-ico { width: 52px; height: 52px; border-radius: 14px; background: #E3F6EA; color: #128C4A; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wa-steps > div { display: flex; gap: 10px; align-items: flex-start; background: #F7FBF8; border: 1px solid #DDEFE3; border-radius: 12px; padding: 12px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.wa-steps > div > b { width: 22px; height: 22px; border-radius: 50%; background: #1FA855; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
@media (max-width: 900px) { .wa-steps { grid-template-columns: 1fr; } }

/* ---- map notice + Traccar setup ---- */
.map-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px; background: #F4F2ED; color: var(--ink-2); text-align: center; font-size: 13.5px; line-height: 1.5; }
.map-empty svg { color: var(--muted); }
.map-empty div { max-width: 460px; }
.tc-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: #F4F2ED; border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; color: var(--ink); white-space: nowrap; }
.tc-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
