/* Bygginnsikt — colours and type from the Caverion Brand Manual (2020) */
:root {
  --blue: #002d6e;        /* Caverion Blue */
  --green: #008f3c;       /* Caverion Primary Green: typography and lines only */
  --concrete: #fff5f2;    /* Caverion Warm Concrete */
  --lightblue: #0073be;
  --turq: #46bcaf;
  --turq2: #009ba5;
  --lime: #b4d200;
  --green2: #73a00f;
  --orange: #ff9d00;
  --magenta: #f54373;
  --ink: #1d2b4f;
  --muted: #5f6b85;
  --line: #f0e2dd;
  --good: #73a00f;  --good-d: #4f700a;
  --mod: #ff9d00;   --mod-d: #b36b00;
  --crit: #f54373;  --crit-d: #c41d4b;
  --shadow: 0 1px 2px rgba(0,45,110,.05), 0 6px 20px rgba(0,45,110,.06);
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Cairo, system-ui, sans-serif;
  background: var(--concrete);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lightblue); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--lightblue); outline-offset: 2px; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar {
  background: #fff; border-right: 1px solid var(--line);
  padding: 22px 14px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 22px; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); padding: 0 6px; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-name { display: block; font-size: 23px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.brand-name b { color: var(--green); font-weight: 700; }
.brand-sub { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; margin-top: 4px; }
nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 0 12px; margin: 10px 0 4px; }
nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; position: relative;
}
nav a .ic { width: 26px; height: 26px; color: var(--blue); flex: none; }
nav a:hover { background: var(--concrete); }
nav a.active { background: var(--concrete); color: var(--blue); }
nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--green); }
.sidebar-foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.foot-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.foot-customer { color: var(--blue); font-weight: 700; font-size: 15px; }
.foot-powered { color: var(--green); font-weight: 600; margin-top: 8px; }

.main { min-width: 0; padding: 24px 30px 48px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar h1 { margin: 0; font-size: 32px; line-height: 1.15; color: var(--blue); font-weight: 700; }
.subtitle { color: var(--green); font-weight: 600; margin: 2px 0 0; font-size: 16px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--muted); font-size: 13px; white-space: nowrap; }
.lang { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; font-weight: 700; color: var(--muted); padding: 3px 13px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }

/* ---------- Layout ---------- */
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-1-1-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.footnote { color: var(--muted); font-size: 12.5px; margin: 4px 2px 0; }

