/* DiDi theme: the MLT look and feel (docs/brand/BRAND.md; colour style guide v1.0, 23 Oct 2026).
   Navy carries the header bar and headings with white text on it, gold is the one accent (rule under the header,
   active-tab underline, the short bar under headings, focus rings), grey blue does the quiet work. */
:root {
  --navy: #2D415F;
  --navy-deep: #22324A;
  --mid: #3E5A80;
  --light: #E3E8EF;
  --gold: #DCB96E;
  --gold-soft: #F8F1DF;
  --accent: #DCB96E;
  --accent-soft: #F8F1DF;
  --greyblue: #A0AFBE;
  --success: #2E9E5B;
  --warning: #D99A1E;
  --danger: #C94B3C;
  --dark: #141E2D;
  --surface: #F4F6F8;
  --border: #CFD8E1;
  --text: #1B2433;
  --muted: #6A7A8C;
  --radius: 10px;
  --shadow: 0 1px 6px rgba(45, 65, 95, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--surface); font-size: 15px; line-height: 1.45;
  display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--mid); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); margin: 0 0 .5rem; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: var(--mono); }
.inline { display: inline; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.tick { color: var(--success); font-weight: 700; }
.kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mid); font-weight: 700; }

/* Header bar: navy, sticky, white text, the gold rule along the bottom edge. Left to right: the square logo on a white
   tile, a thin divider, the product name, the location trail, then the user chip with its gold avatar disc. */
