:root {
  color-scheme: light;
  --canvas: #f3f5ef;
  --surface: #fff;
  --forest: #172f25;
  --dark: #17251f;
  --pine: #245442;
  --green: #2f6953;
  --pale: #e6eee6;
  --muted: #4a6155;
  --border: #d3ded5;
  --warn: #775025;
  --warn-bg: #f7eedc;
  --red: #7c2920;
  --red-bg: #fdece8;
  --mint: #c9e2b9;
  font: 1rem/1.53 "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--dark);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--forest);
  padding: 32px 18px 24px;
  min-height: 100%;
  color: #eef5eb;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brand {
  color: white;
  font: 700 2.8rem/1 Georgia, serif;
  letter-spacing: -.09em;
  text-decoration: none;
  margin-left: 10px;
}
.brand em {
  color: var(--mint);
  font: normal 700 .88rem/1 system-ui, sans-serif;
  letter-spacing: .04em;
  margin-left: 6px;
  vertical-align: top;
}
.lab-tag {
  margin: 9px 0 30px 11px;
  color: #b7cbbd;
  font-size: .79rem;
  font-weight: 650;
}
nav { display: grid; width: 100%; gap: 5px; }
nav a {
  color: #e4eee6;
  border-radius: 8px;
  padding: 10px 11px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 625;
  white-space: nowrap;
}
nav a:hover, nav a[aria-current="page"] { background: #315044; color: white; }
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d3e2d5;
  font-size: .83rem;
  margin: auto 0 0 10px;
  padding-top: 40px;
}
.sample-dot { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; }
main { width: 100%; max-width: 1440px; margin: 0 auto; padding: 34px clamp(18px, 4vw, 58px) 48px; }
.topbar { display: flex; justify-content: space-between; gap: 15px; align-items: end; margin-bottom: 24px; }
.eyebrow { margin: 0 0 5px; color: var(--pine); text-transform: uppercase; letter-spacing: .12em; font-weight: 750; font-size: .75rem; }
h1 { margin: 0; font: 500 clamp(2.4rem, 5vw, 4rem)/1 Georgia, serif; letter-spacing: -.062em; }
h2 { margin: 0 0 11px; font-size: 1.16rem; letter-spacing: -.022em; }
h3 { margin: 0 0 7px; font-size: 1rem; }
p { margin: 0 0 10px; }
a { color: var(--pine); }
button, select, input, textarea { font: inherit; }
button, select { cursor: pointer; }
button[disabled] { opacity: .58; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #6da08b; outline-offset: 3px; }
.connection {
  border-radius: 100px;
  padding: 5px 11px;
  background: var(--pale);
  color: var(--pine);
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 690;
  display: flex;
  align-items: center;
  gap: 7px;
}
.connection.offline { color: var(--warn); background: var(--warn-bg); }
.connection .light { display: inline-block; height: 7px; width: 7px; background: currentColor; border-radius: 50%; opacity: .85; }
.panel, .stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
}
.panel + .panel { margin-top: 15px; }
section.stack { display: grid; gap: 15px; }
section.stack > .panel { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(260px,1fr); align-items: start; gap: 15px; }
.split > .panel { margin: 0; }
.subgrid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(150px,100%),1fr)); gap: 11px; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-bottom: 15px; }
.stat:first-child { background: var(--pale); }
.stat span { display: block; color: var(--muted); font-size: .88rem; }
.stat strong { display: block; font: 500 clamp(1.45rem,3vw,2.1rem)/1.14 Georgia, serif; margin-top: 3px; letter-spacing: -.025em; }
.muted, small { color: var(--muted); }
small { font-size: .82rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.toolbar { display: flex; justify-content: space-between; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar h2 { margin: 0; }
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--pine);
  color: white;
  background: var(--pine);
  border-radius: 8px;
  font-weight: 670;
  font-size: .9rem;
  text-decoration: none;
}
.primary:hover:not(:disabled) { background: var(--forest); }
.secondary { background: var(--surface); color: var(--pine); border-color: #b5c8bb; }
.secondary:hover:not(:disabled) { background: var(--pale); }
label { display: grid; gap: 5px; min-width: 0; font-weight: 660; font-size: .88rem; color: #394e43; }
label.check { display: flex; align-items: center; gap: 8px; }
label.check input { width: 18px; min-height: 18px; }
input,select,textarea {
  min-height: 43px;
  color: var(--dark);
  font-weight: 450;
  width: 100%;
  border: 1px solid #adc1b4;
  border-radius: 7px;
  background-color: white;
  padding: 7px 9px;
}
select {
  appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg,transparent 50%,var(--pine) 50%),linear-gradient(135deg,var(--pine) 50%,transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
textarea { min-height: 96px; resize: vertical; }
form > * + * { margin-top: 9px; }
.variant-list { display: grid; gap: 8px; }
.variant-row {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(82px,100%),1fr));
  gap: 8px;
  align-items: end;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; text-align: left; border-collapse: collapse; }
th,td { border-bottom: 1px solid #e8eee8; padding: 8px; vertical-align: top; }
th { background: #f3f7f3; font-size: .82rem; white-space: nowrap; color: #435d4f; }
td { font-size: .91rem; }
tbody tr:last-child td { border-bottom: 0; }
.notice { padding: 10px 13px; border-radius: 8px; background: var(--pale); color: var(--pine); margin-bottom: 14px; }
.notice.error { background: var(--red-bg); color: var(--red); }
.notice.warning, .stale { background: var(--warn-bg); color: var(--warn); padding: 9px 11px; border-radius: 8px; }
.empty { color: var(--muted); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(220px,100%),1fr)); gap: 12px; }
.shop-card { border: 1px solid var(--border); border-radius: 11px; padding: 14px; }
.shop-card h3 { font: 500 1.5rem/1.15 Georgia,serif; }
.shop-card .availability { font-weight: 680; color: var(--pine); }
.campaign-preview {
  background: var(--forest);
  color: white;
  padding: 20px;
  margin: 0 0 12px;
  border-radius: 10px;
}
.campaign-preview .eyebrow { color: var(--mint); }
.campaign-preview h3 { font: 500 1.8rem/1.12 Georgia,serif; }
.campaign-preview p:last-child { margin-bottom: 0; }
.reel-list { margin: 8px 0 0; padding-left: 24px; }
.reel-list li { padding: 5px 0; }
.reel-list strong { color: var(--pine); }
[hidden] { display: none !important; }
@media (max-width: 950px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 740px) {
  body { display: block; }
  .sidebar { padding: 14px; gap: 5px; }
  .brand { margin: 0; font-size: 2rem; }
  .lab-tag { margin: 2px 0 2px; }
  nav { display: flex; overflow: auto; }
  nav a { padding: 7px 8px; }
  .sidebar-footer { padding: 2px 0 0; margin-left: 0; }
  main { padding: 18px 14px 32px; }
  .topbar { flex-wrap: wrap; align-items: start; }
}
@media (max-width: 420px) {
  .panel,.stat { padding: 12px; }
  .stats { gap: 6px; }
  .stat span { font-size: .75rem; }
}
.section-gap { margin-top: 15px; }
.hint { font-size: .85rem; margin-top: 9px; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; }
.checkout-total strong { font: 500 1.65rem Georgia,serif; color: var(--pine); }
.shop-form { padding-top: 9px; border-top: 1px solid var(--border); margin-top: 10px; }
.product-photo { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.reel-video { display: block; width: min(100%,240px); aspect-ratio: 9/16; background: var(--forest); border-radius: 9px; }
.sidebar-footer { display: grid; align-content: end; gap: 3px; }
.sidebar-footer p { margin: 0; }
.sidebar-footer a { color: #e8f4e3; }
.sidebar-footer .sample-dot { display: inline-block; margin-right: 3px; }
.media-field { border: 1px solid var(--border); padding: 11px 12px 9px; border-radius: 9px; min-width: 0; }
.media-field legend { font-weight: 690; padding: 0 4px; }
.photo-choices { margin-top: 0; }
.file-choice { position: relative; cursor: pointer; min-width: 140px; min-height: 46px; }
.file-choice:focus-within { outline: 3px solid #6da08b; outline-offset: 3px; }
.file-choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.phone-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(99px,100%),1fr)); gap: 8px; margin-top: 10px; }
.phone-photo { margin: 0; min-width: 0; }
.phone-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 8px; }
.phone-photo .secondary { width: 100%; min-height: 39px; margin-top: 5px; }
.table-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 150px; }
.draft-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(270px,100%),1fr)); gap: 13px; align-items: start; }
.draft-card { border: 1px solid var(--border); padding: 13px; border-radius: 10px; min-width: 0; }
.draft-card h3 { margin: 0; }
.content-badge { border-radius: 100px; background: var(--pale); color: var(--pine); padding: 3px 8px; font-size: .79rem; font-weight: 680; }
.content-badge.draft { background: var(--warn-bg); color: var(--warn); }
.content-badge.rejected { background: var(--red-bg); color: var(--red); }
.draft-media { display: block; width: min(100%,360px); max-height: 380px; object-fit: contain; object-position: center; margin: 0 auto 10px; border-radius: 8px; background: var(--canvas); }
.vertical-draft { width: min(100%,214px); aspect-ratio: 9/16; }
.clipboard-helper { position: fixed; top: 0; left: 0; width: 1px; min-height: 1px; opacity: .01; }
@media (max-width: 540px) {
  input,select,textarea { font-size: 16px; }
  .photo-choices { align-items: stretch; }
  .photo-choices .file-choice { flex: 1 1 124px; }
  .table-actions { min-width: 100px; }
  .draft-card .actions > * { min-height: 44px; }
}

.photo-pending { display: grid; place-items: center; aspect-ratio: 1; background: var(--pale); color: var(--pine); text-align: center; padding: 5px; font-size: .79rem; border-radius: 8px; }

@media (max-width: 40rem) {
  .ficha-body .ficha { overflow-wrap: anywhere; }
  .ficha-body .ficha .primary { min-height: 48px; width: 100%; }
}
