/* Seler Hub — member area, login and admin.
   Dark surfaces, a single neon-lime accent and Plus Jakarta Sans. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0a0a0a;
  --panel: #0f0f0f;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --input: #111111;
  --border: #242424;
  --border-strong: #333333;
  --text: #f5f5f5;
  --muted: #8b8b8b;
  --faint: #5c5c5c;
  --lime: #c8ff00;
  --lime-hover: #d9ff4d;
  --lime-ink: #0a0a0a;
  --lime-soft: rgba(200, 255, 0, 0.08);
  --lime-line: rgba(200, 255, 0, 0.32);
  --red: #ff6b5f;
  --red-soft: rgba(255, 107, 95, 0.1);
  --amber: #f5c451;
  --amber-soft: rgba(245, 196, 81, 0.1);
  --blue: #8cc4ff;
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.6 'Plus Jakarta Sans',
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 4px 0 6px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 16px;
}
h4 {
  font-size: 14px;
}
p {
  line-height: 1.65;
  margin: 0 0 12px;
}
strong {
  font-weight: 700;
}
/* Line icons (all drawn on a 24px grid); the Pix QR code is left alone. */
svg[viewBox='0 0 24 24'] {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
::selection {
  background: var(--lime);
  color: var(--lime-ink);
}

/* ---------- text helpers ---------- */
.muted,
small {
  color: var(--muted);
}
.small,
.small-status {
  font-size: 13px;
}
.tiny {
  font-size: 12px;
}
.block {
  display: block;
}
.center {
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
  margin: 0;
  letter-spacing: 0.02em;
}
.positive {
  color: var(--lime) !important;
}
.negative {
  color: var(--red) !important;
}

/* ---------- buttons ---------- */
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 13px;
  background: var(--lime);
  color: var(--lime-ink);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    opacity 0.15s;
}
button:hover {
  background: var(--lime-hover);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.quiet {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.quiet:hover {
  background: #232323;
  border-color: #444;
}
.light {
  background: var(--text);
  color: var(--lime-ink);
}
.light:hover {
  background: #fff;
}
.small-button {
  padding: 8px 15px;
  font-size: 12px;
  white-space: nowrap;
}
.full {
  width: 100%;
  margin-top: 12px;
}
.link-button {
  background: none;
  color: var(--muted);
  padding: 6px 0;
  font-weight: 500;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 0;
}
.link-button:hover {
  background: none;
  color: var(--text);
}
.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.icon-button:hover {
  background: var(--surface-2);
  color: var(--text);
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.chip {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 600;
  font-size: 12px;
}
.chip:hover {
  background: var(--surface-2);
}
.chip.active {
  background: var(--lime-soft);
  border-color: var(--lime-line);
  color: var(--lime);
}
.chip:disabled {
  opacity: 0.5;
}
.chip:disabled:hover {
  background: transparent;
}
.chip .soon,
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 6px;
}

/* ---------- form fields ---------- */
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cfcfcf;
  margin-bottom: 18px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: var(--faint);
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-strong);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--lime-line);
  box-shadow: 0 0 0 3px var(--lime-soft);
}
input[readonly] {
  color: #cfcfcf;
  background: var(--surface-2);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b8b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
input[type='file'] {
  padding: 9px;
  color: var(--muted);
}
input[type='file']::file-selector-button {
  font: inherit;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  margin-right: 10px;
  cursor: pointer;
}
input[type='file'] + .tiny {
  display: block;
  margin-top: 6px;
  font-weight: 400;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
fieldset:disabled {
  opacity: 0.55;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.dimensions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
}
.counter {
  float: right;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

/* ---------- cards ---------- */
.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}
.box-inner {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
}
.box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.box-head p {
  margin: 2px 0 0;
}
.notice {
  padding: 12px 16px;
  border: 1px solid var(--lime-line);
  background: var(--lime-soft);
  border-radius: 12px;
  color: #e9ff8a;
  font-size: 13px;
  line-height: 1.6;
  margin: 16px 0;
}
.notice.success {
  border-color: var(--lime-line);
  background: var(--lime-soft);
  color: #e9ff8a;
}
.notice.error {
  border-color: rgba(255, 107, 95, 0.35);
  background: var(--red-soft);
  color: #ffc2bc;
}
.notice a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}
.warn-box {
  border: 1px solid rgba(245, 196, 81, 0.35);
  background: var(--amber-soft);
  color: var(--amber);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
}

/* ---------- pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  white-space: nowrap;
}
.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill.published,
.pill.despachado,
.pill.pago {
  border-color: var(--lime-line);
  color: var(--lime);
  background: var(--lime-soft);
}
.pill.enviado {
  border-color: rgba(140, 196, 255, 0.35);
  color: var(--blue);
}
.pill.partial,
.pill.sending,
.pill.unknown,
.pill.novo {
  border-color: rgba(245, 196, 81, 0.35);
  color: var(--amber);
  background: var(--amber-soft);
}
.pill.rejected,
.pill.problema,
.pill.cancelado {
  border-color: rgba(255, 107, 95, 0.35);
  color: var(--red);
  background: var(--red-soft);
}
.pill.channel::before {
  display: none;
}

/* ---------- app shell ---------- */
.workspace {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 14px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 0 8px;
}
.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand span {
  font-weight: 300;
  letter-spacing: -0.01em;
}
.brand span strong {
  font-weight: 800;
}
.nav-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  margin: 22px 10px 6px;
}
.sidebar nav {
  display: grid;
  gap: 2px;
  margin-top: 6px;
}
.sidebar nav button,
.site-back {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.sidebar nav button:hover,
.site-back:hover {
  background: var(--surface-2);
  color: var(--text);
}
.sidebar nav button.selected {
  background: var(--lime-soft);
  border-color: var(--lime-line);
  color: var(--lime);
  font-weight: 600;
}
.site-back {
  margin-top: auto;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 10px;
  border-top: 1px solid var(--border);
}
.user-info {
  flex: 1;
  min-width: 0;
}
.user-info strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-info small {
  font-size: 11px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--lime-soft);
  border: 1px solid var(--lime-line);
  color: var(--lime);
  font-weight: 700;
  font-size: 13px;
}
.avatar.small {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.content {
  min-width: 0;
  padding: 0 32px 48px;
  max-width: 1400px;
  width: 100%;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.crumb {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}
.date-pill svg {
  width: 14px;
  height: 14px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.page-head p {
  margin: 0;
}
section[data-panel] > h1 + p.muted {
  margin-bottom: 22px;
}

/* ---------- dashboard ---------- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 2px;
}
.metric-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat {
  min-width: 0;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.stat-top small {
  font-size: 12px;
  font-weight: 500;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--lime);
}
.stat-icon svg {
  width: 16px;
  height: 16px;
}
.stat strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.03em;
  margin: 8px 0 2px;
  overflow-wrap: anywhere;
}
.stat > span {
  font-size: 12px;
  color: var(--muted);
}
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.activity {
  display: grid;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.activity-row:last-child {
  border-bottom: 0;
}
.activity-row > div {
  flex: 1;
  min-width: 0;
}
.activity-row strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-row small {
  font-size: 11px;
}
.accent-box {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(200, 255, 0, 0.12), transparent 55%),
    var(--surface);
  border-color: var(--lime-line);
}
.accent-box p {
  color: #cfcfcf;
  margin: 6px 0 14px;
}
.side-list .box-head {
  margin-bottom: 6px;
}
.side-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.side-row:last-child {
  border-bottom: 0;
}
.side-row span:nth-child(2) {
  flex: 1;
}
.side-row .tag {
  margin: 0;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}
.dot.on {
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.start-box {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

/* ---------- create listing ---------- */
.editor-step h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  margin: 0 0 12px;
}
.step-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 12px;
  font-weight: 800;
}
.destination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
  font-size: 13px;
  color: var(--muted);
}
.editor-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0 14px;
}
.editor-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding: 2px 4px 2px 2px;
  margin-bottom: 4px;
  scrollbar-color: #333 transparent;
}
.editor-product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  text-align: left;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  font-weight: 400;
}
.editor-product:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.editor-product.selected {
  border-color: var(--lime);
  background: var(--lime-soft);
}
.editor-product.selected::after {
  content: '✓';
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 12px;
  font-weight: 800;
}
.editor-product img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}
.editor-product span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.editor-product strong {
  margin-top: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.margin-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}
