/* LTI live layer styles (release 1.3.0). Uses the existing design tokens (--d-*) so pages keep the approved look. */

/* ---- One-screen layout on desktop: the page area fills the window; content pages instead of scrolling.
        If a page is ever taller than the window it scrolls inside the page area (never clipped). ---- */
@media (min-width: 861px) and (min-height: 600px) {
  html:not(.lti-trav), html:not(.lti-trav) body { height: 100%; overflow: hidden; }
  .lay { height: calc(100vh - var(--lv-top, 64px)); overflow: hidden; align-items: stretch; }
  .sb { height: 100%; overflow-y: auto; position: relative; top: 0; }
  #m { height: 100%; overflow-y: auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding-top: 16px; padding-bottom: 14px; }
  #m > .hd { flex-shrink: 0; margin-bottom: 12px; }
  #m > .tabs, #m > .seg, #m > .row, #m > .info, #m > .pgx { flex-shrink: 0; }
  .lv-fill { flex: 1 1 auto; min-height: 0; }
  .lv-page { display: flex; flex-direction: column; }
  .lv-page > .lv-card { display: flex; flex-direction: column; overflow: hidden; }
  .lv-dash { display: grid; grid-template-rows: auto minmax(220px, 1.15fr) minmax(200px, 1fr) auto; gap: 12px; }
  .lv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0; }
  .lv-row-mid { grid-template-columns: 1.7fr 1fr; }
  .lv-card { display: flex; flex-direction: column; min-height: 0; margin: 0 !important; overflow: hidden; }
  .lv-card > .bd { flex: 1 1 auto; min-height: 0; overflow: hidden; }
}
@media (max-width: 860px), (max-height: 599px) {
  .lv-dash { display: flex; flex-direction: column; gap: 12px; }
  .lv-row { display: flex; flex-direction: column; gap: 12px; }
  .lv-chart { height: 240px; }
}

/* ---- Dashboard ---- */
.lv-kpis { margin: 0 !important; }
.lv-k { text-align: left; font: inherit; width: 100%; cursor: pointer; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.lv-k:disabled { cursor: default; opacity: 1; color: inherit; }
.lv-k:not(:disabled):hover { border-color: var(--d-gold); }
.lv-k:focus-visible { outline: 2px solid var(--d-gold); outline-offset: 2px; }
.lv-k > span { font-size: 12.5px; color: var(--d-slate); font-weight: 600; }
.lv-k > b { font: 650 22px/1.2 var(--d-ui); color: var(--d-navy); font-variant-numeric: tabular-nums; }
.lv-k > b.lv-gold { color: var(--d-gold-ink); }
.lv-k > b.lv-warn { color: var(--d-danger); }
.lv-k > small { font-size: 11.5px; line-height: 1.35; }
.lv-up { color: #1f7a4d; font-weight: 600; }
.lv-down { color: var(--d-danger); font-weight: 600; }
.lv-small { font-size: 12px; font-weight: 500; }
.lv-note { margin: 0; font-size: 12px; }
.lv-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; }
.lv-card > header h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-seg button { padding: 3px 10px; font-size: 12px; }
.lv-chart { position: relative; padding: 6px 10px 4px !important; }
.lv-chart svg { display: block; }
.lv-chart .lv-ax { font: 500 11px var(--d-ui); fill: var(--d-slate); }
.lv-chart .lv-grid { stroke: var(--d-line); stroke-width: 1; }
.lv-chart .lv-base { stroke: #c9d2de; stroke-width: 1; }
.lv-chart [data-tip]:hover path { opacity: .85; }
.lv-empty-chart { position: absolute; inset: 40% 0 auto; text-align: center; margin: 0; font-size: 13px; }
.lv-pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; height: calc(100% - 26px); align-items: stretch; }
.lv-stage { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0; }
.lv-stage b { font: 650 18px var(--d-ui); color: var(--d-navy); }
.lv-stage span { font-size: 12px; color: var(--d-slate); font-weight: 600; }
.lv-stage-bar { flex: 1; width: 100%; max-width: 64px; display: flex; align-items: flex-end; background: var(--d-porcelain); border-radius: 6px; min-height: 40px; }
.lv-stage-bar i { display: block; width: 100%; background: #2f63a8; border-radius: 6px 6px 2px 2px; }
.lv-bars { display: flex; flex-direction: column; gap: 9px; padding-top: 12px !important; }
.lv-hb { display: grid; gap: 3px; }
.lv-hb-l { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.lv-hb-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--d-navy-2); }
.lv-hb-l b { font-variant-numeric: tabular-nums; color: var(--d-navy); }
.lv-hb-t { height: 8px; background: var(--d-porcelain); border-radius: 4px; overflow: hidden; }
.lv-hb-t i { display: block; height: 100%; background: #b8892d; border-radius: 4px; }
.lv-hb small { font-size: 11px; }
.lv-tbody .tw { overflow: hidden; }
.lv-tbody table, .lv-lib { table-layout: fixed; width: 100%; }
.lv-ell, .lv-ell2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-ell2 { display: inline-block; max-width: 100%; vertical-align: bottom; }
.lv-r { text-align: right; font-variant-numeric: tabular-nums; }
.lv-tbody td, .lv-lib td { white-space: nowrap; }
.lv-tbody .circ { margin-right: 8px; vertical-align: middle; }
.lv-pgn { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 12px; border-top: 1px solid var(--d-line); font-size: 12px; flex-shrink: 0; min-height: 38px; }
.lv-page > .lv-pgn { border: 0; padding: 8px 2px 0; }
.lv-pgn .row { gap: 6px; align-items: center; }
.lv-pgn .btn.s { height: 26px; padding: 0 9px; }
.lv-tip { position: fixed; z-index: 1000; pointer-events: none; background: var(--d-navy-2); color: #fff; font: 500 12px/1.45 var(--d-ui); padding: 7px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgba(14, 31, 58, .22); max-width: 280px; }
.lv-loading { display: flex; align-items: center; gap: 10px; padding: 24px; color: var(--d-slate); }
.lv-loading span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--d-line); border-top-color: var(--d-gold); animation: lv-spin .8s linear infinite; }
@keyframes lv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lv-loading span { animation: none; } }

/* ---- Library ---- */
.lv-sub { margin-bottom: 10px; min-height: 32px; flex-shrink: 0; }
.lv-crumbs { font-size: 13.5px; }
.lv-search input { width: 220px; }
.lv-lib th:nth-child(1).ck1, .lv-lib td.ck1 { width: 42px; }
.lv-lib th:last-child { width: 56px; }
.lv-name { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; min-width: 0; }
.lv-name svg { flex: none; color: var(--d-slate); }
.lv-thumb { width: 34px; height: 26px; object-fit: cover; border-radius: 4px; flex: none; background: var(--d-porcelain); }
.lv-dots { width: 30px; height: 30px; }
.lv-dd { right: 0; left: auto; min-width: 170px; z-index: 50; }
.lv-dd a.lv-danger, .btn.lv-danger { color: var(--d-danger); }
.lv-bulk { display: flex; align-items: center; gap: 8px; background: var(--d-tint); border: 1px solid var(--d-line); border-radius: 10px; padding: 4px 6px 4px 12px; font-size: 13px; }
.lv-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lv-fstrip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; flex-shrink: 0; }
.lv-fstrip .lv-pgn { flex-basis: 100%; border: 0; padding: 0; min-height: 0; }
.lv-ftile { display: flex; align-items: center; gap: 10px; width: 222px; height: 52px; padding: 0 6px 0 14px; background: #fff; border: 1px solid var(--d-line); border-radius: 10px; cursor: pointer; }
.lv-ftile:hover, .lv-ph:hover { border-color: var(--d-gold); }
.lv-ftile b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.lv-gal { display: grid; gap: 12px; align-content: start; min-height: 0; }
.lv-ph { margin: 0; background: #fff; border: 1px solid var(--d-line); border-radius: 12px; overflow: visible; cursor: pointer; display: flex; flex-direction: column; }
.lv-ph:focus-visible, .lv-ftile:focus-visible { outline: 2px solid var(--d-gold); outline-offset: 2px; }
.lv-ph-img { height: 150px; background: var(--d-porcelain); border-radius: 12px 12px 0 0; overflow: hidden; }
.lv-ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-ph figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 6px 6px 12px; font-size: 13px; min-width: 0; }
.lv-ph-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.lv-ph-big { background: var(--d-porcelain); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; max-height: 60vh; }
.lv-ph-big img { max-width: 100%; max-height: 60vh; display: block; }
@media (max-width: 720px) { .lv-ph-detail, .lv-2col { grid-template-columns: 1fr; } .lv-search input { width: 140px; } }

/* The adapter's footer line repeats the agency name shown in the header; hide it on desktop to save a row. */
#m > p[data-live="footer"] { display: none; }
.lv-tbody .t2 th { padding-top: 7px; padding-bottom: 7px; }
.lv-tbody .t2 td { padding-top: 6px; padding-bottom: 6px; }
.lv-hb-l small { font-weight: 500; margin-left: 4px; }

/* keep the floating softphone button clear of the last pager */
.lv-row:last-child > .lv-card:last-child .lv-pgn, .lv-page > .lv-pgn { padding-right: 76px; }

/* Saving state for dialog buttons (1.3.1) */
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: lv-spin .8s linear infinite; }
.btn.o.busy::after { border-color: var(--d-line); border-top-color: var(--d-navy); }

