/* Illume — layout around the Illumination page. Colours, header, tabs, buttons, cards, forms and tables come from
   css/theme.css (the same AeroLedger palette and shapes as www, HOT and accounts). */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; line-height: 1.5; }
body { min-height: 100dvh; display: flex; flex-direction: column; }
.app { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
[hidden] { display: none !important; }
.hidden { display: none !important; }
.content { width: 100%; max-width: min(1680px, 100%); margin: 0 auto; padding: 0 1.5rem 1.25rem; flex: 1 0 auto; }
.page-sub { padding-bottom: 2rem; }

/* TEST banner, same orange as the other .lan apps (accounts: .local-env-banner) */
.local-env-banner { position: sticky; top: 0; z-index: 10000; background: #ea580c; color: #fff; text-align: center; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.03em; padding: 0.28rem 0.6rem; line-height: 1.25; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); }
.topbar { top: var(--env-h, 0px); }
.tabbar { top: calc(var(--env-h, 0px) + var(--wc-topbar-h, 0px)); }
.illum-input { top: calc(var(--env-h, 0px) + var(--wc-topbar-h, 56px) + var(--wc-tabbar-h, 48px) + 0.5rem); }

/* header controls */
.theme-chip { width: auto; min-width: 6.2rem; padding: 0.3rem 0.5rem; background: transparent; color: var(--t-head-ink); border: 1px solid var(--t-head-line); border-radius: var(--radius); font: inherit; font-size: 0.85rem; }
.theme-chip option { color: #2b2d30; background: #fff; }
.topbar .font-ctl { gap: 0.3rem; flex-wrap: nowrap; }
.topbar .font-ctl .font-value { min-width: 3rem; font-size: 0.8rem; color: var(--t-head-sub); }
.topbar .font-ctl [data-fs-step] { min-width: 2.4rem; font-size: 0.85rem; }
@media screen and (max-width: 720px) { .brand-text .user-name { display: none; } }

/* footer */
.site-foot { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 0.6rem; padding: 0.9rem 1rem; border-top: 1px solid var(--t-line);
  background: var(--t-panel); color: var(--t-muted); font-size: 0.75rem; line-height: 1.4; text-align: center; }

/* pick on map */
.page-pick { padding: 0.6rem 0 0; }
.pick-wrap { position: relative; }
.pick-map { height: calc(100dvh - var(--env-h, 0px) - var(--wc-topbar-h, 56px) - 7rem); min-height: 22rem; border: 1px solid var(--t-line); border-radius: var(--radius); background: var(--t-soft); }
.pick-map.illum-picking { cursor: crosshair; }
.pick-card { position: absolute; z-index: 1000; top: 0.75rem; right: 0.75rem; min-width: 14rem; max-width: 18rem; padding: 0.7rem 0.8rem;
  background: var(--t-overlay, var(--t-panel)); color: var(--t-ink); border: 1px solid var(--t-line); border-radius: var(--radius); box-shadow: var(--t-dialog-shadow); font-size: 0.9rem; }
.pick-card-title { font-family: var(--tech); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; color: var(--t-strong); margin-bottom: 0.2rem; }
.pick-card .btn { width: 100%; margin-top: 0.5rem; }
@media print { .local-env-banner, .site-foot { display: none !important; } }
