:root {
  --ink:#182b24;
  --muted:#637269;
  --forest:#153c30;
  --deep:#0d2b24;
  --lime:#c3ed86;
  --paper:#f6f7f3;
  --edge:#dce2d9;
  --white:#fff;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-size:14px;
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select,textarea {
  font:inherit;
}

button,a {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

button:disabled {
  opacity:.45;
  cursor:not-allowed;
}

a {
  color:var(--forest);
}

:focus-visible {
  outline:3px solid #74aa60;
  outline-offset:3px;
}

button {
  color:inherit;
}

.icon {
  vertical-align:middle;
  flex-shrink:0;
}

.brand {
  display:flex;
  align-items:center;
  gap:9px;
  width:max-content;
  white-space:nowrap;
}

.brand img {
  width:38px;
  height:38px;
}

.brand strong {
  font-size:32px;
  letter-spacing:-2.3px;
  line-height:1;
  font-weight:730;
}

.brand strong span {
  color:#6b9c58;
}

.brand b {
  font-family:var(--mono);
  letter-spacing:1px;
  font-size:10px;
  color:#496751;
  border:1px solid #bdc9b9;
  border-radius:5px;
  padding:4px 5px;
  margin:4px 0 0 3px;
}

.btn,.icon-btn,.text-link,.plain,.nav-item,.row-action,.link-plain {
  border:0;
  background:none;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 15px;
  min-height:39px;
  font-weight:600;
  font-size:13px;
  border-radius:8px;
  border:1px solid transparent;
  transition:background .15s,transform .15s;
  white-space:nowrap;
}

.btn:active {
  transform:translateY(1px);
}

.primary {
  background:var(--forest);
  color:white;
}

.primary:hover {
  background:#22513f;
}

.secondary {
  background:white;
  border-color:#d7ded5;
}

.secondary:hover,.icon-btn:hover {
  background:#f0f4ec;
}

.subtle {
  color:#416749;
  background:transparent;
}

.subtle:hover {
  background:#edf2e8;
}

.lime {
  background:var(--lime);
  color:#153c30;
}

.danger {
  background:#f9ece9;
  color:#93473c;
}

.icon-btn {
  border-radius:8px;
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  color:#647368;
}

.text-link,.link-plain {
  padding:0;
  color:#326043;
  text-align:left;
  font-weight:650;
  font-size:inherit;
}

.text-link:hover,.link-plain:hover {
  text-decoration:underline;
}

.eyebrow,.mono,.eyeline,.small-label,.nav-label,.axis,.figlabel {
  font-family:var(--mono);
}

.eyebrow,.small-label,.nav-label {
  font-weight:600;
  letter-spacing:1.7px;
  font-size:10px;
  line-height:1.6;
  text-transform:uppercase;
}

.eyebrow {
  color:#607665;
  display:flex;
  align-items:center;
  gap:9px;
}

.eyeline {
  width:22px;
  height:2px;
  background:#86a76c;
}

.brand-header,.auth-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.auth {
  max-width:1600px;
  margin:auto;
  min-height:100svh;
  padding:0 clamp(22px,5.1vw,86px);
  display:flex;
  flex-direction:column;
  background:radial-gradient(ellipse at 100% 100%,#eaf0e3 0,transparent 48%);
}

.brand-header {
  height:94px;
  flex-shrink:0;
}

.demo-pill {
  font-size:12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#eaf0e5;
  border:1px solid #d5dfce;
  padding:7px 12px;
  border-radius:50px;
  color:#445d42;
}

.dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#79a65a;
  display:inline-block;
}

.auth-main {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  flex:1;
  min-height:min(590px,72vh);
  background:white;
  border:1px solid #d9e0d5;
  border-radius:23px;
  box-shadow:0 12px 55px #1d37220a;
  overflow:hidden;
}

.hero {
  position:relative;
  isolation:isolate;
  background:radial-gradient(ellipse at 67% 57%,#31563a 0%,#153b2e 46%,#0d2c24 87%);
  color:white;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:clamp(30px,3.6vw,63px);
}

.hero:before {
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(#96c09255 .65px,transparent .8px);
  background-size:16px 16px;
  opacity:.52;
  z-index:-1;
}

.hero-top,.hero-stats,.hero-kpis,.hero-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.hero-badge {
  display:inline-flex;
  gap:8px;
  align-items:center;
  border:1px solid #67856c80;
  color:#d4e4ca;
  padding:6px 10px;
  border-radius:30px;
  font:10px var(--mono);
  letter-spacing:1.3px;
}

.hero-badge .dot {
  width:6px;
  height:6px;
  background:#c5eb91;
}

.hero-code {
  font:10px var(--mono);
  color:#abbdab;
  letter-spacing:1px;
}

.hero h2 {
  font-size:clamp(38px,4.15vw,69px);
  letter-spacing:-.065em;
  line-height:1.01;
  font-weight:520;
  margin:25px 0 0;
  z-index:1;
}

.hero h2 em {
  font-style:normal;
  color:#c7eb9b;
}

.hero-art {
  width:calc(100% + 15%);
  align-self:center;
  display:block;
  flex:1;
  min-height:140px;
  max-height:355px;
  margin:-8px 0 -14px;
  overflow:visible;
}

.hero-kpis {
  gap:26px;
  border-top:1px solid #8da98b4f;
  padding-top:20px;
  justify-content:flex-start;
}

.hero-stat {
  flex:1;
}

.hero-stat+.hero-stat {
  border-left:1px solid #79937a66;
  padding-left:24px;
}

.hero-stat small {
  color:#b7cdb8;
  display:flex;
  align-items:center;
  gap:6px;
  font:10px var(--mono);
  text-transform:uppercase;
  letter-spacing:1px;
}

.hero-stat b {
  display:block;
  font-size:clamp(22px,2.2vw,37px);
  font-weight:540;
  margin:5px 0;
  letter-spacing:-.045em;
}

.hero-stat b span {
  font:10px var(--mono);
  letter-spacing:0;
  color:#b6ceb5;
}

.auth-form-side {
  display:grid;
  place-items:center;
  padding:clamp(24px,3.7vw,68px);
}

.login-form {
  width:100%;
  max-width:365px;
}

.login-form h1 {
  font-size:clamp(33px,3vw,47px);
  font-weight:600;
  letter-spacing:-.06em;
  line-height:1.05;
  margin:13px 0;
}

.login-form>p {
  color:var(--muted);
  margin:0 0 28px;
  line-height:1.55;
}

.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  font-size:13px;
  font-weight:600;
}

.field input,.field select,.field textarea,.q-input,select.filter-input,.search-wrap input,.mini-select,.month-input {
  background:white;
  border:1px solid #d3dbd0;
  border-radius:7px;
  color:var(--ink);
  padding:10px 12px;
  min-width:0;
  max-width:100%;
  width:100%;
  outline-offset:2px;
}

.field textarea {
  resize:vertical;
}

.field input::placeholder {
  color:#8c968e;
}

.login-form .field {
  margin-bottom:17px;
}

.input-icon {
  position:relative;
}

.input-icon input {
  padding:12px 38px 12px 39px;
  width:100%;
  font-size:14px;
}

.input-icon>.icon {
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  color:#819085;
}

.input-icon>button {
  position:absolute;
  right:5px;
  top:50%;
  transform:translateY(-50%);
}

.login-options {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  margin:0 0 20px;
}

.checklabel {
  display:flex;
  align-items:center;
  gap:7px;
  color:#536458;
  line-height:1.5;
  font-size:13px;
}

.checklabel input {
  accent-color:var(--forest);
  width:15px;
  height:15px;
}

.login-form .btn.wide {
  width:100%;
  height:45px;
}

.wide.primary {
  justify-content:space-between;
  padding-inline:18px;
}

.wide.demo {
  background:#f3f6ee;
  color:#38533b;
  border:1px solid #d9e1d3;
}

.wide.demo:hover {
  background:#eaf2e1;
}

.divide {
  display:flex;
  align-items:center;
  gap:10px;
  color:#829080;
  font-size:11px;
  margin:14px 0;
}

.divide:before,.divide:after {
  content:"";
  background:#e0e5de;
  height:1px;
  flex:1;
}

.auth-footer {
  min-height:58px;
  font-size:11px;
  color:#6b796d;
}

.auth-footer span {
  display:flex;
  align-items:center;
  gap:7px;
}

.form-error {
  color:#a33c31;
  font-size:13px;
  line-height:1.4;
}

.form-error:empty {
  display:none;
}

.login-help {
  text-align:center;
  font-size:11px;
  color:#6d796e;
  margin-top:12px;
}

.login-help button {
  font-weight:500;
  font-size:11px;
}

.shell {
  display:grid;
  grid-template-columns:229px minmax(0,1fr);
  min-height:100svh;
}

.sidebar {
  position:sticky;
  top:0;
  height:100svh;
  background:var(--deep);
  color:#d0ded0;
  display:flex;
  flex-direction:column;
  padding:25px 15px 16px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#395545 var(--deep);
  z-index:3;
}

.sidebar .brand {
  margin:0 10px 29px;
  color:white;
}

.sidebar .brand img {
  background:#bfe78d;
  width:33px;
  height:33px;
}

.sidebar .brand b {
  color:#c1d4b2;
  border-color:#506d58;
}

.sidebar .brand strong {
  font-size:28px;
}

.org-switch {
  display:flex;
  align-items:center;
  gap:9px;
  text-align:left;
  border:1px solid #45605189;
  color:#edf4e9;
  border-radius:9px;
  background:#1b3b30;
  padding:11px;
  margin-bottom:19px;
  width:100%;
}

.org-switch>i {
  font-style:normal;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:7px;
  background:#c2e6a0;
  color:#23422f;
  font-weight:700;
}

.org-switch>span {
  flex:1;
  overflow:hidden;
}

.org-switch small,.profile small {
  display:block;
  font-size:10px;
  color:#acc0ac;
  line-height:1.5;
}

.org-switch strong {
  font-size:13px;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nav-label {
  color:#9cb29f;
  font-size:9px;
  letter-spacing:1.6px;
  padding:13px 11px 6px;
}

.nav-item {
  display:flex;
  align-items:center;
  gap:11px;
  color:#cedacf;
  width:100%;
  padding:9px 12px;
  margin:1px 0;
  border-radius:7px;
  font-size:13px;
  text-align:left;
  font-weight:500;
  min-height:37px;
}

.nav-item:hover {
  background:#1d3f32;
}

.nav-item.active {
  background:var(--lime);
  color:#1b3826;
  font-weight:650;
}

.nav-item .icon {
  width:16px;
  height:16px;
}

.profile {
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:auto;
  padding:17px 5px 0;
  border-top:1px solid #395244;
}

.profile>div {
  flex:1;
}

.profile strong {
  font-size:12px;
  color:white;
}

.profile .icon-btn {
  color:#a2b8a4;
}

.avatar {
  background:#e2ecda;
  color:#456246;
  border:1px solid #ccdbc4;
  display:inline-grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:50%;
  font-size:11px;
  font-weight:700;
  flex-shrink:0;
}

.avatar.a1 {
  background:#eee8dd;
  color:#765d3e;
}

.avatar.a2 {
  background:#e0e9f0;
  color:#3d5e74;
}

.workspace {
  min-width:0;
}

.toolbar {
  height:65px;
  border-bottom:1px solid var(--edge);
  padding:0 clamp(20px,3vw,52px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fbfcf9;
  gap:10px;
}

.crumb,.toolbar-right {
  display:flex;
  align-items:center;
  gap:10px;
  color:#788679;
  font-size:12px;
}

.crumb b {
  font-weight:600;
  color:#334b3b;
}

.toolbar-right .demo-pill {
  font-size:10px;
  padding:5px 9px;
}

.toolbar-right .avatar {
  height:30px;
  width:30px;
}

.mobile-menu {
  display:none;
}

.canvas {
  padding:30px clamp(18px,3vw,52px) 42px;
  max-width:1770px;
  margin:auto;
}

.page-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:0 0 23px;
}

.page-heading h1 {
  font-size:clamp(30px,2.8vw,44px);
  letter-spacing:-.06em;
  font-weight:580;
  line-height:1.1;
  margin:7px 0;
}

.page-heading p,.panel-note {
  color:var(--muted);
  margin:0;
  line-height:1.5;
  font-size:13px;
}

.actions,.action-line {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.period-label {
  display:flex;
  align-items:center;
  gap:7px;
  border:1px solid var(--edge);
  padding:5px 9px;
  background:white;
  border-radius:8px;
}

.period-label select {
  border:0;
  background:transparent;
  border-radius:4px;
  max-width:175px;
  padding:4px 0;
  color:var(--ink);
  font-size:12px;
}

.kpis {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:13px;
  margin-bottom:18px;
}

.metric {
  background:#fff;
  border:1px solid var(--edge);
  border-radius:13px;
  padding:17px 17px 15px;
  min-width:0;
}

.metric.featured {
  background:linear-gradient(115deg,#13392d,#204736);
  border-color:#294f3d;
  color:#fff;
  position:relative;
  overflow:hidden;
}

.metric.featured:after {
  content:"";
  position:absolute;
  right:-45px;
  top:-55px;
  width:145px;
  height:145px;
  border:1px solid #66836255;
  border-radius:50%;
  box-shadow:0 0 0 13px #67836322,0 0 0 28px #67836322;
  pointer-events:none;
}

.metric-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  font-size:12px;
  font-weight:570;
}

.metric-icon {
  border-radius:7px;
  padding:6px;
  background:#eef3e7;
  color:#517243;
}

.featured .metric-icon {
  background:#3d5e43;
  color:var(--lime);
}

.metric-value {
  font-size:clamp(25px,2.15vw,37px);
  font-weight:620;
  letter-spacing:-.058em;
  margin:11px 0 9px;
  line-height:1;
  font-variant-numeric:tabular-nums;
}

.metric small {
  font-size:11px;
  color:var(--muted);
}

.featured small {
  color:#c4d9bf;
}

.metric small b {
  color:#3c6749;
}

.featured small b {
  color:#d4f7ad;
}

.track {
  height:4px;
  background:#e7ede2;
  border-radius:5px;
  overflow:hidden;
  margin:11px 0 0;
}

.track i {
  display:block;
  height:100%;
  border-radius:5px;
  background:#719d6b;
}

.featured .track {
  background:#4f6a50;
}

.featured .track i {
  background:var(--lime);
}

.dash-grid {
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);
  gap:17px;
}

.panel {
  background:white;
  border:1px solid var(--edge);
  border-radius:13px;
  min-width:0;
  overflow:hidden;
  margin-bottom:17px;
}

.panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:19px 20px 13px;
}

.panel-head .eyebrow {
  font-size:9px;
  letter-spacing:1.3px;
  margin-bottom:3px;
}

.panel h2,dialog h2 {
  margin:0;
  font-size:18px;
  font-weight:630;
  letter-spacing:-.04em;
  line-height:1.25;
}

.panel-note {
  padding:0 20px 14px;
  font-size:12px;
}

.panel-body {
  padding:0 20px 20px;
}

.chart-wrap {
  padding:0 18px 12px;
}

.chart-wrap svg {
  display:block;
  width:100%;
  height:179px;
  overflow:visible;
}

.chart-legend {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  color:#617060;
}

.chart-legend i {
  width:17px;
  height:3px;
  background:#558c68;
  border-radius:5px;
}

.chart-caption {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:3px 0 0;
}

.small-label {
  color:#71826f;
  font-size:9px;
  letter-spacing:1.1px;
}

.time-list {
  padding:0 18px 10px;
}

.time-row {
  display:flex;
  width:100%;
  align-items:center;
  gap:10px;
  padding:12px 0;
  border:0;
  border-bottom:1px solid #e9ede6;
  background:none;
  text-align:left;
}

.time-row:last-child {
  border:0;
}

.time-row:hover .line-title {
  text-decoration:underline;
}

.time-box {
  background:#eef3e8;
  color:#466740;
  padding:7px 6px;
  border-radius:6px;
  font:11px var(--mono);
  min-width:46px;
  text-align:center;
}

.line-title {
  display:block;
  color:var(--ink);
  font-size:13px;
  font-weight:600;
}

.line-sub {
  display:block;
  color:#738071;
  font-size:11px;
  margin-top:3px;
}

.grow {
  flex:1;
  min-width:0;
}

.table-scroll {
  overflow:auto;
}

table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:12px;
}

th {
  font-size:10px;
  font-weight:650;
  letter-spacing:.35px;
  color:#6a786b;
  background:#f7f9f5;
  padding:12px 15px;
  white-space:nowrap;
  border-block:1px solid #e5eae1;
}

td {
  padding:13px 15px;
  border-bottom:1px solid #e8ece5;
  vertical-align:middle;
}

th:first-child,td:first-child {
  padding-left:20px;
}

tbody tr:last-child td {
  border-bottom:0;
}

tbody tr:hover {
  background:#fafbf8;
}

.chip {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  font-weight:600;
  border-radius:20px;
  line-height:1.1;
  padding:5px 8px;
  white-space:nowrap;
}

.chip i {
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
}

.green {
  background:#e3f1df;
  color:#3a6a3c;
}

.blue {
  background:#e6eef8;
  color:#476c94;
}

.amber {
  background:#f8edce;
  color:#86651d;
}

.violet {
  background:#eeebf6;
  color:#71558d;
}

.rose {
  background:#fae5e0;
  color:#9a4b37;
}

.gray {
  background:#edf0eb;
  color:#5e695e;
}

.row-name {
  display:flex;
  align-items:center;
  gap:9px;
}

.tile {
  width:32px;
  height:32px;
  border:1px solid #d1dec8;
  border-radius:8px;
  background:#ebf0e4;
  color:#58734a;
  display:inline-grid;
  place-items:center;
  font:600 11px var(--mono);
  flex-shrink:0;
}

.filters,.tabs,.detail-meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.filters {
  margin:0 0 16px;
}

.search-wrap {
  position:relative;
  flex:1;
  max-width:380px;
  min-width:160px;
}

.search-wrap>.icon {
  position:absolute;
  left:11px;
  top:11px;
  color:#83917f;
}

.search-wrap input {
  padding:9px 10px 9px 34px;
  font-size:13px;
}

.filter-input {
  width:auto!important;
  max-width:230px!important;
  font-size:12px;
}

.tabs {
  border-bottom:1px solid var(--edge);
  margin-bottom:20px;
  gap:18px;
}

.tabs button {
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  padding:10px 0;
  color:#687665;
  font-size:13px;
}

.tabs button.active {
  color:var(--forest);
  border-bottom-color:#588753;
  font-weight:650;
}

.detail-meta {
  margin-bottom:20px;
  color:#61715f;
  font-size:13px;
}

.detail-meta span {
  display:inline-flex;
  align-items:center;
  gap:5px;
}

.note,.hint {
  line-height:1.5;
  color:#61705e;
  font-size:12px;
}

.note {
  padding:11px 13px;
  background:#f0f5eb;
  border:1px solid #d9e4d2;
  border-radius:8px;
  margin:0 0 15px;
}

.empty {
  padding:27px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  text-align:center;
  color:#72826f;
}

.empty strong {
  font-size:14px;
  color:#4c614b;
}

.empty small {
  font-size:12px;
}

.two-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.stats-strip {
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.stats-strip span {
  background:white;
  padding:10px 15px;
  border:1px solid var(--edge);
  border-radius:8px;
  color:#566853;
  font-size:12px;
}

.stats-strip b {
  color:var(--ink);
  margin-right:4px;
  font-size:15px;
}

.event-card {
  padding:15px 19px;
  border-top:1px solid #e7ece3;
}

.event-card h3 {
  font-size:14px;
  margin:1px 0 5px;
}

.event-card p {
  font-size:13px;
  line-height:1.55;
}

.event-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.agreement {
  padding:8px 10px;
  border-left:2px solid #9bbb82;
  background:#f4f7f1;
  margin-top:7px;
  font-size:12px;
}

.agreement .chip {
  margin-left:5px;
}

.backlink {
  margin:0 0 15px;
  color:#53754e;
  font-size:12px;
}

.mini-select {
  padding:6px;
  font-size:12px;
}

.menu-dim {
  display:none;
}

.small-caps {
  font:10px var(--mono);
  letter-spacing:1.15px;
  color:#70806c;
  text-transform:uppercase;
}

dialog {
  border:1px solid #cdd7c8;
  box-shadow:0 22px 90px #10281b38;
  border-radius:16px;
  width:min(575px,calc(100vw - 26px));
  padding:0;
  max-height:90svh;
  color:var(--ink);
  background:#fff;
  overflow:auto;
}

dialog.wide-dialog {
  width:min(850px,calc(100vw - 26px));
}

dialog::backdrop {
  background:#0c211bc4;
  backdrop-filter:blur(3px);
}

.dialog-head {
  position:sticky;
  top:0;
  background:#fff;
  z-index:1;
  border-bottom:1px solid var(--edge);
  padding:18px 23px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.dialog-head .eyebrow {
  font-size:9px;
  margin-bottom:4px;
}

.dialog-body {
  padding:21px 23px;
}

.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}

.span {
  grid-column:1/-1;
}

.dialog-actions {
  margin:20px -23px -21px;
  border-top:1px solid var(--edge);
  padding:15px 23px;
  display:flex;
  justify-content:flex-end;
  gap:8px;
  background:#f7f9f5;
}

.form-section {
  background:#f7f9f5;
  padding:13px;
  border:1px solid #dce4d7;
  border-radius:9px;
}

.form-section+.form-section {
  margin-top:9px;
}

.form-section .form-grid {
  gap:10px;
}

.form-section-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  margin-bottom:9px;
  font-weight:650;
  font-size:13px;
}

.drawer-meta {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:17px;
}

.drawer-meta small {
  display:block;
  color:#6c7a69;
  font-size:11px;
  margin-bottom:3px;
}

.drawer-meta b {
  font-size:13px;
}

.doc {
  color:#243629;
}

.doc h3 {
  font-size:20px;
  letter-spacing:-.04em;
}

.doc p,.doc li {
  font-size:13px;
  line-height:1.55;
}

.doc .brand {
  margin-bottom:18px;
}

.doc-totals {
  max-width:300px;
  margin:16px 0 0 auto;
}

.doc-totals div {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:5px 0;
  font-size:13px;
}

.doc-totals .grand {
  font-weight:700;
  border-top:1px solid var(--edge);
  font-size:16px;
  margin-top:5px;
  padding-top:9px;
}

.mail-card,.role-card {
  border:1px solid var(--edge);
  border-radius:9px;
  padding:12px;
  margin-bottom:9px;
}

.role-card {
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  width:100%;
  background:white;
}

.role-card:hover {
  background:#f2f7ed;
}

.mail-card p {
  margin:4px 0 10px;
  font-size:13px;
}

.mail-card small {
  color:#657461;
}

.checkbox-grid {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.quote-line {
  display:grid;
  grid-template-columns:1.6fr .65fr .8fr auto;
  gap:8px;
  align-items:end;
}

.quote-line .field {
  font-size:11px;
}

.summary-live {
  padding:12px;
  background:#ebf2e6;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

#toast {
  position:fixed;
  bottom:22px;
  left:50%;
  transform:translate(-50%,12px);
  z-index:30;
  background:#183d2d;
  color:#f5faee;
  box-shadow:0 6px 25px #183d2d25;
  font-size:13px;
  padding:11px 17px;
  border-radius:9px;
  opacity:0;
  transition:.15s;
  pointer-events:none;
  max-width:90vw;
  text-align:center;
}

#toast.visible {
  opacity:1;
  transform:translate(-50%,0);
}

#printout {
  display:none;
}

.mobile-only {
  display:none;
}

@media(min-width:1450px) {
  .auth-main {
    max-height:780px;
  }
  .auth {
    justify-content:center;
  }
  .brand-header {
    height:105px;
  }
  .auth-footer {
    height:66px;
  }
  .canvas {
    padding-top:38px;
  }
  .sidebar {
    padding-top:32px;
  }
}

@media(max-width:1100px) {
  .shell {
    grid-template-columns:196px minmax(0,1fr);
  }
  .sidebar {
    padding-inline:10px;
  }
  .canvas {
    padding:23px 20px;
  }
  .metric {
    padding:13px 12px;
  }
  .dash-grid {
    grid-template-columns:minmax(0,1.3fr) minmax(230px,1fr);
  }
  .hero h2 {
    font-size:45px;
  }
  .auth {
    padding-inline:30px;
  }
  .auth-form-side {
    padding:32px;
  }
  .page-heading {
    flex-wrap:wrap;
  }
  .kpis {
    gap:9px;
  }
}

@media(max-width:800px) {
  .shell {
    display:block;
  }
  .sidebar {
    position:fixed;
    inset:0 auto 0 0;
    width:240px;
    transform:translateX(-105%);
    transition:transform .18s;
  }
  .shell.show-nav .sidebar {
    transform:none;
  }
  .show-nav .menu-dim {
    display:block;
    position:fixed;
    inset:0;
    z-index:2;
    border:0;
    background:#11291f80;
  }
  .mobile-menu {
    display:inline-grid;
  }
  .toolbar {
    height:53px;
    padding:0 15px;
  }
  .toolbar-right .demo-pill {
    display:none;
  }
  .canvas {
    padding:20px 15px 36px;
  }
  .auth {
    padding:0 18px;
  }
  .brand-header {
    height:72px;
  }
  .auth-main {
    grid-template-columns:1fr 1.05fr;
    min-height:580px;
  }
  .hero {
    padding:28px 22px;
  }
  .hero h2 {
    font-size:38px;
  }
  .hero-kpis {
    gap:10px;
  }
  .hero-stat+.hero-stat {
    padding-left:12px;
  }
  .hero-code {
    display:none;
  }
  .auth-form-side {
    padding:25px;
  }
  .dash-grid {
    grid-template-columns:1.25fr 1fr;
  }
  .panel-head {
    padding:16px;
  }
  .chart-wrap {
    padding-inline:12px;
  }
}

@media(max-width:630px) {
  .auth {
    padding:0 16px;
    min-height:100svh;
  }
  .brand-header {
    height:62px;
  }
  .brand img {
    width:30px;
    height:30px;
  }
  .brand strong {
    font-size:27px;
  }
  .demo-pill {
    font-size:10px;
    padding:6px 8px;
  }
  .auth-main {
    display:flex;
    flex-direction:column;
    min-height:0;
    flex:0;
    border-radius:14px;
  }
  .hero {
    padding:18px 22px;
    min-height:151px;
    display:block;
  }
  .hero-top {
    margin:0;
  }
  .hero-badge {
    font-size:8px;
    padding:4px 7px;
  }
  .hero h2 {
    font-size:34px;
    margin-top:12px;
    position:relative;
    max-width:67%;
    line-height:1.05;
  }
  .hero-art {
    position:absolute;
    right:-13%;
    top:7%;
    height:94%;
    width:62%;
    margin:0;
    min-height:0;
    z-index:-1;
  }
  .hero-kpis {
    display:none;
  }
  .auth-form-side {
    padding:25px 22px;
  }
  .login-form {
    max-width:none;
  }
  .login-form h1 {
    font-size:31px;
    margin:7px 0;
  }
  .login-form>p {
    margin-bottom:18px;
    font-size:13px;
  }
  .login-form .field {
    margin-bottom:12px;
  }
  .auth-footer {
    min-height:48px;
    font-size:9px;
  }
  .auth-footer .foot-right {
    display:none;
  }
  .login-help {
    margin-top:10px;
  }
  .auth-footer {
    justify-content:center;
  }
  .kpis {
    grid-template-columns:1fr 1fr;
  }
  .dash-grid,.two-grid {
    grid-template-columns:1fr;
    gap:0;
  }
  .metric-value {
    font-size:29px;
  }
  .page-heading {
    align-items:flex-start;
    gap:12px;
  }
  .page-heading h1 {
    font-size:32px;
  }
  .canvas {
    padding:18px 12px 35px;
  }
  .toolbar-right .avatar {
    display:none;
  }
  .crumb {
    gap:6px;
  }
  .filters {
    gap:7px;
  }
  .search-wrap {
    flex-basis:100%;
    max-width:100%;
  }
  .filter-input {
    max-width:48%!important;
  }
  .panel {
    margin-bottom:12px;
  }
  .dialog-body {
    padding:16px;
  }
  .dialog-head {
    padding:14px 16px;
  }
  .dialog-actions {
    margin:17px -16px -16px;
    padding:13px 16px;
  }
  .form-grid {
    gap:12px;
  }
  .quote-line {
    grid-template-columns:1fr 1fr auto;
  }
  .quote-line>.field:first-child {
    grid-column:1/-1;
  }
  .tabs {
    gap:14px;
  }
  .mobile-only {
    display:block;
  }
  .field input,.field select,.field textarea {
    font-size:16px;
  }
  .date-text {
    display:none;
  }
  .stats-strip {
    gap:6px;
  }
  .stats-strip span {
    padding:7px;
  }
  .auth-footer .icon {
    width:12px;
  }
}

@media(max-width:400px) {
  .form-grid {
    grid-template-columns:1fr;
  }
  .login-options {
    gap:5px;
  }
  .auth-form-side {
    padding:22px 16px;
  }
  .btn {
    font-size:12px;
    padding-inline:10px;
  }
  .eyebrow {
    font-size:9px;
  }
  .period-label select {
    max-width:139px;
  }
}

@media print {
  body {
    background:white;
  }
  #app,dialog,#toast {
    display:none!important;
  }
  #printout {
    display:block;
    padding:20px;
  }
  #printout .table-scroll {
    overflow:visible;
  }
  .brand img {
    width:28px;
  }
  .doc table {
    font-size:11px;
  }
  tr {
    break-inside:avoid;
  }
}

.sidebar .brand img {
  background:transparent;
}

.auth-footer .source-download {
  color:#627460;
  text-decoration:none;
  font-size:10px;
}

.source-download:hover {
  text-decoration:underline;
}

.hero-kpis {
  margin-top:auto;
}

.hero-art {
  margin-block:auto;
}

.metric.featured .metric-value {
  font-size:clamp(23px,2.1vw,35px);
}

@media(max-width:630px) {
  .auth-footer {
    gap:14px;
  }
  .hero-art {
    margin:0;
  }
}

