@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/jakarta-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/jakarta-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root, [data-theme="light"] {
  color-scheme: light;
  --brand:#007D40; --brand-d:#006634; --accent:#34B878; --accent2:#43C487;
  --blue:#1F6FAE; --amber:#B45A00; --red:#B00030;
  --ink:#102019; --muted:#5A7066; --soft:#C9D6D2; --bg:#F1F5F3; --surface:#FFFFFF; --surface-2:#FAFCFB;
  --white:#FFFFFF; --border:#E2EAE6; --border-soft:#EDF2F0; --line:var(--border); --bg-card:var(--surface-2);
  --hover:#F1F7F4; --hover2:#E6F2EC; --accent-soft:#EBF6F0; --accent-bd:#BFE3CE;
  --bubble-bd:#E0EFE7; --bubble-air-bg:var(--bg); --bubble-label:var(--brand); --header-bg:rgba(255,255,255,.92);
  --warn:#B94A00; --warn-bg:#FFF3EE;
  --st-ok-bg:#DCF0E5; --st-ok-fg:#0A6B38; --st-ok-bd:#A8DCC0;
  --st-warn-bg:#FFF3CD; --st-warn-fg:#856404; --st-warn-bd:#FDE68A;
  --st-err-bg:#FEF2F2; --st-err-fg:#B91C1C; --st-err-bd:#FECACA;
  --st-info-bg:#D0EDFF; --st-info-fg:#084298;
  --st-neutral-bg:#E2E8F0; --st-neutral-fg:#475569;
  --err-solid:#B91C1C; --err-solid-hover:#991B1B;
  --direct:#0B6F7A; --direct-hover:#075866;
  --radius:10px; --shadow:0 2px 12px rgba(16,32,25,.10);
  --app-header-height:88px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --ink:#E6EFEA; --muted:#8AA295; --soft:#2A3830; --bg:#0D1512; --surface:#131E19; --surface-2:#101A16;
  --border:#243029; --border-soft:#1E2A24; --line:var(--border); --bg-card:var(--surface-2);
  --hover:#16241D; --hover2:#1A2C23; --accent-soft:#13241C; --accent-bd:#25382E;
  --bubble-bd:#25382E; --bubble-air-bg:#1C2C24; --bubble-label:var(--accent); --header-bg:rgba(16,26,22,.92);
  --warn:#E8975A; --warn-bg:#2A1E16;
  --st-ok-bg:#16311F; --st-ok-fg:#63C98D; --st-ok-bd:#27502F;
  --st-warn-bg:#332B12; --st-warn-fg:#D9BE63; --st-warn-bd:#4A3E18;
  --st-err-bg:#2E1517; --st-err-fg:#F08A8A; --st-err-bd:#5A2B2E;
  --st-info-bg:#122438; --st-info-fg:#7FB6E8;
  --st-neutral-bg:#1E2A33; --st-neutral-fg:#9FB3C2;
  --err-solid:#C5403F; --err-solid-hover:#E05656;
  --direct:#1492A0; --direct-hover:#17A6B6;
  --shadow:0 2px 14px rgba(0,0,0,.45);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  height: 100%;
  margin: 0;
  font-family: 'Plus Jakarta Sans', "Segoe UI", system-ui, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { letter-spacing: 0; }
.topbar {
  min-height: 70px;
  background: var(--surface);
  border-bottom: 2px solid var(--soft);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 2rem;
  position: sticky;
  top: 0;
  z-index: 20;
}
.logo-link { display: inline-flex; align-items: center; min-width: 210px; }
.logo-link img { width: min(270px, 36vw); height: auto; display: block; }
.theme-logo { flex-shrink: 0; }
:root:not([data-theme="dark"]) .theme-logo-dark,
[data-theme="dark"] .theme-logo-light { display: none !important; }
.main-nav { display: flex; align-items: center; gap: .35rem; flex: 1; min-width: 0; }
.nav-link {
  height: 38px; display: inline-flex; align-items: center; gap: .45rem; padding: 0 .75rem; border-radius: 8px;
  color: var(--muted); font-weight: 750; font-size: .86rem; border: 1px solid transparent; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--brand); background: var(--accent-soft); border-color: var(--accent-bd); }
