/* =========================================================
   HUBER Studio — Dark theme (tech-site style), step 1
   Loaded right after studio.css. Overrides appearance only.
   Every rule is scoped to @media screen so printing
   (order picking sheets, labels) keeps the original light styles.
   Selectors are prefixed with ":root body" so they beat both
   studio.css and the per-page <style> blocks that load later.
   ========================================================= */

:root{
  --bg:#0A0A0A;
  --panel:#111111;
  --text:#EDEDED;
  --text-2:#A1A1A1;
  --line:#262626;
  --ok:#3DD68C;
  --accent:#4C8DFF;
  --warn-bg:#1C170A;
  --warn:#FCD34D;
  --err:#FF6B6B;
  --font-sans:'Geist','Noto Sans KR',sans-serif;
  --font-mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
}

@media screen{

/* ---------- 1. Base ---------- */
:root{color-scheme:dark;font-family:var(--font-sans);color:var(--text);background:var(--bg)}
:root body{background:var(--bg);color:var(--text);font-family:var(--font-sans);font-size:14px;line-height:1.55}
:root body ::selection{background:rgba(76,141,255,.35);color:var(--text)}
:root body :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
:root body h1,:root body h2,:root body h3,:root body h4{color:var(--text);letter-spacing:-.02em}
:root body p{color:inherit}
:root body hr{border:0;border-top:1px solid var(--line)}
:root body code,:root body pre,:root body kbd,:root body samp{font-family:var(--font-mono)}
:root body input,:root body select,:root body textarea{background:var(--bg);color:var(--text);border-color:var(--line);font-family:var(--font-sans)}
:root body input::placeholder,:root body textarea::placeholder{color:#6B6B6B}
:root body select option{background:var(--panel);color:var(--text)}
:root body input[type="number"]{font-family:var(--font-mono)}
:root body table{border-color:var(--line)}
:root body th{background:var(--panel);color:var(--text-2);border-color:var(--line)}
:root body td{border-color:var(--line)}
:root body dialog{background:var(--panel);color:var(--text)}
:root body details summary{color:var(--text)}
:root body *{scrollbar-color:#333 transparent}

/* ---------- 2. Color + min font-size remap of every existing rule (generated from studio.css and the page <style> blocks) ---------- */
:root body .task-list input{accent-color:#4C8DFF}
:root body .searchbox kbd,
:root body .account-avatar,
:root body .editor-dialog::backdrop,
:root body .editor-dialog form>label input,
:root body .editor-dialog textarea,
:root body .editor-dialog select,
:root body .code-data,
:root body .product-size-form select,
:root body .product-search-input,
:root body .pricing-field input,
:root body .pricing-input-unit,
:root body .pricing-preview-input-wrap,
:root body .discount-input-wrap,
:root body .discount-scan-controls select,
:root body .discount-scan-controls input,
:root body .discount-catalog-controls select,
:root body .discount-catalog-controls input,
:root body .picking-field select{background:#0A0A0A}
:root body .app-body,
:root body .app-frame,
:root body .sidebar,
:root body .nav-divider,
:root body .system-chip,
:root body .app-header,
:root body .searchbox,
:root body .search-results,
:root body .search-results a:hover,
:root body .header-divider,
:root body .hero-banner,
:root body .visual-a,
:root body .visual-b,
:root body .btn-white,
:root body .btn-outline,
:root body .btn-quiet,
:root body .stat-card,
:root body .round-arrow,
:root body .dashboard-panel,
:root body .upcoming-tag,
:root body .orders-table th,
:root body .chart-placeholder,
:root body .chart-overlay,
:root body .quick-tile,
:root body .quick-tile:hover,
:root body .workspace-hero,
:root body .module-card,
:root body .module-head,
:root body .module-controls .module-edit,
:root body .modal-close,
:root body .integration-panel,
:root body .studio-body,
:root body .login-card,
:root body .product-result-head span,
:root body .product-result-row,
:root body .product-result-image,
:root body .product-result-image img,
:root body .product-page-btn,
:root body .product-page-btn:hover:not(:disabled),
:root body .product-search-btn,
:root body .product-reset-btn,
:root body .product-search-btn:hover,
:root body .product-reset-btn:hover,
:root body .product-model-btn,
:root body .product-model-btn:hover,
:root body .product-model-panel,
:root body .product-model-table,
:root body .product-model-header,
:root body .pricing-settings-note,
:root body .pricing-save-bar,
:root body .pricing-remove-rate,
:root body .pricing-remove-rate:hover,
:root body .pricing-logistics-empty,
:root body .pricing-preview,
:root body .pricing-preview-result,
:root body .pricing-preview-result > div,
:root body .pricing-preview-result .pricing-preview-highlight,
:root body .discount-notice,
:root body .discount-card,
:root body .discount-market-table th,
:root body .discount-result-table th,
:root body .discount-conflict-table th,
:root body .discount-catalog-table th,
:root body .discount-catalog-product img,
:root body .discount-catalog-blocked,
:root body .discount-candidate-panel,
:root body .discount-candidate-item,
:root body .discount-candidate-item-title,
:root body .discount-candidate-table th,
:root body .picking-summary-card,
:root body .picking-country,
:root body .picking-table th,
:root body .picking-empty,
:root body .pc-card,
:root body .pc-table th,
:root body .pc-details,
:root body .pc-breakdown-box{background:#111111}
:root body .env-tag,
:root body .connection-pill,
:root body .discount-badge.no_discount,
:root body .picking-warning{background:#1C170A}
:root body .btn-dark,
:root body .pricing-preview-button,
:root body .discount-actions button,
:root body .discount-scan-controls button,
:root body .discount-catalog-controls button,
:root body .discount-candidate-toolbar button,
:root body .pc-button{background:#EDEDED}
:root body .shopee-symbol,
:root body .m-orange,
:root body .btn-danger,
:root body .alert-banner,
:root body .pricing-preview-message,
:root body .discount-badge.raise_price,
:root body .discount-conflict-tag,
:root body .discount-catalog-block{background:rgba(255,107,107,.1)}
:root body .env-tag.production,
:root body .mint-symbol,
:root body .order-status,
:root body .m-mint,
:root body .connection-pill.yes,
:root body .success-banner,
:root body .login-body,
:root body .product-result-status,
:root body .pricing-currency,
:root body .discount-badge.max_discount,
:root body .discount-catalog-ok{background:rgba(61,214,140,.1)}
:root body .nav-link:hover:not(.nav-disabled),
:root body .nav-link.active,
:root body .blue-symbol,
:root body .violet-symbol,
:root body .demo-warning,
:root body .m-blue,
:root body .m-violet{background:rgba(76,141,255,.1)}
:root body .shopee-symbol,
:root body .integration-logo{background:transparent}
:root body .app-header,
:root body .orders-table td,
:root body .module-head,
:root body .discount-market-table th,
:root body .discount-result-table th,
:root body .discount-market-table td,
:root body .discount-result-table td,
:root body .discount-conflict-table th,
:root body .discount-conflict-table td,
:root body .discount-catalog-table th,
:root body .discount-catalog-table td,
:root body .discount-candidate-item-title,
:root body .discount-candidate-table th,
:root body .discount-candidate-table td,
:root body .picking-country-head,
:root body .picking-table th,
:root body .picking-table td,
:root body .pc-table th,
:root body .pc-table td,
:root body .pc-details[open] summary{border-bottom-color:#262626}
:root body .app-frame,
:root body .system-chip,
:root body .searchbox,
:root body .searchbox kbd,
:root body .env-tag,
:root body .env-tag.production,
:root body .btn-white,
:root body .btn-outline,
:root body .shopee-symbol,
:root body .chart-overlay,
:root body .quick-tile,
:root body .quick-tile:hover,
:root body .demo-warning,
:root body .module-card,
:root body .module-controls .module-edit,
:root body .workspace-backup,
:root body .blank-canvas,
:root body .module-grid.arranging .module-card,
:root body .editor-dialog,
:root body .editor-dialog form>label input,
:root body .editor-dialog textarea,
:root body .editor-dialog select,
:root body .btn-danger,
:root body .alert-banner,
:root body .success-banner,
:root body .login-card,
:root body .login-card input,
:root body .product-result-head span,
:root body .product-result-row,
:root body .product-result-image,
:root body .product-empty,
:root body .product-size-form select,
:root body .product-page-btn,
:root body .product-search-input,
:root body .product-search-input:focus,
:root body .product-search-btn,
:root body .product-reset-btn,
:root body .product-model-btn,
:root body .product-model-panel,
:root body .product-model-table,
:root body .pricing-settings-note,
:root body .pricing-field input,
:root body .pricing-field input:focus,
:root body .pricing-input-unit,
:root body .pricing-input-unit:focus-within,
:root body .pricing-save-bar,
:root body .pricing-remove-rate,
:root body .pricing-logistics-empty,
:root body .pricing-preview,
:root body .pricing-preview-input-wrap,
:root body .pricing-preview-input-wrap:focus-within,
:root body .pricing-preview-result,
:root body .pricing-policy-box,
:root body .discount-notice,
:root body .discount-card,
:root body .discount-input-wrap,
:root body .discount-market-table input,
:root body .discount-scan-controls select,
:root body .discount-scan-controls input,
:root body .discount-catalog-controls select,
:root body .discount-catalog-controls input,
:root body .discount-catalog-product img,
:root body .discount-candidate-panel,
:root body .discount-candidate-toolbar input,
:root body .discount-candidate-item,
:root body .discount-candidate-table input[type="number"],
:root body .picking-field select,
:root body .picking-summary-card,
:root body .picking-warning,
:root body .picking-country,
:root body .picking-stats span,
:root body .pc-card,
:root body .pc-field input,
:root body .pc-details,
:root body .pc-market-input,
:root body .pc-market-input input,
:root body .pc-breakdown-box{border-color:#262626}
:root body .pricing-preview-button{border-color:#EDEDED}
:root body .sidebar{border-right-color:#262626}
:root body .chart-footnote,
:root body .information-line,
:root body .product-model-row,
:root body .pricing-subsection,
:root body .picking-detail,
:root body .pc-breakdown-line.total,
:root body .pc-fee-list{border-top-color:#262626}
:root body .app-frame,
:root body .traffic i,
:root body .system-chip,
:root body .system-indicator,
:root body .system-indicator.connected,
:root body .search-results,
:root body .hero-banner,
:root body .visual-a,
:root body .visual-b,
:root body .btn-dark,
:root body .btn-white,
:root body .stat-card,
:root body .stat-card:hover,
:root body .dashboard-panel,
:root body .module-card,
:root body .editor-dialog,
:root body .integration-panel,
:root body .login-card,
:root body .pricing-field input:focus,
:root body .pricing-input-unit:focus-within,
:root body .pricing-save-bar{box-shadow:none}
:root body .btn-dark,
:root body .pricing-preview-button,
:root body .discount-actions button,
:root body .discount-scan-controls button,
:root body .discount-catalog-controls button,
:root body .discount-candidate-toolbar button,
:root body .pc-button{color:#0A0A0A}
:root body .env-tag.production,
:root body .mint-symbol,
:root body .connection-pill.yes,
:root body .success-banner,
:root body .product-result-status,
:root body .product-model-stock,
:root body .pricing-currency,
:root body .pricing-preview-result .pricing-preview-highlight strong,
:root body .discount-badge.max_discount,
:root body .discount-catalog-ok,
:root body .discount-candidate-ready,
:root body .picking-table .qty,
:root body .pc-positive,
:root body .pc-plus{color:#3DD68C}
:root body .nav-link.active,
:root body .blue-symbol,
:root body .violet-symbol,
:root body .demo-warning,
:root body .demo-warning button,
:root body .m-blue,
:root body .m-violet,
:root body .module-link{color:#4C8DFF}
:root body .brand-sub,
:root body .brand-spark,
:root body .nav-heading,
:root body .nav-disabled,
:root body .nav-link small,
:root body .mini-count,
:root body .system-chip small,
:root body .version,
:root body .searchbox>span,
:root body .searchbox kbd,
:root body .logout-btn,
:root body .breadcrumbs,
:root body .crumb-arrow,
:root body .hero-eyebrow,
:root body .hero-content>p,
:root body .btn-quiet,
:root body .section-overline,
:root body .metric-label,
:root body .round-arrow,
:root body .panel-subtitle,
:root body .arrow-action,
:root body .upcoming-tag,
:root body .orders-table th,
:root body .table-placeholder,
:root body .empty-icon,
:root body .chart-overlay,
:root body .chart-footnote,
:root body .quick-caption,
:root body .app-foot,
:root body .order-status,
:root body .workspace-hero p:not(.section-overline),
:root body .module-head-title,
:root body .m-mint,
:root body .module-controls button,
:root body .drag-handle,
:root body .module-note,
:root body .task-list input:checked+span,
:root body .microcopy,
:root body .shopee-block-number span,
:root body .workspace-backup p,
:root body .blank-canvas,
:root body .modal-heading span,
:root body .modal-close,
:root body .dialog-help,
:root body .information-line span,
:root body .integration-note,
:root body .code-data,
:root body .login-card .login-brand span,
:root body .login-card p,
:root body .login-card footer,
:root body .product-result-head,
:root body .product-result-image,
:root body .product-result-meta,
:root body .product-result-price del,
:root body .product-result-price span,
:root body .product-empty,
:root body .product-toolbar-summary,
:root body .product-size-form label,
:root body .product-page-number,
:root body .product-search-input::placeholder,
:root body .product-search-summary,
:root body .product-model-panel-head span,
:root body .product-model-header,
:root body .product-model-name small,
:root body .product-model-id,
:root body .product-model-empty,
:root body .product-model-loading,
:root body .pricing-settings-note,
:root body .pricing-field > span,
:root body .pricing-input-unit b,
:root body .pricing-voucher-row > strong,
:root body .pricing-save-bar span,
:root body .pricing-logistics-head p,
:root body .pricing-logistics-help,
:root body .pricing-logistics-empty,
:root body .pricing-remove-rate,
:root body .pricing-preview-head span,
:root body .pricing-preview-inputs label > span,
:root body .pricing-preview-input-wrap b,
:root body .pricing-preview-result span,
:root body .discount-hero p,
:root body .discount-input-wrap span,
:root body .discount-market-table th,
:root body .discount-result-table th,
:root body .market-policy,
:root body .discount-conflict-table th,
:root body .discount-conflict-sub,
:root body .discount-catalog-table th,
:root body .discount-catalog-meta,
:root body .discount-candidate-item-meta,
:root body .discount-candidate-table th,
:root body .discount-candidate-wait,
:root body .discount-candidate-note,
:root body .picking-field label,
:root body .picking-summary-card span,
:root body .picking-country-head p,
:root body .picking-table th,
:root body .picking-table .orders,
:root body .picking-empty,
:root body .picking-note,
:root body .pc-header p,
:root body .pc-section-sub,
:root body .pc-table th,
:root body .pc-muted,
:root body .pc-krw-sub,
:root body .pc-note,
:root body .pc-fee-policy{color:#A1A1A1}
:root body .brand-main,
:root body .nav-link,
:root body .searchbox input,
:root body .account-avatar,
:root body .breadcrumbs strong,
:root body .btn-white,
:root body .btn-outline,
:root body .hero-edge,
:root body .shopee-symbol,
:root body .table-placeholder strong,
:root body .quick-tile,
:root body .quick-tile>span,
:root body .module-controls .module-edit,
:root body .task-list label,
:root body .integration-logo,
:root body .editor-dialog form>label,
:root body .editor-dialog form>label input,
:root body .editor-dialog textarea,
:root body .editor-dialog select,
:root body .product-result-name,
:root body .product-result-price strong,
:root body .product-toolbar-summary strong,
:root body .product-size-form select,
:root body .product-page-btn,
:root body .product-search-input,
:root body .product-search-btn,
:root body .product-reset-btn,
:root body .product-search-summary strong,
:root body .product-model-btn,
:root body .product-model-panel-head strong,
:root body .product-model-row,
:root body .product-model-name strong,
:root body .pricing-settings-note strong,
:root body .pricing-field input,
:root body .pricing-subsection h3,
:root body .pricing-save-bar strong,
:root body .pricing-remove-rate:hover,
:root body .pricing-preview-head strong,
:root body .pricing-preview-input-wrap input,
:root body .pricing-preview-result strong,
:root body .discount-field label,
:root body .discount-scan-summary,
:root body .picking-field select,
:root body .picking-summary-card strong,
:root body .picking-country-head h2,
:root body .picking-stats span,
:root body .picking-table td,
:root body .picking-name,
:root body .picking-detail summary,
:root body .pc-field label,
:root body .pc-breakdown summary{color:#EDEDED}
:root body .env-tag,
:root body .connection-pill,
:root body .discount-badge.no_discount,
:root body .picking-warning{color:#FCD34D}
:root body .m-orange,
:root body .btn-danger,
:root body .alert-banner,
:root body .pricing-preview-message,
:root body .discount-error,
:root body .discount-badge.raise_price,
:root body .discount-conflict-tag,
:root body .discount-catalog-block,
:root body .discount-candidate-raise,
:root body .discount-candidate-error,
:root body .pc-error,
:root body .pc-negative,
:root body .pc-minus{color:#FF6B6B}
:root body .hero-visual{filter:none}
:root body .brand-spark,
:root body .nav-heading,
:root body .nav-link small,
:root body .mini-count,
:root body .system-chip strong,
:root body .system-chip small,
:root body .version,
:root body .searchbox input,
:root body .searchbox kbd,
:root body .env-tag,
:root body .account-name,
:root body .breadcrumbs,
:root body .breadcrumbs strong,
:root body .hero-eyebrow,
:root body .hero-content>p,
:root body .btn,
:root body .section-overline,
:root body .metric-label,
:root body .panel-subtitle,
:root body .upcoming-tag,
:root body .orders-table,
:root body .orders-table th,
:root body .table-placeholder strong,
:root body .table-placeholder span,
:root body .chart-overlay,
:root body .chart-footnote,
:root body .quick-caption,
:root body .quick-tile,
:root body .app-foot,
:root body .demo-warning,
:root body .demo-warning button,
:root body .workspace-hero p:not(.section-overline),
:root body .module-head-title,
:root body .module-controls button,
:root body .module-note,
:root body .task-list label,
:root body .microcopy,
:root body .connection-pill,
:root body .shopee-block-number span,
:root body .module-link,
:root body .workspace-backup p,
:root body .blank-canvas p,
:root body .modal-heading span,
:root body .editor-dialog form>label,
:root body .editor-dialog form>label input,
:root body .editor-dialog textarea,
:root body .editor-dialog select,
:root body .dialog-help,
:root body .alert-banner,
:root body .success-banner,
:root body .information-line,
:root body .integration-note,
:root body .integration-shop .btn,
:root body .code-data,
:root body .login-card p,
:root body .login-card label,
:root body .login-card footer,
:root body .product-result-head,
:root body .product-result-image,
:root body .product-result-status,
:root body .product-result-meta,
:root body .product-result-price del,
:root body .product-result-price span,
:root body .product-empty,
:root body .product-toolbar-summary,
:root body .product-toolbar-summary strong,
:root body .product-size-form label,
:root body .product-size-form select,
:root body .product-page-btn,
:root body .product-page-number,
:root body .product-search-input,
:root body .product-search-btn,
:root body .product-reset-btn,
:root body .product-search-summary,
:root body .product-model-btn,
:root body .product-model-panel-head strong,
:root body .product-model-panel-head span,
:root body .product-model-row,
:root body .product-model-header,
:root body .product-model-name strong,
:root body .product-model-name small,
:root body .product-model-stock,
:root body .product-model-id,
:root body .product-model-empty,
:root body .product-model-loading,
:root body .pricing-settings-note,
:root body .pricing-currency,
:root body .pricing-field > span,
:root body .pricing-field input,
:root body .pricing-input-unit b,
:root body .pricing-subsection h3,
:root body .pricing-voucher-row > strong,
:root body .pricing-save-bar strong,
:root body .pricing-save-bar span,
:root body .pricing-logistics-head p,
:root body .pricing-logistics-help,
:root body .pricing-logistics-empty,
:root body .pricing-preview-head strong,
:root body .pricing-preview-head span,
:root body .pricing-preview-inputs label > span,
:root body .pricing-preview-input-wrap input,
:root body .pricing-preview-input-wrap b,
:root body .pricing-preview-button,
:root body .pricing-preview-message,
:root body .pricing-preview-result span,
:root body .pricing-preview-result strong,
:root body .pricing-preview-result .pricing-preview-highlight strong,
:root body .pricing-policy-box strong,
:root body .discount-field label,
:root body .discount-input-wrap span,
:root body .discount-market-table th,
:root body .discount-result-table th,
:root body .market-policy,
:root body .discount-badge,
:root body .discount-conflict-table th,
:root body .discount-conflict-table td,
:root body .discount-conflict-sub,
:root body .discount-conflict-tag,
:root body .discount-catalog-table th,
:root body .discount-catalog-table td,
:root body .discount-catalog-meta,
:root body .discount-catalog-ok,
:root body .discount-catalog-block,
:root body .discount-candidate-item-title,
:root body .discount-candidate-item-meta,
:root body .discount-candidate-table th,
:root body .discount-candidate-table td,
:root body .discount-candidate-error,
:root body .discount-candidate-note,
:root body .picking-field label,
:root body .picking-summary-card span,
:root body .picking-warning,
:root body .picking-country-head p,
:root body .picking-stats span,
:root body .picking-table th,
:root body .picking-table td,
:root body .picking-table .orders,
:root body .picking-empty,
:root body .picking-detail summary,
:root body .picking-note,
:root body .pc-field label,
:root body .pc-error,
:root body .pc-section-sub,
:root body .pc-table th,
:root body .pc-table td,
:root body .pc-primary-table td,
:root body .pc-krw-sub,
:root body .pc-details summary,
:root body .pc-market-input strong,
:root body .pc-note,
:root body .pc-breakdown-line,
:root body .pc-breakdown-line.total,
:root body .pc-fee-policy{font-size:13px}
:root body .shopee-symbol{text-shadow:none}

/* ---------- 3. Layout: left grouped sidebar (Shopee Seller Centre style) ---------- */
:root body.app-body{padding:0;min-height:100vh}
:root body .app-frame{display:grid;grid-template-columns:236px minmax(0,1fr);max-width:none;min-height:100vh;margin:0;background:var(--bg);border:0;border-radius:0;box-shadow:none;overflow:visible}
:root body .sidebar{position:sticky;top:0;z-index:30;height:100vh;min-height:0;width:236px;display:flex;flex-direction:column;gap:0;padding:20px 12px 16px;background:var(--bg);border:0;border-right:1px solid var(--line);overflow-y:auto;scrollbar-width:thin;transform:none}
:root body .traffic,
:root body .brand-sub,
:root body .nav-heading,
:root body .nav-divider,
:root body .version,
:root body .nav-icon{display:none}
:root body .brand-lockup{margin:0 0 18px;padding:0 12px;flex:0 0 auto;flex-direction:row;align-items:center;letter-spacing:-.03em}
:root body .brand-lockup .brand-sub{display:inline;margin-left:6px;font-size:17px;font-weight:500;line-height:1;color:var(--text-2)}
:root body .brand-lockup .brand-spark{display:none}
:root body .brand-main{font-size:17px;font-weight:700;line-height:1;color:var(--text)}
:root body .navigation{flex:1 0 auto;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:2px;overflow:visible}
:root body .nav-group{display:flex;flex-direction:column;gap:2px;margin-top:18px}
:root body .nav-group-title{margin:0 0 4px;padding:0 12px;font-size:13px;font-weight:500;line-height:1.4;letter-spacing:0;color:#8F8F8F}
:root body .nav-link{flex:0 0 auto;display:flex;align-items:center;min-height:37px;height:37px;padding:0 12px;gap:8px;border-radius:8px;white-space:nowrap;font-size:14px;font-weight:400;color:var(--text-2);background:transparent;transition:color .15s,background .15s}
:root body .nav-link:hover:not(.nav-disabled){color:var(--text);background:#151515;transform:none}
:root body .nav-link.active{color:var(--text);background:#1A1A1A;font-weight:600}
:root body .nav-disabled{color:#5C5C5C;cursor:default}
:root body .nav-link small{margin-left:auto;font-size:13px;font-family:inherit;color:#5C5C5C}
:root body .mini-count{margin-left:auto;font-family:var(--font-mono);font-size:13px;color:var(--text-2)}
:root body .nav-bottom{margin-top:20px;padding-top:14px;flex:0 0 auto;border-top:1px solid var(--line)}
:root body .system-chip{padding:4px 12px;gap:10px;background:transparent;border:0;box-shadow:none}
:root body .system-chip small{display:block;margin-top:2px;font-size:13px;font-family:var(--font-mono);color:#8F8F8F}
:root body .system-chip strong{font-size:13px;font-weight:500;color:var(--text-2);white-space:nowrap}
:root body .system-indicator{flex:0 0 auto;width:8px;height:8px;background:var(--warn);box-shadow:none}
:root body .system-indicator.connected{background:var(--ok);box-shadow:none}

:root body .app-area{min-width:0;max-width:none;margin:0;padding:0 32px}
:root body .app-header{max-width:1200px;margin:0 auto;height:64px;padding:0;background:transparent;border-bottom:1px solid var(--line)}
:root body .page-content{max-width:1200px;margin:0 auto;padding:32px 0 56px}

/* header row (search + account) */
:root body .searchbox{height:38px;width:min(360px,55%);border-radius:999px;background:var(--panel);border:1px solid var(--line)}
:root body .searchbox>span{font-size:20px;color:var(--text-2)}
:root body .searchbox input{font-size:14px;color:var(--text)}
:root body .searchbox kbd{font-family:var(--font-mono);background:var(--bg);border-color:var(--line);color:var(--text-2)}
:root body .search-results{background:var(--panel);border-color:var(--line);box-shadow:none}
:root body .search-results a{color:var(--text)}
:root body .search-results a:hover{background:#1A1A1A}
:root body .env-tag{font-family:var(--font-mono);border-radius:999px;letter-spacing:.06em}
:root body .env-tag:not(.production){background:var(--warn-bg);color:var(--warn);border-color:#3A2F0B}
:root body .header-divider{background:var(--line)}
:root body .account-avatar{background:var(--panel);color:var(--text);border:1px solid var(--line);font-size:13px}
:root body .account-name{font-size:14px;color:var(--text)}
:root body .logout-btn{color:var(--text-2)}
:root body .logout-btn:hover{color:var(--text)}

/* ---------- 4. Typography ---------- */
:root body .breadcrumbs{font-family:var(--font-mono);color:var(--text-2);font-size:13px;letter-spacing:.08em}
:root body .breadcrumbs strong{font-family:var(--font-sans);font-size:13px;color:var(--text)}
:root body .crumb-arrow{color:#5C5C5C}
:root body .hero-eyebrow,
:root body .section-overline,
:root body .module-head-title,
:root body .upcoming-tag,
:root body .quick-caption,
:root body .modal-heading span,
:root body .pricing-currency,
:root body .product-result-status{font-family:var(--font-mono);letter-spacing:.08em}
:root body .hero-eyebrow,:root body .section-overline{color:var(--text-2)}

/* numbers / prices -> Geist Mono */
:root body .metric-number,
:root body .shopee-block-number strong,
:root body .picking-summary-card strong,
:root body .picking-table .qty,
:root body .product-result-price strong,
:root body .product-result-price del,
:root body .product-model-stock,
:root body .product-model-id,
:root body .product-page-number,
:root body .pricing-preview-result strong,
:root body .pricing-input-unit b,
:root body .pricing-preview-input-wrap b,
:root body .discount-input-wrap span,
:root body .discount-result-table .number,
:root body .discount-conflict-table .price,
:root body .discount-catalog-table .price,
:root body .discount-candidate-table .num,
:root body .discount-candidate-result,
:root body .pc-table td:not(:first-child),
:root body .pc-primary-price,
:root body .pc-breakdown-line strong,
:root body .pc-market-input input,
:root body .pc-field input,
:root body .information-line strong,
:root body .code-data{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
:root body .metric-number{letter-spacing:-.02em;font-weight:500}

/* ---------- 5. Buttons: pills ---------- */
:root body .btn,
:root body button.pc-button,
:root body .pricing-preview-button,
:root body .discount-actions button,
:root body .discount-scan-controls button,
:root body .discount-catalog-controls button,
:root body .discount-candidate-toolbar button,
:root body .product-page-btn,
:root body .product-reset-btn,
:root body .product-model-btn,
:root body .module-controls .module-edit,
:root body .demo-warning button{border-radius:999px;box-shadow:none;transform:none;font-weight:500}
:root body .btn{font-size:14px;min-height:38px;padding:0 18px}
:root body .btn:hover{transform:none}
/* primary */
:root body .btn-dark,
:root body .pc-button,
:root body .pricing-preview-button,
:root body .discount-actions button,
:root body .discount-scan-controls button,
:root body .discount-catalog-controls button,
:root body .discount-candidate-toolbar button{background:#EDEDED;color:#0A0A0A;border:1px solid #EDEDED}
:root body .btn-dark:hover:not(:disabled),
:root body .pc-button:hover:not(:disabled),
:root body .pricing-preview-button:hover:not(:disabled),
:root body .discount-actions button:hover:not(:disabled),
:root body .discount-scan-controls button:hover:not(:disabled),
:root body .discount-catalog-controls button:hover:not(:disabled),
:root body .discount-candidate-toolbar button:hover:not(:disabled){background:#FFFFFF;opacity:1}
/* secondary */
:root body .btn-white,
:root body .btn-outline,
:root body .btn-quiet,
:root body .product-page-btn,
:root body .product-search-btn,
:root body .product-reset-btn,
:root body .product-model-btn,
:root body .pricing-remove-rate,
:root body .module-controls .module-edit,
:root body .pricing-add-rate{background:transparent;color:var(--text);border:1px solid var(--line)}
:root body .btn-white:hover,
:root body .btn-outline:hover,
:root body .btn-quiet:hover,
:root body .product-page-btn:hover:not(:disabled),
:root body .product-search-btn:hover,
:root body .product-reset-btn:hover,
:root body .product-model-btn:hover,
:root body .pricing-remove-rate:hover,
:root body .module-controls .module-edit:hover{background:#1A1A1A;color:var(--text)}
:root body .btn-danger{background:transparent;color:var(--err);border:1px solid rgba(255,107,107,.35)}
:root body .btn-danger:hover{background:rgba(255,107,107,.1)}
:root body .pricing-remove-rate{border-radius:999px}
:root body .product-search-input{border-radius:999px 0 0 999px;padding-left:16px}
:root body .product-search-btn{border-radius:0 999px 999px 0}
:root body .modal-close{background:transparent;border:1px solid var(--line);border-radius:999px;color:var(--text-2)}
:root body .demo-warning button{color:var(--accent)}

/* ---------- 6. Cards / panels ---------- */
:root body .stat-card,
:root body .dashboard-panel,
:root body .module-card,
:root body .integration-panel,
:root body .integration-shop,
:root body .workspace-hero,
:root body .workspace-backup,
:root body .hero-banner,
:root body .discount-card,
:root body .discount-candidate-panel,
:root body .pc-card,
:root body .pc-details,
:root body .picking-country,
:root body .picking-summary-card,
:root body .pricing-preview,
:root body .pricing-save-bar,
:root body .product-result-row,
:root body .product-model-panel,
:root body .blank-canvas,
:root body .login-card,
:root body .editor-dialog{background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:none}
:root body .workspace-backup,:root body .blank-canvas{border-style:dashed}
:root body .stat-card:hover{transform:none;box-shadow:none;border-color:#3A3A3A}
:root body .module-head{background:transparent;border-bottom-color:var(--line)}
:root body .pricing-save-bar{background:rgba(17,17,17,.92)}
:root body .editor-dialog::backdrop{background:rgba(0,0,0,.7)}
:root body .module-grid.arranging .module-card{border:1px dashed #3A3A3A}
:root body .module-grid .module-card.over{outline:2px solid var(--accent)}

/* home hero: no decoration */
:root body .hero-visual,
:root body .hero-edge{display:none}
:root body .hero-banner{min-height:0;background:var(--bg);border:0;border-radius:0;box-shadow:none;overflow:visible}
:root body .hero-content{padding:40px 0 16px;max-width:760px}
:root body .hero-content h1{color:var(--text);font-weight:700;letter-spacing:-.045em}
:root body .hero-content h1 span{color:var(--text-2)}
:root body .hero-content>p{font-size:15px;color:var(--text-2)}
:root body .workspace-hero p:not(.section-overline){font-size:14px;color:var(--text-2)}

/* icon tiles: outlined, no gradients */
:root body .metric-symbol,
:root body .module-icon,
:root body .integration-logo{background:transparent;border:1px solid var(--line);color:var(--text);text-shadow:none;background-image:none}
:root body .metric-symbol.blue-symbol,:root body .module-icon.m-blue{color:var(--accent)}
:root body .metric-symbol.mint-symbol,:root body .module-icon.m-mint{color:var(--ok)}
:root body .metric-symbol.violet-symbol,:root body .module-icon.m-violet{color:var(--text-2)}
:root body .metric-symbol.shopee-symbol,:root body .module-icon.m-orange,:root body .integration-logo{color:var(--text)}
:root body .round-arrow{background:transparent;border:1px solid var(--line);color:var(--text-2)}

/* chart placeholder: flat */
:root body .chart-placeholder{background:transparent;border-bottom:1px solid var(--line)}
:root body .chart-overlay{background:var(--panel);border-color:var(--line);color:var(--text-2)}
:root body .quick-tile{background:transparent;border-color:var(--line);color:var(--text)}
:root body .quick-tile:hover{background:#1A1A1A;border-color:#3A3A3A}
:root body .quick-tile>span{color:var(--text-2)}

/* status banners / pills */
:root body .alert-banner{background:rgba(255,107,107,.08);border-color:rgba(255,107,107,.3);color:var(--err)}
:root body .success-banner{background:rgba(61,214,140,.08);border-color:rgba(61,214,140,.3);color:var(--ok)}
:root body .demo-warning{background:rgba(76,141,255,.08);border-color:rgba(76,141,255,.3);color:var(--accent)}
:root body .picking-warning,
:root body .connection-pill:not(.yes){background:var(--warn-bg);border-color:#3A2F0B;color:var(--warn)}
:root body .pricing-preview-result{background:var(--line);border-color:var(--line)}
:root body .pricing-preview-result>div{background:var(--panel)}
:root body .pricing-preview-result .pricing-preview-highlight{background:rgba(61,214,140,.08)}
:root body .pricing-policy-box{background:var(--bg);border-color:var(--line)}
:root body .code-data{background:var(--bg);border:1px solid var(--line);color:var(--text)}
:root body .picking-country-head{border-bottom:1px solid var(--line)}
:root body .discount-catalog-blocked{background:rgba(255,107,107,.05)}

/* ---------- 7. Tables ---------- */
:root body .orders-table th,
:root body .discount-market-table th,
:root body .discount-result-table th,
:root body .discount-conflict-table th,
:root body .discount-catalog-table th,
:root body .discount-candidate-table th,
:root body .picking-table th,
:root body .pc-table th,
:root body .product-model-header{background:var(--panel);color:var(--text-2);border-bottom:1px solid var(--line);font-size:13px;font-weight:500}
:root body .orders-table th:first-child,
:root body .orders-table th:last-child{border-radius:0}
:root body .orders-table td,
:root body .discount-market-table td,
:root body .discount-result-table td,
:root body .discount-conflict-table td,
:root body .discount-catalog-table td,
:root body .discount-candidate-table td,
:root body .picking-table td,
:root body .pc-table td,
:root body .product-model-row{border-bottom:1px solid var(--line);border-top-color:var(--line)}
:root body .orders-table,
:root body .picking-table td,
:root body .discount-conflict-table td,
:root body .discount-catalog-table td,
:root body .discount-candidate-table td,
:root body .pc-table td{font-size:13px}
:root body .discount-result-table .number,
:root body .discount-conflict-table .price,
:root body .discount-catalog-table .price,
:root body .discount-candidate-table .num{text-align:right}
:root body .discount-candidate-item-title{background:var(--panel)}
:root body .table-placeholder strong{color:var(--text)}
:root body .empty-icon{color:#5C5C5C}

/* ---------- 8. Forms ---------- */
:root body .pricing-field input,
:root body .pricing-input-unit,
:root body .pricing-preview-input-wrap,
:root body .discount-input-wrap,
:root body .product-search-input,
:root body .product-size-form select,
:root body .picking-field select,
:root body .pc-field input,
:root body .pc-market-input input,
:root body .login-card input,
:root body .editor-dialog form>label input,
:root body .editor-dialog textarea,
:root body .editor-dialog select{background:var(--bg);border-color:var(--line);color:var(--text)}
:root body .pricing-input-unit input{background:transparent}
:root body .pricing-field input:focus,
:root body .pricing-input-unit:focus-within,
:root body .pricing-preview-input-wrap:focus-within,
:root body .product-search-input:focus{border-color:#4A4A4A;box-shadow:none}

/* ---------- 9. Login page ---------- */
:root body.login-body{background:var(--bg)}
:root body .login-card .login-brand{color:var(--text);font-weight:700}
:root body .login-card .login-brand span{color:var(--text-2)}
:root body .login-card h1{color:var(--text)}
:root body .login-card .btn{border-radius:999px}

/* ---------- 10. Inline style="" leftovers (templates + JS) ---------- */
:root body [style*="color:#6b7280"],
:root body [style*="color:#8a929d"],
:root body [style*="color:#98a2b3"]{color:var(--text-2)!important}
:root body [style*="color:#b42318"]{color:var(--err)!important}
:root body [style*="color:#067647"]{color:var(--ok)!important}
:root body [style*="background:#f7f8fa"]{background:var(--panel)!important}
:root body [style*="background:#f7f7f5"]{background:var(--bg)!important;border:1px solid var(--line)}
:root body select[style*="background:#fff"]{background:var(--bg)!important;color:var(--text);border-color:var(--line)!important}
:root body [style*="font-size:10px"],
:root body [style*="font-size:11px"],
:root body [style*="font-size:12px"]{font-size:13px!important}

} /* end @media screen */

/* ---------- 11. Responsive ---------- */
@media screen and (max-width:760px){
  /* phones: sidebar becomes the slide-in drawer (mobile-menu button toggles .open) */
  :root body .app-frame{grid-template-columns:1fr}
  :root body .sidebar{position:fixed;left:0;top:0;bottom:0;z-index:40;height:auto;width:255px;transform:translateX(-106%);transition:transform .2s}
  :root body .sidebar.open{transform:translateX(0)}
  :root body .mobile-menu{color:var(--text-2)}
  :root body .app-area{padding:0 16px}
  :root body .page-content{padding:22px 0 40px}
}

/* generated remaps that live inside responsive breakpoints */
@media screen and (max-width:760px){
  :root body .sidebar{box-shadow:none}
  :root body .mobile-menu{color:#A1A1A1}
}
@media screen and (max-width:430px){
  :root body .hero-actions .btn,
  :root body .quick-tile,
  :root body .section-actions .btn{font-size:13px}
}


/* ---------- 12. Cost management (/costs) ---------- */
@media screen{
:root body .cost-page{max-width:1500px;margin:0 auto}
:root body .cost-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px;flex-wrap:wrap}
:root body .cost-head h1{margin:0 0 6px;font-size:24px}
:root body .cost-head p{margin:0;color:var(--text-2);font-size:13px}
:root body .cost-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px;align-items:start}
:root body .cost-list-card,
:root body .cost-edit-card{background:var(--panel);border:1px solid var(--line);border-radius:12px}
:root body .cost-list-card{overflow:hidden}
:root body .cost-edit-card{padding:20px;position:sticky;top:16px}
:root body .cost-toolbar{display:flex;align-items:center;gap:14px;padding:14px 16px;border-bottom:1px solid var(--line);flex-wrap:wrap}
:root body .cost-toolbar input[type="search"]{flex:1 1 240px;min-width:0;height:36px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--text);font-size:13px}
:root body .cost-check{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text);cursor:pointer;white-space:nowrap}
:root body .cost-check input{accent-color:var(--accent)}
:root body .cost-count{margin-left:auto;font-family:var(--font-mono);font-size:13px;color:var(--text-2)}
:root body .cost-table-wrap{overflow:auto;max-height:calc(100vh - 230px)}
:root body .cost-table{width:100%;min-width:720px;border-collapse:collapse}
:root body .cost-table th{position:sticky;top:0;z-index:1;background:var(--panel);color:var(--text-2);border-bottom:1px solid var(--line);font-size:13px;font-weight:500;text-align:left;padding:10px 12px;white-space:nowrap}
:root body .cost-table td{border-bottom:1px solid var(--line);font-size:13px;padding:11px 12px;vertical-align:top}
:root body .cost-table .num{text-align:right;font-family:var(--font-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
:root body .cost-page [hidden]{display:none!important}
:root body .cost-table tbody tr[data-key],
:root body .cost-table tbody tr[data-pid]{cursor:pointer}
:root body .cost-table tbody tr[data-key]:hover td,
:root body .cost-table tbody tr[data-pid]:hover td{background:#161616}
:root body .cost-table tbody tr[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
:root body .cost-fold-actions{display:flex;gap:6px}
:root body .cost-market-filter{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
:root body .cost-market-btn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;background:transparent;border:1px solid #262626;border-radius:999px;color:var(--text);font-size:13px;line-height:1;cursor:pointer;white-space:nowrap}
:root body .cost-market-btn:hover{background:#1A1A1A}
:root body .cost-market-btn.is-active{background:#EDEDED;border-color:#EDEDED;color:#0A0A0A}
:root body .cost-market-btn.is-active:hover{background:#FFFFFF}
:root body .cost-market-code{font-family:var(--font-mono);font-weight:500;letter-spacing:.04em}
:root body .cost-market-code.is-all{font-family:var(--font-sans);letter-spacing:0}
:root body .cost-market-num{font-family:var(--font-mono);color:var(--text-2)}
:root body .cost-market-btn.is-active .cost-market-num{color:#3A3A3A}
:root body .cost-market-missing{font-size:13px;color:var(--warn)}
:root body .cost-market-btn.is-active .cost-market-missing{color:#7A5C00}
:root body .cost-page .btn.cost-small-btn{min-height:32px;padding:0 12px;font-size:13px}
:root body .cost-cell-main{display:flex;align-items:flex-start;gap:8px}
:root body .cost-toggle{flex:0 0 auto;width:26px;height:26px;margin-top:-1px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid var(--line);border-radius:6px;color:var(--text-2);font-size:13px;line-height:1;cursor:pointer}
:root body .cost-toggle:hover{background:#1A1A1A;color:var(--text)}
:root body .cost-toggle-spacer{flex:0 0 26px}
:root body .cost-row-product.is-open td{background:#141414}
:root body .cost-row-product .cost-name{font-weight:600}
:root body .cost-row-option td{background:#0D0D0D}
:root body .cost-row-option td:first-child{padding-left:46px}
:root body .cost-option-cell{border-left:1px solid var(--line);padding-left:12px;display:flex;align-items:flex-start;gap:10px}
:root body .cost-option-text{min-width:0}
:root body .cost-thumb{flex:0 0 auto;display:inline-block;overflow:hidden;border-radius:8px;background:#262626;border:1px solid var(--line);box-sizing:border-box}
:root body .cost-thumb img{display:block;width:100%;height:100%;object-fit:cover}
:root body .cost-thumb-48{width:48px;height:48px}
:root body .cost-thumb-32{width:32px;height:32px;border-radius:6px}
:root body .cost-thumb-120{width:120px;height:120px;border-radius:10px}
:root body .cost-thumb.is-empty{background:#1F1F1F}
:root body .cost-thumb-spacer{flex:0 0 32px;width:32px}
:root body .cost-edit-image{margin-bottom:12px}
:root body .cost-row-product .cost-toggle,:root body .cost-row-single .cost-toggle-spacer{margin-top:11px}
:root body .cost-badge-sub{margin-left:6px}
:root body .cost-dup-text{color:var(--warn)}
:root body .cost-table tbody tr.is-selected td{background:rgba(76,141,255,.08)}
:root body .cost-table tbody tr.is-selected td:first-child{box-shadow:inset 2px 0 0 var(--accent)}
:root body .cost-name{display:block;color:var(--text);font-weight:500}
:root body .cost-sub{display:block;color:var(--text-2);font-size:13px}
:root body .cost-sub-sched{color:var(--warn);font-family:var(--font-sans)}
:root body .cost-sku{display:block;margin-top:2px;font-family:var(--font-mono);font-size:13px;color:var(--text-2)}
:root body .cost-date{font-family:var(--font-mono);color:var(--text-2);white-space:nowrap}
:root body .cost-muted{color:#6B6B6B}
:root body .cost-empty{text-align:center;color:var(--text-2);padding:36px 12px!important}
:root body .cost-market{display:inline-block;margin:0 4px 4px 0;padding:1px 7px;border:1px solid var(--line);border-radius:999px;font-family:var(--font-mono);font-size:13px;color:var(--text)}
:root body .cost-badge{display:inline-block;padding:1px 8px;border-radius:999px;font-size:13px;font-weight:500;font-family:var(--font-sans);white-space:nowrap}
:root body .cost-badge-warn{background:var(--warn-bg);border:1px solid #3A2F0B;color:var(--warn)}
:root body .cost-badge-info{background:rgba(76,141,255,.1);border:1px solid rgba(76,141,255,.3);color:var(--accent)}
:root body .cost-price{color:var(--text)}
:root body .cost-alert{background:var(--warn-bg);border:1px solid #3A2F0B;color:var(--warn);border-radius:10px;padding:10px 14px;margin-bottom:12px;font-size:13px}
:root body .cost-edit-placeholder{margin:0;color:var(--text-2);font-size:13px;text-align:center;padding:40px 0}
:root body .cost-edit-over{margin:0 0 4px;font-family:var(--font-mono);font-size:13px;letter-spacing:.08em;color:var(--text-2)}
:root body .cost-edit-card h2{margin:0;font-size:17px;line-height:1.4}
:root body .cost-edit-model{margin:2px 0 0;color:var(--text-2);font-size:13px}
:root body .cost-edit-key{margin:8px 0 12px;font-size:13px;color:var(--text-2)}
:root body .cost-edit-key code{font-family:var(--font-mono);color:var(--text);word-break:break-all}
:root body .cost-now{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}
:root body .cost-now>div{background:var(--bg);padding:10px 12px}
:root body .cost-now span{display:block;font-size:13px;color:var(--text-2)}
:root body .cost-now strong{display:block;font-family:var(--font-mono);font-size:17px;font-weight:500;color:var(--text)}
:root body .cost-now strong.is-missing{color:var(--warn);font-family:var(--font-sans)}
:root body .cost-scheduled{margin:8px 0 0;font-size:13px;color:var(--warn)}
:root body #cost-form{margin-top:16px;display:grid;gap:12px}
:root body .cost-field span{display:block;margin-bottom:5px;font-size:13px;color:var(--text-2)}
:root body .cost-field input{width:100%;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font-size:14px;box-sizing:border-box}
:root body .cost-field input:focus{border-color:#4A4A4A;outline:none}
:root body #cost-price,:root body #cost-weight,:root body #cost-start{font-family:var(--font-mono)}
:root body .cost-actions{display:flex;gap:8px;flex-wrap:wrap}
:root body .cost-actions .btn{flex:1 1 auto}
:root body .cost-actions .btn:disabled{opacity:.45;cursor:not-allowed}
:root body .cost-hint{margin:-4px 0 0;font-size:13px;color:var(--text-2)}
:root body .cost-message{margin:0;min-height:20px;font-size:13px;color:var(--text-2)}
:root body .cost-message.is-error,:root body .cost-error-text{color:var(--err)}
:root body .cost-message.is-ok{color:var(--ok)}
:root body .cost-history-title{margin:22px 0 8px;font-size:14px;font-weight:600}
:root body .cost-history{list-style:none;margin:0;padding:0;max-height:320px;overflow:auto;border-top:1px solid var(--line)}
:root body .cost-history li{padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
:root body .cost-history-main strong{font-family:var(--font-mono);font-weight:500}
:root body .cost-history-meta{color:var(--text-2);font-family:var(--font-mono);font-size:13px}
:root body .cost-history-memo{color:var(--text);margin-top:2px}
}
@media screen and (max-width:760px){
  :root body .cost-market-filter{flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;-webkit-overflow-scrolling:touch}
  :root body .cost-market-btn{flex:0 0 auto}
  :root body .cost-count{margin-left:0}
}
@media screen and (max-width:1100px){
  :root body .cost-layout{grid-template-columns:1fr}
  :root body .cost-edit-card{position:static}
}

/* ---------- cost source label (원가 관리 연결) ---------- */
:root body .discount-cost-source{display:block;margin-top:4px;font-size:13px;line-height:1.35;color:#A1A1A1;max-width:220px}
:root body .discount-cost-source.is-registry{color:#3DD68C}
:root body .discount-cost-source.is-manual{color:#4C8DFF}
:root body .discount-cost-source.is-missing{color:#FCD34D}

/* ---------- 13. Export sales report (/vat-export) ---------- */
@media screen{
:root body .vat-page{max-width:1500px;margin:0 auto}
:root body .vat-page [hidden]{display:none!important}
:root body .vat-head h1{margin:0 0 6px;font-size:24px}
:root body .vat-head p{margin:0 0 12px;color:var(--text-2);font-size:13px}
:root body .vat-temp-note{margin:0 0 16px;padding:10px 14px;border:1px solid #3A2F0E;border-radius:10px;background:var(--warn-bg);color:var(--warn);font-size:13px}
:root body .vat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
:root body .vat-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin-bottom:16px;min-width:0}
:root body .vat-grid .vat-card{margin-bottom:0}
:root body .vat-card h2{margin:0 0 12px;font-size:16px}
:root body .vat-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
:root body .vat-field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--text-2);min-width:0}
:root body .vat-field input,:root body .vat-field select{height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font-size:13px;max-width:100%}
:root body .vat-help{margin:10px 0 0;font-size:13px;color:var(--text-2)}
:root body .vat-status{margin:8px 0 0;min-height:20px;font-size:13px;color:var(--text)}
:root body .vat-run-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
:root body .vat-run-pick{flex:1 1 360px}
:root body .vat-run-pick select{width:100%}
:root body .vat-page .btn[aria-disabled="true"]{opacity:.45;pointer-events:none}
:root body .vat-meta-list{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px 24px;font-size:13px}
:root body .vat-meta-list span{color:var(--text-2);margin-right:8px}
:root body .vat-meta-list b{font-weight:500}
:root body .vat-temp-inline{margin:8px 0 0;font-size:13px;color:var(--warn)}
:root body .vat-hometax{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin:16px 0;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
:root body .vat-hometax span{font-size:13px;color:var(--text-2)}
:root body .vat-hometax strong{font-family:var(--font-mono);font-size:24px;font-weight:600;color:var(--ok)}
:root body .vat-hometax small{font-size:13px;color:var(--text-2)}
:root body .vat-markets{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-bottom:16px}
:root body .vat-market{border:1px solid var(--line);border-radius:10px;padding:12px 14px}
:root body .vat-market header{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:13px}
:root body .vat-market header b{font-family:var(--font-mono)}
:root body .vat-market header span{color:var(--text-2)}
:root body .vat-market ul{list-style:none;margin:0;padding:0}
:root body .vat-market li{display:grid;grid-template-columns:1fr auto;gap:0 8px;padding:6px 0;border-top:1px solid var(--line);font-size:13px}
:root body .vat-market li span{color:var(--text-2)}
:root body .vat-market li b{font-family:var(--font-mono);font-weight:500;text-align:right}
:root body .vat-market li small{grid-column:1 / -1;color:var(--text-2);font-family:var(--font-mono);font-size:13px}
:root body .vat-market li.is-picked span,:root body .vat-market li.is-picked b{color:var(--ok)}
:root body .vat-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
:root body .vat-tabs button{height:32px;padding:0 12px;background:transparent;border:1px solid var(--line);border-radius:999px;color:var(--text);font-size:13px;cursor:pointer}
:root body .vat-tabs button:hover{background:#1A1A1A}
:root body .vat-tabs button.is-active{background:#EDEDED;border-color:#EDEDED;color:#0A0A0A}
:root body .vat-tabs button b{font-family:var(--font-mono);font-weight:500;margin-left:4px}
:root body .vat-table-wrap{overflow:auto;max-height:calc(100vh - 220px);border:1px solid var(--line);border-radius:10px}
:root body .vat-table{width:100%;min-width:1100px;border-collapse:collapse}
:root body .vat-table th{position:sticky;top:0;z-index:1;background:var(--panel);color:var(--text-2);border-bottom:1px solid var(--line);font-size:13px;font-weight:500;text-align:left;padding:9px 10px;white-space:nowrap}
:root body .vat-table td{border-bottom:1px solid var(--line);font-size:13px;padding:9px 10px;vertical-align:top;white-space:nowrap}
:root body .vat-table .num{text-align:right;font-family:var(--font-mono);font-variant-numeric:tabular-nums}
:root body .vat-table .mono{font-family:var(--font-mono)}
:root body .vat-table td.vat-notes{white-space:normal;min-width:240px;color:var(--text-2)}
:root body .vat-table tr.is-diff td:nth-child(3),:root body .vat-table tr.is-diff td:nth-child(4){color:var(--warn)}
:root body .vat-empty{text-align:center;color:var(--text-2)}
}
@media screen and (max-width:900px){
  :root body .vat-grid{grid-template-columns:1fr}
}
@media screen{
:root body .vat-hometax-alt{margin:-8px 0 16px;padding:0 16px;font-size:13px;color:var(--text-2)}
:root body .vat-hometax-alt b{font-family:var(--font-mono);font-weight:600;color:var(--warn);margin:0 10px 0 6px}
:root body .vat-market-alt{margin:8px 0 0;padding-top:8px;border-top:1px dashed var(--line);font-size:13px;color:var(--text-2)}
:root body .vat-market-alt b{float:right;font-family:var(--font-mono);font-weight:500;color:var(--warn)}
}
@media screen{
:root body #multimarket-panel,:root body #multimarket-calc-panel{color:var(--text)}
:root body .mm-table th{color:var(--text-2);border-bottom:1px solid var(--line)}
:root body .mm-table td{padding:10px;border-bottom:1px solid var(--line);vertical-align:top;color:var(--text);font-size:13px;line-height:1.6}
:root body #mm-calc-margin{background:var(--bg);color:var(--text)}
:root body .mm-variant{margin-bottom:12px;padding-bottom:10px;border-bottom:1px dashed var(--line);line-height:1.75;color:var(--text-2)}
:root body .mm-variant:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}
:root body .mm-variant-name{font-weight:700;color:var(--text);margin-bottom:2px}
:root body .mm-num{font-family:var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text)}
:root body .mm-reason{margin-top:6px;font-size:13px;line-height:1.5;color:var(--warn)}
:root body .mm-summary-reason{margin-top:6px;font-weight:500;line-height:1.5}
}
/* 가격 점검 */
:root body .pc-page{max-width:1500px;margin:0 auto}
:root body .pc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:12px;flex-wrap:wrap}
:root body .pc-head h1{margin:0 0 6px;font-size:24px}
:root body .pc-head p{margin:0;color:var(--text-2);font-size:13px;max-width:760px}
:root body .pc-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
:root body .pc-margin{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text-2)}
:root body .pc-margin input{width:72px;height:34px;background:#0A0A0A;border:1px solid #262626;border-radius:8px;color:var(--text);font-family:var(--font-mono);padding:0 8px;text-align:right}
:root body .pc-note{margin:0 0 14px;color:var(--text-2);font-size:13px}
:root body .pc-progress{margin:0 0 14px;padding:12px 14px;background:#111111;border:1px solid #262626;border-radius:10px}
:root body .pc-progress-text{font-size:13px;color:var(--text);margin-bottom:8px;font-family:var(--font-mono)}
:root body .pc-progress-bar{height:6px;background:#1A1A1A;border-radius:999px;overflow:hidden}
:root body .pc-progress-bar span{display:block;height:100%;width:0;background:#4C8DFF;transition:width .2s}
:root body .pc-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
:root body .pc-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px 16px;background:#111111;border:1px solid #262626;border-radius:12px;color:var(--text);text-align:left;font:inherit}
:root body button.pc-card{cursor:pointer}
:root body button.pc-card:hover{background:#161616}
:root body .pc-card span{font-size:13px;color:#A1A1A1}
:root body .pc-card span a{color:#4C8DFF;margin-left:6px;text-decoration:none}
:root body .pc-card strong{font-size:26px;font-family:var(--font-mono);font-weight:600}
:root body .pc-card.is-loss strong{color:#FF6B6B}
:root body .pc-card.is-below strong{color:#FCD34D}
:root body .pc-card.is-ok strong{color:#3DD68C}
:root body .pc-card.is-missing strong{color:#A1A1A1}
:root body .pc-list-card{background:#111111;border:1px solid #262626;border-radius:12px;overflow:hidden}
:root body .pc-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border-bottom:1px solid #262626}
:root body .pc-filter{display:flex;gap:6px;flex-wrap:wrap}
:root body .pc-toolbar input[type=search]{height:32px;min-width:200px;flex:1;background:#0A0A0A;border:1px solid #262626;border-radius:8px;color:var(--text);padding:0 10px;font-size:13px}
:root body .pc-count{color:#A1A1A1;font-size:13px;font-family:var(--font-mono)}
:root body .pc-table-wrap{overflow:auto;max-height:calc(100vh - 330px)}
:root body .pc-table{width:100%;min-width:1080px;border-collapse:collapse}
:root body .pc-table th{position:sticky;top:0;z-index:1;background:#111111;color:#A1A1A1;border-bottom:1px solid #262626;font-size:13px;font-weight:500;text-align:left;padding:10px 12px;white-space:nowrap}
:root body .pc-table td{border-bottom:1px solid #262626;font-size:13px;padding:10px 12px;vertical-align:middle;color:#EDEDED}
:root body .pc-table .num{text-align:right;font-family:var(--font-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
:root body .pc-table .num small{color:#A1A1A1}
:root body .pc-row{cursor:pointer}
:root body .pc-row:hover td{background:#161616}
:root body .pc-empty{text-align:center;color:#A1A1A1;padding:40px 12px !important}
:root body .pc-thumb{display:block;width:40px;height:40px;border-radius:6px;object-fit:cover;background:#1A1A1A;border:1px solid #262626}
:root body .pc-name{max-width:420px;line-height:1.4}
:root body .pc-option{color:#A1A1A1;margin-top:2px}
:root body .pc-tag{display:inline-block;margin-left:4px;padding:2px 6px;border-radius:999px;background:#1C170A;color:#FCD34D;font-size:12px;white-space:nowrap}
:root body .pc-status{display:inline-block;padding:3px 8px;border-radius:999px;font-size:13px;white-space:nowrap;border:1px solid #262626}
:root body .pc-status.is-loss,:root body .pc-margin-cell.is-loss{color:#FF6B6B}
:root body .pc-status.is-below,:root body .pc-margin-cell.is-below{color:#FCD34D}
:root body .pc-status.is-ok,:root body .pc-margin-cell.is-ok{color:#3DD68C}
:root body .pc-status.is-error{color:#A1A1A1}
:root body .pc-action{white-space:nowrap}
:root body .pc-action.is-loss{color:#FF6B6B}
:root body .pc-action.is-below{color:#FCD34D}
:root body .pc-action.is-ok,:root body .pc-action.is-error{color:#A1A1A1}
@media (max-width:900px){:root body .pc-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
:root body .pc-cards{grid-template-columns:repeat(5,minmax(0,1fr))}
:root body .pc-card.is-restock strong{color:#FCD34D}
:root body .pc-status.is-unavailable{color:#A1A1A1;border-style:dashed}
:root body .pc-margin-cell.is-unavailable{color:#A1A1A1}
:root body .pc-action.is-unavailable{color:#A1A1A1}
:root body .pc-action.is-restock{color:#FCD34D;white-space:normal;max-width:280px}
:root body .pc-action.is-loss{white-space:normal;max-width:280px}
:root body .pc-stock-out{color:#FF6B6B}
:root body .pc-promo{font-size:13px;line-height:1.4;max-width:220px}
:root body .pc-promo .pc-tag{margin:4px 0 0}
:root body .pc-tag.is-gift{background:#0F1A2E;color:#4C8DFF}
:root body .pc-muted{color:#A1A1A1}
:root body .pc-table{min-width:1320px}
@media (max-width:1100px){:root body .pc-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){:root body .pc-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 가격 점검: 계산 내역 펼쳐 보기 */
:root body .pc-table{min-width:1240px}
:root body .pck-toggle{height:28px;padding:0 10px;background:#0A0A0A;border:1px solid #262626;border-radius:8px;color:#EDEDED;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
:root body .pck-toggle:hover{border-color:#4C8DFF;color:#4C8DFF}
:root body .pc-row.is-open td{background:#161616}
:root body .pck-detail > td{background:#0A0A0A;padding:12px 16px 16px !important}
:root body .pck-box{max-width:560px;margin-left:auto}
:root body .pck-table{width:100%;border-collapse:collapse}
:root body .pck-table td{border-bottom:1px solid #1A1A1A;padding:6px 8px;font-size:13px;color:#EDEDED}
:root body .pck-local{color:#A1A1A1 !important}
:root body .pck-note{color:#A1A1A1;font-size:13px;margin-left:4px}
:root body .pck-line.is-plus td:last-child{color:#3DD68C}
:root body .pck-line.is-total td{border-top:1px solid #262626;border-bottom:0;font-weight:600;color:#3DD68C}
:root body .pck-line.is-total.is-neg td{color:#FF6B6B}
:root body .pck-foot{margin-top:8px;color:#A1A1A1;font-size:13px;text-align:right}
/* 가격 점검: 품절 표시·숨기기 */
:root body .pc-tag.is-soldout{background:#1A1A1A;color:#A1A1A1;border:1px solid #262626}
:root body .pc-check{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#EDEDED;white-space:nowrap;cursor:pointer}
:root body .pc-check input{accent-color:#4C8DFF;width:14px;height:14px}
/* 할인가 수정: 창·기록 화면 */
:root body .dw-dialog{width:min(980px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:0;background:#111111;color:#EDEDED;border:1px solid #262626;border-radius:12px}
:root body .dw-dialog::backdrop{background:rgba(0,0,0,.7)}
:root body .dw-box{display:flex;flex-direction:column;gap:12px;padding:20px;font-size:14px}
:root body .dw-head{display:flex;align-items:center;justify-content:space-between}
:root body .dw-head h2{margin:0;font-size:18px;color:#EDEDED}
:root body .dw-close{background:transparent;border:0;color:#A1A1A1;font-size:22px;cursor:pointer}
:root body .dw-sub,:root body .dw-note{margin:0;color:#A1A1A1;font-size:13px}
:root body .dw-input-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
:root body .dw-input-row input,:root body .dw-settings input[type=number]{width:120px;height:34px;padding:0 10px;background:#0A0A0A;border:1px solid #262626;border-radius:8px;color:#EDEDED;font-family:'Geist Mono',monospace;font-size:14px}
:root body .dw-table-wrap{overflow-x:auto}
:root body .dw-table{width:100%;min-width:760px;border-collapse:collapse}
:root body .dw-table th{background:#111111;color:#A1A1A1;font-size:13px;font-weight:500;text-align:left;padding:8px;border-bottom:1px solid #262626}
:root body .dw-table td{padding:10px 8px;border-bottom:1px solid #1A1A1A;font-size:13px;vertical-align:top}
:root body .dw-table .num{text-align:right;font-family:'Geist Mono',monospace;white-space:nowrap}
:root body .dw-option{color:#A1A1A1}
:root body .dw-table .is-loss{color:#FF6B6B}
:root body .dw-table .is-below{color:#FCD34D}
:root body .dw-table .is-ok{color:#3DD68C}
:root body .dw-warn{padding:10px 12px;background:#1C170A;border:1px solid #3A2F0B;border-radius:8px;color:#FCD34D;font-size:13px}
:root body .dw-ok{padding:10px 12px;background:rgba(61,214,140,.08);border:1px solid rgba(61,214,140,.3);border-radius:8px;color:#3DD68C;font-size:13px}
:root body .dw-confirm-below{display:flex;gap:8px;align-items:flex-start;color:#FCD34D;font-size:13px}
:root body .dw-confirm-below input{accent-color:#FCD34D}
:root body .dw-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}
:root body .dw-link{color:#4C8DFF;font-size:13px}
:root body .dw-foot .btn[disabled]{opacity:.4;cursor:not-allowed}
:root body .dw-edit-btn{margin-top:6px}
:root body .dw-settings{display:flex;flex-direction:column;gap:12px;padding:16px;margin-bottom:16px}
:root body .dw-settings-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px;font-size:13px}
:root body .dw-label{display:inline-flex;align-items:center;gap:8px;color:#A1A1A1;font-size:13px}
:root body .dw-switch{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#EDEDED}
:root body .dw-switch input{accent-color:#4C8DFF;width:16px;height:16px}
:root body .dw-state{padding:2px 10px;border-radius:999px;font-size:13px;border:1px solid #262626}
:root body .dw-state.is-on{color:#3DD68C;border-color:rgba(61,214,140,.4)}
:root body .dw-state.is-off{color:#A1A1A1}
:root body .dw-log-table{min-width:1100px}
:root body .dw-msg{max-width:260px;color:#A1A1A1;font-size:13px}
:root body .dw-status{font-size:13px}
:root body .dw-status.is-success{color:#3DD68C}
:root body .dw-status.is-failed{color:#FF6B6B}
:root body .dw-status.is-unknown,:root body .dw-status.is-unverified,:root body .dw-status.is-pending{color:#FCD34D}
:root body .dw-dialog [hidden],:root body .dw-page [hidden]{display:none!important}
:root body .pc-cost-dialog{width:min(560px,calc(100vw - 32px))}
:root body .pc-cost-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
:root body .pc-cost-grid label{display:flex;flex-direction:column;gap:6px;color:#A1A1A1;font-size:13px}
:root body .pc-cost-grid input{height:34px;padding:0 10px;background:#0A0A0A;border:1px solid #262626;border-radius:8px;color:#EDEDED;font-family:'Geist Mono',monospace;font-size:14px;color-scheme:dark}
:root body .pc-cost-grid input#pcc-memo{font-family:'Noto Sans KR',sans-serif}
@media (max-width:520px){:root body .pc-cost-grid{grid-template-columns:1fr}}
:root body .pc-group-head td{background:#0E0E0E;border-top:1px solid #262626;padding-top:12px;padding-bottom:8px}
:root body .pc-group-box{position:sticky;left:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;max-width:calc(100vw - 120px)}
:root body .pc-group-cost{font-family:'Geist Mono','Noto Sans KR',monospace;font-size:13px;color:#A1A1A1;white-space:nowrap}
:root body .pc-sub-row td:first-child{border-left:2px solid #262626}
:root body .pc-sub-name{color:#A1A1A1;font-size:13px;max-width:320px;line-height:1.4}
:root body .pc-row.is-dim td{opacity:.45}
:root body .pc-row.is-dim:hover td{opacity:.8}
:root body .pc-first-box{display:flex;align-items:center;gap:8px}
:root body .pc-sel{accent-color:#4C8DFF;width:16px;height:16px;flex:none;cursor:pointer}
:root body .pc-page.has-selbar{padding-bottom:88px}
:root body .pc-selbar{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:50;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;width:max-content;max-width:calc(100vw - 32px);padding:12px 16px;background:#111111;border:1px solid #4C8DFF;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.6);color:#EDEDED;font-size:14px}
:root body .pc-selbar[hidden]{display:none}
:root body .pc-selbar .btn[disabled]{opacity:.4;cursor:not-allowed}
:root body .pc-sel-note{flex-basis:100%;color:#FCD34D;font-size:13px}
:root body .pc-sel-note:empty{display:none}
:root body .dw-foot-btns{display:flex;flex-wrap:wrap;gap:8px}
:root body .dw-batch-table{min-width:820px}
:root body .dw-batch-input{width:110px;height:32px;padding:0 8px;background:#0A0A0A;border:1px solid #262626;border-radius:8px;color:#EDEDED;font-family:'Geist Mono',monospace;font-size:14px;text-align:right}
:root body .dw-batch-input[disabled]{opacity:.5}
:root body .dw-row-problem{color:#FF6B6B;font-size:13px;line-height:1.4}
:root body .dw-row-ok{color:#3DD68C;font-size:13px}
:root body .dw-row-problems{max-width:300px}
:root body .dw-close[disabled]{opacity:.3;cursor:not-allowed}
@media (max-width:520px){:root body .pc-selbar{left:16px;right:16px;bottom:12px;transform:none;width:auto;max-width:none}}
:root body .dw-row-warn{color:#FCD34D;font-size:13px;line-height:1.4}
:root body .dw-input-row input#dw-target,:root body .dw-input-row input#dwb-target{width:80px}
:root body .dw-input-row label{display:inline-flex;align-items:center;gap:6px;color:#A1A1A1;font-size:13px}
:root body .dw-input-row label[hidden],:root body .dw-input-row .btn[hidden]{display:none}
:root body .dw-table{min-width:880px}
:root body .dw-progress{display:flex;flex-direction:column;gap:6px;padding:10px 12px;background:#0A0A0A;border:1px solid #262626;border-radius:8px}
:root body .dw-progress-text{font-family:'Geist Mono','Noto Sans KR',monospace;font-size:13px;color:#EDEDED}
:root body #dw-active:not(:empty){margin-bottom:16px}
:root body .nav-badge{margin-left:auto;min-width:20px;padding:1px 7px;border-radius:999px;background:rgba(255,107,107,.15);border:1px solid rgba(255,107,107,.45);color:#FF6B6B;font-family:'Geist Mono',monospace;font-size:12px;text-align:center}
:root body .nav-badge[hidden]{display:none}
:root body .de-table{min-width:980px}
:root body .de-options{min-width:900px}
:root body .de-left{font-family:'Geist Mono','Noto Sans KR',monospace;white-space:nowrap}
:root body .de-left.is-loss{color:#FF6B6B;font-weight:600}
:root body .de-left.is-below{color:#FCD34D;font-weight:600}
:root body .de-bad{color:#FF6B6B}
:root body .de-tag{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;border:1px solid #262626;white-space:nowrap}
:root body .de-tag.is-ready{color:#3DD68C;border-color:rgba(61,214,140,.4)}
:root body .de-tag.is-gap{color:#FCD34D;border-color:#3A2F0B;background:#1C170A}
:root body .de-tag.is-none{color:#A1A1A1}
:root body .de-options .is-loss{color:#FF6B6B}
:root body .de-options .is-below{color:#FCD34D}
:root body .de-options .is-ok{color:#3DD68C}
:root body .pe-home{margin-bottom:24px}
:root body .pe-home-all{color:#4C8DFF;font-size:13px;white-space:nowrap}
:root body .pe-home-loading,:root body .pe-home-empty{padding:16px 0;color:#A1A1A1;font-size:13px}
:root body .pe-home-foot a,:root body .pe-home-more a{color:#4C8DFF;font-size:13px}
:root body .pe-home-foot{margin-top:8px}
:root body .pe-home-more{margin-top:8px;color:#A1A1A1;font-size:13px}
:root body .pe-table-wrap{overflow-x:auto}
:root body .pe-table{width:100%;min-width:760px;border-collapse:collapse}
:root body .pe-table th{color:#A1A1A1;font-size:13px;font-weight:500;text-align:left;padding:8px;border-bottom:1px solid #262626;background:transparent}
:root body .pe-table td{padding:9px 8px;border-bottom:1px solid #1A1A1A;font-size:13px;vertical-align:middle;color:#EDEDED}
:root body .pe-table .num{text-align:right;white-space:nowrap}
:root body .pe-full{min-width:1100px}
:root body .pe-row.is-red td:first-child{box-shadow:inset 3px 0 0 #FF6B6B}
:root body .pe-row.is-yellow td:first-child{box-shadow:inset 3px 0 0 #FCD34D}
:root body .pe-row.is-red .pe-left{color:#FF6B6B;font-weight:600}
:root body .pe-row.is-yellow .pe-left{color:#FCD34D;font-weight:600}
:root body .pe-row.is-acked td{opacity:.5}
:root body .pe-left{font-family:'Geist Mono','Noto Sans KR',monospace}
:root body .pe-name{max-width:320px;line-height:1.4;color:#EDEDED}
:root body a.pe-name{color:#4C8DFF}
:root body .pe-tag{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;border:1px solid #262626;white-space:nowrap}
:root body .pe-tag.is-next{color:#3DD68C;border-color:rgba(61,214,140,.4)}
:root body .pe-tag.is-none{color:#A1A1A1}
:root body .pe-tag.is-low{margin-top:4px;color:#FCD34D;border-color:#3A2F0B;background:#1C170A}
:root body .pe-low{color:#FCD34D;font-weight:600}
:root body .pe-tag.is-some{color:#FCD34D;border-color:#3A2F0B;background:#1C170A}
:root body .pc-tag.is-exempt{background:#0F2418;color:#3DD68C}
:root body .ce-home{margin-bottom:16px}
:root body .ce-alert{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:9px 12px;margin-top:6px;border-radius:8px;font-size:13px;color:#EDEDED;border:1px solid #262626}
:root body .ce-alert.is-yellow{background:#1C170A;border-color:#3A2F0B}
:root body .ce-alert.is-yellow b{color:#FCD34D}
:root body .ce-alert.is-red{background:#1F0F0F;border-color:#4A1F1F}
:root body .ce-alert.is-red b{color:#FF6B6B}
:root body .ce-alert small{color:#A1A1A1}
:root body .ce-table{width:100%;min-width:1100px;border-collapse:collapse}
:root body .ce-table th{color:#A1A1A1;font-size:13px;font-weight:500;text-align:left;padding:8px;border-bottom:1px solid #262626;background:transparent}
:root body .ce-table td{padding:9px 8px;border-bottom:1px solid #1A1A1A;font-size:13px;vertical-align:middle;color:#EDEDED}
:root body .ce-table input[type=date],:root body .ce-table input[type=number],:root body .ce-table select{background:#0A0A0A;color:#EDEDED;border:1px solid #262626;border-radius:6px;padding:4px 6px;font-size:13px}
:root body .ce-table input[type=number]{width:76px;font-family:'Geist Mono','Noto Sans KR',monospace}
:root body .ce-num{font-family:'Geist Mono','Noto Sans KR',monospace;white-space:nowrap}
:root body .ce-state{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;border:1px solid #262626;white-space:nowrap;color:#A1A1A1}
:root body .ce-state.is-active{color:#3DD68C;border-color:rgba(61,214,140,.4)}
:root body .ce-state.is-soon{color:#FCD34D;border-color:#3A2F0B;background:#1C170A}
:root body .ce-state.is-ended{color:#FF6B6B;border-color:#4A1F1F}
:root body .ce-state.is-pending{color:#4C8DFF;border-color:#1E3157}
:root body .ce-reason{color:#A1A1A1;font-size:13px;max-width:280px;line-height:1.4}
:root body .ce-actions{display:flex;gap:12px;align-items:center;margin-top:12px;flex-wrap:wrap}
:root body .ce-msg{font-size:13px;color:#A1A1A1}
:root body .ce-msg.is-error{color:#FF6B6B}
:root body .ce-home[hidden]{display:none}
:root body .pc-status.is-exception{color:#A1A1A1;background:#1A1A1A;border-color:#262626}
:root body .pc-margin-cell.is-exception{color:#A1A1A1}
:root body .pc-row.is-exception td{color:#A1A1A1}
:root body .pc-row.is-exception .pc-name,:root body .pc-row.is-exception .pc-option{color:#A1A1A1}
:root body .pc-ref-note{display:block;margin-top:2px;color:#A1A1A1;font-size:12px;font-weight:400;font-family:'Noto Sans KR',sans-serif}
:root body .pc-exc-reason{color:#A1A1A1;font-size:13px;cursor:help;border-bottom:1px dotted #262626}
/* 할인 설정 화면(/discount-settings): 탭, 스위치 꺼짐 안내, 할인에 없는 행 */
:root body .ds-tabs{display:flex;gap:4px;margin:0 0 16px;border-bottom:1px solid #262626;overflow-x:auto}
:root body .ds-tab{padding:10px 14px;color:#A1A1A1;font-size:14px;text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px}
:root body .ds-tab:hover{color:#EDEDED}
:root body .ds-tab.is-active{color:#EDEDED;border-bottom-color:#4C8DFF;font-weight:600}
:root body .ds-panel[hidden],:root body .ds-off[hidden],:root body .ds-sel-all[hidden]{display:none!important}
:root body .ds-off{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px 16px;margin-bottom:12px;background:#1C170A;border:1px solid #3A2F0B;border-radius:10px;color:#FCD34D;font-size:14px}
:root body .ds-off span{color:#A1A1A1;font-size:13px;flex:1;min-width:200px}
:root body .ds-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}
:root body .ds-table{min-width:980px}
:root body .ds-sel-col{width:36px}
:root body .ds-row{cursor:default}
:root body .ds-row.is-off td{color:#A1A1A1}
:root body .ds-row.is-off .pc-name,:root body .ds-row.is-off .pc-option{color:#A1A1A1}
:root body .ds-row.is-off .pc-margin-cell{opacity:.6}
:root body .ds-off-note{display:inline-block;max-width:220px;color:#A1A1A1;font-size:13px;line-height:1.4}
:root body .ds-tags{margin-top:4px;display:flex;flex-wrap:wrap;gap:4px}
:root body .ds-tags .pc-tag{margin-left:0}
:root body .ds-disc{min-width:140px;font-size:13px}
@media (max-width:640px){
  :root body .ds-tab{padding:10px 10px;font-size:13px}
  :root body .ds-controls .btn{flex:1 1 auto}
  :root body .ds-page .pc-toolbar input[type=search]{min-width:0;width:100%;flex-basis:100%}
  :root body .ds-page .pc-filter{overflow-x:auto;max-width:100%}
  :root body .ds-page .pc-table-wrap{max-height:none}
}
/* 송장 일괄 출력: 안 뽑은 송장 전체 출력 + 출력 기록 */
:root body .sp-panel{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
:root body .sp-title{font-size:17px;color:#EDEDED}
:root body .sp-sub{margin:4px 0 0;color:#A1A1A1;font-size:13px;line-height:1.6}
:root body .sp-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
:root body .sp-actions [hidden],:root body .sp-panel [hidden]{display:none!important}
:root body .sp-big{min-height:52px;padding:0 24px;font-size:16px;font-weight:600}
:root body .sp-small{min-height:30px;padding:0 10px;font-size:13px}
:root body .sp-progress{display:flex;flex-direction:column;gap:6px;padding:10px 12px;background:#0A0A0A;border:1px solid #262626;border-radius:8px;font-size:13px;color:#EDEDED}
:root body .sp-progress-bar{height:6px;background:#1A1A1A;border-radius:999px;overflow:hidden}
:root body .sp-progress-bar span{display:block;height:100%;width:10%;background:#4C8DFF;transition:width .3s}
:root body .sp-summary{font-size:15px;color:#EDEDED}
:root body .sp-region{padding:12px 0;border-top:1px solid #262626}
:root body .sp-region h3{margin:0 0 8px;font-size:15px;color:#EDEDED}
:root body .sp-region h3 span{color:#A1A1A1;font-weight:400;font-size:13px}
:root body .sp-table-wrap{overflow-x:auto}
:root body .sp-table{width:100%;border-collapse:collapse;font-size:13px}
:root body .sp-table th{text-align:left;color:#A1A1A1;font-weight:500;padding:6px 8px;border-bottom:1px solid #262626;white-space:nowrap}
:root body .sp-table td{padding:7px 8px;border-bottom:1px solid #1A1A1A;color:#EDEDED;vertical-align:top}
:root body .sp-mono{font-family:'Geist Mono',monospace}
:root body .sp-new{color:#3DD68C}
:root body .sp-empty{color:#A1A1A1;text-align:center;padding:16px}
:root body .sp-printed{margin-top:8px}
:root body .sp-printed summary{cursor:pointer;color:#A1A1A1;font-size:13px}
:root body .sp-pick{accent-color:#4C8DFF;width:16px;height:16px}
:root body .sp-fails{margin:8px 0 0;padding-left:18px;font-size:13px;line-height:1.6}
:root body .sp-msg-cell{max-width:360px;color:#A1A1A1;font-size:13px;word-break:break-all}
:root body .sp-status.is-done{color:#3DD68C}
:root body .sp-status.is-partial,:root body .sp-status.is-running{color:#FCD34D}
:root body .sp-status.is-error{color:#FF6B6B}
@media (max-width:640px){:root body .sp-big{width:100%}:root body .sp-actions .btn{flex:1 1 auto}}
:root body .sp-doc{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;white-space:nowrap;border:1px solid #262626}
:root body .sp-doc.is-none{color:#A1A1A1;background:#1A1A1A}
:root body .sp-doc.is-created{color:#FCD34D;background:#1C170A;border-color:#3A2F0B;cursor:help}
:root body .sp-doc.is-error{color:#FF6B6B;border-color:rgba(255,107,107,.4);cursor:help}
:root body .sp-reason{display:block;margin-top:2px;color:#FF6B6B;font-size:12px;max-width:280px;word-break:break-all}
:root body .sp-selcount{font-size:15px;color:#EDEDED}
:root body .sp-all{margin-left:12px;font-size:13px;font-weight:400;color:#A1A1A1;display:inline-flex;align-items:center;gap:6px}
:root body .sp-region-all{accent-color:#4C8DFF;width:16px;height:16px}
/* 새 상품 마무리 */
:root body .np-bulk{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border-bottom:1px solid #262626;font-size:13px;color:#A1A1A1}
:root body .np-bulk strong{color:#EDEDED;font-size:14px}
:root body .np-bulk label{display:inline-flex;align-items:center;gap:6px}
:root body .np-bulk input,:root body .np-in{height:32px;width:110px;background:#0A0A0A;border:1px solid #262626;border-radius:8px;color:#EDEDED;padding:0 8px;font-size:13px;font-family:var(--font-mono);text-align:right}
:root body .np-in.np-w{width:84px}
:root body .np-in:disabled{color:#A1A1A1;opacity:.7}
:root body .np-note{margin:0;padding:10px 12px;border-bottom:1px solid #262626}
:root body .np-hint{margin-top:4px;color:#A1A1A1;font-size:12px;font-family:inherit;white-space:nowrap}
:root body .np-sel-col{width:36px}
:root body .np-sel-col input,:root body #np-sel-all{accent-color:#4C8DFF;width:16px;height:16px}
:root body .np-group td{background:#0E0E0E;border-top:1px solid #262626}
:root body .np-mk{display:inline-block;margin:0 4px 4px 0;padding:2px 6px;border:1px solid #262626;border-radius:6px;font-size:12px;font-family:var(--font-mono)}
:root body .np-date{font-family:var(--font-mono);white-space:nowrap}
:root body .np-muted{color:#A1A1A1}
:root body .np-nodisc{color:#FCD34D;font-size:13px}
:root body .np-row.is-saved td{background:#0C130F}
:root body .np-saved-row td{background:#0C130F}
:root body .np-saved{display:grid;gap:8px}
:root body .np-ok{color:#3DD68C;font-weight:500}
:root body .np-err{color:#FF6B6B}
:root body .np-link{color:#4C8DFF;text-decoration:none}
:root body .np-price-table{border-collapse:collapse;min-width:520px}
:root body .np-price-table th,:root body .np-price-table td{padding:6px 10px;border-bottom:1px solid #262626;font-size:13px;text-align:left}
:root body .np-price-table .num{text-align:right;font-family:var(--font-mono)}
:root body .np-rec{color:#3DD68C}
/* 대량 등록 만들기 */
:root body .lb-box{display:grid;gap:12px;margin-bottom:16px}
:root body .lb-row{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
:root body .lb-row label,:root body .lb-grid label,:root body .lb-field{display:grid;gap:6px;font-size:13px;color:#A1A1A1}
:root body .lb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:end}
:root body .lb-page input[type=text],:root body .lb-page input[type=number],:root body .lb-page select,:root body .lb-page textarea{min-height:36px;background:#0A0A0A;border:1px solid #262626;border-radius:8px;color:#EDEDED;padding:6px 10px;font-size:13px;font-family:inherit}
:root body .lb-page textarea{resize:vertical;line-height:1.6}
:root body .lb-page .np-in{min-height:32px;padding:0 8px;font-family:var(--font-mono)}
:root body .lb-page .lb-sku{width:170px;text-align:left}
:root body .lb-page input.is-bad{border-color:#FF6B6B}
:root body .lb-counter{font-family:var(--font-mono);font-size:12px;color:#A1A1A1}
:root body .lb-counter.is-bad{color:#FF6B6B}
:root body .lb-editor{display:grid;gap:14px}
:root body .lb-ed-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
:root body .lb-ed-head h2{margin:0;font-size:20px}
:root body .lb-ed-head small{margin-left:8px;color:#A1A1A1;font-size:13px;font-family:var(--font-mono);font-weight:400}
:root body .lb-ed-actions{display:flex;gap:8px}
:root body .lb-card{background:#111111;border:1px solid #262626;border-radius:12px;padding:16px;display:grid;gap:12px}
:root body .lb-fixed{font-size:13px;color:#A1A1A1;padding-bottom:8px}
:root body .lb-fixed strong{color:#EDEDED}
:root body .lb-err{padding:12px 14px;background:#1A0E0E;border:1px solid #4A1F1F;border-radius:10px;color:#FF6B6B;font-size:13px}
:root body .lb-err ul,:root body .lb-err-list{margin:6px 0 0;padding-left:18px;line-height:1.7}
:root body .lb-ok{color:#3DD68C}
:root body .lb-pad{padding:10px 12px}
:root body .lb-photos{display:grid;grid-template-columns:auto 1fr;gap:20px}
:root body .lb-label{font-size:13px;color:#A1A1A1;margin-bottom:6px}
:root body .lb-thumbs{display:flex;gap:8px;flex-wrap:wrap}
:root body .lb-thumb{position:relative;display:inline-block;width:96px;height:96px}
:root body .lb-thumb img{width:96px;height:96px;object-fit:cover;border-radius:8px;border:1px solid #262626;background:#1A1A1A}
:root body .lb-x{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:999px;border:1px solid #262626;background:#0A0A0A;color:#EDEDED;cursor:pointer;line-height:18px;padding:0}
:root body .lb-drop{display:flex;align-items:center;justify-content:center;width:96px;height:96px;padding:6px;border:1px dashed #3A3A3A;border-radius:8px;color:#A1A1A1;font-size:12px;text-align:center;cursor:pointer;background:#0E0E0E}
:root body .lb-drop.is-over{border-color:#4C8DFF;color:#4C8DFF}
:root body .lb-drop-file{width:auto;min-width:280px;height:40px}
:root body .lb-drop-sm{width:80px;height:36px}
:root body .lb-opt .lb-thumb,:root body .lb-opt .lb-thumb img{width:36px;height:36px}
:root body .lb-opt .lb-x{width:16px;height:16px;line-height:12px;font-size:11px;top:-6px;right:-6px}
:root body .lb-modes{display:flex;gap:16px;font-size:14px}
:root body .lb-tier{display:grid;gap:8px;padding:12px;border:1px solid #262626;border-radius:10px}
:root body .lb-opts{display:grid;gap:6px}
:root body .lb-opt{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
:root body .lb-opt input[type=text]{width:240px}
:root body .lb-fillrow{font-size:13px;color:#A1A1A1}
:root body .lb-fillrow input{width:110px}
:root body .lb-table{min-width:980px}
:root body .lb-small-table{min-width:640px}
:root body .lb-actions{white-space:nowrap}
:root body .lb-actions .btn{margin-left:4px}
:root body .lb-danger{color:#FF6B6B}
:root body .lb-status{display:inline-block;padding:3px 8px;border-radius:999px;font-size:12px;border:1px solid #262626;color:#A1A1A1;white-space:nowrap}
:root body .lb-status.is-generated{color:#4C8DFF}
:root body .lb-status.is-uploaded{color:#3DD68C}
:root body .lb-problems summary{color:#FF6B6B;cursor:pointer;font-size:13px}
:root body .lb-problems ul{margin:6px 0 0;padding-left:16px;color:#FF6B6B;font-size:12px;line-height:1.6;max-width:360px}
@media (max-width:700px){:root body .lb-photos{grid-template-columns:1fr}:root body .lb-opt input[type=text]{width:100%}}
:root body .lb-editor[hidden],:root body .lb-page .pc-list-card[hidden],:root body .lb-page [hidden]{display:none!important}

/* 미끼 상품(손해 허용) 배지·상태 */
:root body .pc-tag.is-leader{color:#4C8DFF;background:#0F1A2E;border:1px solid #1E3A66}
:root body .pc-status.is-leader{color:#4C8DFF;background:#0F1A2E;border-color:#1E3A66}
:root body .pc-margin-cell.is-leader{color:#4C8DFF}
:root body .dw-table td.num.is-loss{color:#FF6B6B}
:root body #dw-loss-wrap,:root body #dwb-loss-wrap{color:#FCD34D;background:#1C170A}

/* 리스팅 대기: 상세페이지 미리보기 틀 (2026-11-02) */
.lq-detail { border: 1px solid #262626; border-radius: 8px; background: #111111; }

/* 리스팅 대기: 왼쪽 정보 표가 상세 미리보기 밑으로 들어가지 않게(표 최소 폭 해제) · 상태 줄 (2026-11-03) */
:root body .lq-page .lq-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,380px);gap:18px;margin-top:12px;align-items:start}
:root body .lq-page .lq-info,:root body .lq-page .lq-preview{min-width:0}
:root body .lq-page .lq-info .pc-table{min-width:0;width:100%;table-layout:auto}
:root body .lq-page .lq-info .pc-table td{white-space:normal;overflow-wrap:anywhere}
:root body .lq-page .lq-info .pc-table th{position:static;width:96px}
:root body .lq-page .lq-warn{color:#FCD34D;background:#1C170A;border:1px solid #3A2F12;border-radius:8px;padding:10px 12px;font-size:13px}
:root body .lq-page .lq-pkg-status{font-size:13px;line-height:1.5}
@media (max-width:900px){:root body .lq-page .lq-grid{grid-template-columns:minmax(0,1fr)}}
/* 리스팅 대기: 사진 지우기·숨김 (2026-11-03) */
:root body .lq-page .lq-fig{position:relative}
:root body .lq-page .lq-img-del{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:50%;border:1px solid #262626;background:rgba(10,10,10,.85);color:#FF6B6B;font-size:16px;line-height:22px;cursor:pointer;padding:0}
:root body .lq-page .lq-img-del:hover{background:#FF6B6B;color:#0A0A0A}
:root body .lq-page .lq-fig-no{position:absolute;top:4px;left:4px;font-family:'Geist Mono',monospace;font-size:13px;color:#EDEDED;background:rgba(10,10,10,.75);border-radius:4px;padding:0 6px}
:root body .lq-page .lq-removed{border:1px dashed #262626;border-radius:8px;padding:10px;margin:0 0 14px}
:root body .lq-page .lq-small{padding:4px 10px;font-size:13px;min-height:0}
:root body .lq-page .lq-hidden{opacity:.65}
:root body .lq-page .lq-busy{outline:1px dashed #4C8DFF;outline-offset:2px}
:root body .lq-page .lq-img-del:disabled{opacity:.4;cursor:wait}

/* TW 번역 검수 (2026-11-06) */
.twt-table td { vertical-align: top; font-size: 13px; }
.twt-id { font-family: 'Geist Mono', monospace; white-space: nowrap; }
.twt-bad { color: #FF6B6B; }
.twt-ok { color: #3DD68C; }
.twt-warn { color: #FCD34D; background: #1C170A; border-radius: 6px; padding: 4px 6px; margin: 2px 0; }
.twt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.twt-pre { white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; background: #111111;
  border: 1px solid #262626; border-radius: 6px; padding: 8px; color: #EDEDED; font-family: 'Noto Sans KR', sans-serif; font-size: 13px; margin: 0; }