.margin-controls .chip-input {
  width: 100px;
  margin: 0;
  font-size: 0;
}
.chip-input input {
  margin: 0;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
}
.margin-controls > .quiet {
  padding: 7px 14px;
  font-size: 12px;
}
.breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.breakdown small {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.breakdown strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.breakdown p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.breakdown p strong {
  display: inline;
  font-size: inherit;
  margin: 0;
}
#variant-box h3 {
  margin-top: 6px;
}
#draft-output {
  margin-top: 18px;
}
#draft-description {
  line-height: 1.6;
  resize: vertical;
}
.editor-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.editor-gallery figure {
  margin: 0;
}
.editor-gallery img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.editor-gallery figcaption {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.editor-gallery figure.extra {
  opacity: 0.35;
}
.publish-box {
  border: 1px solid var(--lime-line);
  background:
    radial-gradient(140% 100% at 100% 0%, rgba(200, 255, 0, 0.07), transparent 50%),
    var(--panel);
  border-radius: 14px;
  padding: 20px;
}
.publish-box h3 {
  font-size: 15px;
  margin-bottom: 4px;
}
.publish-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0 14px;
}
#attributes.publish-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.publish-why {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.publish-why strong {
  color: var(--text);
}
.attributes-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 2px 0 16px;
  background: var(--surface);
}
.attributes-box summary {
  cursor: pointer;
  list-style: none;
}
.attributes-box summary::-webkit-details-marker {
  display: none;
}
.attributes-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--lime);
}
.attributes-edit {
  float: right;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.attributes-box[open] .attributes-edit {
  visibility: hidden;
}
.attributes-box summary .block {
  margin-top: 4px;
}
.attributes-box .publish-grid {
  margin-top: 14px;
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
}
.variant-table,
.listings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.variant-table th,
.listings-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
}
.variant-table td,
.listings-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.listings-table tr:last-child td {
  border-bottom: 0;
}
.variant-table input {
  display: inline-block;
  margin: 0;
  padding: 7px 10px;
  max-width: 120px;
}
.listings-table td strong {
  font-weight: 600;
}
section[data-panel='listings'] .table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
}