.nav-link.disabled { opacity: .45; cursor: not-allowed; }
.header-actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.runtime-select { height: 38px; border: 1px solid var(--soft); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 0 .55rem; min-width: 12rem; }
.icon-btn, .pill-btn {
  height: 38px; border: 1px solid var(--soft); border-radius: 8px; background: var(--surface); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: 0 .7rem; cursor: pointer; font-weight: 750;
}
.icon-btn { width: 38px; padding: 0; }
.icon-btn:hover, .pill-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--hover); }
.user-chip { height: 38px; display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--soft); border-radius: 8px; background: var(--surface); padding: 0 .7rem 0 .4rem; }
.shell { width: calc(100vw - 3.5rem); margin: 0 auto; padding: 1.35rem 0 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.breadcrumb { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.breadcrumb a { color: var(--brand); }
.page-title h1 { margin: .25rem 0 .15rem; font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: 0; }
.page-title p { margin: 0; color: var(--muted); font-size: .94rem; }
.actions-row { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.primary-btn { background: var(--brand); border-color: var(--brand); color: var(--white); }
.primary-btn:hover { background: var(--brand-d); color: var(--white); border-color: var(--brand-d); }
.panel, .card, .report-card, .widget-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 4px rgba(16,32,25,.05);
}
.reporting-header { min-height: 88px; padding: .45rem 2rem; gap: 1.5rem; }
.header-left { display: flex; align-items: center; gap: 1.05rem; min-width: 0; flex: 1 1 auto; }
.header-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; align-self: auto; padding-bottom: 0; margin-left: auto; }
.company-context { position: relative; min-width: 0; flex: 0 1 auto; }
.company-context[hidden], .company-menu[hidden] { display: none !important; }
.company-switcher {
  position: relative;
  min-width: 0;
  color: var(--ink);
}
.company-switcher.is-static,
.company-switcher-trigger {
  min-height: 48px;
  max-width: 230px;
  display: flex;
  align-items: center;
  gap: .62rem;
  padding: .35rem .62rem;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 12px;
  background: var(--surface-2);
  color: inherit;
  text-align: left;
}
.company-switcher-trigger { width: 100%; cursor: pointer; }
.company-switcher-trigger:hover,
.company-switcher.open .company-switcher-trigger {
  border-color: color-mix(in srgb, var(--brand) 48%, var(--border));
  background: var(--accent-soft);
}
.company-switcher-trigger:focus-visible,
.company-option:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.company-flag {
  width: 30px;
  height: 20px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, var(--border));
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16,32,25,.12);
}
.company-flag img { width: 100%; height: 100%; display: block; object-fit: fill; }
.company-flag > span { display: none; font-size: .57rem; font-weight: 850; color: var(--muted); }
.company-flag.no-image > span { display: grid; }
.company-current-copy,
.company-option-copy { min-width: 0; display: grid; line-height: 1.12; }
.company-current-copy small,
.company-option-copy small {
  color: var(--muted);
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.company-current-copy strong {
  max-width: 150px;
  overflow: hidden;
  color: var(--ink);
  font-size: .74rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.company-switcher-chevron { width: 14px; height: 14px; margin-left: auto; color: var(--muted); flex: 0 0 auto; }
.company-switcher-chevron svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.company-switcher.open .company-switcher-chevron { transform: rotate(180deg); }
.company-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 520;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(430px, calc(100vh - var(--app-header-height, 88px) - 1.5rem));
  overflow-y: auto;
  padding: .45rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(16,32,25,.2);
}
.company-menu-title { padding: .38rem .48rem .5rem; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.company-option {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) 18px;
  align-items: center;
  gap: .7rem;
  padding: .62rem .55rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.company-option:hover { background: var(--hover); }
.company-option.active { background: var(--accent-soft); }
.company-option-copy strong { font-size: .82rem; overflow-wrap: anywhere; }
.company-option-copy small { margin-top: .12rem; }
.company-option-check { color: var(--brand); font-weight: 900; opacity: 0; }
.company-option.active .company-option-check { opacity: 1; }
.company-option[aria-busy="true"] { opacity: .55; pointer-events: none; }
.reporting-date-selector {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: .2rem;
  padding: .22rem;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 58%, transparent);
  position: relative;
}
.reporting-date-step {
  width: 32px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.reporting-date-step:hover:not(:disabled) { color: var(--brand); background: var(--accent-soft); }
.reporting-date-step:disabled { opacity: .42; background: color-mix(in srgb, var(--border-soft) 72%, transparent); color: color-mix(in srgb, var(--muted) 48%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 58%, transparent); cursor: not-allowed; }
.reporting-date-step svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reporting-date-field {
  min-width: 152px;
  display: grid;
  gap: .05rem;
  padding: .12rem .42rem;
  cursor: default;
}
.reporting-date-field.can-open-picker { cursor: pointer; }
.reporting-date-weekday {
  color: var(--ink);
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: capitalize;
}
.reporting-date-selector.is-weekend .reporting-date-weekday { color: var(--amber); }
.reporting-date-selector.is-weekend .reporting-date-weekday::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-left: .35rem;
  border-radius: 50%;
  display: inline-block;
  vertical-align: .08rem;
  background: currentColor;
}
.reporting-date-input-row { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.reporting-date-kicker {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.reporting-date-field input {
  width: 7.5rem;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  outline: none;
  cursor: pointer;
}
.reporting-date-field input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .62; }
.reporting-date-field:focus-within { border-radius: 7px; box-shadow: 0 0 0 3px var(--accent-soft); }
.reporting-date-yesterday {
  width: 32px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.reporting-date-yesterday svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reporting-date-yesterday:hover:not(:disabled) { color: var(--brand); background: var(--accent-soft); }
.reporting-date-yesterday.active { color: var(--brand); background: color-mix(in srgb, var(--accent-soft) 72%, transparent); }
.reporting-date-yesterday:disabled { opacity: .56; cursor: not-allowed; }
.reporting-date-yesterday.active:disabled {
  color: color-mix(in srgb, var(--brand) 48%, var(--muted));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-bd) 68%, transparent);
}
.reporting-date-month-close { margin-left: .02rem; }
.reporting-date-field:has(input.is-future-blocked) {
  animation: reporting-date-blocked .34s ease-out both;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 14%, transparent);
}
.reporting-date-field input:out-of-range,
.reporting-date-field input[aria-invalid="true"] { color: var(--red); }
@keyframes reporting-date-blocked {
  0%,100% { transform: translateX(0); }
  35% { transform: translateX(-2px); }
  70% { transform: translateX(2px); }
}
@media (prefers-reduced-motion:reduce) {
  .reporting-date-field:has(input.is-future-blocked) { animation:none; }
}.reporting-date-loading {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  position: absolute;
  right: .22rem;
  bottom: .2rem;
  animation: reporting-date-pulse .9s ease-in-out infinite alternate;
}
@keyframes reporting-date-pulse { to { opacity: .25; transform: scale(.7); } }
.reporting-logo-wrap { display: flex; align-items: center; min-width: 0; flex-shrink: 0; }
.reporting-header .logo-link { position: relative; display: inline-flex; align-items: center; width: min(270px, 36vw); min-width: 0; aspect-ratio: 872 / 248; overflow: hidden; flex-shrink: 0; }
.reporting-header .logo, .reporting-header img.logo { position: absolute; inset-inline: 0; top: -22.6%; display: block; width: 100%; height: auto; flex-shrink: 0; }
.air-module-nav { display: flex; align-items: center; gap: .28rem; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: .24rem; border: 1px solid color-mix(in srgb, var(--border) 82%, transparent); border-radius: 999px; background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, var(--accent-soft)), color-mix(in srgb, var(--surface-2) 90%, var(--brand))); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 55%, transparent), 0 10px 24px rgba(16,32,25,.08); }
.air-module-nav::-webkit-scrollbar { display: none; }
.air-module-link { height: 39px; display: inline-flex; align-items: center; gap: .48rem; flex: 0 0 auto; padding: 0 .78rem 0 .42rem; border-radius: 999px; border: 1px solid transparent; color: var(--muted); font-size: .82rem; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s; }
.air-module-link:hover { color: var(--brand); background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface)); transform: translateY(-1px); }
.air-module-link.active { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 24%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 72%, var(--surface)), var(--surface)); box-shadow: 0 8px 18px rgba(0,125,64,.14); }
.air-module-link.is-navigating,
.logo-link.is-navigating,
.user-dropdown-item.is-navigating { cursor: progress; opacity: .7; }
.air-module-link.disabled { opacity: .48; cursor: not-allowed; pointer-events: none; }
.air-module-link[hidden] { display: none; }
.module-mark { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; flex: 0 0 26px; border: 1px solid color-mix(in srgb, var(--border) 82%, transparent); background: var(--surface); color: var(--brand); font-size: .72rem; font-weight: 900; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 60%, transparent); }
.module-mark img { width: 21px; height: 21px; display: block; object-fit: contain; }
.air-module-link.active .module-mark { border-color: color-mix(in srgb, var(--brand) 28%, var(--border)); background: var(--surface); color: var(--brand); }
.theme-toggle { width: 38px; height: 38px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; border: 1px solid var(--soft); background: var(--surface); color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s, background .2s; font-weight: 850; }
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); background: var(--hover); }
.theme-toggle svg, .theme-toggle span { display: block; }
.language-switch { height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--soft); border-radius: 11px; background: var(--surface-2); }
.language-choice { min-width: 34px; height: 32px; padding: 0 .45rem; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: .72rem; font-weight: 850; letter-spacing: .035em; }
.language-choice:hover { color: var(--brand); background: var(--hover); }
.language-choice.active { color: var(--white); background: var(--brand); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 22%, transparent); }
.language-choice:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 42%, transparent); outline-offset: 1px; }
.user-widget { position: relative; display: flex; align-items: center; height: 38px; gap: .5rem; padding: 0 .75rem 0 .4rem; border-radius: 11px; border: 1px solid var(--soft); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; user-select: none; }
.user-widget:hover, .user-widget.open { border-color: var(--brand); background: var(--bg); }
.user-avatar { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .72rem; letter-spacing: .02em; flex-shrink: 0; }
.user-name { font-size: .85rem; font-weight: 600; color: var(--ink); }
.user-chevron { color: var(--muted); display: inline-flex; }
.user-chevron svg { display: block; }
.user-dropdown { display: none; position: absolute; top: calc(100% + .5rem); right: 0; background: var(--surface); border: 1.5px solid var(--soft); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 300px; z-index: 200; overflow: hidden; }
.user-dropdown.open, .user-widget:focus-within .user-dropdown { display: block; }
.user-dropdown-item { width: 100%; padding: .65rem 1rem; min-height: 36px; font-size: .88rem; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: .6rem; transition: background .15s; font-weight: 750; text-decoration: none; }
.user-dropdown-item:hover { background: var(--hover); }
.user-dropdown-item:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 42%, transparent); outline-offset: -2px; }
.user-dropdown-item.admin-console.active { color: var(--brand); background: var(--accent-soft); }
.user-dropdown-item.disabled { color: var(--muted); opacity: .55; cursor: not-allowed; }
.user-dropdown-item.disabled:hover { background: transparent; }
.user-dropdown-item.logout { color: var(--warn); }
.user-menu-icon {
  width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2);
  color: var(--brand); font-size: .68rem; font-weight: 900;
}
.user-menu-icon svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.user-dropdown-item[data-support-request] .user-menu-icon { color: var(--warn); }
.support-delivery-dialog { width: min(500px, calc(100vw - 2rem)); display: grid; justify-items: center; gap: .7rem; padding: 1.6rem 1.5rem 1.4rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 24px 70px rgba(9,24,17,.3); color: var(--ink); text-align: center; }
.support-delivery-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--brand); }
.support-delivery-icon svg { width: 27px; height: 27px; }
.support-delivery-dialog[data-state="error"] .support-delivery-icon { background: color-mix(in srgb, var(--red) 10%, var(--surface)); color: var(--red); }
.support-delivery-dialog h2 { margin: .15rem 0 0; font-size: 1.18rem; }
.support-delivery-dialog > p { margin: 0; max-width: 420px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.support-delivery-dialog .support-delivery-instruction { margin-top: .3rem; color: var(--ink); font-weight: 750; }
.support-delivery-reference { width: 100%; }
.support-delivery-reference code { display: block; overflow-wrap: anywhere; padding: .55rem .65rem; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: .7rem; text-align: left; }
.support-delivery-actions { width: 100%; display: flex; justify-content: flex-end; gap: .5rem; margin-top: .3rem; padding-top: .85rem; border-top: 1px solid var(--border-soft); }
.support-delivery-actions a { text-decoration: none; }
.support-delivery-spinner { width: 25px; height: 25px; border: 3px solid color-mix(in srgb, var(--brand) 20%, transparent); border-top-color: var(--brand); border-radius: 50%; animation: support-delivery-spin .75s linear infinite; }
@keyframes support-delivery-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .support-delivery-dialog { width: calc(100vw - 1.2rem); padding: 1.35rem 1rem 1rem; }
  .support-delivery-actions { flex-direction: column-reverse; }
  .support-delivery-actions .pill-btn { width: 100%; justify-content: center; }
}
.user-dropdown-item.logout .user-menu-icon { color: var(--warn); }
.user-dropdown-divider { border: none; border-top: 1px solid var(--soft); margin: 0; }
.user-menu-section { border-top: 1px solid var(--soft); border-bottom: 1px solid var(--soft); }
.user-dropdown-item.admin-root { cursor: default; color: var(--muted); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; padding-bottom: .35rem; }
.user-dropdown-item.admin-root:hover { background: transparent; }
.admin-submenu { display: grid; gap: .55rem; padding: 0 .55rem .65rem; }
.admin-submenu-title { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; margin: 0 0 .25rem .2rem; }
.admin-option-list { display: grid; gap: .18rem; max-height: 8.8rem; overflow-y: auto; padding-right: .1rem; }
.admin-option { width: 100%; min-height: 32px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); align-items: center; gap: .4rem; padding: .3rem .45rem; text-align: left; cursor: pointer; font-size: .82rem; font-weight: 700; }
.admin-option:hover { background: var(--hover); border-color: var(--border-soft); color: var(--brand); }
.admin-option.active { background: var(--accent-soft); border-color: var(--accent-bd); color: var(--brand); }
.admin-option.active::after { content: none; }
.admin-option-check { display: inline-flex; align-items: center; justify-content: center; color: var(--brand); font-weight: 900; }
.admin-option span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown { min-width: min(370px, calc(100vw - 1rem)); }
.admin-submenu { max-height: calc(100vh - var(--app-header-height, 88px) - 4rem); overflow-y: auto; }
.admin-reporting-group { border-top: 1px solid var(--soft); padding-top: .55rem; }
.admin-reporting-options { display: grid; gap: .42rem; padding: 0 .2rem; }
.admin-reporting-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .6rem; color: var(--muted); font-size: .7rem; }
.admin-reporting-status strong { color: var(--ink); }
.admin-reporting-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 1.25fr); align-items: center; gap: .55rem; color: var(--muted); font-size: .72rem; font-weight: 750; }
.admin-reporting-field select,
.admin-reporting-field input[type="number"] { width: 100%; min-height: 30px; border: 1px solid var(--soft); border-radius: 7px; background: var(--surface); color: var(--ink); padding: 0 .45rem; outline: none; }
.admin-reporting-field select:focus,
.admin-reporting-field input[type="number"]:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--accent-soft); }
.admin-reporting-field input:disabled { opacity: .55; }
.admin-reporting-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.admin-reporting-lanes .admin-reporting-field { grid-template-columns: minmax(0, 1fr) 3.25rem; }
.admin-reporting-toggle { min-height: 30px; display: flex; align-items: center; gap: .48rem; color: var(--ink); font-size: .76rem; font-weight: 750; cursor: pointer; }
.admin-reporting-toggle input { accent-color: var(--brand); }
.admin-reporting-reset { min-height: 31px; border: 1px solid var(--soft); border-radius: 7px; background: var(--surface-2); color: var(--ink); padding: .35rem .55rem; cursor: pointer; font-size: .75rem; font-weight: 800; }
.admin-reporting-reset:hover { border-color: var(--brand); color: var(--brand); }
.admin-reporting-reset.armed { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); color: var(--warn); }

