/* ═══════════════ 小店管家 UI · Design Tokens ═══════════════ */
:root{
  /* 表面 */
  --paper:       #F6F7F4;  --surface:     #FFFFFF;  --surface-2:   #F1F3EF;  --surface-3:   #ECEEE9;
  /* 文字 */
  --ink-900:     #16201B;  --ink-700:     #36453C;  --ink-500:     #5E6B62;  --ink-400:     #8A938C;
  /* 分割线 */
  --line:        #E6E9E3;  --line-strong: #D8DCD4;
  /* 品牌（深青绿） */
  --brand:       #1F6B52;  --brand-700:   #185541;  --brand-50:    #EAF3ED;  --brand-100:   #D4E7DC;
  /* 暖橙 */
  --amber:       #B26A1E;  --amber-700:   #91560F;  --amber-50:    #FBF1E4;  --amber-100:   #F4DEC4;
  /* 危险 */
  --danger:      #B4452F;  --danger-50:   #F8EAE6;
  /* 兼容旧变量 */
  --good:        #1F6B52;  --warn:        #B26A1E;  --muted:       #5E6B62;  --ink:         #16201B;
  --bg:          #F6F7F4;  --panel:       #FFFFFF;  --blue:        #3975bb;
  /* 几何 */
  --r-sm:8px; --r-md:12px; --r-lg:16px;
  --shadow-sm:0 1px 2px rgba(22,32,27,.04); --shadow-md:0 4px 16px rgba(22,32,27,.06);
  --ease:cubic-bezier(.22,.61,.36,1);
  --side-w:252px; --top-h:60px;
}

/* ═══════════════ 基础重置 ═══════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:"PingFang SC","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--paper);color:var(--ink-900);-webkit-font-smoothing:antialiased;
  font-size:14px;line-height:1.5;
}
.num{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}
a{color:var(--brand-700);text-decoration:none}

/* ═══════════════ App 布局 ═══════════════ */
.app{display:grid;grid-template-rows:var(--top-h) 1fr;height:100vh}
.body{display:grid;grid-template-columns:var(--side-w) 1fr;min-height:0}

/* ═══════════════ 顶栏 ═══════════════ */
.topbar{
  display:flex;align-items:center;gap:12px;padding:0 22px;
  background:var(--surface);border-bottom:1px solid var(--line);z-index:30;
}
.brand{display:flex;align-items:center;gap:11px;padding-right:18px;border-right:1px solid var(--line);height:30px}
.brand-dot{
  width:26px;height:26px;border-radius:8px;background:var(--brand);
  display:grid;place-items:center;color:#fff;font-weight:700;font-size:14px;
}
.brand-name{font-weight:700;font-size:15px;letter-spacing:-.01em}
.badge-ver{
  font-size:11px;font-weight:500;color:var(--brand-700);background:var(--brand-50);
  padding:2px 7px;border-radius:6px;
}
.shop-switcher{
  display:flex;align-items:center;gap:6px;height:34px;padding:0 13px;
  border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface);
  font-size:13px;color:var(--ink-700);font-weight:500;cursor:pointer;
  font-family:inherit;min-width:120px;
}
.shop-switcher::before{
  content:"";width:8px;height:8px;border-radius:50%;
  background:var(--brand);flex-shrink:0;
}
.shop-switcher .shop-cur-name{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shop-switcher .shop-cur-currency{color:var(--amber-700);font-weight:600}
.topbar-spacer{flex:1}
.top-actions{display:flex;align-items:center;gap:8px}
.tbtn{
  display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 13px;
  border:1px solid var(--line-strong);background:var(--surface);border-radius:var(--r-sm);
  color:var(--ink-700);font:inherit;font-size:13px;font-weight:500;cursor:pointer;
  transition:all .16s var(--ease);white-space:nowrap;text-decoration:none;
}
.tbtn:hover{background:var(--surface-2);color:var(--ink-900)}
.tbtn svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.7}
.tbtn.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.tbtn.primary:hover{background:var(--brand-700)}
.top-actions a{text-decoration:none}
.mobile-nav-toggle,.mobile-nav-overlay,.mobile-drawer-head,.mobile-shop-context{display:none}

/* ═══════════════ 侧边栏 ═══════════════ */
.sidebar{
  background:var(--surface);border-right:1px solid var(--line);
  padding:18px 14px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;
}
.nav-group-label{
  font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ink-400);padding:16px 10px 6px;
}
.nav-item{
  display:flex;align-items:center;gap:11px;padding:9px 11px;
  border-radius:var(--r-sm);color:var(--ink-700);font-size:13.5px;font-weight:500;
  cursor:pointer;user-select:none;position:relative;
}
.nav-item svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.6;flex-shrink:0}
.nav-item:hover{background:var(--surface-2);color:var(--ink-900)}
.nav-item.active{background:var(--brand-50);color:var(--brand-700)}
.nav-item.active::before{
  content:"";position:absolute;left:-14px;top:9px;bottom:9px;width:3px;
  border-radius:0 3px 3px 0;background:var(--brand);
}
.nav-item .chev{margin-left:auto;width:14px;height:14px;stroke:var(--ink-400);transition:transform .2s var(--ease)}
.nav-item.has-sub.open .chev{transform:rotate(180deg)}
.sub{display:none}
.sub.open{display:block}
.sub .nav-item{padding-left:40px;font-size:13px;font-weight:500;color:var(--ink-500)}
.sub .nav-item:hover{color:var(--ink-900)}
.sub .nav-item.active{background:var(--brand-50);color:var(--brand-700)}

/* ═══════════════ 主内容区 ═══════════════ */
.main{overflow-y:auto;padding:26px 30px 40px}
.view{display:none}
.view.active{display:block}

