* {
  box-sizing: border-box;
}

:root {
  --bg: #06100c;
  --surface: #0d1a14;
  --surface2: #11271b;
  --border: #1c3c2b;
  --text: #e6fff0;
  --muted: #9fb8aa;
  --lime: #39ff88;
  --danger: #ff9898;
  --radius: 7px;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  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;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

button:disabled {
  opacity: .5;
  cursor: wait;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #2a533b;
  border-radius: 7px;
  background: #06100c;
  color: var(--text);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #829d8c;
}

label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 8px;
}

input[type=file] {
  font-size: 12px;
  padding: 8px;
}

input[type=file]::file-selector-button {
  border: 1px solid #444b50;
  background: #12301e;
  color: var(--text);
  padding: 7px 10px;
  margin-right: 10px;
  border-radius: 4px;
  cursor: pointer;
}

input[type=number] {
  font-variant-numeric: tabular-nums;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1.35px;
  font-weight: 700;
}

h2 {
  font-size: 17px;
  letter-spacing: -.3px;
  line-height: 1.3;
}

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

.muted {
  color: var(--muted);
}

[hidden] {
  display: none!important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 10px 15px;
  background: var(--lime);
  color: #111;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.wordmark {
  display: flex;
  align-items: center;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1.5px;
  font-style: italic;
  line-height: 1;
}

.wordmark span {
  color: var(--lime);
}

.wordmark i {
  font-size: 26px;
  color: var(--lime);
  margin-left: 6px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: var(--muted);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 11px 17px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}

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

.button.primary {
  background: var(--lime);
  color: #06100c;
}

.button.primary:hover {
  background: #72ffaa;
}

.button.secondary {
  background: #12281c;
  border-color: var(--border);
}

.button.secondary:hover {
  background: #163923;
  border-color: #535b60;
}

.button.danger {
  color: var(--danger);
  background: #371f23;
  border-color: #573038;
}

.full {
  width: 100%;
}

.text-link {
  color: var(--lime);
  font-size: 12px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

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

.icon-button {
  background: #11291c;
  border: 1px solid var(--border);
  width: 33px;
  height: 33px;
  border-radius: 7px;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.icon-button:hover {
  background: #28533a;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: middle;
}

.login-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.login-art {
  position: relative;
  overflow: hidden;
  background: var(--lime);
  color: #06100c;
  padding: 45px 55px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.login-art .wordmark {
  font-size: 32px;
  position: relative;
  z-index: 1;
}

.login-art .wordmark span,
.login-art .wordmark i {
  color: #06100c;
}

.login-art p {
  font-size: clamp(35px, 4.7vw, 76px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.05;
  position: relative;
  z-index: 1;
  margin-top: 150px;
}

.login-art small {
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 60px;
}

.art-lines {
  position: absolute;
  right: -145px;
  top: 12%;
  transform: rotate(-30deg);
  width: 500px;
  height: 480px;
}

.art-lines span {
  position: absolute;
  inset: 0;
  border: 1px solid #39ff8830;
  border-radius: 60px;
}

.art-lines span:nth-child(2) {
  inset: 40px;
}

.art-lines span:nth-child(3) {
  inset: 80px;
}

.login-side {
  padding: 45px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-side>.text-link {
  color: var(--muted);
}

.login-card {
  width: 100%;
  max-width: 380px;
  margin: 70px auto;
}

.login-card h1 {
  font-size: 42px;
  margin: 15px 0 20px;
}

.login-card>p.muted {
  margin-bottom: 35px;
  font-size: 14px;
  line-height: 1.8;
}

.login-card label {
  margin-bottom: 10px;
}

.login-card input {
  height: 47px;
}

.login-card .primary {
  margin-top: 5px;
  justify-content: space-between;
}

.login-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
}

.form-error {
  color: var(--danger);
  font-size: 12px;
  min-height: 18px;
  margin: 10px 0;
}

.admin-app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 230px;
  flex: 0 0 230px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 33px 18px 0;
  border-right: 1px solid var(--border);
  background: #08150e;
  z-index: 20;
}

.sidebar>.wordmark {
  padding-left: 11px;
  margin-bottom: 36px;
}

.workspace-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.workspace-chip small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  margin-top: 2px;
}

.workspace-icon {
  height: 28px;
  width: 28px;
  background: #12331f;
  border: 1px solid #286c44;
  color: var(--lime);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.workspace-chip>.live-dot {
  margin-left: auto;
}

.nav-label {
  font-size: 12px;
  color: #91ad9c;
  letter-spacing: 1.2px;
  margin: 28px 11px 12px;
  font-weight: 700;
}

.main-nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  color: #a7bdaf;
  text-align: left;
  padding: 12px;
  min-height: 43px;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}

.nav-item>span:first-child:not(.nav-badge) {
  width: 17px;
  font-size: 20px;
  line-height: 1;
}

.nav-item:hover {
  background: #12281c;
  color: var(--text);
}

.nav-item.active {
  background: #123a24;
  color: var(--lime);
}

.nav-badge {
  margin-left: auto;
  background: #234632;
  color: #b7bdc0;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  min-width: 20px;
  text-align: center;
}

.nav-badge.lime {
  color: var(--lime);
  background: #124025;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 50px;
}

.mode-card {
  padding: 15px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0 0 17px;
}

.mode-card strong {
  font-size: 12px;
  margin-left: 7px;
}

.mode-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 9px 0 0 15px;
  line-height: 1.8;
}

.admin-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 20px 10px;
  margin-top: 13px;
  font-size: 12px;
  font-weight: 700;
}

