@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.7c87a648293f.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.ada540c0e24a.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #eff8f7;
  --paper: #fff;
  --ink: #172a25;
  --muted: #586761;
  --green: #173d35;
  --deep: #102d27;
  --accent: #ddf994;
  --line: #dfe6dc;
  --soft: #eef4e7;
  --radius: 17px;
  --shadow: 0 2px 4px #22382d06, 0 12px 28px #21382d06;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; }
a { color: #1d5746; font-weight: 700; text-underline-offset: .2em; }
a:hover { color: #102d27; }
:focus-visible { outline: 3px solid #568434; outline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, .amount {
  font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -.026em;
}
h1 { margin: 0 0 .28em; font-size: clamp(2.25rem, 4.1vw, 3.45rem); font-weight: 750; overflow-wrap: anywhere; }
h2 { margin: 0 0 .6em; font-size: 1.44rem; font-weight: 750; }
h3 { margin: 1.25em 0 .65em; font-size: 1.14rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr-only, .skip-link:not(:focus) { position: absolute; height: 1px; width: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; background: var(--accent); padding: 12px 16px; border-radius: 8px; }
.signed-in { display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.layout-main { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.sidebar {
  height: 100dvh; position: sticky; top: 0; z-index: 4;
  background: var(--deep); color: #f6fbf6; display: flex; flex-direction: column;
  gap: 30px; padding: 24px 16px 16px; overflow: auto;
}
.brand { display: block; width: fit-content; max-width: 100%; border-radius: 10px; }
.brand-logo { display: block; width: 170px; height: auto; border-radius: 10px; }
.brand, .bar-logo { background: #d4efed; }
.brand-logo, .bar-logo img { mix-blend-mode: multiply; }
.sidebar nav { display: grid; gap: 4px; }
.nav-heading { padding: 4px 11px 9px; color: #b4ccbf; font-size: .73rem; text-transform: uppercase; letter-spacing: .105em; font-weight: 800; }
.sidebar nav a { color: #e6f0e9; text-decoration: none; padding: 10px 11px; border-radius: 9px; min-height: 42px; display: flex; gap: 11px; align-items: center; font-weight: 600; }
.sidebar nav a span { width: 19px; text-align: center; font-size: 1.12rem; line-height: 1; }
.sidebar nav a:hover { background: #25473c; }
.sidebar nav a[aria-current="page"] { color: var(--deep); background: var(--accent); font-weight: 800; }
.sidebar nav a.nav-switch { border-top: 1px solid #38554b; border-radius: 0; margin: 15px 4px 0; justify-content: space-between; }
.sidebar-account { margin-top: auto; padding: 15px 4px 2px; border-top: 1px solid #38554b; display: flex; gap: 10px; align-items: center; }
.sidebar-account strong { display: block; font-size: .92rem; overflow-wrap: anywhere; }
.sidebar-account small { display: block; color: #c6d8cc; font-size: .75rem; }
.sidebar-account form { margin-left: auto; }
.avatar, .signout { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-weight: 800; background: #e0ebd7; color: var(--deep); }
.signout { background: #284a3f; border: 0; color: #eff8f1; font-size: 1.15rem; }
.signout:hover { background: #3b5f52; }
.topbar { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 clamp(16px, 4vw, 45px); border-bottom: 1px solid var(--line); background: #fff; }
.bar-left, .bar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bar-brand { font-weight: 800; }
.bar-logo { display: none; }
.bar-area { border-left: 1px solid var(--line); padding-left: 12px; color: var(--muted); }
.demo-tag { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 5px 10px; font-size: .77rem; color: #425249; white-space: nowrap; }
.demo-tag i { width: 7px; height: 7px; background: #68874b; border-radius: 50%; }
.menu-toggle { display: none; }
.page-content { width: min(100%, 1480px); margin-inline: auto; padding: 31px clamp(16px, 4vw, 45px) 44px; flex: 1; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.page-heading p { margin: 0; color: var(--muted); }
.page-heading .eyebrow, .eyebrow { margin-bottom: 8px; text-transform: uppercase; font-size: .77rem; font-weight: 800; letter-spacing: .095em; color: #35634f; }
.back { display: inline-block; margin-bottom: 12px; font-size: .88rem; text-decoration: none; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .83rem; border-top: 1px solid var(--line); padding: 15px clamp(16px, 4vw, 45px); }
.footer div { display: flex; gap: 17px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 43px;
  padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 800;
  line-height: 1.25; text-align: center; text-decoration: none; width: fit-content;
}
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: var(--deep); }
.button.ghost { background: var(--paper); border-color: #cdd8cf; color: #244c3c; }
.button.ghost:hover { background: var(--soft); }
.button.lime { background: var(--accent); color: var(--deep); }
.button.lime:hover { background: #c9eb7a; }
.button.danger { background: #faeae5; color: #862f22; border-color: #efc9c0; }
.button.small { min-height: 36px; padding: 6px 11px; font-size: .86rem; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel, .stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel { margin-bottom: 19px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.panel-head a, .section-title > a { font-size: .87rem; text-decoration: none; }
.panel-head a:hover, .section-title > a:hover { text-decoration: underline; }
.panel-head h2, .section-title h2 { margin: 0; }
.padded, .form-panel { padding: clamp(15px, 2.4vw, 23px); }
.form-panel { width: min(100%, 650px); }
.form-panel h1 { font-size: clamp(1.85rem, 3.5vw, 2.65rem); }
.section-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.amount { font-weight: 800; font-size: 1.9rem; color: var(--green); white-space: nowrap; }
.columns, .dashboard-columns { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.dashboard-columns { grid-template-columns: 1.14fr 1fr; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 15px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; gap: 7px; }
.stat > div { display: flex; align-items: center; gap: 8px; color: #394c41; font-size: .86rem; font-weight: 750; }
.stat > strong { font: 780 clamp(1.45rem, 2.7vw, 2.34rem)/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: -.045em; white-space: nowrap; }
.stat > small, .stat > a { font-size: .8rem; text-decoration: none; color: #4c6556; }
.stat.featured { background: #e8f6d0; border-color: #d8e8bc; }
.stat-icon, .row-icon { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 9px; color: #215441; background: #e8f0e4; font-weight: 800; font-size: 1.1rem; }
.stat-icon.amber, .row-icon.amber { background: #f9eee0; color: #814d17; }
.list-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 18px; text-decoration: none; color: var(--ink); }
.list-row + .list-row { border-top: 1px solid #e8ede6; }
.list-row:hover { background: #f7faf4; }
.list-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.list-row small, td small, th small, .plain-list small { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.row-value { text-align: right; white-space: nowrap; }
.portal-hero { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 19px; padding: clamp(20px, 4vw, 39px); display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: white; background: radial-gradient(ellipse at top right, #39634e 0%, #173d35 55%, #102d27 100%); }
.portal-hero p { font-weight: 750; color: #e0efe4; margin-bottom: 7px; }
.portal-hero strong { display: block; font: 770 clamp(2.9rem, 6vw, 4.55rem)/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.06em; }
.portal-hero small { display: block; margin-top: 9px; color: #d2e6d8; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 14px; margin-bottom: 14px; }
.cards h2 { margin: 10px 0; }
.product-admin { border: 1px solid var(--line); background: #f8faf5; padding: 14px; border-radius: 12px; margin-top: 12px; }
.product-admin h3 { margin: 0 0 5px; }
.product-card { overflow: hidden; }
.product-card .section-title h2 { margin: 0; }
.product-card p { color: var(--muted); margin: 9px 0; }
.product-card .actions { margin-top: 12px; }
.product-photo { display: block; width: 100%; height: 220px; object-fit: cover; }
.details { display: grid; grid-template-columns: minmax(90px, auto) minmax(0, 1fr); gap: 8px 13px; margin: 16px 0; }
.details dt { font-weight: 800; }
.details dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.empty { color: var(--muted); text-align: center; padding: 22px 15px; margin: 0; }
.muted { color: var(--muted); }
.plain-list { margin: 9px 0 17px; list-style: none; padding: 0; }
.plain-list li { padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.recipient-list { display: grid; gap: 6px 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.status { display: inline-block; width: fit-content; padding: 4px 9px; border-radius: 100px; background: #edf1ec; color: #43534a; font-size: .77rem; line-height: 1.3; font-weight: 800; white-space: nowrap; }
.status.paid { background: #e2f1db; color: #255935; }
.status.open { background: #fff1cd; color: #69490f; }
.status.overdue { background: #fbe4db; color: #873923; }
.status.refunded { background: #e9e8f7; color: #4d417d; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #f6f8f3; color: #46584d; }
th, td { padding: 13px 15px; border-bottom: 1px solid #e6ebe3; }
th { font-weight: 750; }
thead th { font-size: .82rem; white-space: nowrap; }
tbody th { min-width: 125px; }
tbody tr:last-child > * { border-bottom: 0; }
td.numeric, th.numeric, .right { text-align: right; white-space: nowrap; }
td.numeric { font-weight: 800; font-variant-numeric: tabular-nums; }
.table-link { white-space: nowrap; }
.pagination { border-top: 1px solid var(--line); display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; font-size: .85rem; }
.filters, .period-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px; }
.period-filter { align-items: center; padding: 0; margin-bottom: 12px; font-size: .88rem; }
.filters label { display: grid; gap: 4px; min-width: min(100%, 130px); }
label { font-weight: 750; }
.stack { display: grid; align-content: start; gap: 14px; }
.field { display: grid; gap: 4px; min-width: 0; }
.check-field { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.check-field input { width: 1.1rem; height: 1.1rem; accent-color: var(--green); }
input:not([type=checkbox], [type=hidden]), select, textarea { background: #fff; border: 1px solid #bdcabf; border-radius: 8px; width: 100%; max-width: 100%; min-height: 43px; padding: 8px 10px; }
input:disabled, select:disabled { background: #edf1eb; opacity: 1; }
.period-filter select { width: auto; max-width: 100%; min-height: 36px; padding: 5px 8px; }
textarea { min-height: 90px; resize: vertical; }
.field-help { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.errorlist { margin: 0; color: #8a2d21; padding-left: 20px; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: #9e3929; }
.notice { padding: 11px 14px; border-radius: 9px; border: 1px solid #d5e0d7; background: #ecf4e9; }
.notice.error { border-color: #eac5b8; color: #822f21; background: #fff0eb; }
.messages { display: grid; gap: 8px; margin-bottom: 16px; }
details { margin-top: 13px; }
summary { cursor: pointer; color: #235542; font-weight: 800; }
details > form, details > p { margin-top: 10px; }
.basket-line, .basket-extra { border: 1px solid var(--line); border-radius: 10px; min-width: 0; padding: 12px; margin: 0; }
.basket-line legend { font-weight: 800; padding: 0 5px; }
.basket-line .field + .field, .basket-extra .field { margin-top: 8px; }
.tabs { display: flex; gap: 7px; flex-wrap: wrap; padding: 13px 14px; }
.tabs a { padding: 7px 10px; border-radius: 7px; text-decoration: none; }
.tabs a[aria-current=page] { background: var(--soft); }
.login-grid { display: grid; grid-template-columns: 1fr .86fr; width: min(100%, 970px); margin: clamp(8px, 8vh, 70px) auto 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.login-cover { position: relative; min-height: 425px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 4vw, 44px); color: white; background: var(--deep); }
.login-cover .brand, .cover-copy { z-index: 1; position: relative; }
.login-cover .brand-logo { width: clamp(145px, 24vw, 208px); }
.cover-copy h1 { max-width: 9em; font-size: clamp(2.6rem, 5.2vw, 4.55rem); }
.cover-copy p { margin: 9px 0 0; max-width: 28ch; color: #deece1; }
.track-art { position: absolute; right: -142px; bottom: -83px; width: 380px; height: 430px; transform: rotate(29deg); }
.track-art i { display: block; position: absolute; inset: calc(var(--offset) * 23px); border: 1px solid #8caf757d; border-radius: 45%; }
.track-art i:nth-child(1) { --offset: 0; }
.track-art i:nth-child(2) { --offset: 1; }
.track-art i:nth-child(3) { --offset: 2; }
.track-art i:nth-child(4) { --offset: 3; }
.track-art i:nth-child(5) { --offset: 4; }
.login-card { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(21px, 4.5vw, 50px); }
.login-card h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin-bottom: 20px; }
.login-card .button { width: 100%; }
.login-links { display: grid; gap: 7px; margin-top: 16px; font-size: .9rem; }
.login-card p { font-size: .84rem; margin-top: 17px; }
.offline { max-width: 640px; margin: 10vh auto; padding: 24px; }

@media (max-width: 1130px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .signed-in { display: block; }
  .topbar { position: sticky; top: 0; z-index: 5; min-height: 59px; }
  .bar-brand { display: none; }
  .bar-logo { display: block; flex: none; border-radius: 6px; }
  .bar-logo img { display: block; width: 70px; height: auto; }
  .sidebar { position: fixed; top: 59px; left: 0; width: min(88vw, 300px); height: calc(100dvh - 59px); box-shadow: 12px 0 30px #102d2726; }
  .js-menu:not(.nav-open) .sidebar { display: none; }
  body:not(.js-menu) .sidebar { position: static; width: auto; height: auto; gap: 13px; }
  body:not(.js-menu) .sidebar nav { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
  body:not(.js-menu) .topbar { position: static; }
  .js-menu .menu-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: var(--paper); font-weight: 800; min-height: 36px; }
}
@media (max-width: 640px) {
  .bar-area { display: none; }
  .bar-left, .bar-right { gap: 7px; }
  .top-avatar { display: none; }
  .page-content { padding-top: 23px; }
  .page-heading { margin-bottom: 17px; }
  .dashboard-columns, .columns { grid-template-columns: 1fr; gap: 0; }
  .stats { gap: 8px; margin-bottom: 14px; }
  .stat { padding: 10px; min-height: 117px; }
  .stat > div { font-size: .78rem; gap: 5px; }
  .stat-icon, .row-icon { width: 29px; height: 29px; }
  .list-row { gap: 7px; padding-inline: 12px; }
  .panel-head { padding-inline: 13px; }
  .panel-head h2 { font-size: 1.22rem; }
  .login-grid { grid-template-columns: 1fr; margin-top: 0; }
  .login-cover { min-height: 225px; gap: 17px; }
  .cover-copy h1 { max-width: 14em; font-size: clamp(2rem, 8vw, 3.25rem); }
}
