:root {
  --blue:#245fe5;
  --blue-dark:#194cc1;
  --ink:#17243c;
  --muted:#7b8698;
  --line:#e9edf3;
  --bg:#f5f7fb;
  --green:#16836b;
  --radius:12px;
  --sidebar:228px
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;
  font-size:14px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased
}

a {
  color:var(--blue);
  text-decoration:none
}

a:hover {
  color:var(--blue-dark)
}

button,input,select,textarea {
  font:inherit
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}

button {
  cursor:pointer
}

button:disabled {
  cursor:wait;
  opacity:.6
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #a7c3ff;
  outline-offset:2px
}

svg {
  width:20px;
  height:20px;
  flex-shrink:0;
  vertical-align:middle
}

h1,h2,h3,p {
  margin-top:0
}

h1 {
  font-size:28px;
  font-weight:650;
  letter-spacing:-.6px;
  line-height:1.35;
  margin-bottom:9px
}

h2 {
  font-size:16px;
  font-weight:650;
  margin-bottom:8px
}

h3 {
  font-size:14px;
  margin-bottom:16px
}

p {
  margin-bottom:16px
}

strong {
  font-weight:600
}

.muted {
  color:var(--muted);
  font-size:13px
}

.micro {
  font-size:12px;
  color:var(--muted)
}

.mono {
  font-family:"Cascadia Code",Consolas,"Microsoft YaHei",monospace;
  font-size:12px;
  font-variant-numeric:tabular-nums
}

.positive {
  color:var(--green)!important
}

.negative {
  color:#c35051!important
}

.bold {
  font-weight:650
}

.right {
  text-align:right
}

.center {
  text-align:center
}

.required {
  color:#d65b5b
}

.wide {
  width:100%
}

.subline {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:5px
}

.skip {
  position:absolute;
  left:-10000px
}

.skip:focus {
  left:20px;
  top:10px;
  z-index:100;
  background:white;
  padding:10px
}

.sidebar {
  position:fixed;
  width:var(--sidebar);
  height:100vh;
  background:#fff;
  border-right:1px solid var(--line);
  z-index:40;
  padding:0 16px;
  display:flex;
  flex-direction:column
}

.brand {
  height:92px;
  display:flex;
  align-items:center;
  padding:0 13px;
  gap:12px;
  color:var(--ink);
  font-size:23px;
  font-weight:700;
  letter-spacing:2px
}

.brand small {
  display:block;
  letter-spacing:1px;
  font-size:10px;
  font-weight:400;
  color:var(--muted);
  margin-top:1px
}

.brand-mark {
  width:39px;
  height:42px;
  border-radius:11px;
  background:var(--blue);
  color:white;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 5px 13px #245fe521
}

.brand-mark svg {
  width:24px;
  height:24px
}

.workspace {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:9px;
  padding:13px 10px;
  background:#fafbfd;
  margin:5px 2px 28px
}

.workspace-symbol {
  display:flex;
  align-items:center;
  justify-content:center;
  width:31px;
  height:31px;
  background:white;
  border:1px solid #e6eaf2;
  border-radius:7px;
  color:#66758d
}

.workspace strong {
  font-size:12px;
  display:block;
  max-width:130px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.workspace span:not(.workspace-symbol) {
  font-size:10px;
  color:var(--muted)
}

.nav-label {
  font-size:10px;
  letter-spacing:1.6px;
  color:#9aa4b3;
  padding:0 15px;
  margin-bottom:12px
}

.nav-item {
  display:flex;
  align-items:center;
  gap:12px;
  height:46px;
  margin:4px 0;
  padding:0 15px;
  border-radius:8px;
  color:#69758a;
  font-size:13px;
  font-weight:500
}

.nav-item:hover {
  background:#f5f8ff
}

.nav-item.active {
  color:var(--blue);
  background:#edf3ff;
  font-weight:650
}

.nav-item.active:after {
  content:"";
  height:17px;
  width:3px;
  border-radius:3px;
  background:var(--blue);
  margin-left:auto
}

.nav-dot {
  margin-left:auto;
  border:2px solid #b4c6ef;
  border-radius:50%;
  width:7px;
  height:7px
}

.nav-item.active .nav-dot {
  display:none
}

.sidebar-bottom {
  margin-top:auto;
  padding:28px 12px;
  color:#718099;
  font-size:11px
}

.sidebar-bottom small {
  display:block;
  font-size:10px;
  color:#a0a9b7;
  margin-top:7px
}

.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:#30ab8b;
  box-shadow:0 0 0 3px #30ab8b13;
  border-radius:50%;
  margin-right:8px
}