.admin-profile>span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #30362b;
  color: #c0ebcf;
  font-size: 12px;
}

.admin-profile small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.main-wrap {
  width: calc(100% - 230px);
  margin-left: 230px;
}

.topbar {
  height: 75px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 37px;
  font-size: 12px;
}

.topbar strong {
  font-weight: 500;
}

.crumb-slash {
  color: #535b60;
  padding: 0 13px;
}

.admin-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b6bcbf;
  font-size: 12px;
}

.admin-status .live-dot {
  width: 5px;
  height: 5px;
  min-width: 5px;
}

main {
  padding: 36px 37px 0;
  max-width: 1650px;
  margin: auto;
  outline: none!important;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 31px;
}

.page-heading .eyebrow {
  margin-bottom: 12px;
}

.page-heading h1 {
  margin-bottom: 10px;
}

.page-heading>div>.muted {
  font-size: 12px;
}

.page-heading>.button {
  margin-top: 10px;
}

.title-dot {
  color: var(--lime);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 27px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 21px;
}

.stat-card>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #b8d0c0;
  gap: 10px;
}

.stat-card svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.stat-card>div>span:last-child:not(:first-child) {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.stat-card strong {
  font-size: 40px;
  letter-spacing: -1.5px;
  font-weight: 500;
  display: block;
  line-height: 1;
  margin: 20px 0 12px;
  font-variant-numeric: tabular-nums;
}

.stat-card p {
  font-size: 12px;
  color: var(--muted);
}

.stat-card.accent {
  background: var(--lime);
  border-color: var(--lime);
  color: #06100c;
}

.stat-card.accent>div {
  color: #063219;
}

.stat-card.accent p {
  color: #155232;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(255px, 1fr);
  gap: 23px;
  align-items: start;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.panel-heading {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.panel-heading h2 {
  font-size: 14px;
}

.panel-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}

.panel-heading .text-link {
  font-size: 12px;
  white-space: nowrap;
}

.panel-heading .eyebrow {
  font-size: 12px;
  display: block;
  margin-bottom: 9px;
}

.circle-icon {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--lime);
}

.table-wrap {
  overflow: auto;
  min-height: 140px;
}

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

th {
  font-size: 12px;
  color: #9cb5a6;
  letter-spacing: .3px;
  font-weight: 500;
  background: #09170f;
  padding: 13px 23px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 18px 23px;
  border-bottom: 1px solid #1c3c2b;
  vertical-align: middle;
}

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

tbody tr:hover {
  background: #102d1c;
}

td .subtext {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.5;
}

.id-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.id-button:hover {
  color: var(--lime);
}

.number-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: #282f33;
  color: #b6c0c7;
}

.status-pill.new {
  background: #123e24;
  color: #39ff88;
}

.status-pill.confirmed {
  background: #203a43;
  color: #8bd8ed;
}

.status-pill.completed {
  background: #233c30;
  color: #88f8b0;
}

.status-pill.cancelled {
  background: #39292d;
  color: #d5a3ad;
}

.status-pill.neutral {
  color: #aeb7bc;
  background: #252c30;
}

.status-pill.danger {
  background: #3d2226;
  color: #ffb3ad;
}

.stock-panel {
  padding-bottom: 22px;
}

.stock-panel>.button {
  margin: 18px 22px 0;
  width: calc(100% - 44px);
  font-size: 12px;
  min-height: 37px;
  justify-content: space-between;
}

.stock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 22px;
  padding: 14px 0;
  border-bottom: 1px solid #234632;
}

.stock-row:last-child {
  border-bottom: 0;
}

.stock-row .product-thumb {
  width: 38px;
  height: 38px;
}

.stock-row-copy {
  min-width: 0;
  flex: 1;
}

.stock-row-copy strong {
  font-size: 12px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.stock-row-copy small {
  color: var(--muted);
  font-size: 12px;
}

.stock-number {
  font-size: 12px;
  color: #7bffac;
  white-space: nowrap;
  border: 0;
  background: none;
  padding: 4px;
}

.stock-number:hover {
  text-decoration: underline;
}

.info-strip {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 23px;
}

.info-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1px solid #286441;
  color: var(--lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 16px;
}

.info-strip strong {
  font-size: 12px;
  font-weight: 500;
}

.info-strip p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
}

.info-strip>.status-pill {
  margin-left: auto;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #1c3c2b;
  margin-top: 43px;
  padding: 21px 0;
  color: #b4bcbf;
  font-size: 12px;
  letter-spacing: .5px;
}

.page-footer>span:last-child {
  color: #8eaa99;
  letter-spacing: 0;
}

