:root {
  color-scheme: light;
  --forest: #1e3b2e;
  --forest-2: #294c3a;
  --leaf: #54815b;
  --leaf-soft: #e8f0e5;
  --lime: #b8d77c;
  --paper: #f4f7f1;
  --surface: #ffffff;
  --surface-soft: #f8faf6;
  --ink: #24332a;
  --muted: #738077;
  --line: #e2e9e0;
  --danger: #a3483f;
  --danger-soft: #fff0ed;
  --warning: #896126;
  --warning-soft: #fff5dd;
  --shadow: 0 16px 42px rgba(25, 53, 36, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6f9a70; outline-offset: 3px; }

.skip-link { position: fixed; z-index: 50; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-150%); border-radius: 9px; background: #fff; color: var(--forest); box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; width: 258px; flex-direction: column; padding: 26px 18px 18px; background: var(--forest); color: #f5f8f2; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 27px; color: inherit; text-decoration: none; }
.brand-mark { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(219, 239, 202, .28); border-radius: 13px; background: rgba(223, 240, 201, .1); }
.brand-mark span { position: absolute; display: block; width: 11px; height: 19px; border-radius: 100% 0 100% 0; background: var(--lime); transform: rotate(28deg); }
.brand-mark span:nth-child(1) { margin: -4px 0 0 -9px; transform: rotate(-32deg) scale(.78); }
.brand-mark span:nth-child(2) { margin: -5px 0 0 5px; transform: rotate(28deg) scale(.9); }
.brand-mark span:nth-child(3) { margin: 7px 0 0 -1px; transform: rotate(35deg) scale(.65); background: #8db27d; }
.brand-copy strong { display: block; font-size: 17px; letter-spacing: -.045em; }
.brand-copy strong span { color: var(--lime); }
.brand-copy small { display: block; margin-top: 3px; color: #c1d1c2; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.workspace-card { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 27px; border: 1px solid rgba(228, 241, 222, .13); border-radius: 13px; background: rgba(255,255,255,.055); }
.workspace-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #dce8d1; color: var(--forest); font-family: Georgia, serif; font-size: 20px; font-weight: 700; }
.workspace-card strong, .workspace-card small { display: block; }
.workspace-card strong { font-size: 12px; }
.workspace-card small { margin-top: 4px; color: #c1d1c2; font-size: 10px; }
.nav-caption { padding: 0 11px; color: #a6b9a9; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.nav-caption-secondary { margin-top: 25px; }
.main-nav { display: grid; gap: 4px; margin-top: 10px; }
.nav-item { display: flex; min-height: 42px; align-items: center; gap: 12px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: #d4ded3; text-align: left; font-size: 12px; transition: background .16s ease, color .16s ease; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item[aria-current="page"] { background: #e1ebd8; color: var(--forest); font-weight: 700; }
.nav-glyph { display: grid; width: 22px; flex: 0 0 22px; place-items: center; font-size: 18px; line-height: 1; }
.sidebar-bottom { margin-top: auto; }
.service-status { display: flex; align-items: center; gap: 10px; padding: 12px 10px; margin-bottom: 13px; border: 1px solid rgba(228, 241, 222, .13); border-radius: 12px; background: rgba(255,255,255,.04); }
.service-status strong, .service-status small { display: block; }
.service-status strong { font-size: 11px; font-weight: 650; }
.service-status small { margin-top: 3px; color: #b5c5b5; font-size: 10px; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #a7b5a8; box-shadow: 0 0 0 4px rgba(180,197,178,.12); }
.status-dot.status-ok { background: #a7d17d; box-shadow: 0 0 0 4px rgba(167,209,125,.16); }
.status-dot.status-error { background: #ef907c; box-shadow: 0 0 0 4px rgba(239,144,124,.15); }
.profile-row { display: flex; align-items: center; gap: 9px; padding: 12px 6px 5px; border-top: 1px solid rgba(228, 241, 222, .15); }
.profile-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #d9e8d2; color: var(--forest); font-size: 11px; font-weight: 800; }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy strong, .profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { font-size: 11px; }
.profile-copy small { margin-top: 3px; color: #b8c8b8; font-size: 10px; }
.quiet-button { padding: 6px 8px; border: 1px solid rgba(233,241,229,.23); border-radius: 8px; background: transparent; color: #ecf2e9; font-size: 10px; }
.quiet-button:hover { background: rgba(255,255,255,.1); }
.sidebar-footnote { margin: 11px 7px 0; color: #a9bba9; font-size: 9px; line-height: 1.5; }

.main-column { min-height: 100vh; margin-left: 258px; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 20px; padding: 20px clamp(24px, 4vw, 54px); border-bottom: 1px solid rgba(218,228,216,.78); background: rgba(248,250,246,.92); backdrop-filter: blur(14px); }
.eyebrow { display: block; color: #758578; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.topbar h1 { margin: 7px 0 0; color: var(--forest); font-size: clamp(18px, 2vw, 24px); letter-spacing: -.04em; }
.topbar-tools { display: flex; align-items: center; gap: 13px; }
.updated-at { color: var(--muted); font-size: 10px; }
.page-content { width: min(1260px, 100%); min-height: calc(100vh - 156px); padding: 34px clamp(20px, 4vw, 54px) 42px; margin: 0 auto; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; padding: 0 clamp(20px, 4vw, 54px) 22px; color: #879389; font-size: 9px; }
.site-footer span:first-child { font-weight: 750; letter-spacing: .12em; }
.global-message { padding: 12px 15px; margin: 0 0 18px; border: 1px solid #d4e4d2; border-radius: 10px; background: var(--leaf-soft); color: #31543b; font-size: 12px; line-height: 1.5; }
.global-message.message-error { border-color: #f0c9c3; background: var(--danger-soft); color: #7d342c; }
.global-message.message-warning { border-color: #f0dfb7; background: var(--warning-soft); color: #76551e; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 23px; }
.page-heading h2 { margin: 7px 0 7px; color: var(--forest); font-size: clamp(23px, 3vw, 32px); letter-spacing: -.055em; }
.page-heading p { max-width: 690px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; font-weight: 700; text-decoration: none; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover:not(:disabled) { background: #31563f; }
.button-secondary { border-color: #dce6da; background: #fff; color: #35553d; }
.button-secondary:hover:not(:disabled) { border-color: #b8cbb7; background: #f7faf5; }
.button-danger { border-color: #f0d1cd; background: #fff8f7; color: var(--danger); }
.button-small { min-height: 30px; padding: 0 9px; font-size: 10px; }
.button-block { width: 100%; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { position: relative; min-height: 113px; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 18px rgba(32,60,42,.025); }
.stat-card::after { position: absolute; right: -18px; bottom: -30px; width: 78px; height: 78px; border: 1px solid #e7eee2; border-radius: 50%; content: ""; }
.stat-label { color: #738076; font-size: 10px; font-weight: 600; }
.stat-value { display: block; margin-top: 13px; color: var(--forest); font-size: 28px; font-weight: 750; letter-spacing: -.06em; }
.stat-detail { display: block; margin-top: 4px; color: #89948a; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(270px,.85fr); gap: 14px; }
.panel { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 18px rgba(32,60,42,.025); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.panel-heading h3 { margin: 0; color: var(--forest); font-size: 14px; letter-spacing: -.02em; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.text-link { border: 0; background: transparent; color: #537c58; font-size: 10px; font-weight: 700; text-decoration: none; cursor: pointer; }
.text-link:hover { text-decoration: underline; }
.callout { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid #dce9d9; border-radius: 11px; background: #f2f7ef; color: #456147; font-size: 11px; line-height: 1.55; }
.callout-mark { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #dbe9d5; color: #426249; font-size: 12px; font-weight: 800; }
.callout.warning { border-color: #efdfbb; background: var(--warning-soft); color: #76551e; }
.callout.warning .callout-mark { background: #f2e2b9; color: #78591f; }
.quick-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.quick-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--forest); text-align: left; font-size: 10px; font-weight: 700; }
.quick-link:hover { border-color: #b9ceb6; background: #f8fbf6; }
.quick-link span:last-child { color: #809383; font-size: 15px; }
.summary-list { display: grid; gap: 9px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #edf1eb; font-size: 10px; }
.summary-row:last-child { padding: 0; border: 0; }
.summary-row span { color: #68776c; }
.summary-row strong { color: var(--forest); font-size: 11px; }
.section-grid { display: grid; grid-template-columns: minmax(290px,.78fr) minmax(0,1.45fr); align-items: start; gap: 15px; }
.compostor-page { display: grid; gap: 16px; }
.compostor-grid { display: grid; gap: 12px; }
.compostor-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 18px rgba(32,60,42,.025); }
.compostor-summary { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; cursor: pointer; list-style: none; }
.compostor-summary::-webkit-details-marker { display: none; }
.compostor-summary::after { color: #77917c; content: "+"; font-size: 21px; }
.compostor-card[open] > .compostor-summary::after { content: "−"; }
.compostor-summary strong, .compostor-summary small { display: block; }
.compostor-summary strong { color: var(--forest); font-size: 13px; }
.compostor-summary small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.compostor-detail { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(220px,1fr) minmax(280px,1.35fr); gap: 14px; padding: 16px; border-top: 1px solid var(--line); align-items: start; }
.compostor-visual { display: grid; gap: 9px; }
.compostor-photo, .photo-placeholder { width: 100%; aspect-ratio: 4 / 3; border-radius: 11px; object-fit: cover; }
.photo-placeholder { display: grid; place-items: center; background: #eff4ec; color: #728375; font-size: 11px; }
.map-link { color: #537c58; font-size: 10px; font-weight: 700; text-decoration: none; }
.map-link:hover { text-decoration: underline; }
.compostor-description { color: var(--muted); font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.equipment-list { grid-column: 1 / -1; display: grid; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.equipment-list h4 { margin: 0; color: var(--forest); font-size: 12px; }
.equipment-card { display: grid; gap: 8px; padding: 12px; border: 1px solid #e8eee5; border-radius: 10px; background: #fbfcfa; }
.equipment-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.component-list { display: grid; gap: 5px; padding-left: 16px; margin: 0; color: #607064; font-size: 10px; line-height: 1.5; }
.compostor-detail .panel { padding: 13px; box-shadow: none; }
.compostor-detail > .panel:last-child { grid-column: 1 / -1; }
.compostor-detail .panel-heading { margin-bottom: 10px; }
.compostor-detail .panel-heading h3 { font-size: 12px; }
.compostor-detail .stack-form { gap: 9px; }
.compostor-detail .field input { min-height: 34px; }
.subscription-forms { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-bottom: 14px; align-items: start; }
.subscription-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.subscription-forms .panel { padding: 16px; }
.subscription-forms .stack-form { gap: 10px; }
.subscription-forms .field input, .subscription-forms .field select { min-height: 36px; }
.stack-form { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; }
.field label, .field-label { color: #3b4d40; font-size: 10px; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 39px; padding: 0 11px; border: 1px solid #dce5da; border-radius: 8px; outline: 0; background: #fff; color: var(--ink); font-size: 11px; }
.field input:focus, .field select:focus { border-color: #7fa17c; box-shadow: 0 0 0 3px rgba(105,147,103,.13); }
.field input[aria-invalid="true"] { border-color: #c56358; }
.field-hint { color: #7d8b7f; font-size: 9px; line-height: 1.5; }
.form-feedback { margin: 0; color: var(--danger); font-size: 10px; line-height: 1.5; }
.form-note { margin: 0; color: #748176; font-size: 10px; line-height: 1.6; }
.form-note strong { color: #485e4c; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.list-toolbar h3 { margin: 0; color: var(--forest); font-size: 14px; }
.result-count { color: #7a887d; font-size: 10px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e7ece5; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 12px; background: #f7f9f5; color: #77847a; font-size: 9px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
td { padding: 11px 12px; border-top: 1px solid #edf0eb; color: #536257; font-size: 10px; vertical-align: middle; }
tbody tr:hover { background: #fbfcfa; }
td strong { color: #304537; font-size: 10px; }
.cell-primary, .cell-secondary { display: block; }
.cell-secondary { margin-top: 4px; color: #8b968c; font-size: 9px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: #edf1ed; color: #68776b; font-size: 9px; font-weight: 700; white-space: nowrap; }
.badge::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; opacity: .72; }
.badge-active, .badge-valid { background: #e9f3e6; color: #3f7146; }
.badge-inactive, .badge-invalid { background: #f1f2ef; color: #7c847d; }
.badge-pending { background: #fff4dc; color: #886523; }
.badge-denied { background: #fff0ed; color: #9a453a; }
.rfid-policy-state { display: grid; justify-items: start; gap: 5px; min-width: 155px; max-width: 320px; }
.rfid-policy-state .badge { white-space: normal; line-height: 1.35; }
.rfid-policy-detail, .rfid-policy-revision { margin: 0; color: #68766b; font-size: 9px; line-height: 1.5; }
.rfid-policy-revision { overflow-wrap: anywhere; }
.rfid-policy-revision code { color: #405746; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; }
.rfid-policy-invalid { color: #8e473d; }
.quote-list { display: grid; gap: 13px; }
.quote-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 18px rgba(32,60,42,.025); }
.quote-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #edf1eb; }
.quote-card-heading h3 { margin: 0; color: var(--forest); font-size: 15px; overflow-wrap: anywhere; }
.quote-card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.quote-details { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px 16px; padding: 16px 0; margin: 0; }
.quote-field { min-width: 0; }
.quote-field dt { color: #78867b; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.quote-field dd { margin: 5px 0 0; color: #304537; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.quote-contact-link { color: #4c7652; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.quote-contact-link:hover { color: #294c3a; }
.quote-message { padding: 12px 14px; border: 1px solid #e8eee5; border-radius: 10px; background: #fbfcfa; }
.quote-message h4 { margin: 0 0 6px; color: var(--forest); font-size: 10px; }
.quote-message p { margin: 0; color: #536257; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.quote-status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; }
.quote-status-label { color: #3b4d40; font-size: 10px; font-weight: 700; }
.quote-status-hint { flex-basis: 100%; color: var(--muted); font-size: 9px; line-height: 1.5; }
.quote-status-select { min-height: 34px; min-width: 175px; padding: 0 28px 0 10px; border: 1px solid #dce5da; border-radius: 8px; background: #fff; color: var(--ink); font-size: 10px; }
.quote-status-select:focus-visible { outline: 3px solid #6f9a70; outline-offset: 2px; }
.quote-feedback { display: grid; gap: 10px; place-items: center; min-height: 180px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.quote-feedback p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.quote-feedback-error { border-color: #f0c9c3; background: var(--danger-soft); }
.quote-feedback-error p:first-child { color: #7d342c; }
.quote-skeleton { width: min(100%,360px); }
.quote-empty { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.empty-state { display: grid; min-height: 180px; place-content: center; justify-items: center; padding: 24px; text-align: center; }
.empty-mark { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 11px; border-radius: 15px; background: var(--leaf-soft); color: var(--leaf); font-family: Georgia,serif; font-size: 23px; }
.empty-state h3 { margin: 0; color: var(--forest); font-size: 13px; }
.empty-state p { max-width: 360px; margin: 7px 0 14px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.filter-row { display: flex; align-items: center; gap: 8px; }
.filter-row label { color: #6c7b70; font-size: 10px; }
.filter-row select { min-height: 34px; max-width: 220px; padding: 0 27px 0 9px; border: 1px solid #dce5da; border-radius: 8px; background: #fff; color: var(--ink); font-size: 10px; }
.metric-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-bottom: 14px; }
.metric-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.metric-box span, .metric-box strong { display: block; }
.metric-box span { color: #77847a; font-size: 9px; }
.metric-box strong { margin-top: 7px; color: var(--forest); font-size: 20px; letter-spacing: -.04em; }
.skeleton { height: 75px; border-radius: 12px; background: linear-gradient(90deg,#edf2ea 25%,#f7f9f5 50%,#edf2ea 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }

.auth-root { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at 8% 12%,#e2eddd 0,transparent 28%), radial-gradient(circle at 92% 90%,#e3eddb 0,transparent 31%), var(--paper); }
.auth-card { width: min(440px,100%); padding: clamp(23px,5vw,38px); border: 1px solid #e1e9dd; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 29px; }
.auth-card h1 { margin: 7px 0 9px; color: var(--forest); font-size: 25px; letter-spacing: -.05em; }
.auth-card > p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.auth-card .stack-form { margin-top: 21px; }
.auth-local-note { padding: 11px 12px; margin-top: 16px; border-radius: 9px; background: #f2f7ef; color: #536b54; font-size: 10px; line-height: 1.5; }
.auth-error { padding: 10px 12px; margin-top: 13px; border: 1px solid #efd0cb; border-radius: 9px; background: var(--danger-soft); color: #8b3c33; font-size: 10px; line-height: 1.5; }
.token-dialog { width: min(530px,calc(100% - 28px)); padding: 28px; border: 1px solid #dfe8dc; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(17,39,24,.24); }
.token-dialog::backdrop { background: rgba(17,35,24,.52); backdrop-filter: blur(3px); }
.dialog-mark { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 15px; border-radius: 50%; background: var(--warning-soft); color: #876322; font-weight: 800; }
.token-dialog h2 { margin: 6px 0 8px; color: var(--forest); font-size: 22px; letter-spacing: -.045em; }
.muted-copy { color: var(--muted); font-size: 11px; line-height: 1.6; }
.token-box { padding: 13px; margin: 17px 0 10px; border: 1px solid #dce5da; border-radius: 9px; background: #f7f9f6; overflow-wrap: anywhere; }
.token-box code { color: #294b36; font-size: 11px; user-select: all; }
.token-warning { color: #7b612c; font-size: 10px; line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (max-width: 1120px) {
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quote-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-grid { grid-template-columns: minmax(250px,.75fr) minmax(0,1.25fr); }
  .compostor-detail { grid-template-columns: minmax(200px,.8fr) minmax(200px,1fr); }
  .equipment-list { grid-column: 1 / -1; }
  .subscription-forms { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .sidebar { width: 220px; padding-inline: 13px; }
  .main-column { margin-left: 220px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: 1fr; }
  .compostor-detail { grid-template-columns: 1fr 1fr; }
  .subscription-forms { grid-template-columns: 1fr; }
  .topbar { padding-inline: 23px; }
  .page-content { padding-inline: 23px; }
}
@media (max-width: 640px) {
  .sidebar { position: static; width: 100%; padding: 13px 14px 9px; }
  .brand { padding: 0 4px 12px; }
  .brand-mark { width: 34px; height: 34px; }
  .workspace-card, .nav-caption, .nav-caption-secondary { display: none; }
  .sidebar-bottom { display: block; margin-top: 8px; }
  .service-status { max-width: 240px; padding: 7px 9px; margin: 0 0 1px 3px; border-radius: 9px; }
  .service-status strong { font-size: 9px; }
  .service-status small { font-size: 8px; }
  .profile-row, .sidebar-footnote { display: none; }
  .main-nav { display: flex; gap: 5px; margin-top: 0; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .nav-item { min-width: max-content; min-height: 38px; gap: 7px; padding: 0 10px; font-size: 10px; }
  .nav-glyph { width: auto; flex: 0 0 auto; font-size: 15px; }
  .main-column { margin-left: 0; }
  .topbar { position: static; min-height: auto; align-items: flex-start; padding: 18px 17px; }
  .topbar h1 { max-width: 245px; font-size: 18px; }
  .topbar-tools { flex-direction: column-reverse; align-items: flex-end; gap: 6px; }
  .updated-at { max-width: 135px; text-align: right; font-size: 8px; }
  .topbar-tools .button { min-height: 32px; padding-inline: 10px; font-size: 9px; }
  .page-content { min-height: calc(100vh - 178px); padding: 23px 15px 30px; }
  .site-footer { flex-direction: column; padding: 0 16px 16px; font-size: 8px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 17px; }
  .page-heading h2 { font-size: 25px; }
  .stats-grid { gap: 8px; }
  .stat-card { min-height: 98px; padding: 12px; }
  .stat-value { margin-top: 10px; font-size: 24px; }
  .panel { padding: 15px; }
  .quick-links { grid-template-columns: 1fr; }
  .compostor-detail { grid-template-columns: 1fr; padding: 12px; }
  .equipment-list { grid-column: auto; }
  .subscription-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quote-card { padding: 14px; }
  .quote-details { grid-template-columns: 1fr; gap: 11px 12px; }
  .quote-status-actions { align-items: stretch; }
  .quote-status-label { width: 100%; }
  .quote-status-select { flex: 1 1 160px; }
  .quote-status-actions .button { flex: 1 1 130px; }
  .compostor-summary { padding: 12px; }
  .list-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-row { flex-wrap: wrap; }
  .table-wrap { border-radius: 8px; }
  th, td { padding: 9px 10px; }
  .metric-strip { gap: 8px; }
  .metric-box { padding: 11px; }
  .metric-box strong { font-size: 18px; }
  .auth-root { padding: 14px; }
  .token-dialog { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