.shell {
  margin-left:var(--sidebar)
}

.topbar {
  height:70px;
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:0 34px;
  display:flex;
  justify-content:space-between;
  align-items:center
}

.breadcrumb {
  display:flex;
  align-items:center;
  gap:16px;
  font-size:12px;
  color:var(--muted)
}

.breadcrumb strong {
  color:#505d72;
  font-weight:500
}

.slash {
  color:#c6cbd5
}

.top-actions {
  display:flex;
  align-items:center;
  gap:20px
}

.top-actions form {
  margin:0
}

.local-label {
  font-size:9px;
  letter-spacing:1.2px;
  color:#9aa5b5;
  border:1px solid var(--line);
  border-radius:4px;
  padding:2px 6px
}

.user-chip {
  display:flex;
  align-items:center;
  gap:9px;
  border:0;
  background:none;
  color:#4b5870;
  font-size:12px;
  padding:0
}

.user-chip .muted {
  font-size:10px
}

.avatar {
  display:inline-flex;
  width:30px;
  height:30px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#eaf0fd;
  color:var(--blue);
  font-size:13px;
  text-transform:uppercase;
  font-weight:650
}

.mobile-menu {
  display:none!important
}

.main {
  max-width:1820px;
  margin:0 auto;
  padding:32px 34px 0
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:26px
}

.page-heading p {
  color:var(--muted);
  font-size:13px;
  margin:0
}

.eyebrow {
  font-size:9px;
  letter-spacing:1.8px;
  font-weight:600;
  color:#92a0b5;
  margin-bottom:9px
}

.heading-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0
}

.btn {
  display:inline-flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  border:1px solid #dfe5ee;
  border-radius:7px;
  background:#fff;
  color:#4b5b74;
  min-height:39px;
  padding:9px 16px;
  font-size:12px;
  font-weight:550;
  line-height:1.5;
  white-space:nowrap;
  transition:background .16s,border-color .16s,box-shadow .16s
}

.btn:hover {
  background:#f7f9fd;
  border-color:#c7d5eb;
  color:#244a8b
}

.btn svg {
  width:16px;
  height:16px
}

.btn.primary {
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
  box-shadow:0 3px 6px #245fe512
}

.btn.primary:hover {
  background:var(--blue-dark)
}

.btn.small {
  font-size:11px;
  min-height:31px;
  padding:6px 12px
}

.text-btn {
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:0;
  background:none;
  color:var(--blue);
  font-size:12px;
  padding:4px 0;
  cursor:pointer;
  white-space:nowrap
}

.icon-btn {
  background:none;
  border:0;
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:24px;
  padding:0;
  border-radius:5px
}

.icon-btn:hover {
  background:#f1f5fc
}

.disabled {
  pointer-events:none;
  opacity:.4
}

.stats {
  display:grid;
  gap:16px;
  margin-bottom:25px
}

.stats.five {
  grid-template-columns:repeat(5,minmax(0,1fr))
}

.stats.four {
  grid-template-columns:repeat(4,minmax(0,1fr))
}

.stat {
  border:1px solid #e8ecf3;
  border-radius:var(--radius);
  background:white;
  padding:20px 20px 17px;
  min-width:0;
  box-shadow:0 2px 5px #15213b02
}

.stat>span {
  font-size:12px;
  color:#6e7c93;
  display:block
}

.stat strong {
  display:block;
  font-size:29px;
  line-height:1.4;
  font-weight:600;
  letter-spacing:-.7px;
  margin-top:10px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap
}

.stat strong small {
  font-size:11px;
  color:#94a0b3;
  margin-left:6px;
  font-weight:400;
  letter-spacing:0
}

.stat strong.money {
  font-size:25px
}

.stat strong.money small {
  margin:0 5px 0 0;
  font-size:14px
}

.stat em {
  display:block;
  font-size:10px;
  color:#a0a9b7;
  font-style:normal;
  margin-top:8px;
  white-space:nowrap
}

.blue-stat {
  background:linear-gradient(120deg,#fafcff,#f0f5ff);
  border-color:#dce7ff
}

.blue-stat strong {
  color:var(--blue)
}

.balance-stat {
  background:#245fe5;
  border-color:#245fe5
}

.balance-stat>span,.balance-stat em,.balance-stat strong small {
  color:#c8d8ff
}

.balance-stat strong {
  color:white
}

.panel {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  margin-bottom:24px;
  overflow:hidden;
  box-shadow:0 2px 7px #1b2f4f02
}

.padded {
  padding:25px
}

.panel-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:21px 24px;
  gap:16px
}

