/* Scenario navigation and panels (scenarios.js, dt_menu.js, drive_thru.js, flights.js, retail.js) in the mockup V1 look
   (tokens.css). */

/* ---- left navigation (Sidebar) ---- */
.sc-side { display: flex; flex-direction: column; gap: 4px; }
.sc-h { padding: 8px 10px 4px; margin: 0; font: 500 12px/16px var(--font-body); color: var(--text-helper); }
.sc-list { display: grid; gap: 2px; }
.sc-item { display: flex; align-items: center; gap: 8px; height: 36px; padding: 8px 10px; border-radius: 999px; border: 0; background: transparent;
  font-size: 14px; font-weight: 500; line-height: 20px; color: var(--text-subtitle); text-align: left; cursor: pointer;
  transition: background-color .1s, color .1s; }
.sc-item .sc-ic { display: inline-flex; } .sc-item .sc-ic .ic { width: 16px; height: 16px; margin: 0 2px; }
.sc-item .sc-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-item .sc-blurb { display: none; }
.sc-item:not(:disabled):hover { background: var(--fill-weak); color: var(--text-title); }
.sc-item.on { background: var(--fill); color: var(--text-title); }
.sc-item:disabled { cursor: default; } .sc-item:disabled:not(.on) { opacity: .5; }
.sc-item.off { opacity: .4; } .sc-item.off .sc-title::after { content: " · n/a"; color: var(--text-helper); font-weight: 400; font-size: 12px; }
.sc-item.pending .sc-title::after { content: " · preparing"; color: var(--text-helper); font-weight: 400; font-size: 12px; }
.sc-lat, .sc-fx { display: grid; gap: 6px; padding: 10px 10px 0; }
.sc-lat .sc-h, .sc-fx .sc-h { padding: 0; }
.sc-seg { display: flex; padding: 2px; border-radius: 999px; background: var(--fill); gap: 2px; }
.sc-seg-b { flex: 1; border: 0; background: transparent; height: 26px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 500;
  color: var(--text-desc); cursor: pointer; }
.sc-seg-b.on { background: var(--elevated-medium); color: var(--text-title); box-shadow: var(--shadow-default), 0 0 0 .5px var(--border-light); }
.sc-seg-b:disabled { cursor: default; } .sc-seg-b:disabled:not(.on) { opacity: .55; }
.sc-hint, .sc-note { font-family: var(--font-description); font-size: 11.5px; line-height: 16px; color: var(--text-desc); }
.sc-note { padding: 6px 10px 0; } .sc-note:empty { display: none; }
.sc-fx-l { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; color: var(--text-subtitle); }
.sc-fx-l input { accent-color: var(--text-title); width: 15px; height: 15px; margin: 0; }

/* ---- stage: the scenario's panels ---- */
.sc-stage { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.sc-body { flex: 1; min-height: 0; min-width: 0; display: flex; }
.sc-jobs { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 16px 8px; border-top: .5px solid var(--border-light); flex: none; }
.sc-jobs:empty { display: none; }
.sc-job { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--fill); color: var(--text-subtitle); font-variant-numeric: tabular-nums; }
.sc-job.pending { background: var(--info-bg); color: var(--info-fg); } .sc-job.done { background: var(--success-bg); color: var(--success-fg); }
.sc-job.error { background: var(--danger-bg); color: var(--danger-fg); }

/* generic cards (retail panel, flights) */
.sc-card { border-radius: 16px; background: var(--elevated); border: .5px solid var(--border-light); box-shadow: var(--shadow-default);
  padding: 14px 16px; display: grid; gap: 10px; }