/* ---------- orders ---------- */
.orders-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 4px;
}
.orders-box h4 {
  font-size: 13px;
  margin-bottom: 4px;
}
.sale-chip {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--lime-soft);
  border: 1px solid var(--lime-line);
  color: var(--lime);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.sale-chip .link-button {
  padding: 0;
  font-size: 12px;
}
.radio-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: -4px 0 16px;
}
label.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
label.radio input {
  width: auto;
  margin: 0;
  accent-color: var(--lime);
}
.field {
  margin-bottom: 18px;
  min-width: 0;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cfcfcf;
}
.field .tiny {
  margin: 6px 0 0;
}
.picker {
  position: relative;
}
.picker-results {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 340px;
  overflow: auto;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.picker-item {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 12px;
  padding: 8px;
  border-radius: 8px;
}
.picker-item:hover {
  background: #262626;
}
.picker-item img,
.product-picked img,
.sale-row img,
.order-row img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.product-picked {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 10px 12px;
  font-size: 12px;
  background: var(--lime-soft);
  border: 1px solid var(--lime-line);
  border-radius: 12px;
}
.product-picked > div {
  flex: 1;
  min-width: 0;
}
.pix-box h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pix-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 12px;
}
.pix-row p {
  margin: 0 0 8px;
}
.pix-qr {
  width: 168px;
  flex-shrink: 0;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  line-height: 0;
}
.pix-qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.sales-list,
#orders-list {
  display: grid;
}
.sale-row,
.order-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.sale-row:last-child,
.order-row:last-child {
  border-bottom: 0;
}
.sale-row > div,
.order-main {
  flex: 1;
  min-width: 0;
}
.order-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}
.order-row a,
.admin-order a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.admin-note {
  color: var(--amber);
  margin-top: 3px;
}
.empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 10px;
  text-align: center;
}
.empty-icon {
  font-size: 24px;
  opacity: 0.6;
}

