/* ==========================================================================
   Ecologic demo — corporate carbon & CBAM platform
   Palette follows the Ecologic apps: forest #096B45, emerald #059669,
   mint surfaces and slate ink. No external fonts or assets.
   Light + dark, desktop-first, embedded-friendly.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --brand: #096b45;
  --brand-2: #065338;
  --brand-3: #047857;
  --emerald: #059669;
  --emerald-2: #10b981;
  --logo: #6bb96c;
  --bg: #f4f7f5;
  --panel: #ffffff;
  --panel-2: #f8faf9;
  --panel-3: #f1f6f3;
  --ink: #0f1f1a;
  --ink-2: #34483f;
  --muted: #64756c;
  --faint: #8a9a91;
  --line: #e2eae5;
  --line-2: #edf3ef;
  --soft: #e9f7f0;
  --soft-2: #d7f2e5;
  --mint: #b7f0d4;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --amber-line: #fcd34d;
  --red: #b42318;
  --red-bg: #fee4e2;
  --blue: #1d4ed8;
  --blue-bg: #e8f1ff;
  --violet: #6d28d9;
  --violet-bg: #f1eafe;
  --pink: #be185d;
  --pink-bg: #fde8f1;
  --shadow-sm: 0 1px 2px rgb(15 31 26 / 0.05);
  --shadow-md: 0 2px 10px -4px rgb(15 31 26 / 0.12);
  --shadow-lg: 0 18px 44px -22px rgb(6 60 40 / 0.35);
  --r-sm: 7px;
  --r-md: 11px;
  --r-lg: 16px;
  --r-xl: 22px;
  --side-w: 236px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --brand: #0b7d51;
  --brand-2: #06402c;
  --brand-3: #059669;
  --bg: #07110d;
  --panel: #0d1b16;
  --panel-2: #0a1611;
  --panel-3: #10221a;
  --ink: #e9f3ed;
  --ink-2: #bed0c5;
  --muted: #8fa89b;
  --faint: #6d8578;
  --line: #1b3027;
  --line-2: #14251d;
  --soft: #0e2a1e;
  --soft-2: #11382a;
  --mint: #145c40;
  --amber: #fbbf24;
  --amber-bg: #33260a;
  --amber-line: #7a5a12;
  --red: #fda29b;
  --red-bg: #3b1518;
  --blue: #93b4ff;
  --blue-bg: #101f42;
  --violet: #c4b5fd;
  --violet-bg: #241a45;
  --pink: #f9a8d4;
  --pink-bg: #3a1226;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 2px 10px -4px rgb(0 0 0 / 0.55);
  --shadow-lg: 0 18px 44px -22px rgb(0 0 0 / 0.8);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }

.i { display: inline-flex; width: 18px; height: 18px; flex: none; }
.i svg { width: 100%; height: 100%; }
.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 26px; height: 26px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.tiny { font-size: 10.5px; }
.nowrap { white-space: nowrap; }
.right { margin-inline-start: auto; }
.tr { text-align: right; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shell ---------- */
.app { display: flex; min-height: 100vh; }

.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: var(--side-w);
  height: 100vh;
  flex: none;
  padding: 12px 10px;
  color: #f0fbf5;
  background:
    radial-gradient(120% 60% at 0% 0%, rgb(23 128 89 / 0.55), transparent 60%),
    linear-gradient(160deg, #0a6a46 0%, #06462f 100%);
  overflow: hidden;
}
html[data-theme="dark"] .side {
  background:
    radial-gradient(120% 60% at 0% 0%, rgb(16 95 66 / 0.5), transparent 60%),
    linear-gradient(160deg, #073d2a 0%, #052a1e 100%);
}

.side--light {
  color: var(--ink);
  background: var(--panel);
  border-inline-end: 1px solid var(--line);
}
html[data-theme="dark"] .side--light { background: var(--panel); }

.side__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 7px 11px;
}
.brand-logo { display: block; width: 166px; max-width: 100%; }
.brand-logo img { display: block; width: 100%; height: auto; }
.side:not(.side--light) .brand-logo img { filter: brightness(0) invert(1); opacity: 0.96; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #ffffff;
  color: var(--brand);
  flex: none;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.14);
}
.side--light .brand-mark { background: var(--soft); color: var(--brand); }
.brand-name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.66;
}