.panel-toolbar h2 {
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0;
  font-size:14px
}

.panel-toolbar>div>.muted {
  display:block;
  font-size:11px;
  margin-top:4px
}

.count-pill {
  background:#f1f4f9;
  color:#73829b;
  border-radius:5px;
  font-size:10px;
  padding:2px 7px;
  font-weight:500
}

.total-inline {
  font-size:11px;
  color:var(--muted);
  white-space:nowrap
}

.total-inline strong {
  font-size:18px;
  color:var(--ink);
  font-weight:600;
  margin-left:10px;
  font-variant-numeric:tabular-nums
}

.filters {
  display:flex;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
  padding:22px 24px;
  background:#fff;
  border-bottom:1px solid var(--line)
}

label {
  display:block;
  font-size:12px;
  font-weight:500;
  color:#5c6b81;
  margin-bottom:18px
}

input:not([type=checkbox]):not([type=file]),select,textarea {
  width:100%;
  display:block;
  border:1px solid #e0e6ef;
  border-radius:6px;
  background:white;
  min-height:39px;
  padding:9px 11px;
  color:#35435b;
  font-size:12px;
  outline-offset:1px;
  margin-top:7px;
  transition:border-color .15s;
  box-shadow:0 1px 2px #10254702
}

input:hover,select:hover,textarea:hover {
  border-color:#bccae2
}

input::placeholder,textarea::placeholder {
  color:#a6aebc
}

select {
  padding-right:26px
}

textarea {
  min-height:90px;
  resize:vertical
}

.filters label {
  margin:0;
  min-width:115px;
  flex:1
}

.filters label span {
  font-size:11px
}

.filters .search-field {
  flex:1.8;
  min-width:210px
}

.filters input[type=date] {
  font-size:11px;
  min-width:132px
}

.filters .filter-actions {
  display:flex;
  align-items:center;
  gap:15px;
  padding-bottom:0
}

.filters .filter-checkbox {
  display:flex;
  align-items:center;
  flex:none;
  gap:8px;
  align-self:center;
  padding-top:20px;
  min-width:0
}

.check-label {
  display:flex;
  gap:9px;
  align-items:flex-start;
  line-height:1.8;
  font-size:12px
}

.check-label input {
  margin:4px 0 0;
  accent-color:var(--blue);
  width:15px;
  height:15px;
  flex-shrink:0
}

.table-wrap {
  overflow-x:auto
}

table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  white-space:nowrap
}

th {
  background:#fafbfd;
  color:#8a96a8;
  font-size:11px;
  font-weight:500;
  padding:12px 18px;
  border-bottom:1px solid var(--line);
  border-top:1px solid var(--line)
}

td {
  padding:18px;
  font-size:12px;
  border-bottom:1px solid #f0f3f7;
  vertical-align:middle;
  color:#56647a
}

td:first-child,th:first-child {
  padding-left:24px
}

td:last-child,th:last-child {
  padding-right:24px
}

tbody tr:hover:not(.detail-row) {
  background:#fcfdff
}

tbody tr:last-child td {
  border-bottom:0
}

.money-cell {
  font-family:"Segoe UI",Arial,sans-serif;
  font-variant-numeric:tabular-nums;
  font-size:13px;
  color:#4b5871
}

.product-cell {
  display:flex;
  gap:12px;
  align-items:center;
  min-width:210px
}

.thumb {
  width:58px;
  height:62px;
  border-radius:7px;
  border:1px solid var(--line);
  object-fit:contain;
  background:#fff;
  flex-shrink:0
}

.missing-thumb {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  color:#b1bbc9;
  background:#f8f9fc;
  gap:4px
}

.missing-thumb svg {
  width:20px;
  height:20px
}

.missing-thumb small {
  font-size:8px
}

.product-copy strong {
  color:#34425b;
  font-size:12px;
  display:block;
  white-space:normal;
  overflow:hidden;
  max-width:245px;
  min-width:125px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  line-height:1.65
}

.product-copy .subline {
  max-width:245px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  margin-top:4px;
  font-size:11px
}

.product-copy .micro {
  font-size:10px;
  color:#9aa5b7
}

.order-number {
  font-size:11px;
  color:#344b6f
}

.order-table td {
  padding-top:19px;
  padding-bottom:19px
}

.order-table td,.order-table th {
  padding-left:12px;
  padding-right:12px
}

.order-table td:first-child,.order-table th:first-child {
  padding-left:24px
}

.order-table td:last-child,.order-table th:last-child {
  padding-right:24px
}