/* ═══════════════ 通用组件 ═══════════════ */
.card{
  background:var(--surface);padding:18px;border-radius:var(--r-md);
  box-shadow:var(--shadow-sm);margin-bottom:18px;
  border:1px solid var(--line);
}
.card h2,.card h3{margin:0 0 14px;font-size:16px;color:var(--ink-900)}
.card h2 span{font-size:12px;color:var(--ink-500);font-weight:400;margin-left:5px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:13px;flex-wrap:wrap}
.toolbar h2{margin:0}
.toolbar .actions{display:flex;gap:8px;flex-wrap:wrap}
.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 13px}
.filters input{max-width:240px}
.inline{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--ink-700)}
.inline input{width:auto}

/* ═══════════════ 按钮 ═══════════════ */
button{
  cursor:pointer;border:1px solid transparent;border-radius:var(--r-sm);
  padding:8px 12px;background:var(--brand);color:#fff;font-weight:600;font:inherit;
  transition:all .15s var(--ease);
}
button:hover{background:var(--brand-700)}
button.ghost{background:var(--surface);color:var(--ink-700);border-color:var(--line-strong)}
button.ghost:hover{background:var(--surface-2);color:var(--ink-900)}
button.warn{background:var(--amber);color:#fff}
button.warn:hover{background:var(--amber-700)}
button.good{background:var(--brand);color:#fff}
button.good:hover{background:var(--brand-700)}
button.danger{background:var(--danger);color:#fff}
button.tiny{font-size:12px;padding:5px 8px}
.shipment-actions{display:inline-flex;align-items:center;gap:4px;flex-wrap:nowrap;white-space:nowrap}
.shipment-tracking-progress{display:inline-flex;flex:0 0 104px;width:104px;max-width:104px;overflow:hidden;flex-direction:column;align-items:flex-start;gap:2px;padding:0;border:0;background:transparent;color:inherit}
.shipment-tracking-progress .tag,.shipment-tracking-progress small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shipment-tracking-progress small{color:var(--ink-500);font-size:11px;line-height:1.1}
.tag.tracking-gray{background:#eef1ef;color:#68736d}
.tag.tracking-blue{background:#e7f1fb;color:#25669b}
.tag.tracking-orange{background:#fff0dc;color:#a85b08}
.tag.tracking-green{background:#e4f4e9;color:#167047}
.tag.tracking-red{background:#fde9e5;color:#b43c2b}
#view-shipped th:last-child,#view-shipped td:last-child{min-width:330px;white-space:nowrap}

/* ═══════════════ 表格 ═══════════════ */
.table-wrap{
  overflow:auto;border:1px solid var(--line);border-radius:var(--r-md);
  background:var(--surface);box-shadow:var(--shadow-sm);
}
table{width:100%;border-collapse:collapse;min-width:720px}
thead th{
  text-align:left;font-size:12px;font-weight:600;color:var(--ink-500);
  padding:13px 18px;background:var(--surface-2);border-bottom:1px solid var(--line);
  letter-spacing:.01em;white-space:nowrap;
}
tbody td{padding:14px 18px;border-bottom:1px solid var(--line);font-size:13.5px;vertical-align:middle}
tbody tr{transition:background .13s var(--ease)}
tbody tr:hover{background:var(--surface-2)}
tbody tr:last-child td{border-bottom:none}

/* ═══════════════ 标签 ═══════════════ */
.tag{
  display:inline-block;border-radius:100px;padding:3px 7px;
  background:var(--surface-2);color:var(--ink-500);font-size:12px;white-space:nowrap;
}
.tag.good{background:var(--brand-50);color:var(--brand-700)}
.tag.warn{background:var(--amber-50);color:var(--amber-700)}
.tag.danger{background:var(--danger-50);color:var(--danger)}

/* ═══════════════ 状态指示 ═══════════════ */
.muted{color:var(--ink-500);font-size:12px}
.empty{color:var(--ink-500);text-align:center;padding:28px!important}
.notice{
  padding:10px 12px;border-radius:var(--r-sm);background:var(--amber-50);
  color:var(--amber-700);margin:0 0 12px;
}

/* ═══════════════ 弹窗 ═══════════════ */
.modal{position:fixed;inset:0;z-index:100;background:rgba(22,32,27,.35);display:flex;align-items:center;justify-content:center;padding:16px}
.modal.hidden{display:none}
.modal-card{
  position:relative;width:min(1040px,100%);max-height:92vh;overflow:auto;
  background:var(--surface);border-radius:var(--r-lg);padding:24px;
  box-shadow:0 15px 55px rgba(22,32,27,.18);
}
.close{position:absolute;right:13px;top:11px;color:var(--ink-500);background:transparent;font-size:25px;padding:0;border:none}
.close:hover{background:transparent;color:var(--ink-900)}

/* ═══════════════ 表单 ═══════════════ */
.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.form-grid.two{grid-template-columns:repeat(2,1fr)}
label{display:grid;gap:5px;font-size:12px;color:var(--ink-700);font-weight:600}
input,select,textarea{
  width:100%;border:1px solid var(--line-strong);border-radius:var(--r-sm);
  padding:8px 9px;background:var(--surface);color:var(--ink-900);font:inherit;
}
textarea{resize:vertical;min-height:54px}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-50);
}
.form-title{font-size:19px;font-weight:750;margin:0 0 16px;color:var(--ink-900)}
.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}

/* ═══════════════ 商品行 ═══════════════ */
.item-row{display:grid;grid-template-columns:1.2fr .8fr .55fr .65fr 1fr 1.15fr 32px;gap:8px;margin-bottom:8px}
.item-row button{padding:0;background:var(--danger-50);color:var(--danger);border:1px solid transparent}
.item-row button:hover{background:#f0d8d4}
.item-row.edit-order-item{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.edit-order-item>select{field-sizing:content;width:auto;min-width:80px;max-width:240px;flex:0 1 auto;height:40px}
.edit-order-item>input{width:76px;min-width:0;flex:0 0 76px;height:40px}
.edit-order-item>.muted{flex:0 1 auto;white-space:normal;font-size:12px}
.edit-order-item>button{flex:0 0 32px;width:32px;height:36px}
#fulfillment-batch-form td:first-child label{display:flex;align-items:center;gap:10px}
#fulfillment-batch-form .fulfillment-selected{width:18px;height:18px;margin:0;flex:0 0 18px}

/* ═══════════════ 发货行 ═══════════════ */
.ship-line{display:grid;grid-template-columns:1.4fr auto 1.1fr .85fr 1.3fr;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.ship-box{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:8px;align-items:end;margin-top:12px}
.section-label{font-size:13px;font-weight:700;margin:18px 0 8px;color:var(--ink-900)}
.hint{font-size:12px;color:var(--ink-500);margin:5px 0 12px}
.check-list{display:grid;gap:6px}
.check-list label{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:400}
.check-list input{width:auto}
.split{display:grid;grid-template-columns:1.35fr .65fr;gap:18px}
.code{background:var(--ink-900);color:#e9eff4;padding:11px;border-radius:var(--r-sm);font:12px ui-monospace,Consolas,monospace;word-break:break-all}
.merge{padding:10px 0;border-bottom:1px solid var(--line)}
.merge:last-child{border:0}

/* ═══════════════ Toast ═══════════════ */
#toast{
  position:fixed;z-index:200;bottom:20px;right:20px;
  background:var(--ink-900);color:#fff;padding:11px 15px;border-radius:var(--r-sm);
  box-shadow:var(--shadow-md);opacity:0;transform:translateY(8px);
  pointer-events:none;transition:.2s var(--ease);
}
#toast.show{opacity:1;transform:none}

/* ═══════════════ 辅助 ═══════════════ */
.positive{color:var(--brand);font-weight:650}
.negative{color:var(--danger);font-weight:650}
.auto-field{background:var(--surface-2);color:var(--ink-500);border:1px dashed var(--line-strong);border-radius:var(--r-sm);padding:7px 9px;display:block;min-height:18px;cursor:default}
.auto-field:focus{outline:none;border-color:var(--line-strong)}
.xianyu-fixed-postage:disabled{background:var(--surface-2);color:var(--ink-500);border:1px dashed var(--line-strong);cursor:default;opacity:1}

/* ═══════════════ 网格布局 ═══════════════ */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}
.stat{
  padding:18px;background:var(--surface);box-shadow:var(--shadow-sm);border-radius:var(--r-md);
  border:1px solid var(--line);
}
.stat .number{font-size:28px;font-weight:700;margin-top:6px;color:var(--ink-900)}
.stat .label{font-size:13px;color:var(--ink-500)}

/* 总览 */
.dashboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 18px}
.dashboard-head h1{font-size:25px;line-height:1.2;letter-spacing:-.02em}
.dashboard-head p,.dashboard-section-head p{margin-top:5px;color:var(--ink-500);font-size:13px}
.dashboard-refresh{flex:0 0 auto}
.dashboard-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:18px}
.dashboard-stat{
  display:flex;align-items:center;gap:12px;min-width:0;padding:16px;text-align:left;
  background:var(--surface);color:var(--ink-900);border:1px solid var(--line);border-radius:var(--r-md);
  box-shadow:var(--shadow-sm);font:inherit;
}
.dashboard-stat:hover{background:var(--surface);border-color:var(--brand-100);box-shadow:var(--shadow-md);transform:translateY(-1px)}
.dashboard-stat-icon,.dashboard-todo-icon{
  display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;
  background:var(--surface-2);color:var(--ink-700);font-size:13px;font-weight:700;
}
.dashboard-stat-copy{display:flex;flex-direction:column;min-width:0}
.dashboard-stat .label{color:var(--ink-500);font-size:12px;white-space:nowrap}
.dashboard-stat strong{font-size:25px;line-height:1.18;margin:3px 0 2px;font-variant-numeric:tabular-nums}
.dashboard-stat small{color:var(--ink-400);font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-stat.is-positive .dashboard-stat-icon,.dashboard-todo.is-positive .dashboard-todo-icon{background:var(--brand-50);color:var(--brand-700)}
.dashboard-stat.is-warning .dashboard-stat-icon,.dashboard-todo.is-warning .dashboard-todo-icon{background:var(--amber-50);color:var(--amber-700)}
.dashboard-stat.is-danger .dashboard-stat-icon,.dashboard-todo.is-danger .dashboard-todo-icon{background:var(--danger-50);color:var(--danger)}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);gap:18px}
.dashboard-panel{margin-bottom:18px;padding:20px}
.dashboard-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}
.dashboard-section-head h2{margin:0;font-size:17px}
.dashboard-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px;margin-bottom:20px}
.dashboard-stage{
  position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;padding:13px 12px;text-align:left;
  background:var(--surface-2);color:var(--ink-700);border:1px solid var(--line);border-radius:10px;font:inherit;
}
.dashboard-stage:not(:last-child)::after{content:"→";position:absolute;right:-17px;top:50%;transform:translateY(-50%);color:var(--ink-400);font-weight:400}
.dashboard-stage:hover,.dashboard-route:hover{background:var(--brand-50);color:var(--brand-700);border-color:var(--brand-100)}
.dashboard-stage span{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-stage strong{font-size:23px;color:var(--ink-900);font-variant-numeric:tabular-nums}
.dashboard-stage.is-warning{background:var(--amber-50);border-color:var(--amber-100)}
.dashboard-stage.is-positive{background:var(--brand-50);border-color:var(--brand-100)}
.dashboard-route-title{padding-top:16px;border-top:1px solid var(--line);color:var(--ink-500);font-size:12px;font-weight:600}
.dashboard-routes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}
.dashboard-route{display:flex;align-items:baseline;gap:6px;padding:11px 12px;background:var(--surface);color:var(--ink-700);border:1px solid var(--line);font:inherit;text-align:left}
.dashboard-route span{margin-right:auto;font-size:12px}
.dashboard-route strong{font-size:18px;color:var(--ink-900);font-variant-numeric:tabular-nums}
.dashboard-route small{color:var(--ink-400);font-size:11px}
.dashboard-finance-list{display:grid;gap:0}
.dashboard-finance-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);color:var(--ink-500)}
.dashboard-finance-list strong{color:var(--ink-900);font-size:16px;font-variant-numeric:tabular-nums}
.dashboard-finance-list .dashboard-profit-row{padding-top:14px;color:var(--ink-900);font-weight:650}
.dashboard-finance-list .dashboard-profit-row strong{font-size:21px}
.dashboard-completeness{margin-top:16px;padding:14px;border-radius:10px;background:var(--surface-2)}
.dashboard-completeness>div:first-child{display:flex;justify-content:space-between;gap:10px;color:var(--ink-700);font-size:12px;font-weight:600}
.dashboard-progress{height:7px;margin:9px 0;border-radius:99px;background:var(--line-strong);overflow:hidden}
.dashboard-progress span{display:block;height:100%;border-radius:inherit;background:var(--brand)}
.dashboard-completeness p{color:var(--ink-500);font-size:11px;line-height:1.45}
.dashboard-todo-panel{padding:20px;margin-bottom:0}
.dashboard-todos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dashboard-todo{
  display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px;
  background:var(--surface);color:var(--ink-900);border:1px solid var(--line);font:inherit;text-align:left;
}
.dashboard-todo:hover{background:var(--surface-2);color:var(--ink-900);border-color:var(--line-strong)}
.dashboard-todo span:nth-child(2){display:flex;flex-direction:column;min-width:0}
.dashboard-todo b{font-size:12.5px}
.dashboard-todo small{margin-top:2px;color:var(--ink-500);font-size:11px}
.dashboard-todo>strong{color:var(--brand-700);font-size:11px;white-space:nowrap}