.side__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 13px;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}
.side--light .side__user { border-bottom-color: var(--line); }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #4ade80, #047857);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.avatar--admin { background: linear-gradient(145deg, #fcd34d, #d97706); color: #3b2503; }
.avatar--entity { background: linear-gradient(145deg, #60a5fa, #1d4ed8); }
.side__who { min-width: 0; }
.side__who strong {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side__who span {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.side--light .side__badge { background: var(--soft); color: var(--brand); }

.side__nav { display: grid; gap: 2px; padding: 12px 0; overflow-y: auto; }
.nav-label {
  padding: 10px 9px 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.5;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12.5px;
  color: inherit;
  opacity: 0.9;
  transition: background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}
.nav-item .i { opacity: 0.8; }
.nav-item:hover { background: rgb(255 255 255 / 0.1); opacity: 1; }
.side--light .nav-item:hover { background: var(--soft); }
.nav-item[aria-current="page"] {
  background: #ffffff;
  color: var(--brand);
  border-color: rgb(9 107 69 / 0.16);
  font-weight: 700;
  opacity: 1;
  box-shadow: var(--shadow-sm);
}
.side--light .nav-item[aria-current="page"] {
  background: var(--soft);
  border-color: rgb(9 107 69 / 0.16);
}
.nav-item .count {
  margin-inline-start: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  font-size: 9.5px;
  font-weight: 700;
}
.nav-item[aria-current="page"] .count { background: var(--soft-2); }
.nav-item--new {
  margin-top: 6px;
  background: #fde68a;
  color: #713f12;
  font-weight: 700;
  border-color: #fcd34d;
  opacity: 1;
}
.nav-item--new:hover { background: #fcd34d; }
.nav-sub { display: grid; gap: 1px; margin: 1px 0 4px 20px; }
.nav-sub .nav-item { min-height: 28px; padding-block: 4px; font-size: 11.5px; opacity: 0.78; }

.side__foot { margin-top: auto; padding-top: 10px; }
.side__art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 96px;
  border-radius: 14px 14px 0 0;
  background: rgb(255 255 255 / 0.07);
  overflow: hidden;
}
.side__art .leaf { width: 88px; height: 88px; color: var(--logo); opacity: 0.5; }
.side--light .side__art { background: var(--soft); }
.side__version {
  padding: 8px 4px 0;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  opacity: 0.55;
  text-align: center;
}

.main { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  flex: none;
  padding: 0 22px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 11.5px;
  color: var(--muted);
}
.crumbs strong { color: var(--ink); font-weight: 600; }
.crumbs .sep { color: var(--faint); }
.crumbs .home { color: var(--brand); font-weight: 650; }
.app-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-size: 8.8px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.top-actions { display: flex; align-items: center; gap: 7px; margin-inline-start: auto; }
.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.demo-chip .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 0 3px var(--soft);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--faint); }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.version { font-size: 9.5px; color: var(--faint); }

.content {
  flex: 1;
  min-width: 0;
  padding: 2px 22px 24px;
}
.page { display: flex; flex-direction: column; gap: 14px; }

/* ---------- type & chunks ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.page-head .sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.page-actions { display: flex; align-items: center; gap: 7px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.card--soft { background: var(--panel-2); }
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-2);
}
.card-head h2 { font-size: 13.5px; font-weight: 650; letter-spacing: -0.01em; }
.card-head .sub { font-size: 10.5px; color: var(--muted); }
.card-body { padding: 15px 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-3); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand); }
.btn--soft { background: var(--soft); color: var(--brand); border-color: var(--soft-2); }
.btn--soft:hover { background: var(--soft-2); }
.btn--ghost { background: var(--panel); border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--faint); color: var(--ink); }
.btn--amber { background: var(--amber-bg); color: #713f12; border-color: var(--amber-line); }
.btn--amber:hover { background: #fde68a; }
html[data-theme="dark"] .btn--amber { color: var(--amber); }
.btn--sm { height: 26px; padding: 0 9px; font-size: 10.5px; border-radius: 7px; }
.btn--lg { height: 40px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.chip--ok { background: var(--soft); color: #067647; }
html[data-theme="dark"] .chip--ok { color: #6ce9a6; }
.chip--warn { background: var(--amber-bg); color: var(--amber); }
.chip--bad { background: var(--red-bg); color: var(--red); }
.chip--info { background: var(--blue-bg); color: var(--blue); }
.chip--violet { background: var(--violet-bg); color: var(--violet); }
.chip--pink { background: var(--pink-bg); color: var(--pink); }
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 7px 10px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.tab[aria-selected="true"] { border-bottom-color: var(--brand); color: var(--brand); }

/* ---------- dashboard ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 148px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 130% at 100% 20%, rgb(16 185 129 / 0.28), transparent 60%),
    linear-gradient(100deg, #ffffff 38%, #d8f7e8 100%);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .hero {
  background:
    radial-gradient(80% 130% at 100% 20%, rgb(5 150 105 / 0.26), transparent 60%),
    linear-gradient(100deg, #0e211a 38%, #0a3a28 100%);
}
.hero__copy { max-width: 560px; }
.hero h1 { font-size: 24px; font-weight: 750; letter-spacing: -0.025em; line-height: 1.18; }
.hero h1 span { color: var(--brand-3); }
.hero p { margin-top: 6px; max-width: 480px; font-size: 11.8px; color: var(--ink-2); line-height: 1.55; }
.hero__actions { display: flex; align-items: center; gap: 8px; margin-top: 13px; }
.hero__art {
  position: relative;
  width: 150px;
  height: 112px;
  margin-inline-start: auto;
  flex: none;
}
.hero__art .sheet {
  position: absolute;
  inset: 6px 4px 4px 10px;
  border: 1px solid rgb(9 107 69 / 0.22);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.72);
  transform: rotate(-4deg);
  box-shadow: var(--shadow-md);
}
html[data-theme="dark"] .hero__art .sheet { background: rgb(13 27 22 / 0.8); }
.hero__art .sheet::before {
  content: "";
  position: absolute;
  inset: 14px 16px auto;
  height: 5px;
  border-radius: 4px;
  background: var(--soft-2);
  box-shadow: 0 13px 0 var(--soft-2), 0 26px 0 var(--soft-2);
}
.hero__art .badgeleaf {
  position: absolute;
  right: -2px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #10b981, #047857);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgb(4 120 87 / 0.7);
  transform: rotate(6deg);
}
.hero__art .badgeleaf .icon { width: 30px; height: 30px; }
.hero__ring {
  position: absolute;
  width: 54px; height: 54px; border-radius: 50%;
  border: 8px solid rgb(16 185 129 / 0.18);
  top: -14px; right: 28px;
}

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.kpi__ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--soft);
  color: var(--emerald);
}
.kpi__ico--amber { background: var(--amber-bg); color: var(--amber); }
.kpi__ico--blue { background: var(--blue-bg); color: var(--blue); }
.kpi__ico--rose { background: var(--pink-bg); color: var(--pink); }
.kpi__label { display: block; font-size: 9.8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__value { display: flex; align-items: baseline; gap: 4px; font-size: 18px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.kpi__value small { font-size: 9.5px; font-weight: 600; color: var(--muted); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 12px; }
.chart-wrap { padding: 4px 6px 0; }
.chart { width: 100%; height: 196px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .axis { fill: var(--faint); font-size: 9px; }
.chart .area { fill: url(#ecoArea); }
.chart .line { fill: none; stroke: var(--emerald); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart .dot { fill: var(--panel); stroke: var(--emerald); stroke-width: 2; }
.chart .dot--last { fill: var(--emerald); }
.chart-legend { display: flex; align-items: center; gap: 12px; padding: 0 16px 12px; font-size: 9.5px; color: var(--muted); }
.chart-legend .key { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend .swatch { width: 8px; height: 8px; border-radius: 3px; background: var(--emerald); }
.chart-legend .swatch--soft { background: var(--soft-2); }

/* small area chart variant */
.chart--sm { height: 142px; }

.setup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--soft-2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 90% 0%, rgb(255 255 255 / 0.65), transparent 55%),
    linear-gradient(150deg, #ecfdf5, #d1fae5);
  overflow: hidden;
}
html[data-theme="dark"] .setup-card {
  background:
    radial-gradient(120% 90% at 90% 0%, rgb(6 95 70 / 0.45), transparent 55%),
    linear-gradient(150deg, #0e2a1e, #103b2b);
  border-color: var(--line);
}
.setup-card h2 { font-size: 14px; font-weight: 700; }
.setup-card p { margin-top: 4px; font-size: 10.8px; color: var(--ink-2); line-height: 1.45; }
.setup-card__art { display: grid; place-items: center; flex: 1; min-height: 62px; }
.setup-card__art .ring {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px dashed rgb(9 107 69 / 0.3);
  color: var(--brand);
}
.setup-card__art .ring .icon { width: 28px; height: 28px; }
.setup-card .btn { width: 100%; }

.action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.action-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.action-card .glyph {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand);
}
.action-card h3 { font-size: 11.8px; font-weight: 650; }
.action-card p { font-size: 10px; color: var(--muted); }
.action-card .btn { margin-inline-start: auto; }

/* ---------- emissions ---------- */
.emis-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.emis-head .badge {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--emerald);
}
.emis-head h1 { font-size: 24px; font-weight: 750; letter-spacing: -0.025em; }
.emis-head p { font-size: 11.5px; color: var(--muted); }
.year-pick { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--emerald); font-size: 10.5px; }
.year-pick select {
  height: 28px;
  padding: 0 24px 0 9px;
  border: 1px solid var(--soft-2);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}