.platform-tag {
  font-size:10px;
  border:1px solid #e6ebf4;
  background:#f9fafc;
  border-radius:4px;
  padding:1px 5px;
  color:#6e7f99;
  display:inline-block;
  margin-right:6px
}

.badge {
  display:inline-block;
  font-size:10px;
  line-height:1.6;
  padding:3px 8px;
  border-radius:4px;
  white-space:nowrap
}

.badge.success {
  color:#238975;
  background:#edf8f3
}

.badge.warning {
  color:#b28a33;
  background:#fdf7e9
}

.badge.danger {
  color:#bf5e60;
  background:#fdf0f0
}

.badge.neutral {
  color:#76859d;
  background:#f1f4f8
}

.detail-row>td {
  background:#f8faff;
  padding:24px!important;
  white-space:normal
}

.detail-grid {
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr;
  gap:30px
}

.detail-grid>div+div {
  border-left:1px solid #e5ecf6;
  padding-left:25px
}

.detail-grid h3 {
  font-size:12px;
  color:#536986;
  margin-bottom:13px
}

dl {
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:20px;
  row-gap:12px;
  margin:16px 0 24px;
  font-size:12px
}

dt {
  color:var(--muted)
}

dd {
  margin:0;
  color:#52627a;
  word-break:break-word
}

.detail-grid dl {
  row-gap:10px;
  column-gap:14px;
  margin-bottom:0;
  font-size:11px
}

.pagination {
  padding:17px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  color:#99a3b3;
  font-size:11px
}

.pagination>div {
  display:flex;
  align-items:center;
  gap:15px
}

.pagination strong {
  font-weight:500;
  color:#5b6d89
}

.page-number {
  color:#7b89a0;
  font-size:11px
}

.empty {
  padding:65px 25px 70px;
  text-align:center
}

.empty-icon {
  color:#90a9d5;
  background:#f1f5fd;
  border:1px solid #e7eef9;
  width:58px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  border-radius:12px;
  margin:0 auto 20px
}

.empty h3 {
  font-size:16px;
  color:#65758e;
  margin-bottom:9px
}

.empty p {
  font-size:12px;
  color:#a1aaba
}

.notice {
  border-radius:8px;
  margin-bottom:20px;
  padding:14px 17px;
  font-size:12px;
  border:1px solid transparent;
  line-height:1.8
}

.notice.success {
  color:#297d68;
  background:#eef9f4;
  border-color:#dcefe6
}

.notice.error {
  color:#b65c5b;
  background:#fff3f2;
  border-color:#f5dcda
}

.notice.info {
  color:#4f75b0;
  background:#eef5ff;
  border-color:#deebfe
}

.notice.warning {
  color:#987633;
  background:#fff9ed;
  border-color:#f3e7ca
}

.hint {
  background:#f6f8fc;
  border:1px solid #edf0f5;
  border-radius:7px;
  padding:12px 14px;
  font-size:11px;
  color:#8b97a9;
  line-height:1.9;
  margin-top:18px
}

.steps {
  display:flex;
  align-items:center;
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  padding:23px 30px;
  margin-bottom:24px;
  gap:24px
}

.steps>div {
  display:flex;
  align-items:center;
  gap:13px;
  flex-shrink:0
}

.steps b {
  display:flex;
  width:33px;
  height:33px;
  border-radius:50%;
  justify-content:center;
  align-items:center;
  color:#a2adbd;
  font-size:13px;
  background:#f3f5f8;
  font-weight:500
}

.steps span {
  font-size:12px;
  color:#8491a6
}

.steps small {
  display:block;
  font-size:10px;
  margin-top:3px;
  color:#a2adbd
}

.steps i {
  height:1px;
  background:#e9edf5;
  flex:1
}

.steps .current b {
  background:#edf3ff;
  color:var(--blue)
}

.steps .current span {
  color:var(--blue);
  font-weight:600
}

.steps .current small {
  font-weight:400
}

.import-grid {
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:24px
}

.import-grid>.panel {
  margin-bottom:24px
}

.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:22px
}

.upload-zone {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:220px;
  background:#f8faff;
  border:1px dashed #bccfee;
  border-radius:10px;
  padding:22px;
  gap:7px;
  margin-bottom:20px
}

.upload-icon {
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--blue);
  background:#edf3ff;
  border-radius:11px;
  margin-bottom:4px
}

.upload-icon svg {
  width:23px;
  height:23px
}

.upload-zone>span:not(.upload-icon) {
  color:#94a1b4;
  font-size:11px
}

.upload-zone small {
  font-size:10px;
  color:#a0adbf
}