/* ---------- Cards ---------- */
.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h2 { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.meta { font-size: 13px; color: var(--muted); }
.meta b { color: var(--blue); font-size: 15px; }

.kpi { flex-direction: row; align-items: center; gap: 12px; padding: 16px; }
.kpi > .ic { width: 54px; height: 54px; flex: none; color: var(--blue); }
.kpi-body { min-width: 0; }
.kpi-label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; line-height: 1.3; }
.kpi-value { font-size: 30px; font-weight: 700; color: var(--blue); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-value small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.kpi-sub { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.link-btn { border: 0; background: none; padding: 0; color: var(--lightblue); font-weight: 700; cursor: pointer; font-size: 12.5px; }
.link-btn:hover { text-decoration: underline; }
.trend { font-weight: 700; white-space: nowrap; }
.trend.good { color: var(--good-d); }
.trend.bad { color: var(--crit-d); }

.chart { position: relative; height: 260px; }
.chart.sm { height: 210px; }
.chart.lg { height: 300px; }
.scroll-y { max-height: 250px; overflow-y: auto; overflow-x: hidden; }

/* ---------- Savings ---------- */
.save-hero {
  flex-direction: row; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  border-left: 6px solid var(--green); background: linear-gradient(90deg, #eef7f1, #fff 65%);
}
.save-hero.potential { border-left-color: var(--turq2); background: linear-gradient(90deg, #eaf6f7, #fff 65%); }
.save-hero.with-body { flex-direction: column; align-items: stretch; justify-content: flex-start; }
.save-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.save-main .ic { width: 66px; height: 66px; color: var(--green); flex: none; }
.potential .save-main .ic { color: var(--turq2); }
.save-tag { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #fff; background: var(--green); border-radius: 999px; padding: 1px 9px; }
.potential .save-tag { background: #00737a; }
.save-label { font-weight: 600; color: var(--blue); margin-top: 4px; line-height: 1.3; }
.save-value { font-size: 36px; font-weight: 700; color: var(--green); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.potential .save-value { color: #00737a; }
.save-value small.per { font-size: 16px; color: var(--muted); font-weight: 600; }
.save-sub { font-size: 13px; color: var(--muted); line-height: 1.35; }
.save-stats { display: flex; gap: 14px 26px; flex-wrap: wrap; }
.save-stats b { display: block; font-size: 20px; color: var(--blue); line-height: 1.2; white-space: nowrap; }
.save-stats span { font-size: 12px; color: var(--muted); }
.save-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.save-list li > a, .save-list li > div {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(50px, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink);
}
.save-list li > a:hover { background: var(--concrete); }
.sl-l { font-size: 14px; line-height: 1.3; }
.sl-l small { display: block; color: var(--muted); font-size: 12px; }
.sl-bar { height: 8px; background: #eef1f6; border-radius: 4px; overflow: hidden; }
.sl-bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.save-list b { color: #00702f; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl-total > div { border-top: 2px solid var(--green); margin-top: 4px; border-radius: 0; }
.sl-total .sl-l { color: var(--blue); font-weight: 700; }
.sl-total b { font-size: 17px; }
.potential .sl-bar i, .potential-list .sl-bar i { background: var(--turq2); }
.potential .save-list b, .potential-list b { color: #00737a; }
.potential .sl-total > div, .potential-list .sl-total > div { border-top-color: var(--turq2); }
.save-note { font-size: 12.5px; color: var(--muted); margin: 8px 10px 0; }
.svc-save { font-size: 13px; font-weight: 700; color: #00702f; background: #eef7f1; border-radius: 8px; padding: 5px 10px; }
.svc-save.potential { color: #00737a; background: #eaf6f7; }
.scope.save { border-left-color: var(--green); background: #eef7f1; }

/* ---------- Locked services / upsell ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-unlock {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--blue), #00418f); color: #fff; font-weight: 700; font-size: 15px;
  padding: 10px 22px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,45,110,.25); transition: background .15s, transform .12s;
}
.btn-unlock:hover { background: var(--green); transform: translateY(-1px); }
.btn-unlock .ic { width: 18px; height: 18px; }
.btn-unlock.sm { padding: 5px 14px; font-size: 13px; box-shadow: none; }
.btn-ghost { border: 1px solid #e6d6d0; background: #fff; color: var(--blue); font-weight: 700; padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.btn-ghost:hover { background: var(--concrete); }
.btn-ghost.sm { padding: 4px 12px; font-size: 13px; }
.lock-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mod-d); background: #fff1d9; border-radius: 999px; padding: 1px 9px 1px 7px; }
.lock-tag .ic { width: 12px; height: 12px; }
.lock-tag.mini { font-size: 10px; padding: 0 7px 0 5px; vertical-align: 1px; }

.lock-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 16px;
  background: #fff8ea; border: 1px solid #ffe0a8; border-radius: var(--r); color: var(--ink); font-size: 14px; font-weight: 600;
}
.lock-banner > .ic { width: 22px; height: 22px; color: var(--mod-d); flex: none; }
.lock-banner span { flex: 1; min-width: 200px; }
.locked-wrap { position: relative; min-height: 640px; }
.locked-rest {
  filter: blur(5px) saturate(.6); opacity: .7; pointer-events: none; user-select: none;
  max-height: 980px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 45%, transparent 98%); mask-image: linear-gradient(#000 45%, transparent 98%);
}
.teaser-card {
  position: absolute; left: 50%; top: 36px; transform: translateX(-50%); width: min(560px, calc(100% - 24px));
  background: linear-gradient(90deg, var(--blue), #0aa537) top / 100% 5px no-repeat, #fff;
  border-radius: 18px; padding: 28px 28px 22px; box-shadow: 0 20px 60px rgba(0,45,110,.22); text-align: left;
}
.teaser-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.teaser-top > .ic { width: 64px; height: 64px; color: var(--blue); flex: none; }
.teaser-top h2 { margin: 4px 0 0; font-size: 23px; line-height: 1.2; color: var(--blue); }
.teaser-card > p { margin: 0 0 14px; color: var(--ink); }
.teaser-fig { background: linear-gradient(90deg, #eef7f1, #f4faf6); border-left: 5px solid var(--green); border-radius: 0 10px 10px 0; padding: 10px 16px; margin-bottom: 14px; }
.teaser-fig b { display: block; font-size: 30px; color: var(--green); line-height: 1.15; }
.teaser-fig span { font-size: 13px; color: var(--muted); }
.teaser-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.teaser-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.teaser-list .ic { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 1px; }
.teaser-card .btn-unlock { width: 100%; padding: 13px; font-size: 16px; }
.teaser-foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

nav a.locked { color: var(--muted); }
nav a.locked .ic { color: #8a94ab; }
.nav-lock { margin-left: auto; display: inline-flex; }
.nav-lock .ic { width: 16px !important; height: 16px !important; color: var(--mod-d) !important; }
.svc.locked { background: linear-gradient(180deg, #fff, #fffaf3); outline: 1px dashed #ffd28a; }
.svc.locked .svc-top > .ic { color: #8a94ab; }
.svc.locked .svc-metrics { filter: blur(5px); user-select: none; }
.svc.locked .svc-go { color: var(--mod-d); display: inline-flex; align-items: center; gap: 4px; }
.svc-go .ic { width: 15px; height: 15px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,25,60,.45); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; position: relative; box-shadow: 0 24px 70px rgba(0,0,0,.3); border-top: 5px solid var(--blue); }
.modal-body { padding: 26px 28px; }
.modal-x { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.modal-x:hover { background: var(--concrete); }
.order-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 12px; }
.order-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--blue); }
.order-form .full { grid-column: 1 / -1; }
.order-form input, .order-form select, .order-form textarea { font: inherit; font-size: 14px; font-weight: 400; border: 1px solid #e6d6d0; border-radius: 8px; padding: 8px 10px; color: var(--ink); background: #fff; }
.order-form input:focus-visible, .order-form textarea:focus-visible, .order-form select:focus-visible { outline: 2px solid var(--lightblue); outline-offset: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.order-ok { text-align: center; padding: 10px 0; }
.order-ok > .ic { width: 64px; height: 64px; color: var(--green); }
.order-ok h2 { color: var(--blue); margin: 8px 0 6px; }
.order-ok .modal-actions { justify-content: center; margin-top: 16px; }

.demo { position: relative; }
.demo-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed #c9a24a; background: #fffaf0; color: var(--mod-d); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.demo-btn .ic { width: 16px; height: 16px; }
.demo-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; background: #fff; border-radius: 14px; box-shadow: 0 16px 48px rgba(0,45,110,.2); padding: 16px; z-index: 50; border-top: 4px solid var(--orange); }
.demo-h { font-weight: 700; color: var(--blue); }
.demo-p { font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; line-height: 1.4; }
.switch { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch:hover { background: var(--concrete); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { width: 34px; height: 20px; border-radius: 999px; background: #d5dbe6; position: relative; flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked + .sw { background: var(--green); }
.switch input:checked + .sw::after { left: 17px; }
.switch input:focus-visible + .sw { outline: 2px solid var(--lightblue); outline-offset: 2px; }
.switch .ic { width: 20px; height: 20px; color: var(--blue); }
.sw-l { flex: 1; }
.switch em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.demo-actions { display: flex; gap: 8px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- Status ---------- */
.cond { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.cond svg { width: 13px; height: 13px; flex: none; }
.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.good { background: #eef5dc; color: var(--good-d); }
.pill.moderate { background: #fff1d9; color: var(--mod-d); }
.pill.critical { background: #fde3ea; color: var(--crit-d); }
.pill.neutral { background: #e8eef7; color: var(--blue); }

.cond-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.cond-tile {
  --c: var(--good); --cd: var(--good-d);
  border: 0; cursor: pointer; border-radius: 12px; padding: 14px 6px 10px;
  background: color-mix(in srgb, var(--c) 13%, #fff); border-top: 4px solid var(--c);
  color: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  transition: transform .12s, box-shadow .12s;
}
.cond-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cond-tile.moderate { --c: var(--mod); --cd: var(--mod-d); }
.cond-tile.critical { --c: var(--crit); --cd: var(--crit-d); }
.cond-tile .ic { width: 40px; height: 40px; color: var(--cd); }
.cond-tile .n { font-size: 30px; font-weight: 700; line-height: 1.2; }
.cond-tile .l { font-weight: 600; font-size: 14px; }
.cond-tile .v { font-size: 12px; color: var(--cd); font-weight: 700; margin-top: 4px; }
.cond-tile[aria-pressed="true"] { outline: 2px solid var(--blue); outline-offset: 2px; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- Tables ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
select, input[type="search"] {
  font: inherit; font-size: 14px; border: 1px solid #e6d6d0; border-radius: 8px; padding: 5px 10px;
  background: #fff; color: var(--ink); min-height: 34px;
}
input[type="search"] { min-width: 200px; }
.table-wrap { overflow: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { position: sticky; top: 0; background: #fff; text-align: left; font-weight: 700; color: var(--blue); border-bottom: 2px solid var(--green); white-space: nowrap; padding: 0; z-index: 1; }
th button { all: unset; cursor: pointer; display: block; padding: 8px 10px; width: 100%; box-sizing: border-box; }
th button:focus-visible { outline: 2px solid var(--lightblue); }
td { padding: 6px 10px; border-bottom: 1px solid #f6ece8; white-space: nowrap; }
td.wrap { white-space: normal; min-width: 220px; }
#tblT td, #tblT .pill { white-space: normal; } /* case list: wrap text so all columns fit in the portal iframe */
#tblT .muted { font-size: 12px; }
tbody tr:hover { background: var(--concrete); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num button { text-align: right; }
.empty { text-align: center; color: var(--muted); padding: 24px; }
.table-foot { font-size: 12.5px; color: var(--muted); padding-top: 8px; }

/* ---------- Energy ---------- */
.insights { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.insights li { display: block; padding: 10px 12px; border-radius: 10px; background: var(--concrete); font-size: 14px; line-height: 1.4; border-left: 4px solid var(--lightblue); }
.insights li.warn { border-left-color: var(--mod); }
.insights li.good { border-left-color: var(--good); }
.insights li b { color: var(--blue); }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 11px; color: var(--muted); }
.heat div { height: 24px; border-radius: 3px; }
.heat .hl { height: auto; text-align: center; }
.heat .dl { height: 24px; line-height: 24px; font-weight: 600; }
.heat-scale { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.heat-scale span.bar { flex: 0 0 160px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgb(232,240,248), rgb(0,45,110)); }

/* ---------- Overview ---------- */
.hero {
  background: linear-gradient(115deg, var(--blue) 0%, #00418f 70%, #005aa8 100%);
  color: #fff; border-radius: var(--r); padding: 28px 32px; position: relative; overflow: hidden; margin-bottom: 16px;
}
.hero h2 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.2; }
.hero p { margin: 6px 0 0; max-width: 640px; opacity: .9; }
.hero-stats { display: flex; gap: 34px; margin-top: 20px; flex-wrap: wrap; position: relative; }
.hero-stats div b { display: block; font-size: 28px; line-height: 1.1; }
.hero-stats div span { font-size: 13px; opacity: .85; }
.hero-c { position: absolute; right: -40px; top: -50px; width: 300px; height: 300px; opacity: .22; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.svc { text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; gap: 12px; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,45,110,.12); }
.svc-top { display: flex; align-items: center; gap: 12px; }
.svc-top > .ic { width: 58px; height: 58px; color: var(--blue); flex: none; }
.svc h3 { margin: 0; color: var(--blue); font-size: 19px; line-height: 1.2; }
.svc .tag { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
.svc p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.svc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.svc-metrics b { display: block; font-size: 22px; color: var(--blue); line-height: 1.15; }
.svc-metrics span { font-size: 12px; color: var(--muted); }
.svc-go { color: var(--green); font-weight: 700; font-size: 14px; }
.attention { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.attention a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--concrete); text-decoration: none; color: var(--ink); font-size: 14px; }
.attention a:hover { background: #fde9e2; }
.attention .pill { flex: none; }
.attention .go { margin-left: auto; color: var(--green); font-weight: 700; }

/* ---------- Environmental report ---------- */
.env-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.env-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 6px 0 18px; }
.env-tile { text-align: center; }
.env-tile .ic { width: 100%; max-width: 104px; aspect-ratio: 1; color: var(--blue); display: block; margin: 0 auto; }
.env-box { background: var(--blue); color: #fff; border-radius: 10px; padding: 8px 6px; margin-top: -4px; position: relative; }
.env-box .l { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; opacity: .9; }
.env-box .v { font-size: 21px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.env-box .u { font-size: 12px; opacity: .85; }
.env-intro { color: var(--ink); font-size: 14.5px; margin: 0 0 16px; }
.env-side h3 { margin: 0 0 8px; color: var(--blue); font-size: 18px; }
.env-side p { font-size: 14px; margin: 0 0 12px; }
.scope { border-left: 4px solid var(--green); padding: 10px 14px; background: var(--concrete); border-radius: 0 10px 10px 0; margin-top: 10px; }
.scope .k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--blue); }
.scope .v { font-size: 26px; font-weight: 700; color: var(--green); line-height: 1.2; }
.scope .d { font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .env-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1150px) {
  .g-2-1, .g-1-2, .g-1-1, .g-1-1-1, .env-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { height: auto; flex-direction: row; align-items: center; padding: 8px 12px; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .brand-sub, .nav-label, .sidebar-foot, nav a span { display: none; }
  nav { flex-direction: row; }
  nav a.active::before { left: 8px; right: 8px; top: auto; bottom: -2px; width: auto; height: 3px; border-radius: 3px; }
}
@media (max-width: 640px) {
  .main { padding: 16px; }
  .kpis, .env-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar h1 { font-size: 26px; }
  .kpi > .ic { width: 44px; height: 44px; }
  .kpi-value { font-size: 26px; }
  .brand-name { font-size: 19px; }
  .chip { display: none; }
  .demo-btn span { display: none; }
  .order-form { grid-template-columns: 1fr; }
  .teaser-card { top: 12px; padding: 20px; }
  .demo-panel { position: fixed; left: 16px; right: 16px; top: 120px; width: auto; }
}
.attention a > span:nth-child(2) { flex: 1; text-align: left; }
