@import url("/static/fonts.css");
:root {
  --green: #3e7043;
  --deep: #214c2b;
  --mint: #e8f3e7;
  --lime: #d3e686;
  --paper: #f7f8f4;
  --white: #fff;
  --ink: #26392c;
  --muted: #758075;
  --line: #e3e8df;
  --danger: #a94335;
  --shadow: 0 8px 30px #26392c09;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #95b567;
  outline-offset: 3px;
}
a {
  color: var(--green);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 38px;
  letter-spacing: -1.2px;
  line-height: 1.2;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 16px;
}
svg {
  flex-shrink: 0;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  font-weight: 600;
}
.small {
  font-size: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.15s;
}
.button:hover {
  background: #edf3e9;
  border-color: #bdcdb9;
}
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.button.primary:hover {
  background: var(--deep);
}
.button.ghost {
  background: transparent;
  border-color: transparent;
  padding: 7px 10px;
}
.button.danger {
  color: var(--danger);
}
.button .icon {
  width: 16px;
  height: 16px;
}
.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #eef3eb;
  color: #507047;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.tag.neutral {
  background: #f1f2ee;
  color: #6a7468;
}
.tag.yellow {
  background: #faf1d7;
  color: #846c28;
}
.tag.red {
  background: #fbece8;
  color: #a94335;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 31px 19px 18px;
  z-index: 30;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 15px;
}
.brand img {
  width: 137px;
  height: 39px;
  object-fit: contain;
  object-position: left;
}
.brand .eyebrow {
  margin-top: 15px;
  font-size: 8px;
  letter-spacing: 3px;
  color: #84937c;
}
.workspace-badge {
  margin: 31px 0 24px;
  padding: 11px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.workspace-badge .mark {
  width: 30px;
  height: 30px;
  background: var(--mint);
  color: var(--green);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 20px;
}
.workspace-badge b {
  font-size: 11px;
  display: block;
}
.workspace-badge span {
  font-size: 10px;
  color: var(--muted);
}
.nav-label {
  font-size: 8px;
  letter-spacing: 1.6px;
  font-weight: bold;
  color: #91988c;
  margin: 14px 12px 9px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 10px 12px;
  border-radius: 7px;
  color: #6b786a;
  font-size: 12px;
  position: relative;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.nav-item.active {
  color: var(--green);
  background: #eaf2e7;
  font-weight: 600;
}
.nav-item:hover {
  background: #f3f6f0;
}
.nav-item .nav-count {
  margin-left: auto;
  font-size: 9px;
  border: 1px solid #d0dfc8;
  background: white;
  min-width: 19px;
  text-align: center;
  border-radius: 5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-note {
  background: #f4f7ec;
  border-radius: 9px;
  padding: 15px 13px;
  margin-bottom: 20px;
}
.sidebar-note p {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.2;
  color: var(--green);
  margin: 9px 0;
}
.sidebar-note span {
  font-size: 10px;
  color: #8a927f;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 4px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9eddf;
  color: #627348;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.account b {
  display: block;
  font-size: 11px;
}
.account span {
  font-size: 9px;
  color: var(--muted);
}
.account .icon-button {
  margin-left: auto;
  border: 0;
  width: 28px;
}
.main-wrap {
  margin-left: 232px;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 18px;
}
.breadcrumb {
  font-size: 11px;
  color: #929b90;
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 500;
  color: #40513f;
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  color: #7d8978;
}
.topbar .search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.search input {
  background: transparent;
  border: 0;
  outline: 0;
  width: 155px;
  font-size: 11px;
  color: var(--ink);
}
.search .icon {
  width: 16px;
}
.menu-toggle {
  display: none;
}
.content {
  padding: 30px 36px 35px;
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 23px;
}
.page-heading h1 {
  font-size: 30px;
}
.page-heading p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.demo-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f1df;
  border: 1px solid #e8e4c8;
  color: #7a7350;
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 10px;
  margin-bottom: 18px;
}
.demo-notice .icon {
  width: 14px;
  height: 14px;
}
.hero {
  position: relative;
  min-height: 192px;
  border-radius: 13px;
  background: #e8f2e3;
  overflow: hidden;
  display: flex;
  margin-bottom: 25px;
  border: 1px solid #dfe8d8;
}
.hero-copy {
  width: 63%;
  padding: 30px;
  z-index: 1;
  background: linear-gradient(90deg, #e8f2e3 70%, #e8f2e300);
}
.hero .eyebrow {
  color: #66805a;
  font-size: 8px;
}
.hero h2 {
  font-family: Georgia, serif;
  font-size: 33px;
  font-weight: normal;
  line-height: 1.14;
  color: #345a32;
  max-width: 410px;
  margin: 11px 0;
  letter-spacing: -0.8px;
}
.hero p {
  font-size: 11px;
  color: #71816b;
  max-width: 380px;
}
.hero img {
  position: absolute;
  right: 0;
  top: 0;
  width: 47%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  mix-blend-mode: multiply;
  opacity: 0.83;
}
.hero .hero-leaf {
  position: absolute;
  right: 39%;
  bottom: -20px;
  transform: rotate(-30deg);
  width: 100px;
  height: 150px;
  border: 1px solid #bdcead;
  border-radius: 100% 0 100% 0;
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 10px;
}
.filter-field .icon {
  width: 14px;
  height: 14px;
  color: #7b8877;
}
.filter-field select,
.filter-field input {
  font-size: 10px;
  border: 0;
  background: transparent;
  color: #586552;
  outline: none;
  max-width: 165px;
}
.filter-field select {
  appearance: none;
}
.filter-field label {
  color: var(--muted);
}
.filters .data-label {
  margin-left: auto;
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8b9585;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 20px;
  box-shadow: var(--shadow);
  position: relative;
}
.stat-label {
  font-size: 11px;
  color: #74816d;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-label .icon {
  width: 16px;
  height: 16px;
  color: #9eac92;
}
.stat-value {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 13px 0 4px;
  line-height: 1.25;
}
.stat-meta {
  font-size: 9px;
  color: #8b9585;
}
.stat-meta strong {
  color: var(--green);
  font-weight: 500;
}
.chart-layout {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 19px;
  margin-bottom: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-header {
  padding: 21px 23px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.panel-header h2 {
  font-size: 14px;
}
.panel-header p {
  font-size: 10px;
  color: #8b9585;
  margin-top: 4px;
}
.panel-body {
  padding: 10px 23px 22px;
}
.chart {
  width: 100%;
  display: block;
  height: 204px;
  overflow: visible;
}
.chart-label {
  font: 10px Arial;
  fill: #94a08c;
}
.chart-grid {
  stroke: #edf0e8;
  stroke-dasharray: 4 5;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #8b9585;
}
.chart-legend .dot {
  background: var(--green);
}
.family {
  margin: 14px 0 23px;
}
.family-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 10px;
  gap: 8px;
}
.family-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #66745e;
}
.family-row b {
  font-weight: 500;
}
.bar {
  height: 8px;
  background: #f2f4ed;
  border-radius: 4px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 4px;
}
.family:nth-child(2) .bar i {
  background: #9ab58a;
}
.family:nth-child(3) .bar i {
  background: #d2dfaa;
}
.family-total {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8a9680;
}
.family-total b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
th {
  font-size: 8px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #8e9a84;
  font-weight: 500;
  background: #fafbf8;
  padding: 11px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 22px;
  border-bottom: 1px solid #eff2eb;
  color: #65725d;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td b {
  font-weight: 500;
  color: var(--ink);
}
td.numeric,
th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.product-name {
  display: flex;
  gap: 12px;
  align-items: center;
}
.product-index {
  font-size: 10px;
  color: #a8b19f;
  width: 14px;
}
.product-icon {
  width: 31px;
  height: 34px;
  border-radius: 5px;
  background: #f0f3e8;
  display: grid;
  place-items: center;
  color: #819867;
}
.product-icon .icon {
  width: 16px;
}
.product-name small {
  display: block;
  font-size: 8px;
  color: #9ba58f;
  margin-top: 2px;
}
.footer {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a0aa94;
  padding-top: 22px;
  letter-spacing: 0.3px;
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-body {
  padding: 22px;
}
.card h3 {
  font-size: 17px;
  margin: 14px 0 9px;
  font-family: Georgia, serif;
  font-weight: normal;
  color: var(--deep);
}
.card p {
  color: var(--muted);
  font-size: 11px;
  min-height: 36px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-symbol {
  width: 39px;
  height: 39px;
  background: var(--mint);
  border-radius: 10px;
  color: var(--green);
  display: grid;
  place-items: center;
}
.card-footer {
  padding: 14px 22px;
  background: #fcfdfb;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #8a9680;
  gap: 5px;
}
.card-footer .button {
  padding: 6px 8px;
  font-size: 10px;
}
.card-preview {
  height: 92px;
  background: #edf4e7;
  padding: 20px 25px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.card-preview i {
  flex: 1;
  background: #83a76b;
  border-radius: 3px 3px 0 0;
  opacity: 0.6;
}
.card-preview .preview-empty {
  font-size: 10px;
  color: #8b9b7c;
  margin: auto;
}
.empty {
  text-align: center;
  padding: 50px 22px;
  color: var(--muted);
}
.empty .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 13px;
  color: #a2b58e;
}
.empty h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--green);
  font-weight: normal;
  margin-bottom: 9px;
}
.empty p {
  font-size: 12px;
  max-width: 430px;
  margin: 0 auto 18px;
}
.empty.compact {
  padding: 35px 15px;
}
.list-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
}
.list-search {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  max-width: 320px;
  flex: 1;
}
.list-search input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 11px;
  background: transparent;
}
.list-search .icon {
  width: 16px;
  color: #92a082;
}
.tabs {
  display: flex;
  gap: 4px;
}
.tabs button {
  padding: 8px 13px;
  font-size: 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #7b8970;
}
.tabs button.selected {
  background: white;
  border-color: var(--line);
  color: var(--green);
}
.inline-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.row-title {
  display: flex;
  gap: 11px;
  align-items: center;
}
.row-title .card-symbol {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.row-title p {
  font-size: 9px;
  color: #8e9b85;
  margin-top: 3px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-card {
  padding: 24px;
}
.settings-card h2 {
  margin-bottom: 8px;
}
.settings-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  gap: 14px;
}
.setting-row:last-child {
  padding-bottom: 0;
}
.setting-row b {
  font-size: 12px;
  font-weight: 500;
}
.setting-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.connect-banner {
  padding: 26px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid #d5e3cd;
  border-radius: 11px;
  margin-bottom: 22px;
}
.connect-banner h2 {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: normal;
  color: var(--green);
  margin-bottom: 8px;
}
.connect-banner p {
  font-size: 11px;
  color: #78886e;
}
.code-block {
  font:
    11px/1.7 Consolas,
    monospace;
  background: #f5f7f1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.notice {
  padding: 12px 15px;
  border-radius: 7px;
  background: #f1f6eb;
  color: #6f805e;
  font-size: 11px;
  margin: 14px 0;
}
.notice.error {
  background: #fbece8;
  color: var(--danger);
}
.form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #53664b;
  margin-bottom: 6px;
}
.form input:not([type="checkbox"]),
.form select,
.form textarea {
  width: 100%;
  border: 1px solid #dce3d4;
  border-radius: 7px;
  background: white;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 12px;
}
.form input::placeholder {
  color: #a4ad9c;
}
.form textarea {
  resize: vertical;
  min-height: 84px;
}
.form small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.form .check {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 400;
  margin: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-message {
  font-size: 11px;
  color: var(--danger);
  min-height: 0;
}
.form-message:empty {
  display: none;
}
.form .button {
  padding: 12px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 5px;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
}
.auth-visual {
  background: #e7f1df;
  position: relative;
  overflow: hidden;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
}
.auth-visual img.logo {
  width: 170px;
  position: relative;
  z-index: 2;
}
.auth-visual h1 {
  color: var(--green);
  max-width: 430px;
  font-size: 53px;
  line-height: 1.08;
  margin-top: 75px;
  z-index: 2;
}
.auth-visual p {
  color: #7a8c6c;
  font-size: 13px;
  max-width: 340px;
  margin-top: 20px;
  z-index: 2;
}
.auth-visual .product-image {
  width: 100%;
  position: absolute;
  bottom: -50px;
  right: -50px;
  opacity: 0.85;
  mix-blend-mode: multiply;
  max-height: 54%;
  object-fit: cover;
  border-radius: 50% 0 0 0;
}
.auth-visual .heritage {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--green);
  z-index: 2;
  padding-top: 250px;
}
.auth-side {
  display: flex;
  flex-direction: column;
  padding: 40px 60px;
}
.auth-side .auth-top {
  font-size: 10px;
  text-align: right;
  color: #8b967f;
}
.auth-box {
  width: 100%;
  max-width: 365px;
  margin: auto;
}
.auth-box .eyebrow {
  font-size: 9px;
  color: #8ca078;
  margin-bottom: 17px;
}
.auth-box h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: normal;
  letter-spacing: -0.8px;
  color: var(--deep);
}
.auth-box > p {
  font-size: 12px;
  color: #87937b;
  margin: 12px 0 29px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin: 14px 0 24px;
}
.text-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--green);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-divider {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #a0aa95;
  font-size: 9px;
  margin: 24px 0;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.auth-footer {
  font-size: 9px;
  color: #a4ad9a;
  text-align: center;
  padding-top: 30px;
}
.boot {
  height: 100vh;
  display: grid;
  place-content: center;
  gap: 15px;
  text-align: center;
  color: var(--green);
  font-weight: bold;
  letter-spacing: 4px;
}
.boot span {
  font-weight: normal;
  font-size: 11px;
  letter-spacing: 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(520px, calc(100% - 30px));
  padding: 27px;
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 22px 100px #17291830;
}
dialog::backdrop {
  background: #19381e66;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 10px;
}
.dialog-header h2 {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: normal;
}
.dialog-header .icon-button {
  border: 0;
}
.dialog-wide {
  width: min(720px, calc(100% - 30px));
}
.qr {
  display: block;
  width: 180px;
  margin: 0 auto 15px;
}
.backup-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 15px 0;
}
.backup-codes code {
  background: #f1f5eb;
  border-radius: 5px;
  padding: 8px;
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--deep);
  color: white;
  padding: 13px 21px;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: 0 5px 25px #203e2033;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s;
  pointer-events: none;
  max-width: 450px;
}
#toast.show {
  opacity: 1;
  transform: none;
}
#toast.error {
  background: var(--danger);
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 15px;
  padding: 10px;
  background: white;
  z-index: 999;
}
.skip-link:focus {
  top: 10px;
}
.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.margin-result {
  font-family: Georgia, serif;
  font-size: 46px;
  text-align: center;
  color: var(--green);
  padding: 20px;
}
.mobile-shade {
  display: none;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #d8e4ce;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1450px) {
  .content {
    padding: 35px 45px;
  }
  .hero {
    min-height: 218px;
  }
  .hero-copy {
    padding: 34px;
  }
  .hero h2 {
    font-size: 37px;
  }
  .chart {
    height: 240px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding: 28px 13px 16px;
  }
  .main-wrap {
    margin-left: 205px;
  }
  .topbar {
    padding: 0 23px;
  }
  .content {
    padding: 26px 23px;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 24px;
  }
  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero h2 {
    font-size: 29px;
  }
  .hero-copy {
    padding: 25px;
  }
  .chart-layout {
    grid-template-columns: 1.6fr 1fr;
  }
  .auth-visual {
    padding: 42px;
  }
  .auth-visual h1 {
    font-size: 45px;
  }
  .auth-side {
    padding: 35px;
  }
  .topbar-right .date-label {
    display: none;
  }
}
@media (max-width: 820px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
    width: 230px;
  }
  .sidebar.open {
    transform: none;
  }
  .main-wrap {
    margin-left: 0;
  }
  .menu-toggle {
    display: grid;
  }
  .mobile-shade.visible {
    display: block;
    position: fixed;
    inset: 0;
    background: #213d2266;
    z-index: 25;
  }
  .topbar {
    height: 65px;
  }
  .content {
    padding: 25px 20px;
  }
  .chart-layout {
    grid-template-columns: 1.7fr 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
  .auth-side {
    min-height: 100vh;
    padding: 28px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-label {
    font-size: 10px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .heading-actions .button {
    font-size: 10px;
    padding: 9px 11px;
  }
  .hero {
    min-height: 176px;
  }
  .hero h2 {
    font-size: 30px;
  }
  .hero-copy {
    width: 70%;
  }
  .hero img {
    width: 45%;
  }
  .auth-box {
    margin: 70px auto;
  }
  .topbar-right {
    gap: 10px;
  }
  .topbar .search {
    border: 0;
    padding: 0;
  }
  .search input {
    width: 120px;
  }
}
@media (max-width: 580px) {
  .topbar {
    padding: 0 17px;
    gap: 10px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 8px;
  }
  .topbar .search {
    display: none;
  }
  .content {
    padding: 22px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions .button {
    flex: 1;
  }
  .hero {
    min-height: 201px;
  }
  .hero-copy {
    padding: 25px 20px;
    width: 91%;
    background: linear-gradient(90deg, #e8f2e3 55%, #e8f2e380);
  }
  .hero h2 {
    max-width: 270px;
    font-size: 30px;
  }
  .hero p {
    max-width: 210px;
    font-size: 10px;
  }
  .hero img {
    width: 55%;
    opacity: 0.45;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-label {
    font-size: 11px;
  }
  .chart-layout {
    grid-template-columns: 1fr;
  }
  .chart {
    height: 195px;
  }
  .grid-cards {
    grid-template-columns: 1fr;
  }
  .filter-field {
    flex: 1;
    justify-content: space-between;
    padding: 8px;
  }
  .filter-field input,
  .filter-field select {
    max-width: 130px;
  }
  .filters .data-label {
    display: none;
  }
  .filters {
    gap: 8px;
  }
  .panel-header {
    padding: 19px;
  }
  .panel-body {
    padding: 6px 19px 20px;
  }
  .footer {
    gap: 15px;
    line-height: 1.6;
  }
  .connect-banner {
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
  }
  .connect-banner h2 {
    font-size: 25px;
  }
  .list-toolbar {
    flex-wrap: wrap;
  }
  .list-search {
    max-width: none;
    flex-basis: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  td,
  th {
    padding: 12px 16px;
  }
  .settings-card {
    padding: 20px;
  }
  .setting-row {
    flex-wrap: wrap;
  }
  .demo-notice {
    font-size: 9px;
  }
  .auth-box h2 {
    font-size: 32px;
  }
  #toast {
    bottom: 15px;
    right: 15px;
    left: 15px;
  }
  .chart-layout .panel:nth-child(2) .family {
    margin-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-height: 800px) {
  .sidebar-note { display: none; }
  .sidebar-bottom { padding-top: 20px; }
  .workspace-badge { margin-top: 24px; margin-bottom: 15px; }
}