.upload-zone input {
  font-size:11px;
  width:260px;
  color:#7d8eaa;
  margin:7px 0
}

.upload-zone input::file-selector-button {
  border:1px solid #dce5f7;
  border-radius:5px;
  background:#fff;
  color:var(--blue);
  padding:6px 10px;
  font-size:11px;
  margin-right:10px;
  cursor:pointer
}

.form-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center
}

.guide-icon {
  display:inline-flex;
  color:#7390bc;
  background:#f0f5fc;
  border-radius:9px;
  padding:10px;
  margin-bottom:15px
}

.guide-item {
  display:flex;
  gap:14px;
  margin-top:21px
}

.guide-item>b {
  font-size:10px;
  color:#b4bfd0;
  letter-spacing:1px;
  line-height:2
}

.guide-item strong {
  font-size:12px;
  color:#596f8f
}

.guide-item p {
  font-size:11px;
  color:#93a0b3;
  margin-top:6px;
  margin-bottom:0;
  line-height:1.9
}

.import-guide .hint {
  font-size:10px
}

.upload-progress {
  background:#edf4ff;
  color:#4e74b0;
  font-size:12px;
  padding:12px;
  margin-top:16px;
  border-radius:6px
}

.spinner {
  display:inline-block;
  width:14px;
  height:14px;
  border:2px solid #b2c9f4;
  border-top-color:var(--blue);
  border-radius:50%;
  animation:spin .8s linear infinite;
  vertical-align:middle;
  margin-right:7px
}

@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}

.back-link {
  font-size:11px;
  display:inline-block;
  margin-bottom:11px;
  color:#8b9ab0
}

.dot-separator {
  padding:0 8px;
  color:#b5bfce
}

.batch-label {
  float:right;
  font-size:10px;
  opacity:.8
}

.preview-grid {
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:24px
}

.fee-list {
  font-size:13px;
  row-gap:15px;
  margin-bottom:20px
}

.fee-list dd {
  text-align:right;
  font-size:16px;
  font-variant-numeric:tabular-nums;
  font-weight:550
}

.fee-list dt small {
  font-size:10px;
  display:block;
  color:#a4afbf;
  margin-top:2px
}

.fee-total {
  border-top:1px solid var(--line);
  padding-top:16px;
  color:var(--ink)
}

.fee-list dd.fee-total {
  font-size:23px;
  color:var(--blue);
  font-weight:600
}

.preview-grid .center {
  margin:12px 0 0
}

.preview-title {
  max-width:330px;
  min-width:220px;
  white-space:normal
}

.preview-title strong {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-weight:500
}

.panel-note {
  padding:13px 24px;
  font-size:11px;
  color:#94a1b6;
  background:#fafbfd;
  border-top:1px solid var(--line)
}

.product-summary {
  background:white;
  display:flex;
  gap:50px;
  align-items:center;
  border:1px solid var(--line);
  padding:24px 28px;
  border-radius:12px;
  margin-bottom:24px
}

.product-summary>div {
  display:flex;
  gap:16px;
  align-items:center
}

.summary-icon {
  width:47px;
  height:47px;
  border-radius:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#658dd3;
  background:#eff5ff
}

.summary-icon.amber {
  color:#c3a16b;
  background:#fcf7ed
}

.summary-icon svg {
  width:23px;
  height:23px
}

.product-summary strong {
  display:block;
  font-size:27px;
  line-height:1.25;
  font-weight:600;
  letter-spacing:-.4px
}

.product-summary span:not(.summary-icon) {
  font-size:11px;
  color:#8b99b0
}

.product-summary p {
  font-size:12px;
  margin:0 0 0 auto;
  padding-left:30px;
  border-left:1px solid var(--line);
  color:#657993
}

.product-summary p .muted {
  font-size:10px;
  line-height:2.5
}

.product-filter .filters {
  border-bottom:0
}

.product-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin-bottom:24px
}

.product-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 3px 6px #19376502
}

.product-visual {
  position:relative;
  height:205px;
  background:#fafbfd;
  border-bottom:1px solid var(--line)
}

.product-visual img {
  height:100%;
  width:100%;
  object-fit:contain;
  padding:15px;
  background:white
}