.page-tools { position: fixed; top: calc(var(--app-header-height, 88px) + 8px); right: 1.75rem; z-index: 15; display: flex; align-items: flex-start; justify-content: flex-end; gap: .45rem; pointer-events: none; }
.page-tools-toggle { width: 34px; height: 34px; border: 1px solid var(--soft); border-radius: 8px; background: var(--surface); color: var(--muted); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto; }
.page-tools-body { min-height: 38px; display: flex; align-items: center; gap: .55rem; padding: .45rem; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: var(--shadow); pointer-events: auto; }
.page-tools.collapsed .page-tools-body { display: none; }
.page-tools.collapsed .page-tools-toggle svg { transform: rotate(180deg); }
.field { display: grid; gap: .28rem; color: var(--muted); font-size: .76rem; font-weight: 850; }
.field input, .field select { min-height: 36px; border: 1px solid var(--soft); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 0 .62rem; outline: none; }
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-soft); }
.compact-field select, .compact-field input { min-width: 7.6rem; }
.status-pill { min-height: 30px; display: inline-flex; align-items: center; border: 1px solid var(--border-soft); border-radius: 999px; padding: 0 .65rem; color: var(--brand); background: var(--accent-soft); font-weight: 850; font-size: .78rem; }
.status-pill.muted { color: var(--muted); background: var(--surface-2); }
.loading, .empty { color: var(--muted); font-size: .9rem; }
.empty.panel { padding: 1rem; }
#page-error:not([hidden]) { border: 1px solid color-mix(in srgb, var(--red) 26%, var(--border)); background: color-mix(in srgb, var(--red) 8%, var(--surface)); color: var(--red); border-radius: 8px; padding: .75rem .9rem; font-weight: 750; }
.air-toast-region { position: fixed; right: 1.75rem; top: calc(var(--app-header-height, 88px) + 16px); z-index: 300; display: grid; gap: .5rem; width: min(380px, calc(100vw - 2rem)); }
.air-toast { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); padding: .75rem .9rem; display: flex; align-items: flex-start; gap: .6rem; font-weight: 750; }
.air-toast.error { border-color: color-mix(in srgb, var(--red) 34%, var(--border)); color: var(--red); }
.air-toast button { margin-left: auto; border: 0; background: transparent; color: currentColor; cursor: pointer; font-size: 1rem; }
@media (max-width: 1380px) { .air-module-link.disabled { display: none; } }
@media (max-width: 1180px) {
  .reporting-header { flex-wrap: wrap; }
  .header-left { flex: 1 1 100%; flex-wrap: wrap; }
  .air-module-nav { order: 3; flex: 1 1 100%; }
}
@media (max-width: 760px) {
  .reporting-header { min-height: 70px; height: auto; padding: .55rem .9rem; }
  .header-left { gap: .7rem; flex-wrap: wrap; }
  .air-module-nav { flex-basis: 100%; order: 3; }
  .air-module-link { height: 36px; font-size: .78rem; }
  .module-mark { width: 24px; height: 24px; flex-basis: 24px; }
  .module-mark img { width: 19px; height: 19px; }
  .reporting-header .logo-link { width: min(245px, 52vw); }
  .header-right { gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
  .company-switcher.is-static, .company-switcher-trigger { max-width: 190px; }
  .company-current-copy strong { max-width: 110px; }
  .reporting-date-selector { order: 3; width: 100%; justify-content: center; }
  .reporting-date-field { min-width: 142px; }
  .shell { width: calc(100vw - 1rem); padding: 1rem 0 1.5rem; }
  .page-tools { top: calc(var(--app-header-height, 88px) + 8px); right: .5rem; left: .5rem; justify-content: flex-end; }
  .page-tools-body { flex-wrap: wrap; max-width: calc(100vw - 3rem); }
}
/* Header finish 2026-07-09 */
.reporting-header {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--white) 48%, transparent), 0 12px 34px rgba(16,32,25,.075);
}
.reporting-logo-wrap { padding-right: .15rem; }
.air-module-nav {
  min-height: 48px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--accent-soft)), color-mix(in srgb, var(--surface-2) 94%, var(--brand))),
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--brand) 5%, transparent) 0 1px, transparent 1px 18px);
  border-color: color-mix(in srgb, var(--border) 74%, transparent);
}
.air-module-link { height: 38px; }
.air-module-link.active {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
  background: color-mix(in srgb, var(--surface) 84%, var(--accent-soft));
  box-shadow: 0 8px 20px rgba(0,125,64,.13), inset 0 1px 0 color-mix(in srgb, var(--white) 55%, transparent);
}
.module-mark {
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft));
}
.air-module-link.active .module-mark {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 16%, transparent);
}
.theme-toggle,
.user-widget {
  border-color: color-mix(in srgb, var(--soft) 84%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 45%, transparent), 0 1px 2px rgba(16,32,25,.04);
}
.user-avatar { border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.user-dropdown {
  border-color: color-mix(in srgb, var(--soft) 86%, transparent);
  box-shadow: 0 18px 48px rgba(16,32,25,.18);
}

/* Header navigation scale refinement 2026-07-09 */
.air-module-nav {
  min-height: 54px;
  padding: .31rem;
  gap: .34rem;
}
.air-module-link {
  height: 43px;
  gap: .56rem;
  padding: 0 .92rem 0 .48rem;
  font-size: .88rem;
}
.module-mark {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}
.module-mark img {
  width: 23px;
  height: 23px;
}
@media (max-width: 760px) {
  .air-module-nav { min-height: 44px; padding: .24rem; gap: .28rem; }
  .air-module-link { height: 36px; gap: .45rem; padding: 0 .72rem 0 .4rem; font-size: .78rem; }
  .module-mark { width: 24px; height: 24px; flex-basis: 24px; }
  .module-mark img { width: 19px; height: 19px; }
}

/* Responsive application-header composition */
@media (max-width: 2100px) {
  .reporting-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand environment controls"
      "modules modules modules";
    column-gap: 1rem;
    row-gap: .4rem;
    padding-inline: 1.5rem;
  }
  .reporting-header .header-left { display: contents; }
  .reporting-header .reporting-logo-wrap { grid-area: brand; align-self: center; }
  .reporting-header .header-left > .header-status-badges { grid-area: environment; align-self: center; justify-self: center; }
  .reporting-header .air-module-nav {
    grid-area: modules;
    width: max-content;
    max-width: 100%;
    justify-self: center;
    overflow-x: visible;
  }
  .reporting-header .header-right {
    grid-area: controls;
    min-width: 0;
    justify-self: end;
    gap: .7rem;
  }
  .reporting-header .air-module-link.disabled { display: inline-flex; }
}

