/* ---------- Tokens ---------- */
:root {
  --navy-900: #0b1f36;
  --navy-800: #12304f;
  --navy-700: #1b4170;
  --blue-600: #1f5fbf;
  --blue-500: #2f74d8;
  --blue-50: #eaf2fd;
  --ink: #17202b;
  --ink-2: #3c4857;
  --muted: #687586;
  --line: #dbe2ea;
  --line-2: #e9eef4;
  --bg: #f4f6f9;
  --card: #ffffff;
  --ok: #157a4a;
  --ok-bg: #e6f4ec;
  --warn: #9a5b00;
  --warn-bg: #fff4dc;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 32, 54, .06), 0 4px 16px rgba(16, 32, 54, .06);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy-900); }
p { margin: 0 0 1em; }
a { color: var(--blue-600); }
code { font-family: var(--mono); font-size: .88em; background: var(--line-2); padding: 1px 5px; border-radius: 4px; }
button { font: inherit; }
:focus-visible { outline: 3px solid #8db8f2; outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 18px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: #b7c3d1; color: var(--ink); }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-light:hover { background: rgba(255, 255, 255, .22); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }

/* ---------- Top bar & hero ---------- */
.topbar { background: var(--navy-900); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--blue-600); display: grid; place-items: center; font-weight: 700; letter-spacing: .5px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text span { font-size: 12px; color: #a9bbd1; }
.topbar nav { display: flex; align-items: center; gap: 20px; }
.topbar nav a:not(.btn) { color: #d3deeb; text-decoration: none; font-size: 14px; }
.topbar nav a:not(.btn):hover { color: #fff; }

.hero { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: #dbe5f1; padding: 56px 0 64px; }
.hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); max-width: 760px; font-weight: 650; }
.hero-copy { max-width: 720px; font-size: 16.5px; color: #c4d2e3; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--blue-500); margin-bottom: 10px; }
.hero .eyebrow { color: #8fb6ea; }
.stack-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-list li { font-size: 12.5px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #dbe5f1; }

/* ---------- Projects ---------- */
.projects { padding-top: 40px; padding-bottom: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 22px; }
.bulk { display: flex; gap: 8px; }

.frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 22px; overflow: hidden; }
.frame-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.frame.is-collapsed .frame-head { border-bottom-color: transparent; }
.frame-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.frame-title h3 { margin: 0; font-size: 19px; }
.frame-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.badge { flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; }
.badge-dc { background: #1f7a5a; }
.badge-sw { background: #1b4170; }
.badge-lp { background: #4b3fb0; }

.toggle { flex: none; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: var(--radius-sm); padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.toggle:hover { border-color: #b7c3d1; color: var(--ink); }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg) translate(-1px, -1px); transition: transform .2s; }
.toggle[aria-expanded="false"] .chev { transform: rotate(45deg) translate(-2px, -2px); }

.frame-body { padding: 22px; }
.frame-body[hidden] { display: none; }
.frame-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.about h4, .flow h4, .shots h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.about p { color: var(--ink-2); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.facts li { display: grid; grid-template-columns: 82px 1fr; gap: 8px; color: var(--ink-2); }
.facts span { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; padding-top: 1px; }

.workflow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.workflow li { position: relative; text-align: center; padding: 46px 4px 0; font-size: 12.5px; color: var(--muted); counter-increment: step; }
.workflow li b { display: block; color: var(--navy-900); font-size: 13.5px; }
.workflow li::before { content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-600); border: 2px solid #c4d9f5; display: grid; place-items: center; font-weight: 700; z-index: 1; }
.workflow li + li::after { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: #c4d9f5; }

.shots { margin-top: 26px; }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shot { padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: zoom-in; overflow: hidden; text-align: left; transition: box-shadow .15s, border-color .15s; }
.shot:hover { border-color: #b7c3d1; box-shadow: var(--shadow); }
.shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; border-bottom: 1px solid var(--line-2); background: var(--line-2); }
.shot span { display: block; padding: 8px 10px; font-size: 13px; color: var(--ink-2); font-weight: 600; }

/* ---------- Demo chrome ---------- */
.demo { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #eef2f6; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #c9d2dc; }
.demo-url { flex: 1; min-width: 0; font-size: 12.5px; font-family: var(--mono); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-url em { font-style: normal; font-family: var(--font); color: var(--warn); margin-left: 8px; }
.demo-screen { min-height: 420px; font-size: 14px; position: relative; }

/* ---------- Contact ---------- */
.contact { background: #fff; border-top: 1px solid var(--line); padding: 56px 0; margin-top: 20px; scroll-margin-top: 62px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact h2 { font-size: 26px; }
.contact-copy p { color: var(--ink-2); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; color: var(--navy-900); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9d3de; border-radius: var(--radius-sm); padding: 9px 11px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47, 116, 216, .18); }
.field.has-error input, .field.has-error textarea { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 12.5px; margin: 4px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.field-meta { font-size: 12px; color: var(--muted); text-align: right; margin: 3px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.form-status { margin: 12px 0 0; font-size: 14px; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); background: var(--ok-bg); padding: 10px 12px; border-radius: var(--radius-sm); }
.form-status.err { color: var(--bad); background: var(--bad-bg); padding: 10px 12px; border-radius: var(--radius-sm); }

.footer { background: var(--navy-900); color: #a9bbd1; font-size: 13px; padding: 20px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer .muted { color: #7f93ab; }

/* ---------- Lightbox ---------- */
#lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
#lightbox::backdrop { background: rgba(8, 18, 32, .78); }
#lightbox figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
#lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
#lightbox figcaption { padding: 10px 14px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); }
.lightbox-close { position: absolute; top: -42px; right: 0; }

/* =========================================================
   Demo apps (each scoped to its own screen)
   ========================================================= */
.d-wrap { padding: 22px; }
.d-center { display: grid; place-items: center; min-height: 420px; padding: 22px; }
.d-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; width: 100%; max-width: 360px; box-shadow: var(--shadow); }
.d-card h5 { font-size: 18px; margin: 0 0 4px; color: var(--navy-900); }
.d-card p { color: var(--muted); font-size: 13.5px; }
.d-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 10px 0 4px; }
.d-input, .d-select { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #c9d3de; border-radius: 6px; background: #fff; color: var(--ink); }
.d-input:focus, .d-select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47,116,216,.15); }
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; background: var(--brand, var(--blue-600)); color: #fff; }
.d-btn:hover { filter: brightness(.93); }
.d-btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }
.d-btn.alt { background: #fff; color: var(--ink-2); border-color: var(--line); }
.d-btn.sm { padding: 5px 10px; font-size: 12.5px; }
.d-btn.block { width: 100%; margin-top: 14px; }
.d-hint { font-size: 12.5px; background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 7px 10px; margin-top: 12px; }
.d-err { font-size: 12.5px; color: var(--bad); margin-top: 8px; }
.d-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-spacer { flex: 1; }
.d-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.d-head .logo { font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: 8px; }
.d-head .logo i { width: 22px; height: 22px; border-radius: 5px; background: var(--brand); display: inline-block; }
.d-user { font-size: 12.5px; color: var(--muted); }
.d-steps { display: flex; gap: 6px; font-size: 12px; color: var(--muted); }
.d-steps span { padding: 3px 9px; border-radius: 999px; background: var(--line-2); }
.d-steps span.on { background: var(--brand); color: #fff; }
.d-title { font-size: 16px; font-weight: 650; color: var(--navy-900); margin: 0 0 4px; }
.d-sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.d-pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.d-pill.ok { background: var(--ok-bg); color: var(--ok); }
.d-pill.warn { background: var(--warn-bg); color: var(--warn); }
.d-pill.bad { background: var(--bad-bg); color: var(--bad); }
.d-pill.info { background: var(--blue-50); color: var(--blue-600); }
.d-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.d-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.d-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.d-table tr:last-child td { border-bottom: 0; }
.d-scroll { overflow: auto; }
.d-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.d-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; font: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.d-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.d-check { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 6px; cursor: pointer; background: #fff; }
.d-check:hover { border-color: #b7c3d1; }
.d-check input { accent-color: var(--brand); width: 16px; height: 16px; }
.d-check .meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.d-bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.d-bar > i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s; }
.d-log { font-family: var(--mono); font-size: 12.5px; background: #0f1b2b; color: #cfe0f5; border-radius: 6px; padding: 12px 14px; height: 250px; overflow: auto; }
.d-log div { white-space: pre-wrap; }
.d-log .g { color: #7fd7a8; }
.d-log .y { color: #f3cf7a; }
.d-log .r { color: #ff9b91; }
.d-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.d-kpi { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fff; }
.d-kpi b { display: block; font-size: 24px; color: var(--navy-900); line-height: 1.2; }
.d-kpi span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.d-box { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.d-box-head { padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.d-box-body { padding: 12px 14px; }
.d-toast { position: absolute; right: 16px; bottom: 16px; background: var(--navy-900); color: #fff; font-size: 13px; padding: 9px 14px; border-radius: 6px; box-shadow: var(--shadow); }

/* Drive to CSV */
.demo-dc { --brand: #1f7a5a; background: #f6f9f8; }
.dc-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.dc-tree { font-size: 13.5px; }
.dc-node { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 5px; cursor: pointer; border-left: 4px solid var(--c, #ccc); margin: 2px 0; background: #fff; }
.dc-node:hover, .dc-node.sel { background: #e9f3ef; }
.dc-node .tw { width: 14px; color: var(--muted); font-size: 11px; text-align: center; }
.dc-node .nm { font-weight: 600; color: var(--ink); }
.dc-node .sz { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.dc-kids { margin-left: 18px; }
.dc-file { display: flex; gap: 8px; padding: 3px 8px 3px 30px; font-size: 12.5px; color: var(--ink-2); }
.dc-file .sz { margin-left: auto; color: var(--muted); }
.dc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; font-size: 12.5px; }
.dc-cols label { display: flex; gap: 6px; align-items: center; }
.dc-cols input { accent-color: var(--brand); }
.dc-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.dc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* Steward Watch */
.demo-sw { --brand: #1b4170; background: #f3f6fa; }
.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sw-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 4px 0 14px; }
.sw-strip div { text-align: center; font-size: 11px; padding: 6px 2px; border-radius: 5px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.sw-strip div b { display: block; font-size: 12px; color: var(--navy-900); }
.sw-strip div.a { background: #e6eefb; border-color: #c4d6f3; }
.sw-strip div.b { background: #f1eefb; border-color: #d7cff2; }
.sw-week { margin-bottom: 12px; }
.sw-week h6 { margin: 0 0 6px; font-size: 13px; color: var(--navy-900); display: flex; gap: 8px; align-items: center; }
.sw-shift { display: grid; grid-template-columns: 92px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 5px; font-size: 13px; }
.sw-shift .when { color: var(--muted); font-size: 12px; }
.sw-shift .what b { display: block; color: var(--ink); font-weight: 600; }
.sw-shift .what span { font-size: 12px; color: var(--muted); }
.sw-shift.declined { border-color: #f1b8b2; background: #fff8f7; }
.sw-shift.declined .what b { color: var(--bad); text-decoration: line-through; }
.sw-criteria { font-size: 12.5px; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.sw-criteria dt { color: var(--muted); }
.sw-criteria dd { margin: 0; color: var(--ink); }
.sw-cal { font-size: 12.5px; }
.sw-cal div { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line-2); }
.sw-cal div:last-child { border-bottom: 0; }

/* LogisticsPro */
.demo-lp { --brand: #4b3fb0; background: #f6f5fc; }
.lp-shell { display: grid; grid-template-columns: 180px 1fr; min-height: 420px; }
.lp-side { background: #231d57; color: #cfcaf3; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.lp-side .logo { color: #fff; font-weight: 700; padding: 4px 10px 14px; display: flex; gap: 8px; align-items: center; }
.lp-side .logo i { width: 20px; height: 20px; border-radius: 5px; background: #8b80f0; display: inline-block; }
.lp-side button { text-align: left; background: none; border: 0; color: inherit; font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.lp-side button:hover { background: rgba(255,255,255,.08); color: #fff; }
.lp-side button.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.lp-side .grow { flex: 1; }
.lp-main { padding: 20px; min-width: 0; }
.lp-code { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.lp-code input { width: 40px; height: 46px; text-align: center; font-size: 20px; font-weight: 600; border: 1px solid #c9d3de; border-radius: 6px; font-family: var(--mono); }
.lp-code input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(75,63,176,.18); }
.lp-form { max-width: 420px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .frame-grid, .contact-inner, .dc-layout, .sw-grid { grid-template-columns: 1fr; }
  .workflow { margin-top: 6px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar nav a:not(.btn) { display: none; }
  .brand-text span { display: none; }
  .hero { padding: 36px 0 44px; }
  .frame-head, .frame-body { padding: 16px; }
  .frame-sub { display: none; }
  .shot-row { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .workflow li { font-size: 11px; padding-top: 42px; }
  .workflow li b { font-size: 12px; }
  .lp-shell { grid-template-columns: 1fr; }
  .lp-side { flex-direction: row; flex-wrap: wrap; }
  .lp-side .logo { width: 100%; padding-bottom: 6px; }
  .lp-side .grow { display: none; }
  .d-kpis { grid-template-columns: 1fr 1fr 1fr; }
  .d-kpi b { font-size: 19px; }
  .sw-shift { grid-template-columns: 1fr auto; }
  .sw-shift .when { grid-column: 1 / -1; }
  .sw-strip { grid-template-columns: repeat(4, 1fr); }
  .section-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.sw-shift .when { white-space: pre-line; line-height: 1.35; }
.sw-criteria { margin: 0; }
.d-table td:first-child { white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }

/* LogisticsPro: shipment page, uploads, variances, sheet viewer */
.lp-click tbody tr { cursor: pointer; }
.lp-click tbody tr:hover, .lp-click tbody tr.sel { background: #f1effc; }
.lp-click tbody tr:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.lp-name { font-weight: 600; color: var(--ink); }
.lp-search { width: 160px; padding: 4px 8px; }
.lp-inline { width: auto; padding: 4px 8px; }
.lp-frame { margin-bottom: 12px; border-left: 4px solid var(--brand); }
.lp-sec { margin-top: 12px; }
.lp-drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; border: 2px dashed #c9c3ee; background: #fbfaff; border-radius: 8px; padding: 12px 14px; font-size: 13px; }
.lp-note { background: var(--line-2); border-radius: 6px; padding: 9px 12px; margin: 0; }
.lp-danger { background: var(--bad); }
.lp-prog { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.lp-prog:last-child { border-bottom: 0; }
.lp-prog .d-row { font-size: 13px; gap: 8px; }
.lp-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--line-2); margin: 6px 0 4px; }
.lp-bar i { display: block; height: 100%; }
.lp-bar .rec, .lp-legend .rec { background: #2e9d6a; }
.lp-bar .var, .lp-legend .var { background: #d14b3f; }
.lp-bar .tra, .lp-legend .tra { background: #e8a33a; }
.lp-delta { font-size: 12px; }
.lp-summary { font-size: 13px; background: #f1effc; border-radius: 6px; padding: 8px 10px; margin: 0 0 6px; }
.lp-legend { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.lp-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.lp-var { max-height: 230px; }
.d-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-table td.neg { color: var(--bad); font-weight: 600; }
.d-table td.pos { color: #8a4b00; font-weight: 600; }
.lp-link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; font-weight: 600; }
.lp-overlay { position: absolute; inset: 0; z-index: 5; background: rgba(20, 16, 50, .55); display: flex; align-items: flex-start; justify-content: center; padding: 18px; }
.lp-overlay:focus { outline: none; }
.lp-sheet-win { background: #fff; border-radius: 8px; width: 100%; max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.3); overflow: hidden; }
.lp-sheet-tools { padding: 8px 14px 0; }
.lp-filter { margin: 0; border-bottom: 0; }
.lp-sheet-body { overflow: auto; max-height: 340px; border-top: 1px solid var(--line); }
.lp-sheet { border-collapse: collapse; font-size: 12px; font-family: var(--mono); white-space: nowrap; }
.lp-sheet th, .lp-sheet td { border: 1px solid #e3e7ee; padding: 4px 8px; text-align: left; }
.lp-sheet thead th { position: sticky; top: 0; background: #eef1f6; font-family: var(--font); font-size: 11px; color: var(--ink-2); z-index: 1; }
.lp-sheet tbody th { background: #f6f7fa; color: var(--muted); font-weight: 400; text-align: right; }
.lp-sheet tr.var td { background: #fdecea; color: #8f1d14; }
.lp-sheet tr.tra td { background: #fff4dc; color: #7a4a00; }
.lp-sheet tr.hit td, .lp-sheet tr.hit th { box-shadow: inset 0 2px 0 var(--brand), inset 0 -2px 0 var(--brand); }
.demo-lp .demo-screen, .demo-lp { min-height: 520px; }
.d-table td.lp-name:first-child, .lp-var td:first-child { font-family: var(--font); font-size: 13.5px; }

/* About me */
.intro { padding-top: 36px; }
.intro-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-600); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; }
.intro-card h2 { font-size: 22px; margin-bottom: 12px; }
.intro-card p { color: var(--ink-2); max-width: 820px; }
.intro-card p:last-child { margin-bottom: 0; }
.projects { padding-top: 28px; }
.sw-shift { grid-template-columns: 92px 1fr auto; }
@media (max-width: 640px) {
  .sw-shift { grid-template-columns: 1fr auto; }
  .lp-search { width: 110px; }
  .lp-overlay { padding: 8px; }
}
.lp-sheet-win { position: sticky; top: 74px; }

/* About me photo: beside the text on wide screens, centred above it on phones */
.intro-card { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }
.intro-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); margin-top: 4px; }
@media (max-width: 640px) {
  .intro-card { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .intro-photo { width: 112px; height: 112px; justify-self: center; }
  .intro-text h2 { text-align: center; }
}
