/* Lord Travel agents' site: the approved calm design (navy + gold, Heebo) - one header line, a thin step line, quiet cards, the receipt and the assistant in the side column. */
:root {
  --bg: #f7f6f2;
  --s: #ffffff;
  --fg: #1b2333;
  --mut: #80868f;
  --line: #ebe8e0;
  --navy: #14213d;
  --navy-2: #1f3260;
  --gold: #c9a227;
  --gold-soft: #f7f0db;
  --ok: #2f7d4f;
  --ok-soft: #e4f2e9;
  --pref: #1f4fa8;
  --bad: #a33a2c;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 4px 14px rgba(20, 33, 61, 0.05);
  --font: Heebo, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14px; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.55; }
input, textarea, select { font: inherit; color: var(--fg); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.mut { color: var(--mut); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ── Top bar ── */
.top { background: var(--navy); color: #fff; height: 52px; display: flex; align-items: center; gap: 30px; padding: 0 32px; position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 800; letter-spacing: 3px; font-size: 17px; text-decoration: none; color: #fff; }
.brand span { color: var(--gold); }
.nav { display: flex; gap: 22px; }
.nav a { color: #aab2c2; text-decoration: none; }
.nav a.on { color: #fff; font-weight: 600; }
.nav a.soon { opacity: 0.45; pointer-events: none; }
.top .me { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; color: #aab2c2; }
.btn-gold { background: var(--gold); color: var(--navy); border: 0; border-radius: 8px; padding: 6px 14px; font-weight: 700; text-decoration: none; }

/* ── Layout ── */
.page { max-width: 1440px; margin: 0 auto; padding: 26px 32px 40px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 78px; }
h1 { margin: 0; font-size: 24px; color: var(--navy); font-weight: 700; }
h2 { margin: 0; font-size: 18px; color: var(--navy); }
.sub { color: var(--mut); margin-top: 3px; }
.panel { background: var(--s); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 20px; }

/* ── Steps ── */
.steps { display: flex; align-items: center; gap: 10px; margin: 20px 0 26px; color: var(--mut); font-size: 13.5px; flex-wrap: wrap; }
.steps button { background: none; border: 0; padding: 2px 0; color: inherit; }
.steps .d { color: var(--ok); }
.steps .o { color: var(--navy); font-weight: 700; background: var(--gold-soft); border-radius: 99px; padding: 2px 12px; }
.steps .dash { width: 22px; height: 1px; background: #d6d2c7; }

/* ── Toolbar ── */
.tb { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tb .sp { flex: 1; }
.btn { background: var(--s); border: 1px solid var(--line); border-radius: 9px; padding: 6px 12px; color: var(--fg); }
.btn:hover { border-color: #d8d3c6; }
.btn .badge { background: var(--navy); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; margin-inline-start: 4px; }
.btn-primary { background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 9px 18px; font-weight: 700; }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 9px; padding: 5px 14px; font-weight: 600; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.seg { display: inline-flex; background: #eeebe3; border-radius: 9px; padding: 3px; }
.seg button { background: none; border: 0; padding: 4px 11px; border-radius: 7px; color: var(--mut); }
.seg button.on { background: var(--s); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); font-weight: 500; }
.menu { position: relative; }
.find input { background: var(--s); border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; width: 170px; }
.menu-pop { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; background: var(--s); border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 33, 61, 0.16); padding: 14px; z-index: 4; min-width: 280px; display: flex; flex-direction: column; gap: 12px; }
.menu-pop label { display: flex; align-items: center; gap: 8px; }
.menu-pop .row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--s); border: 1px solid var(--line); border-radius: 99px; padding: 4px 11px; }
.chip.on { border-color: var(--gold); background: var(--gold-soft); }

/* ── Cards ── */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--s); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card.sel { box-shadow: 0 0 0 2px var(--ok), 0 6px 18px rgba(47, 125, 79, 0.14); }
.ph { aspect-ratio: 16 / 10; background: #e9e6dd center / cover; position: relative; }
.tag { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, 0.95); border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 600; color: var(--pref); }
.tag.rec { color: #8a6a0c; }
.cb { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.r1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nm { font-weight: 700; font-size: 15.5px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc { font-weight: 700; color: var(--navy); flex: none; }
.mt { color: var(--mut); font-size: 13px; margin-top: 2px; }
.r2 { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.pr b { display: block; font-size: 18px; color: var(--navy); line-height: 1.1; }
.pr span { display: block; color: var(--mut); font-size: 12px; }

/* ── Lists (flights, dates, rooms) ── */
.list { display: flex; flex-direction: column; gap: 12px; }
.item { background: var(--s); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; align-items: center; }
.item.sel { box-shadow: 0 0 0 2px var(--ok), var(--shadow); }
.item .t { font-weight: 700; color: var(--navy); }
.item .legs { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.item .leg { color: var(--fg); }
.item .leg .mut { margin-inline-start: 6px; }
.item .price { text-align: left; }
.item .price b { font-size: 18px; color: var(--navy); display: block; }
.item .price span { color: var(--mut); font-size: 12px; }
.pill { display: inline-block; font-size: 12px; border-radius: 6px; padding: 1px 7px; background: #f1efe8; color: var(--mut); margin-inline-start: 6px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.gold { background: var(--gold-soft); color: #8a6a0c; }

/* ── Table view ── */
.table-wrap { overflow-x: auto; background: var(--s); border-radius: 14px; box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: right; font-weight: 500; color: var(--mut); padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; }
table.data th button { background: none; border: 0; color: inherit; padding: 0; }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.sel td { background: var(--ok-soft); }
table.data .thumb { width: 64px; height: 42px; border-radius: 6px; background: #e9e6dd center / cover; }

/* ── Room types ── */
.type { background: var(--s); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.type-head { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 14px 18px; text-align: right; color: var(--fg); }
.type-head .t { font-weight: 700; color: var(--navy); font-size: 15px; }
.type-head .sp { flex: 1; }
.type-head .from b { color: var(--navy); font-size: 16px; }
.type-head .chev { color: var(--mut); }
.type.open .type-head { border-bottom: 1px solid var(--line); }
.type-body { display: flex; flex-direction: column; }
.opt { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); }
.opt:first-child { border-top: 0; }
.opt .price { text-align: left; }
.opt .price b { display: block; color: var(--navy); }
.opt .price span { color: var(--mut); font-size: 12px; }

/* ── Receipt ── */
.rc .h { font-weight: 700; color: var(--navy); margin-bottom: 12px; display: flex; justify-content: space-between; }
.rc .h span { color: var(--mut); font-weight: 400; font-size: 12px; }
.ln { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.ln > span:first-child { color: var(--mut); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln b { font-weight: 600; }
.ln.w b { color: #c2c5ca; font-weight: 400; }
.hr { height: 1px; background: var(--line); margin: 10px 0; }
.tot { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.tot .v { font-size: 20px; font-weight: 800; color: var(--navy); }
.profit { display: flex; justify-content: space-between; color: var(--ok); font-weight: 600; padding-top: 2px; }
.profit.loss { color: var(--bad); }
.rc .go { width: 100%; margin-top: 16px; }

/* ── Add-ons in the receipt ── */
.rc .ex { display: inline-flex; align-items: center; gap: 6px; }
.rc .x { background: none; border: 0; color: var(--mut); padding: 0 2px; font-size: 12px; }
.rc .x:hover { color: var(--bad); }
.rc .wanted { margin: 6px 0; color: var(--mut); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rc .wanted .chip { font-size: 12.5px; padding: 2px 9px; }
.link-add { background: none; border: 0; color: var(--navy-2); padding: 6px 0 2px; font-size: 13px; text-decoration: underline; text-decoration-color: var(--gold); }
.extra-form { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; background: var(--bg); border-radius: 10px; padding: 10px; }
.extra-form select, .extra-form input { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: var(--s); }
.extra-form .row { display: flex; gap: 8px; }
.extra-form .btn-primary { padding: 6px 14px; }

/* ── Assistant ── */
.ai .tip { line-height: 1.55; white-space: pre-wrap; }
.ai .thread { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; margin-bottom: 10px; }
.ai .m { border-radius: 12px; padding: 8px 11px; line-height: 1.5; white-space: pre-wrap; }
.ai .m.bot { background: var(--bg); }
.ai .m.me { background: #e8eefb; align-self: flex-end; }
.ai form { display: flex; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 10px; align-items: center; }
.ai input { flex: 1; border: 0; outline: 0; background: transparent; padding: 6px 0; min-width: 0; }
.ai form button { background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 5px 12px; font-weight: 700; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { color: var(--mut); font-size: 13px; }
.field input, .field textarea, .field select { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--s); }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 22px; margin: 6px 0 4px; }
.facts div b { display: block; color: var(--mut); font-weight: 400; font-size: 12.5px; }
.note { background: var(--gold-soft); border-radius: 10px; padding: 10px 14px; line-height: 1.55; }
.note.bad { background: #f8e6e3; color: var(--bad); }
.note.ok { background: var(--ok-soft); color: var(--fg); }
select.status { border: 0; font: inherit; font-size: 12px; cursor: pointer; }

/* ── Quotes home ── */
.home-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.home-head .sp { flex: 1; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: #faf8f2; }
.status { font-size: 12px; border-radius: 99px; padding: 2px 10px; background: #f1efe8; color: var(--mut); }
.status.won { background: var(--ok-soft); color: var(--ok); }
.status.sent { background: #e8eefb; color: var(--pref); }
.status.work { background: var(--gold-soft); color: #8a6a0c; }
.status.lost { background: #f3e3e0; color: var(--bad); }

/* ── Login ── */
.login { display: flex; justify-content: center; padding-top: 70px; }
.login form { width: min(440px, 100%); display: flex; flex-direction: column; gap: 16px; }
.login ol { margin: 0; padding-inline-start: 20px; line-height: 1.9; }
.login .code { font-size: 22px; letter-spacing: 6px; text-align: center; font-weight: 700; }
.link-btn { background: none; border: 0; color: #aab2c2; padding: 0; text-decoration: underline; }

/* ── Waiting / empty / errors ── */
.wait { display: flex; align-items: center; gap: 12px; background: var(--s); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; color: var(--mut); }
.spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.empty { text-align: center; color: var(--mut); padding: 50px 20px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); z-index: 10; max-width: 90vw; }
.toast.bad { background: var(--bad); }
.more { text-align: center; margin-top: 18px; }

/* ── Message + PDF ── */
.msg-box { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; background: var(--bg); border-radius: 12px; padding: 14px 16px; max-height: 520px; overflow-y: auto; }
.pdf-frame { width: 100%; height: 640px; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.done-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
/* 💬 WhatsApp to the client: the number, the name, send - one row; on a phone one under the other */
.wa-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.wa-form { display: flex; gap: 8px; flex-wrap: wrap; }
.wa-form input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; background: var(--s); min-width: 0; flex: 1 1 140px; }
.wa-form input[dir="ltr"] { text-align: right; }
@media (max-width: 760px) {
  .done-grid { grid-template-columns: minmax(0, 1fr); }
  .wa-form input, .wa-form button { flex: 1 1 100%; font-size: 16px; }
}

/* ── Phone width ── */
@media (max-width: 1100px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top { padding: 0 16px; gap: 14px; }
  .nav { display: none; }
  .page { padding: 18px 16px 30px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item { grid-template-columns: minmax(0, 1fr) auto; }
  .item .act { grid-column: 1 / -1; }
}

/* The hotel map (OpenStreetMap): prices as pins, a small card for the tapped hotel. */
.map-wrap { position: relative; height: min(68vh, 620px); min-height: 380px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #e9e6dd; }
.map { position: absolute; inset: 0; font-family: var(--font); }
.map-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 500; }
.map-note { position: absolute; top: 10px; right: 10px; z-index: 600; background: var(--s); color: var(--mut); font-size: 12.5px; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.map-pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap; direction: ltr; background: var(--navy); color: #fff; font: 600 12.5px/1 var(--font); padding: 5px 7px; border-radius: 7px; border: 1.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); cursor: pointer; }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--navy); border-bottom: 0; }
.map-pin.pref { background: var(--pref); }
.map-pin.pref::after { border-top-color: var(--pref); }
.map-pin.sel { background: var(--ok); transform: translate(-50%, -100%) scale(1.1); }
.map-pin.sel::after { border-top-color: var(--ok); }
.map-pin:hover { filter: brightness(1.15); }
.map-near { position: absolute; width: 16px; height: 16px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.map-card { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 700; max-width: 520px; margin-inline-start: auto; display: flex; gap: 12px; background: var(--s); border-radius: 12px; box-shadow: 0 6px 22px rgba(20, 33, 61, 0.2); padding: 10px; }
.map-card .thumb { flex: none; width: 96px; border-radius: 8px; background: #e9e6dd center / cover; }
.map-card .mc { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-inline-end: 20px; }
.map-card .mut { font-size: 13px; }
.map-card .r2 { padding-top: 6px; }
.map-card .x { position: absolute; top: 6px; left: 8px; background: none; border: 0; color: var(--mut); font-size: 15px; cursor: pointer; }
.leaflet-container a { color: var(--navy-2); }
.map-dot { position: absolute; width: 11px; height: 11px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--navy); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); cursor: pointer; }
.map-dot.pref { background: var(--pref); }

/* Files for a request: the 📎 button and a chip per file (⏳ while it goes up). */
.attach { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.file { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; background: var(--gold-soft); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; }
.file.up { opacity: 0.6; }
.file .fn { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .x { background: none; border: 0; color: var(--mut); cursor: pointer; padding: 0 4px; font-size: 12px; }
.drop.over { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }

/* The request form (✏️ עריכה). */
.req-form { display: flex; flex-direction: column; gap: 14px; }
.req-form .facts { align-items: end; }
.req-form .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* The dashboard: the agent's numbers (a tile filters the list), the search box. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: right; background: var(--s); border: 0; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; font: inherit; color: inherit; cursor: pointer; }
.tile.static { cursor: default; }
.tile.on { box-shadow: 0 0 0 2px var(--navy), var(--shadow); }
.tile b { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.15; }
.tile span { color: var(--fg); font-weight: 500; }
.tile small { color: var(--mut); font-size: 12px; }
.search { flex: 1; min-width: 200px; max-width: 360px; background: var(--s); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
td.loss, span.loss { color: var(--bad); }

/* The ידע page: a line per rule / lesson, its delete on the side. */
.item.mem { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; line-height: 1.55; }
.row-wrap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-ok-o { border-color: var(--ok); color: var(--ok); }

.me-link { color: inherit; text-decoration: none; }
.me-link:hover { text-decoration: underline; }

/* Events: the date on the side, the event, its packages, "בנה הצעה". */
.item.event { grid-template-columns: 96px minmax(0, 1fr) auto; align-items: start; }
.item.event .when { display: flex; flex-direction: column; gap: 2px; color: var(--navy); }
.item.event .when span { color: var(--mut); font-size: 13px; }
.item.event .pkgs { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; background: var(--gold-soft); border-radius: 10px; padding: 8px 12px; }
.item.event .pkgs a { color: var(--navy-2); }
@media (max-width: 640px) { .item.event { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* /trip: the conversation in the middle, the brief, ✅ and the files on the side. */
.trip-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 960px) { .trip-grid { grid-template-columns: minmax(0, 1fr); } }
.trip-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.trip-side h3 { margin: 0 0 8px; font-size: 14.5px; color: var(--navy); }
.side-actions { display: flex; flex-direction: column; gap: 10px; }
.msg { background: var(--s); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 12px; }
.msg.me { background: #eef1f7; box-shadow: none; margin-inline-start: 80px; }
.msg .who { font-size: 12.5px; color: var(--mut); margin-bottom: 4px; }
.msg .body { white-space: pre-wrap; line-height: 1.6; overflow-wrap: anywhere; }
.tcard { background: var(--s); border-radius: 14px; box-shadow: 0 0 0 1.5px var(--gold), var(--shadow); padding: 14px 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.tcard .opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.tcard .opt.star { border-color: var(--gold); background: #fffcf2; }
.tcard .night { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding: 6px 0; }
.tcard .night .sp { flex: 1; }
.running { display: flex; flex-direction: column; gap: 5px; background: var(--s); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 12px; }
.running .l { color: var(--mut); font-size: 14px; } .running .l.now { color: var(--fg); }
.spin { display: inline-block; width: 13px; height: 13px; border: 2px solid var(--line); border-top-color: var(--navy); border-radius: 50%; margin-inline-end: 8px; vertical-align: -2px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.composer { display: flex; gap: 10px; align-items: flex-end; background: var(--s); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; margin-top: 4px; }
.composer textarea { flex: 1; border: 0; resize: vertical; font: inherit; padding: 6px 8px; outline: none; min-height: 44px; background: transparent; }
.lock { display: flex; gap: 10px; align-items: center; background: #fdf3e7; color: #7a4a06; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.lock.mine { background: #e8eefb; color: var(--pref); }
.lock .sp { flex: 1; }
.file-line { padding: 3px 0; font-size: 14px; }
.file-line a { color: var(--navy-2); text-decoration: none; } .file-line a:hover { text-decoration: underline; }
.pill.blue { background: #e8eefb; color: var(--pref); }
/* /trip cards to answer: options as buttons, the vision's order, the transport legs. */
.tcard .opt.pick { width: 100%; text-align: right; background: var(--s); font: inherit; color: inherit; cursor: pointer; }
.tcard .opt.pick:hover:not(:disabled) { border-color: var(--navy); }
.tcard .opt.pick.on { border-color: var(--navy); background: #eef1f7; }
.tcard.done { box-shadow: var(--shadow); }
.tcard .round { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--s); font-size: 16px; cursor: pointer; }
.tcard .night .num { min-width: 24px; text-align: center; }
.badge-n { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--navy); }
.opt.on .badge-n { background: var(--navy); border-color: var(--navy); color: #fff; }
.leg-row { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.seg.wrap { flex-wrap: wrap; align-self: flex-start; }
.item.star { box-shadow: 0 0 0 1.5px var(--gold), var(--shadow); }
.list-card { gap: 10px; }
.list-card .item { box-shadow: none; border: 1px solid var(--line); }
.list-card .item.star { border-color: var(--gold); }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.area { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.area.star { border-color: var(--gold); background: #fffcf2; }
.card.sel-star { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.list-card .opt { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; }
/* /trip: what goes to the client - the offer (message, PDF, the rooms' photos) and the day-by-day document */
.kit { margin-top: 14px; }
.kit h3 { margin: 0 0 10px; font-size: 16px; color: var(--navy); display: inline; }
.kit > h3 { display: block; }
.kit summary { cursor: pointer; }
.kit-body { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.kit .note ul { margin: 6px 0 0; padding-inline-start: 20px; }
.note ul { margin: 6px 0 0; padding-inline-start: 20px; }
.pill.bad { background: #f8e6e3; color: var(--bad); }
a.btn, a.btn-primary { text-decoration: none; display: inline-block; }
.built { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.built .file { background: var(--s); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 13.5px; color: var(--navy-2); text-decoration: none; }
.built .file:hover { border-color: var(--navy-2); }
.albums { display: flex; flex-direction: column; gap: 12px; }
.album { border-top: 1px solid var(--line); padding-top: 10px; }
.album-cap { font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.album-cap .chip { padding: 0 7px; margin-inline-start: 6px; font-size: 12px; }
.album-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.album-row img { height: 120px; width: auto; max-width: 200px; object-fit: cover; border-radius: 8px; display: block; background: var(--bg); }
@media (max-width: 640px) { .album-row img { height: 96px; } }
/* Lord Tickets: the ready packages, the shows and their seats */
.pkgs { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.pkg { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 16px; }
.pkg:not(:has(.seatmap)) { grid-template-columns: minmax(0, 1fr); }
.pkg h3 { margin: 0; font-size: 16.5px; color: var(--navy); }
.pkg-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pkg-lines { font-size: 13.5px; line-height: 1.7; }
.seatmap { display: block; align-self: start; }
.seatmap img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; background: var(--bg); display: block; }
.choose-own { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.choose-own .sp { flex: 1; }
.lt { margin-bottom: 16px; padding: 12px 18px; }
.lt summary { cursor: pointer; line-height: 1.6; }
.lt-pkgs { margin-bottom: 16px; }
.lt-view { display: flex; flex-direction: column; gap: 10px; }
.shows { display: flex; flex-direction: column; gap: 8px; }
.show-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 20px; gap: 12px; align-items: center; text-align: start; background: var(--s); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--fg); }
.show-row:hover { border-color: var(--navy-2); }
.show-row .n { width: 26px; height: 26px; border-radius: 99px; background: var(--gold-soft); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.show-row .w { display: flex; flex-direction: column; min-width: 0; }
.show-row .go { color: var(--mut); }
.show { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.show:not(:has(.seatmap)) { grid-template-columns: minmax(0, 1fr); }
.show-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.seats { width: 100%; border-collapse: collapse; font-size: 14px; }
.seats th { text-align: start; font-weight: 400; color: var(--mut); font-size: 12.5px; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.seats td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.seats tr.on td { background: var(--ok-soft); }
.lt-ask { display: flex; gap: 8px; }
.lt-ask input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; background: var(--s); }
@media (max-width: 640px) {
  .pkg, .show { grid-template-columns: minmax(0, 1fr); }
  .seats th:nth-child(3), .seats td:nth-child(3) { display: none; }
}
/* A route (several stays): the agent's draft, its live progress, changes in words and the price */
.route { display: flex; flex-direction: column; gap: 14px; }
.route h2 { margin: 0; }
.route-sec { display: flex; flex-direction: column; gap: 6px; }
.route-flight { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.route-flight .lbl { font-weight: 700; color: var(--navy); min-width: 38px; }
.route-flight .sp { flex: 1; }
.route-stays { display: flex; flex-direction: column; gap: 10px; }
.route-stay { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.route-stay img, .route-stay .ph { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-size: 24px; }
.route-stay .body { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; }
.route-run { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.steps-live { margin: 0; padding-inline-start: 22px; color: var(--mut); font-size: 13.5px; line-height: 1.7; }
.route-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.route-actions form { display: flex; flex-direction: column; gap: 10px; }
.route-actions textarea, .route-actions input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--s); width: 100%; }
.route-hint .btn { background: var(--s); }
@media (max-width: 760px) { .route-actions { grid-template-columns: minmax(0, 1fr); } .route-stay { grid-template-columns: 72px minmax(0, 1fr); } .route-stay img, .route-stay .ph { width: 72px; height: 56px; } }
/* The owner's calls, and a voice message being recorded */
.calls { display: flex; flex-direction: column; gap: 10px; }
.call { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 14px 18px; }
.call .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.call audio { height: 36px; max-width: 320px; }
.call .row-wrap { grid-column: 1 / -1; }
.call.skipped { opacity: 0.55; }
.btn.rec { border-color: var(--bad); color: var(--bad); }
@media (max-width: 640px) { .call { grid-template-columns: minmax(0, 1fr); } .call audio { max-width: 100%; width: 100%; } }
/* The owner's health panel */
.health { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.hc { background: var(--s); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: baseline; }
.hc .mut { grid-column: 2; font-size: 13px; }
.hc.bad { background: #fbeceb; }
.errs { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; max-height: 280px; overflow-y: auto; overflow-wrap: anywhere; }
/* The phone app: a tab bar at the bottom (the top menu has no room), its "more" sheet */
.tabbar, .sheet, .sheet-back { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 20; background: var(--navy); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; color: #aab2c2; text-decoration: none; font: inherit; font-size: 11.5px; background: none; border: 0; }
  .tabbar .i { font-size: 19px; line-height: 1; }
  .tabbar .on { color: #fff; font-weight: 600; }
  .sheet-back { display: block; position: fixed; inset: 0; z-index: 18; background: rgba(20, 33, 61, 0.35); }
  .sheet { display: flex; flex-direction: column; position: fixed; inset-inline: 0; bottom: calc(60px + env(safe-area-inset-bottom, 0px)); z-index: 19; background: var(--s); border-radius: 16px 16px 0 0; padding: 8px 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.15); }
  .sheet-item { display: block; text-align: start; padding: 14px 22px; color: var(--fg); text-decoration: none; background: none; border: 0; font: inherit; font-size: 16px; }
  .sheet-item + .sheet-item { border-top: 1px solid var(--line); }
  .sheet-note { padding: 12px 22px; color: var(--mut); font-size: 14px; border-top: 1px solid var(--line); }
  .top .me .me-link, .top .me .link-btn { display: none; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
/* On a phone the lists (quotes, trips, logins) are cards: one row a card, its cells one under the other - no column cut off */
@media (max-width: 640px) {
  table.data.cards thead { display: none; }
  table.data.cards, table.data.cards tbody, table.data.cards tr, table.data.cards td { display: block; width: 100%; }
  table.data.cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.data.cards tr:last-child { border-bottom: 0; }
  table.data.cards td { padding: 2px 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  table.data.cards td:empty { display: none; }
}