@media (max-width: 1180px) {
  .reporting-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand environment"
      "controls controls"
      "modules modules";
    padding-inline: 1rem;
  }
  .reporting-header .header-right {
    width: 100%;
    justify-self: stretch;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .reporting-header {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: .65rem;
    row-gap: .45rem;
  }
  .reporting-header .reporting-logo-wrap { min-width: 0; }
  .reporting-header .air-module-nav {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
  }
  .reporting-header .air-module-link { scroll-snap-align: start; }
}
/* Fixed application header */
body.has-app-header {
  height: auto;
  min-height: 100%;
  padding-top: var(--app-header-height, 88px);
}
body.has-app-header.has-internal-app-scroll {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}
body.has-app-header > #app-header,
body.has-app-header > .reporting-header { position: fixed; inset: 0 0 auto; z-index: 440; }
body.has-app-header > #app-header .reporting-header { position: relative; top: auto; z-index: auto; }

/* Shared table share/export control */
.table-export-control { position: relative; display: inline-flex; flex: 0 0 auto; }
.table-share-btn {
  width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--muted);
  cursor: pointer; opacity: .64; transition: opacity .15s, color .15s, border-color .15s, background .15s;
}
.table-share-btn svg { width: 18px; height: 18px; }
.table-export-control:hover .table-share-btn,
.table-export-control:focus-within .table-share-btn,
.table-share-btn.active { opacity: 1; color: var(--brand); border-color: var(--accent-bd); background: var(--accent-soft); }
.table-export-control.busy .table-share-btn { opacity: .45; }
.table-export-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 460; min-width: 11.5rem;
  padding: .3rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  box-shadow: 0 10px 28px rgba(16,32,25,.18);
}
.table-export-menu[hidden] { display: none; }
.table-export-menu button {
  width: 100%; min-height: 36px; padding: .42rem .55rem; display: flex; align-items: center; gap: .55rem;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: .8rem;
  text-align: left; cursor: pointer;
}
.table-export-menu button:hover,
.table-export-menu button:focus-visible { outline: none; color: var(--brand); background: var(--accent-soft); }
.table-export-menu button:disabled { opacity: .45; cursor: wait; }
.table-export-menu svg { width: 19px; height: 19px; flex: 0 0 19px; }
@media (hover: none) { .table-share-btn { opacity: 1; } }

