:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --text: #17211c;
  --muted: #66736b;
  --line: #dfe7e2;
  --green: #276a50;
  --green-strong: #174c38;
  --green-soft: #e8f3ed;
  --lime: #b9da69;
  --amber: #b46a18;
  --amber-soft: #fff3df;
  --red: #a73f3f;
  --red-soft: #fdecec;
  --blue: #376d9d;
  --shadow: 0 18px 55px rgba(20, 50, 36, 0.09);
  --shadow-small: 0 8px 26px rgba(20, 50, 36, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 70px;
  padding: 12px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--green);
}
.brand-mark svg { width: 24px; height: 24px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.demo-pill, .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #cfe2d7;
  border-radius: 999px;
  color: var(--green-strong);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 750;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(39,106,80,.11); }
.demo-notice {
  padding: 9px 26px;
  border-bottom: 1px solid #ead7b9;
  background: #fff8eb;
  color: #6d4b20;
  font-size: 13px;
  text-align: center;
}

.button {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 760;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .nav-item:focus-visible, .filter-chip:focus-visible, .text-button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid rgba(55,109,157,.28); outline-offset: 2px; }
.button-small { min-height: 38px; padding: 8px 13px; font-size: 13px; }
.button-primary { color: white; background: var(--green); box-shadow: 0 8px 22px rgba(39,106,80,.2); }
.button-primary:hover { background: var(--green-strong); }
.button-secondary { color: var(--green-strong); background: #fff; border-color: #b8cec1; }
.button-secondary:hover { background: var(--green-soft); }
.button-ghost { color: var(--text); background: transparent; border-color: var(--line); }
.button-ghost:hover { background: var(--surface-soft); }

.app-shell { min-height: calc(100vh - 106px); display: grid; grid-template-columns: 248px 1fr; }
.sidebar {
  position: sticky;
  top: 106px;
  height: calc(100vh - 106px);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  background: #f9fbfa;
  border-right: 1px solid var(--line);
}
.company-card { padding: 11px; display: flex; gap: 10px; align-items: center; border-radius: 14px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-small); }
.company-logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--green-strong); color: white; font-weight: 800; font-size: 13px; }
.company-card strong, .company-card span { display: block; }
.company-card strong { font-size: 13px; }
.company-card span { color: var(--muted); font-size: 11px; }
.side-nav { margin-top: 22px; display: grid; gap: 6px; }
.nav-item {
  width: 100%;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  color: #506058;
  background: transparent;
  text-align: left;
  font-weight: 680;
}
.nav-item:hover { color: var(--text); background: #edf3ef; }
.nav-item.active { color: var(--green-strong); background: var(--green-soft); }
.nav-icon { width: 22px; text-align: center; font-size: 17px; }
.nav-count { margin-left: auto; min-width: 24px; padding: 2px 6px; border-radius: 999px; background: rgba(39,106,80,.12); font-size: 11px; text-align: center; }
.sidebar-foot { margin-top: auto; padding: 14px; border-radius: 14px; color: var(--muted); background: #eef4f0; font-size: 12px; }
.sidebar-foot p { margin: 0 0 7px; }
.sidebar-foot strong { color: var(--text); }
.sidebar-foot a { color: var(--green-strong); font-weight: 700; }

.main-content { min-width: 0; padding: 32px clamp(20px, 4vw, 56px) 60px; }
.dashboard-section { max-width: 1320px; margin: 0 auto; animation: section-in .28s ease; }
@keyframes section-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin: 2px 0 5px; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -0.045em; }
.page-heading p { max-width: 720px; margin: 0; color: var(--muted); }
.eyebrow { margin: 0 0 5px !important; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.heading-controls { min-width: 150px; display: grid; gap: 6px; }
.heading-controls label { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
select, input[type="search"] { min-height: 42px; padding: 9px 35px 9px 12px; border: 1px solid #cdd8d1; border-radius: 11px; color: var(--text); background: #fff; }
.search-control { min-width: min(340px, 100%); }
.search-control input { padding-right: 12px; }

.metric-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { min-height: 142px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); }
.metric-card.accent-card { color: white; border-color: transparent; background: linear-gradient(135deg, #1f6147 0%, #347f5e 65%, #4f9974 100%); overflow: hidden; position: relative; }
.metric-card.accent-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -60px; bottom: -85px; border-radius: 50%; background: rgba(255,255,255,.1); }
.metric-label { margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 720; }
.accent-card .metric-label { color: rgba(255,255,255,.8); }
.metric-value { font-size: clamp(29px, 3vw, 42px); font-weight: 840; letter-spacing: -0.045em; line-height: 1; }
.metric-subtext, .metric-trend { margin-top: 11px; color: var(--muted); font-size: 12px; }
.accent-card .metric-trend { color: #e7f7ec; }

.dashboard-grid { margin-bottom: 20px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, .7fr); gap: 20px; }
.panel, .report-card, .license-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); }
.panel { padding: 22px; }
.panel-heading { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.panel-heading h2 { margin: 0; font-size: 20px; letter-spacing: -0.025em; }
.panel-heading p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.panel-heading-split { align-items: center; }
.text-button { border: 0; color: var(--green); background: none; font-weight: 780; }
.chart { height: 260px; display: grid; grid-template-columns: 45px 1fr; }
.chart-y-labels { padding: 3px 8px 27px 0; display: flex; flex-direction: column; justify-content: space-between; color: #829087; font-size: 10px; text-align: right; }
.chart-area { position: relative; min-width: 0; }
.chart-area svg { position: absolute; inset: 0 0 28px; width: 100%; height: calc(100% - 28px); overflow: visible; }
.grid-line { position: absolute; left: 0; right: 0; border-top: 1px dashed #dce5df; }
.line-1 { top: 25%; }.line-2 { top: 50%; }.line-3 { top: 75%; }
.chart-x-labels { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; color: #829087; font-size: 10px; }
.donut-wrap { display: grid; justify-items: center; gap: 25px; }
.donut { width: 178px; height: 178px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 48%, var(--lime) 48% 80%, #8da8bd 80% 100%); position: relative; }
.donut::after { content: ""; position: absolute; inset: 27px; border-radius: 50%; background: white; }
.donut-center { z-index: 1; display: grid; text-align: center; }
.donut-center strong { font-size: 25px; letter-spacing: -0.04em; }
.donut-center span { color: var(--muted); font-size: 11px; }
.legend { width: 100%; display: grid; gap: 10px; }
.legend > div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.legend strong { color: var(--text); }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; }.dot-one{background:var(--green)}.dot-two{background:var(--lime)}.dot-three{background:#8da8bd}

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 12px; color: #7a877f; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 15px 12px; border-bottom: 1px solid #edf1ee; font-size: 13px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfb; }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--green-strong); background: var(--green-soft); font-size: 11px; font-weight: 850; }
.user-cell strong, .user-cell span { display: block; }
.user-cell span { color: var(--muted); font-size: 11px; }
.money { font-weight: 800; white-space: nowrap; }
.row-action { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--green-strong); background: #fff; font-size: 12px; font-weight: 750; }
.row-action:hover { background: var(--green-soft); }
.badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge-inactive { color: #895111; background: var(--amber-soft); }
.badge-disabled { color: var(--red); background: var(--red-soft); }
.badge-active { color: var(--green-strong); background: var(--green-soft); }
.badge-review { color: var(--blue); background: #eaf2f8; }

.filter-row { margin: -8px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-weight: 700; font-size: 12px; }
.filter-chip.active { color: var(--green-strong); border-color: #b7d0c1; background: var(--green-soft); }
.empty-state { padding: 28px; color: var(--muted); text-align: center; }

.license-card-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.license-card { padding: 20px; }
.license-card-head { display: flex; justify-content: space-between; gap: 10px; }
.license-card h2 { margin: 0; font-size: 16px; }
.license-card .sku { margin-top: 3px; color: var(--muted); font-size: 10px; }
.license-price { color: var(--green-strong); font-size: 13px; font-weight: 850; white-space: nowrap; }
.seat-row { margin: 22px 0 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.seat-row strong { color: var(--text); }
.progress-track { height: 9px; border-radius: 999px; background: #e7ece9; overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #64a781); }
.license-foot { margin-top: 12px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.license-foot strong { color: var(--amber); }
.assumption-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.assumption-grid > div { padding: 15px; border-radius: 13px; background: var(--surface-soft); }
.assumption-grid strong, .assumption-grid span { display: block; }.assumption-grid strong{font-size:13px}.assumption-grid span{margin-top:5px;color:var(--muted);font-size:11px}

.recommendation-list { display: grid; gap: 14px; }
.recommendation-card { padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-small); }
.recommendation-main { min-width: 0; }
.recommendation-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.recommendation-title-row h2 { margin: 0; font-size: 16px; }
.recommendation-reason { margin: 8px 0 14px; color: var(--muted); font-size: 13px; }
.evidence-row { display: flex; flex-wrap: wrap; gap: 8px; }
.evidence-chip { padding: 6px 9px; border-radius: 9px; color: #55645c; background: var(--surface-soft); border: 1px solid #e5ebe7; font-size: 11px; }
.recommendation-aside { min-width: 135px; display: grid; align-content: space-between; justify-items: end; gap: 15px; }
.recommendation-saving { text-align: right; }.recommendation-saving strong,.recommendation-saving span{display:block}.recommendation-saving strong{font-size:21px;color:var(--green-strong)}.recommendation-saving span{color:var(--muted);font-size:10px}

.report-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.report-card { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.report-card h2 { margin: 14px 0 5px; font-size: 18px; }.report-card p{margin:0 0 20px;color:var(--muted);font-size:13px}.report-card .button{margin-top:auto}
.report-icon { min-width: 45px; height: 45px; padding: 0 8px; display: grid; place-items: center; border-radius: 13px; color: var(--green-strong); background: var(--green-soft); font-size: 12px; font-weight: 900; }
.featured-report { color: white; border-color: transparent; background: linear-gradient(145deg, var(--green-strong), var(--green)); }.featured-report p{color:#dfeee5}.featured-report .report-icon{color:white;background:rgba(255,255,255,.13)}.featured-report .button-primary{color:var(--green-strong);background:white}
.report-preview-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }.report-preview-head h2{margin:0}.report-preview-head>span{color:var(--muted);font-size:11px}
.report-summary-grid { margin: 22px 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }.report-summary-grid>div{padding:17px;border-radius:13px;background:var(--surface-soft)}.report-summary-grid span,.report-summary-grid strong{display:block}.report-summary-grid span{color:var(--muted);font-size:11px}.report-summary-grid strong{margin-top:5px;font-size:24px;letter-spacing:-.04em}
.fine-print { color: var(--muted); font-size: 11px; }

.detail-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.detail-drawer.open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(16,28,21,.42); opacity: 0; transition: opacity .22s ease; }
.detail-drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(470px, 94vw); height: 100%; padding: 28px; overflow-y: auto; background: white; box-shadow: -20px 0 60px rgba(16,28,21,.2); transform: translateX(104%); transition: transform .26s ease; }
.detail-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close { position: absolute; top: 15px; right: 15px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: white; font-size: 24px; }
.drawer-profile { margin: 18px 0 25px; display: flex; align-items: center; gap: 14px; }.drawer-profile .avatar{width:52px;height:52px;font-size:14px}.drawer-profile h2{margin:0;font-size:22px}.drawer-profile p{margin:3px 0 0;color:var(--muted);font-size:12px}
.drawer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.drawer-fact{padding:14px;border-radius:13px;background:var(--surface-soft)}.drawer-fact span,.drawer-fact strong{display:block}.drawer-fact span{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}.drawer-fact strong{margin-top:5px;font-size:13px}
.drawer-section { margin-top: 24px; }.drawer-section h3{margin:0 0 9px;font-size:15px}.drawer-section p{margin:0;color:var(--muted);font-size:13px}.verify-list{padding-left:18px;color:var(--muted);font-size:13px}.verify-list li{margin:7px 0}.drawer-actions{margin-top:26px;display:flex;gap:10px;flex-wrap:wrap}

.tour-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(11, 24, 17, .57); }
.tour-focus { position: fixed; z-index: 151; border: 3px solid #d6f091; border-radius: 20px; box-shadow: 0 0 0 6px rgba(214,240,145,.18), 0 14px 45px rgba(0,0,0,.18); pointer-events: none; transition: all .25s ease; }
.tour-card { position: fixed; z-index: 152; width: min(390px, calc(100vw - 28px)); padding: 20px; border-radius: 17px; background: white; box-shadow: 0 24px 70px rgba(0,0,0,.28); transition: top .25s ease, left .25s ease; }
.tour-progress { display: flex; justify-content: space-between; align-items: center; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }.tour-progress button{border:0;background:none;color:var(--muted);font-size:11px;text-transform:none;letter-spacing:0}
.tour-card h2 { margin: 14px 0 6px; font-size: 21px; }.tour-card p{margin:0;color:var(--muted);font-size:13px}.tour-actions{margin-top:20px;display:flex;justify-content:space-between;gap:10px}

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 180; display: grid; gap: 10px; }
.toast { width: min(380px, calc(100vw - 36px)); padding: 14px 16px; border: 1px solid #c9dbd0; border-radius: 13px; color: var(--green-strong); background: #f3faf6; box-shadow: var(--shadow); animation: toast-in .25s ease; font-size: 13px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.site-footer { padding: 25px clamp(20px, 4vw, 56px); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); background: white; border-top: 1px solid var(--line); font-size: 11px; }.site-footer p{margin:0}.site-footer nav{display:flex;gap:15px;flex-wrap:wrap}.site-footer a{color:var(--green-strong);font-weight:700}

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .opportunity-panel .donut-wrap { grid-template-columns: auto minmax(230px, 1fr); align-items: center; justify-items: stretch; }
  .license-card-grid, .report-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .report-grid .featured-report { grid-column: span 2; }
}

@media (max-width: 760px) {
  .topbar { padding: 11px 16px; }.topbar-actions .demo-pill,.topbar-actions .button-ghost{display:none}.brand{font-size:17px}.demo-notice{padding-inline:15px;text-align:left}
  .app-shell { display: block; }.sidebar{position:sticky;top:70px;z-index:40;height:auto;padding:8px 12px;display:block;border-right:0;border-bottom:1px solid var(--line);overflow-x:auto}.company-card,.sidebar-foot{display:none}.side-nav{margin:0;display:flex;min-width:max-content}.nav-item{width:auto;padding:9px 11px}.nav-icon,.nav-count{display:none}
  .main-content { padding: 24px 15px 45px; }.page-heading{align-items:stretch;flex-direction:column}.heading-controls,.search-control{width:100%}.metric-grid{grid-template-columns:1fr 1fr}.metric-card{min-height:128px;padding:16px}.dashboard-grid{gap:14px}.panel{padding:16px}.opportunity-panel .donut-wrap{display:grid;grid-template-columns:1fr;justify-items:center}.license-card-grid,.report-grid{grid-template-columns:1fr}.report-grid .featured-report{grid-column:auto}.assumption-grid,.report-summary-grid{grid-template-columns:1fr}.recommendation-card{grid-template-columns:1fr}.recommendation-aside{justify-items:start;grid-template-columns:1fr auto;align-items:end}.recommendation-saving{text-align:left}.site-footer{flex-direction:column}
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }.metric-card{min-height:116px}.chart{height:220px}.drawer-facts{grid-template-columns:1fr}.topbar-actions .button-primary{padding-inline:10px}.topbar-actions{gap:5px}
}

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