.total-card {
  padding: 15px 18px;
  border: 1px solid var(--soft-2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 140% at 50% 0%, rgb(16 185 129 / 0.06), transparent 65%),
    var(--panel);
  text-align: center;
}
.total-card h2 { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.total-card .value { margin-top: 3px; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; color: var(--brand-3); }
.total-card .value span.unit { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.total-card .delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 10px; color: var(--muted); }
.total-card .delta b { color: #067647; }
html[data-theme="dark"] .total-card .delta b { color: #6ce9a6; }

.fac-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.fac-card { padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-sm); }
.fac-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.fac-top h3 { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; }
.fac-top h3 .icon { color: var(--muted); }
.fac-top .addr { display: flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 9.8px; color: var(--muted); }
.fac-nums { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; }
.fac-nums .big { font-size: 22px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.fac-nums .big span { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.fac-nums .cap { font-size: 9.5px; color: var(--muted); }
.fac-nums .emp { text-align: right; }
.fac-nums .emp b { display: block; font-size: 14px; font-weight: 700; }
.fac-nums .emp span { font-size: 9.5px; color: var(--muted); }
.progress { margin-top: 9px; }
.progress .row { display: flex; justify-content: space-between; font-size: 9.3px; color: var(--muted); }
.track { height: 5px; margin-top: 4px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.track > span { display: block; height: 100%; border-radius: inherit; background: var(--emerald); }
.track > span.is-warn { background: #f59e0b; }
.track > span.is-bad { background: #ef4444; }
.foot-note { text-align: center; font-size: 10px; color: var(--muted); }

/* ---------- datasets ---------- */
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  min-width: 210px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}
.search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.fchip {
  height: 27px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 10.3px;
  font-weight: 600;
}
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--panel); }

.ds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ds-card { display: flex; flex-direction: column; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-sm); }
.ds-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.ds-name { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; line-height: 1.25; }
.ds-name .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot--violet { background: #8b5cf6; }
.dot--green { background: #22c55e; }
.dot--blue { background: #3b82f6; }
.dot--orange { background: #f97316; }
.dot--pink { background: #ec4899; }
.dot--amber { background: #eab308; }
.ds-mail { margin-top: 2px; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-rows { display: grid; gap: 5px; margin-top: 8px; }
.ds-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 5px; border-top: 1px solid var(--line-2); }
.ds-row span:first-child { font-size: 10.3px; color: var(--ink-2); }
.pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.pill--violet { background: var(--violet-bg); color: var(--violet); }
.pill--green { background: var(--soft); color: var(--brand); }
.pill--blue { background: var(--blue-bg); color: var(--blue); }
.pill--orange { background: var(--amber-bg); color: var(--amber); }
.pill--pink { background: var(--pink-bg); color: var(--pink); }
.pill--amber { background: var(--amber-bg); color: var(--amber); }
.ds-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 7px; font-size: 9.3px; color: var(--faint); }

.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.mini {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.mini .num { font-size: 17px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.mini .lbl { font-size: 9.6px; color: var(--muted); }
.mini .i { color: var(--brand); }

/* ---------- entity form ---------- */
.stepper { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); width: fit-content; }
.step { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.step b { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--panel-3); font-size: 9px; font-weight: 700; }
.step.is-done b { background: var(--soft-2); color: var(--brand); }
.step.is-active { color: var(--brand); font-weight: 700; }
.step.is-active b { background: var(--brand); color: #fff; }
.step-line { width: 18px; height: 1px; background: var(--line); }

.entity-grid { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 12px; align-items: start; }
.form-card .card-head { align-items: flex-start; }
.form-card .card-head .right { align-self: center; }
.dataset-title { font-size: 14px; font-weight: 700; }
.dataset-sub { font-size: 9.8px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.field label { font-size: 9.8px; font-weight: 650; color: var(--ink-2); }
.input,
.select {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font-size: 11px;
}
.input:focus, .select:focus { outline: 2px solid rgb(5 150 105 / 0.25); border-color: var(--emerald); }
.input--sm { height: 27px; font-size: 10.5px; }
.hint { font-size: 9.2px; color: var(--faint); }

.consumables { margin-top: 11px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.consumables table { font-size: 10.2px; }
.consumables th {
  padding: 6px 7px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 8.8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.consumables td { padding: 5px 7px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.consumables tr:last-child td { border-bottom: 0; }
.consumables tr.is-focus { background: rgb(5 150 105 / 0.045); }
.consumables .cname { font-weight: 650; font-size: 10.3px; }
.consumables .csub { display: block; font-size: 8.7px; color: var(--muted); font-weight: 400; }
.consumables input { height: 25px; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); font-size: 10px; width: 100%; min-width: 48px; }
.consumables input:focus { outline: 2px solid rgb(5 150 105 / 0.2); border-color: var(--emerald); }
.row-del { color: var(--faint); }
.row-del:hover { color: var(--red); }
.form-actions { display: flex; align-items: center; gap: 7px; margin-top: 11px; }
.form-actions .right { display: flex; gap: 7px; margin-inline-start: auto; }

.side-stack { display: grid; gap: 10px; }
.summary-card { padding: 14px; }
.summary-card h3 { font-size: 12.5px; font-weight: 700; }
.ring-wrap { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ring {
  --p: 74;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--emerald) calc(var(--p) * 1%), var(--panel-3) 0);
  position: relative;
}
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--panel); }
.ring b { position: relative; font-size: 14px; font-weight: 750; }
.ring small { position: relative; display: block; font-size: 7px; color: var(--muted); text-align: center; font-weight: 600; }
.ring-wrap .rt { font-size: 10.3px; color: var(--muted); line-height: 1.45; }
.checklist { display: grid; gap: 6px; margin-top: 11px; }
.check { display: flex; align-items: flex-start; gap: 6px; font-size: 10.3px; color: var(--ink-2); }
.check .box { display: grid; place-items: center; width: 14px; height: 14px; flex: none; margin-top: 1px; border-radius: 4px; background: var(--soft); color: var(--brand); }
.check .box .icon { width: 10px; height: 10px; stroke-width: 2.6; }
.check.is-pending .box { background: var(--panel-3); color: var(--faint); }
.check small { display: block; color: var(--muted); font-size: 9.2px; }
.tip { display: flex; gap: 7px; padding: 10px 11px; border: 1px solid var(--amber-line); border-radius: 10px; background: var(--amber-bg); color: #713f12; font-size: 9.8px; line-height: 1.45; }
html[data-theme="dark"] .tip { color: var(--amber); }
.tip .i { color: var(--amber); margin-top: 1px; }

/* ---------- admin ---------- */
.admin-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 10px; }
.admin-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 106px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  color: #f8fafc;
  background:
    linear-gradient(100deg, rgb(15 23 42 / 0.94), rgb(15 23 42 / 0.55)),
    radial-gradient(120% 150% at 90% 0%, #0f766e, transparent 60%),
    #0f172a;
  overflow: hidden;
}
.admin-banner::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 28px solid rgb(16 185 129 / 0.18);
}
.admin-banner h1 { font-size: 19px; letter-spacing: 0.08em; font-weight: 800; }
.admin-banner p { max-width: 430px; margin-top: 4px; font-size: 10.2px; line-height: 1.45; color: rgb(226 232 240 / 0.78); }
.admin-banner .btn { margin-top: 8px; width: fit-content; background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.25); color: #fff; }
.admin-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-stat { display: flex; flex-direction: column; justify-content: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); text-align: center; }
.admin-stat .ico { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 3px; border-radius: 7px; background: var(--soft); color: var(--emerald); }
.admin-stat .ico--amber { background: var(--amber-bg); color: var(--amber); }
.admin-stat .ico--blue { background: var(--blue-bg); color: var(--blue); }
.admin-stat .ico--rose { background: var(--pink-bg); color: var(--pink); }
.admin-stat b { font-size: 19px; font-weight: 780; letter-spacing: -0.03em; line-height: 1.1; }
.admin-stat span { font-size: 9.2px; color: var(--muted); }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.table { font-size: 10.5px; }
.table th {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 8.9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.table td { padding: 6px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--panel-2); }
.table .company { font-weight: 650; font-size: 10.8px; }
.table .mail { display: block; font-size: 9px; color: var(--muted); }
.table .when { display: flex; align-items: center; gap: 4px; color: var(--muted); white-space: nowrap; }
.table .actions { display: flex; gap: 5px; }
.table .icon-btn { width: 25px; height: 25px; border-radius: 6px; }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 6px 11px; font-size: 9.6px; color: var(--muted); }
.pager { display: flex; gap: 3px; }
.pager button { min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); font-size: 9px; color: var(--muted); }
.pager button[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.admin-filters { padding: 10px 16px 8px; }
.empty-rows { padding: 22px; text-align: center; color: var(--muted); font-size: 11px; }

/* ---------- public calculator ---------- */
.pub { min-height: 100vh; background: var(--bg); }
.pub-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 58px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(8px);
}
.pub-brand { display: flex; align-items: center; gap: 8px; flex: none; }
.pub-logo { display: block; width: 190px; height: auto; }
.pub-links { display: flex; align-items: center; gap: 18px; margin-inline-start: 18px; }
.pub-links a { font-size: 11.5px; color: var(--muted); font-weight: 550; }
.pub-links a:hover, .pub-links a[aria-current="page"] { color: var(--brand); }
.pub-links a[aria-current="page"] { font-weight: 700; }
.pub-right { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.pub-main { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0 26px; }
.pub-head { text-align: center; max-width: 720px; margin: 0 auto 14px; }
.pub-kicker { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--brand); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pub-head h1 { margin-top: 8px; font-size: 27px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; }
.pub-head h1 em { font-style: normal; background: linear-gradient(90deg, #2563eb, #7c3aed, #059669); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub-head p { margin-top: 5px; font-size: 11.5px; color: var(--muted); }

.calc-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.calc-form { padding: 20px 22px; border-inline-end: 1px solid var(--line); }
.calc-form h2 { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 750; }
.calc-form .sub { margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.calc-grid .field { gap: 4px; }
.calc-grid .input, .calc-grid .select { height: 36px; font-size: 11.5px; }
.calc-grid .hint { margin-top: -1px; }
.calc-grid .span2 { grid-column: span 2; }
.calc-note { display: flex; gap: 6px; margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: var(--blue-bg); color: var(--blue); font-size: 9.6px; line-height: 1.4; }
.range-wrap { display: flex; align-items: center; gap: 9px; }
.range-wrap input[type="range"] { flex: 1; accent-color: var(--emerald); height: 4px; }
.range-val { min-width: 58px; font-size: 11px; font-weight: 750; text-align: right; }
.unit-toggle { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--panel-3); }
.unit-toggle button { padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; color: var(--muted); }
.unit-toggle button[aria-pressed="true"] { background: var(--emerald); color: #fff; }
.calc-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.calc-actions .hint { margin-inline-start: auto; }

.calc-result {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(16 185 129 / 0.1), transparent 60%),
    var(--panel-2);
}
.calc-result h2 { font-size: 14px; font-weight: 750; }
.calc-result .sub { margin-top: 1px; font-size: 10px; color: var(--muted); }
.cost-line { margin-top: 12px; }
.cost-line .lbl { font-size: 10px; color: var(--muted); }
.cost-line .amount { display: flex; align-items: baseline; gap: 5px; font-size: 38px; font-weight: 820; letter-spacing: -0.045em; line-height: 1.05; color: var(--brand-3); }
.cost-line .amount small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.cost-line .egp { margin-top: 2px; font-size: 10px; color: var(--muted); }
.result-mid { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.donut {
  --p: 38;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--emerald) calc(var(--p) * 1%), var(--panel-3) 0);
  position: relative;
}
.donut::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--panel-2); }
.donut .in { position: relative; text-align: center; }
.donut b { display: block; font-size: 19px; font-weight: 780; letter-spacing: -0.03em; line-height: 1; }
.donut small { display: block; margin-top: 1px; font-size: 8.5px; color: var(--muted); }
.res-rows { display: grid; gap: 6px; flex: 1; }
.res-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line); font-size: 10px; }
.res-row:last-child { border-bottom: 0; }
.res-row span { color: var(--muted); }
.res-row b { font-weight: 700; }
.result-callout { margin-top: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); font-size: 9.8px; line-height: 1.5; color: var(--ink-2); }
.result-callout b { color: var(--brand-3); }
.calc-result .btn { margin-top: auto; width: 100%; }
.calc-result .btn--primary { margin-top: 12px; }
.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.value-strip article {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.value-strip .vico {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 7px;
  background: var(--soft);
  color: var(--brand);
}
.value-strip b { display: block; font-size: 10.3px; font-weight: 650; }
.value-strip span { display: block; font-size: 9.2px; color: var(--muted); }

.pub-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 9.5px; color: var(--faint); }
.pub-foot .keys { display: flex; gap: 12px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  max-width: min(440px, calc(100vw - 32px));
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 11px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .side { width: 208px; }
  .dash-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .ds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .app { display: block; }
  .side {
    position: static;
    width: 100%;
    height: auto;
    padding: 8px 10px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
  }
  .side__brand { padding: 2px 4px; }
  .side__user { display: none; }
  .side__nav { display: flex; gap: 2px; padding: 0; overflow: visible; }
  .nav-label, .side__foot, .nav-sub { display: none; }
  .nav-item { white-space: nowrap; }
  .nav-item > span:not(.i):not(.count) { display: none; }
  .nav-item { padding: 7px; }
  .nav-item .i { opacity: 1; }
  .demo-chip, .version, .app-chip { display: none; }
  .consumables { overflow-x: auto; }
  .consumables table { min-width: 560px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .right { width: 100%; margin-inline-start: 0; justify-content: flex-end; }
  .topbar { padding: 0 14px; }
  .content { padding: 2px 14px 20px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .entity-grid, .admin-hero, .calc-card { grid-template-columns: minmax(0, 1fr); }
  .calc-form { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .hero__art { display: none; }
  .fac-grid { grid-template-columns: minmax(0, 1fr); }
  .ds-grid { grid-template-columns: minmax(0, 1fr); }
  .pub-links { display: none; }
  .pub-nav { padding: 0 16px; }
  .pub-main { width: calc(100% - 24px); }
  .pub-head h1 { font-size: 22px; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .pub-nav { gap: 10px; }
  .pub-right { gap: 6px; }
  .pub-right .btn--ghost { display: none; }
  .pub-logo { width: 160px; }
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-grid .span2 { grid-column: auto; }
  .value-strip { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- public homepage ---------- */
.landing-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 14px 0 22px; }
.landing-hero { text-align: center; padding: 14px 0 2px; }
.landing-hero h1 {
  max-width: 860px;
  margin: 0 auto;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.landing-hero .green { position: relative; display: inline-block; color: var(--brand-3); }
.landing-hero .green svg {
  position: absolute;
  left: 4%;
  bottom: -7px;
  width: 92%;
  height: 12px;
  color: var(--brand-3);
  opacity: 0.75;
}
.landing-hero p {
  margin-top: 11px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.landing-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; }
.landing-actions .btn--primary { border-radius: 11px; background: var(--brand-3); }
.landing-visual {
  position: relative;
  height: 348px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.landing-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 84px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.landing-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.landing-services {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.landing-services > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 10px;
  color: var(--muted);
  font-weight: 550;
}
.landing-services .i { color: var(--emerald); border: 0; padding: 0; background: none; }

@media (max-width: 860px) {
  .landing-main { width: calc(100% - 28px); }
  .landing-hero h1 { font-size: 38px; }
  .landing-hero p { font-size: 13px; }
  .landing-visual { height: 250px; border-radius: 20px; }
}
@media (max-width: 560px) {
  .landing-hero h1 { font-size: 31px; }
  .landing-hero .green svg { bottom: -4px; height: 8px; }
  .landing-visual { height: 190px; border-radius: 16px; }
  .landing-actions { flex-direction: column; }
}