/* ---- 1.4.0: library tabs ---- */
.lv-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--d-line); margin-bottom: 10px; flex-shrink: 0; }
.lv-tabs button { border: 0; background: none; padding: 8px 0; font: 500 14px var(--d-ui); color: var(--d-slate); cursor: pointer; }
.lv-tabs button.on { color: var(--d-navy-2); font-weight: 650; box-shadow: inset 0 -2px 0 var(--d-navy); }
.lv-tabs button:focus-visible { outline: 2px solid var(--d-gold); outline-offset: 2px; }

/* ---- 1.4.0: itinerary builder ---- */
.lv-bhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; flex-shrink: 0; }
.lv-bhead-l { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.lv-title-in { font: 600 26px/1.2 var(--d-title); color: var(--d-navy); border: 1px solid transparent; border-radius: 8px; padding: 2px 6px; margin-left: -6px; background: transparent; width: 100%; max-width: 900px; }
.lv-title-in:hover, .lv-title-in:focus { border-color: var(--d-line); background: #fff; outline: none; }
.lv-builder { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 14px; min-height: 0; }
.lv-builder.lv-ro { grid-template-columns: 260px minmax(0, 1fr); }
.lv-col { display: flex; flex-direction: column; min-height: 0; margin: 0 !important; }
.lv-col > header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--d-line); flex-shrink: 0; }
.lv-col > header h2 { margin: 0; font-size: 15px; }
.lv-days { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; }
.lv-day { display: flex; align-items: center; gap: 4px; border: 1px solid transparent; border-radius: 9px; padding: 2px 2px 2px 6px; background: #fff; }
.lv-day.on { background: var(--d-tint); border-color: #c9d2de; }
.lv-day-b { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 4px; font: 500 13.5px var(--d-ui); color: var(--d-navy-2); cursor: pointer; text-align: left; }
.lv-day.on .lv-day-b { font-weight: 700; }
.lv-dayn { width: 26px; height: 26px; flex: none; border-radius: 7px; background: var(--d-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.lv-grip { color: #8794a8; cursor: grab; letter-spacing: -2px; user-select: none; flex: none; }
.lv-daycol { gap: 10px; overflow-y: auto; padding-right: 2px; }
.lv-dayhead { display: grid; grid-template-columns: 260px minmax(0, 1fr); overflow: hidden; margin: 0 !important; flex-shrink: 0; }
.lv-cover { position: relative; min-height: 150px; background: var(--d-porcelain); display: flex; align-items: center; justify-content: center; color: var(--d-slate); }
.lv-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lv-cover > span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.lv-cover-b { position: absolute; right: 8px; bottom: 8px; }
.lv-dayinfo { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lv-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--d-gold-ink); text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.lv-daytitle { font: 600 20px var(--d-title); color: var(--d-navy); border: 1px solid transparent; border-radius: 8px; padding: 2px 6px; margin-left: -6px; background: transparent; }
.lv-daytitle:hover, .lv-daytitle:focus { border-color: var(--d-line); background: #fff; outline: none; }
.lv-items { display: flex; flex-direction: column; gap: 8px; }
.lv-item { display: grid; grid-template-columns: 18px 88px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 8px 8px 8px; margin: 0 !important; }
.lv-item-img { height: 62px; border-radius: 8px; background: var(--d-porcelain); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--d-slate); }
.lv-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-item-b { border: 0; background: none; text-align: left; padding: 0; cursor: pointer; min-width: 0; display: flex; flex-direction: column; gap: 2px; font: inherit; color: inherit; }
.lv-item-b b { font-size: 14.5px; }
.lv-desc { font-size: 12.5px; color: var(--d-slate); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lv-price { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.lv-dropzone { border: 2px dashed #c9d2de; border-radius: 12px; padding: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--d-slate); font-size: 13.5px; }
.lv-over { outline: 2px dashed var(--d-gold) !important; outline-offset: 2px; background: #fbf7ee !important; }
.lv-dropzone.lv-over { color: var(--d-gold-ink); }
.lv-dragging { opacity: .45; }
.lv-libl { padding: 8px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; }
.lv-libi { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--d-line); border-radius: 10px; background: #fff; cursor: grab; font-size: 13px; }
.lv-libi:hover { border-color: var(--d-gold); }
.lv-libi img { width: 56px; height: 42px; object-fit: cover; border-radius: 7px; flex: none; }
.lv-libi > .lv-ell { flex: 1; min-width: 0; }
.lv-libic { width: 34px; height: 34px; border-radius: 8px; background: var(--d-tint); display: flex; align-items: center; justify-content: center; flex: none; color: var(--d-slate); }
.lv-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-height: 60vh; overflow-y: auto; }
.lv-pick-i { border: 1px solid var(--d-line); border-radius: 10px; background: #fff; padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: left; font: 12.5px var(--d-ui); }
.lv-pick-i:hover, .lv-pick-i:focus-visible { border-color: var(--d-gold); outline: none; }
.lv-pick-i img { width: 100%; height: 100px; object-fit: cover; }
.lv-pick-i span { padding: 6px 8px; }
.lv-thumb-l { width: 64px; height: 48px; }

/* ---- 1.4.0: automations ---- */
.lv-aurow { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); gap: 14px; min-height: 0; flex: 1 1 auto; }
.lv-aulist { display: flex; flex-direction: column; overflow: hidden; }
.lv-aulist .tw { flex: 1; min-height: 0; overflow: hidden; }
.lv-rowsel td { background: #fbf7ee; }
.lv-aued { display: flex; flex-direction: column; overflow: hidden; }
.lv-aued > header { padding: 10px 14px !important; border-bottom: 1px solid var(--d-line); display: flex; align-items: flex-start; gap: 8px; }
.lv-auname { width: 100%; font: 650 17px var(--d-ui); color: var(--d-navy-2); border: 1px solid transparent; border-radius: 8px; padding: 3px 6px; margin: 2px 0 0 -6px; background: transparent; }
.lv-auname:hover, .lv-auname:focus { border-color: var(--d-line); background: #fff; outline: none; }
.lv-aubody { flex: 1 1 auto; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.lv-aubody label { margin-top: 6px; }
.lv-sect { display: flex; flex-direction: column; gap: 8px; }
.lv-sect > span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--d-slate); margin-top: 6px; }
.lv-cond { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr) 30px; gap: 6px; align-items: center; }
.lv-act { border: 1px solid var(--d-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.lv-acth { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lv-3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lv-aufoot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--d-line); flex-shrink: 0; flex-wrap: wrap; }
.lv-auempty { display: flex; align-items: center; justify-content: center; }
.lv-st { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.lv-st-on { background: #e3f3ea; color: #1f6b45; }
.lv-st-draft { background: #eef1f5; color: var(--d-slate); }
.lv-st-off { background: #fbeceb; color: #9a2a1f; }
.lv-dd-scroll { max-height: 280px; overflow-y: auto; min-width: 280px; }
.lv-testres pre { max-height: 240px; overflow: auto; background: var(--d-porcelain); padding: 10px; border-radius: 8px; font-size: 12px; }
@media (max-width: 1100px) { .lv-builder { grid-template-columns: 220px minmax(0, 1fr); } .lv-builder > aside { display: none; } .lv-aurow { grid-template-columns: 1fr; } .lv-dayhead { grid-template-columns: 1fr; } }
.lv-sect > .btn, .lv-aubody .row > .rel > .btn { align-self: flex-start; width: auto; }
.lv-aufoot { padding-right: 80px; }
/* Email setup (1.5.0) */
.lv-h2 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.lv-mailrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.lv-mailside { display: grid; gap: 14px; }
.lv-mail label, .lv-mailside label { display: block; font-size: 12px; font-weight: 600; margin: 8px 0 4px; }
.lv-mail input, .lv-mail select, .lv-mailside input { width: 100%; }
.lv-mail p.lv-small, .lv-mailside p.lv-small { margin: 4px 0 0; }
.lv-check { display: flex !important; align-items: center; gap: 8px; font-weight: 600; margin: 6px 0 2px !important; }
.lv-check input { width: auto !important; }
.lv-dns { margin: 6px 0 8px 18px; padding: 0; display: grid; gap: 6px; }
.lv-dns code { font-size: 11px; background: rgba(0,0,0,.05); padding: 1px 4px; border-radius: 4px; }
@media (max-width: 1100px) { .lv-mailrow { grid-template-columns: 1fr; } }
.lv-mail, .lv-mailside > .lv-card { padding: 16px 18px; }
/* ---------- Dashboard (1.6.1) ---------- */
.lv-dhd { margin-bottom: 10px; }
.lv-dhd h1 { font-size: 26px; }
.lv-dhd .btn svg { vertical-align: -2px; margin-right: 4px; }
.lv-dash2 { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.lv-d2-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr); gap: 12px; }
.lv-d2-bot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1 1 auto; min-height: 0; }
.lv-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lv-glance { display: flex; flex-direction: column; }
.lv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line, #e6e8ee); }
.lv-stat { all: unset; box-sizing: border-box; padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; border-right: 1px solid var(--line, #e6e8ee); min-width: 0; }
.lv-stat:last-child { border-right: 0; }
.lv-stat:hover:not([disabled]) { background: rgba(193, 154, 59, .06); }
.lv-stat:focus-visible { outline: 2px solid #c19a3b; outline-offset: -2px; }
.lv-stat span { font-size: 12px; color: var(--mu, #667085); font-weight: 600; }
.lv-stat b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.lv-stat.gold b { color: #9a7425; }
.lv-stat small { font-size: 11.5px; color: var(--mu, #667085); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-glance-chart { position: relative; padding: 8px 12px 6px; }
.lv-chart-tabs { position: absolute; right: 12px; top: 6px; z-index: 1; }
.lv-glance .lv-chart { height: clamp(130px, 19vh, 210px); padding: 0; }
.lv-week { display: flex; flex-direction: column; }
.lv-wkdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 10px 12px 4px; flex: 1 1 auto; }
.lv-wkday { border: 1px solid var(--line, #e6e8ee); border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 96px; }
.lv-wkday small { font-size: 11px; color: var(--mu, #667085); text-transform: uppercase; letter-spacing: .04em; }
.lv-wkday b { font-size: 18px; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; }
.lv-wkday.on { border-color: #c19a3b; background: rgba(193, 154, 59, .07); }
.lv-wkday.on b { background: #142a4d; color: #fff; }
.lv-ev { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px; }
.lv-ev.dep { background: #e8f0fb; color: #1f4f8f; } .lv-ev.ret { background: #eef6f0; color: #1f7a4d; } .lv-ev.tsk { background: #fdf3e2; color: #8a5a10; } .lv-ev.eml { background: #f2effa; color: #5b3e9a; }
.lv-legend { font-size: 11px; padding: 2px 12px 10px; margin: 0; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.lv-lcard { display: flex; flex-direction: column; min-height: 0; }
.lv-list { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.lv-li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line, #eef0f4); min-height: 52px; box-sizing: border-box; }
.lv-li.c { cursor: pointer; } .lv-li.c:hover { background: #f8f9fb; } .lv-li:focus-visible { outline: 2px solid #c19a3b; outline-offset: -2px; }
.lv-li-m { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lv-li-m b, .lv-li-m span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-li-m b { font-size: 13.5px; } .lv-li-m span { font-size: 12px; color: var(--mu, #667085); }
.lv-li-task { flex-direction: row; align-items: center; gap: 10px; } .lv-li-task > div { min-width: 0; display: flex; flex-direction: column; }
.lv-li-task > div b, .lv-li-task > div span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lv-li-task > div span { font-size: 12px; color: var(--mu, #667085); }
.lv-li-s { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.lv-li-s small { font-size: 11.5px; color: var(--mu, #667085); }
.lv-warn { color: #b26a00 !important; font-weight: 600; }
.lv-lcard .em2 { padding: 22px 16px; }
@media (max-width: 1250px) { .lv-d2-top { grid-template-columns: 1fr; } .lv-week { display: none; } }
@media (max-width: 1100px) { .lv-d2-bot { grid-template-columns: 1fr 1fr; } .lv-d2-bot > :last-child { display: none; } }
/* Header search no longer covers the last menu item on laptop screens */
@media (max-width: 1500px) { #top .sr kbd { display: none; } #top .sr { width: 170px !important; min-width: 0 !important; } #top .sr input { min-width: 0 !important; width: 100% !important; } }
@media (max-width: 1400px) { #top .sr kbd { display: none; } #top .sr { width: 130px !important; } }
/* ---------- Import Viking statement (1.6.1) ---------- */
.lv-stpad { padding: 16px 18px; }
.lv-strow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.lv-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border: 2px dashed #c9cfdb; border-radius: 14px; padding: 34px 18px; cursor: pointer; color: #142a4d; background: #fafbfd; }
.lv-drop:hover, .lv-drop.over { border-color: #c19a3b; background: rgba(193, 154, 59, .06); }
.lv-drop span { font-size: 12.5px; color: var(--mu, #667085); }
.lv-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lv-stfiles .lv-drop { padding: 10px; flex-direction: row; gap: 8px; border-width: 1.5px; } .lv-stfiles .lv-drop span { display: none; }
.lv-steps { margin: 6px 0 0 18px; padding: 0; display: grid; gap: 8px; font-size: 13px; line-height: 1.45; }
.lv-strev { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; flex: 1 1 auto; min-height: 0; }
.lv-stleft { display: flex; flex-direction: column; gap: 12px; overflow: auto; min-height: 0; padding-right: 2px; }
.lv-stfiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.lv-stfile { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line, #e6e8ee); border-radius: 10px; padding: 8px 10px; background: #fff; min-width: 0; }
.lv-stfile > div { min-width: 0; flex: 1; display: flex; flex-direction: column; } .lv-stfile b, .lv-stfile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lv-stfile b { font-size: 12.5px; } .lv-stfile span { font-size: 11.5px; color: #1f7a4d; font-weight: 600; }
.lv-stfile.other span { color: var(--mu, #667085); font-weight: 500; }
.lv-stgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-top: 8px; }
.lv-stgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: 8px; }
.lv-stf { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .lv-stf > span { font-size: 11.5px; font-weight: 600; color: var(--mu, #667085); }
.lv-stf b { font-size: 13px; padding: 7px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lv-stf input, .lv-stf select { width: 100%; }
.lv-stguest { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line, #eef0f4); }
.lv-stguest:first-of-type { border-top: 0; } .lv-stguest > div { min-width: 0; display: flex; flex-direction: column; } .lv-stguest span { font-size: 12px; color: var(--mu, #667085); } .lv-stguest select { max-width: 52%; }
.lv-stsched { display: flex; flex-direction: column; min-height: 0; }
.lv-stwarn { margin: 0 14px; padding: 8px 10px; border-radius: 8px; background: #fff7e8; color: #7a5200; font-size: 12.5px; } .lv-stwarn p { margin: 2px 0; }
.lv-stchips { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px 6px; } .lv-stchips span { font-size: 12px; background: #f3f5f8; border-radius: 999px; padding: 3px 10px; }
.lv-stlist { flex: 1 1 auto; min-height: 0; overflow: auto; border-top: 1px solid var(--line, #eef0f4); }
.lv-stlist table { width: 100%; } .lv-stlist th { position: sticky; top: 0; background: #fff; z-index: 1; } .lv-stlist td { vertical-align: top; font-size: 12.5px; }
.lv-block { display: block; } .lv-nowrap { white-space: nowrap; }
.lv-stfoot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line, #eef0f4); flex-wrap: wrap; } .lv-stfoot .err { flex: 1 1 100%; }
.lv-stdone { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; }
@media (max-width: 1100px) { .lv-strev, .lv-strow { grid-template-columns: 1fr; } .lv-stgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lv-stlist { overflow-x: hidden; }
.lv-stlist table { table-layout: fixed; }
.lv-stlist th:nth-child(1), .lv-stlist td:nth-child(1) { width: 29%; }
.lv-stlist th:nth-child(3), .lv-stlist td:nth-child(3) { width: 96px; }
.lv-stlist td:nth-child(2) b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-stlist td:nth-child(2) .lv-block { white-space: normal; }
.lv-stlist td:nth-child(1) { white-space: normal; }
.lv-stfoot { padding-right: 84px; }
.lv-stleft > * { flex-shrink: 0; }
/* ---------- 1.6.2: scroll, navigation and responsive fixes (from the Nov 12 live QA) ---------- */
/* Top bar: closer links like Tern (14 px, 18 px between labels) and a slimmer bar, at every width */
:root { --lv-top: 56px; }
html { scroll-padding-top: calc(56px + env(safe-area-inset-top, 0px)); }
#top.top { height: 56px !important; padding: 0 16px 0 20px !important; }
#top .lg { margin-right: 14px !important; }
#top .lg img { height: 34px !important; }
#top .tn { gap: 2px !important; }
#top .tn a { padding: 7px 9px !important; font-size: 14px !important; font-weight: 500 !important; border-radius: 8px !important; }
#top .tn a.on { font-weight: 600 !important; }
#top .tn a.on:after { left: 9px !important; right: 9px !important; bottom: -10px !important; }
.sb { min-height: 0 !important; }
/* One breakpoint: at 1240 px and below the menu button replaces the top links and the sidebar */
@media (max-width: 1240px) { #top .hb { display: inline-grid !important; } #top .tn, .sb { display: none !important; } }
@media (min-width: 1241px) { #top .hb { display: none !important; } }
/* Scrolling: nothing is cut off any more. Content that is taller than its box scrolls inside it. */
@media (min-width: 861px) and (min-height: 600px) {
  .lv-card > .bd { overflow: auto; }
  .lv-page > .lv-card { overflow: auto; }
  .lv-card .tw, .lv-aulist .tw, .lv-tbody .tw { overflow: auto; min-height: 0; }
  .lv-aued { min-height: 0; }
  .lv-aued .lv-aubody { overflow-y: auto !important; min-height: 0; flex: 1 1 auto; }
  .lv-list { overflow-y: auto; }
  /* Trips board fills the screen; each column scrolls on its own and the sideways scrollbar stays in view (as in Tern) */
  #m .kb { flex: 1 1 auto; min-height: 0; align-items: stretch; overflow-x: auto; overflow-y: hidden; padding-bottom: 8px; }
  #m .kb > .kc { display: flex; flex-direction: column; min-height: 0; max-height: 100%; overflow-y: auto; }
  #m .kb > .kc > h4 { position: sticky; top: -12px; background: inherit; z-index: 1; padding: 4px 0; margin-top: -4px; }
}
/* Wide tables (Workflows, Email templates…) scroll sideways inside their card instead of running off the page */
#m .tw { overflow-x: auto; max-width: 100%; }
#m > .cd, #m .lv-page { max-width: 100%; min-width: 0; }
/* Phones and small windows: normal page scrolling */
@media (max-width: 860px), (max-height: 599px) {
  html, body { height: auto !important; overflow: auto !important; }
  .lay, #m { height: auto !important; overflow: visible !important; }
  .lv-d2-top, .lv-d2-bot, .lv-strev, .lv-mailrow, .lv-aurow { grid-template-columns: 1fr !important; }
  .lv-stleft, .lv-stlist, .lv-list { overflow: visible !important; max-height: none !important; }
  .lv-stats { grid-template-columns: 1fr 1fr; } .lv-stat:nth-child(2) { border-right: 0; }
  .lv-dhd { flex-wrap: wrap; gap: 8px; } .lv-dhd .row { flex-wrap: wrap; }
}
@media (min-width: 861px) and (min-height: 600px) {
  #m > #trv { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  #m > #trv > .kb { flex: 1 1 auto; min-height: 0; }
  #m .fr { overflow-y: auto !important; }
}
@media (max-width: 860px) { .lv-dash2 .cd, .lv-dash2 section { max-width: 100%; min-width: 0; } .lv-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .lv-wkdays { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; } }
#m .kb > .kc > * { flex-shrink: 0; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.disabled, a.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- 1.7.0: missing photos, picker, trip covers, agency ---------- */
.lv-missing img { opacity: .35; filter: grayscale(1); }
.lv-missbadge { position: absolute; top: 8px; left: 8px; background: #b42318; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.lv-missbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 10px; border: 1px solid #f3c1bb; background: #fef3f2; border-radius: 10px; font-size: 13px; color: #7a271a; }
.lv-missbar .btn { margin-left: auto; }
#lvpick { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; }
.lv-pk-back { position: absolute; inset: 0; background: rgba(13, 30, 55, .45); }
.lv-pk { position: relative; width: min(920px, 94vw); height: min(640px, 88vh); background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.lv-pk > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--d-line, #e6e8ee); }
.lv-pk > header h2 { font-size: 16px; margin: 0; }
.lv-pk-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.lv-pk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lv-pk-bar input[type=search] { flex: 1; min-width: 160px; }
.lv-pk-up { position: relative; overflow: hidden; cursor: pointer; }
.lv-pk-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lv-pk-up.busy { opacity: .6; pointer-events: none; }
.lv-pk-folders { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lv-pk-i { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; text-align: left; }
.lv-pk-i:hover, .lv-pk-i:focus-visible { border-color: var(--d-gold, #c19a3b); outline: none; }
.lv-pk-i img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #eef1f5; }
.lv-pk-i span { font-size: 12px; padding: 0 4px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd-cover.lv-cover { background-size: cover !important; background-position: center !important; }
.lv-coverbtn { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: rgba(255,255,255,.92) !important; }
.lv-actimg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lv-actimg img { height: 48px; border-radius: 4px; }
.lv-sotrow { display: grid; grid-template-columns: 70px 1fr 30px; gap: 8px; margin-bottom: 6px; align-items: center; }

/* ---------- 1.8.0: live trip sections ---------- */
.lv-tsec { display: flex; flex-direction: column; gap: 12px; }
.lv-tsec .lv-card { padding: 14px 16px; }
.lv-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #eef1f5; color: #3b4658; white-space: nowrap; }
.lv-pill-ok { background: #e7f6ec; color: #1f7a3d; }
.lv-pill-bad { background: #fdecea; color: #b42318; }
.lv-pill-warn { background: #fff4e0; color: #8a5a00; }
.lv-feed { list-style: none; margin: 0; padding: 0; }
.lv-feed li { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--d-line, #e6e8ee); font-size: 13.5px; }
.lv-feed li:last-child { border-bottom: 0; }
.lv-feed-at { color: #6b7385; font-size: 12.5px; }
@media (max-width: 720px) { .lv-feed li { grid-template-columns: 1fr; gap: 2px; } }
.lv-autobar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--d-line, #e6e8ee); border-radius: 10px; background: #fff; font-size: 13.5px; }
.lv-autobar.ok { background: #f3faf5; border-color: #cfe9d7; }
.lv-autobar .btn { margin-left: auto; }

/* ================= 1.9.0 UI polish: same colours and logo, calmer and easier to scan ================= */
body.lv-ui { -webkit-font-smoothing: antialiased; }
/* top bar: a search box wide enough to read its hint */
body.lv-ui #top .sr { min-width: 300px !important; width: 300px; flex: 0 0 auto; }
body.lv-ui #top .sr input { width: 100%; text-overflow: ellipsis; }
@media (max-width: 1240px) { body.lv-ui #top .sr { min-width: 220px !important; width: 220px; } }
@media (max-width: 720px) { body.lv-ui #top .sr { min-width: 0 !important; width: auto; flex: 1 1 auto; max-width: 150px; } body.lv-ui #top .sr kbd { display: none; } }
/* keyboard focus is always visible */
body.lv-ui :is(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--d-gold, #c19a3b); outline-offset: 2px; }
/* page header: title and actions on one line, quieter subtitle */
body.lv-ui #m > .hd { align-items: flex-end; gap: 12px; margin-bottom: 14px; }
body.lv-ui #m > .hd p, body.lv-ui #m > .hd .mu { color: #5b6577; font-size: 14.5px; }
body.lv-ui #m > .lti-pills { margin: 0 0 12px; }
/* buttons: one height, clear primary */
body.lv-ui .btn { min-height: 38px; border-radius: 9px; font-weight: 600; letter-spacing: .1px; }
body.lv-ui .btn.s { min-height: 30px; }
body.lv-ui .btn:disabled { opacity: .55; cursor: not-allowed; }
/* cards and tables: soft edges, readable rows */
body.lv-ui .cd { border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
body.lv-ui .tw { border-radius: 10px; }
body.lv-ui table.t2 thead th { position: sticky; top: 0; z-index: 1; background: #f7f8fb; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #5b6577; }
body.lv-ui table.t2 tbody tr:hover td { background: #fbf8f1; }
body.lv-ui table.t2 td, body.lv-ui table.t2 th { padding: 10px 12px; }
/* forms: settings-style pages don't stretch inputs across the whole screen */
body.lv-ui #m .fm, body.lv-ui #m form { max-width: 880px; }
body.lv-ui input, body.lv-ui select, body.lv-ui textarea { border-radius: 8px; }
body.lv-ui label { font-weight: 600; color: #344054; }
/* empty states: friendlier and lighter */
body.lv-ui .em2, body.lv-ui .lti-empty { padding: 36px 16px; color: #5b6577; }
/* the floating phone button no longer covers lists and pagers */
body.lv-ui #spl { transform: scale(.86); transform-origin: bottom right; opacity: .92; }
body.lv-ui #m { padding-bottom: 84px; }
/* Email setup quick buttons */
.lv-preset { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
/* phones: two-up figures, no floating button (the phone icon is in the top bar), roomier tap targets */
@media (max-width: 720px) {
  body.lv-ui #spl { display: none; }
  body.lv-ui #m { padding-bottom: 24px; }
  body.lv-ui .lti-kpis, body.lv-ui .g4, body.lv-ui .kpis { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  body.lv-ui #m > .hd { align-items: flex-start; }
  body.lv-ui .btn { min-height: 42px; }
  body.lv-ui table.t2 td, body.lv-ui table.t2 th { padding: 9px 8px; }
}

/* ================= 1.10.0 ================= */
/* Top bar on smaller laptops (1241–1440 px): the menu and the search box share the row instead of overlapping */
body.lv-ui #top .tn { flex: 0 1 auto; min-width: 0; overflow: hidden; }
body.lv-ui #top .sr { flex: 1 1 220px !important; min-width: 150px !important; max-width: 300px; width: auto !important; }
@media (max-width: 1440px) { body.lv-ui #top .tn a { padding: 7px 6px !important; font-size: 13.5px !important; } body.lv-ui #top .tn a.on:after { left: 6px !important; right: 6px !important; } body.lv-ui #top .sr kbd { display: none; } }
@media (max-width: 1320px) { body.lv-ui #top .tn a { padding: 7px 5px !important; font-size: 13px !important; } body.lv-ui #top .lg { margin-right: 6px; } }
@media (max-width: 1240px) { body.lv-ui #top .sr { max-width: 320px; } }
/* The floating phone button covered page content (e.g. the Trips board): calls are reached from the phone icon in the top bar */
#spl, body.lv-ui #spl { display: none !important; }
body.lv-ui #m { padding-bottom: 24px; }
/* Profile settings tabs */
.lv-ptabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--bd, #e6e2d8); flex-wrap: wrap; }
.lv-ptabs button { background: none; border: 0; padding: 9px 14px; font: inherit; font-weight: 500; color: var(--mu, #6b7280); border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; }
.lv-ptabs button.on { color: var(--tx, #0d2a52); border-bottom-color: var(--d-gold, #c19a3b); font-weight: 600; }
/* Referral, insurance, terms cards and email attachments */
.lv-refcard { margin-top: 14px; }
.lv-inscard { margin: 12px 14px 14px; padding-top: 12px; border-top: 1px solid var(--bd, #e6e2d8); }
.lv-inscard.cd { margin: 14px 0 0; border-top: 0; }
.lv-refcard table { margin-top: 6px; }
.lv-att { margin: 12px 0; }
.lv-att h4 { margin: 0 0 6px; font-size: 13px; }
.lv-att ul, ul.lv-att { list-style: none; padding: 0; margin: 0 0 8px; }
.lv-att li { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 13px; }
.lv-att li .btn { margin-left: auto; padding: 2px 8px; min-height: 26px; }
/* Client preview toolbar */
.lv-prevtools { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin: 0 0 12px; background: #fbf8f1; border: 1px solid #efe6cf; border-radius: 10px; flex-wrap: wrap; }
/* Trips board: ‹ › buttons and steadier dragging */
.lv-kbnav { display: flex; gap: 6px; margin-left: 10px; }
.lv-kbbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--bd, #e6e2d8); background: #fff; box-shadow: 0 2px 6px rgba(13,42,82,.12); font-size: 20px; line-height: 1; cursor: pointer; color: var(--tx, #0d2a52); }
.lv-kbbtn:disabled { opacity: .35; cursor: default; box-shadow: none; }
#m .kb { scroll-behavior: auto; overscroll-behavior-x: contain; }
#m .kd img, #m .kd .kd-cover { -webkit-user-drag: none; user-select: none; pointer-events: none; }
#m .kd.lv-dragging { opacity: .45; transform: scale(.98); }
body.lv-boarddrag #m .kc { transition: background .12s; }
body.lv-boarddrag #m .kc.dov { outline: 2px dashed var(--d-gold, #c19a3b); outline-offset: -4px; background: #fbf8f1; }
/* Smaller laptops and phones */
@media (max-width: 1366px) { #m .kc { min-width: 250px; width: 250px; } #m .kd-cover { height: 110px !important; } }
@media (max-width: 720px) { #m .kc { min-width: 82vw; width: 82vw; } .lv-ptabs button { padding: 8px 10px; } .lv-prevtools .mu { flex-basis: 100%; } }
@media (max-width: 720px) { body.lv-ui #top .sr { flex: 1 1 auto !important; min-width: 0 !important; max-width: 130px; } body.lv-ui #top .ib { width: 32px; } }
@media (max-width: 400px) { body.lv-ui #top .sr { max-width: 96px; } }
/* Client view (Tern-style) */
.cv { max-width: 1180px !important; width: 100%; margin: 0 auto; }
.cv-banner { background: #fff7e6; border: 1px solid #f1dfb4; color: #6b4e12; padding: 8px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 13px; }
.cv-hero { min-height: 300px; border-radius: 14px; background: linear-gradient(135deg, #0d2a52, #b8913a); background-size: cover; background-position: center; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.cv-hero-in { padding: 26px 30px; }
.cv-hero h1 { font-family: Newsreader, Georgia, serif; font-size: 38px; line-height: 1.1; margin: 10px 0 6px; color: #fff; }
.cv-hero p { margin: 0; opacity: .92; }
.cv-logo { height: 40px; background: #fff; border-radius: 6px; padding: 3px 6px; }
.cv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 18px; align-items: start; }
.cv-adv { padding: 16px; display: grid; gap: 10px; position: sticky; top: 12px; }
.cv-adv img { height: 46px; }
.cv-day { padding: 16px 0; border-bottom: 1px solid var(--bd, #e6e2d8); }
.cv-dayhd { display: flex; gap: 10px; align-items: baseline; }
.cv-dn { font-weight: 700; color: var(--d-gold, #b8913a); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.cv-day h3 { font-family: Newsreader, Georgia, serif; font-size: 22px; margin: 4px 0 10px; }
.cv-act { display: flex; gap: 14px; padding: 10px 0; }
.cv-act img { width: 180px; height: 110px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.cv-act p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
@media (max-width: 900px) { .cv-grid { grid-template-columns: 1fr; } .cv-adv { position: static; } .cv-act { flex-direction: column; } .cv-act img { width: 100%; height: 180px; } .cv-hero h1 { font-size: 28px; } }
#m .kd.lv-saving { opacity: .6; box-shadow: 0 0 0 2px var(--d-gold, #c19a3b); }

/* ===== 1.10.2: itinerary template page and preview (Tern style) ===== */
.lvt { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 70px); margin: -16px -20px; }
.lvt-side { border-right: 1px solid var(--bd, #e6e2d8); padding: 16px 10px; background: #fff; }
.lvt-back { display: block; font-size: 12px; letter-spacing: .06em; color: #555; cursor: pointer; padding: 4px 8px 14px; text-decoration: none; }
.lvt-grp { font-size: 12px; color: #6b6b6b; padding: 8px 8px 4px; }
.lvt-nav { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; color: #1f2937; }
.lvt-nav:hover { background: #f4f2ec; }
.lvt-nav.on { background: #e6f2f6; color: #0b5c74; font-weight: 600; }
.lvt-main { padding: 14px 20px 30px; min-width: 0; background: #faf9f6; }
.lvt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid var(--bd, #e6e2d8); margin-bottom: 16px; }
.lvt-title { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.lvt-title input, .lvt-title h1 { font-size: 21px; font-weight: 700; border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: 6px; min-width: 0; width: 100%; max-width: 720px; margin: 0; }
.lvt-title input:hover, .lvt-title input:focus { border-color: #d6d2c6; background: #fff; }
.lvt-pen { color: #888; font-size: 14px; }
.lvt-ovgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.lvt-card { background: #fff; }
.lvt-card > header { padding: 14px 16px 6px; }
.lvt-editor { margin: 6px 16px 16px; border: 1px solid #ddd8cc; border-radius: 6px; }
.lvt-toolbar { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding: 6px 8px; border-bottom: 1px solid #ece8de; }
.lvt-toolbar select { width: auto; border: 0; background: none; font-size: 13px; padding: 4px; }
.lvt-tb { border: 0; background: none; min-width: 30px; height: 30px; border-radius: 6px; cursor: pointer; font-size: 14px; color: #444; }
.lvt-tb:hover { background: #f1efe8; }
.lvt-sep { width: 1px; height: 20px; background: #e2ddd1; margin: 0 4px; }
.lvt-rte { min-height: 260px; padding: 14px 16px; outline: none; font-size: 14px; line-height: 1.6; }
.lvt-rte:empty:before { content: attr(data-ph); color: #999; }
.lvt-rte h2 { font-size: 20px; margin: 4px 0 8px; } .lvt-rte h3 { font-size: 17px; margin: 4px 0 6px; }
.lvt-rte img, .tp-ov img { max-width: 100%; border-radius: 8px; margin: 8px 0; display: block; }
.lvt-set .bd { padding: 6px 16px 16px; }
.lvt-cover { position: relative; min-height: 220px; background: #f1f0ec; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 8px; }
.lvt-cover img { width: 100%; height: 230px; object-fit: cover; display: block; }
.lvt-cover-b { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.tp { background: #fff; margin: -16px -20px; min-height: calc(100vh - 60px); }
.tp-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px; border-bottom: 1px solid #ece8de; font-size: 13px; }
.tp-crumbs span { color: #888; margin: 0 4px; }
.tp-hero { height: 384px; background: linear-gradient(135deg, #0d2a52, #2d7a8c 60%, #b8913a); background-size: cover; background-position: center; }
.tp-in, .tp-body { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.tp-kicker { display: flex; gap: 6px; align-items: center; color: #0b5c74; font-weight: 600; margin-top: 26px; }
.tp-h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 16px; font-weight: 700; }
.tp-by { display: flex; gap: 10px; align-items: center; border-top: 1px solid #ece8de; border-bottom: 1px solid #ece8de; padding: 14px 0; }
.tp-av { width: 32px; height: 32px; border-radius: 50%; background: #0b5c74; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.tp-price { padding: 18px 0 10px; font-size: 15px; }
.tp-tabs { display: flex; gap: 22px; border-bottom: 1px solid #ece8de; }
.tp-tabs button { border: 0; background: none; padding: 10px 0; font-size: 14px; cursor: pointer; color: #333; border-bottom: 2px solid transparent; }
.tp-tabs button.on { color: #0b5c74; border-bottom-color: #0b5c74; font-weight: 600; }
.tp-body { padding-bottom: 60px; }
.tp-sec { margin-top: 40px; } .tp-sec h2 { font-size: 22px; margin: 0 0 10px; font-weight: 700; } .tp-sec h2 span { font-weight: 400; color: #555; } .tp-sec hr { border: 0; border-top: 1px solid #ece8de; margin: 0 0 18px; }
.tp-ov { font-size: 15px; line-height: 1.65; } .tp-ov h2 { font-size: 20px; }
.tp-daycov { width: 100%; max-height: 340px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.tp-item { display: flex; gap: 20px; padding: 14px 0; }
.tp-item img, .tp-noimg { width: 300px; height: 190px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; background: #f1f0ec; display: flex; align-items: center; justify-content: center; color: #999; }
.tp-ib h3 { margin: 4px 0 6px; font-size: 17px; } .tp-ib p { margin: 6px 0; font-size: 14px; line-height: 1.55; color: #333; }
.tp-glance { line-height: 2; }
.tp-drawer-back { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 900; }
.tp-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; z-index: 901; overflow: auto; box-shadow: -8px 0 30px rgba(0,0,0,.18); }
.tp-drawer header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #ece8de; position: sticky; top: 0; background: #fff; }
.tp-drawer header h2 { margin: 0; font-size: 18px; }
.tp-drawer img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.tp-dbody { padding: 16px 18px 30px; } .tp-dbody p { line-height: 1.6; font-size: 14px; }
@media (max-width: 1100px) { .lvt-ovgrid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .lvt { grid-template-columns: 1fr; } .lvt-side { display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid #e6e2d8; } .lvt-grp { display: none; } .lvt-nav { width: auto; } .lvt-head { flex-wrap: wrap; } .tp-hero { height: 220px; } .tp-item { flex-direction: column; } .tp-item img, .tp-noimg { width: 100%; } }
html.lv-fullprev #sb { display: none !important; }
html.lv-fullprev #m { padding: 0 !important; max-width: none !important; }
html.lv-fullprev .tp { margin: 0; }
.tp-hero { position: relative; }
.tp-chbg { position: absolute; right: 20px; bottom: 18px; background: rgba(255,255,255,.92) !important; }

/* ===== 1.11.0: darker navy UI + background themes (Profile settings › Appearance) ===== */
html.lv-navy, html.lv-light {
  --d-navy: #0B1F3A; --d-navy-2: #07152A; --ink: #0B1F3A; --d-slate: #3A4A63; --mu: #4A5870;
  --d-tint: #E6EAF0; --inb: #E6EAF0; --in: #1B3A6B; --hv: #EEF1F5; --ln: #DCE2EA; --d-line: #DCE2EA;
}
html.lv-bg-porcelain { --d-porcelain: #F3F5F8; --bg: #F3F5F8; }
html.lv-bg-white { --d-porcelain: #FFFFFF; --bg: #FFFFFF; }
html.lv-bg-ivory { --d-porcelain: #F8F6F1; --bg: #F8F6F1; }
html.lv-bg-mist { --d-porcelain: #E9EDF2; --bg: #E9EDF2; }
html[class*="lv-bg-"] .lay, html[class*="lv-bg-"] #m { background: var(--d-porcelain); }
/* navy top bar */
html.lv-navy #top.top { background: #0B1F3A !important; border-bottom-color: #0B1F3A !important; }
html.lv-navy #top .lg img { background: #fff; border-radius: 8px; padding: 2px 6px; }
html.lv-navy #top .tn a { color: #C9D3E3 !important; }
html.lv-navy #top .tn a:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
html.lv-navy #top .tn a.on { color: #fff !important; }
html.lv-navy #top .tn a.on:after { background: #C9A24B !important; }
html.lv-navy #top .ib { color: #C9D3E3 !important; }
html.lv-navy #top .ib:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
html.lv-navy #top .sr { background: #13294B !important; border-color: #2A4369 !important; }
html.lv-navy #top .sr input { color: #fff !important; }
html.lv-navy #top .sr input::placeholder, html.lv-navy #top .sr svg { color: #AEBBD0 !important; }
html.lv-navy #top .pf { background: #fff !important; color: #0B1F3A !important; }
html.lv-navy #top .hb { color: #fff !important; }
/* sidebar: navy for the page you are on (no baby blue) */
html.lv-navy .sb a.on, html.lv-light .sb a.on { background: #0B1F3A !important; color: #fff !important; }
html.lv-navy .sb a.on svg, html.lv-light .sb a.on svg { color: #fff !important; }
html.lv-navy .sb a.on:before, html.lv-light .sb a.on:before { background: #C9A24B !important; }
html.lv-navy .sb a:hover:not(.on), html.lv-light .sb a:hover:not(.on) { background: #EEF1F5; }
/* buttons, tabs, chips */
html.lv-navy .btn:not(.o):not(.g1):not(.dz), html.lv-light .btn:not(.o):not(.g1):not(.dz) { background: #0B1F3A; border-color: #0B1F3A; }
html.lv-navy .btn:not(.o):not(.g1):not(.dz):hover, html.lv-light .btn:not(.o):not(.g1):not(.dz):hover { background: #1B3A6B; border-color: #1B3A6B; }
html.lv-navy .btn.o, html.lv-light .btn.o { color: #0B1F3A; border-color: #9FB0C6; }
html.lv-navy .btn.o:hover, html.lv-light .btn.o:hover { border-color: #0B1F3A; background: #F3F5F8; }
html.lv-navy .tabs button.on, html.lv-light .tabs button.on, html.lv-navy .lv-tabs button.on, html.lv-light .lv-tabs button.on { color: #0B1F3A; border-color: #0B1F3A; }
html.lv-navy .seg button.on, html.lv-light .seg button.on { background: #0B1F3A; color: #fff; }
html.lv-navy .lvt-nav.on, html.lv-light .lvt-nav.on { background: #0B1F3A; color: #fff; }
html.lv-navy .tp-tabs button.on, html.lv-light .tp-tabs button.on { color: #0B1F3A; border-bottom-color: #0B1F3A; }
html.lv-navy .tp-kicker, html.lv-light .tp-kicker { color: #1B3A6B; }
html.lv-navy .tp-av, html.lv-light .tp-av { background: #0B1F3A; }
html.lv-navy h1, html.lv-light h1, html.lv-navy .cd > header h2, html.lv-light .cd > header h2 { color: #0B1F3A; }
html.lv-navy a.lk, html.lv-light a.lk, html.lv-navy .lk, html.lv-light .lk { color: #1B3A6B; }
html.lv-navy .t2 thead th, html.lv-light .t2 thead th { background: #EEF1F5; color: #0B1F3A; }
/* appearance picker */
.lv-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.lv-theme { border: 2px solid #DCE2EA; border-radius: 12px; padding: 0; background: #fff; cursor: pointer; text-align: left; overflow: hidden; font: inherit; }
.lv-theme.on { border-color: #0B1F3A; box-shadow: 0 0 0 2px #C9A24B inset; }
.lv-theme .sw { height: 54px; display: flex; }
.lv-theme .sw i { flex: 1; }
.lv-theme b { display: block; padding: 8px 10px 2px; font-size: 13.5px; }
.lv-theme span { display: block; padding: 0 10px 10px; font-size: 12px; color: #4A5870; }
/* per-advisor numbers, accounting, booking history */
.lv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.lv-kpi { background: #fff; border: 1px solid #DCE2EA; border-radius: 12px; padding: 14px 16px; }
.lv-kpi.dark { background: #0B1F3A; border-color: #0B1F3A; color: #fff; }
.lv-kpi small { display: block; font-size: 12.5px; color: #4A5870; }
.lv-kpi.dark small { color: #C9D3E3; }
.lv-kpi b { display: block; font-size: 24px; margin-top: 4px; }
.lv-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-acc-totals { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid #DCE2EA; border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; flex-wrap: wrap; }
.lv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.lv-filters > * { flex: 0 1 auto; }
.lv-filters select, .lv-filters input { width: auto; min-width: 150px; }
.lv-hist li { padding: 8px 0; border-bottom: 1px solid #EEF1F5; font-size: 14px; }
.lv-hist li small { color: #4A5870; display: block; }
.lv-refby { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; margin: 6px 0 10px; }
.lv-refby dt { color: #4A5870; } .lv-refby dd { margin: 0; }
.tp-hero { height: clamp(420px, 60vh, 640px) !important; background-position: center 45%; }
@media (max-width: 760px) { .tp-hero { height: 260px !important; } }
#m table.lv-wrap td, #m table.lv-wrap th { white-space: normal !important; }
#m table.lv-wrap { table-layout: auto !important; width: 100%; }
#m .lv-card .tw { overflow-x: auto; }
html.lv-navy .lv-day.on, html.lv-light .lv-day.on { background: #E6EAF0 !important; border-color: #0B1F3A !important; }
html.lv-navy .lv-day.on .lv-dayn, html.lv-light .lv-day.on .lv-dayn { background: #0B1F3A !important; color: #fff !important; }

/* ===== 1.11.0 polish: "ledger" details, Tern-style Commission (filters panel + side-panel forms), friendlier tables and forms ===== */
:root { --lv-navy: #0B1F3A; --lv-harbor: #1E3A5F; --lv-brass: #C9A24B; --lv-slate: #556477; --lv-line: #DCE2EA; --lv-tint: #EEF1F5; }
.lv-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* one visible focus ring everywhere: brass, so keyboard users always see where they are */
html.lv-navy :is(button, a, input, select, textarea, [tabindex]):focus-visible, html.lv-light :is(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--lv-brass) !important; outline-offset: 2px; box-shadow: none; }
/* page titles and money read like a ledger: serif, tabular figures */
html.lv-navy #m .hd h1, html.lv-light #m .hd h1 { font-family: Newsreader, Georgia, serif; font-weight: 600; font-size: 30px; letter-spacing: -.01em; line-height: 1.15; }
.lv-acc-totals b, .lv-kpi b, .lv-num b { font-family: Newsreader, Georgia, serif; font-variant-numeric: tabular-nums lining-nums; font-weight: 600; }
.lv-acc-totals b { font-size: 18px; }
.lv-acc-totals > b:first-child, .lv-acc-totals > div:first-child > b { font-family: inherit; font-size: 14.5px; }
/* tables: calmer header, clear row hover, room to breathe */
html.lv-navy #m .t2 thead th, html.lv-light #m .t2 thead th { position: sticky; top: 0; z-index: 1; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; border-bottom: 1px solid var(--lv-line); }
html.lv-navy #m .t2 td, html.lv-light #m .t2 td { border-bottom: 1px solid #EDF0F4; vertical-align: middle; }
html.lv-navy #m .t2 tbody tr:hover td, html.lv-light #m .t2 tbody tr:hover td { background: #F6F8FB; }
html.lv-navy #m .t2 tbody tr.c, html.lv-light #m .t2 tbody tr.c { cursor: pointer; }
html.lv-navy #m .t2 tbody tr:last-child td, html.lv-light #m .t2 tbody tr:last-child td { border-bottom: 0; }
/* status pills carry a dot as well as color */
.lv-pill { display: inline-flex; align-items: center; gap: 6px; }
.lv-pill:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.lv-pill-info { background: #E6ECF5; color: #1E3A5F; }
.lv-ok { color: #1f7a3d; font-weight: 600; }
/* empty rows: say it plainly, offer the way out */
.lv-empty-row { text-align: center; padding: 26px 18px !important; }
.lv-empty-row p { margin: 0 0 4px; }
.lv-empty-row .btn { margin-top: 10px; }
.lv-eicon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--lv-tint); color: var(--lv-navy); margin-bottom: 8px; }
/* Commission: the Filters panel docks on the right so the list stays in view */
.lv-acc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.lv-acc.lv-acc-f { grid-template-columns: minmax(0, 1fr) 320px; }
.lv-fpanel { position: sticky; top: 8px; background: #fff; border: 1px solid var(--lv-line); border-radius: 12px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
.lv-fhead { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--lv-line); }
.lv-fhead h2 { margin: 0; flex: 1; font-family: Newsreader, Georgia, serif; font-size: 20px; font-weight: 600; color: var(--lv-navy); }
.lv-fbody { padding: 6px 16px 16px; overflow-y: auto; }
.lv-fgrp { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.lv-fgrp > label, .lv-fgrp > legend, .lv-flab { display: block; font-size: 13px; font-weight: 600; color: var(--lv-navy); margin-bottom: 6px; padding: 0; }
.lv-fgrp input[type=search], .lv-fgrp select { width: 100%; }
.lv-frng { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.lv-frng input { width: 100%; min-width: 0; }
.lv-chk { display: flex !important; align-items: center; gap: 8px; font-size: 14px; font-weight: 400 !important; color: inherit !important; padding: 3px 0; cursor: pointer; }
.lv-chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--lv-navy); }
.lv-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--lv-navy); color: #fff; font-size: 11px; font-weight: 700; margin-left: 4px; }
.btn.lv-fon { border-color: var(--lv-navy) !important; }
.lnk { color: var(--lv-harbor); text-decoration: underline; text-underline-offset: 2px; padding: 0; font-size: inherit; }
.lnk:hover { color: var(--lv-navy); }
.ic-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; background: none; border-radius: 8px; font-size: 22px; line-height: 1; color: var(--lv-slate); cursor: pointer; }
.ic-btn:hover { background: var(--lv-tint); color: var(--lv-navy); }
/* side-panel forms (Add statement, Add payout adjustment) */
.lv-sheet-wrap { position: fixed; inset: 0; z-index: 900; }
.lv-sheet-back { position: absolute; inset: 0; background: rgba(11, 31, 58, .38); }
.lv-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 32px rgba(11, 31, 58, .18); animation: lvSheetIn .18s ease-out; }
@keyframes lvSheetIn { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lv-sheet { animation: none; } }
.lv-sheet header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; }
.lv-sheet header h2 { margin: 0; font-family: Newsreader, Georgia, serif; font-size: 24px; font-weight: 600; color: var(--lv-navy); }
.lv-sheet-body { flex: 1; overflow-y: auto; padding: 4px 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.lv-sheet-body label { font-weight: 600; font-size: 13.5px; color: var(--lv-navy); }
.lv-sheet-body input, .lv-sheet-body select, .lv-sheet-body textarea { width: 100%; }
.lv-sheet-body .lv-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .lv-sheet-body .lv-2col { grid-template-columns: 1fr; } }
.lv-sheet footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--lv-line); background: #fff; }
.lv-sheet footer .row { display: flex; gap: 8px; }
.lv-dz { display: flex !important; flex-direction: column; align-items: center; gap: 8px; border: 1.5px dashed #A9B6C8; border-radius: 12px; padding: 22px 16px; text-align: center; cursor: pointer; font-weight: 400 !important; color: var(--lv-slate) !important; background: #FAFBFC; }
.lv-dz.on, .lv-dz:hover { border-color: var(--lv-navy); background: #F3F6FA; }
.lv-money { display: flex; align-items: center; border: 1px solid #C5CFDC; border-radius: 8px; background: #fff; padding-left: 10px; }
.lv-money span { color: var(--lv-slate); }
.lv-money input { border: 0 !important; box-shadow: none !important; flex: 1; }
.lv-money:focus-within { outline: 2px solid var(--lv-brass); outline-offset: 2px; }
.lv-sheet .seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--lv-tint); border-radius: 10px; padding: 3px; gap: 3px; }
.lv-sheet .seg button { border: 0; background: none; padding: 8px 6px; border-radius: 8px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--lv-navy); }
html.lv-navy .lv-sheet .seg button.on, html.lv-light .lv-sheet .seg button.on { background: #fff; color: var(--lv-navy); box-shadow: 0 1px 2px rgba(11, 31, 58, .14); font-weight: 600; }
.lv-sheet .err:empty { display: none; }
@media (max-width: 1100px) { .lv-acc.lv-acc-f { grid-template-columns: minmax(0, 1fr); } .lv-fpanel { position: static; max-height: none; order: -1; } }
/* forms everywhere: labels above inputs, inputs a touch taller, clear invalid state */
html.lv-navy #m input:not([type=checkbox]):not([type=radio]):not([type=file]), html.lv-navy #m select, html.lv-light #m input:not([type=checkbox]):not([type=radio]):not([type=file]), html.lv-light #m select { min-height: 38px; }
html.lv-navy [aria-invalid="true"], html.lv-light [aria-invalid="true"] { border-color: #b42318 !important; }
/* tabs: a navy underline and bolder label mark where you are */
html.lv-navy .lv-tabs button.on, html.lv-light .lv-tabs button.on { box-shadow: inset 0 -2px 0 var(--lv-navy); font-weight: 600; }
.lv-sheet-body input:not([type=checkbox]):not([type=file]), .lv-sheet-body select { min-height: 40px; box-sizing: border-box; }
.lv-money input { min-height: 38px !important; }
#m td.lv-nw, #m table.lv-wrap td.lv-nw { white-space: nowrap !important; }
.lv-rowact { display: flex; gap: 6px; justify-content: flex-end; }
/* page header: actions line up with the title, subtitles stay readable */
html.lv-navy #m .hd, html.lv-light #m .hd { align-items: flex-start; margin-bottom: 16px; }
html.lv-navy #m .hd > div:first-child p, html.lv-light #m .hd > div:first-child p { margin: 6px 0 0; color: var(--lv-slate); max-width: 72ch; }
/* empty states: short lines, a clear next step */
#m .em2 p, #m .em2 .mu { max-width: 60ch; margin-left: auto; margin-right: auto; line-height: 1.5; }
/* trip cards without a cover photo: a slim navy band instead of a big block that repeats the title */
#m .kd .kd-cover.kd-cover--plain { height: 46px !important; background: var(--lv-navy) !important; }
#m .kd .kd-cover.kd-cover--plain span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#m .kd > div:not(.kd-cover) { color: #3A4A63; }
@media (max-width: 640px) { #m .hd > :last-child { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; } #m .lv-tabs { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; } }
