:root{
  --bg:#eef5fb;
  --panel:#ffffff;
  --panel-soft:rgba(255,255,255,.82);
  --text:#111827;
  --muted:#6c7a92;
  --line:#dbe7f3;
  --blue:#4f73f6;
  --cyan:#2fa0a2;
  --green:#059669;
  --red:#ef476f;
  --amber:#f59e0b;
  --shadow:0 20px 50px rgba(84,109,138,.16);
  --soft-shadow:0 10px 30px rgba(84,109,138,.12);
  --radius:8px;
}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 16% 12%,rgba(47,160,162,.18),transparent 28%),
    radial-gradient(circle at 82% 7%,rgba(79,115,246,.18),transparent 30%),
    linear-gradient(135deg,#f7fbfc 0%,#eef6fb 46%,#eaf1ff 100%);
  color:var(--text);
  font-family:"Microsoft YaHei",Arial,sans-serif;
  font-size:14px;
}
a{color:inherit;text-decoration:none}
.cs-shell{display:flex;min-height:100vh}
.cs-side{
  width:252px;
  background:rgba(255,255,255,.78);
  border-right:1px solid rgba(219,231,243,.88);
  color:#15233a;
  display:flex;
  flex-direction:column;
  padding:24px 18px;
  position:fixed;
  inset:0 auto 0 0;
  backdrop-filter:blur(18px);
}
.cs-brand{display:flex;gap:12px;align-items:center;padding:0 0 28px}
.cs-brand-mark{
  width:42px;
  height:42px;
  border-radius:8px;
  background:linear-gradient(135deg,var(--cyan),var(--blue));
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:800;
  box-shadow:0 12px 28px rgba(47,160,162,.26);
}
.cs-brand strong{display:block;font-size:17px;line-height:22px}
.cs-brand span,.cs-side-footer span{display:block;color:#71809a;font-size:12px;margin-top:3px}
.cs-nav{display:flex;flex-direction:column;gap:10px}
.cs-nav a{
  min-height:44px;
  padding:0 14px;
  border-radius:8px;
  color:#5f6f88;
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
}
.cs-nav a:hover{background:rgba(79,115,246,.08);color:#29415f}
.cs-nav a.is-active{
  color:#fff;
  background:linear-gradient(135deg,var(--cyan),var(--blue));
  box-shadow:0 14px 30px rgba(47,160,162,.22);
}
.cs-nav-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.cs-nav-icon svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cs-side-footer{margin-top:auto;border-top:1px solid var(--line);padding-top:18px;display:grid;gap:14px}
.cs-account-card{
  min-height:56px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,255,255,.62);
}
.cs-account-card strong{display:block;margin-top:2px}
.cs-account-avatar{
  width:34px;
  height:34px;
  border-radius:8px;
  display:grid!important;
  place-items:center;
  color:#fff!important;
  background:linear-gradient(135deg,var(--cyan),var(--blue));
  font-weight:800;
}
.cs-logout{
  height:38px;
  border:1px solid var(--line);
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#415875;
  font-weight:700;
  background:rgba(255,255,255,.45);
}
.cs-main{margin-left:252px;width:calc(100% - 252px);padding:25px 28px 44px}
.cs-top{
  position:relative;
  min-height:130px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  margin-bottom:18px;
  overflow:hidden;
  border:1px solid rgba(219,231,243,.78);
  border-radius:8px;
  padding:24px 26px;
  background:linear-gradient(115deg,rgba(255,255,255,.92),rgba(236,246,250,.82) 54%,rgba(220,234,255,.76));
  box-shadow:var(--soft-shadow);
}
.cs-top:after{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  right:-50px;
  top:-72px;
  border-radius:42px;
  background:rgba(93,165,220,.18);
  transform:rotate(18deg);
}
.cs-top h1{position:relative;z-index:1;font-size:34px;line-height:40px;margin:0 0 12px;font-weight:800;letter-spacing:0}
.cs-top p{position:relative;z-index:1;margin:0;color:#61728d;font-size:15px}
.cs-top-title{position:relative;z-index:1;flex:0 0 auto;min-width:260px}
.cs-top-extra{position:relative;z-index:1;flex:1 1 auto;display:flex;justify-content:flex-end;min-width:0}
.cs-top-stats{width:min(760px,100%);display:grid;grid-template-columns:repeat(4,minmax(112px,1fr));gap:10px}
.cs-top-stat{position:relative;min-height:78px;padding:12px 14px;border:1px solid rgba(219,231,243,.88);border-radius:8px;background:rgba(255,255,255,.72);box-shadow:0 8px 22px rgba(84,109,138,.08);overflow:hidden}
.cs-top-stat:after{content:"";position:absolute;right:12px;top:12px;width:30px;height:30px;border-radius:50%;background:rgba(47,160,162,.14)}
.cs-top-stat.accent-blue:after{background:rgba(79,115,246,.16)}
.cs-top-stat.accent-amber:after{background:rgba(245,158,11,.16)}
.cs-top-stat.accent-purple:after{background:rgba(123,97,255,.16)}
.cs-top-stat span{display:block;color:#63748d;font-size:12px;font-weight:800;margin-bottom:12px}
.cs-top-stat strong{display:block;font-size:28px;line-height:30px;color:#111827}
.cs-primary,.cs-button{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  border-radius:8px;
  border:1px solid transparent;
  background:linear-gradient(135deg,var(--cyan),var(--blue));
  color:#fff;
  cursor:pointer;
  font:inherit;
  font-weight:800;
  box-shadow:0 12px 28px rgba(47,160,162,.22);
}
.cs-button.secondary{background:#fff;color:#30445f;border-color:var(--line);box-shadow:none}
.cs-button.danger{background:var(--red);border-color:var(--red)}
.cs-button.danger-text{color:#ef476f;border-color:#ffd3dc;background:#fff}
.cs-button.danger-text:hover{background:#fff4f7}
.cs-flash{padding:12px 14px;border-radius:8px;margin-bottom:16px;background:#e3f7ef;color:#066448;border:1px solid #9edfc9}
.cs-flash.warning,.cs-flash.error{background:#fff2f4;color:#aa2447;border-color:#ffc7d2}
.cs-grid{display:grid;gap:16px}
.cs-grid.stats{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));margin-bottom:16px}
.cs-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.cs-card{
  position:relative;
  overflow:hidden;
  background:var(--panel-soft);
  border:1px solid rgba(219,231,243,.85);
  border-radius:8px;
  padding:18px;
  box-shadow:var(--soft-shadow);
}
.cs-card h2{font-size:17px;margin:0 0 14px}
.cs-stat{min-height:114px;display:flex;flex-direction:column;justify-content:space-between;background:rgba(255,255,255,.9)}
.cs-stat:after{
  content:"";
  position:absolute;
  right:16px;
  top:16px;
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(47,160,162,.14);
}
.cs-stat.accent-blue:after{background:rgba(79,115,246,.16)}
.cs-stat.accent-amber:after{background:rgba(245,158,11,.16)}
.cs-stat.accent-purple:after{background:rgba(123,97,255,.16)}
.cs-stat span{display:block;color:#71809a;font-weight:700;margin-bottom:12px}
.cs-stat strong{font-size:36px;line-height:40px;color:#111827}
.cs-list-card{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(219,231,243,.9);
  border-radius:8px;
  padding:18px;
  box-shadow:var(--shadow);
}
.cs-list-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:14px;
  margin-bottom:14px;
  border-bottom:1px solid var(--line);
}
.cs-list-head h2{display:inline-block;margin:0;font-size:22px}
.cs-list-head span{
  display:inline-flex;
  min-height:28px;
  align-items:center;
  margin-left:10px;
  padding:0 11px;
  border-radius:999px;
  background:#eef4ff;
  color:#4f73f6;
  font-size:13px;
  font-weight:800;
}
.cs-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
  background:#f8fbff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
}
input,select,textarea{
  width:100%;
  min-height:42px;
  border:1px solid #d7e4f2;
  border-radius:8px;
  background:#fff;
  padding:9px 12px;
  font:inherit;
  color:var(--text);
  outline:none;
}
input:focus,select:focus,textarea:focus{border-color:#8fb3ff;box-shadow:0 0 0 3px rgba(79,115,246,.12)}
textarea{min-height:104px;resize:vertical}
.cs-toolbar input,.cs-toolbar select{width:150px}
.cs-toolbar .wide{width:auto;flex:1 1 260px}
.cs-toolbar .cs-button{flex:0 0 auto}
.cs-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
}
.cs-table th,.cs-table td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.cs-table th{background:#f5f8fc;color:#63748d;font-weight:800;font-size:13px}
.cs-table tr:last-child td{border-bottom:none}
.cs-table tbody tr:hover{background:#fbfdff}
.cs-table.is-sort-mode tbody tr{cursor:grab}
.cs-table.is-sort-mode tbody tr.is-dragging{opacity:.55;background:#eef4ff}
.cs-sort-handle-cell{width:72px;text-align:center}
.cs-drag-handle{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;background:#fff;color:#71809a;font-weight:800;cursor:grab}
.cs-table:not(.is-sort-mode) .cs-drag-handle{opacity:.35;cursor:not-allowed}
.cs-table tr.has-record-image td{height:96px}
.cs-badge{
  display:inline-flex;
  min-height:28px;
  min-width:88px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:0 12px;
  background:#e8f7f4;
  color:#07817a;
  font-size:12px;
  font-weight:800;
}
.cs-badge.new{background:#eaf1ff;color:#3159d4}
.cs-badge.processing{background:#fff3df;color:#b96b09}
.cs-badge.waiting_customer{background:#fff9d8;color:#987d00}
.cs-badge.resolved{background:#e6f8f0;color:#047857}
.cs-badge.closed{background:#edf1f5;color:#526171}
.cs-badge.status-enabled{background:#e6f8f0;color:#047857}
.cs-badge.status-disabled{background:#edf1f5;color:#64748b}
.cs-badge.common{background:#eaf1ff;color:#3159d4}
.cs-badge.refund-pending{background:#fff3df;color:#b96b09}
.cs-badge.refund-processed{background:#e6f8f0;color:#047857}
.cs-refund-status-form{margin:0}
.cs-refund-status-select{width:auto;min-width:92px;min-height:30px;border-radius:999px;padding:0 28px 0 12px;font-size:12px;font-weight:800;cursor:pointer;box-shadow:none}
.cs-refund-status-select.is-pending{border-color:#ffe1aa;background:#fff3df;color:#b96b09}
.cs-refund-status-select.is-processed{border-color:#bcebd5;background:#e6f8f0;color:#047857}
.cs-refund-amount{margin-top:6px;color:#111827;font-size:12px;font-weight:800}
.cs-copy-account{position:relative;display:inline-flex;max-width:210px;border:0;background:transparent;padding:0;color:#3159d4;font:inherit;text-align:left;cursor:pointer}
.cs-copy-account:hover .cs-copy-account-text{text-decoration:underline}
.cs-copy-account-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-copy-account.is-copied .cs-copy-account-text{font-weight:800;color:#111827}
.cs-copy-tip{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translate(-50%,6px);height:26px;line-height:26px;border-radius:999px;padding:0 10px;background:#111827;color:#fff;font-size:12px;font-weight:800;white-space:nowrap;opacity:0;pointer-events:none;box-shadow:0 10px 22px rgba(17,24,39,.18)}
.cs-copy-tip:after{content:"";position:absolute;left:50%;top:100%;transform:translateX(-50%);border:5px solid transparent;border-top-color:#111827}
.cs-copy-account.is-animating .cs-copy-tip{animation:cs-copy-tip-pop 1.2s ease both}
.cs-thumb{width:50px;height:50px;border-radius:8px;border:1px solid var(--line);object-fit:cover;background:#fff}
.cs-muted{color:var(--muted)}
.cs-record-product-cell{display:flex;gap:12px;align-items:center;min-width:200px}
.cs-platform-logo{width:24px;height:24px;border-radius:7px;display:inline-grid;place-items:center;flex:0 0 auto;color:#fff;font-size:11px;font-weight:800;line-height:1;background:#71809a}
.cs-platform-logo.taobao{background:#ff6a00}
.cs-platform-logo.tmall{background:#d71920}
.cs-platform-logo.pdd{background:#e02e24}
.cs-platform-logo.douyin{background:#111827}
.cs-platform-logo.ali1688{width:34px;background:#ff7a00;font-size:10px}
.cs-platform-logo.other{background:#64748b}
.cs-store-name,.cs-store-platform{display:inline-flex;align-items:center;gap:8px}
.cs-product-list-thumb{width:48px;height:48px;border-radius:8px;border:1px solid var(--line);background:#f9fafb;display:grid;place-items:center;overflow:hidden;flex:0 0 auto;color:var(--muted);font-size:12px}
.cs-product-list-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cs-record-list-image{width:52px;height:52px;border-radius:8px;border:1px solid var(--line);background:#f9fafb;display:block;overflow:hidden;position:relative;padding:0;cursor:pointer}
.cs-record-list-image:hover{box-shadow:0 0 0 3px rgba(79,115,246,.14);border-color:#9ab7ff}
.cs-table tr.has-record-image .cs-record-list-image{width:78px;height:78px}
.cs-record-list-image img{width:100%;height:100%;object-fit:cover;display:block}
.cs-record-list-image span{position:absolute;right:4px;bottom:4px;height:18px;min-width:18px;border-radius:999px;background:rgba(17,24,39,.78);color:#fff;font-size:12px;line-height:18px;text-align:center;padding:0 5px}
.cs-form{
  max-width:900px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(219,231,243,.9);
  border-radius:8px;
  padding:20px;
  box-shadow:var(--shadow);
}
.cs-form:before{
  content:attr(data-title);
  display:none;
}
.cs-form-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-bottom:14px;
  margin-bottom:16px;
  border-bottom:1px solid var(--line);
}
.cs-form-head h2{margin:0;font-size:22px;line-height:28px}
.cs-form-head a{color:#05968d;font-weight:800}
.cs-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
.cs-field.full{grid-column:1/-1}
.cs-field label{display:block;margin-bottom:7px;color:#20314a;font-weight:800;font-size:13px}
.cs-actions{display:flex;gap:10px;margin-top:20px}
.cs-actions.full{grid-column:1/-1}
.cs-row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cs-row-actions form{margin:0}
.cs-delete-record-form{margin-top:14px}
.cs-text-link{color:#3159d4;text-decoration:none;font-weight:800}
.cs-text-link:hover{text-decoration:underline}
.cs-product-list-link{display:inline-flex;border:0;background:transparent;padding:0;cursor:pointer}
.cs-product-list-link:hover .cs-thumb{box-shadow:0 0 0 3px rgba(79,115,246,.14);border-color:#9ab7ff}
.cs-product-issue-pills{display:flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:520px}
.cs-product-issue-pill{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:2px 9px;background:#edf4f7;border:1px solid #d8e6eb;color:#4b6472;font-size:12px;line-height:16px;white-space:nowrap}
.cs-product-detail{display:flex;flex-direction:column;gap:16px}
.cs-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.cs-section-head h2{margin:0 0 6px;font-size:18px}
.cs-section-head p{margin:0;color:var(--muted)}
.cs-category-inline-form{margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.cs-product-category-table{margin-top:0}
.cs-issue-editor{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
.cs-issue-row{display:grid;grid-template-columns:46px minmax(180px,1.1fr) minmax(180px,1fr) 92px;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line)}
.cs-issue-row:last-child{border-bottom:none}
.cs-issue-head{background:#f8fbff;color:#63748d;font-weight:800}
.cs-issue-row input{min-height:38px}
.cs-issue-row select{min-height:38px}
.cs-issue-description{min-height:38px;display:flex;align-items:center;color:var(--muted);font-size:13px;line-height:18px;word-break:break-word}
.cs-issue-drag{width:34px;height:34px;border:1px solid #d8e5f3;border-radius:8px;background:#f8fbff;color:#7a8ba4;font-size:15px;font-weight:800;cursor:grab}
.cs-issue-drag:active{cursor:grabbing}
.cs-issue-row.is-readonly{background:#fbfdff}
.cs-issue-row.is-readonly .cs-issue-drag{background:#f1f6ff;color:#6f86a9}
.cs-issue-readonly-name{min-height:38px;display:flex;align-items:center;gap:8px;min-width:0}
.cs-issue-readonly-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-issue-sort-active{user-select:none}
.cs-issue-row.is-dragging{background:#eef7ff;box-shadow:0 12px 28px rgba(47,68,96,.14);opacity:.82}
.cs-issue-row.is-deleted{display:none}
.cs-issue-empty{border:0;border-radius:0;margin:0}
.cs-product-editor{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:start}
.cs-product-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.cs-product-image{border-right:1px solid var(--line);padding-right:22px}
.cs-product-select{position:relative}
.cs-product-select-trigger{width:100%;min-height:42px;border:1px solid #d7e4f2;border-radius:8px;background:#fff;padding:5px 9px;display:flex;align-items:center;gap:10px;font:inherit;color:var(--text);cursor:pointer;text-align:left}
.cs-product-select-trigger b{margin-left:auto;color:var(--muted);font-size:16px;font-weight:400}
.cs-product-select-menu{display:none;position:absolute;z-index:30;top:calc(100% + 6px);left:0;right:0;max-height:300px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 18px 36px rgba(47,68,96,.18);padding:6px}
.cs-product-select.is-open .cs-product-select-menu{display:block}
.cs-product-search{position:sticky;top:0;z-index:1;background:#fff;padding:2px 2px 6px}
.cs-product-search input{min-height:34px;border-radius:8px}
.cs-product-option{width:100%;min-height:46px;border:0;background:#fff;border-radius:8px;padding:6px;display:flex;align-items:center;gap:10px;font:inherit;color:var(--text);cursor:pointer;text-align:left}
.cs-product-option:hover,.cs-product-option.is-selected{background:#eef4ff}
.cs-product-option-main{display:flex;min-width:0;flex:1;align-items:center;justify-content:space-between;gap:8px}
.cs-product-option-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-product-option-main small{flex:0 0 auto;color:var(--muted);font-size:12px}
.cs-product-mini{width:34px;height:34px;border-radius:8px;border:1px solid var(--line);background:#f9fafb;display:grid;place-items:center;overflow:hidden;flex:0 0 auto;color:var(--muted);font-size:12px}
.cs-product-mini img{width:100%;height:100%;object-fit:cover;display:block}
.cs-product-option-empty{padding:12px;color:var(--muted);text-align:center}
.cs-product-select-menu [data-choice-empty]{display:none!important}
.cs-choice-select{position:relative}
.cs-choice-select-trigger{width:100%;min-height:42px;border:1px solid #d7e4f2;border-radius:8px;background:#fff;padding:5px 12px;display:flex;align-items:center;gap:10px;font:inherit;color:var(--text);cursor:pointer;text-align:left}
.cs-choice-select.is-disabled .cs-choice-select-trigger{background:#f8fbff;color:var(--muted)}
.cs-choice-select-trigger b{margin-left:auto;color:var(--muted);font-size:16px;font-weight:400}
.cs-choice-select-menu{display:none;position:absolute;z-index:30;top:calc(100% + 6px);left:0;right:0;max-height:300px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 18px 36px rgba(47,68,96,.18);padding:6px}
.cs-choice-select.is-open .cs-choice-select-menu{display:block}
.cs-choice-option{width:100%;min-height:46px;border:0;background:#fff;border-radius:8px;padding:6px 10px;display:flex;align-items:center;gap:10px;font:inherit;color:var(--text);cursor:pointer;text-align:left}
.cs-choice-option:hover,.cs-choice-option.is-selected{background:#eef4ff}
.cs-choice-option-empty{padding:12px;color:var(--muted);text-align:center}
.cs-store-select{position:relative}
.cs-store-select-trigger{width:100%;min-height:42px;border:1px solid #d7e4f2;border-radius:8px;background:#fff;padding:5px 12px;display:flex;align-items:center;gap:10px;font:inherit;color:var(--text);cursor:pointer;text-align:left}
.cs-store-select-trigger b{margin-left:auto;color:var(--muted);font-size:16px;font-weight:400}
.cs-store-select-menu{display:none;position:absolute;z-index:32;top:calc(100% + 6px);left:0;right:0;max-height:280px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 18px 36px rgba(47,68,96,.18);padding:6px}
.cs-store-select.is-open .cs-store-select-menu{display:block}
.cs-store-option{width:100%;min-height:44px;border:0;background:#fff;border-radius:8px;padding:6px 10px;display:flex;align-items:center;gap:9px;font:inherit;color:var(--text);cursor:pointer;text-align:left}
.cs-store-option:hover,.cs-store-option.is-selected{background:#eef4ff}
.cs-store-option span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-store-option small{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}
.cs-store-option-empty{padding:12px;color:var(--muted);text-align:center}
.cs-image-label{display:block;margin-bottom:10px;color:#20314a;font-weight:800}
.cs-image-preview{width:200px;height:200px;border:1px dashed #bdd0e3;border-radius:8px;background:#f8fbff;display:grid;place-items:center;overflow:hidden;color:var(--muted)}
.cs-image-preview img{width:100%;height:100%;object-fit:cover;display:none}
.cs-image-preview img.is-visible{display:block}
.cs-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.cs-file-button{width:200px;margin-top:12px}
.cs-file-name{width:200px;min-height:20px;margin-top:8px;color:var(--muted);font-size:12px;word-break:break-all}
.cs-record-uploader{min-height:190px;border:1px solid var(--line);border-radius:8px;padding:16px;background:#f8fbff}
.cs-record-upload-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
.cs-record-upload-card{width:100%;min-height:130px;border:1px solid #d7e4f2;border-radius:8px;background:#fff;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:6px 12px;padding:20px;text-align:left;color:#1f2937;cursor:pointer;box-shadow:0 8px 22px rgba(84,109,138,.08)}
.cs-record-upload-card:hover,.cs-record-upload-card:focus{border-color:#93b4f6;box-shadow:0 0 0 3px rgba(79,115,246,.1);outline:none}
.cs-record-upload-card.paste{border-style:dashed;background:#fff}
.cs-record-uploader.is-paste-ready .cs-record-upload-card.paste{border-color:var(--green);box-shadow:0 0 0 3px rgba(5,150,105,.12)}
.cs-record-upload-card.has-images{align-content:start}
.cs-record-action-icon{width:42px;height:42px;border-radius:8px;background:#eef4ff;color:var(--blue);display:grid;place-items:center;font-size:22px;font-weight:800;line-height:1}
.cs-record-upload-card.paste .cs-record-action-icon{background:#e6f8f0;color:var(--cyan);font-size:15px}
.cs-record-card-copy{display:grid;gap:4px;min-width:0}
.cs-record-upload-card strong{font-size:16px;line-height:20px}
.cs-record-upload-card small{color:var(--muted);font-size:12px;line-height:16px}
.cs-record-inline-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,56px);gap:7px;margin-top:6px}
.cs-record-inline-grid:empty{display:none}
.cs-record-inline-tile{width:56px;height:56px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;position:relative}
.cs-record-inline-tile img{width:100%;height:100%;object-fit:cover;display:block}
.cs-record-image-status{min-height:22px;margin-top:10px;color:var(--muted);font-size:12px}
.cs-record-image-status.is-ready{color:#047857}
.cs-record-image-status.is-warning{color:#b45309}
.cs-record-image-panel{display:none;border-top:1px solid var(--line);margin-top:10px;padding-top:10px}
.cs-record-image-panel.is-visible,.cs-record-image-panel.existing{display:block}
.cs-record-image-panel-title{font-weight:800;color:#20314a;margin-bottom:8px}
.cs-record-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,112px));gap:10px}
.cs-record-image-grid:empty{display:none}
.cs-record-image-tile{width:112px;height:136px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;position:relative;display:block;color:var(--text)}
.cs-record-image-tile img{width:112px;height:96px;object-fit:cover;display:block;background:#eef2f7}
.cs-record-image-tile span{display:block;height:40px;padding:5px 7px;color:var(--muted);font-size:12px;line-height:15px;overflow:hidden;word-break:break-all}
.cs-record-image-remove{position:absolute;top:4px;right:4px;border:0;border-radius:999px;background:rgba(17,24,39,.78);color:#fff;min-width:20px;height:20px;padding:0 6px;font:inherit;font-size:13px;line-height:20px;cursor:pointer}
.cs-detail{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px;align-items:start}
.cs-log{display:flex;flex-direction:column;gap:10px}
.cs-log-item{border:1px solid var(--line);border-radius:8px;padding:12px;background:#fff}
.cs-log-item span{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}
.cs-bar-row{display:grid;grid-template-columns:120px 1fr 40px;gap:12px;align-items:center;margin:10px 0}
.cs-bar-row div{height:10px;background:#eef4ff;border-radius:999px;overflow:hidden}
.cs-bar-row i{display:block;height:100%;background:linear-gradient(135deg,var(--cyan),var(--blue));border-radius:999px}
.cs-pie-wrap{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:center;min-height:240px}
.cs-pie-chart{display:grid;place-items:center}
.cs-pie-chart svg{width:220px;height:220px;display:block;filter:drop-shadow(0 16px 28px rgba(84,109,138,.14))}
.cs-pie-bg{fill:none;stroke:#edf4ff;stroke-width:24}
.cs-pie-segment{fill:none;stroke-width:24;transform:rotate(-90deg);transform-origin:60px 60px;stroke-dasharray:var(--pie-value) 100;stroke-dashoffset:var(--pie-offset);animation:cs-pie-draw .8s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--pie-delay)}
.cs-pie-hole{fill:#fff;stroke:#e7eff8;stroke-width:1}
.cs-pie-chart text:first-of-type{font-size:20px;font-weight:800;fill:#111827}
.cs-pie-chart text:last-of-type{font-size:10px;font-weight:700;fill:#71809a}
.cs-pie-legend{display:grid;gap:10px}
.cs-pie-legend-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto 52px;gap:9px;align-items:center;min-height:32px;padding:7px 9px;border:1px solid #e2edf8;border-radius:8px;background:rgba(255,255,255,.72);animation:cs-chart-rise .45s ease both}
.cs-pie-dot{width:10px;height:10px;border-radius:999px}
.cs-pie-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#20314a;font-weight:800}
.cs-pie-legend-row b{color:#111827}
.cs-pie-legend-row small{color:var(--muted);text-align:right;font-weight:700}
.cs-line-chart{position:relative;min-height:188px;padding:0 76px 0 0}
.cs-line-chart svg{width:100%;height:auto;display:block;overflow:visible}
.cs-line-grid{stroke:#e7eff8;stroke-width:.75}
.cs-line-y,.cs-line-x{fill:#73839a;font-size:7.5px;font-weight:500}
.cs-line-area{fill:#4f73f6;opacity:.075;animation:cs-line-area-in .75s ease .35s both}
.cs-line-path{fill:none;stroke:#2fa0a2;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:100;stroke-dashoffset:100;animation:cs-line-draw 1s cubic-bezier(.22,.82,.18,1) .08s both}
.cs-line-point{fill:#fff;stroke:#4f73f6;stroke-width:1.65;transform-box:fill-box;transform-origin:center;animation:cs-point-pop .4s ease .85s both}
.cs-line-summary{position:absolute;right:0;top:10px;width:66px;min-height:60px;border:1px solid #e2edf8;border-radius:8px;background:rgba(255,255,255,.68);display:grid;align-content:center;justify-items:center;gap:2px}
.cs-line-summary span{color:var(--muted);font-size:10px;font-weight:600;text-align:center}
.cs-line-summary strong{font-size:22px;line-height:26px;color:#111827}
.cs-modal-open{overflow:hidden}
.cs-image-lightbox{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:28px;background:rgba(15,23,42,.58);backdrop-filter:blur(10px)}
.cs-image-lightbox.is-open{display:flex}
.cs-image-lightbox-panel{position:relative;width:min(920px,calc(100vw - 48px));height:min(760px,calc(100vh - 56px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;border:1px solid rgba(219,231,243,.72);border-radius:8px;background:rgba(255,255,255,.96);box-shadow:0 28px 80px rgba(15,23,42,.34);padding:16px}
.cs-image-lightbox-title{min-height:28px;padding-right:42px;font-weight:800;color:#17233a;line-height:28px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-image-lightbox-close{position:absolute;right:14px;top:12px;width:34px;height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#526171;font-size:24px;line-height:30px;cursor:pointer}
.cs-image-lightbox-close:hover{border-color:#9ab7ff;color:#3159d4}
.cs-image-lightbox-stage{min-height:0;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:linear-gradient(135deg,#f8fbff,#eef5fb);cursor:zoom-in}
.cs-image-lightbox-stage img{max-width:100%;max-height:100%;display:block;object-fit:contain;transition:transform .12s ease;transform-origin:center center;user-select:none;pointer-events:none}
.cs-image-lightbox-help{color:var(--muted);font-size:12px;text-align:center}
@keyframes cs-pie-draw{
  from{stroke-dasharray:0 100}
  to{stroke-dasharray:var(--pie-value) 100}
}
@keyframes cs-line-draw{
  to{stroke-dashoffset:0}
}
@keyframes cs-line-area-in{
  from{opacity:0}
  to{opacity:.075}
}
@keyframes cs-point-pop{
  from{opacity:0;transform:scale(.45)}
  to{opacity:1;transform:scale(1)}
}
@keyframes cs-chart-rise{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes cs-copy-tip-pop{
  0%{opacity:0;transform:translate(-50%,6px) scale(.94)}
  16%{opacity:1;transform:translate(-50%,0) scale(1)}
  78%{opacity:1;transform:translate(-50%,0) scale(1)}
  100%{opacity:0;transform:translate(-50%,-4px) scale(.98)}
}
.cs-empty{color:var(--muted);padding:18px;text-align:center}
@media (max-width:1000px){
  .cs-side{position:static;width:100%;height:auto}
  .cs-shell{display:block}
  .cs-main{margin-left:0;width:100%;padding:16px}
  .cs-top{min-height:auto}
  .cs-top{flex-direction:column}
  .cs-top-title{min-width:0}
  .cs-top-extra{width:100%;justify-content:flex-start}
  .cs-top-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-grid.stats,.cs-grid.two,.cs-form-grid,.cs-detail,.cs-product-editor,.cs-product-main,.cs-record-upload-actions{grid-template-columns:1fr}
  .cs-issue-row{grid-template-columns:38px minmax(0,1fr)}
  .cs-issue-row input,.cs-issue-row .cs-button{grid-column:1 / -1}
  .cs-issue-head{display:none}
  .cs-product-image{border-right:0;border-bottom:1px solid var(--line);padding:0 0 18px}
  .cs-record-inline-grid{grid-template-columns:repeat(auto-fill,56px)}
  .cs-list-head{align-items:flex-start;flex-direction:column}
  .cs-toolbar input,.cs-toolbar select,.cs-toolbar .wide,.cs-toolbar .cs-button{width:100%;flex:1 1 100%}
  .cs-form{max-width:none}
  .cs-pie-wrap{grid-template-columns:1fr}
  .cs-pie-chart svg{width:200px;height:200px}
  .cs-line-chart{padding:0}
  .cs-line-summary{position:static;width:100%;margin-top:8px;min-height:54px}
}