/* Evaluation status and account security */
.header-status-badges { display: inline-flex; align-items: center; gap: .42rem; flex: 0 0 auto; }
.app-version {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.evaluation-badge {
  display: inline-flex; align-items: center; justify-content: center; min-height: 23px; padding: .18rem .62rem;
  border: 1px solid #8c4e00; border-radius: 999px; background: #9f5700; color: #fff;
  font: inherit; font-size: .67rem; font-weight: 950; letter-spacing: .115em; line-height: 1;
  box-shadow: 0 2px 8px rgba(130,73,0,.24); cursor: pointer;
}
.evaluation-badge:hover { background: #844900; }
.evaluation-badge:focus-visible { outline: 3px solid color-mix(in srgb, #d48714 40%, transparent); outline-offset: 2px; }
[data-theme="dark"] .evaluation-badge { border-color: #f1b64b; background: #e79a1f; color: #251704; }
[data-theme="dark"] .evaluation-badge:hover { background: #f0ac37; }
.reporting-header { --header-pad-inline: 2rem; flex-wrap: wrap; }
.evaluation-status-strip {
  grid-area: evaluation;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .58rem;
  width: calc(100% + (2 * var(--header-pad-inline)));
  min-height: 31px;
  margin: .05rem calc(-1 * var(--header-pad-inline)) -.45rem;
  padding: .28rem var(--header-pad-inline);
  border-top: 1px solid #dca84a;
  background: linear-gradient(90deg, #fff8e9 0%, #ffedc2 50%, #fff8e9 100%);
  color: #5f3904;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
}
.evaluation-notice-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 900; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.evaluation-notice-link:hover { text-decoration-thickness: 2px; }
.evaluation-notice-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
[data-theme="dark"] .evaluation-status-strip {
  border-top-color: #76541d;
  background: linear-gradient(90deg, #2c220f 0%, #3a2a0e 50%, #2c220f 100%);
  color: #f5d799;
}
@media (max-width: 2100px) {
  .reporting-header {
    --header-pad-inline: 1.5rem;
    grid-template-areas:
      "brand environment controls"
      "modules modules modules"
      "evaluation evaluation evaluation";
  }
}
@media (max-width: 1180px) {
  .reporting-header {
    --header-pad-inline: 1rem;
    grid-template-areas:
      "brand environment"
      "controls controls"
      "modules modules"
      "evaluation evaluation";
  }
}
@media (max-width: 760px) {
  .reporting-header { --header-pad-inline: .9rem; }
  .app-version { font-size: .72rem; }
  .evaluation-status-strip {
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    min-height: 31px;
    font-size: .67rem;
    text-align: left;
  }
  .evaluation-status-strip .evaluation-badge { margin-top: .05rem; }
  .evaluation-notice-link { margin-left: calc(5.75rem + .58rem); }
}
.password-change-dialog {
  position: fixed; inset: 0; width: min(31rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem);
  margin: auto; padding: 0; border: 1px solid var(--border);
  border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgba(10,30,20,.28);
}
.password-change-dialog::backdrop { background: rgba(8,25,17,.52); backdrop-filter: blur(2px); }
.password-change-dialog form > header,
.password-change-dialog form > footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; }
.password-change-dialog form > header { border-bottom: 1px solid var(--border); }
.password-change-dialog form > footer { justify-content: flex-end; border-top: 1px solid var(--border); }
.password-change-dialog h2,
.password-change-dialog p { margin: 0; }
.password-change-dialog .eyebrow { color: var(--brand); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.password-change-body { display: grid; gap: .85rem; padding: 1.15rem 1.2rem; }
.password-change-body label { display: grid; gap: .35rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.password-change-body input { width: 100%; padding: .68rem 2.8rem .68rem .75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.password-change-body input:focus { outline: 2px solid var(--accent-bd); border-color: var(--brand); }
.password-change-error { min-height: 1.1rem; color: var(--danger, #b42318); font-size: .78rem; }
.support-inline-link { justify-self: start; padding: 0; border: 0; background: transparent; color: var(--brand); font: inherit; font-size: .78rem; text-decoration: underline; cursor: pointer; }
.login-logo-wrap { position: relative; display: flex; align-items: center; justify-content: center; gap: .75rem; }
.login-app-version { position: absolute; right: .25rem; bottom: .2rem; pointer-events: none; }
.login-card-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.login-card .evaluation-badge { cursor: help; }
.login-card-toolbar .login-language-switch { align-self: auto; margin: 0; }
.login-evaluation-notice { display: grid; gap: .45rem; padding: .85rem .9rem; border: 1px solid #dca84a; border-radius: 10px; background: color-mix(in srgb, #fff1cf 72%, var(--surface)); }
.login-evaluation-notice summary { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #6a3d00; font-size: .9rem; font-weight: 750; line-height: 1.3; list-style: none; cursor: pointer; }
.login-evaluation-notice summary::-webkit-details-marker { display: none; }
.login-evaluation-notice summary::after { content: '\25BE'; flex-shrink: 0; font-size: .75rem; transition: transform .15s ease; }
.login-evaluation-notice[open] summary::after { transform: rotate(180deg); }
.login-evaluation-notice .login-evaluation-body { display: grid; gap: .3rem; padding-top: .1rem; }
.login-card .login-evaluation-notice p { margin: 0; color: var(--ink); font-size: .78rem; line-height: 1.48; }
[data-theme="dark"] .login-evaluation-notice { border-color: #76541d; background: #2f2514; }
[data-theme="dark"] .login-evaluation-notice summary { color: #f5d799; }

.password-input-control { position: relative; display: block; width: 100%; }
.password-input-control input { padding-right: 2.8rem !important; }
.password-visibility-toggle {
  position: absolute; top: 50%; right: .35rem; display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0; transform: translateY(-50%);
  border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer;
}
.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible { outline: none; background: var(--accent-soft); color: var(--brand); }
.password-visibility-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-visibility-toggle.is-visible .password-eye-slash { display: none; }

.user-center-dialog,
.air-information-dialog {
  position: fixed; inset: 0; margin: auto; padding: 0;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 28px 78px rgba(8,25,17,.3);
}
.user-center-dialog { width: min(64rem, calc(100vw - 2rem)); height: min(42rem, calc(100vh - 1rem)); }
.air-information-dialog { width: min(51rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); }
.user-center-dialog::backdrop,
.air-information-dialog::backdrop { background: rgba(8,25,17,.54); backdrop-filter: blur(3px); }
.user-center-dialog form,
.air-information-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.user-center-dialog form > header,
.user-center-dialog form > footer,
.air-information-shell > header,
.air-information-shell > footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem;
}
.user-center-dialog form > header,
.air-information-shell > header { border-bottom: 1px solid var(--border); }
.user-center-dialog form > footer,
.air-information-shell > footer { justify-content: flex-end; border-top: 1px solid var(--border); }
.user-center-dialog [data-user-center-save][hidden] { display: none !important; }
.user-center-dialog h2, .user-center-dialog h3, .user-center-dialog h4,
.air-information-dialog h2, .air-information-dialog h3,
.user-center-dialog p, .air-information-dialog p { margin: 0; }
.user-center-dialog .eyebrow,
.air-information-dialog .eyebrow { color: var(--brand); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.user-center-layout { min-height: 0; display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); }
.user-center-nav { padding: .9rem; border-right: 1px solid var(--border); background: var(--surface-2); }
.user-center-nav button {
  width: 100%; display: grid; gap: .2rem; padding: .8rem .9rem;
  border: 1px solid transparent; border-radius: 9px; background: transparent;
  color: var(--ink); text-align: left; font: inherit; font-weight: 850; cursor: pointer;
}
.user-center-nav button small { color: var(--muted); font-size: .7rem; font-weight: 650; overflow-wrap: anywhere; }
.user-center-nav button:hover { background: var(--hover); }
.user-center-nav button.active { border-color: var(--accent-bd); background: var(--accent-soft); color: var(--brand); }
.user-center-content { min-width: 0; overflow-y: auto; padding: .95rem 1.2rem 1rem; }
.user-center-content > section { display: grid; gap: .75rem; }
.user-center-content > section[hidden],
.user-settings-grid [hidden] { display: none !important; }
.user-center-heading { display: grid; gap: .35rem; }
.user-center-heading p { color: var(--muted); line-height: 1.5; }
.user-profile-hero { display: flex; align-items: center; gap: .85rem; padding: .85rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.user-profile-avatar { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 50px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: var(--white); font-size: 1rem; font-weight: 900; }
.user-profile-hero > div:last-child { display: grid; gap: .18rem; }
.user-profile-hero strong { font-size: 1.08rem; }
.user-profile-hero span { color: var(--muted); font-size: .8rem; }
.user-profile-facts { display: grid; margin: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.user-profile-facts div { display: grid; grid-template-columns: minmax(9rem, .7fr) minmax(0, 1.3fr); gap: 1rem; padding: .58rem .8rem; }
.user-profile-facts div + div { border-top: 1px solid var(--border); }
.user-profile-facts dt { color: var(--muted); font-size: .77rem; font-weight: 750; }
.user-profile-facts dd { margin: 0; font-size: .82rem; font-weight: 750; overflow-wrap: anywhere; }
.user-center-password { justify-self: start; }
.user-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.user-permission-grid article { padding: .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.user-permission-grid h4, .user-settings-section h4 { margin-bottom: .55rem; font-size: .82rem; }
.user-permission-markers { min-height: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: .42rem; }
.user-company-marker { display: inline-flex; border-radius: 5px; }
.user-department-marker {
  width: 13px; height: 13px; display: inline-block;
  border: 2px solid var(--surface); border-radius: 50%;
  background: var(--user-department-color, var(--muted));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--user-department-color, var(--muted)) 48%, var(--border));
}
.user-permission-empty { color: var(--muted); font-weight: 800; }
.user-settings-section { padding: .82rem .85rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.user-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.user-settings-grid label { display: grid; gap: .32rem; color: var(--muted); font-size: .76rem; font-weight: 750; }
.user-settings-grid select { width: 100%; min-height: 38px; padding: 0 .62rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.user-settings-grid select:focus { outline: 2px solid var(--accent-bd); border-color: var(--brand); }
.user-settings-check { grid-template-columns: auto minmax(0, 1fr); align-items: center; align-self: end; min-height: 38px; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink) !important; cursor: pointer; }
.user-settings-check input { accent-color: var(--brand); }
.user-center-status { margin-right: auto; color: var(--red); font-size: .78rem; font-weight: 750; }
.air-information-body { overflow: auto; display: grid; gap: .8rem; padding: 1.15rem 1.25rem; }
.evaluation-notice-body { gap: .75rem; }
.evaluation-notice-body p { padding: .85rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.evaluation-notice-body p:first-child { border-color: #dca84a; background: color-mix(in srgb, #fff1cf 50%, var(--surface)); }
.air-information-body section { padding: .85rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.air-information-body h3 { margin-bottom: .45rem; font-size: .86rem; color: var(--brand); }
.air-information-body p, .air-information-body li { color: var(--ink); font-size: .83rem; line-height: 1.55; }
.air-information-body ul { margin: 0; padding-left: 1.15rem; display: grid; gap: .32rem; }
@media (max-width: 760px) {
  .user-center-dialog { width: calc(100vw - 1rem); height: calc(100vh - 1rem); }
  .user-center-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .user-center-nav { display: flex; gap: .45rem; padding: .55rem; border-right: 0; border-bottom: 1px solid var(--border); }
  .user-center-nav button { min-width: 0; padding: .6rem .7rem; }
  .user-center-content { padding: .9rem; }
  .user-permission-grid, .user-settings-grid { grid-template-columns: 1fr; }
  .user-profile-facts div { grid-template-columns: 1fr; gap: .15rem; }
}

/* Bildexport direkt am Diagramm */
.chart-image-export-host { position: relative; }
.chart-image-export-action {
  position: absolute; z-index: 12; top: .42rem; right: .42rem;
  width: 30px; height: 30px; padding: 0;
  border-color: color-mix(in srgb, var(--brand) 24%, var(--border));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--muted); box-shadow: 0 4px 14px rgba(9,24,17,.13);
  opacity: 0; pointer-events: none; transform: translateY(-3px);
  transition: opacity .14s ease, transform .14s ease, color .14s ease, border-color .14s ease, background .14s ease;
}
.chart-image-export-action svg { width: 16px; height: 16px; }
.chart-image-export-host:hover > .chart-image-export-action,
.chart-image-export-host:focus-within > .chart-image-export-action,
.chart-image-export-action:focus-visible {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.chart-image-export-action:hover,
.chart-image-export-action:focus-visible {
  outline: none; border-color: var(--brand); background: var(--accent-soft); color: var(--brand);
}
.chart-image-export-action:disabled { cursor: wait; opacity: .58; }
.image-export-feedback {
  position: absolute; z-index: 14; top: 2.65rem; right: .42rem;
  width: max-content; max-width: min(260px, calc(100vw - 2rem));
  padding: .42rem .56rem; border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface); color: var(--muted); box-shadow: 0 8px 22px rgba(9,24,17,.16);
  font-size: .7rem; font-weight: 700; line-height: 1.35;
}
.image-export-feedback[data-state="success"] { border-color: var(--accent-bd); color: var(--brand); }
.image-export-feedback[data-state="error"] { border-color: color-mix(in srgb, var(--red) 38%, var(--border)); color: var(--red); }
.image-export-feedback[hidden] { display: none !important; }
@media (hover: none) {
  .chart-image-export-action { opacity: .72; pointer-events: auto; transform: none; }
}
