:root {
  --ink: #20211f;
  --muted: #626861;
  --line: #d8dbd4;
  --canvas: #f5f4ef;
  --card: #fffefa;
  --green: #1d5d4b;
  --green-soft: #e1efe8;
  --coral: #e98468;
  --yellow: #f1c777;
  --blue: #8cb9cc;
  --purple: #ad9bc9;
  --shadow: 0 18px 50px rgba(44, 42, 31, .08);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 1100px; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 238px; min-height: 100vh; padding: 30px 18px 22px; background: #eeeee8; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.app-shell.sidebar-collapsed .sidebar { display: none; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 12px 44px; font-size: 20px; font-weight: 800; letter-spacing: -.05em; }
.topbar-brand { padding: 0; }
.page-context { display: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px 10px 10px 3px; color: #fff; background: var(--green); font-size: 15px; letter-spacing: 0; }
.sidebar-label { padding: 0 12px 12px; color: #737a73; font: 500 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.category-label { margin-top: 28px; }
.nav-list { display: grid; gap: 4px; }
.nav-item, .settings-link { width: 100%; display: flex; gap: 12px; align-items: center; padding: 11px 12px; border: 0; border-radius: 9px; color: #555c55; background: transparent; text-align: left; font-size: 13px; }
.nav-item:hover, .settings-link:hover { color: var(--ink); background: rgba(255,255,255,.55); }
.nav-item.active { color: var(--green); background: #fffefa; box-shadow: 0 3px 10px rgba(80, 72, 49, .05); font-weight: 700; }
.nav-icon { width: 16px; color: currentColor; text-align: center; font-size: 16px; }
.category-dot { width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: var(--muted); }
.flight-dot { background: var(--coral); } .hotel-dot { background: var(--yellow); } .car-dot { background: var(--blue); } .bus-dot { background: var(--purple); } .train-dot { background: var(--green); }
.nav-count { margin-left: auto; color: #707770; font: 11px "DM Mono", monospace; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 16px; }
.settings-link { width: auto; padding-left: 12px; }
.profile-chip { display: flex; gap: 9px; align-items: center; padding: 12px 10px 2px; border-top: 1px solid #dfdfd8; }
.profile-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--green); background: #d3e4db; font-size: 10px; font-weight: 800; }
.profile-chip strong, .profile-chip small { display: block; } .profile-chip strong { font-size: 11px; } .profile-chip small { margin-top: 2px; color: #9b9d97; font-size: 9px; }
.status-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #5bae72; }

.main-area { flex: 1; min-width: 0; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; padding: 39px 52px 28px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.topbar-title { display: flex; gap: 14px; align-items: center; }
.eyebrow { margin: 0 0 8px; color: #747b74; font: 500 10px "DM Mono", monospace; letter-spacing: .14em; }
h1 { margin: 0; font-size: 33px; letter-spacing: -.06em; line-height: 1; }
.topbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; align-items: center; }
.search-box { display: flex; flex: 1 1 245px; gap: 9px; align-items: center; width: 245px; min-width: 180px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.5); color: #687068; }
.search-box span { font-size: 22px; line-height: 15px; transform: rotate(-18deg); }
.search-box input { width: 100%; outline: none; border: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #7d847c; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; color: #5f665f; background: #fffefa; }
.primary-button { display: flex; gap: 7px; align-items: center; padding: 11px 15px; border: 0; border-radius: 8px; color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(29,93,75,.18); font-size: 11px; font-weight: 700; white-space: nowrap; }
.primary-button:hover { background: #164b3c; transform: translateY(-1px); }
.topbar-secondary { height: 36px; white-space: nowrap; }
.topbar-actions .btn-glyph { display: none; font-size: 18px; }

main { padding: 36px 52px 60px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(470px, .82fr) minmax(500px, 1.18fr); gap: 25px; align-items: start; }
.welcome-card { position: relative; min-height: 180px; padding: 26px 29px; overflow: hidden; border-radius: 14px; color: #fff; background: var(--green); box-shadow: var(--shadow); }
.welcome-card::after { content: ""; position: absolute; right: -32px; bottom: -60px; width: 225px; height: 225px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.05), 0 0 0 70px rgba(255,255,255,.035); }
.welcome-card .eyebrow { color: #a9cbbc; } .welcome-card h2 { max-width: 360px; margin: 5px 0 9px; font-size: 27px; letter-spacing: -.06em; line-height: 1.05; }
.welcome-card p { max-width: 365px; margin: 0; color: #b6d1c5; font-size: 12px; line-height: 1.65; }
.welcome-card .plane-mark { position: absolute; right: 70px; top: 30px; color: rgba(255,255,255,.75); font-size: 32px; transform: rotate(35deg); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 13px; }
.stat-card { padding: 15px 15px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.stat-card .stat-label { color: #9b9c96; font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.stat-card .stat-value { margin-top: 8px; font-size: 23px; letter-spacing: -.06em; }
.stat-card .stat-note { margin-top: 2px; color: #969791; font-size: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 29px 0 13px; }
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.04em; }
.section-heading span { color: #a1a19b; font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .07em; }
.trip-list { display: grid; gap: 9px; max-height: calc(100vh - 390px); min-height: 325px; overflow: auto; padding: 3px 4px 4px 2px; }
.trip-section .trip-list { min-height: 0; }
.trip-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.trip-filter-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: #555c55; background: var(--card); font-size: 13px; }
.trip-filter-button:hover, .trip-filter-button.active { border-color: #b7cfc2; color: var(--green); background: #f3faf5; }
.trip-filter-icon { width: 16px; color: currentColor; text-align: center; }
.trip-filter-button .category-dot { flex: 0 0 auto; }
.trip-filter-button .trip-filter-glyph { display: none; font-size: 19px; }
.trip-filter-count { color: #687168; font: 11px "DM Mono", monospace; }
@media (max-width: 640px) {
  .trip-filter-bar { gap: 6px; }
  .trip-filter-button { gap: 6px; padding: 8px 11px; }
  .trip-filter-button .trip-filter-glyph { display: inline-flex; }
  .trip-filter-button .category-dot, .trip-filter-button .trip-filter-label { display: none; }
  .topbar-actions .btn-glyph { display: inline-flex; }
  .topbar-actions .btn-label { display: none; }
  #new-trip-button, #import-button { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .trip-filter-bar .traveler-filter { margin-left: 0; }
  .detail-head-actions .detail-action .btn-glyph { display: inline-flex; }
  .detail-action .btn-label { display: none; }
  .detail-action { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; }
}
.trip-sections { display: grid; gap: 24px; }
.trip-section { display: grid; gap: 11px; }
.trip-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.trip-section-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; letter-spacing: -.03em; }
.trip-section-head .eyebrow { margin-bottom: 5px; }
.trip-section-head-actions { display: flex; align-items: center; gap: 10px; }
.trip-section-count { display: inline-grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; color: #626a62; background: var(--card); font: 10px "DM Mono", monospace; }
.trip-section-toggle { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--green); background: var(--card); font-size: 10px; }
.trip-section-toggle:hover { border-color: #b2cdbf; background: #f3faf5; }
.trip-list[hidden] { display: none; }
.trip-card { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px 14px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; transition: .18s ease; }
.trip-card > div:nth-child(2) { min-width: 0; }
.trip-card:hover, .trip-card.selected { border-color: #b7cfc2; box-shadow: 0 9px 20px rgba(62,72,57,.06); transform: translateY(-1px); }
.trip-card.selected { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green), 0 6px 16px rgba(62,72,57,.10); }
.trip-card.drag-over { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green), 0 8px 20px rgba(62,72,57,.16); transform: none; }
.trip-stripe { width: 7px; height: 43px; border-radius: 5px; background: var(--green); }
.trip-stripe.coral { background: var(--coral); } .trip-stripe.yellow { background: var(--yellow); } .trip-stripe.blue { background: var(--blue); } .trip-stripe.purple { background: var(--purple); }
.trip-card h3 { margin: 0; font-size: 13px; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.trip-meta { display: flex; gap: 12px; margin-top: 5px; color: #6f776f; font-size: 10px; }
.trip-date { min-width: max-content; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.2; text-align: right; white-space: nowrap; }
.trip-kind-row { display: flex; gap: 4px; margin-top: 6px; align-items: center; flex-wrap: wrap; }
.traveler-badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px; border-radius: 999px; flex-shrink: 0; }
.traveler-badge .material-symbols-outlined { font-size: 13px; }
.traveler-badge.others { color: #7a7f79; background: #ececea; }
.traveler-filter { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.traveler-filter-button { padding: 8px 12px; border: 0; border-left: 1px solid var(--line); color: #555c55; background: transparent; font-size: 13px; cursor: pointer; }
.traveler-filter-button:first-child { border-left: 0; }
.traveler-filter-button:hover, .traveler-filter-button.active { color: var(--green); background: #f3faf5; }
.timeline-passengers { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #4d504a; font-size: 11px; }
.timeline-passengers .material-symbols-outlined { font-size: 15px; color: var(--coral); }
.kind-pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; color: #6e706b; background: #f0f0ea; font: 10px "DM Mono", monospace; font-weight: 500; }
.kind-pill .material-symbols-outlined { font-size: 13px; line-height: 1; }
.kind-pill-count { font-size: 10px; line-height: 1; font-weight: 500; }
.kind-pill.flight { color: #9e5947; background: #fae5de; } .kind-pill.hotel { color: #936c22; background: #faedca; } .kind-pill.car { color: #397083; background: #deedf1; } .kind-pill.train { color: #28614f; background: #dcebe4; } .kind-pill.bus { color: #6d598f; background: #ece5f5; }

.detail-panel { min-height: 535px; padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); scroll-margin-top: 18px; }
.mobile-trip-detail { display: none; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.detail-head h2 { margin: 0; max-width: 400px; font-size: 23px; letter-spacing: -.06em; line-height: 1.1; }
.detail-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 8px; }
.detail-subtitle { color: #646b64; font-size: 12px; }
.detail-status { height: fit-content; padding: 6px 9px; border-radius: 99px; color: #3e755e; background: var(--green-soft); font: 10px "DM Mono", monospace; white-space: nowrap; }
.detail-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; align-items: center; }
.conflict-banner { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border: 1px solid #e7c9a0; border-radius: 10px; background: #fdf5ea; color: #8a5a1a; }
.conflict-banner .material-symbols-outlined { font-size: 20px; color: #c67c1e; }
.conflict-banner strong { display: block; font-size: 13px; margin-bottom: 3px; }
.conflict-banner ul { margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.5; }
.timeline { position: relative; margin-top: 19px; }
.timeline::before { content: ""; position: absolute; top: 17px; bottom: 15px; left: 16px; width: 1px; background: #cfd4cd; }
.timeline-day { margin: 20px 0 11px 47px; color: var(--ink); font: 700 13px "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.timeline-day:first-child { margin-top: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding-bottom: 15px; }
.timeline-node { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border: 5px solid var(--card); border-radius: 50%; color: var(--green); background: var(--card); box-shadow: 0 0 0 1.5px currentColor; font-size: 16px; }
.timeline-node.flight { color: var(--coral); } .timeline-node.hotel { color: #d79a2b; } .timeline-node.car { color: #6e9eab; } .timeline-node.train { color: var(--green); } .timeline-node.bus { color: #8c72b0; }
.material-symbols-outlined { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: "liga"; -webkit-font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }
.timeline-node .material-symbols-outlined { font-size: 19px; }
.composite-plan-head h3 .material-symbols-outlined { font-size: 18px; vertical-align: -3px; color: var(--green); }
.timeline-card { padding: 10px 12px; border: 1px solid #d9ddd7; border-radius: 9px; background: #fff; }
.flight-card { padding: 14px 18px; }
.flight-strip { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.flight-strip .fs-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.flight-strip .fs-from { align-items: flex-start; text-align: left; }
.flight-strip .fs-to { align-items: flex-end; text-align: right; }
.flight-strip .fs-mid { align-items: center; gap: 5px; }
.flight-strip .fs-city { max-width: 100%; color: #969a92; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flight-strip .fs-code { color: var(--ink); font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.flight-strip .fs-time { color: #6a706a; font: 11px "DM Mono", monospace; white-space: nowrap; }
.flight-strip .fs-plus { margin-left: 3px; color: #c06a44; font-weight: 700; }
.flight-strip .fs-time-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 0; min-width: 0; }
.flight-strip .fs-time-row-end { justify-content: flex-end; }
.flight-strip .fs-meta { color: #8a8f86; font: 500 10px "DM Mono", monospace; letter-spacing: .01em; white-space: nowrap; text-transform: uppercase; }
.flight-strip .fs-meta-sep { margin: 0 5px; color: #c4c8bf; }
.flight-strip .fs-number { color: var(--ink); font: 700 15px "Manrope", sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.flight-strip .fs-line { width: 90px; max-width: 18vw; height: 2px; border-radius: 2px; background: #dfe3dc; margin: 2px 0; }
.flight-strip .fs-dur { color: #969a92; font-size: 11px; }
.fs-footer { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 11px; padding-top: 10px; border-top: 1px solid #eceee9; color: #5f675f; font-size: 11px; }
.fs-footer .fs-foot-label { color: #a3a89f; font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.fs-footer .fs-pnr strong { color: var(--ink); font: 700 14px "DM Mono", monospace; letter-spacing: .02em; }
.fs-footer .fs-foot-pax { display: inline-flex; align-items: center; gap: 5px; }
.fs-footer .fs-foot-pax .material-symbols-outlined { font-size: 14px; color: var(--coral); }
.timeline-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.timeline-top-actions { display: flex; align-items: flex-start; gap: 13px; }
.timeline-datetime { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.timeline-datetime .stay-line { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.timeline-datetime .stay-line + .stay-line { margin-top: 7px; }
.stay-label { color: #8a938a; font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.timeline-date { color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.2; }
.timeline-title-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.timeline-card h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; }
.timeline-card .timeline-time { color: #5f675f; font: 11px "DM Mono", monospace; white-space: nowrap; }
.timeline-route { margin-top: 5px; color: #4d504a; font-size: 11px; }
.timeline-extra { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; color: #707870; font-size: 10px; }
.timeline-extra span { padding-right: 7px; border-right: 1px solid #cfd4cd; } .timeline-extra span:last-child { border: 0; }
.timeline-confirmation { color: var(--ink); font-size: 12px; font-weight: 400; line-height: 1.2; white-space: nowrap; }
.timeline-confirmation-value { font-weight: 700; }
.lookup-note { margin-top: 10px; padding: 8px 9px; border-radius: 6px; color: #5e665e; background: #eef1ea; font-size: 10px; line-height: 1.45; }
.lookup-note.error { color: #934d3c; background: #fff0eb; }
.lookup-note.success { color: #347259; background: #eaf5ed; }
.timeline-actions { display: flex; gap: 7px; margin-top: 11px; }
.text-button { padding: 5px 7px; border: 1px solid #cfd5ce; border-radius: 5px; color: var(--green); background: #fffefa; font-size: 10px; }
.text-button:hover { border-color: #b2cdbf; background: #f3faf5; }
.detail-action .btn-glyph { display: none; font-size: 17px; }

.page-intro { display: flex; justify-content: space-between; align-items: end; margin: 0 0 23px; }
.page-intro h2 { margin: 0; font-size: 24px; letter-spacing: -.06em; }
.page-intro p { margin: 7px 0 0; color: #656c65; font-size: 12px; }
.filter-note { color: var(--green); font: 10px "DM Mono", monospace; }
.full-width-list { display: grid; grid-template-columns: repeat(2, minmax(350px, 1fr)); gap: 10px; }
.empty-state { display: grid; place-items: center; min-height: 300px; padding: 40px; border: 1px dashed #bfc5bd; border-radius: 14px; text-align: center; color: #666e66; }
.empty-state .empty-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 13px; border-radius: 14px; color: var(--green); background: var(--green-soft); font-size: 22px; }
.empty-state h3 { margin: 0 0 7px; color: var(--ink); font-size: 15px; } .empty-state p { max-width: 340px; margin: 0; font-size: 11px; line-height: 1.6; }
.settings-panel { max-width: 730px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.settings-panel h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.06em; } .settings-panel > p { margin: 0 0 22px; color: #7e8079; font-size: 12px; line-height: 1.6; }
.setting-row { display: flex; justify-content: space-between; gap: 24px; padding: 17px 0; border-top: 1px solid var(--line); } .setting-row strong { display: block; font-size: 12px; } .setting-row small { display: block; max-width: 450px; margin-top: 5px; color: #92938c; font-size: 10px; line-height: 1.5; }
.setting-badge { height: fit-content; padding: 6px 8px; border-radius: 999px; color: #37745f; background: var(--green-soft); font: 9px "DM Mono", monospace; white-space: nowrap; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 25px; background: rgba(31,35,29,.38); backdrop-filter: blur(4px); }
.modal { width: min(680px, 100%); max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; padding: 20px 24px; border-radius: 15px; background: #fffefa; box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.modal .edit-grid { overflow-y: auto; padding-right: 4px; margin-bottom: 8px; }
.modal .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 4px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; flex-shrink: 0; } .modal-head h2 { margin: 0; font-size: 19px; letter-spacing: -.04em; } .modal-head p { margin: 3px 0 0; color: #8c8e87; font-size: 11px; }
.modal-head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sticky-modal-bar { position: sticky; top: 0; z-index: 25; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 14px; background: var(--canvas); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.close-button { width: 29px; height: 29px; border: 0; border-radius: 50%; color: #777971; background: #f0f0e9; flex-shrink: 0; }
.modal-tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 3px; border-radius: 8px; background: #f0f0ea; flex-shrink: 0; } .modal-tab { flex: 1; padding: 7px; border: 0; border-radius: 6px; color: #85877f; background: transparent; font-size: 11px; } .modal-tab.active { color: var(--ink); background: #fffefa; box-shadow: 0 2px 5px rgba(0,0,0,.05); font-weight: 700; }
.form-label { display: block; margin: 0 0 4px; color: #777a72; font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; } .field, .email-input, .select-field { width: 100%; border: 1px solid #dbdbd3; border-radius: 7px; outline: none; background: #fff; } .field, .select-field { padding: 7px 10px; font-size: 12px; } .email-input { min-height: 140px; padding: 10px; resize: vertical; font: 11px/1.5 "DM Mono", monospace; } .field:focus, .email-input:focus, .select-field:focus { border-color: #83a895; box-shadow: 0 0 0 3px #e9f3ed; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-shrink: 0; } .secondary-button { padding: 8px 12px; border: 1px solid #dcdcd5; border-radius: 7px; color: #6d706a; background: #fffefa; font-size: 11px; white-space: nowrap; } .secondary-button:hover { background: #f4f4ef; }
.danger-button { margin-right: auto; padding: 8px 12px; border: 1px solid #e2c3c3; border-radius: 7px; color: #b0453a; background: #fffefa; font-size: 11px; white-space: nowrap; cursor: pointer; }
.danger-button:hover { border-color: #d99b93; background: #fbf1ef; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; flex: 1 1 auto; }
.edit-field.full { grid-column: 1 / -1; }
.plan-flight-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 12px; }
@media (max-width: 620px) { .plan-flight-row { grid-template-columns: 1fr; } }
.edit-notes { min-height: 44px; }
.composite-modal-backdrop { padding: 0; background: var(--canvas); backdrop-filter: none; overflow-y: auto; }
.composite-edit-modal { width: 100%; max-width: none; min-height: 100vh; border-radius: 0; padding: 16px 36px 36px; background: var(--canvas); box-shadow: none; overflow: visible; display: block; }
.composite-header-row { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(130px, 1fr) minmax(130px, 1fr) auto; gap: 12px; align-items: end; background: var(--card); padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
@media (max-width: 800px) { .composite-header-row { grid-template-columns: 1fr 1fr; } }
.composite-plans-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 16px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.composite-plans-head h3 { margin: 4px 0 0; font-size: 14px; }
.composite-plan-list { display: grid; gap: 10px; }
.composite-plan { padding: 10px 14px; border: 1px solid #dfe5df; border-radius: 10px; background: #fbfdfb; }
.composite-plan.focused { border-color: #83a895; box-shadow: 0 0 0 3px #e9f3ed; }
.composite-plan-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 8px; }
.composite-plan-actions { display: flex; align-items: center; gap: 10px; }
.composite-plan-head h3 { margin: 3px 0 0; color: var(--ink); font-size: 13px; }
.composite-plan-id { color: #7b827b; font: 10px "DM Mono", monospace; }
.composite-category-tabs { margin: 0 0 10px; }
.composite-category-tab { cursor: pointer; }
.composite-category-count { color: #8d918a; font: 10px "DM Mono", monospace; }
.composite-category-toolbar { display: flex; align-items: start; gap: 10px; }
.composite-category-toolbar .composite-category-tabs { flex: 1; }
.composite-add-booking { white-space: nowrap; }
.composite-plan-lookup { padding-top: 2px; }
.composite-city-label { margin-top: 12px; }
.autocomplete-field { position: relative; }
.hotel-autocomplete-menu { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 250px; overflow-y: auto; padding: 4px; border: 1px solid #cbd8cf; border-radius: 8px; background: #fffefa; box-shadow: 0 12px 28px rgba(44, 52, 45, .16); }
.hotel-autocomplete-option { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; text-align: left; }
.hotel-autocomplete-option:hover, .hotel-autocomplete-option:focus { background: #f0f8f1; outline: none; }
.hotel-autocomplete-option strong, .hotel-autocomplete-option span { display: block; }
.hotel-autocomplete-option strong { font-size: 11px; }
.hotel-autocomplete-option span { margin-top: 3px; color: #7d827b; font-size: 10px; line-height: 1.35; }
.booking-category-tabs { margin-bottom: 20px; }
.booking-category-tab { cursor: pointer; }
.booking-lookup-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.booking-lookup-actions .lookup-note { flex: 1 1 180px; margin-top: 0; }
.hotel-results-title { margin-top: 12px; color: #777a72; font: 10px "DM Mono", monospace; }
.hotel-result { display: block; width: 100%; margin-top: 7px; padding: 9px 10px; border: 1px solid #d9e3db; border-radius: 7px; color: var(--ink); background: #f8fcf8; text-align: left; }
.hotel-result:hover { border-color: #96bda5; background: #f0f8f1; }
.hotel-result strong, .hotel-result span { display: block; }
.hotel-result strong { font-size: 11px; }
.hotel-result span { margin-top: 3px; color: #7d827b; font-size: 10px; line-height: 1.4; }
.upload-status { margin-top: 8px; color: #858981; font-size: 10px; line-height: 1.45; }
.upload-drop { display: grid; place-items: center; min-height: 190px; padding: 26px; border: 1px dashed #bfc9c1; border-radius: 10px; color: #747770; background: #f7fbf7; text-align: center; } .upload-drop strong { display: block; color: var(--green); font-size: 13px; } .upload-drop span { display: block; margin-top: 7px; font-size: 10px; } .upload-drop input { margin-top: 14px; font-size: 10px; }
.extracted-preview { margin-top: 18px; padding: 14px; border: 1px solid #d9e7dc; border-radius: 9px; background: #f4faf5; } .extracted-preview h3 { margin: 0 0 10px; font-size: 12px; } .extracted-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid #dce9df; font-size: 11px; } .extracted-row span { color: #7b827b; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 22px; max-width: 360px; padding: 12px 15px; border-radius: 8px; color: #fff; background: #252c27; box-shadow: 0 12px 35px rgba(0,0,0,.18); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; } .toast.show { opacity: 1; transform: translateY(0); }
.loading { color: #858780; font-size: 11px; }
@media (max-width: 1200px) { body { min-width: 900px; } .sidebar { width: 205px; } .topbar, main { padding-left: 34px; padding-right: 34px; } .dashboard-grid { grid-template-columns: 1fr; } .trip-list { max-height: none; } .dashboard-grid > .detail-panel { display: none; } .mobile-trip-detail { display: block; grid-column: 1 / -1; } .mobile-trip-detail .detail-panel { min-height: 0; } .full-width-list .mobile-trip-detail { grid-column: 1 / -1; } }
@media (max-width: 900px) { body { min-width: 0; } .topbar { align-items: center; padding: 20px 18px 18px; } .topbar-title, .topbar-actions { width: 100%; } .topbar-actions { justify-content: flex-start; } .search-box { flex: 1 1 220px; } main { padding: 24px 18px 40px; } .full-width-list { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr; } .composite-edit-modal { padding: 22px 18px 28px; } }

.checkbox-field { display: flex; align-items: center; padding: 6px 0; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; border-radius: 4px; }

/* Narrow screens: stack form fields into one column so wide date/time inputs
   don't push the modal past the viewport, and let the action bar wrap. */
@media (max-width: 620px) {
  .edit-grid, .plan-flight-row, .composite-header-row { grid-template-columns: 1fr; }
  .composite-edit-modal { padding: 16px 16px 26px; }
  .sticky-modal-bar { flex-wrap: wrap; gap: 10px; }
  .sticky-modal-bar .modal-head-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .field, .email-input, .select-field { min-width: 0; max-width: 100%; }
}


/* Date/time + time-zone pair in edit forms */
.datetime-tz { display: flex; gap: 6px; min-width: 0; }
.datetime-tz input[type="datetime-local"] { flex: 1 1 auto; min-width: 0; }
.datetime-tz .tz-select { flex: 0 0 auto; width: 10rem; min-width: 0; padding-left: 8px; padding-right: 4px; font-size: 0.85em; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .datetime-tz { flex-wrap: wrap; }
  .datetime-tz input[type="datetime-local"], .datetime-tz .tz-select { flex: 1 1 100%; width: 100%; }
}

/* Terminal link in the top bar looks like its neighbouring buttons */
a.secondary-button.topbar-secondary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