.page-footer .muted {
  margin-left: 5px;
}

.list-toolbar {
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-field {
  position: relative;
  max-width: 350px;
  flex: 1;
}

.search-field input {
  font-size: 12px;
  padding: 10px 12px 10px 33px;
}

.search-field>span {
  position: absolute;
  left: 12px;
  top: 7px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin: 0;
}

.filter-label select {
  font-size: 12px;
  width: auto;
  padding: 10px 28px 10px 12px;
  max-width: 185px;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 23px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.table-footer .live-dot {
  width: 5px;
  height: 5px;
  min-width: 5px;
  margin-right: 4px;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 175px;
}

.product-cell strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.product-thumb {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 7px;
  background: #10281b;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #28533a;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-icon {
  width: 23px;
  height: 23px;
  stroke: #82b193;
  fill: none;
  stroke-width: 1.2;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

.row-action {
  padding: 6px 9px;
  background: #12301f;
  border: 1px solid #2d6040;
  border-radius: 5px;
  color: #d3d9dc;
  font-size: 12px;
}

.row-action:hover {
  background: #225236;
  color: white;
}

.stock-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b1edc5;
  background: #12351f;
  border: 1px solid #2a6040;
  border-radius: 5px;
  padding: 5px 9px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  white-space: nowrap;
}

.stock-button.low {
  color: #94ffc0;
  background: #163b25;
  border-color: #2c6b42;
}

.stock-button.zero {
  color: #f4a0a0;
  background: #39272b;
  border-color: #56383e;
}

.stock-button:hover {
  filter: brightness(1.3);
}

.stock-button span {
  opacity: .6;
  font-size: 12px;
}

.empty-state {
  padding: 47px 25px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid #28523a;
  background: #112b1b;
  border-radius: 7px;
  margin-bottom: 15px;
  color: var(--lime);
  font-size: 20px;
}

.empty-state strong {
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 310px;
}

.empty-state .button {
  margin-top: 18px;
  min-height: 37px;
  font-size: 12px;
}

.stock-panel .empty-state {
  padding: 29px 25px;
}

.orders-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 20px;
}

.error-banner {
  background: #342227;
  border: 1px solid #61404a;
  border-radius: 8px;
  padding: 13px 16px;
  color: #efb6c0;
  font-size: 12px;
  margin-bottom: 20px;
}

.error-banner .text-link {
  margin-left: 12px;
}

dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid #2e6243;
  border-radius: 7px;
  padding: 0;
  width: 620px;
  max-width: calc(100vw - 30px);
  max-height: calc(100dvh - 40px);
  box-shadow: 0 30px 100px #0008;
}

dialog::backdrop {
  background: #050709c9;
  backdrop-filter: blur(5px);
}

dialog[open] {
  animation: appear .18s ease-out;
}