/* ---------- integrations ---------- */
.address-card {
  display: flex;
  align-items: center;
  gap: 18px;
}
.address-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--lime);
  font-weight: 800;
}
.shopee-icon {
  color: #ff8a5c;
  font-size: 19px;
}
.ml-icon {
  color: #ffe600;
  font-size: 14px;
}
.address-text {
  flex: 1;
  min-width: 0;
}
.address-text h3 {
  margin-bottom: 4px;
}
.address-text p {
  margin: 0;
  max-width: 560px;
}
.address-value {
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.shopee-bar h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.integration-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.shopee-bar #shopee-help:empty,
.shopee-bar #ml-help:empty {
  display: none;
}
.shopee-bar #shopee-help,
.shopee-bar #ml-help {
  margin-top: 6px;
}
.bar-actions {
  display: grid;
  gap: 8px;
}

/* ---------- dialogs ---------- */
.connection-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 26px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
}
.connection-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.connection-dialog h2 {
  margin-bottom: 14px;
}
.review-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  font-size: 13px;
}
.review-list dt {
  color: var(--muted);
}
.review-list dd {
  margin: 0;
}

/* ---------- login ---------- */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(200, 255, 0, 0.09), transparent 70%),
    var(--bg);
}
.login-wrap {
  width: min(100%, 420px);
}
.login-wrap > .brand {
  justify-content: center;
  margin-bottom: 26px;
  font-size: 20px;
}
.login-wrap .box {
  padding: 28px;
}
.login-wrap h1 {
  font-size: 24px;
}
.login-wrap form button[type='submit'] {
  width: 100%;
  padding: 12px;
}
#login-status,
#reset-status,
#password-status {
  font-size: 13px;
  color: var(--amber);
  margin: 10px 0 0;
}
.back {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 18px;
}
#password-form {
  max-width: 560px;
}

/* ---------- admin ---------- */
.admin-page {
  max-width: 1200px;
  margin: auto;
  padding: 28px 20px 48px;
}
.admin-page > h1 {
  margin-top: 30px;
}
.admin-order p {
  margin: 0 0 6px;
}
.order-actions {
  display: grid;
  grid-template-columns: 220px 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.order-actions select,
.order-actions input {
  margin: 0;
  padding: 9px 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .editor-filters {
    grid-template-columns: 1fr 1fr;
  }
  .editor-filters label:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .content {
    padding: 0 20px 40px;
  }
  .metric-grid.three,
  .breakdown {
    grid-template-columns: 1fr 1fr;
  }
  .address-card {
    flex-wrap: wrap;
  }
  .address-text {
    flex-basis: calc(100% - 70px);
  }
}
@media (max-width: 680px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-top: 14px;
    scrollbar-width: none;
  }
  .sidebar nav::-webkit-scrollbar {
    display: none;
  }
  .sidebar nav button {
    width: auto;
    white-space: nowrap;
    padding: 8px 12px;
  }
  .nav-label,
  .site-back {
    display: none;
  }
  .user-card {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    margin: 0;
    padding: 6px;
  }
  .user-info {
    display: none;
  }
  .content {
    padding: 0 16px 32px;
  }
  .topbar {
    margin-bottom: 18px;
  }
  .date-pill {
    display: none;
  }
  h1 {
    font-size: 24px;
  }
  .box {
    padding: 18px;
  }
  .metric-grid,
  .metric-grid.three,
  .two-col,
  .dimensions,
  .editor-filters,
  .publish-grid,
  #attributes.publish-grid,
  .order-actions {
    grid-template-columns: 1fr;
  }
  .breakdown {
    grid-template-columns: 1fr 1fr;
  }
  .page-head,
  .pix-row,
  .box-head,
  .start-box {
    flex-direction: column;
    align-items: stretch;
  }
  .order-row {
    flex-wrap: wrap;
  }
  .order-side {
    justify-items: start;
    text-align: left;
  }
  .editor-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.login-wrap > .brand img {
  width: 38px;
  height: 38px;
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
#first-status {
  font-size: 13px;
  color: var(--amber);
  margin: 10px 0 0;
}