.image-placeholder {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  height:100%;
  gap:14px;
  color:#b3bfd1;
  background:linear-gradient(120deg,#f9fbff,#f2f5fa)
}

.image-placeholder svg {
  height:40px;
  width:40px;
  stroke-width:1
}

.image-placeholder span {
  font-size:11px;
  letter-spacing:.5px
}

.product-badge {
  position:absolute;
  top:15px;
  right:15px
}

.product-platform {
  position:absolute;
  top:15px;
  left:15px;
  background:#fff
}

.product-info {
  padding:20px
}

.product-info h2 {
  font-size:13px;
  line-height:1.9;
  height:48px;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  color:#455a7a;
  margin-bottom:7px
}

.product-info>p {
  font-size:11px;
  color:#95a2b5;
  margin-bottom:14px
}

.product-id {
  background:#fafbfd;
  border:1px solid #edf1f6;
  border-radius:6px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}

.product-id span {
  color:#a1aec0;
  font-size:10px;
  flex-shrink:0
}

.product-id strong {
  font-size:11px;
  color:#7387a6;
  overflow-wrap:anywhere;
  word-break:break-all;
  text-align:right
}

.product-order-link {
  margin:13px 0;
  font-size:11px
}

.image-form {
  border-top:1px solid #edf1f6;
  padding-top:15px;
  display:flex;
  gap:8px;
  margin-bottom:8px
}

.file-button {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f2f6fd;
  border:1px solid #e3ebfa;
  color:#6085be;
  border-radius:5px;
  overflow:hidden;
  padding:7px 10px;
  flex:1;
  margin:0;
  font-size:11px;
  cursor:pointer
}

.file-button span {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:170px
}

.file-button input {
  position:absolute;
  opacity:0;
  inset:0;
  width:100%;
  height:100%;
  cursor:pointer
}

.product-info>small {
  font-size:9px;
  color:#acb6c6
}

.pager-only {
  margin-top:8px
}

.pager-only .pagination {
  border-top:0
}

.row-actions {
  display:flex;
  gap:18px;
  align-items:center
}

.shop-cell {
  display:flex;
  align-items:center;
  gap:11px
}

.shop-avatar {
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#edf3fd;
  color:#6487c0;
  font-size:12px
}

.page-footer {
  display:flex;
  justify-content:space-between;
  padding:5px 0 25px;
  font-size:10px;
  color:#b1b9c7;
  letter-spacing:.4px
}

.error-page {
  padding:60px;
  text-align:center;
  max-width:650px;
  margin:70px auto
}

.error-page h1 {
  font-size:70px;
  color:var(--blue)
}

dialog {
  border:1px solid #e2e9f3;
  border-radius:14px;
  padding:28px;
  max-width:510px;
  width:calc(100vw - 36px);
  max-height:90vh;
  overflow-y:auto;
  color:var(--ink);
  box-shadow:0 25px 90px #162b5640
}

dialog::backdrop {
  background:#192d504f;
  backdrop-filter:blur(3px)
}

.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px
}

.dialog-heading h2 {
  font-size:19px;
  margin:0
}

.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:22px
}

dialog label {
  margin-bottom:20px
}

dialog .hint {
  font-size:11px
}

.login-body {
  background:#fff
}

.login-shell {
  min-height:100vh;
  display:grid;
  grid-template-columns:1.05fr 1fr
}