.topbar { display: flex; align-items: stretch; gap: 1.5rem; padding: 0 1.4rem; min-height: 60px; background: var(--navy); color: #fff;
  border-bottom: 3px solid var(--gold); box-shadow: 0 4px 16px -12px rgba(20, 30, 45, .6); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; align-self: center; gap: .7rem; color: #fff; padding: .45rem 0; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: 44px; object-fit: contain; display: block; background: #fff; border-radius: 9px; padding: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; padding-left: .7rem; border-left: 1px solid rgba(255, 255, 255, .28); }
.brand-name { font-weight: 600; color: #fff; font-size: .95rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-tag { font-size: .62rem; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; white-space: nowrap; }
.crumbs { flex: 1; display: flex; flex-wrap: wrap; align-items: center; align-self: center; gap: .35rem; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.crumbs a { color: rgba(255, 255, 255, .78); }
.crumbs a:hover { color: #fff; text-decoration: none; }
.crumbs .current { color: #fff; font-weight: 600; }
.crumbs .sep { color: rgba(255, 255, 255, .35); }
.userbox { margin-left: auto; align-self: center; display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: inline-flex; align-items: center; gap: .55rem; padding: .25rem .55rem .25rem .25rem; border-radius: 999px;
  cursor: pointer; color: #fff; border: 1px solid transparent; user-select: none; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu[open] summary { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--gold); color: var(--navy-deep); font-size: .72rem; font-weight: 700; letter-spacing: .05em; }
.usermenu .who { font-weight: 600; white-space: nowrap; }
.usermenu .chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 14px 36px -14px rgba(45, 65, 95, .4); padding: .4rem; z-index: 40; display: flex; flex-direction: column; }
.usermenu .menu-head { display: flex; flex-direction: column; gap: .1rem; padding: .5rem .7rem .6rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.usermenu .menu a, .usermenu .menu button { display: block; width: 100%; text-align: left; padding: .5rem .7rem; border-radius: 7px; color: var(--text);
  font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--surface); color: var(--navy); text-decoration: none; }
.usermenu .menu form { margin: 0; }
.link-soft { color: var(--muted); }
@media (max-width: 1240px) { .brand-tag { display: none; } }

/* Picker: the hierarchy selects on a white strip under the header bar */
.picker-bar { background: #fff; border-bottom: 1px solid var(--border); padding: .55rem 1.4rem; }
.picker { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }
.picker-field { display: flex; flex-direction: column; gap: .15rem; color: var(--muted);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.picker-field select { min-width: 150px; font-size: .9rem; padding: .35rem .5rem; border-radius: 6px;
  border: 1px solid var(--border); background: #fff; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 500; }
.picker-field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.picker-field select:disabled { opacity: .5; }

/* Banners, notices and messages */
.banner { padding: .6rem 1.4rem; font-size: .9rem; }
.banner-example { background: var(--gold-soft); color: var(--navy); border-left: 4px solid var(--gold); border-bottom: 1px solid #EBDDB3; }
.notice { background: var(--gold-soft); border: 1px solid #EBDDB3; border-left: 4px solid var(--gold); color: var(--navy); border-radius: 8px; padding: .6rem .9rem; font-size: .88rem; margin-bottom: 1rem; }
.messages { padding: .6rem 1.4rem 0; }
.msg { padding: .6rem .9rem; border-radius: 8px; margin-bottom: .5rem; background: #E8F0F8; color: var(--navy); border: 1px solid var(--light); }
.msg-success { background: #E8F8F0; color: #1A7A45; border-color: #BFEBD3; }
.msg-error, .msg-danger { background: #FDE8E8; color: #7A1A1A; border-color: #F5BDBD; }
.msg-warning { background: #FEF3CD; color: #7A5A00; border-color: #F7E0A0; }

/* Page */
.page { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 1.3rem 1.4rem 2rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.page-head .titles { flex: 1; min-width: 240px; }
.page-head .subtitle { color: var(--muted); font-size: .9rem; }
.page-head .actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
/* Page titles carry the short gold bar; a photo header keeps its white title without it */
.page-head:not(.hero) .titles h1 { position: relative; padding-bottom: .35rem; }
.page-head:not(.hero) .titles h1::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--gold); border-radius: 2px; }
/* Unit with a site photo: the photo is the header, the title sits over a shade that fades in from the left */
.page-head.hero { position: relative; min-height: 210px; align-items: flex-end; padding: 1.1rem 1.3rem; border-radius: var(--radius);
  overflow: hidden; background-size: cover; background-position: center 60%; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(34,50,74,.86) 0%, rgba(34,50,74,.62) 38%, rgba(34,50,74,.1) 72%, rgba(34,50,74,0) 100%),
              linear-gradient(0deg, rgba(34,50,74,.5) 0%, rgba(34,50,74,0) 55%); }
.hero .titles { position: relative; }
.hero h1 { color: #fff; font-size: 1.8rem; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.hero .subtitle { color: rgba(255,255,255,.85); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.hero-view { position: relative; margin-left: auto; font-size: .76rem; font-weight: 600; color: #fff; padding: .3rem .75rem; border-radius: 20px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.hero-view:hover { background: rgba(255,255,255,.3); text-decoration: none; }
@media (max-width: 640px) { .page-head.hero { min-height: 160px; } }
.page-head .product { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--navy); padding: 2px 9px; border-radius: 20px; vertical-align: middle; margin-left: .5rem; }
.hero .product { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.5); }

/* Tabs: gold underline on the active one */
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1rem; border-bottom: 1px solid var(--border); }
.tabs a { padding: .45rem .8rem; font-size: .88rem; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--navy); text-decoration: none; }
.tabs a.active { color: var(--navy); border-bottom-color: var(--gold); }
.subtabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: -.2rem 0 1rem; border-bottom: 1px solid var(--border); }
.subtabs a { padding: .45rem .8rem; font-size: .88rem; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subtabs a:hover { color: var(--navy); text-decoration: none; }
.subtabs a.active { color: var(--navy); border-bottom-color: var(--gold); }
/* Unit pages: one group of tabs per product (logo above), plus Analytics and System */
.tab-groups { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 1.4rem; margin-bottom: 1.1rem; }
.tab-group .tabs { margin-bottom: 0; }
.tab-group .tabs a { padding: .45rem .7rem; }
.tab-group-head { display: flex; align-items: flex-end; height: 32px; margin: 0 0 .3rem .35rem; }
.tab-group-head img { height: 30px; width: auto; opacity: .85; }
.tab-group-head span { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em;
  line-height: 1; padding-bottom: 5px; }
.tab-group.active .tab-group-head img { opacity: 1; }
.tab-group.active .tab-group-head span { color: var(--navy); }

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: .7rem .9rem; margin-bottom: 1.1rem; box-shadow: var(--shadow); }
.filters label { display: flex; flex-direction: column; gap: .15rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 600; }
.filters select, .filters input { font-size: .9rem; padding: .35rem .5rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); min-width: 120px; }
.filters select:focus, .filters input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.filters .range-custom { display: flex; gap: .5rem; }
.filters .summary { margin-left: auto; align-self: center; color: var(--muted); font-size: .85rem; }

/* Buttons: navy with white text, mid navy on hover, gold focus ring; outline buttons white with navy text */
.btn { display: inline-block; font: inherit; font-size: .9rem; font-weight: 600; padding: .45rem .95rem; border-radius: 7px; border: 1px solid var(--navy);
  background: var(--navy); color: #fff; cursor: pointer; line-height: 1.3; }
.btn:hover { background: var(--mid); border-color: var(--mid); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--mid); border-color: var(--mid); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; padding: .3rem .6rem; }
.btn-ghost:hover { background: var(--surface); color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); }
.btn-outline:hover { background: var(--light); border-color: var(--navy); }
.btn-small { font-size: .8rem; padding: .3rem .7rem; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #B2402F; border-color: #B2402F; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Cards and grids: card headings carry the gold dividing bar */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.grid > .card + .card { margin-top: 0; }
.card h2, .card h3 { margin-top: 0; }
.card > h2:first-child, .card-head { padding-bottom: .45rem; margin-bottom: .85rem; border-bottom: 1px solid var(--border); position: relative; }
.card > h2:first-child::after, .card-head::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 48px; height: 3px; background: var(--gold); border-radius: 2px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.card-head h2 { margin-bottom: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.section-header { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em;
  margin: 1.4rem 0 .7rem; padding-bottom: .4rem; border-bottom: 1.5px solid var(--border); }
.section-header:first-child { margin-top: 0; }

/* KPI tiles: a hero number, the top edge a navy-to-gold gradient, or green, amber or red when the tile has a state */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.kpi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; position: relative; overflow: hidden; box-shadow: var(--shadow); color: var(--text); }
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy) 55%, var(--gold)); }
.kpi-card.kpi-success::before, .kpi-card.kpi-good::before { background: var(--success); }
.kpi-card.kpi-warning::before { background: var(--warning); }
.kpi-card.kpi-danger::before, .kpi-card.kpi-serious::before { background: var(--danger); }
.kpi-label { font-size: .68rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .3rem; }
.kpi-value { font-size: 1.4rem; font-weight: 700; color: var(--navy); line-height: 1.1; font-family: var(--mono); white-space: nowrap; }
.kpi-value.kpi-text { font-size: 1.05rem; white-space: normal; overflow-wrap: anywhere; }
.kpi-delta { font-size: .74rem; margin-top: .3rem; color: var(--muted); }

/* Charts */
.chart { width: 100%; }
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .8rem .2rem; box-shadow: var(--shadow); }
.chart-note { font-size: .8rem; color: var(--muted); padding: .2rem .4rem .6rem; }

/* Tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .table-wrap { border: 0; box-shadow: none; }
table.data { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.data th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  background: var(--surface); padding: .55rem .7rem; border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; }
table.data td { padding: .45rem .7rem; border-bottom: 1px solid #EDF1F5; vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #F8FAFC; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-foot { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; padding: .6rem .8rem; font-size: .85rem; color: var(--muted); }
.pager a, .pager span { display: inline-block; padding: .2rem .55rem; border-radius: 5px; border: 1px solid var(--border); margin-left: .25rem; font-size: .82rem; }
.pager span.current { background: var(--navy); color: #fff; border-color: var(--navy); }
tr.current td { background: var(--accent-soft); }

/* Badges keep their semantic colours; the accent badge is gold-soft with dark gold text */
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.badge-success { background: #E8F8F0; color: #1A7A45; }
.badge-info { background: #E8F0F8; color: #1A4E7A; }
.badge-danger { background: #FDE8E8; color: #7A1A1A; }
.badge-neutral { background: #EEF1F4; color: #555; }
.badge-warning { background: #FEF3CD; color: #7A5A00; }
.badge-accent { background: var(--gold-soft); color: #6E5214; }
.badge-product { background: var(--navy); color: #fff; }
.chip { display: inline-block; background: var(--light); color: var(--navy); border-radius: 20px; padding: 1px 9px; font-size: .74rem; font-weight: 600; }

/* Forms */
.form { display: flex; flex-direction: column; gap: .8rem; }
.form label, .field label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: .2rem; }
.form input, .form select, .form textarea, .field input, .field select, .field textarea { width: 100%; font: inherit; padding: .5rem .65rem; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--mid); }
.form textarea { min-height: 120px; font-family: var(--mono); font-size: .85rem; }
.form .help, .field .help { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.form .errors, .errorlist { color: var(--danger); font-size: .85rem; margin: .2rem 0 0; padding-left: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.form-actions { display: flex; gap: .6rem; align-items: center; margin-top: .4rem; flex-wrap: wrap; }
.checkbox { display: flex; align-items: center; gap: .45rem; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; color: var(--text) !important; }
.checkbox input { width: auto; }

/* Auth pages */
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 2rem 2rem 1.6rem; box-shadow: 0 8px 30px rgba(45,65,95,.12); }
.auth-card .brand { justify-content: center; margin-bottom: 1rem; }
.auth-card .brand-logo { height: 90px; width: 90px; padding: 0; border-radius: 12px; }
.auth-card h1 { text-align: center; font-size: 1.25rem; }
.auth-card .lead { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.auth-card .btn { width: 100%; padding: .6rem; }
.auth-foot { text-align: center; margin-top: 1rem; font-size: .82rem; color: var(--muted); }
.qr { display: block; margin: .5rem auto; width: 220px; height: 220px; }

/* Hierarchy tree */
.tree { list-style: none; margin: 0; padding: 0; }
.tree > li { margin-bottom: 1rem; }
.tree .node { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tree .node .name { font-weight: 600; color: var(--navy); }
.tree ul { list-style: none; margin: .4rem 0 0 1.2rem; padding-left: 1rem; border-left: 2px solid var(--light); }
.tree li { margin: .35rem 0; }
.unit-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .45rem .7rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.unit-row .meta { color: var(--muted); font-size: .8rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.thumb { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #E9EEF3; }
.thumb .cap { padding: .45rem .6rem; font-size: .78rem; color: var(--muted); }
.thumb .cap strong { color: var(--navy); display: block; font-size: .82rem; }
#lightbox { position: fixed; inset: 0; background: rgba(20,30,45,.88); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
#lightbox[hidden] { display: none; }
#lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; text-align: center; }
#lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 6px; }
#lightbox figcaption { color: #fff; font-size: .85rem; margin-top: .5rem; }

/* Footer */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .8rem 1.4rem; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--border); background: #fff; }

/* Definition lists */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: .6rem; }
  .crumbs { order: 3; width: 100%; padding-bottom: .4rem; }
  .page { padding: 1rem; }
  .filters .summary { margin-left: 0; }
}

/* ---- Organisation and airport tiles: white, the client's own colour on the top edge, their logo bottom-right ------------ */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); grid-auto-rows: 1fr; gap: 1.2rem; }
.org-card, .airport-card { --brand: var(--navy); position: relative; display: flex; flex-direction: column; min-height: 210px;
  background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--brand); border-radius: 14px; color: var(--text);
  box-shadow: var(--shadow); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.org-card:hover, .airport-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--brand) 55%, #000 45%);
  text-decoration: none; color: var(--text); }
.org-body, .airport-main { padding: 1.2rem 1.3rem 0; flex: 1; }
.org-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); font-weight: 700; }
.org-card h2, .airport-card h2 { margin: .25rem 0 .7rem; color: var(--navy); font-size: 1.45rem; line-height: 1.2; }
.org-stats { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .92rem; color: var(--muted); }
.org-stats strong { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.org-products { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.org-products .chip { background: color-mix(in srgb, var(--brand) 9%, #fff 91%); border: 1px solid color-mix(in srgb, var(--brand) 35%, #fff 65%);
  color: var(--brand); border-radius: 20px; padding: 2px 10px; font-size: .78rem; font-weight: 600; }
.org-products .chip-warn { background: var(--gold-soft); border-color: #EBDDB3; color: #6E5214; }
.org-foot, .airport-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: .8rem 1.3rem 1rem; }
.org-open { font-weight: 600; font-size: .9rem; color: var(--brand); white-space: nowrap; }
.org-logo { display: block; max-height: 64px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
.org-mono { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800;
  letter-spacing: -.02em; background: color-mix(in srgb, var(--brand) 12%, #fff 88%); color: var(--brand); }

/* airport tiles: text left, dashboard panel right, logo in the footer */
.airport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); grid-auto-rows: 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .airport-grid { grid-template-columns: 1fr; } .airport-card { display: flex; } .airport-viz { margin: .8rem 1.3rem 0; } }
.airport-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(220px, 1fr); grid-template-rows: 1fr auto; min-height: 250px; }
.airport-meta { margin-top: .7rem; font-size: .85rem; color: var(--muted); }
.airport-viz { margin: 1rem 1.2rem 0 0; padding: .8rem .9rem .6rem; border-radius: 12px; display: flex; flex-direction: column; min-height: 150px;
  background: color-mix(in srgb, var(--brand) 5%, #fff 95%); border: 1px solid color-mix(in srgb, var(--brand) 22%, #fff 78%); }
.airport-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.viz-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; font-weight: 700; color: var(--brand); }
.viz-legend { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; }
.viz-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: .5rem; }
.k-bags { background: var(--brand); }
.k-pax { background: var(--gold); }
.spark { display: flex; align-items: flex-end; gap: .45rem; flex: 1; margin-top: .6rem; min-height: 90px; }
.spark-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; height: 100%; }
.spark-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.spark-bars i { display: block; width: 42%; min-height: 2px; border-radius: 3px 3px 0 0; }
.spark-label { font-size: .68rem; color: var(--muted); }
.spark-empty { align-items: center; justify-content: center; font-size: .85rem; color: var(--muted); text-align: center; }
.airport-foot { grid-column: 1 / -1; }

/* ---- Departures / arrivals planes (navy plane, gold ground bar) ------------------------------ */
.dir-icon { display: inline-block; vertical-align: -3px; }
.dir-icon .plane { fill: currentColor; }
.dir-icon .bar { fill: var(--gold); }
.tree .node .name .dir-icon { color: var(--navy); margin-right: .15rem; }
.picker-field > span .dir-icon { color: var(--navy); opacity: .9; vertical-align: -4px; margin-left: .1rem; }

.check-list { display: flex; flex-direction: column; gap: .3rem; padding-top: .3rem; }
.check-list .checkbox { font-weight: 500; }