/* ═══════════════ 保留原有业务样式 ═══════════════ */
.filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
.filters input{width:240px;min-width:220px;max-width:none}
.filters select{min-width:150px}
.filters .inline{white-space:nowrap;min-width:max-content}
.inventory-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;overflow:visible}
.inventory-filters label{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:8px;white-space:nowrap}
.inventory-filters select{width:100%;min-width:0}
.order-filters{overflow-x:visible}
.order-filters input{width:190px;min-width:170px}
.order-filters select{min-width:118px}
.order-filters .inline.compact{gap:3px;font-size:12px;min-width:auto}
.order-filters .inline.compact input{width:14px;min-width:14px}
.order-filters .order-status-filter,.order-filters .order-group-filter{flex:0 0 104px;width:104px;min-width:104px;max-width:104px}
.order-filters .order-money-filter{flex:0 0 156px;width:156px;min-width:156px;max-width:156px}
.order-search{display:flex;align-items:stretch}
.order-search input{border-radius:var(--r-sm) 0 0 var(--r-sm)}
.order-search .search-button{min-width:38px;padding:0 10px;border-radius:0 var(--r-sm) var(--r-sm) 0;border-left:0;font-size:21px;line-height:1;color:var(--ink-500)}
.order-search .search-button:hover{color:var(--ink-900)}
.province-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:8px 0 14px}
.province-pick{border:1px solid var(--line);border-radius:var(--r-sm);padding:8px;background:var(--surface-2)}
.province-pick input{width:auto;min-width:0}
.province-pick.has-rule{background:var(--amber-50);border-color:var(--amber-100)}
.gift-tags{display:flex;gap:5px;flex-wrap:wrap;min-width:0;max-width:100%;margin-top:8px}
.gift-tags .tag{max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.25}
.bulk-price{max-width:120px}
.floating-ship{position:fixed;right:28px;bottom:28px;z-index:8;border-radius:999px;padding:12px 22px;box-shadow:0 6px 20px rgba(22,32,27,.22)}
.tag.issued-bonus{background:var(--brand-50);color:var(--brand-700)}
.tag.shipped{font-weight:600;background:var(--brand-50);color:var(--brand-700)}
.tag.partial-shipped{font-weight:600;background:var(--amber-50);color:var(--amber-700)}
.packing-candidate{box-shadow:none;border:1px solid var(--line)}
.pack-group-label,.pack-order-label,.pack-item-label{display:flex!important;align-items:center;gap:7px;width:auto;font-weight:400}
.pack-group-label{font-size:14px;font-weight:700}
.pack-order-label{font-size:13px;font-weight:650}
.pack-item-label{padding:4px 0 0 18px;font-size:13px}
.packing-candidate input.pack-group-cb,.packing-candidate input.pack-order-cb,.packing-candidate input.pack-item-cb{width:16px!important;height:16px;padding:0;margin:0;flex:0 0 16px;accent-color:var(--brand)}
.packing-address{margin:4px 0 7px 24px;font-size:12px}
.packing-order{margin:7px 0 0 24px}
.pack-item-label span{line-height:1.35}
.pack-unavailable-item{padding:4px 0 0 41px;font-size:13px;color:var(--ink-500)}
.pack-unavailable-item span{color:var(--amber-700)}
.table-sort-button{padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;font-weight:inherit}
.table-sort-button:hover{background:transparent;color:var(--brand-700)}
.bonus-picker{display:grid;gap:6px;max-height:330px;overflow:auto;border:1px solid var(--line);border-radius:var(--r-sm);padding:8px}
.bonus-product-row{display:grid;grid-template-columns:1.6fr 1fr;gap:8px;align-items:center;padding:6px;border-bottom:1px solid var(--line)}
.bonus-product-row:last-child{border-bottom:0}
tr.amount-error{background:var(--danger-50)}
.amount-overpaid{background:#fff4f3}
.new-order-item{grid-template-columns:1.25fr 1.25fr .75fr .55fr .7fr .85fr 1fr .45fr;align-items:end}
.new-order-item-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.new-order-item-label{display:block;font-size:12px;font-weight:600;line-height:1.3}
.new-order-item-field input,.new-order-item-field select{width:100%;min-width:0}
.new-order-item-remove{align-self:end;justify-self:start;padding:6px 10px;font-size:14px;line-height:1;border:1px solid var(--danger-50);background:var(--danger-50);color:var(--danger);border-radius:var(--r-sm);cursor:pointer;margin-bottom:2px}
.new-order-item-remove:hover{background:#f0d8d4}

/* ═══════════════ 订单表格 ═══════════════ */
:root{--orders-width-order:12ch;--orders-width-customer:17ch;--orders-width-items:38ch;--orders-width-money:20ch;--orders-width-profit:15ch;--orders-width-shipping:10ch;--orders-width-status:16ch;--orders-width-actions:12ch}
#view-orders .order-summary-table{table-layout:fixed;min-width:140ch}
#view-orders .order-summary-table col.order-col{width:var(--orders-width-order)}
#view-orders .order-summary-table col.customer-col{width:var(--orders-width-customer)}
#view-orders .order-summary-table col.items-col{width:var(--orders-width-items)}
#view-orders .order-summary-table col.money-col{width:var(--orders-width-money)}
#view-orders .order-summary-table col.profit-col{width:var(--orders-width-profit)}
#view-orders .order-summary-table col.shipping-col{width:var(--orders-width-shipping)}
#view-orders .order-summary-table col.status-col{width:var(--orders-width-status)}
#view-orders .order-summary-table col.actions-col{width:var(--orders-width-actions)}
#view-orders .order-summary-table th,#view-orders .order-summary-table td{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word;vertical-align:top}
#view-orders .table-wrap>table{table-layout:fixed;min-width:140ch}
#view-orders .table-wrap>table col.order-col{width:var(--orders-width-order)}
#view-orders .table-wrap>table col.customer-col{width:var(--orders-width-customer)}
#view-orders .table-wrap>table col.items-col{width:var(--orders-width-items)}
#view-orders .table-wrap>table col.money-col{width:var(--orders-width-money)}
#view-orders .table-wrap>table col.profit-col{width:var(--orders-width-profit)}
#view-orders .table-wrap>table col.shipping-col{width:var(--orders-width-shipping)}
#view-orders .table-wrap>table col.status-col{width:var(--orders-width-status)}
#view-orders .table-wrap>table col.actions-col{width:var(--orders-width-actions)}
#view-orders .table-wrap>table th,#view-orders .table-wrap>table td{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word;vertical-align:top}
#view-orders .order-summary-table .order-date,#view-orders .order-summary-table .customer-profile,#view-orders .order-summary-table .shop-name,#view-orders .order-summary-table .money-line,#view-orders .order-summary-table .cost-line,#view-orders .order-summary-table .shipping-fee-line,#view-orders .order-summary-table .postage-state,#view-orders .order-summary-table .status-blocked,#view-orders .order-summary-table .status-reason{display:block;margin-top:3px}
#view-orders .order-summary-table .customer-profile,#view-orders .order-summary-table .shop-name,#view-orders .order-summary-table .order-date{color:var(--ink-500);font-size:12px}
#view-orders .order-summary-table .set-group-orders{display:block;margin-top:3px;color:var(--ink-500);font-size:12px;overflow-wrap:anywhere}
#view-orders .order-summary-table .customer-orders-button{display:block;margin-top:6px;font-size:12px;line-height:1.25;padding:4px 6px}
#view-orders .order-summary-table .money-line{white-space:nowrap}
.order-summary-table .postage-state{color:var(--ink-500);font-size:12px}
.order-summary-table .status-blocked{font-weight:650;color:var(--danger)}
.order-summary-table .status-reason{font-size:12px;color:var(--ink-500)}

.view-load-state{
  display:flex;align-items:center;justify-content:center;gap:10px;min-height:180px;
  color:var(--ink-500);font-size:14px;
}
.view-load-spinner{
  width:18px;height:18px;border:2px solid var(--line-strong);border-top-color:var(--brand);
  border-radius:50%;animation:view-load-spin .7s linear infinite;
}
.view-load-error{max-width:560px;margin:24px auto;text-align:center}
.view-load-error p{margin:8px 0 16px;color:var(--ink-500)}
@keyframes view-load-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.view-load-spinner{animation:none;border-top-color:var(--line-strong)}}

@media(max-width:1320px){
  .dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-todos{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ═══════════════ 响应式 ═══════════════ */
@media(max-width:980px){
  .body{grid-template-columns:1fr}
  .topbar{position:relative;z-index:70;min-width:0;padding:0 10px;gap:8px}
  .brand{min-width:0;padding-right:10px}
  .top-actions{min-width:0;gap:4px}
  .top-actions .tbtn{padding:0 10px}
  .top-actions>.tbtn:not(.primary):not(:first-child),.top-actions>a{display:none}
  .mobile-nav-toggle{
    display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;padding:0;
    border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface);
    color:var(--ink-700);font:700 21px/1 inherit;cursor:pointer;
  }
  .mobile-nav-toggle:hover{background:var(--surface-2);color:var(--ink-900)}
  .sidebar{
    display:flex;position:fixed;z-index:60;top:var(--top-h);bottom:0;left:0;
    width:min(86vw,320px);padding:12px 14px 22px;
    transform:translateX(-104%);visibility:hidden;
    transition:transform .22s var(--ease),visibility 0s linear .22s;
  }
  body.mobile-nav-open{overflow:hidden}
  body.mobile-nav-open .sidebar{
    transform:translateX(0);visibility:visible;box-shadow:12px 0 30px rgba(22,32,27,.16);
    transition:transform .22s var(--ease),visibility 0s;
  }
  .mobile-nav-overlay{
    position:fixed;z-index:50;inset:var(--top-h) 0 0;border:0;padding:0;
    background:rgba(22,32,27,.38);cursor:pointer;
  }
  body.mobile-nav-open .mobile-nav-overlay{display:block}
  .mobile-drawer-head{
    display:flex;align-items:center;justify-content:space-between;min-height:40px;
    padding:0 4px 8px 10px;border-bottom:1px solid var(--line);margin-bottom:2px;
  }
  .mobile-drawer-head strong{font-size:15px}
  .mobile-drawer-head button{
    width:32px;height:32px;border:0;border-radius:var(--r-sm);background:transparent;
    color:var(--ink-500);font:400 25px/1 inherit;cursor:pointer;
  }
  .mobile-drawer-head button:hover{background:var(--surface-2);color:var(--ink-900)}
  .mobile-shop-context{
    display:grid;gap:8px;margin:10px 4px 6px;padding:10px;
    border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface-2);
  }
  .mobile-current-shop-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;color:var(--ink-500);font-size:12px}
  .mobile-current-shop-row strong{max-width:68%;color:var(--ink-900);text-align:right;overflow-wrap:anywhere}
  .mobile-shop-wall{
    width:100%;min-height:34px;border:1px solid var(--line-strong);border-radius:var(--r-sm);
    background:var(--surface);color:var(--brand-700);font:600 13px/1 inherit;cursor:pointer;
  }
  .mobile-shop-wall:hover{background:var(--brand-50)}
  .mobile-shop-picker{display:flex;flex-direction:column;gap:6px;color:var(--ink-700);font-size:12px;font-weight:600}
  .mobile-shop-picker select{
    width:100%;min-width:0;height:36px;padding:0 30px 0 10px;border:1px solid var(--line-strong);
    border-radius:var(--r-sm);background:var(--surface);color:var(--ink-900);font:500 13px/1 inherit;
  }
  .sidebar .sub{display:block}
  .sidebar .nav-item.has-sub .chev{display:none}
  .stats{grid-template-columns:repeat(2,1fr)}
  .dashboard-main-grid{grid-template-columns:1fr}
  .dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .main{padding:18px 14px 76px}
  .toolbar{align-items:flex-start}
  .toolbar .actions{justify-content:flex-end}
  .filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;align-items:stretch}
  .filters input,.filters select{width:100%;min-width:0;max-width:none}
  .filters .inline{min-width:0;white-space:normal}
  .inventory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-filters .order-status-filter,.order-filters .order-group-filter,.order-filters .order-money-filter{width:100%;min-width:0;max-width:none;flex:auto}
  table{min-width:620px}
  thead th,tbody td{padding-left:11px;padding-right:11px}
  .modal{padding:10px}
  .modal-card{width:100%;max-height:calc(100vh - 20px);padding:20px}
  .new-order-item{grid-template-columns:repeat(4,minmax(0,1fr))}
  .new-order-item-remove{justify-self:stretch}
  #view-orders .order-summary-table,#view-orders .table-wrap>table{min-width:0}
  #view-orders .responsive-table{display:block;width:100%}
  #view-orders .responsive-table colgroup,#view-orders .responsive-table thead{display:none}
  #view-orders .responsive-table tbody{display:grid;gap:10px;padding:10px;background:var(--paper)}
  #view-orders .responsive-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);overflow:hidden}
  #view-orders .responsive-table tbody td{display:block;min-width:0;padding:9px 10px;border:0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
  #view-orders .responsive-table tbody td::before{content:attr(data-label);display:block;margin-bottom:3px;color:var(--ink-400);font-size:10.5px;font-weight:600}
  #view-orders .responsive-table tbody td:nth-child(3),#view-orders .responsive-table tbody td:nth-child(4),#view-orders .responsive-table tbody td:nth-child(7),#view-orders .responsive-table tbody td:nth-child(8){grid-column:1/-1}
  #view-orders .responsive-table tbody tr.responsive-span-row{display:block}
  #view-orders .responsive-table tbody tr.responsive-span-row td{display:block}
}
@media(max-width:720px){
  .topbar{padding:0 14px}
  .brand-dot{width:22px;height:22px;font-size:12px}
  .brand-name{font-size:14px}
  .badge-ver{display:none}
  .shop-switcher{display:none}
  .top-actions .tbtn{font-size:12px;padding:0 8px;gap:3px}
  .top-actions .tbtn svg{width:14px;height:14px}
  .top-actions .tbtn:not(.primary):not(:nth-child(1)){display:none}
  .main{padding:14px 10px 76px}
  .stats{grid-template-columns:1fr 1fr;gap:9px}
  .dashboard-head{margin-bottom:14px}
  .dashboard-head h1{font-size:22px}
  .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .dashboard-stat{padding:12px;gap:9px}
  .dashboard-stat-icon{flex-basis:32px;width:32px;height:32px}
  .dashboard-stat strong{font-size:21px}
  .dashboard-main-grid{gap:0}
  .dashboard-panel,.dashboard-todo-panel{padding:14px}
  .dashboard-flow{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0}
  .dashboard-stage{min-width:0}
  .dashboard-stage:not(:last-child)::after{display:none}
  .dashboard-routes{grid-template-columns:1fr}
  .dashboard-todos{grid-template-columns:1fr}
  .stat{padding:13px}
  .stat .number{font-size:23px}
  .grid,.split{grid-template-columns:1fr}
  .card{padding:14px}
  .filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-filters label{grid-template-columns:auto minmax(0,1fr);gap:5px}
  .form-grid,.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
  .item-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .item-row input:first-child{grid-column:1/-1}
  .item-row button{min-height:36px}
  .new-order-item{grid-template-columns:repeat(2,minmax(0,1fr))}
  .new-order-item-field:first-child,.new-order-item-field:nth-child(2){grid-column:span 1}
  .new-order-item-remove{min-height:36px;margin:0}
  .ship-line,.ship-box{grid-template-columns:1fr}
  .modal-card{padding:19px 14px}
}
@media(max-width:820px){
  .table-wrap{overflow-x:hidden}
  .responsive-table{display:block;width:100%;min-width:0!important}
  .responsive-table colgroup,.responsive-table thead{display:none}
  .responsive-table tbody{display:grid;gap:9px;padding:9px;background:var(--paper)}
  .responsive-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);overflow:hidden}
  .responsive-table tbody tr:hover{background:var(--surface)}
  .responsive-table tbody td{display:block;min-width:0;padding:9px 10px;border:0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;word-break:break-word}
  .responsive-table tbody td::before{content:attr(data-label);display:block;margin-bottom:3px;color:var(--ink-400);font-size:10.5px;font-weight:600;line-height:1.25}
  .responsive-table tbody td:empty{display:none}
  .responsive-table tbody tr.responsive-span-row{display:block}
  .responsive-table tbody tr.responsive-span-row td{display:block;text-align:center}
  .responsive-table tbody tr.responsive-span-row td::before{display:none}
  #view-shipped th:last-child,#view-shipped td:last-child{min-width:0;white-space:normal}
  #view-shipped .responsive-table tbody td:nth-child(4),#view-shipped .responsive-table tbody td:last-child{grid-column:1/-1}
  .shipment-actions{display:flex;flex-wrap:wrap;white-space:normal}
  .shipment-tracking-progress{flex-basis:100%;width:100%;max-width:100%}
  .shipment-tracking-progress .tag,.shipment-tracking-progress small{max-width:100%}
  .form-actions{flex-wrap:wrap}
  .form-actions button{min-width:88px}
}
@media(max-width:480px){
  .topbar{gap:8px;padding:0 10px}
  .brand{padding-right:8px}
  .top-actions .tbtn:not(.primary),.top-actions a{display:none}
  .dashboard-refresh{padding:7px 9px;font-size:12px}
  .dashboard-stat small{display:none}
  .dashboard-todo{grid-template-columns:32px minmax(0,1fr) auto;padding:11px 10px}
  .dashboard-todo-icon{width:32px;height:32px;flex-basis:32px}
  .filters{grid-template-columns:1fr}
  .inventory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-filters label{display:block;font-size:0}
  .inventory-filters label select{font-size:13px}
  .form-grid,.form-grid.two{grid-template-columns:1fr}
  .form-grid>[style*="grid-column"]{grid-column:1!important}
  .new-order-item{grid-template-columns:1fr 1fr}
  .responsive-table tbody{padding:7px;gap:7px}
  .responsive-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}
  .responsive-table tbody td{padding:8px}
  .toolbar .actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .toolbar .actions button{width:100%;min-width:0}
  .form-actions{justify-content:stretch}
  .form-actions button{flex:1 1 auto}
}
/* 买家昵称建议列表 */
.customer-suggestions {
  position: absolute;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  max-height: 240px;
  overflow-y: auto;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.customer-suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid var(--surface-3);
}
.customer-suggestion-item:last-child{border-bottom:none}
.customer-suggestion-item:hover{background:var(--surface-2)}

