/* TravelDesk - JT Crop design language: Poppins, JT Green lead, JT Orange for callouts, 'O' Swirl rules. Light only. */
:root {
  --green: #00AC63;
  --green-dark: #1A7A3C;
  --green-tint: #E6F7EF;
  --orange: #F79D20;
  --orange-tint: #FEF3E2;
  --swirl: #8DC54C;
  --ink: #1E2022;
  --grey: #6B7280;
  --line: #E4E4DF;
  --light: #F0F0EE;
  --bg: #FAFAF8;
  --white: #FFFFFF;
  --red: #C2410C;
  --red-tint: #FDECE6;
  --blue: #2E3192;
  --blue-tint: #ECEDF8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(30, 32, 34, .05), 0 4px 16px rgba(30, 32, 34, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 "Poppins", "Century Gothic", "Segoe UI", sans-serif;
}
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3 { font-weight: 700; line-height: 1.3; margin: 0 0 .4em; }
h1 { font-size: 26px; color: var(--ink); }
h2 { font-size: 18px; color: var(--ink); font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--grey); }
.eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); font-weight: 500; }
.mono { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ header */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; margin-right: auto; }
.brand img { height: 30px; width: auto; display: block; }
.brand .sep { width: 1px; height: 28px; background: var(--line); }
.brand .word { font-weight: 600; font-size: 19px; color: var(--green); letter-spacing: .01em; line-height: 1; }
.brand .word small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); font-weight: 500; margin-top: 3px; }
/* left menu, grouped by what people do */
.shell { max-width: 1320px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 26px; }
.shell > main { max-width: none; margin: 0; padding: 26px 0 60px; min-width: 0; }
.side { position: sticky; top: 66px; align-self: start; padding: 24px 0; max-height: calc(100vh - 66px); overflow-y: auto; }
.side .grp { margin-bottom: 18px; }
.side .gl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); font-weight: 500; padding: 0 12px 6px; }
.side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 14px; }
.side a:hover { background: var(--light); color: var(--ink); }
.side a.on { background: var(--green-tint); color: var(--green-dark); }
.side .help a { font-size: 13px; font-weight: 400; color: var(--grey); padding: 5px 12px; }
.count { display: inline-block; background: var(--orange); color: var(--ink); border-radius: 10px; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 20px; min-width: 22px; text-align: center; }
.count.zero { background: var(--light); color: var(--grey); }
.me { display: flex; align-items: center; gap: 10px; flex: none; }
.bell { position: relative; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); }
.bell:hover { background: var(--light); }
.bell svg { width: 20px; height: 20px; }
.bell .dot { position: absolute; top: 3px; right: 2px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 600; border-radius: 9px; min-width: 17px; height: 17px; padding: 0 4px; display: flex; align-items: center; justify-content: center; }
.who { text-align: right; line-height: 1.25; font-size: 13px; }
.who b { display: block; font-weight: 600; }
.who small { font-size: 11.5px; }
.brandbar { display: flex; height: 3px; }
.brandbar span:first-child { flex: 7; background: var(--green); }
.brandbar span:last-child { flex: 3; background: var(--orange); }

main { max-width: 1200px; margin: 0 auto; padding: 26px 20px 60px; }
footer { max-width: 1320px; margin: 0 auto; padding: 18px 20px 30px; color: var(--grey); font-size: 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); }

.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pagehead h1 { margin: 2px 0 0; }
.pagehead .rule { width: 46px; height: 4px; background: var(--swirl); border-radius: 2px; margin-top: 10px; }