.sc-card > header { display: flex; align-items: center; gap: 8px; color: var(--text-subtitle); }
.sc-card > header h4 { margin: 0; font: 500 14px/20px var(--font-heading); color: var(--text-title); flex: 1; }
.sc-card.empty { background: transparent; box-shadow: none; border: 1px dashed var(--border); }
.sc-card p { margin: 0; font-size: 13px; }
div.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13px; }
div.kv > span { color: var(--text-desc); font-family: var(--font-description); }
div.kv > b { font-weight: 500; color: var(--text-title); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- retail (retail.js) ---- */
.rt { display: grid; gap: 12px; align-content: start; }
.rt-ic { display: inline-flex; color: var(--text-helper); }
.rt-hint { font-size: 13px; padding: 4px 4px; }
.order { border-radius: 12px; padding: 10px 12px; background: var(--fill-weak); display: grid; gap: 4px; transition: background-color .3s, box-shadow .3s; }
.order.focus { background: var(--coral-50); box-shadow: inset 0 0 0 1px var(--coral-200); }
.dark .order.focus { background: #4a201633; box-shadow: inset 0 0 0 1px #903b24; }
.order-h { display: flex; align-items: center; gap: 8px; font-size: 13px; } .order-total { margin-left: auto; font-weight: 500; }
.order-item { font-size: 13px; color: var(--text-subtitle); font-family: var(--font-description); }
.rt-act { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; align-items: center; font-size: 13px; padding: 8px 10px;
  border-radius: 10px; background: var(--fill-weak); }
.rt-act b { font-weight: 500; color: var(--text-title); }
.rt-act.ok { background: var(--success-bg); box-shadow: inset 0 0 0 1px var(--success-border); }
.rt-why { grid-column: 1 / -1; font-size: 12px; }

/* ---- drive-thru: menu (dt_menu.js) | order confirmation board (drive_thru.js) ---- */
.sc-drive_thru .sc-body { gap: 0; }
.dt-menu { flex: 1 1 0; min-width: 260px; display: flex; flex-direction: column; padding: 14px 6px 0 16px; }
.dt-menu-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; flex: none; padding-right: 10px; }
.dt-menu-sub { font-size: 12px; line-height: 16px; }
.dt-dayparts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border-radius: 14px; background: var(--fill);
  margin: 10px 10px 0 0; flex: none; }
.dt-dp { position: relative; display: grid; gap: 0; justify-items: start; text-align: left; border: 0; border-radius: 12px; padding: 6px 10px;
  background: transparent; cursor: pointer; color: var(--text-desc); min-width: 0; }
.dt-dp:hover:not(.on) { color: var(--text-title); }
.dt-dp.on { background: var(--elevated-medium); color: var(--text-title); box-shadow: var(--shadow-default), 0 0 0 .5px var(--border-light); }
.dt-dp-label { font-size: 13px; font-weight: 500; line-height: 18px; }
.dt-dp-hours { font-family: var(--font-description); font-size: 11px; line-height: 15px; color: var(--text-helper); white-space: nowrap; }
.dt-dp-now { display: inline-flex; align-items: center; gap: 5px; height: 18px; margin-top: 3px; padding: 0 7px; border-radius: 999px;
  background: var(--success-bg); color: var(--success-fg); font-size: 11px; font-weight: 500; white-space: nowrap; }
.dt-dp-now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.dt-menu-note { font-family: var(--font-description); font-size: 11.5px; line-height: 16px; color: var(--text-desc); padding: 8px 10px 0 2px;
  flex: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dt-cats { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px 8px 0; flex: none; }
.dt-cat { border: 0; border-radius: 999px; background: var(--fill-weak); font-size: 12px; font-weight: 500; height: 26px; padding: 0 10px;
  white-space: nowrap; color: var(--text-subtitle); cursor: pointer; }
.dt-cat:hover { background: var(--fill); color: var(--text-title); }
.dt-cat.on { background: var(--primary-bg); color: var(--primary-fg); }
.dt-sections { position: relative; overflow: auto; flex: 1; min-height: 0; padding: 0 10px 14px 0; scrollbar-width: thin;
  scrollbar-color: var(--fill-strong) transparent; }
.dt-sec h3 { margin: 6px 0 6px; font: 500 12px/16px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-helper); }
.dt-sec + .dt-sec { margin-top: 8px; }
.dt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 6px; }
.dt-menu.tab-breakfast .dp-regular, .dt-menu.tab-regular .dp-breakfast { display: none; }
.dt-menu.tab-breakfast .dt-sec:not(.has-breakfast), .dt-menu.tab-regular .dt-sec:not(.has-regular),
.dt-menu.tab-breakfast .dt-cat:not(.has-breakfast), .dt-menu.tab-regular .dt-cat:not(.has-regular) { display: none; }
.dt-item { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 10px 6px 6px;
  border-radius: 14px; background: var(--elevated); border: .5px solid var(--border-light); box-shadow: var(--shadow-default); cursor: pointer;
  outline: none; transition: background-color .3s, box-shadow .3s, opacity .2s; }