/* Unified product editor: keeps dynamic sections readable on desktop/mobile. */
.modal-card:has(.product-editor){width:min(1500px,96vw);max-width:none;padding:24px}
.modal-card:has(#order-cost-form){width:min(1500px,96vw);max-width:none}
.purchase-group-filter{max-width:340px}
.purchase-cost-table{table-layout:fixed;width:100%}
.purchase-cost-table th:first-child{width:30%}
.purchase-cost-table th:nth-child(2){width:8%}
.purchase-cost-table th:nth-child(3){width:8%}
.purchase-cost-table th:nth-child(4){width:14%}
.purchase-cost-table th:nth-child(5){width:10%}
.purchase-cost-table th:nth-child(6){width:22%}
.purchase-cost-table th:last-child{width:8%}
.purchase-cost-table td{padding:10px 8px}
.purchase-cost-table input,.purchase-cost-table select{width:100%;min-width:0;height:38px;padding:8px}
.purchase-totals{display:grid;grid-template-columns:1fr auto 1fr 1fr 1fr;gap:12px;align-items:center}
@media(max-width:779px){.purchase-cost-table{min-width:850px}.purchase-totals{grid-template-columns:1fr 1fr}.modal-card:has(#order-cost-form){width:100%}}
.product-editor{width:100%;min-width:0;margin:auto}
.product-editor .pe-fields{border:0;padding:0;margin:0;min-width:0}
.product-editor .pe-section{border-bottom:1px solid var(--line,#dce3de);padding:14px 0}
.product-editor .pe-row{display:flex;flex-wrap:wrap;gap:16px 14px;align-items:flex-end;min-width:0}
.product-editor [data-bulk-panel]{display:grid;gap:14px;justify-items:start}
.product-editor .pe-bulk-field{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;max-width:100%}
.product-editor .pe-bulk-field>input[type=checkbox]{width:18px;height:18px;margin:0;grid-column:1;grid-row:1}
.product-editor .pe-bulk-field>input[type=number]{grid-column:2;grid-row:2}
.product-editor .pe-bulk-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:4px}
.bonus-entry-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:12px}
.bonus-entry-row label{flex:1 1 180px;min-width:0}
.bonus-entry-row button{flex:0 0 auto}
.product-editor .pe-row>*,.product-editor label{min-width:0;margin:0}
.product-editor .pe-field{--pe-width:220px;display:flex;flex-direction:column;gap:6px;width:var(--pe-width);flex:0 0 var(--pe-width);font-size:13px;line-height:20px}
.product-editor .pe-field-price{--pe-width:160px}
.product-editor .pe-field-number{--pe-width:180px}
.product-editor .pe-field-quantity{--pe-width:120px}
.product-editor .pe-field-factor,.product-editor .pe-field-status{--pe-width:140px}
.product-editor .pe-field-rule,.product-editor .pe-field-select{--pe-width:240px}
.product-editor .pe-field-date{--pe-width:220px}
.product-editor .pe-field-name{--pe-width:400px;flex:0 1 400px;min-width:320px}
.product-editor input:not([type=checkbox]):not([type=file]),.product-editor select{width:var(--pe-width,220px);max-width:100%;min-width:0;padding:8px 10px;height:38px;box-sizing:border-box}
.product-editor .pe-main-row{align-items:flex-start}
.product-editor .inline{flex:0 0 auto;white-space:nowrap;min-height:38px;display:flex;align-items:center;gap:8px}
.product-editor .pe-identity-row>button{flex:none;margin-bottom:2px}
.product-editor .pe-structure-switches{display:flex;align-items:flex-end;gap:16px 14px;flex-wrap:wrap}
.product-editor .pe-optional{margin:6px 0;font-size:13px}
.product-editor .pe-optional summary{cursor:pointer;color:var(--ink-500,#627167);padding:4px 0}
.product-editor .pe-help{font-size:12px;color:var(--ink-500,#627167);margin:6px 0}
.product-editor .pe-subsection{margin:10px 0;padding:10px;background:var(--bg,#f5f7f5);border-radius:6px}
.product-editor .pe-variant,.product-editor .pe-package{border-top:1px solid var(--line,#dce3de);padding:12px 0;margin:6px 0;min-width:0}
.product-editor .pe-routes{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:18px}
.product-editor .pe-route{min-width:0;padding:10px;background:var(--bg,#f5f7f5);border-radius:5px}
.product-editor .pe-route-row>.inline:first-child{width:150px}
.product-editor .pe-route-extra{padding:16px 0 0 164px}
.product-editor .pe-gift-row,.product-editor .pe-component-gift-row{margin:16px 0}
.product-editor .pe-procurement-row{margin:16px 0}
.product-editor .pe-components{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:8px 0}
.product-editor .pe-component{display:flex;align-items:center;gap:8px}
.product-editor .pe-component>label:not(.inline){--pe-width:70px;flex-basis:70px}
.product-editor .pe-gift-list{padding:6px 0}
.product-editor .pe-photo-cell{min-width:0;width:260px;flex:0 1 260px;font-size:13px;font-weight:600}
.product-editor .pe-photo-strip{display:flex;align-items:center;gap:8px;height:76px}
.product-editor .pe-photo-upload{position:relative;cursor:pointer;flex:none;border:1px dashed var(--line,#dce3de);border-radius:6px;padding:8px;font-size:12px;white-space:nowrap}
.product-editor .pe-photo-upload input{position:absolute;width:1px;height:1px;opacity:0}
.product-editor .pe-photos{display:flex;align-items:center;gap:6px;overflow-x:auto;min-width:0;max-height:76px}
.product-editor .pe-photos figure{position:relative;flex:none;width:68px;height:68px;margin:0}
.product-editor .pe-photos img{width:68px;height:68px;object-fit:cover;display:block;border-radius:5px}
.product-editor .pe-photos figcaption{position:absolute;bottom:0;left:0;right:0;display:flex;background:#ffffffdf;border-radius:0 0 5px 5px}
.product-editor .pe-photos button{padding:1px 4px;min-height:20px;flex:1;border-radius:2px;font-size:11px}
.product-editor .pe-error{color:#a82f24;background:#fff0ed;border-radius:8px;padding:12px;margin:16px 0;white-space:pre-wrap}
.product-editor textarea{width:100%;min-height:72px}
@media(min-width:769px) and (max-width:1200px){.product-editor .pe-route-extra{padding-left:0}}
@media(max-width:768px){.modal-card:has(.product-editor){width:100%;padding:20px 12px}.product-editor .pe-row{flex-direction:column;align-items:stretch}.product-editor .pe-field,.product-editor .pe-photo-cell{width:100%;min-width:0;flex:0 0 auto}.product-editor input:not([type=checkbox]):not([type=file]),.product-editor select{width:100%}.product-editor .form-grid.two{grid-template-columns:minmax(0,1fr)}.product-editor .pe-route-extra{padding-left:0}.product-editor .pe-structure-switches{gap:10px}.product-editor .pe-photo-strip{max-width:100%}}