.dialog-heading {
  padding: 23px 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.dialog-heading .eyebrow {
  font-size: 12px;
  display: block;
  margin-bottom: 7px;
}

.dialog-heading h2 {
  font-size: 21px;
}

.dialog-body {
  padding: 24px 26px;
}

.dialog-footer {
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: #09180f;
}

.dialog-footer .button {
  min-height: 39px;
  font-size: 12px;
}

.field {
  margin-top: 18px;
}

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

.image-editor {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 3px;
}

.image-preview {
  width: 130px;
  height: 155px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px dashed #49534a;
  background: #102c1b;
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-preview>.placeholder-icon {
  width: 45px;
  height: 45px;
}

.image-inputs {
  flex: 1;
  min-width: 0;
}

.image-inputs label {
  font-size: 12px;
  margin-bottom: 6px;
}

.image-inputs>small {
  font-size: 12px;
  display: block;
  margin: 5px 0 13px;
}

.image-inputs input[type=text] {
  font-size: 12px;
  padding: 8px 10px;
}

.image-inputs .text-link {
  margin-top: 7px;
  font-size: 12px;
}

.small-dialog {
  width: 420px;
}

.stock-product-name {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 600;
}

.small-dialog .dialog-body .muted {
  margin-top: 12px;
  line-height: 1.7;
}

.order-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.order-summary h3 {
  font-size: 18px;
  margin: 0 0 5px;
}

.order-summary p {
  font-size: 12px;
  color: var(--muted);
}

.order-summary .status-pill {
  margin-top: 2px;
}

.payment-note {
  border: 1px solid #24573a;
  border-radius: 8px;
  background: #122b1c;
  padding: 13px 15px;
  color: #c0ebcf;
  margin-bottom: 20px;
  font-size: 12px;
}

.order-items {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.order-items td,
.order-items th {
  padding: 13px 15px;
  font-size: 12px;
}

.order-items th {
  font-size: 12px;
  border-top: 0;
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 700;
}

.notification-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.notification-box strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}

.notification-box p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.terminal-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}

.toast-region {
  position: fixed;
  bottom: 22px;
  right: 24px;
  z-index: 100;
  display: grid;
  gap: 10px;
  max-width: 390px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.toast {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #102f1d;
  border: 1px solid #2c8d53;
  border-radius: 7px;
  padding: 17px 16px;
  box-shadow: 0 10px 35px #0005;
  animation: appear .2s ease-out;
  pointer-events: auto;
  font-size: 12px;
}

.toast.error {
  background: #34242a;
  border-color: #875160;
}

.toast-copy {
  flex: 1;
}

.toast .text-link {
  margin-top: 6px;
  font-size: 12px;
}

.toast-close {
  font-size: 19px;
  background: none;
  border: 0;
  padding: 0 0 0 10px;
  color: #bfc8bf;
  line-height: 1;
}

.toast-mark {
  color: var(--lime);
  font-size: 16px;
  line-height: 1.1;
}

.toast.error .toast-mark {
  color: #ffabab;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1550px) {
  main {
    padding-top: 44px;
  }
  .page-heading {
    margin-bottom: 38px;
  }
  .stat-card {
    padding: 25px;
  }
  .stat-card strong {
    font-size: 48px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }
  .recent-panel {
    min-height: 334px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    flex-basis: 205px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .main-wrap {
    width: calc(100% - 205px);
    margin-left: 205px;
  }
  main {
    padding-left: 25px;
    padding-right: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .stat-card {
    padding: 17px 15px;
  }
  .stat-card>div {
    font-size: 12px;
  }
  .stat-card strong {
    font-size: 35px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stock-panel {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    padding: 0;
  }
  .stock-panel .panel-heading {
    padding: 22px;
  }
  .stock-panel>.button {
    grid-column: 1/-1;
    margin-top: 0;
    margin-bottom: 20px;
  }
  .stock-panel #lowStockList {
    padding: 8px 0;
  }
  .stock-panel .empty-state {
    padding: 25px;
  }
  .stock-panel .stock-row {
    margin: 0 20px;
  }
  .stock-panel .empty-icon {
    display: none;
  }
  .info-strip>.status-pill {
    display: none;
  }
  th,
  td {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 21px 23px 13px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
  }
  .sidebar>.wordmark {
    margin: 0;
    padding: 0;
    font-size: 24px;
  }
  .workspace-chip,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .main-nav {
    display: flex;
    gap: 6px;
  }
  .nav-item {
    width: auto;
    padding: 10px;
    font-size: 12px;
  }
  .nav-item svg {
    width: 16px;
    height: 16px;
  }
  .nav-badge {
    display: none;
  }
  .admin-app {
    display: block;
  }
  .main-wrap {
    width: 100%;
    margin: 0;
  }
  .topbar {
    height: 54px;
  }
  .topbar .admin-status {
    font-size: 12px;
  }
  main {
    padding-top: 28px;
  }
  .page-heading {
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .page-heading .eyebrow {
    font-size: 12px;
  }
  .page-heading>.button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .stats-grid {
    gap: 11px;
  }
  .stat-card {
    padding: 16px 12px;
  }
  .stat-card>div {
    font-size: 12px;
  }
  .stat-card>div svg,
  .stat-card>div>span:last-child:not(:first-child) {
    display: none;
  }
  .stat-card p {
    font-size: 12px;
  }
  .stat-card strong {
    font-size: 34px;
  }
  .login-art {
    padding: 35px;
  }
  .login-art p {
    font-size: 47px;
    letter-spacing: -2px;
  }
  .login-side {
    padding: 35px 10%;
  }
}
@media (max-width: 600px) {
  .sidebar {
    grid-template-columns: 1fr;
    padding: 20px 18px 11px;
    gap: 18px;
  }
  .sidebar>.wordmark {
    font-size: 23px;
  }
  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .main-nav .nav-item {
    justify-content: center;
    padding: 11px 7px;
    font-size: 12px;
    gap: 7px;
  }
  .topbar {
    height: 48px;
    padding: 0 18px;
    font-size: 12px;
  }
  .topbar .admin-status {
    font-size: 12px;
  }
  main {
    padding: 26px 18px 0;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .page-heading .eyebrow {
    font-size: 12px;
    letter-spacing: 1.3px;
    margin-bottom: 10px;
  }
  .page-heading>div>.muted {
    font-size: 12px;
    line-height: 1.7;
  }
  .page-heading>.button {
    margin: 0;
    min-height: 39px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 18px;
  }
  .stat-card>div {
    font-size: 12px;
  }
  .stat-card strong {
    font-size: 36px;
    margin: 19px 0 10px;
  }
  .stat-card p {
    font-size: 12px;
  }
  .dashboard-grid {
    gap: 20px;
  }
  .panel-heading {
    padding: 20px 18px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-heading p {
    font-size: 12px;
  }
  .panel-heading .text-link {
    font-size: 12px;
  }
  .recent-panel table th,
  .recent-panel table td {
    padding: 14px;
    font-size: 12px;
  }
  .recent-panel table th {
    font-size: 12px;
  }
  .recent-panel table td:nth-child(2),
  .recent-panel table th:nth-child(2) {
    display: none;
  }
  .stock-panel {
    display: block;
    padding-bottom: 20px;
  }
  .stock-panel .panel-heading {
    padding: 20px;
  }
  .stock-panel .stock-row-copy strong {
    max-width: 210px;
  }
  .stock-panel #lowStockList {
    padding: 0;
  }
  .stock-panel>.button {
    margin: 13px 20px 0;
    width: calc(100% - 40px);
  }
  .stock-panel .empty-state {
    padding: 17px 24px;
  }
  .stock-panel .empty-icon {
    display: grid;
    width: 36px;
    height: 36px;
  }
  .info-strip {
    padding: 17px 15px;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
  }
  .info-strip strong {
    font-size: 12px;
  }
  .info-strip p {
    font-size: 12px;
    line-height: 1.8;
  }
  .page-footer {
    margin-top: 30px;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    padding: 19px 0;
  }
  .list-toolbar {
    padding: 15px;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .search-field {
    max-width: none;
  }
  .filter-label {
    justify-content: space-between;
  }
  .filter-label select {
    width: 170px;
    max-width: none;
  }
  .table-footer {
    padding: 14px 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .table-wrap table {
    min-width: 570px;
  }
  .recent-panel .table-wrap table {
    min-width: 0;
  }
  .recent-panel .empty-state {
    padding: 40px 25px;
  }
  .orders-note {
    font-size: 12px;
    line-height: 1.7;
  }
  .login-view {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 0;
    height: 150px;
    padding: 30px;
  }
  .login-art .wordmark {
    font-size: 28px;
  }
  .login-art p {
    font-size: 23px;
    letter-spacing: -.8px;
    margin: 0;
    text-align: right;
  }
  .login-art small {
    display: none;
  }
  .art-lines {
    top: -230%;
    right: -300px;
  }
  .login-side {
    padding: 30px;
    min-height: calc(100vh - 150px);
  }
  .login-card {
    margin: 55px auto;
  }
  .login-card h1 {
    font-size: 37px;
  }
  .login-side>.small {
    font-size: 12px;
  }
  dialog {
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
  .dialog-heading {
    padding: 20px;
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-footer {
    padding: 16px 20px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .dialog-footer .button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .image-editor {
    gap: 14px;
  }
  .image-preview {
    width: 88px;
    height: 132px;
  }
  .image-inputs input[type=file] {
    max-width: 100%;
    font-size: 12px;
  }
  .image-inputs input[type=file]::file-selector-button {
    padding: 5px;
    font-size: 12px;
    margin-right: 4px;
  }
  .form-grid {
    gap: 0 13px;
  }
  .field label {
    font-size: 12px;
  }
  .order-summary h3 {
    font-size: 16px;
  }
  .order-items td,
  .order-items th {
    padding: 12px 10px;
    font-size: 12px;
  }
  .notification-box {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .toast-region {
    right: 15px;
    bottom: 15px;
    width: calc(100% - 30px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
}
.mobile-logout {
  display: none;
}

.telegram-contact {
  margin-top: 9px;
}

@media (max-width: 850px) {
  .mobile-logout {
    display: inline-flex;
    font-size: 12px;
  }
  .topbar .admin-status {
    display: none;
  }
}
/* Green command centre */
:root {
  --bg: #06100c;
  --surface: #0d1a14;
  --surface2: #11271b;
  --border: #1c3c2b;
  --text: #e6fff0;
  --muted: #9fb8aa;
  --lime: #39ff88;
  --radius: 7px;
}

body {
  font-size: 15px;
  background-image: radial-gradient(ellipse at 80% 0%, #163c2322, transparent 50%);
}

h1,
h2,
h3,
.stat-card strong,
.wordmark {
  font-family: Bahnschrift, 'Arial Narrow', Arial, sans-serif;
}

h1 {
  font-size: 40px;
  letter-spacing: -1.2px;
}

.wordmark {
  font-style: normal;
  letter-spacing: -1px;
}

.eyebrow,
.nav-label,
.page-footer,
.stat-card p,
.status-pill,
.table-footer,
th,
.admin-status,
.login-art small {
  font-family: Consolas, 'Courier New', monospace;
  letter-spacing: .7px;
}

.eyebrow {
  color: #84ba98;
}

label,
input,
select,
textarea,
.button,
.nav-item,
.text-link,
.id-button,
.row-action {
  font-size: 14px;
}

input,
select,
textarea {
  border-radius: 4px;
  background: #07140d;
  min-height: 43px;
}

input::placeholder,
textarea::placeholder {
  color: #86a392;
}

.button {
  border-radius: 4px;
  min-height: 44px;
}

.button.primary {
  box-shadow: 0 0 24px #39ff8810;
}

.button.primary:hover {
  box-shadow: 0 0 24px #39ff8828;
}

.sidebar {
  width: 250px;
  flex-basis: 250px;
  background: linear-gradient(180deg, #0a1b11, #06110b);
}

.main-wrap {
  width: calc(100% - 250px);
  margin-left: 250px;
}

.workspace-chip {
  padding: 14px 10px;
  border-radius: 5px;
}

.workspace-chip small {
  font-size: 12px;
}

.nav-item {
  gap: 10px;
}

.nav-item.active {
  background: #103a23;
  box-shadow: inset 2px 0 0 var(--lime), 0 0 22px #39ff8808;
  border-radius: 4px;
}

.nav-badge {
  font-size: 12px;
}

.mode-card {
  padding: 13px 10px;
  border-radius: 5px;
}

.mode-card strong {
  font-size: 12px;
  margin-left: 6px;
}

.mode-card p {
  font-size: 12px;
  margin-left: 0;
}

.sidebar-bottom {
  padding-top: 28px;
}

.admin-profile {
  font-size: 14px;
}

.admin-profile small {
  font-size: 12px;
}

.topbar {
  background: #07140ccc;
  font-size: 12px;
}

.page-heading>div>.muted {
  font-size: 14px;
  max-width: 600px;
}

.page-heading .eyebrow {
  font-size: 12px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.stat-card>div {
  font-size: 14px;
}

.stat-card strong {
  font-size: 46px;
  font-weight: 600;
}

.stat-card p {
  font-size: 12px;
  line-height: 1.6;
}

.stat-card.accent {
  background: linear-gradient(120deg, #39ff88, #24d86c);
  border-color: #5aff9d;
  box-shadow: 0 0 30px #39ff880d;
}

.stat-card.accent::after {
  content: '';
  position: absolute;
  right: -12px;
  bottom: -35px;
  width: 100px;
  height: 100px;
  border: 1px solid #06471d55;
  transform: rotate(45deg);
  pointer-events: none;
}

.stat-card.accent p {
  color: #154c2c;
}

.panel-heading h2 {
  font-size: 18px;
}

.panel-heading p {
  font-size: 13px;
}

.panel-heading .text-link {
  font-size: 13px;
}

.panel-heading .eyebrow {
  font-size: 12px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(285px, 1fr);
}

.stock-row-copy strong {
  font-size: 14px;
}

.stock-row-copy small,
.stock-number {
  font-size: 12px;
}

.stock-panel>.button {
  font-size: 14px;
  min-height: 43px;
}

.info-strip strong {
  font-size: 14px;
}

.info-strip p {
  font-size: 13px;
}

.status-pill {
  font-size: 12px;
  letter-spacing: 0;
  padding: 5px 8px;
  border-radius: 4px;
}

.info-strip>.status-pill {
  white-space: normal;
  text-align: center;
}

.live-dot {
  box-shadow: 0 0 8px #39ff8850;
}

table {
  font-size: 14px;
}

th {
  font-size: 12px;
}

td .subtext {
  font-size: 12px;
}

.product-cell strong,
.id-button {
  font-size: 14px;
}

.row-action {
  font-size: 13px;
  padding: 8px 10px;
}

.stock-button {
  font-size: 14px;
  border-radius: 4px;
  padding: 7px 10px;
}

.stock-button span {
  font-size: 14px;
}

.search-field input {
  font-size: 14px;
  min-height: 44px;
}

.search-field>span {
  top: 10px;
}

.filter-label {
  font-size: 12px;
}

.filter-label select {
  font-size: 14px;
}

.table-footer {
  font-size: 12px;
  letter-spacing: 0;
}

.empty-state strong {
  font-size: 16px;
}

.empty-state p {
  font-size: 14px;
}

.empty-state .button {
  font-size: 14px;
}

.orders-note,
.terminal-note {
  font-size: 13px;
}

.page-footer {
  font-size: 12px;
  letter-spacing: 0;
}

dialog {
  border-radius: 8px;
  background: #0d1a14;
  box-shadow: 0 0 1px #39ff88, 0 30px 100px #0009;
}

.dialog-heading {
  background: #0e2216;
}

.dialog-heading h2 {
  font-size: 24px;
}

.dialog-heading .eyebrow {
  font-size: 12px;
}

.dialog-footer .button {
  font-size: 14px;
}

.field label {
  font-size: 14px;
}

.image-inputs label,
.image-inputs input[type=text] {
  font-size: 14px;
}

.image-inputs>small,
.image-inputs .text-link {
  font-size: 12px;
}

.image-inputs input[type=file],
input[type=file]::file-selector-button {
  font-size: 12px;
}

.form-error {
  font-size: 13px;
}

.order-summary p {
  font-size: 13px;
}

.payment-note {
  font-size: 13px;
}

.order-items td {
  font-size: 14px;
}

.order-items th {
  font-size: 12px;
}

.notification-box strong {
  font-size: 14px;
}

.notification-box p {
  font-size: 12px;
}

.toast {
  font-size: 14px;
}

.toast .text-link {
  font-size: 13px;
}

.login-art {
  color: var(--text);
  border-right: 1px solid #255538;
  background-color: #06180d;
  background-image: linear-gradient(#39ff8808 1px, transparent 1px), linear-gradient(90deg, #39ff8808 1px, transparent 1px), radial-gradient(ellipse at 50% 65%, #125d2d88, transparent 70%);
  background-size: 42px 42px, 42px 42px, auto;
}

.login-art .wordmark span,
.login-art .wordmark i {
  color: var(--lime);
}

.login-art p {
  font-family: Bahnschrift, 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(40px, 5vw, 80px);
  letter-spacing: -2px;
  color: #e2ffec;
  text-shadow: 0 0 35px #39ff8815;
}

.login-art small {
  color: #70c58c;
  font-size: 12px;
  letter-spacing: 1.7px;
}

.art-lines {
  transform: rotate(-30deg);
  top: 20%;
  right: -200px;
}

.art-lines span {
  border-radius: 5px;
  border-color: #39ff8838;
}

.art-lines span:nth-child(2) {
  border-color: #39ff8850;
}

.login-card h1 {
  font-size: 46px;
}

.login-card>p.muted {
  font-size: 15px;
}

.login-note {
  font-size: 12px;
}

.login-side>.small {
  font-size: 12px;
}

@media (max-width: 1250px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stock-panel {
    display: block;
  }
  .stock-panel>.button {
    margin-top: 15px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 220px;
    flex-basis: 220px;
  }
  .main-wrap {
    width: calc(100% - 220px);
    margin-left: 220px;
  }
  .sidebar .nav-item {
    font-size: 13px;
  }
  .mode-card strong {
    font-size: 11px;
  }
  .page-heading h1 {
    font-size: 35px;
  }
  .stat-card strong {
    font-size: 42px;
  }
  .page-heading>.button {
    font-size: 13px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 100%;
    grid-template-columns: 1fr auto;
  }
  .main-wrap {
    width: 100%;
    margin: 0;
  }
  .sidebar .nav-item {
    font-size: 13px;
  }
  .main-nav {
    gap: 3px;
  }
  .nav-item {
    padding: 10px;
  }
  .mobile-logout {
    font-size: 12px;
  }
  .page-heading>div>.muted {
    font-size: 14px;
  }
  .stat-card>div {
    font-size: 14px;
  }
  .stat-card p {
    font-size: 12px;
  }
  .login-art p {
    font-size: 48px;
  }
  .sidebar>.wordmark {
    font-size: 25px;
  }
}
@media (max-width: 600px) {
  .sidebar {
    grid-template-columns: 1fr;
  }
  .main-nav .nav-item {
    font-size: 13px;
    gap: 7px;
  }
  .topbar {
    font-size: 12px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .page-heading .eyebrow {
    font-size: 12px;
    letter-spacing: .7px;
  }
  .page-heading>div>.muted {
    font-size: 14px;
  }
  .page-heading>.button {
    font-size: 14px;
    min-height: 44px;
  }
  .stat-card {
    padding: 18px 15px;
  }
  .stat-card>div {
    font-size: 13px;
  }
  .stat-card strong {
    font-size: 38px;
  }
  .stat-card p {
    font-size: 12px;
    letter-spacing: 0;
  }
  .panel-heading h2 {
    font-size: 17px;
  }
  .panel-heading p,
  .panel-heading .text-link {
    font-size: 12px;
  }
  .recent-panel table th {
    font-size: 12px;
  }
  .recent-panel table td {
    font-size: 13px;
  }
  .recent-panel .id-button {
    font-size: 12px;
  }
  .recent-panel td .subtext {
    font-size: 12px;
  }
  .recent-panel table th,
  .recent-panel table td {
    padding: 14px 10px;
  }
  .recent-panel .status-pill {
    font-size: 11px;
    padding: 5px;
  }
  .info-strip strong {
    font-size: 14px;
  }
  .info-strip p {
    font-size: 13px;
  }
  .orders-note {
    font-size: 13px;
  }
  .page-footer {
    font-size: 12px;
  }
  .login-art {
    height: 190px;
    border-right: 0;
    border-bottom: 1px solid #255538;
  }
  .login-art p {
    font-size: 28px;
    letter-spacing: -.5px;
  }
  .login-side {
    min-height: calc(100vh - 190px);
  }
  .login-card h1 {
    font-size: 40px;
  }
  .login-side>.small {
    font-size: 12px;
  }
  .dialog-heading h2 {
    font-size: 22px;
  }
  .dialog-footer .button {
    font-size: 13px;
  }
  .image-editor {
    align-items: flex-start;
  }
  .image-preview {
    width: 80px;
    height: 140px;
  }
  .image-inputs input[type=file],
  .image-inputs input[type=file]::file-selector-button {
    font-size: 12px;
  }
  .image-inputs input[type=file] {
    overflow: hidden;
  }
  .field label {
    font-size: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .order-items td,
  .order-items th {
    font-size: 12px;
  }
  .order-total {
    font-size: 14px;
  }
  .toast {
    font-size: 14px;
  }
}
/* Creator attribution and private order notes */
.creator-panel {
  margin-top: 23px;
}

.creator-panel .panel-heading {
  padding-bottom: 18px;
}

.creator-panel .panel-heading .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 24px 24px;
}

.creator-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #09170f;
  padding: 20px;
}

.creator-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 21px;
}

.creator-code {
  font-family: Consolas, 'Courier New', monospace;
  color: var(--lime);
  font-size: 16px;
  letter-spacing: .8px;
  margin: 0;
}

.creator-tag {
  font-family: Consolas, 'Courier New', monospace;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .4px;
}

.creator-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.creator-metrics>div {
  min-width: 0;
}

.creator-metrics dt {
  font-size: 12px;
  color: var(--muted);
  min-height: 36px;
  line-height: 1.4;
}

.creator-metrics dd {
  font-family: Bahnschrift, Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  margin: 8px 0 0;
}

.creator-delivered-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.creator-delivered-value span {
  font-size: 12px;
  color: var(--muted);
}

.creator-delivered-value strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  color: #b1edc5;
}

.orders-toolbar {
  flex-wrap: wrap;
}

.orders-toolbar .search-field {
  min-width: 220px;
  max-width: none;
}

.orders-toolbar .filter-label select {
  width: 160px;
}

.creator-order-code {
  display: table;
  font: 12px Consolas, 'Courier New', monospace;
  letter-spacing: .3px;
  color: #8bedb0;
  border: 1px solid #235e39;
  background: #10331d;
  padding: 2px 5px;
  border-radius: 3px;
  margin-top: 8px;
}

.order-creator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.order-creator>span {
  font-size: 13px;
  color: var(--muted);
}

.order-creator .creator-code {
  font-size: 14px;
}

.creator-explanation {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.private-note-editor {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.private-note-editor label {
  font-size: 14px;
  margin-bottom: 6px;
}

.private-note-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.private-note-editor textarea {
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

.private-note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 11px;
}

.note-save-status {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.note-save-status.error {
  color: var(--danger);
}

.private-note-footer .button {
  font-size: 13px;
  min-height: 39px;
  flex-shrink: 0;
}

@media (max-width: 1250px) {
  .creator-grid {
    grid-template-columns: 1fr;
  }
  .creator-metrics dt {
    min-height: 0;
  }
}
@media (max-width: 850px) {
  .orders-toolbar .search-field {
    flex-basis: 100%;
  }
}
@media (max-width: 600px) {
  .creator-panel {
    margin-top: 20px;
  }
  .creator-grid {
    padding: 0 18px 18px;
    gap: 14px;
  }
  .creator-card {
    padding: 17px;
  }
  .creator-card-heading {
    gap: 8px;
    margin-bottom: 18px;
  }
  .creator-code {
    font-size: 15px;
  }
  .creator-tag {
    font-size: 12px;
  }
  .creator-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 18px;
  }
  .creator-metrics dd {
    font-size: 27px;
  }
  .creator-metrics dt {
    font-size: 12px;
  }
  .creator-delivered-value {
    margin-top: 20px;
  }
  .orders-toolbar .search-field {
    min-width: 0;
    flex-basis: auto;
  }
  .orders-toolbar .filter-label select {
    width: 170px;
  }
  .creator-order-code {
    font-size: 12px;
  }
  .private-note-footer {
    gap: 10px;
  }
  .private-note-footer .button {
    font-size: 13px;
  }
  .note-save-status {
    font-size: 12px;
  }
}
.confirmation-dialog {
  width: 460px;
}

.confirmation-dialog .dialog-heading h2 {
  font-size: 22px;
  line-height: 1.3;
}

.confirmation-dialog .dialog-body {
  font-size: 14px;
  line-height: 1.8;
  color: #b8d0c0;
}

.confirmation-dialog .dialog-footer {
  flex-wrap: wrap;
}

.confirmation-dialog::backdrop {
  background: #020806bd;
  backdrop-filter: blur(3px);
}

/* Promo code tracking */
.promo-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.promo-detail-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.promo-detail-stats .stat-card strong {
  font-size: 32px;
}
.promo-note-cell {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.top-promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 24px;
  border-bottom: 1px solid #1c3c2b;
}
.top-promo-row:last-child {
  border-bottom: 0;
}
.top-promo-copy {
  min-width: 0;
}
.top-promo-copy .id-button {
  font-size: 14px;
}
.top-promo-copy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.top-promo-row>strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: #b1edc5;
  white-space: nowrap;
}
.page-heading-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.load-more {
  margin: 0 22px 22px;
  width: calc(100% - 44px);
  justify-content: space-between;
  font-size: 12px;
  min-height: 37px;
}
.promos-toolbar {
  flex-wrap: wrap;
}
.promos-toolbar .search-field {
  min-width: 220px;
  max-width: none;
}
.promos-toolbar .filter-label select {
  width: 160px;
}
@media (max-width: 1250px) {
  .promo-stats-grid,
  .promo-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .promo-detail-stats .stat-card strong {
    font-size: 30px;
  }
}
@media (max-width: 600px) {
  .promo-stats-grid,
  .promo-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .promo-detail-stats .stat-card strong {
    font-size: 30px;
  }
  .page-heading-actions {
    width: 100%;
  }
  .page-heading-actions .button {
    flex: 1;
  }
  .promo-note-cell {
    max-width: 130px;
  }
  .top-promo-row {
    padding: 14px 18px;
  }
  .load-more {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
  }
  .promos-toolbar .search-field {
    min-width: 0;
    flex-basis: 100%;
  }
  .promos-toolbar .filter-label select {
    width: 170px;
  }
}