.dt-item:hover, .dt-item:focus-visible { box-shadow: var(--shadow-default), 0 0 0 1px var(--border); }
.dt-thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #f4eee7; display: grid; place-items: center; }
.dark .dt-thumb { background: #3a3532; }
.dt-ph { display: inline-flex; color: #c9b9ae; } .dt-ph .ic { width: 30px; height: 30px; stroke-width: 1.4; }
.dark .dt-ph { color: #6d625d; }
.dt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.dt-thumb.loaded .dt-img { opacity: 1; } .dt-thumb.loaded .dt-ph { visibility: hidden; } .dt-thumb.missing .dt-img { display: none; }
.dt-item-main { display: grid; gap: 1px; min-width: 0; }
.dt-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dt-name { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-title); }
.dt-price { font-family: var(--font-description); font-size: 13px; color: var(--text-subtitle); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dt-sizes, .dt-meal { font-family: var(--font-description); font-size: 11.5px; line-height: 16px; color: var(--text-desc); font-variant-numeric: tabular-nums; }
.dt-meal { color: var(--coral-700); } .dark .dt-meal { color: #f78e6e; }
.dt-only { justify-self: start; margin-top: 2px; height: 18px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px;
  font-size: 11px; font-weight: 500; background: var(--fill); color: var(--text-desc); }
.dt-item.dt-off { opacity: .5; } .dt-item.dt-off .dt-thumb { filter: grayscale(.85); }
.dt-item.dt-off:hover { opacity: .8; }
.dt-desc { font-size: 11px; color: var(--text-desc); display: none; }
.dt-ing { display: none; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.dt-item:hover .dt-ing, .dt-item.open .dt-ing, .dt-item:focus .dt-ing { display: flex; }
.dt-item:hover .dt-desc, .dt-item.open .dt-desc { display: block; }
.dt-chip { font-size: 10.5px; line-height: 15px; background: var(--fill-weak); border: .5px solid var(--border-light); border-radius: 8px;
  padding: 0 5px; color: var(--text-subtitle); }
.dt-item.in-order { background: var(--coral-50); box-shadow: inset 0 0 0 1.5px var(--coral); opacity: 1; }
.dark .dt-item.in-order { background: #4a201640; }
.dt-badge { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 20px; display: grid; place-items: center; padding: 0 6px;
  border-radius: 10px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 600; box-shadow: 0 1px 3px #0003; }
.dt-badge:empty { display: none; }
.dt-item.dt-new { animation: dt-new 1.4s ease-out; }
@keyframes dt-new { 0%, 25% { box-shadow: inset 0 0 0 1.5px var(--coral), 0 0 0 5px color-mix(in srgb, var(--coral) 30%, transparent); } }
.dt-empty { color: var(--text-desc); padding: 16px 0; font-family: var(--font-description); }

.dt-board-wrap { flex: 1.3 1 0; min-width: 380px; display: flex; padding: 14px 16px 14px 8px; }
.dt-board { --ob-bg: #0e0d0c; --ob-fg: #f6f0ec; --ob-dim: #9f928e; --ob-mod: #ff5a4e; --ob-hi: #ffc72c; --ob-line: #ffffff1a;
  flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--ob-bg); color: var(--ob-fg); border-radius: 20px;
  overflow: hidden; font-family: var(--font-heading); box-shadow: 0 0 0 1px #00000014, inset 0 0 0 6px #1d1d1c, var(--shadow-popover); }
.dark .dt-board { box-shadow: 0 0 0 1px #ffffff14, inset 0 0 0 6px #1d1d1c, var(--shadow-popover); }
.dt-board-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; border-bottom: 1px solid var(--ob-line); flex: none; }
.dt-board-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ob-dim); }
.dt-m { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #da291c; color: var(--ob-hi);
  font: 800 20px/1 var(--font-heading); letter-spacing: 0; }
.dt-board-clock { font-family: var(--font-code); color: var(--ob-dim); font-size: 13px; }
.dt-lines-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dt-lines { position: relative; flex: 1; overflow: auto; padding: 8px 14px; min-height: 0; scrollbar-width: none; }
/* "↑ N more" / "↓ N more": lines of the order cut off by the board's height (drive_thru.js OrderBoard.more) */
.dt-more { position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; display: none; align-items: center; height: 24px;
  padding: 0 12px; border: 0; border-radius: 999px; background: var(--ob-hi); color: #1d1d1c; font: 600 12px/1 var(--font-body);
  box-shadow: 0 2px 10px #000a; cursor: pointer; white-space: nowrap; }
.dt-more.on { display: inline-flex; }
.dt-more-up { top: 6px; } .dt-more-down { bottom: 6px; }
.dt-lines-wrap:has(.dt-more-up.on) .dt-lines { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px); }
.dt-lines-wrap:has(.dt-more-down.on) .dt-lines { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 40px);
  mask-image: linear-gradient(to top, transparent 0, #000 40px); }
.dt-lines-wrap:has(.dt-more-up.on):has(.dt-more-down.on) .dt-lines {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.dt-line { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 10px; padding: 12px 8px; border-radius: 12px;
  overflow: hidden; transition: background-color .6s; }
.dt-line + .dt-line { border-top: 1px solid var(--ob-line); }
.dt-row { display: contents; }
.dt-qty { grid-column: 1; font-size: 24px; line-height: 30px; font-weight: 600; text-align: center; color: var(--ob-hi); font-variant-numeric: tabular-nums; }
.dt-title { grid-column: 2; font-size: 21px; line-height: 30px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; }
.dt-size { display: inline-block; margin-left: 10px; vertical-align: 3px; font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: 6px;
  background: #ffffff14; color: var(--ob-dim); letter-spacing: .06em; font-weight: 500; }
.dt-amt { grid-column: 3; font-size: 21px; line-height: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dt-sub { grid-column: 2 / 4; font-size: 15px; line-height: 22px; color: var(--ob-dim); text-transform: uppercase; letter-spacing: .03em; }
.dt-mod { grid-column: 2 / 4; display: flex; justify-content: space-between; gap: 10px; font-size: 15px; line-height: 22px; font-weight: 700;
  color: var(--ob-hi); text-transform: uppercase; letter-spacing: .04em; }
.dt-mod-no { color: var(--ob-mod); }
.dt-sub + .dt-mod { padding-left: 18px; }
.dt-mod-price { color: var(--ob-dim); font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.dt-missing { color: var(--ob-mod); font-style: italic; }
.dt-line.flash { animation: dt-flash 2.4s ease-out; }
@keyframes dt-flash { 0%, 30% { background: #ffc72c33; } 100% { background: transparent; } }
.dt-line.removed { opacity: .45; animation: dt-gone 2.4s ease-out forwards; }
.dt-line.removed .dt-title, .dt-line.removed .dt-amt { text-decoration: line-through; text-decoration-color: var(--ob-mod); }
@keyframes dt-gone { 0%, 60% { opacity: .6; max-height: 240px; } 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; } }
.dt-board-empty { color: var(--ob-dim); text-align: center; padding: 64px 0; font-size: 16px; }
.dt-tot { padding: 12px 22px 14px; border-top: 1px solid var(--ob-line); display: grid; gap: 2px; flex: none; font-variant-numeric: tabular-nums; }
.dt-tot-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ob-dim); }
.dt-tot-row.dt-total { font-size: 30px; line-height: 38px; font-weight: 700; color: var(--ob-fg); margin-top: 4px; }
.dt-tot-row.dt-total span:last-child { color: var(--ob-hi); }
.dt-total.flash { animation: dt-tflash 1.4s ease-out 1; }
@keyframes dt-tflash { 0% { transform: scale(1.04); } 100% { transform: none; } }
.dt-board-head { padding: 11px 20px; background: #ffffff0d; color: var(--ob-dim); font-size: 13px; text-align: center; letter-spacing: .03em; flex: none; }
.dt-board.confirmed .dt-board-head { background: #00b489; color: #052e24; font-weight: 600; }
.dt-board.confirm-flash { animation: dt-cf 1.6s ease-out 1; }
@keyframes dt-cf { 0% { box-shadow: 0 0 0 5px #00b489, inset 0 0 0 6px #1d1d1c; } 100% { box-shadow: 0 0 0 1px #00000014, inset 0 0 0 6px #1d1d1c; } }
.no-menu .dt-menu { display: none; } .no-menu .dt-board-wrap { justify-content: center; } .no-menu .dt-board { max-width: 560px; }

/* ---- flights (flights.js) ---- */
.sc-flights .sc-body { flex-direction: column; overflow: auto; padding: 16px 20px 12px 16px; gap: 10px; scrollbar-width: thin;
  scrollbar-color: var(--fill-strong) transparent; }
.fl-head { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; flex: none; }
.fl-logo { font: 600 15px/20px var(--font-heading); color: var(--text-title); } .fl-sub { font-family: var(--font-description); font-size: 12px; color: var(--text-desc); }
.fl-today { margin-left: auto; font-size: 12px; height: 22px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px;
  background: var(--fill); color: var(--text-subtitle); font-weight: 500; }
.fl-airports { flex-basis: 100%; display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.fl-ap { font-family: var(--font-code); font-size: 10.5px; color: var(--text-helper); background: var(--fill-weak); border-radius: 6px; padding: 0 5px; cursor: help; }
.fl-query { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 14px 16px; border-radius: 16px; background: var(--elevated);
  border: .5px solid var(--border-light); box-shadow: var(--shadow-default); flex: none; }
.fl-q { font-family: var(--font-description); font-size: 13px; color: var(--text-desc); }
.fl-q:first-child { flex-basis: 100%; font: 500 22px/30px var(--font-heading); color: var(--text-title); }
.fl-hint { font-family: var(--font-description); color: var(--text-desc); font-size: 13px; }
.fl-query:has(.fl-hint) { background: transparent; box-shadow: none; border: 1px dashed var(--border); }
.fl-search { display: grid; gap: 8px; padding: 12px 16px; border-radius: 16px; background: var(--fill-weak); flex: none; }
.fl-search.searching { background: var(--info-bg); box-shadow: inset 0 0 0 .5px var(--info-border); }
.fl-search.done { background: var(--success-bg); box-shadow: inset 0 0 0 .5px var(--success-border); }
.fl-search.error { background: var(--danger-bg); box-shadow: inset 0 0 0 .5px var(--danger-border); }
.fl-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-subtitle); font-variant-numeric: tabular-nums; }
.fl-search.searching .fl-status { color: var(--info-fg); } .fl-search.done .fl-status { color: var(--success-fg); }
.fl-search.error .fl-status { color: var(--danger-fg); }
.fl-search.searching .fl-status::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--info-border);
  border-top-color: var(--info); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.fl-bar { height: 6px; border-radius: 3px; background: var(--fill-medium); overflow: hidden; }
.fl-fill { height: 100%; width: 0; background-color: var(--info); border-radius: 3px; transition: width .2s linear; }
.fl-fill.indet { width: 30% !important; animation: fl-indet 1.2s ease-in-out infinite alternate; }
@keyframes fl-indet { from { margin-left: 0; } to { margin-left: 70%; } }
.fl-search.idle .fl-bar { display: none; } .fl-search.idle .fl-status { color: var(--text-desc); font-weight: 400; }
.fl-search.done .fl-fill { background-color: var(--success); } .fl-search.error .fl-fill { background-color: var(--danger); }
.fl-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; flex: none; }
.fl-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border-radius: 16px; background: var(--elevated);
  border: .5px solid var(--border-light); box-shadow: var(--shadow-default); animation: fadein .35s ease-out both; align-content: start; overflow: hidden;
  transition: box-shadow .3s, background-color .3s; }
.fl-card > .fl-times, .fl-card > .fl-meta, .fl-card > .fl-foot { grid-column: 1 / -1; }
.fl-card.skel { height: 74px; animation: fl-skel 1.2s ease-in-out infinite alternate; background: linear-gradient(90deg, var(--fill-weak), var(--fill)); box-shadow: none; }
@keyframes fl-skel { from { opacity: .5; } to { opacity: 1; } }
.fl-air { grid-column: 1; display: flex; gap: 6px; font-size: 12px; color: var(--text-helper); align-items: baseline; font-family: var(--font-code); }
.fl-airline { font: 500 13px/18px var(--font-heading); color: var(--text-title); }
.fl-card .fl-price { grid-column: 2; grid-row: 1 / span 2; justify-self: end; font: 600 20px/26px var(--font-heading); color: var(--text-title); }
.fl-times { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.fl-times b { font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--text-title); }
.fl-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-helper); width: 32px; flex: none; }
.fl-line { flex: 1; border-top: 1.5px solid var(--divider); min-width: 12px; align-self: center; }
.fl-ap-code { font-family: var(--font-code); font-size: 11px; color: var(--text-desc); }
.fl-shift { color: var(--danger-fg); font-weight: 700; font-size: 10px; }
.fl-meta { font-family: var(--font-description); font-size: 12px; color: var(--text-desc); padding-left: 40px; }
.fl-foot { display: flex; gap: 8px; margin-top: 4px; padding-top: 6px; border-top: .5px solid var(--border-light); font-size: 12px; color: var(--text-subtitle); }
.fl-few { color: var(--danger-fg); font-weight: 600; margin-left: auto; }
.fl-card.selected { box-shadow: var(--shadow-default), inset 0 0 0 1.5px var(--text-title); }
.fl-picked { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--fill-weak); flex: none; }
.fl-picked:empty { display: none; }
.fl-k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-helper); }
.fl-v { font-weight: 500; color: var(--text-title); font-size: 13px; }
.fl-seat { background: var(--primary-bg); color: var(--primary-fg); border-radius: 6px; padding: 1px 8px; font-weight: 600; font-size: 12px; }
.fl-booking:empty { display: none; }
.fl-booking { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; animation: fadein .35s ease-out both; flex: none; }
.fl-booking.ok { background: var(--success-bg); box-shadow: inset 0 0 0 .5px var(--success-border); }
.fl-booking.bad { background: var(--danger-bg); box-shadow: inset 0 0 0 .5px var(--danger-border); }
.fl-booking.held { background: var(--warning-bg); box-shadow: inset 0 0 0 .5px var(--warning-border); }
.fl-book-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.fl-book-status { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--success); color: #fff; }
.fl-booking.held .fl-book-status { background: var(--warning); } .fl-booking.bad .fl-book-status { background: var(--danger); }
.fl-book-code { font: 500 26px/32px var(--font-code); letter-spacing: .12em; color: var(--text-title); }
.fl-book-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; font-size: 13px; }
.fl-book-row .fl-k { padding-top: 2px; } .fl-book-row .fl-v { font-weight: 400; }

/* narrow work card (small screens, Inspector open): every column shrinks, nothing is cut */
@container (max-width: 1000px) {
  .dt-menu { min-width: 0; padding-left: 12px; } .dt-board-wrap { min-width: 280px; padding: 12px 10px 12px 4px; }
  .dt-grid { grid-template-columns: minmax(0, 1fr); }
  .dt-item { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; } .dt-thumb { width: 52px; height: 52px; }
  .dt-board-top { padding: 14px 16px 10px; } .dt-board-brand { font-size: 11px; letter-spacing: .06em; }
  .dt-qty, .dt-title, .dt-amt { font-size: 17px; line-height: 24px; } .dt-sub, .dt-mod { font-size: 13px; line-height: 19px; }
  .dt-tot-row.dt-total { font-size: 24px; line-height: 30px; } .dt-lines { padding: 6px 8px; }
  .dt-dp-hours { white-space: normal; }
  .dt-board-head { font-size: 12px; padding: 9px 12px; }
}
@container (max-width: 820px) {
  .dt-board-wrap { min-width: 264px; padding: 10px 8px 10px 2px; } .dt-menu { padding: 12px 4px 0 10px; }
  .dt-item { grid-template-columns: 44px minmax(0, 1fr); gap: 7px; padding: 5px 8px 5px 5px; } .dt-thumb { width: 44px; height: 44px; }
  .dt-dp { padding: 5px 8px; } .dt-dp-label { font-size: 12px; line-height: 16px; } .dt-dp-hours { font-size: 10.5px; line-height: 14px; }
  .dt-board-top { padding: 12px 14px 8px; } .dt-m { width: 24px; height: 24px; font-size: 17px; }
  .dt-line { grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 8px; padding: 9px 6px; }
  .dt-tot { padding: 10px 16px 12px; }
}
/* short screens (1366x768 and the like): the board's chrome and lines get tighter so a usual order fits */
@media (max-height: 860px) {
  .dt-board-top { padding-top: 10px; padding-bottom: 8px; } .dt-m { width: 24px; height: 24px; font-size: 17px; }
  .dt-line { padding-top: 7px; padding-bottom: 7px; }
  .dt-tot { padding-top: 8px; padding-bottom: 8px; gap: 0; } .dt-tot-row { font-size: 13px; line-height: 18px; }
  .dt-tot-row.dt-total { font-size: 22px; line-height: 28px; margin-top: 2px; }
  .dt-board-head { padding-top: 7px; padding-bottom: 7px; }
}