.login-story {
  background:#194fc5;
  background-image:radial-gradient(ellipse at 20% 85%,#2f6be3 0%,transparent 60%),radial-gradient(ellipse at 120% 20%,#4179dc55 0%,transparent 60%);
  padding:42px 8%;
  color:white;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden
}

.login-story:before {
  content:"";
  position:absolute;
  border:1px solid #ffffff08;
  border-radius:50%;
  width:600px;
  height:600px;
  right:-450px;
  top:20%;
  box-shadow:0 0 0 90px #ffffff02,0 0 0 180px #ffffff02
}

.login-brand {
  display:flex;
  align-items:center;
  gap:9px;
  color:#fff;
  font-weight:650;
  font-size:24px;
  letter-spacing:2px;
  position:relative;
  z-index:1
}

.login-brand:hover {
  color:white
}

.login-brand .brand-mark {
  background:#ffffff20;
  border:1px solid #ffffff15;
  box-shadow:none;
  font-size:32px;
  line-height:1;
  width:40px;
  height:40px;
  margin-right:5px
}

.login-brand small {
  font-size:9px;
  letter-spacing:3px;
  color:#95b5fc;
  font-weight:400;
  margin-left:4px;
  align-self:flex-end;
  margin-bottom:9px
}

.story-content {
  margin:auto 0;
  padding:65px 0;
  position:relative;
  z-index:1;
  max-width:500px
}

.story-kicker {
  font-size:9px;
  letter-spacing:2px;
  color:#9cbbff
}

.story-content h1 {
  font-size:38px;
  line-height:1.6;
  letter-spacing:1px;
  margin:18px 0 22px;
  font-weight:550
}

.story-content>p {
  font-size:12px;
  line-height:2.2;
  color:#abc4fc;
  letter-spacing:.2px
}

.story-card {
  margin-top:40px;
  background:linear-gradient(115deg,#ffffff19,#ffffff0a);
  border:1px solid #ffffff22;
  border-radius:14px;
  padding:24px;
  box-shadow:0 18px 30px #0e338e10
}

.story-card-header {
  display:flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  color:#e7efff
}

.story-mini-icon {
  width:25px;
  height:29px;
  background:#ffffff17;
  border:1px solid #ffffff14;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:5px;
  font-size:17px
}

.story-card-header strong {
  font-weight:500
}

.story-check {
  margin-left:auto;
  border:1px solid #79a6ff7a;
  background:#6ea5ff24;
  border-radius:50%;
  width:20px;
  height:20px;
  text-align:center;
  color:#a5c4ff;
  font-size:10px
}

.story-steps {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:27px 0 24px;
  font-size:11px;
  color:#c6d8ff
}

.story-steps b {
  display:block;
  font-size:19px;
  color:white;
  font-weight:400;
  margin-bottom:5px
}

.story-steps i {
  font-style:normal;
  opacity:.4;
  font-size:16px
}

.story-lines {
  display:flex;
  flex-direction:column;
  gap:10px
}

.story-lines i {
  background:#ffffff0b;
  height:6px;
  border-radius:10px;
  width:95%
}

.story-lines i:nth-child(2) {
  width:80%
}

.story-lines i:last-child {
  width:60%
}

.story-card-bottom {
  border-top:1px solid #ffffff13;
  margin-top:24px;
  padding-top:16px;
  display:flex;
  gap:20px;
  font-size:9px;
  color:#8fb2ff
}

.story-card-bottom span:before {
  content:"✓";
  padding-right:5px;
  color:#c3d6ff
}

.story-footer {
  font-size:9px;
  color:#7fa4f7;
  display:flex;
  justify-content:space-between;
  align-items:center;
  letter-spacing:.7px;
  position:relative
}

.story-footer span {
  font-size:8px;
  letter-spacing:1.5px
}

.login-form-area {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px
}

.login-form-wrap {
  width:100%;
  max-width:355px
}

.login-tag {
  font-size:10px;
  color:#a6b3c7;
  display:inline-block;
  margin-bottom:25px
}

.login-form-wrap h2 {
  font-size:28px;
  color:#283a59;
  font-weight:600;
  letter-spacing:1px;
  margin-bottom:9px
}

.login-form-wrap>.muted {
  font-size:12px;
  margin-bottom:34px
}

.login-form-wrap label {
  font-size:12px;
  margin-bottom:24px
}

.login-form-wrap input:not([type=checkbox]) {
  height:47px;
  border-radius:7px;
  margin-top:10px;
  background:#fdfdff;
  padding:13px 14px
}

.password-field {
  position:relative
}

.password-field input {
  padding-right:55px!important
}

.password-field button {
  position:absolute;
  right:12px;
  top:0;
  height:47px;
  background:none;
  border:0;
  font-size:10px;
  color:#8fa0b9
}

.login-submit {
  height:45px;
  justify-content:space-between;
  padding:12px 18px;
  font-size:13px;
  margin-top:4px
}

.login-submit span {
  font-size:19px;
  font-weight:400
}

.login-help {
  border-top:1px solid var(--line);
  margin-top:35px;
  padding-top:25px
}

.login-help strong {
  font-size:11px;
  font-weight:500;
  color:#8d9bb0
}

.login-help p {
  font-size:10px;
  color:#a8b3c4;
  margin-top:8px;
  line-height:1.9
}

.login-copyright {
  position:absolute;
  bottom:42px;
  font-size:9px;
  letter-spacing:1px;
  color:#b7c0ce
}

[hidden] {
  display:none!important
}

@media(min-width:1700px) {
  .product-grid {
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
  .product-visual {
    height:230px
  }
}

@media(max-width:1350px) {
  :root {
    --sidebar:205px
  }
  .main {
    padding:26px 24px 0
  }
  .topbar {
    padding:0 24px
  }
  .stats {
    gap:12px
  }
  .stat {
    padding:17px 15px
  }
  .stat strong.money {
    font-size:21px
  }
  .stat strong {
    font-size:26px
  }
  .stat em {
    font-size:9px
  }
  .product-copy strong {
    max-width:205px
  }
  .order-table {
    min-width:1020px
  }
  .filters .search-field {
    min-width:180px
  }
  .steps {
    gap:15px;
    padding:22px
  }
  .product-grid {
    gap:17px
  }
  .product-info {
    padding:17px
  }
}

@media(max-width:1100px) {
  .stats.five {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .stats.four {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .import-grid {
    grid-template-columns:1fr
  }
  .import-guide {
    display:none
  }
  .steps small {
    display:none
  }
  .preview-grid {
    grid-template-columns:1fr
  }
  .product-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .page-heading {
    align-items:flex-start
  }
  .heading-actions {
    flex-wrap:wrap;
    justify-content:flex-end
  }
  .product-summary {
    gap:30px
  }
  .product-summary p {
    display:none
  }
  .login-story {
    padding:35px 9%
  }
  .login-form-area {
    padding:35px
  }
  .story-content h1 {
    font-size:32px
  }
  .story-card {
    padding:18px
  }
  .story-card-bottom {
    gap:12px;
    font-size:8px
  }
}

@media(max-width:800px) {
  :root {
    --sidebar:0px
  }
  .sidebar {
    width:228px;
    transform:translateX(-100%);
    transition:transform .2s
  }
  .menu-open .sidebar {
    transform:translateX(0);
    box-shadow:0 0 0 100vw #16243d44
  }
  .mobile-menu {
    display:flex!important
  }
  .topbar {
    padding:0 17px;
    height:60px
  }
  .top-actions {
    gap:12px
  }
  .local-label,.user-chip>.muted {
    display:none
  }
  .main {
    padding:22px 16px 0
  }
  .page-heading {
    flex-wrap:wrap;
    gap:17px;
    margin-bottom:20px
  }
  .heading-actions {
    justify-content:flex-start
  }
  .stats.five {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .stats.five .stat:last-child {
    grid-column:span 2
  }
  .stat em {
    font-size:10px
  }
  .stats.four {
    gap:10px
  }
  .stats .stat strong.money {
    font-size:22px
  }
  .stat {
    padding:16px
  }
  .filters {
    padding:16px;
    gap:12px
  }
  .panel-toolbar {
    padding:18px 16px;
    flex-wrap:wrap
  }
  .filters label {
    flex:1 1 140px
  }
  .filters .search-field {
    flex:1 1 100%
  }
  .filters .filter-actions {
    flex:1 1 100%;
    justify-content:flex-end
  }
  .product-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  .product-info h2 {
    font-size:12px
  }
  .product-visual {
    height:180px
  }
  .image-form {
    flex-wrap:wrap
  }
  .image-form .file-button {
    min-width:100%
  }
  .product-info {
    padding:13px
  }
  .product-summary {
    padding:18px;
    gap:30px
  }
  .product-summary strong {
    font-size:23px
  }
  .product-summary .summary-icon {
    width:37px;
    height:37px
  }
  .steps {
    padding:17px 14px;
    gap:10px
  }
  .steps b {
    width:24px;
    height:24px;
    font-size:10px
  }
  .steps>div {
    gap:7px
  }
  .steps span {
    font-size:10px
  }
  .form-grid {
    grid-template-columns:1fr;
    gap:0
  }
  .padded {
    padding:20px
  }
  .batch-label {
    float:none;
    display:block;
    margin-top:5px
  }
  .pagination {
    padding:15px;
    gap:10px
  }
  .pagination>div {
    gap:9px
  }
  .pagination>span {
    font-size:10px
  }
  .page-footer {
    font-size:9px
  }
  .login-shell {
    grid-template-columns:1fr
  }
  .login-story {
    min-height:auto;
    padding:24px 30px
  }
  .login-brand {
    font-size:20px
  }
  .story-content {
    padding:25px 0 0
  }
  .story-content h1 {
    font-size:26px;
    line-height:1.5;
    margin:10px 0 16px
  }
  .story-content>p,.story-card,.story-footer {
    display:none
  }
  .story-kicker {
    font-size:8px
  }
  .login-form-area {
    padding:40px 30px 75px
  }
  .login-form-wrap {
    max-width:420px
  }
  .login-tag {
    margin-bottom:16px
  }
  .login-copyright {
    bottom:24px
  }
  .detail-grid {
    grid-template-columns:1fr
  }
  .detail-grid>div+div {
    padding-left:0;
    border-left:0;
    border-top:1px solid var(--line);
    padding-top:20px
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    transition:none!important
  }
}

@media print {
  .sidebar,.topbar,.filters,.heading-actions,.page-footer {
    display:none
  }
  .shell {
    margin:0
  }
  .main {
    padding:0
  }
  .stats {
    break-inside:avoid
  }
  .panel {
    border:0
  }
  .table-wrap {
    overflow:visible
  }
}
