:root {
  color-scheme: dark;
  --bg: #090b09;
  --surface: #111511;
  --surface-raised: #151b15;
  --border: #252d24;
  --text: #f4f7f3;
  --muted: #a3ada1;
  --green: #a6ff00;
  --green-soft: #c6ff79;
  --red: #ff8989;
}
* { box-sizing: border-box; }
html, body { max-width: 100vw; overflow-x: hidden; }
body {
  min-width: 0;
  margin: 0;
  background:
    radial-gradient(ellipse at 78% 0%, #a6ff000c, transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.dashboard-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid #ffffff10;
  background: #0c0f0ce8;
  backdrop-filter: blur(14px);
}
.dashboard-brand { display: flex; align-items: center; gap: 10px; font: 800 17px Manrope, sans-serif; }
.dashboard-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.brand-divider, .brand-section { color: var(--muted); font-size: 12px; font-weight: 500; }
.back-to-market { color: #c6cec4; font-size: 13px; transition: color .2s; }
.back-to-market:hover { color: var(--green); }
.dashboard-main { width: min(1240px, calc(100% - 48px)); margin: 44px auto 80px; }
.store-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 27px; }
.store-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #a6ff0060;
  border-radius: 19px;
  background: linear-gradient(145deg, #25311b, #121710);
  box-shadow: 0 0 22px #a6ff0018;
  color: var(--green-soft);
  font: 800 20px Manrope, sans-serif;
}
.store-heading-copy { min-width: 0; }
.eyebrow { color: var(--green-soft); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.store-heading h1, .section-heading h2, .edit-dialog h2 {
  margin: 4px 0 0;
  font: 800 clamp(21px, 3vw, 29px) Manrope, sans-serif;
  letter-spacing: -.7px;
}
.store-owner { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.store-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  padding: 7px 10px;
  border: 1px solid #a6ff002d;
  border-radius: 20px;
  background: #a6ff000c;
  color: #d4f6ac;
  font-size: 11px;
  white-space: nowrap;
}
.store-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px #a6ff00a0; }
.store-status.paused { border-color: #ffce7640; background: #ffce760d; color: #f4cf91; }
.store-status.paused span { background: #ffc45e; box-shadow: none; }
.store-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.button-primary, .button-secondary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.store-actions > a, .store-actions > button { flex: 0 0 auto; }
.messages-dashboard-link { gap: 8px; }
.dashboard-chat-dialog { width: min(900px, calc(100vw - 28px)); max-width: 900px; padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px #0008; }
.dashboard-chat-dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
.dashboard-chat-shell { display: grid; min-height: min(650px, calc(100vh - 60px)); }
.dashboard-chat-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.dashboard-chat-header h2 { margin: 3px 0 0; font-size: 20px; }
.dashboard-chat-body { display: grid; grid-template-columns: 280px 1fr; min-height: 0; }
.dashboard-chat-conversations { overflow-y: auto; padding: 10px; border-right: 1px solid var(--border); }
.dashboard-chat-conversation { display: grid; gap: 4px; width: 100%; padding: 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.dashboard-chat-conversation:hover, .dashboard-chat-conversation.is-active { background: var(--surface-raised); }
.dashboard-chat-conversation strong { font-size: 12px; }
.dashboard-chat-conversation span, .dashboard-chat-empty, .dashboard-chat-status { color: var(--muted); font-size: 11px; }
.dashboard-chat-thread { display: grid; grid-template-rows: auto 1fr auto auto; min-width: 0; }
.dashboard-chat-thread > header { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.dashboard-chat-back { display: none; border: 0; background: transparent; color: var(--green-soft); cursor: pointer; }
.dashboard-chat-messages { display: flex; flex-direction: column; gap: 9px; overflow-y: auto; padding: 16px; }
.dashboard-chat-bubble {
  position: relative; align-self: flex-start; max-width: 78%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 11px 11px 11px 3px; background: var(--surface-raised); color: var(--text); }
.dashboard-chat-bubble.is-own { align-self: flex-end; border-color: #9cdd5c; border-radius: 11px 11px 3px 11px; background: var(--green); color: #10200d !important; }
.dashboard-chat-bubble p { margin: 0 0 4px; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.dashboard-chat-bubble time { color: inherit; font-size: 9px; opacity: .7; }
.dashboard-chat-composer { display: flex; gap: 8px; padding: 12px 16px 4px; border-top: 1px solid var(--border); }
.dashboard-chat-composer textarea { flex: 1; resize: vertical; min-height: 42px; padding: 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-raised); color: var(--text); }
.dashboard-chat-status { min-height: 16px; margin: 0; padding: 0 16px 10px; }
@media (max-width: 650px) {
  .dashboard-chat-body { display: block; }
  .dashboard-chat-conversations { min-height: 330px; border-right: 0; }
  .dashboard-chat-thread { display: none; min-height: 450px; }
  .dashboard-chat-dialog.chat-thread-active .dashboard-chat-conversations { display: none; }
  .dashboard-chat-dialog.chat-thread-active .dashboard-chat-thread { display: grid; }
  .dashboard-chat-back { display: inline-block; }
}
.dashboard-chat-bubble-deleted { opacity: .78; }
.dashboard-chat-bubble-deleted p { color: #9ca3af; font-style: italic; }
.dashboard-chat-message-actions { position: absolute; top: 5px; right: 6px; }
.dashboard-chat-message-menu-button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.dashboard-chat-message-menu {
  position: absolute;
  z-index: 3;
  top: 27px;
  right: 0;
  display: grid;
  min-width: 154px;
  gap: 2px;
  padding: 5px;
  border: 1px solid #303a30;
  border-radius: 8px;
  background: #111711;
  box-shadow: 0 10px 24px #0008;
}
.dashboard-chat-message-menu[hidden] { display: none; }
.dashboard-chat-message-menu button {
  padding: 8px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #d1d8ce;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
}
.messages-unread-badge {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.messages-unread-badge[hidden] { display: none; }
.button-primary { background: var(--green); box-shadow: 0 0 18px #a6ff002b; color: #10150b; }
.button-primary:hover { transform: translateY(-1px); box-shadow: 0 0 25px #a6ff0050; }
.button-secondary { border-color: #ffffff1a; background: #ffffff06; color: #d5ddd2; }
.button-secondary:hover { border-color: #a6ff0060; color: var(--green-soft); }
.nexus-dashboard-link { min-height: 36px; padding: 0 11px; border-radius: 9px; font-size: 11px; text-decoration: none; white-space: nowrap; }
.nexus-dashboard-link span { font-size: 15px; }
.dashboard-tabbar { position: sticky; z-index: 4; top: 72px; display: flex; gap: 7px; margin: 0 0 18px; padding: 8px; border: 1px solid var(--border); border-radius: 13px; background: #101410ed; box-shadow: 0 8px 22px #0002; backdrop-filter: blur(12px); }
.dashboard-tab { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.dashboard-tab[aria-selected="true"] { border-color: #a6ff0030; background: #a6ff0014; color: var(--green-soft); }
.nexus-tab-indicator { padding: 3px 6px; border-radius: 5px; background: #a6ff0018; color: var(--green-soft); font-size: 8px; letter-spacing: .5px; }
.dashboard-view[hidden] { display: none !important; }
.dashboard-view { min-width: 0; }
.nexus-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 18px; padding: 21px; border: 1px solid #a6ff0026; border-radius: 16px; background: linear-gradient(120deg, #a6ff0011, #ffffff03 58%); }
.nexus-page-heading h2 { margin: 5px 0 0; font: 800 24px Manrope, sans-serif; letter-spacing: -.5px; }
.nexus-page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.dashboard-notice, .products-feedback { min-height: 17px; margin: -12px 0 17px; color: #e6bd72; font-size: 12px; }
.dashboard-notice.error, .products-feedback.error { color: #ff9b9b; }
.dashboard-notice.success { color: #57e66d; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.metric-card, .panel-section {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, #131813, #0f120f);
  box-shadow: inset 0 1px #ffffff08, 0 12px 30px #0002;
}
.metric-card { position: relative; display: flex; min-height: 162px; flex-direction: column; align-items: flex-start; padding: 19px; }
.metric-icon { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 13px; border-radius: 10px; background: #a6ff0015; color: var(--green-soft); font-size: 16px; }
.metric-label { color: #c3ccc0; font-size: 12px; font-weight: 600; }
.metric-value { max-width: 100%; overflow: hidden; margin-top: 7px; font: 800 29px Manrope, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.metric-caption { margin-top: 4px; color: var(--muted); font-size: 11px; }
.metric-highlight { border-color: #a6ff0024; background: linear-gradient(145deg, #151d12, #111511); }
.metric-product-name { font-size: 18px; }
.panel-section { margin-top: 19px; padding: 22px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.section-heading h2 { font-size: 19px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; color: #b9c1b6; font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chart-legend .legend-click { background: #b69cff; }
.chart-wrap { position: relative; height: 265px; overflow: hidden; }
.metrics-footnote { margin: 14px 0 0; color: #879184; font-size: 10px; line-height: 1.5; }
.compact-button { min-height: 36px; }
.products-feedback { margin: -7px 0 10px; }
.table-scroll { overflow-x: auto; }
.products-table { width: 100%; border-collapse: collapse; text-align: left; }
.products-table th { padding: 12px 11px; border-bottom: 1px solid var(--border); color: #899485; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.products-table td { padding: 13px 11px; border-bottom: 1px solid #ffffff0a; color: #dce3d9; font-size: 12px; }
.products-table tbody tr:last-child td { border-bottom: 0; }
.inventory-location { display: block; margin-top: 5px; color: #b8ff48; font-size: 10px; }
.inventory-quick-stock { white-space: nowrap; }
.stock-step { width: 25px; height: 25px; margin-left: 4px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-raised); color: var(--text); font-weight: 800; cursor: pointer; }
.stock-step:hover { border-color: var(--green); color: var(--green-soft); }
.nexus-scan-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: end; }
.nexus-scan-controls input { min-width: 0; }
.nexus-scan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px; border: 1px solid #a6ff0040; border-radius: 10px; background: #a6ff000d; }
.nexus-scan-actions span { color: var(--muted); font-size: 12px; margin-right: auto; }
.nexus-scan-actions[hidden] { display: none; }
.product-cell { display: flex; min-width: 185px; align-items: center; gap: 11px; }
.product-thumb { display: grid; flex: 0 0 auto; place-items: center; width: 43px; height: 43px; overflow: hidden; border: 1px solid #ffffff10; border-radius: 10px; background: #1b211a; font-size: 20px; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-cell strong { display: block; max-width: 250px; overflow: hidden; color: #f0f3ef; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.product-cell small { display: block; margin-top: 4px; color: #929c8d; font-size: 10px; }
.product-price { color: var(--green-soft) !important; font-weight: 800; white-space: nowrap; }
.product-price del { margin-right: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.stock-state { display: inline-flex; align-items: center; gap: 6px; color: #d3edb5; white-space: nowrap; }
.stock-state::before { width: 6px; height: 6px; border-radius: 50%; background: var(--green); content: ""; }
.stock-state.sold-out, .stock-state.paused { color: #f1bd85; }
.stock-state.sold-out::before, .stock-state.paused::before { background: #efa955; }
.row-actions { display: flex; gap: 6px; }
.row-action { min-height: 30px; padding: 0 9px; border: 1px solid #ffffff18; border-radius: 7px; background: #ffffff06; color: #d8e0d4; font-size: 10px; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.row-action:hover { border-color: #a6ff0060; color: var(--green-soft); }
.row-action.danger:hover { border-color: #ff898960; background: #ff898910; color: var(--red); }
.table-empty { padding: 35px !important; color: var(--muted) !important; text-align: center; }
.inventory-summary { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 12px; }
.inventory-stat { display: grid; min-width: 125px; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: #ffffff05; }
.inventory-stat span { color: var(--muted); font-size: 9px; }
.inventory-stat strong { color: var(--text); font: 800 16px Manrope, sans-serif; }
.inventory-table { min-width: 1040px; }
.inventory-sku { color: var(--muted) !important; font: 600 10px ui-monospace, Consolas, monospace; }
.inventory-quantity { color: var(--text) !important; font-weight: 800; white-space: nowrap; }
.inventory-quantity.is-low { color: #e8ad55 !important; }
.inventory-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.inventory-actions .row-action { white-space: nowrap; }
.inventory-feedback { min-height: 17px; margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.expedition-empty { display: grid; justify-items: center; gap: 10px; padding: 32px 18px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; }
.expedition-empty-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: #a6ff0012; color: var(--green-soft); font-size: 21px; }
.expedition-empty strong { color: var(--text); font: 800 14px Manrope, sans-serif; }
.expedition-empty p { max-width: 360px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.expedition-empty .button-primary { min-height: 36px; font-size: 10px; }
.edit-dialog { width: min(480px, calc(100% - 28px)); max-height: 90vh; padding: 0; overflow: auto; border: 1px solid #30392f; border-radius: 18px; background: #111511; color: var(--text); box-shadow: 0 24px 80px #000b; }
.product-create-dialog { width: min(560px, calc(100% - 28px)); }
.edit-dialog::backdrop { background: #000c; backdrop-filter: blur(4px); }
.edit-dialog form { position: relative; display: grid; gap: 9px; padding: 27px; }
.edit-dialog h2 { margin: 0 0 6px; font-size: 22px; }
.edit-dialog label { margin-top: 5px; color: #c9d1c5; font-size: 11px; font-weight: 700; }
.edit-dialog input { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #30392f; border-radius: 8px; outline: none; background: #0c100c; color: var(--text); font-size: 12px; }
.edit-dialog select, .edit-dialog textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #30392f; border-radius: 8px; outline: none; background: #0c100c; color: var(--text); font-size: 12px; }
.edit-dialog textarea { min-height: 76px; resize: vertical; }
.edit-dialog input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #a6ff0017; }
.edit-dialog select:focus, .edit-dialog textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px #a6ff0017; }
.edit-dialog input[readonly] { color: #9ca797; }
.edit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edit-fields > div { display: grid; gap: 9px; }
.dialog-close { position: absolute; top: 17px; right: 17px; width: 33px; height: 33px; border: 0; border-radius: 9px; background: #ffffff0d; color: #e5eae2; font-size: 22px; cursor: pointer; }
.edit-message { min-height: 16px; margin: 0; color: #ff9b9b; font-size: 11px; }
.product-upload-hint, .product-upload-status { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.product-upload-status { min-height: 14px; color: var(--green-soft); }
.product-upload-status.error { color: var(--red); }
.product-upload-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; justify-items: center; max-height: 170px; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: #0c100c; }
.product-upload-preview[hidden] { display: none; }
.product-upload-preview img { width: 100%; max-width: 100%; height: 140px; object-fit: contain; }
.turnstile-widget { min-height: 65px; margin: 14px 0 8px; }
.turnstile-widget[hidden] { display: none; }
.product-confirmation { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.product-confirmation input { flex: 0 0 auto; width: 16px; min-height: 16px; margin: 0; accent-color: var(--green); }
.edit-submit:disabled { cursor: wait; opacity: .65; }
.edit-submit { width: 100%; }
@media (max-width: 840px) {
  .store-heading { flex-wrap: wrap; }
  .store-actions { width: 100%; margin-left: 78px; }
  .products-table { min-width: 780px; }
}
@media (max-width: 580px) {
  .dashboard-header { min-height: 62px; padding: 0 16px; }
  .dashboard-brand { gap: 7px; font-size: 15px; }
  .dashboard-brand img { width: 30px; height: 30px; }
  .brand-section { max-width: 110px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .back-to-market { font-size: 11px; }
  .dashboard-main { width: calc(100% - 30px); margin-top: 27px; }
  .store-heading { gap: 11px; }
  .store-avatar { width: 52px; height: 52px; border-radius: 15px; }
  .store-heading h1 { font-size: 21px; }
  .store-status { margin-left: auto; padding: 6px 8px; font-size: 10px; }
  .store-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-left: 0; }
  .store-actions > a, .store-actions > button { min-width: 0; padding: 0 8px; font-size: 10px; }
  .store-actions > :last-child { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 145px; padding: 14px; }
  .metric-card:last-child { grid-column: 1 / -1; min-height: 128px; }
  .metric-icon { width: 28px; height: 28px; margin-bottom: 10px; }
  .metric-value { font-size: 25px; }
  .metric-product-name { font-size: 17px; }
  .metric-label { font-size: 11px; }
  .metric-caption { font-size: 10px; }
  .panel-section { padding: 16px 13px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 17px; }
  .chart-legend { gap: 8px; font-size: 9px; }
  .chart-legend span { gap: 4px; }
  .chart-wrap { height: 220px; }
  .compact-button { min-height: 32px; font-size: 10px; }
}
.orders-feedback { min-height: 16px; margin: -8px 0 10px; color: #a7b0a4; font-size: 11px; }
.seller-order-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.seller-order-card { display: flex; min-width: 0; flex-direction: column; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #ffffff05; color: #dce3d9; font-size: 11px; }
.seller-order-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.seller-order-heading h3 { margin: 0; color: #f0f3ef; font: 800 13px Manrope, sans-serif; }
.seller-order-heading p, .seller-order-card p { margin: 5px 0; color: #9da798; font-size: 10px; overflow-wrap: anywhere; }
.seller-order-heading > strong { color: var(--green-soft); white-space: nowrap; }
.seller-order-status { color: #d9e8cb !important; font-weight: 700; }
.seller-order-card ul { margin: 8px 0; padding-left: 18px; line-height: 1.6; }
.seller-order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0; }
.seller-order-contact-actions { margin-top: auto; padding-top: 10px; }
.seller-order-contact-actions a { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid #ffffff20; border-radius: 8px; color: var(--text); font-size: 10px; font-weight: 800; text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.seller-order-contact-actions .button-whatsapp { border-color: #168449; background: #168449; color: #fff; }
.seller-order-contact-actions .button-whatsapp:hover { border-color: #1b9f59; background: #1b9f59; transform: translateY(-1px); }
.seller-order-contact-actions a:focus-visible { outline: 2px solid #a6ff00; outline-offset: 2px; }
.seller-order-actions .button-secondary { min-height: 34px; padding: 0 10px; font-size: 10px; }
.seller-order-form { display: grid; gap: 9px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #ffffff12; }
.seller-order-form label { display: grid; gap: 5px; color: #c9d1c5; font-size: 10px; font-weight: 700; }
.seller-order-form input, .seller-order-form select, .seller-order-form textarea { width: 100%; min-width: 0; min-height: 35px; padding: 7px 9px; border: 1px solid #30392f; border-radius: 7px; background: #0c100c; color: var(--text); font-size: 11px; }
.seller-order-form textarea { resize: vertical; }
.seller-order-form .button-primary { min-height: 35px; font-size: 10px; }
.shipping-origin-section { margin-bottom: 18px; }
.shipping-origin-summary[hidden],
.shipping-origin-form[hidden],
.shipping-origin-buttons [hidden] { display: none !important; }
.shipping-origin-summary { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: #ffffff05; }
.shipping-origin-summary-icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border: 1px solid #a6ff0030; border-radius: 12px; background: #a6ff0010; color: var(--green-soft); font-size: 21px; }
.shipping-origin-summary-copy { display: grid; min-width: 0; gap: 3px; }
.shipping-origin-summary-copy .eyebrow { font-size: 9px; }
.shipping-origin-summary-copy strong { color: var(--text); font-size: 12px; }
.shipping-origin-summary-copy p, .shipping-origin-summary-copy small { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.shipping-origin-summary > button { flex: 0 0 auto; margin-left: auto; }
.shipping-origin-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shipping-origin-form label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.shipping-origin-form input { width: 100%; min-width: 0; min-height: 36px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 11px; }
.shipping-origin-reference, .shipping-origin-actions { grid-column: 1 / -1; }
.shipping-origin-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.shipping-origin-feedback { min-height: 14px; margin: 8px 0 12px; color: var(--muted); font-size: 10px; }
.shipping-origin-feedback.is-error { color: var(--red); }
.shipping-origin-feedback.is-success { color: var(--green-soft); }
.shipping-origin-actions p { margin: 0; }
.shipping-origin-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.orders-section { scroll-margin-top: 90px; }
.picking-list { display: grid; gap: 8px; margin: 12px 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #0000000a; }
.picking-list h4 { margin: 0; font: 800 11px Manrope, sans-serif; }
.picking-items { display: grid; gap: 7px; }
.picking-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.picking-item-image { display: grid; width: 42px; height: 42px; overflow: hidden; place-items: center; border-radius: 6px; background: var(--surface-raised); color: var(--muted); }
.picking-item-image img { width: 100%; height: 100%; object-fit: cover; }
.picking-item-copy { display: grid; min-width: 0; gap: 3px; }
.picking-item-copy strong { overflow: hidden; color: var(--text); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.picking-item-copy small { color: var(--muted); font-size: 9px; }
.picking-item-state { color: var(--muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.picking-item.is-complete .picking-item-state { color: var(--green-soft); }
.picking-scan-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.picking-scan-controls input { width: min(165px, 100%); min-height: 30px; padding: 5px 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-raised); color: var(--text); font-size: 10px; }
.picking-scan-controls button { min-height: 30px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-raised); color: var(--text); font-size: 9px; font-weight: 800; cursor: pointer; }
.picking-scan-controls button:hover { border-color: var(--green-soft); }
.picking-guide-button { margin-bottom: 10px; }
.nexus-scan-bar { display: grid; gap: 7px; margin: 0 0 16px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); }
.nexus-scan-bar label { color: var(--text); font-size: 11px; font-weight: 800; }
.nexus-scan-bar > div { display: flex; flex-wrap: wrap; gap: 8px; }
.nexus-scan-bar input { flex: 1 1 260px; min-height: 36px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); }
.nexus-scan-bar p { min-height: 16px; margin: 0; color: var(--muted); font-size: 11px; }
#picking-guide-print { display: none; }
#picking-guide-print header { display: flex; justify-content: space-between; border-bottom: 2px solid #111; padding-bottom: 10px; font-weight: 800; }
#picking-guide-print h1 { margin: 18px 0 8px; font-size: 24px; }
#picking-guide-print > p { margin: 0 0 16px; }
#picking-guide-items { display: grid; gap: 8px; }
#picking-guide-items > div { display: grid; gap: 3px; border-bottom: 1px solid #bbb; padding: 8px 0; }
#picking-guide-items span { font-size: 13px; }
#picking-guide-print footer { margin-top: 20px; font-size: 12px; }
.picking-list-feedback { min-height: 14px; margin: 0 !important; color: var(--muted) !important; font-size: 9px !important; }
.picking-list-feedback.is-error { color: var(--red) !important; }
.picking-list-feedback.is-success { color: var(--green-soft) !important; }
.picking-print-button:disabled { cursor: not-allowed; opacity: .45; }
.scanner-dialog { width: min(460px, calc(100% - 24px)); padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); }
.scanner-dialog::backdrop { background: #000c; }
.scanner-shell { display: grid; gap: 10px; padding: 20px; }
.scanner-shell h2 { margin: 0; font: 800 20px Manrope, sans-serif; }
.scanner-shell video { width: 100%; max-height: 50vh; aspect-ratio: 4 / 3; border-radius: 9px; background: #050605; object-fit: cover; }
.scanner-shell p { min-height: 18px; margin: 0; color: var(--muted); font-size: 11px; }
.scanner-shell .dialog-close { color: var(--text); }
.shipping-label-header, .shipping-label-barcode, .shipping-label-route, .shipping-label-tracking { display: none; }
@media (max-width: 700px) {
  .seller-order-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .shipping-origin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .nexus-scan-controls { grid-template-columns: 1fr 1fr; }
  .nexus-scan-controls input { grid-column: 1 / -1; }
  .nexus-scan-controls button { width: 100%; }
  .table-scroll { overflow: visible; }
  .inventory-table, .inventory-table tbody, .inventory-table tr, .inventory-table td { display: block; width: 100%; }
  .inventory-table thead { display: none; }
  .inventory-table tbody tr { margin-bottom: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 8px 20px #0002; }
  .inventory-table td { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #ffffff0d; text-align: right; }
  .inventory-table td::before { flex: 0 0 auto; color: var(--muted); content: attr(data-label); font-size: 10px; font-weight: 700; text-align: left; text-transform: uppercase; }
  .inventory-table td:first-child { display: block; padding-top: 0; text-align: left; }
  .inventory-table td:first-child::before { display: none; }
  .inventory-table td:last-child { display: block; padding-bottom: 0; border-bottom: 0; text-align: left; }
  .inventory-table td:last-child::before { display: block; margin-bottom: 6px; }
  .inventory-table .product-cell { min-width: 0; }
  .inventory-table .inventory-actions { justify-content: flex-start; }
  .inventory-table .inventory-location { margin-left: auto; }
  .nexus-scan-actions { align-items: stretch; }
  .nexus-scan-actions strong, .nexus-scan-actions span { width: 100%; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.dashboard-header-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle { min-height: 34px; }
.period-filter { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: #ffffff06; }
.period-filter button { min-height: 30px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; }
.period-filter button[aria-pressed="true"] { background: #a6ff00; color: #10150b; }
.sales-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 17px; }
.sales-metric { display: grid; gap: 8px; min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: 11px; background: #ffffff05; }
.sales-metric span { color: var(--muted); font-size: 10px; }
.sales-metric strong { overflow: hidden; color: var(--green-soft); font: 800 20px Manrope, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.sales-chart-wrap { height: 245px; }
.seller-order-card { transition: border-color .2s, transform .2s; }
.seller-order-card:hover { transform: translateY(-2px); border-color: #a6ff0050; }
.button-danger { min-height: 35px; padding: 0 10px; border: 1px solid #ff898944; border-radius: 9px; background: #ff62620f; color: #ffabab; font-size: 10px; font-weight: 800; cursor: pointer; }
.button-danger:hover { background: #ff626222; }
.button-danger:disabled, .seller-order-form button:disabled { cursor: wait; opacity: .6; }
.seller-refund-note { padding: 9px; border: 1px solid #ffce7640; border-radius: 8px; background: #ffce760c; color: #f4cf91 !important; }
.seller-order-address { overflow-wrap: anywhere; }
.seller-order-form .seller-order-actions { margin: 0; }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-raised: #eef2f6;
  --border: #e2e8f0;
  --text: #1f2937;
  --muted: #667085;
  --green: #6f9e2e;
  --green-soft: #477016;
  --red: #b93030;
}
:root[data-theme="light"] body { background: radial-gradient(ellipse at 78% 0%, #84cc1610, transparent 34rem), var(--bg); color: var(--text); }
:root[data-theme="light"] .dashboard-header { border-color: var(--border); background: #ffffffed; }
:root[data-theme="light"] .dashboard-brand,
:root[data-theme="light"] .store-heading h1,
:root[data-theme="light"] .section-heading h2,
:root[data-theme="light"] .nexus-page-heading h2 { color: var(--text); }
:root[data-theme="light"] .back-to-market,
:root[data-theme="light"] .brand-divider,
:root[data-theme="light"] .brand-section { color: #64705e; }
:root[data-theme="light"] .dashboard-tabbar { border-color: var(--border); background: #ffffffed; box-shadow: 0 8px 22px #1f29370a; }
:root[data-theme="light"] .dashboard-tab { color: #667085; }
:root[data-theme="light"] .dashboard-tab[aria-selected="true"] { border-color: #84cc1640; background: #84cc1614; color: #477016; }
:root[data-theme="light"] .nexus-tab-indicator { background: #84cc161c; color: #477016; }
:root[data-theme="light"] .nexus-page-heading { border-color: var(--border); background: linear-gradient(120deg, #84cc1610, #ffffff 70%); }
:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .panel-section,
:root[data-theme="light"] .sales-metric { border-color: var(--border); background: linear-gradient(145deg, #fff, var(--surface-raised)); box-shadow: 0 10px 24px #1f29370a; }
:root[data-theme="light"] .metric-highlight { border-color: #84cc1640; background: linear-gradient(145deg, #f3f8eb, #fff); }
:root[data-theme="light"] .metric-icon { background: #84cc1618; color: #477016; }
:root[data-theme="light"] .metric-label,
:root[data-theme="light"] .chart-legend,
:root[data-theme="light"] .products-table td,
:root[data-theme="light"] .seller-order-card,
:root[data-theme="light"] .seller-order-form label { color: #46513f; }
:root[data-theme="light"] .metric-value,
:root[data-theme="light"] .sales-metric strong { color: #1f2937; }
:root[data-theme="light"] .metric-caption,
:root[data-theme="light"] .metrics-footnote,
:root[data-theme="light"] .orders-feedback { color: #667085; }
:root[data-theme="light"] .store-status { border-color: #6f9e2e33; background: #6f9e2e0d; color: #477016; }
:root[data-theme="light"] .button-secondary { border-color: #d8e0e9; background: #fff; color: #344054; }
:root[data-theme="light"] .button-secondary:hover { border-color: #a6d45d; color: #385a00; }
:root[data-theme="light"] .seller-order-card { border-color: var(--border); background: #fff; box-shadow: 0 5px 18px #1f29370a; }
:root[data-theme="light"] .seller-order-contact-actions a:not(.button-whatsapp) { border-color: #d7dfd0; background: #fff; color: #30402b; }
:root[data-theme="light"] .seller-order-contact-actions a:not(.button-whatsapp):hover { border-color: #83b43c; background: #f2f8e9; }
:root[data-theme="light"] .seller-order-heading h3,
:root[data-theme="light"] .product-cell strong { color: #1f2937; }
:root[data-theme="light"] .seller-order-heading p,
:root[data-theme="light"] .seller-order-card p,
:root[data-theme="light"] .products-table th { color: #64705e; }
:root[data-theme="light"] .products-table td { border-color: var(--border); }
:root[data-theme="light"] .product-thumb { border-color: var(--border); background: var(--surface-raised); }
:root[data-theme="light"] .row-action { border-color: #d8e0e9; background: #fff; color: #344054; }
:root[data-theme="light"] .row-action:hover { border-color: #a6d45d; color: #385a00; }
:root[data-theme="light"] .seller-order-status { color: #477016 !important; }
:root[data-theme="light"] .seller-order-form { border-color: var(--border); }
:root[data-theme="light"] .shipping-origin-form label { color: #46513f; }
:root[data-theme="light"] .shipping-origin-summary { border-color: var(--border); background: #fff; }
:root[data-theme="light"] .shipping-origin-summary-copy strong { color: #1f2937; }
:root[data-theme="light"] .shipping-origin-summary-copy p,
:root[data-theme="light"] .shipping-origin-summary-copy small { color: #64705e; }
:root[data-theme="light"] .shipping-origin-form input,
:root[data-theme="light"] .picking-scan-controls input { border-color: #d8e0e9; background: #fff; color: #1f2937; }
:root[data-theme="light"] .picking-list { background: #f5f8f2; }
:root[data-theme="light"] .picking-item { background: #fff; }
:root[data-theme="light"] .picking-scan-controls button { border-color: #d7dfd0; background: #fff; color: #30402b; }
:root[data-theme="light"] .edit-dialog { border-color: var(--border); background: #fff; color: var(--text); box-shadow: 0 24px 70px #1f293724; }
:root[data-theme="light"] .edit-dialog h2 { color: var(--text); }
:root[data-theme="light"] .edit-dialog label { color: #475467; }
:root[data-theme="light"] .edit-dialog input,
:root[data-theme="light"] .edit-dialog select,
:root[data-theme="light"] .edit-dialog textarea,
:root[data-theme="light"] .product-upload-preview { border-color: #d8e0e9; background: #f8fafc; color: var(--text); }
:root[data-theme="light"] .dialog-close { background: #eef2f6; color: #475467; }
:root[data-theme="light"] .dashboard-chat-message-menu { border-color: var(--border); background: #fff; box-shadow: 0 10px 24px #1f29371a; }
:root[data-theme="light"] .dashboard-chat-message-menu button { color: #344054; }
:root[data-theme="light"] .dashboard-chat-message-menu button:hover { background: #f2f4f7; }
:root[data-theme="light"] .seller-order-form input,
:root[data-theme="light"] .seller-order-form select,
:root[data-theme="light"] .seller-order-form textarea,
:root[data-theme="light"] .edit-dialog input,
:root[data-theme="light"] .edit-dialog select,
:root[data-theme="light"] .edit-dialog textarea { border-color: #d8e0e9; background: #fff; color: #1f2937; }
@media (max-width: 700px) {
  .sales-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-chart-wrap { height: 220px; }
}
@media (max-width: 580px) {
  .dashboard-header-actions { gap: 7px; }
  .dashboard-header-actions .theme-toggle { min-height: 31px; padding: 0 8px; font-size: 9px; }
  .sales-section .section-heading { flex-direction: column; }
  .period-filter { width: 100%; }
  .period-filter button { flex: 1; }
  .picking-item { grid-template-columns: 36px minmax(0, 1fr); }
  .picking-item-image { width: 36px; height: 36px; }
  .picking-item-state { grid-column: 2; }
  .shipping-origin-summary { align-items: flex-start; flex-wrap: wrap; padding: 12px; }
  .shipping-origin-summary-copy { flex: 1 1 calc(100% - 58px); }
  .shipping-origin-summary > button { margin-left: 56px; }
  .shipping-origin-actions { align-items: stretch; }
  .shipping-origin-buttons { width: 100%; margin-left: 0; }
  .shipping-origin-buttons > button { flex: 1; }
}
  @page shippingLabel { size: 100mm 150mm; margin: 0; }
  @page productLabel { size: 50mm 30mm; margin: 0; }
  .product-label-heading, #product-label-name, .product-label-code, #product-label-print footer { display: none; }
  @media print {
    html, body { margin: 0 !important; overflow: hidden; background: #fff !important; color: #000 !important; }
    body.printing-shipping-label { width: 100mm; height: 150mm; min-width: 100mm; }
    body.printing-product-label { width: 50mm; height: 30mm; min-width: 50mm; }
    body.printing-shipping-label > :not(#shipping-label-print),
    body.printing-product-label > :not(#product-label-print) { display: none !important; }
    body.printing-picking-guide > :not(#picking-guide-print) { display: none !important; }
    body.printing-picking-guide #picking-guide-print { display: block !important; width: 100%; color: #111; background: #fff; font: 14px Arial, sans-serif; }
    #shipping-label-print { page: shippingLabel; position: absolute; inset: 0; display: grid !important; width: 100mm; height: 150mm; grid-template-rows: auto auto 1fr auto; gap: 3mm; overflow: hidden; padding: 5mm; background: #fff; color: #000; font: 9pt Arial, sans-serif; }
  .shipping-label-header { display: grid; grid-template-columns: 12mm 1fr auto; align-items: center; gap: 2mm; padding-bottom: 2mm; border-bottom: 1px solid #000; }
  .shipping-label-header img { width: 11mm; height: 11mm; object-fit: contain; }
  .shipping-label-header strong { font-size: 13pt; letter-spacing: .5pt; }
  .shipping-label-header span { font-size: 9pt; font-weight: 700; }
  .shipping-label-barcode { display: block; width: 100%; height: 17mm; }
  .shipping-label-route { display: grid; align-content: start; gap: 3mm; }
  .shipping-label-route section { display: grid; gap: 1mm; }
  .shipping-label-route h2 { margin: 0; padding-bottom: 1mm; border-bottom: 1px solid #000; font-size: 9pt; }
  .shipping-label-route strong { font-size: 10pt; }
  .shipping-label-route p { margin: 0; font-size: 8.5pt; line-height: 1.25; overflow-wrap: anywhere; }
  .shipping-label-recipient { border: 1.5px solid #000; padding: 2.5mm; }
  .shipping-label-tracking { display: grid; align-content: end; gap: 1mm; padding-top: 2mm; border-top: 1.5px solid #000; }
  .shipping-label-tracking small { font-size: 7pt; font-weight: 700; }
  .shipping-label-tracking strong { font-size: 13pt; letter-spacing: 1pt; }
  .shipping-label-tracking svg { width: 100%; height: 16mm; }
  #product-label-print { page: productLabel; position: absolute; inset: 0; display: grid !important; width: 50mm; height: 30mm; grid-template-rows: auto 1fr auto; gap: 1mm; overflow: hidden; padding: 2mm; background: #fff; color: #000; font: 6pt Arial, sans-serif; }
  .product-label-heading { display: flex; justify-content: space-between; gap: 1mm; font-size: 6pt; }
  #product-label-name { display: block; overflow: hidden; margin: 0; font-size: 8pt; line-height: 1.1; text-overflow: ellipsis; }
  .product-label-code { display: grid; grid-template-columns: 1fr 11mm; align-items: center; gap: 1mm; min-height: 0; }
  #product-label-barcode { width: 100%; height: 10mm; }
  .product-label-qr-wrap { display: grid; justify-items: center; gap: .5mm; }
  #product-label-qr, #product-label-qr img, #product-label-qr canvas { width: 9mm !important; height: 9mm !important; }
  .product-label-qr-wrap small { font-size: 4.5pt; }
  #product-label-print footer { display: flex; justify-content: space-between; gap: 2mm; border-top: .2mm solid #000; padding-top: .7mm; font-size: 5pt; }
  #product-label-print footer strong { overflow: hidden; font-family: ui-monospace, Consolas, monospace; text-overflow: ellipsis; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
@media (min-width: 1200px) {
  .dashboard-header { min-height: clamp(76px, 5.5vw, 96px); padding-inline: max(40px, calc((100vw - 1600px) / 2)); }
  .dashboard-brand { font-size: clamp(18px, 1.4vw, 23px); }
  .dashboard-brand img { width: 40px; height: 40px; }
  .back-to-market, .dashboard-header-actions button { font-size: 15px; }
  .dashboard-main { width: min(1600px, calc(100% - 96px)); margin-top: clamp(44px, 4vw, 68px); }
  .store-heading h1, .section-heading h2, .edit-dialog h2 { font-size: clamp(30px, 2.6vw, 42px); }
  .store-owner, .metric-label, .products-table td, .shipping-origin-form label { font-size: 14px; }
  .panel-section { padding: clamp(24px, 2.2vw, 36px); }
  .products-table th { font-size: 12px; }
  .products-table td { padding: 16px; }
  .product-cell strong { max-width: 360px; font-size: 15px; }
  .product-cell small, .inventory-location { font-size: 12px; }
  .inventory-sku, .inventory-quantity, .stock-state { font-size: 14px; }
  .row-action, .button-primary, .button-secondary { font-size: 13px; }
}
@media (min-width: 1600px) {
  .dashboard-main { width: min(1720px, calc(100% - 128px)); }
  .products-table th, .products-table td { padding-inline: 20px; }
  .product-thumb { width: 56px; height: 56px; }
}
