:root {
  color-scheme: light;
  --ink: #152e29;
  --muted: #526861;
  --green: #126452;
  --line: #dce6e1;
  --surface: #fff;
  --back: #f5f8f6;
  font: 15px/1.5 "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--back);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; letter-spacing: -.055em; }
h2 { font-size: 1.16rem; letter-spacing: -.02em; }
h3 { font-size: .91rem; }
p, small, .hint { color: var(--muted); }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar, main { width: min(1220px, calc(100% - 36px)); margin: auto; }
.bar { min-height: 70px; display: flex; align-items: center; gap: 38px; }
.bar > form { margin-left: auto; }
.brand { display: flex; align-items: center; text-decoration: none; font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.05em; }
.brand > span:first-child { display: grid; place-items: center; height: 34px; width: 34px; color: white; background: var(--green); border-radius: 9px; margin-right: 9px; font-size: 1.4rem; }
.brand-light { color: var(--green); font-weight: 500; margin-left: 3px; }
nav { display: flex; gap: 5px; }
nav a { text-decoration: none; padding: 8px 12px; color: var(--muted); border-radius: 7px; font-weight: 600; }
nav a.active { background: #e6f2ec; color: var(--green); }
main { padding: 36px 0 60px; }
.page-heading, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 23px; flex-wrap: wrap; }
.section-heading { margin: 0; }
.page-heading p, .page-heading h1 + p { margin-top: 7px; }
.page-heading .badge { margin-bottom: 7px; }
.back { display: inline-block; margin-bottom: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 22px; margin-bottom: 17px; }
.flush { padding: 0; }
.login { max-width: 430px; margin: 7vh auto; padding: 30px; display: grid; gap: 22px; }
.stack { display: grid; gap: 15px; }
.grid { display: grid; gap: 17px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 2fr) minmax(285px, 1fr); align-items: start; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; font: inherit; font-weight: 650; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
button:hover, .button:hover { background: #eef5f1; }
.primary { background: var(--green); color: white; border-color: var(--green); }
.primary:hover { background: #0e5545; }
.quiet { background: transparent; }
input, select, textarea { width: 100%; min-width: 0; font: inherit; padding: 9px 10px; color: var(--ink); background: #fff; border: 1px solid #cddbd4; border-radius: 7px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; accent-color: var(--green); }
.toolbar { display: flex; align-items: center; gap: 12px; padding: 15px 19px; flex-wrap: wrap; }
.toolbar input[type=search] { flex: 1 1 245px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 11px 14px; border-top: 1px solid var(--line); }
th { color: var(--muted); background: #f7faf8; font-size: .82rem; white-space: nowrap; }
td small { display: block; margin-top: 2px; }
tfoot { font-weight: 700; }
.row-link { font-weight: 750; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 14px; color: #426057; background: #edf2ef; white-space: nowrap; font-size: .8rem; font-weight: 700; }
.status-sent { background: #e9effc; color: #315284; }
.status-approved, .status-closed { background: #e1f2e8; color: #245f44; }
.status-processing { background: #fff1d8; color: #7b5112; }
.status-shipped { background: #e3f1f5; color: #205866; }
.status-cancelled { background: #fbe8e8; color: #873e3e; }
.empty { padding: 35px 22px; border-top: 1px solid var(--line); color: var(--muted); }
.notice { padding: 11px 15px; background: #e5f2e9; color: var(--ink); border-radius: 8px; margin-bottom: 16px; }
.metrics .panel { display: grid; gap: 4px; align-content: start; }
.event { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.event:last-child { border: 0; padding-bottom: 0; }
.address, .legal { white-space: pre-wrap; overflow-wrap: anywhere; }
.legal { max-height: 300px; overflow: auto; background: var(--back); padding: 12px; }
details summary { color: var(--green); font-weight: 650; cursor: pointer; }
details[open] summary { margin-bottom: 12px; }
details > label { margin-bottom: 8px; }
.entry { border-top: 1px solid var(--line); padding-top: 10px; }
.entry summary span { color: var(--muted); margin-left: 8px; }
.item-row { display: grid; grid-template-columns: minmax(150px, 3fr) minmax(66px, 1fr) minmax(110px, 1fr) minmax(74px, 1fr) auto; gap: 9px; align-items: end; }
@media (max-width: 820px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .bar { flex-wrap: wrap; gap: 8px; padding: 12px 0; }
  nav { order: 2; width: 100%; }
  nav a { padding: 7px 8px; }
  main { padding-top: 24px; }
  .two, .three { grid-template-columns: minmax(0, 1fr); }
  .metrics { gap: 0; }
  .item-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .item-row label:first-child { grid-column: 1 / -1; }
  .panel { padding: 15px; }
  .flush { padding: 0; }
}
