/* OneSea Logistics — app stylesheet */
:root {
  --navy: #0b3d2e;
  --navy-2: #11523e;
  --orange: #0e8f96;
  --orange-d: #0a7378;
  --sand: #f6f3ee;
  --sand-2: #efe9df;
  --card: #ffffff;
  --line: #e6dfd3;
  --ink: #1b2e27;
  --muted: #66756f;
  --green: #1f9d6a;
  --red: #d64545;
  --amber: #c98a0b;
  --blue: #0b7c84;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 61, 46, .05), 0 6px 18px rgba(11, 61, 46, .06);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --narrow: "Archivo Narrow", "Archivo", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--sand); line-height: 1.5; font-size: 15px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 460px; }
.page { padding-top: 28px; padding-bottom: 56px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; letter-spacing: .02em; }
.is-hidden { display: none !important; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.mark { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--narrow); font-weight: 700; letter-spacing: .08em; font-size: 17px; }
.brand-word b { color: #5fd0d5; margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: rgba(255,255,255,.78); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 14px; text-decoration: none; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a.is-active { color: #fff; background: rgba(255,255,255,.12); }
.nav a.nav-track { color: var(--orange); }
.nav-out { display: flex; align-items: center; gap: 10px; margin-left: 10px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.15); }
.nav-user { color: rgba(255,255,255,.6); font-size: 13px; }
.nav-out .linkbtn { color: rgba(255,255,255,.85); }
.navtoggle, .navburger { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 10px 20px; border: 2px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(14,143,150,.28); }
.btn-primary:hover { background: var(--orange-d); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--blue); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--red); }

