/* 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; }
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; }

/* ---- 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(5, 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; } }