/* ------------------------------------------------------------------ building blocks */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px; }
.card > h2:first-child, .card > .cardhead:first-child { margin-top: 0; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cardhead h2 { margin: 0; }
.cardhead .total { font-size: 20px; font-weight: 600; color: var(--green-dark); }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }  /* wide tables scroll inside their card */
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--green); background: var(--green); color: var(--white); font: 500 14px/1 "Poppins", sans-serif; padding: 11px 18px; border-radius: 9px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn.ghost { background: var(--white); color: var(--green-dark); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--green); background: var(--green-tint); }
.btn.warn { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.warn:hover { background: #e48c12; }
.btn.danger { background: var(--white); color: var(--red); border-color: #F2C5B5; }
.btn.danger:hover { background: var(--red-tint); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.link { background: none; border: none; color: var(--green-dark); padding: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.grey { background: var(--light); color: #4B5563; }
.chip.orange { background: var(--orange-tint); color: #9A5B00; }
.chip.green { background: var(--green-tint); color: var(--green-dark); }
.chip.blue { background: var(--blue-tint); color: var(--blue); }
.chip.red { background: var(--red-tint); color: var(--red); }
.chip.action { background: var(--orange); color: var(--ink); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--light); font-size: 12px; color: #4B5563; margin-right: 4px; }

.notice { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; border-left: 4px solid var(--green); background: var(--green-tint); color: var(--green-dark); }
.notice.warn { border-color: var(--orange); background: var(--orange-tint); color: var(--ink); }
.notice.err { border-color: var(--red); background: var(--red-tint); color: var(--ink); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.flags { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.flags li { padding: 9px 12px 9px 14px; border-radius: 8px; font-size: 13.5px; border-left: 3px solid var(--green); background: var(--green-tint); }
.flags li.warn { border-color: var(--orange); background: var(--orange-tint); }
.flags li.alert { border-color: var(--red); background: var(--red-tint); font-weight: 500; }
.alertbox { padding: 10px 12px; margin-bottom: 14px; border-radius: 8px; border: 1px solid #F2C5B5; background: var(--red-tint); }
.alertbox input { accent-color: var(--red); }

/* stat tiles (design system type 5) */
.tile { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow); }
.tile .n { font-size: 30px; font-weight: 600; color: var(--green); line-height: 1.1; }
.tile.o { border-top-color: var(--orange); }
.tile.o .n { color: #C77700; }
.tile .l { font-size: 13px; color: var(--ink); margin-top: 4px; }
.tile .s { font-size: 12px; color: var(--grey); }

/* tables */
.tablewrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; }
th { background: var(--green); color: var(--white); text-align: left; font-weight: 500; padding: 10px 12px; white-space: nowrap; font-size: 13px; }
td { padding: 11px 12px; border-top: 1px solid var(--light); vertical-align: top; }
tr:nth-child(even) td { background: #FCFCFA; }
tr.click:hover td { background: var(--green-tint); cursor: pointer; }
td.num, th.num { text-align: right; }
.empty { text-align: center; color: var(--grey); padding: 34px 10px; }

/* definition lists */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--grey); }
.kv dd { margin: 0; white-space: pre-wrap; word-break: break-word; }

/* progress line (design system type 8 timeline) */
.progress { display: flex; margin: 6px 0 4px; list-style: none; padding: 0; }
.progress li { flex: 1; position: relative; text-align: center; font-size: 12px; color: var(--grey); padding-top: 26px; }
.progress li::before { content: ""; position: absolute; top: 6px; left: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid #CFCFC8; z-index: 1; }
.progress li::after { content: ""; position: absolute; top: 13px; left: calc(-50% + 8px); width: calc(100% - 16px); height: 2px; background: #DADAD3; }
.progress li:first-child::after { display: none; }
.progress li.done { color: var(--green-dark); }
.progress li.done::before { background: var(--green); border-color: var(--green); }
.progress li.done::after, .progress li.now::after { background: var(--green); }
.progress li.now { color: var(--ink); font-weight: 600; }
.progress li.now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); }

/* itinerary */
.legs { list-style: none; margin: 0; padding: 0; }
.legs li { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; padding: 12px 0; border-top: 1px solid var(--light); align-items: center; }
.legs li:first-child { border-top: none; }
.legs .date { font-weight: 600; font-size: 13px; color: var(--green-dark); }
.legs .route { font-weight: 600; font-size: 15.5px; }
.legs .route .arrow { color: var(--orange); margin: 0 6px; }

/* options */
.option { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; background: var(--white); }
.option.sel { border-color: var(--green); background: var(--green-tint); }
.option.draft { border-style: dashed; background: #FCFCFA; }
.option .fare { font-weight: 600; color: var(--green-dark); white-space: nowrap; }
.option pre { margin: 4px 0 0; white-space: pre-wrap; font: inherit; font-size: 13.5px; color: #374151; }
.option input[type=radio] { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); }

/* documents */
.docs { display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.doc:hover { border-color: var(--green); background: var(--green-tint); color: var(--ink); }
.doc .ic { width: 36px; height: 36px; border-radius: 8px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex: none; }
.doc .meta { font-size: 12px; color: var(--grey); }

/* contact card */
.contact { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }

/* thread */
.thread { display: grid; gap: 12px; margin-bottom: 14px; }
.msg { background: var(--light); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.msg.me { background: var(--green-tint); }
.msg .h { font-size: 12px; color: var(--grey); margin-bottom: 2px; }
.msg p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.log { list-style: none; padding: 0; margin: 0; font-size: 12.5px; color: var(--grey); max-height: 280px; overflow: auto; }
.log li { padding: 5px 0; border-top: 1px dashed var(--line); }
.log li b { color: var(--ink); font-weight: 500; }

/* forms */
label { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 5px; }
label .hint { font-weight: 400; color: var(--grey); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #D6D6CF; border-radius: 8px; font: inherit; font-size: 14px; background: var(--white); color: var(--ink);
}
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 172, 99, .15); }
.field { margin-bottom: 14px; }
.row { display: grid; gap: 12px; }
.r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.seg { display: inline-flex; border: 1px solid #D6D6CF; border-radius: 9px; overflow: hidden; }
.seg label { margin: 0; padding: 9px 16px; cursor: pointer; font-weight: 500; font-size: 13.5px; border-left: 1px solid #D6D6CF; }
.seg label:first-child { border-left: none; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--green); color: var(--white); }
.seg label:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--green-dark); }
.repeat { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: #FCFCFA; position: relative; }
.repeat .num { position: absolute; top: -10px; left: 12px; background: var(--green); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 9px; font-weight: 600; }
.returnrow .num { background: var(--orange); color: var(--ink); }
.ret-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 10px; align-items: end; }
.ret-grid input, .ret-grid select { min-width: 0; width: 100%; }
/* journey: From and To get a full row (city names are long), then date, time and mode */
.leg-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.leg-grid > :nth-child(1) { grid-column: 1 / 4; }
.leg-grid > :nth-child(2) { grid-column: 4 / 7; }
.leg-grid > :nth-child(6) { grid-column: 7; grid-row: 1; }
.leg-grid > :nth-child(3) { grid-column: 1 / 3; }
.leg-grid > :nth-child(4) { grid-column: 3 / 5; }
.leg-grid > :nth-child(5) { grid-column: 5 / 7; }
.stay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.stay-grid > :nth-child(1) { grid-column: 1 / 4; }
.stay-grid > :nth-child(5) { grid-column: 4; grid-row: 1; }
.leg-grid input, .leg-grid select, .stay-grid input { min-width: 0; width: 100%; }
.remove { background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 40px; cursor: pointer; color: var(--grey); font-size: 18px; }
.remove:hover { color: var(--red); border-color: #F2C5B5; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.section-title .n { width: 26px; height: 26px; border-radius: 50%; background: var(--green-tint); color: var(--green-dark); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.section-title h2 { margin: 0; }
.hidden { display: none !important; }
.install .ios-only, .install.ios .not-ios { display: none; }
.install.ios .ios-only { display: block; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(250, 250, 248, .96); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.inline-form { display: inline; }
.linkbtn { background: none; border: 0; padding: 0 0 0 6px; color: var(--red); font: inherit; font-size: 12.5px; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.checklist .mark { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: var(--light); color: var(--grey); }
.checklist li.ok .mark { background: var(--green-tint); color: var(--green-dark); }
.checklist li.need .mark { background: var(--red-tint); color: var(--red); }
.checklist .req { color: var(--red); font-weight: 600; }
.checklist .file { margin-top: 3px; overflow-wrap: anywhere; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-width: 180px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 13.5px; }
.tabs a.on { background: var(--green); border-color: var(--green); color: var(--white); }
.bar { height: 8px; background: var(--light); border-radius: 4px; overflow: hidden; min-width: 80px; }
.bar span { display: block; height: 100%; background: var(--green); }
.pw { font-family: Consolas, "Courier New", monospace; font-size: 15px; background: var(--orange-tint); padding: 3px 8px; border-radius: 6px; user-select: all; }
.policy ol { padding-left: 20px; }
.policy li { margin-bottom: 10px; }
.policy li b { color: var(--green-dark); }

/* ------------------------------------------------------------------ sign-in */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 7vw, 96px); background: var(--white); }
.auth-form img.logo { height: 44px; width: auto; align-self: flex-start; margin-bottom: 40px; }
.auth-form h1 { font-size: 30px; margin-bottom: 4px; }
.auth-form h1 span { color: var(--green); }
.auth-form form { max-width: 400px; margin-top: 26px; }
.auth-form .btn { width: 100%; padding: 13px; font-size: 15px; }
.auth-side { background: var(--green-tint); position: relative; display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 88px); overflow: hidden; }
.auth-side h2 { font-size: 32px; font-weight: 700; color: var(--ink); max-width: 480px; line-height: 1.25; }
.auth-side h2 em { font-style: normal; color: var(--green); }
.auth-side ol { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; max-width: 480px; counter-reset: s; }
.auth-side ol li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 14.5px; }
.auth-side ol li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--green-dark); border: 2px solid var(--green); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.auth-side ol li b { display: block; }
.auth-side .base { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 10px; }
.auth-side .base span:first-child { flex: 7; background: var(--green); }
.auth-side .base span:last-child { flex: 3; background: var(--orange); }
.auth-side .tagline { margin-top: 34px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .shell > main { padding: 20px 20px 60px; }
  .side { position: static; max-height: none; display: flex; gap: 4px; overflow-x: auto; padding: 8px 14px; background: var(--white); border-bottom: 1px solid var(--line); }
  .side .grp { display: contents; }
  .side .gl, .side .help { display: none; }
  .side a { white-space: nowrap; padding: 7px 10px; font-size: 13.5px; }
  .ret-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ret-grid > :last-child { grid-column: 1 / -1; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: 1fr; }
  .leg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leg-grid > :nth-child(n) { grid-column: auto; grid-row: auto; }
  .leg-grid > :nth-child(1), .leg-grid > :nth-child(2) { grid-column: 1 / -1; }
  .stay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stay-grid > :nth-child(n) { grid-column: auto; grid-row: auto; }
  .stay-grid > :nth-child(1), .stay-grid > :nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding-bottom: 56px; }
  .auth-side h2 { font-size: 24px; }
}
@media (max-width: 640px) {
  main, .shell > main { padding: 18px 16px 50px; }
  .topbar-in { padding: 10px 16px; }
  .g2, .r2, .r3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; gap: 0 0; }
  .kv dt { margin-top: 8px; }
  .who { display: none; }
  .brand .word small { display: none; }
  .brand { gap: 8px; }
  .brand img { height: 24px; }
  .brand .word { font-size: 17px; }
  .me { gap: 6px; }
  .legs li { grid-template-columns: 1fr; gap: 2px; }
  .progress li { font-size: 0; }
  .progress li.now { font-size: 11px; }
  .option { grid-template-columns: auto 1fr; }
  .option > :last-child { grid-column: 2; }
  .card { padding: 16px; }
  h1 { font-size: 22px; }
}
@media print {
  .topbar, footer, .actions, form, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* utilities (no inline styles: the CSP blocks them) */
.small { font-size: 13px; }
.mt { margin-top: 16px; }
.mb0 { margin-bottom: 0; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.w-auto { width: auto; }
progress.bar { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: none; border-radius: 4px; background: var(--light); overflow: hidden; }
progress.bar::-webkit-progress-bar { background: var(--light); border-radius: 4px; }
progress.bar::-webkit-progress-value { background: var(--green); border-radius: 4px; }
progress.bar::-moz-progress-bar { background: var(--green); border-radius: 4px; }
aside .kv { grid-template-columns: 92px 1fr; }
.kv dd a, .kv dd { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ request page: who does what next */
.card.slim { padding: 12px 22px; }
.card.focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint), var(--shadow); }
.nextstep { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); margin-bottom: 18px; font-size: 14px; }
.nextstep .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--light); color: var(--grey); font-weight: 700; }
.nextstep.mine { border-color: var(--orange); background: var(--orange-tint); }
.nextstep.mine .ic { background: var(--orange); color: var(--ink); }
.line { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 12px; min-width: 0; }
fieldset.line > legend { padding: 0; float: left; width: 100%; }
fieldset.line > legend + * { clear: both; }
.linehead { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; margin-bottom: 10px; }
.linehead small { flex-basis: 100%; }
.tag.travel { background: var(--blue-tint); color: var(--blue); }
.tag.hotel { background: var(--green-tint); color: var(--green-dark); }
.tag.car, .tag.warn { background: var(--orange-tint); color: #9A5B00; }
.tag.action { background: var(--orange); color: var(--ink); }
.optrow { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.addopt > summary { margin-top: 4px; }
.sharebar { border-top: 1px solid var(--light); padding-top: 14px; margin-top: 4px; }
.chosen { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--light); }
.chosen .fare, .option .fare { font-weight: 600; color: var(--green-dark); white-space: nowrap; }
.booksteps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 0 14px; }
.booksteps > li { counter-increment: step; position: relative; padding: 2px 0 22px 30px; border-left: 2px solid var(--line); }
.booksteps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.booksteps > li::before { content: counter(step); position: absolute; left: -15px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.booksteps > li.ok::before { content: "\2713"; background: var(--green); border-color: var(--green); color: var(--white); }
.booksteps h3 { margin: 3px 0 10px; }
.costrow { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; align-items: center; margin-bottom: 8px; }
.costrow.extra { grid-template-columns: 190px minmax(0, 1fr) 150px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
details.fold > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
details.fold > summary h2 { margin: 0; }
details.fold > summary::after { content: "Show"; margin-left: auto; font-size: 12.5px; color: var(--green-dark); }
details.fold[open] > summary { margin-bottom: 14px; }
details.fold[open] > summary::after { content: "Hide"; }
details.more > summary { font-weight: 500; color: var(--green-dark); font-size: 14px; }
.mb { margin-bottom: 12px; }
.todolist { list-style: none; padding: 0; margin: 0; }
.todolist li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--light); align-items: baseline; }
.todolist li:first-child { border-top: none; }
.todolist li .small { grid-column: 2; }
.todolist li .tag { text-align: center; }
.todolist li.none { display: block; color: var(--grey); }
.queue.empty { box-shadow: none; }
.queue h2 .count { margin-left: 6px; vertical-align: 2px; }
@media (max-width: 640px) {  /* after the rules above, so these win on phones */
  .costrow, .costrow.extra, .optrow { grid-template-columns: minmax(0, 1fr); }
  .todolist li { grid-template-columns: minmax(0, 1fr); }
  .todolist li .small { grid-column: 1; }
  .booksteps { margin-left: 12px; }
  .booksteps > li { padding-left: 24px; }
  .chosen { grid-template-columns: minmax(0, 1fr) auto; }
  .chosen > .tag { grid-column: 1 / -1; justify-self: start; }
}