/* ---------- Flash ---------- */
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-weight: 500; border: 1px solid; }
.flash-success { background: #e9f7f0; border-color: #bfe6d2; color: #135e40; }
.flash-error { background: #fdeeee; border-color: #f4c7c7; color: #8f2424; }
.flash-info { background: #eaf1fd; border-color: #c6d8f8; color: #1d4a99; }

/* ---------- Hero / tracking ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 400px at 80% -10%, #17604a 0%, transparent 60%), var(--navy); color: #fff; padding: 72px 0 84px; }
.hero-route { position: absolute; inset: 0; pointer-events: none; }
.hero-route svg { width: 100%; height: 100%; }
.hero-in { position: relative; max-width: 760px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: #5fd0d5; margin-bottom: 12px; }
.eyebrow.dark { margin-bottom: 4px; color: var(--orange); }
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; margin-bottom: 14px; }
.lead { font-size: 18px; color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 28px; }
.trackbox { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 999px; box-shadow: 0 18px 40px rgba(0,0,0,.25); max-width: 620px; margin: 0 auto; }
.trackbox input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 18px; padding: 10px 18px; color: var(--ink); background: transparent; letter-spacing: .02em; }
.trackbox input::placeholder { color: #a3aab8; }
.hint { color: rgba(255,255,255,.55); font-size: 13px; margin: 14px 0 0; }
.subhero { background: var(--navy); padding: 18px 0; }
.trackbox-compact { box-shadow: none; max-width: 560px; margin: 0; }
.trackbox-compact input { font-size: 16px; padding: 6px 14px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -40px; position: relative; }
.service { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.service h3 { font-size: 18px; margin: 14px 0 6px; }
.service p { color: var(--muted); margin: 0; font-size: 14px; }
.service-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e3f5f6; }
.service-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.journey { padding: 64px 20px 72px; }
.journey h2 { font-size: 30px; text-align: center; margin-bottom: 32px; }
.journey-steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; position: relative; }
.journey-steps::before { content: ""; position: absolute; top: 18px; left: 10%; right: 10%; border-top: 2px dashed #d5ccbd; }
.journey-steps li { text-align: center; padding: 0 8px; position: relative; counter-increment: step; }
.journey-steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 12px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; position: relative; box-shadow: 0 0 0 6px var(--sand); }
.journey-steps li:last-child::before { background: var(--green); }
.journey-steps b { display: block; margin-bottom: 4px; }
.journey-steps span { color: var(--muted); font-size: 13px; }
.journey-cta { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; box-shadow: var(--shadow); }
.journey-cta p { margin: 0; font-weight: 500; }

/* ---------- Cards & layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.page-head .muted { margin: 0; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ship-layout { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 18px; align-items: start; }
.empty { color: var(--muted); margin: 0; }
.empty-card { text-align: center; padding: 48px 24px; }
.empty-card p { color: var(--muted); max-width: 460px; margin: 0 auto; }

/* ---------- Pills ---------- */
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-info { background: #eaf1fd; color: #1d4a99; }
.pill-ok { background: #e3f5ec; color: #146c49; }
.pill-warn { background: #fdf0dc; color: #8a5a00; }
.pill-muted { background: var(--sand-2); color: var(--muted); }

/* ---------- Tracking result ---------- */
.trackcard { padding: 0; overflow: hidden; }
.trackcard-sum { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #fbf9f5; }
.trackcard-sum::-webkit-details-marker { display: none; }
.trackcard[open] > *:not(summary) { margin-left: 24px; margin-right: 24px; }
.status-head { display: flex; gap: 28px; align-items: flex-start; padding: 22px 0 6px; flex-wrap: wrap; }
.status-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin: 0 0 2px; }
.status-ref { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; margin: 0; }
.status-now { flex: 1; min-width: 220px; padding-left: 28px; border-left: 1px solid var(--line); }
.status-big { font-size: 28px; font-weight: 800; margin: 0; color: var(--navy); }
.status-head.is-delivered .status-big { color: var(--green); }
.status-head.is-alert .status-big { color: var(--amber); }
.status-sub { margin: 4px 0 0; color: var(--muted); }
.status-sub strong { color: var(--ink); }

.stages { display: grid; grid-template-columns: repeat(5, 1fr); margin: 22px 0 26px; position: relative; }
.stage { position: relative; text-align: center; padding-top: 0; }
.stage::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 4px; background: var(--sand-2); }
.stage:first-child::before { display: none; }
.stage.done::before, .stage.current::before { background: var(--orange); }
.stage-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 50%; background: var(--sand-2); color: #fff; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.stage-dot svg { width: 14px; height: 14px; }
.stage.done .stage-dot { background: var(--orange); box-shadow: none; }
.stage.current .stage-dot { background: #fff; border-color: var(--orange); box-shadow: 0 0 0 5px rgba(14,143,150,.18); animation: pulse 2s infinite; }
.has-alert .stage.current .stage-dot { border-color: var(--amber); box-shadow: 0 0 0 5px rgba(201,138,11,.18); }
.stage-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stage.done .stage-label, .stage.current .stage-label { color: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(14,143,150,.06); } }
@media (prefers-reduced-motion: reduce) { .stage.current .stage-dot { animation: none; } }

.track-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.track-foot { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding: 14px 0 18px; margin-top: 18px; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 500; }
.facts-tight { gap: 10px; }
.partner { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.partner p { margin-bottom: 8px; }
.notfound h2 { font-family: ui-monospace, Menlo, monospace; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-day { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tl-day:first-child { padding-top: 0; }
.tl-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 10px 0 12px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 84px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: #c9c0b1; }
.tl-item::after { content: ""; position: absolute; left: 88px; top: 30px; bottom: -10px; width: 2px; background: var(--sand-2); }
.tl-item:last-child::after { display: none; }
.tl-item.is-latest::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(14,143,150,.2); }
.tl-item.is-alert::before { background: var(--amber); }
.tl-item.is-internal { opacity: .75; }
.tl-item.is-internal::before { background: #fff; border: 2px dashed #b3a995; }
.tl-time { font-size: 13px; color: var(--muted); padding-top: 1px; font-variant-numeric: tabular-nums; }
.tl-body { padding-left: 22px; }
.tl-body strong { display: block; }
.tl-item.is-latest .tl-body strong { color: var(--navy); font-size: 16px; }
.tl-loc { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tl-note { margin: 6px 0 0; font-size: 14px; background: var(--sand); padding: 8px 12px; border-radius: 8px; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.tl-meta form { margin-left: auto; }

/* ---------- Portal ---------- */
.shiplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.shipcard { color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; margin: 0; }
.shipcard:hover { transform: translateY(-2px); border-color: #d4c8b4; box-shadow: 0 10px 28px rgba(11,61,46,.1); }
.shipcard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; }
.shipcard h3 { font-size: 18px; }
.route { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 6px; }
.route svg { width: 26px; color: var(--orange); flex: none; }

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { border-radius: var(--radius); padding: 20px 22px; color: #fff; text-decoration: none !important; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); transition: transform .15s; }
.kpi:hover { transform: translateY(-2px); }
.kpi-num { font-size: 36px; font-weight: 800; line-height: 1; }
.kpi-label { font-size: 13px; opacity: .85; font-weight: 500; }
.kpi-navy { background: linear-gradient(135deg, #0b3d2e, #1a6a50); }
.kpi-red { background: linear-gradient(135deg, #b93a3a, #e0664c); }
.kpi-green { background: linear-gradient(135deg, #157a52, #2fb380); }
.kpi-orange { background: linear-gradient(135deg, #0a7378, #2bbfc6); }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: start; }
.pipe { display: grid; justify-items: center; gap: 6px; }
.pipe-num { font-size: 22px; font-weight: 800; color: var(--navy); }
.pipe-bar { width: 100%; max-width: 90px; height: 90px; background: var(--sand); border-radius: 10px; display: flex; align-items: flex-end; overflow: hidden; }
.pipe-bar i { display: block; width: 100%; background: linear-gradient(180deg, var(--orange), #5fd0d5); border-radius: 10px 10px 0 0; min-height: 4px; }
.pipe-label { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; min-height: 2.6em; line-height: 1.3; }
.rowlist { list-style: none; padding: 0; margin: 0; }
.rowlist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sand-2); flex-wrap: wrap; }
.rowlist li:last-child { border-bottom: 0; }
.rowlist a { color: var(--ink); font-weight: 600; }
.rowlist .mono { color: var(--blue); margin-right: 6px; }

/* ---------- Tables & filters ---------- */
.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { font: inherit; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filters input { flex: 1; min-width: 220px; }
.table-card { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: #fbf9f5; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--sand-2); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr[onclick] { cursor: pointer; }
.table tbody tr:hover { background: #fdfbf7; }
.table tr.is-off { opacity: .55; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions form { display: inline; margin-left: 10px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .formcard textarea {
  font: inherit; font-weight: 400; font-size: 15px; width: 100%; padding: 10px 12px; border: 1px solid #d9d1c3; border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(14,143,150,.15); }
.form small { font-weight: 400; color: var(--muted); font-size: 12px; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checks { display: grid; gap: 6px; }
.req { color: var(--orange); }
.form-wide { gap: 0; }
.formcard { display: grid; gap: 14px; }
.formcard .section-title { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gap-lg { gap: 18px; }
.stack { display: grid; gap: 14px; }
.rowlist .mono { font-size: 13px; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.update-card { border-top: 4px solid var(--orange); }
.danger-zone { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--sand-2); }
.authcard { margin-top: 24px; }
.authcard h1 { font-size: 26px; }
.authcard-foot { margin: 16px 0 0; font-size: 14px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: #072a20; color: rgba(255,255,255,.65); padding: 32px 0; font-size: 13px; margin-top: auto; }
.footer-in { display: grid; gap: 6px; }
.footer p { margin: 0; }
.footer a { color: #fff; }
.brand-foot .mark { width: 26px; height: 26px; }
.brand-foot .brand-word { font-size: 14px; }
.footer .muted { color: rgba(255,255,255,.45); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ship-layout, .two-col, .track-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .navburger { display: grid; gap: 5px; cursor: pointer; padding: 8px; }
  .navburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-top: 1px solid rgba(255,255,255,.1); }
  .navtoggle:checked ~ .nav { display: flex; }
  .nav-out { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.15); justify-content: space-between; }
  .services { grid-template-columns: 1fr; margin-top: -32px; }
  .journey-steps { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .journey-steps::before { display: none; }
  .journey-steps li { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; text-align: left; }
  .journey-steps li::before { grid-row: span 2; margin: 0; }
  .journey-cta { flex-direction: column; align-items: flex-start; }
  .trackbox { border-radius: 16px; flex-direction: column; }
  .trackbox-compact { flex-direction: row; border-radius: 999px; }
  .trackbox .btn-lg { width: 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .status-now { padding-left: 0; border-left: 0; }
  .stage-label { font-size: 11px; }
  .pipeline { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .pipe-label { font-size: 10px; }
  .trackcard[open] > *:not(summary) { margin-left: 16px; margin-right: 16px; }
  .card { padding: 18px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 10px 16px; border-bottom: 1px solid var(--sand-2); }
  .table td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
  .table td::before { content: attr(data-l); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding-top: 2px; }
  .table td.row-actions { display: block; text-align: left; }
  .table td.row-actions::before { content: none; }
  .row-actions form { margin: 0 14px 0 0; }
  .tl-item { grid-template-columns: 62px 1fr; }
  .tl-item::before { left: 70px; }
  .tl-item::after { left: 74px; }
}
@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-num { font-size: 28px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   v2 — operations, money, quotes, documents, messages, customer portal
   ===================================================================== */
.ok { color: var(--green); }
.bad { color: var(--red); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pad { padding: 18px 24px; }
.pad-x { padding-left: 24px; padding-right: 24px; }
.pad-b { padding: 0 24px 20px; }
.narrow-md { max-width: 820px; }
.hp { position: absolute; left: -9999px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head .section-title { margin: 0; }
.card-head.pad { padding: 18px 24px 0; margin-bottom: 12px; }
.select-sm { font: inherit; font-size: 14px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-width: 280px; }

/* Nav badges */
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: #f2b33d; color: #2a1d00; font-size: 11px; font-weight: 800; line-height: 1; vertical-align: 1px; }
.nav a.nav-user { color: rgba(255,255,255,.75); padding: 4px 8px; }

/* Pills */
.pill-bad { background: #fde6e6; color: #9b2222; }
.pill-lg { font-size: 13px; padding: 4px 12px; vertical-align: middle; margin-left: 6px; }

/* KPI variants */
.kpis-6 { grid-template-columns: repeat(6, 1fr); }
.kpis-6 .kpi-num { font-size: 30px; }
.kpi-amber { background: linear-gradient(135deg, #b5770a, #e2a83a); }
.kpi-light { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.kpi-light .kpi-label { color: var(--muted); opacity: 1; }
.kpi-num small { font-size: 16px; margin-left: 2px; }
.kpi-money { font-size: 26px !important; letter-spacing: -.01em; }
div.kpi:hover { transform: none; }

/* Money strip on dashboard */
.moneystrip { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 28px; align-items: center; color: inherit; text-decoration: none !important; border-left: 5px solid var(--orange); }
.moneystrip:hover { border-color: var(--navy); }
.ms-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ms-num { display: block; font-size: 24px; font-weight: 800; color: var(--navy); }
.ms-num.ok { color: var(--green); } .ms-num.bad { color: var(--red); }
.ms-chart .bars { height: 70px; } .ms-chart .legend { display: none; } .ms-chart .bars-profit { display: none; }

/* To-do */
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color .15s, background .15s; }
.todo a:hover { border-color: var(--orange); background: #f4fbfb; }
.todo-n { display: grid; place-items: center; height: 34px; border-radius: 10px; font-weight: 800; font-size: 16px; }
.tone-ok { background: #e3f5ec; color: #146c49; } .tone-info { background: #e3f4f5; color: #0a6168; } .tone-warn { background: #fdf0dc; color: #8a5a00; } .tone-bad { background: #fde6e6; color: #9b2222; }
.todo-go { color: var(--muted); }
.allclear { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.allclear > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e3f5ec; color: var(--green); font-size: 22px; font-weight: 800; flex: none; }
.allclear p { margin: 0; }

/* Horizontal bars */
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 56px; gap: 10px; align-items: center; font-size: 14px; }
.hb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hb-bar { height: 10px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.hb-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-2), var(--orange)); border-radius: 99px; min-width: 4px; }
.hb-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Activity feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--sand-2); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed-who { font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-what a { color: var(--ink); }
.feed-when { color: var(--muted); font-size: 13px; white-space: nowrap; }
.feed-full li { grid-template-columns: 70px 140px 1fr; }
.feed-full li.feed-day { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); padding-top: 16px; }
.pager { display: flex; justify-content: space-between; margin-top: 14px; }

/* Column chart */
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; height: 160px; align-items: end; }
.bars-col { display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; }
.bars-plot { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; }
.bars-plot i { display: block; width: 42%; max-width: 16px; border-radius: 4px 4px 0 0; min-height: 2px; }
.b-inv { background: var(--navy-2); } .b-col { background: #5fd0d5; }
.bars-profit { font-size: 10px; font-weight: 700; color: var(--green); min-height: 14px; }
.bars-profit.neg { color: var(--red); }
.bars-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; margin-top: 10px; align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Money */
.money-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.attention { border-left: 5px solid #f2b33d; }
.attention .rowlist li { align-items: center; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin: 6px 0 12px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--navy); border-color: var(--orange); }
.tabs-search { margin-left: auto; padding-bottom: 6px; }
.tabs-search input { font: inherit; font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; width: 280px; max-width: 100%; background: #fff; }
.table.compact td, .table.compact th { padding: 7px 10px; font-size: 13px; }
.rowlist li.is-off { opacity: .5; }

.inv-layout { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.items td:first-child { width: 50%; }
.inline-edit { display: inline-block; text-align: left; }
.inline-edit summary { list-style: none; display: inline; }
.inline-edit summary::-webkit-details-marker { display: none; }
.inline-edit[open] { display: block; margin-top: 8px; padding: 12px; background: var(--sand); border-radius: 10px; min-width: 300px; }
.totals { margin-left: auto; width: 320px; max-width: 100%; padding: 14px 24px 18px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.totals-due { background: var(--navy); color: #fff; padding: 10px 12px; border-radius: 10px; font-size: 17px; margin: 4px 0; }
.totals-profit { font-size: 13px; color: var(--muted); }
.totals-profit:first-of-type { border-top: 1px dashed var(--line); padding-top: 8px; }
.additem { grid-template-columns: 2.4fr .6fr 1fr 1fr auto; align-items: end; padding: 16px 24px 20px; border-top: 1px solid var(--line); background: #fbf9f5; }
.upload { margin-top: 14px; }
.upload > summary { list-style: none; display: inline-flex; }
.upload > summary::-webkit-details-marker { display: none; }
.upload[open] > summary { margin-bottom: 14px; }

/* Segmented control */
.seg { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: 7px 16px; border-radius: 999px; color: rgba(255,255,255,.8); font-weight: 600; font-size: 14px; text-decoration: none; }
.seg a.is-active { background: #fff; color: var(--navy); }
.seg-dark { background: var(--sand-2); }
.seg-dark a { color: var(--muted); }
.seg-dark a.is-active { background: var(--navy); color: #fff; }

/* Quote form */
.subhero-tall { padding: 44px 0 70px; color: #fff; background: radial-gradient(900px 300px at 85% -20%, #17604a 0%, transparent 60%), var(--navy); }
.subhero-title { font-size: 34px; font-weight: 800; margin: 6px 0 8px; }
.subhero-sub { color: rgba(255,255,255,.75); max-width: 620px; margin-bottom: 20px; }
.quoteform { max-width: 900px; margin: -60px auto 0; position: relative; gap: 0; }
.stepnum { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12px; margin-right: 6px; letter-spacing: 0; }
.svcpick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.svcopt { position: relative; cursor: pointer; }
.svcopt input { position: absolute; opacity: 0; }
.svcopt > span { display: grid; gap: 4px; height: 100%; padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.svcopt small { color: var(--muted); font-weight: 500; font-size: 12px; line-height: 1.35; }
.svcopt input:checked + span { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(14,143,150,.15); background: #f4fbfb; }
.svcopt input:focus-visible + span { outline: 2px solid var(--navy); }

/* Quote view */
.success-hero { text-align: center; border-top: 4px solid var(--green); }
.check-ico { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #e3f5ec; color: var(--green); font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.pricebox { display: flex; gap: 32px; flex-wrap: wrap; padding: 18px 20px; border-radius: 14px; background: linear-gradient(135deg, #f1faf8, #e6f6f6); border: 1px solid #cbe9e6; margin: 8px 0 14px; }
.pricebox > div { display: grid; gap: 2px; }
.price { font-size: 38px; font-weight: 800; color: var(--navy); line-height: 1.05; }
.notebox { background: var(--sand); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.notebox.ok { background: #e9f7f0; color: #135e40; }
.respond { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 6px 0 22px; }
.waiting { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--sand); border-radius: 12px; margin-bottom: 18px; }
.waiting p { margin: 0; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.facts-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 24px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Messages */
.msg-layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.msg-layout.single { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.chat { display: flex; flex-direction: column; }
.thread { max-height: 60vh; min-height: 220px; overflow-y: auto; padding: 8px 4px 16px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfaf7; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
.thread-empty { margin: auto; max-width: 420px; padding: 30px 0; }
.thread-day { text-align: center; margin: 10px 0 4px; }
.thread-day span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--sand-2); padding: 3px 10px; border-radius: 99px; }
.bubble { max-width: 78%; padding: 10px 14px 8px; border-radius: 16px; font-size: 15px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.bubble.theirs { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.mine { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble-ref { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; opacity: .7; margin-bottom: 2px; }
.bubble-meta { display: block; font-size: 11px; opacity: .65; margin-top: 4px; text-align: right; }
.composer { grid-template-columns: 1fr auto; align-items: end; margin-top: 14px; }
.composer textarea { grid-column: 1; resize: vertical; }
.composer .composer-about { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.composer button { height: 46px; }
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox a { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--sand-2); color: var(--ink); text-decoration: none; }
.inbox a:hover { background: #fdfbf7; }
.inbox li:last-child a { border-bottom: 0; }
.inbox .is-unread a { background: #f4fbfb; }
.inbox .is-unread strong { color: var(--navy); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy-2); color: #fff; font-weight: 800; }
.inbox-main { min-width: 0; }
.inbox-snip { display: block; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-side { display: grid; justify-items: end; gap: 4px; }

/* Documents */
.doclist { list-style: none; margin: 0; padding: 0; }
.doclist li { display: grid; grid-template-columns: 42px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sand-2); }
.doclist li:last-child { border-bottom: 0; }
.doclist li.is-internal { opacity: .75; }
.doclist form { display: inline; }
.docicon { display: grid; place-items: center; width: 42px; height: 48px; border-radius: 6px; background: #e3f4f5; color: var(--orange-d); font-size: 10px; font-weight: 800; letter-spacing: .04em; position: relative; }
.docmain { min-width: 0; display: grid; }
.docmain a { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Customer portal */
.portal-hero { background: radial-gradient(1000px 300px at 90% -30%, #17604a 0%, transparent 60%), var(--navy); color: #fff; padding: 34px 0 56px; }
.ph-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.portal-hero h1 { font-size: 28px; font-weight: 800; margin: 4px 0 0; max-width: 640px; }
.portal-hero .trackbox-compact { width: 360px; max-width: 100%; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 700; text-decoration: none; transition: background .15s; }
.quick a:hover { background: rgba(255,255,255,.16); }
.q-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--orange); font-size: 16px; flex: none; }
.portal-hero + .page { margin-top: -30px; }
.banner { display: block; padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; color: inherit; text-decoration: none !important; border: 1px solid; box-shadow: var(--shadow); }
.banner-warn { background: #fff7e6; border-color: #f3d9a4; color: #6e4800; }
.banner-bad { background: #fdeeee; border-color: #f4c7c7; color: #8f2424; }
.banner-info { background: #e8f7f7; border-color: #bfe5e6; color: #0a5157; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none !important; box-shadow: var(--shadow); display: grid; }
.chip-n { font-size: 24px; font-weight: 800; color: var(--navy); }
.chip-warn { border-color: #f3d9a4; background: #fffaf0; }
.chip-warn .chip-n { color: #8a5a00; }
.portal-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.livecard { display: block; color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s; border-left: 4px solid var(--orange); }
.livecard:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(11,61,46,.1); }
.livecard.is-alert { border-left-color: var(--amber); }
.livecard h3 { font-size: 18px; margin-bottom: 4px; }
.lc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.lc-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.lc-foot strong { color: var(--ink); }
.miniprog { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 12px 0 2px; }
.miniprog span { height: 6px; border-radius: 99px; background: var(--sand-2); }
.miniprog span.done { background: var(--orange); }
.miniprog span.cur { background: linear-gradient(90deg, var(--orange) 50%, #a9e3e6 50%); }
.miniprog.is-alert span.cur { background: var(--amber); }
.paycard.has-due { border-top: 4px solid #f2b33d; }
.pay-big { font-size: 32px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.pay-big.ok { color: var(--green); }
.paycard .btn-block { margin-top: 12px; }
.payopts { display: grid; gap: 10px; }
.payopt { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none !important; font-size: 14px; }
a.payopt:hover { border-color: var(--orange); background: #f4fbfb; }
.po-name { font-weight: 800; color: var(--navy); }
.po-sub { color: var(--muted); }
.po-sub strong { color: var(--ink); }
.invstrip { display: grid; gap: 8px; margin-bottom: 18px; }
.invstrip a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14px; }
.journey-cta-2 { margin-top: 14px; background: transparent; box-shadow: none; }
.settings .two-col { align-items: start; }

/* Responsive */
@media (max-width: 1180px) {
  .is-staff .navburger, .is-client .navburger { display: grid; gap: 5px; cursor: pointer; padding: 8px; }
  .is-staff .navburger span, .is-client .navburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
  .is-staff .nav, .is-client .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 24px rgba(0,0,0,.2); }
  .is-staff .navtoggle:checked ~ .nav, .is-client .navtoggle:checked ~ .nav { display: flex; }
  .is-staff .nav-out, .is-client .nav-out { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.15); justify-content: space-between; }
  .kpis-6 { grid-template-columns: repeat(3, 1fr); }
  .svcpick { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .money-grid, .inv-layout, .msg-layout, .portal-grid { grid-template-columns: 1fr; }
  .moneystrip { grid-template-columns: repeat(3, 1fr); }
  .ms-chart { grid-column: 1 / -1; }
  .additem { grid-template-columns: 1fr 1fr; }
  .additem .ai-desc { grid-column: 1 / -1; }
  .quick, .chips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .kpis-6 { grid-template-columns: repeat(2, 1fr); }
  .moneystrip { grid-template-columns: 1fr; gap: 12px; }
  .svcpick { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .feed li { grid-template-columns: 1fr; gap: 2px; }
  .feed-full li { grid-template-columns: 1fr; }
  .hbars li { grid-template-columns: 1fr 70px 50px; }
  .tabs-search { margin-left: 0; width: 100%; }
  .tabs-search input { width: 100%; }
  .bubble { max-width: 90%; }
  .thread { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
  .portal-hero h1 { font-size: 22px; }
  .subhero-title { font-size: 26px; }
  .totals { width: 100%; }
  .doclist li { grid-template-columns: 36px 1fr auto; }
  .doclist li > a.linkbtn { display: none; }
  .table td.num { text-align: left; }
  .composer { grid-template-columns: 1fr; }
  .composer button { width: 100%; }
}

/* v2 polish */
.form > *, .inv-layout > *, .portal-grid > *, .msg-layout > *, .two-col > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.form select { max-width: 100%; text-overflow: ellipsis; }
.nav { gap: 0; }
.nav a { white-space: nowrap; padding: 8px 10px; display: inline-flex; align-items: center; }
.brand-word { white-space: nowrap; }
.nav-out { white-space: nowrap; }
@media (max-width: 1360px) { .is-staff .nav-user { display: none; } }
@media (min-width: 1181px) and (max-width: 1400px) { .is-staff .brand-word b { display: none; } }
.form input[type=date] { min-width: 0; }
@media (max-width: 760px) {
  .table-card { padding: 0; }
  .brand { min-width: 0; }
  .brand-word { font-size: 13px; letter-spacing: .04em; }
  .mark { width: 30px; height: 30px; }
}
@media (max-width: 360px) { .brand-word b { display: none; } }

/* v2.1 services */
.services-6 { grid-template-columns: repeat(3, 1fr); }
a.service { color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.service:hover { transform: translateY(-2px); border-color: var(--orange); box-shadow: 0 10px 28px rgba(11,61,46,.1); }
.service-ico svg { fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; width: 26px; height: 26px; }
.service-ico-lg { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.service-ico-lg svg { width: 36px; height: 36px; }
.svcgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svcgrid-lift { margin-top: -64px; position: relative; }
.svccard { color: inherit; text-decoration: none !important; display: flex; flex-direction: column; gap: 6px; margin: 0; transition: transform .15s, box-shadow .15s, border-color .15s; }
.svccard:hover { transform: translateY(-2px); border-color: var(--orange); box-shadow: 0 10px 28px rgba(11,61,46,.1); }
.svccard h2 { font-size: 19px; margin: 10px 0 0; }
.svccard p { color: var(--muted); margin: 0; flex: 1; }
.svccard-go { color: var(--orange-d); font-weight: 700; font-size: 14px; margin-top: 8px; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; border-left: 5px solid var(--orange); }
.cta-band h2 { font-size: 22px; margin: 0 0 4px; }
.cta-band p { margin: 0; }
.crumbs-light, .crumbs-light a { color: rgba(255,255,255,.7); }
.svchero { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.svchero .service-ico { background: rgba(255,255,255,.1); }
.svchero .service-ico svg { stroke: #5fd0d5; }
.svc-layout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; margin-top: -40px; position: relative; }
.svc-intro { font-size: 17px; line-height: 1.6; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #e3f5ec; color: var(--green); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.plain { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.notecard { border-left: 5px solid #f2b33d; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { color: rgba(255,255,255,.75); }
.svcpick { grid-template-columns: repeat(3, 1fr); }
.dimcalc { display: grid; gap: 6px; }
.dimcalc-label { font-size: 13px; font-weight: 600; }
.dimcalc-row { display: flex; align-items: center; gap: 8px; max-width: 460px; }
.dimcalc-row input { flex: 1; min-width: 0; }
.dimcalc-row span { color: var(--muted); font-weight: 700; }
.dimcalc-out { margin: 0; font-size: 14px; color: var(--ink); min-height: 1.2em; }
.svc-extra { border-left: 5px solid var(--orange); }
@media (max-width: 960px) { .svcgrid, .services-6, .svcpick { grid-template-columns: 1fr 1fr; } .svc-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .svcgrid, .services-6 { grid-template-columns: 1fr; } .svchero { flex-direction: column; align-items: flex-start; } }
.svc-extra[hidden] { display: none !important; }

/* SEO content blocks */
.h2-plain { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.seo-block { padding-bottom: 40px; }
.table-scroll { overflow-x: auto; }
.transit td, .transit th { white-space: nowrap; }
.citylist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.citylist span { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--sand-2); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 760px) { .transit td, .transit th { white-space: normal; } }
@media (max-width: 760px) {
  .table.transit { display: table; min-width: 560px; }
  .transit thead { display: table-header-group; }
  .transit tbody { display: table-row-group; }
  .transit tr { display: table-row; padding: 0; }
  .transit td, .transit th { display: table-cell; padding: 8px 10px; }
  .transit td::before { content: none; }
}

/* ---------- Website content editor (owner) ---------- */
.cms-index { align-items: start; }
.cms-row { align-items: center; }
.cms-row > div { flex: 1 1 260px; min-width: 0; }
.cms-row .pill { margin-left: 6px; vertical-align: 1px; }
.cms-form .card { margin-bottom: 18px; }
.cms-field { display: grid; gap: 6px; }
.form .cms-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cms-label .pill { font-size: 11px; padding: 2px 8px; }
.rowlist .cms-row a.btn-dark { color: #fff; }
.rowlist .cms-row a.btn-ghost { color: var(--navy); font-weight: 700; }
.cms-form textarea { width: 100%; resize: vertical; line-height: 1.5; font: inherit; font-weight: 400; }
.cms-form textarea.cms-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.cms-check { align-items: flex-start !important; }
.cms-check input { margin-top: 3px; }
.cms-orig summary { cursor: pointer; font-size: 12px; color: var(--muted); font-weight: 500; }
.cms-orig pre { white-space: pre-wrap; font-size: 12px; background: var(--sand); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0 0; color: var(--muted); max-height: 240px; overflow: auto; }
.cms-actions { position: sticky; bottom: 0; background: var(--sand); padding: 12px 0; z-index: 5; flex-wrap: wrap; }
.cms-reset { margin-top: 18px; }
.cms-reset .linkbtn { color: #9b2222; }

/* ---------- Live chat: visitor bubble ---------- */
.oc { position: fixed; right: 18px; bottom: 18px; z-index: 900; font-family: inherit; }
.oc[hidden] { display: none; }
.oc-bubble { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: var(--orange); color: #fff; font: inherit; font-weight: 700; font-size: 15px; padding: 13px 18px 13px 15px; border-radius: 999px; box-shadow: 0 8px 24px rgba(11,61,46,.28); position: relative; }
.oc-bubble:hover { background: var(--orange-d); }
.oc-bubble svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.oc-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: #d93a3a; color: #fff; font-size: 12px; line-height: 20px; text-align: center; padding: 0 5px; }
.oc.is-open .oc-bubble-label { display: none; }
.oc.is-open .oc-bubble { padding: 13px; }
.oc-panel { position: absolute; right: 0; bottom: 64px; width: 360px; max-width: calc(100vw - 36px); height: 520px; max-height: calc(100vh - 110px); background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(11,61,46,.25); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.oc-panel[hidden] { display: none; }
.oc-head { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.oc-head strong { display: block; font-size: 16px; }
.oc-status { display: block; font-size: 12.5px; opacity: .85; margin-top: 3px; padding-left: 14px; position: relative; }
.oc-status::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #9aa5a0; }
.oc-status.is-on::before { background: #3ddc84; }
.oc-x { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: .8; padding: 0 2px; }
.oc-x:hover { opacity: 1; }
.oc-log { flex: 1; overflow-y: auto; padding: 14px; background: var(--sand); display: flex; flex-direction: column; gap: 8px; }
.oc-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.oc-them { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.oc-me { background: var(--orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.oc-time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; }
.oc-err { margin: 0; padding: 8px 14px; font-size: 13px; background: #fdf0dc; color: #8a5a00; }
.oc-err[hidden] { display: none; }
.oc-start { padding: 12px 14px 14px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.oc-start[hidden], .oc-reply[hidden] { display: none; }
.oc-start input, .oc-start textarea, .oc-reply textarea { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; box-sizing: border-box; resize: none; }
.oc-start input:focus, .oc-start textarea:focus, .oc-reply textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(14,143,150,.15); }
.oc-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.oc-send-btn { border: 0; background: var(--orange); color: #fff; font: inherit; font-weight: 700; padding: 11px; border-radius: 999px; cursor: pointer; }
.oc-send-btn:disabled { opacity: .6; }
.oc-note { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.oc-reply { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.oc-reply textarea { flex: 1; max-height: 120px; }
.oc-reply button { border: 0; background: var(--orange); color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 16px; flex: none; }
@media (max-width: 640px) {
  .oc { right: 12px; bottom: 12px; }
  .oc-bubble-label { display: none; }
  .oc-bubble { padding: 14px; }
  .oc-panel { position: fixed; inset: auto 8px 78px 8px; width: auto; max-width: none; height: min(560px, calc(100vh - 100px)); }
}
@media print { .oc { display: none; } }

/* ---------- Live chat: staff screens ---------- */
.chat-list .chat-row { align-items: center; }
.chat-row.is-unread .chat-row-link strong { color: var(--orange-d); }
.chat-row-link { flex: 1 1 320px; min-width: 0; display: grid; gap: 3px; text-decoration: none !important; }
.chat-row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-row-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row-meta { text-align: right; }
.chat-empty { margin: 0; }
.actions .btn.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.chat-thread { padding: 0; overflow: hidden; }
.chat-log { height: min(56vh, 560px); overflow-y: auto; padding: 18px; background: var(--sand); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 75%; }
.chat-msg.lc-visitor { align-self: flex-start; }
.chat-msg.lc-staff { align-self: flex-end; text-align: right; }
.chat-who { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.chat-body { display: inline-block; text-align: left; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; word-wrap: break-word; }
.lc-visitor .chat-body { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.lc-staff .chat-body { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-reply { padding: 14px 18px 18px; border-top: 1px solid var(--line); gap: 10px; }
.chat-reply textarea { width: 100%; resize: vertical; font: inherit; }
