:root{--navy:#111c32;--navy2:#1c2c49;--blue:#356aec;--blue2:#eaf0ff;--bg:#f5f7fb;--line:#e4eaf3;--text:#182238;--muted:#6a7890;--green:#07845d;--yellow:#a8660f;--red:#c2384a;--white:#fff;--shadow:0 6px 23px #13284108}
*{box-sizing:border-box}body{margin:0;color:var(--text);background:var(--bg);font:14px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}.layout{display:flex;min-height:100vh}.side{background:var(--navy);width:246px;min-width:246px;color:white;min-height:100vh;padding:20px 13px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.logo{display:flex;gap:12px;align-items:center;padding:8px 12px 28px}.logo-icon{width:41px;height:41px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(140deg,#4779fb,#7765f5);font-size:22px;font-weight:800}.logo b{font-size:15px}.logo small{display:block;font-size:11px;color:#9facbe}.group-label{color:#8294ae;font-size:11px;letter-spacing:1px;padding:13px 13px 7px}.nav-item{display:flex;align-items:center;gap:11px;padding:11px 13px;width:100%;border:0;border-radius:10px;color:#b0bdd1;background:transparent;text-align:left;font-weight:600}.nav-item:hover{background:#233551;color:#fff}.nav-item.active{background:#334d78;color:white}.nav-item span:first-child{width:22px;font-size:16px;text-align:center}.sidebottom{margin-top:auto;padding:14px;background:#1e2e4b;border-radius:12px;font-size:12px;color:#bbc8dc}.sidebottom b{color:#fff}.main{flex:1;min-width:0}.bar{height:76px;background:#fff;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:15px}.bar-left{display:flex;align-items:center;gap:12px;min-width:0}.bar h2{font-size:16px;margin:0}.bar .sub{color:var(--muted);font-size:11px}.bar-right{display:flex;align-items:center;gap:12px}.content{padding:30px 32px;max-width:1700px;margin:auto}.pagehead{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:21px}.pagehead h1{font-size:26px;letter-spacing:-.5px;margin:0 0 5px}.pagehead p{color:var(--muted);font-size:13px;margin:0}.card{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:21px;min-width:0}.card h3{font-size:15px;margin:0 0 14px}.cards{display:grid;gap:16px}.cards.four{grid-template-columns:repeat(4,minmax(0,1fr))}.cards.three{grid-template-columns:repeat(3,minmax(0,1fr))}.cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{min-height:125px}.metric-label{font-size:12px;color:var(--muted)}.metric-val{font-size:30px;font-weight:780;letter-spacing:-1px;margin:14px 0 0}.metric-foot{font-size:11px;color:#98a2b1;margin-top:8px}.metric.red .metric-val{color:var(--red)}.metric.green .metric-val{color:var(--green)}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px}.bold{font-weight:700}.btn{border:1px solid #d9e2f1;color:#253a54;background:#fff;padding:9px 14px;border-radius:9px;display:inline-flex;justify-content:center;align-items:center;gap:7px;font-weight:700;white-space:nowrap}.btn:hover{background:#f5f8fe;border-color:#afc1e0}.btn.primary{color:#fff;background:var(--blue);border-color:var(--blue)}.btn.primary:hover{background:#2056d4}.btn.red{color:var(--red)}.btn.small{padding:6px 10px;font-size:12px;border-radius:7px}.btn.link{border:0;background:transparent;color:var(--blue);padding:5px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pill{padding:3px 9px;border-radius:999px;background:#edf1f7;color:#64748b;display:inline-flex;font-size:11px;font-weight:750;white-space:nowrap}.pill.ok{background:#dcf7ed;color:#078059}.pill.warn{background:#fff1d8;color:#946314}.pill.bad{background:#fee9ed;color:#bb3044}.pill.info{background:#e8efff;color:#335ec7}.tablebox{overflow:auto;border:1px solid var(--line);border-radius:11px}.table{border-collapse:collapse;width:100%;min-width:730px;font-size:12px}.table th,.table td{text-align:left;padding:11px 12px;border-bottom:1px solid #edf0f5;vertical-align:middle}.table th{background:#f8fafe;color:#63738c;white-space:nowrap}.table tr:last-child td{border-bottom:0}.table tbody tr:hover{background:#fbfcff}.table .right{text-align:right;font-variant-numeric:tabular-nums}.table .mono{font-family:ui-monospace,Consolas,monospace}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:5px;min-width:0}.field label{color:#5e6f85;font-size:12px;font-weight:700}.field input,.field select,.field textarea,select.search,input.search{border:1px solid #d9e2ef;border-radius:9px;padding:9px 11px;outline:0;background:#fff;width:100%;color:var(--text)}.field input:focus,.field select:focus,.field textarea:focus{border-color:#7599fa;box-shadow:0 0 0 3px #eaf1ff}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px}.formgrid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field textarea{resize:vertical;min-height:95px}.notice{background:#edf3ff;border:1px solid #d2e1fb;padding:14px 16px;border-radius:10px;color:#38577e;font-size:13px}.notice.warn{background:#fff8ea;border-color:#fae1b6;color:#88600c}.notice.danger{background:#fff0f1;border-color:#f1ccd0;color:#a32d3d}.notice.good{background:#eaf9f1;border-color:#b9ecd3;color:#147251}.divider{border:0;border-top:1px solid var(--line);margin:18px 0}.empty{padding:45px 10px;text-align:center;color:#7e8ca0}.empty strong{display:block;color:var(--text);font-size:16px;margin-bottom:6px}.modal-bg{position:fixed;inset:0;background:#0b1629a8;z-index:22;display:flex;justify-content:center;align-items:center;padding:20px}.modal{width:min(780px,98vw);max-height:94vh;overflow:auto;border-radius:17px;background:#fff;padding:25px;box-shadow:0 25px 70px #0003}.modal h2{margin:0 0 15px;font-size:20px}.modal pre{white-space:pre-wrap;overflow-wrap:anywhere}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.x{font-size:22px;border:0;background:#f1f4f9;border-radius:8px;width:34px;height:34px}.modalfoot{border-top:1px solid var(--line);padding-top:16px;margin-top:19px;display:flex;justify-content:flex-end;gap:9px}.loading{padding:70px;text-align:center;color:var(--muted)}.auth-bg{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 26% 10%,#273c67,#0d182a 60%);padding:22px}.auth-card{background:#fff;padding:35px;width:min(420px,100%);border-radius:20px;box-shadow:0 20px 60px #0003}.auth-card h1{margin:14px 0 4px;font-size:24px}.auth-card p{color:var(--muted);margin:0 0 24px}.auth-card .field{margin-bottom:14px}.auth-card .btn{width:100%;margin-top:7px}.auth-mark{background:linear-gradient(140deg,#437ffd,#6e5ceb);color:#fff;width:55px;height:55px;border-radius:17px;font-size:28px;font-weight:850;display:grid;place-items:center}.toast{position:fixed;right:26px;bottom:24px;z-index:40;background:#172942;color:#fff;border-radius:11px;padding:12px 18px;box-shadow:0 10px 35px #0003;max-width:480px}.toast.bad{background:#9f2841}.code-box{font-family:ui-monospace,Consolas,monospace;background:#eff2f8;padding:13px;border-radius:9px;word-break:break-all}.section{margin-top:18px}.badgecount{background:#3e5985;color:white;border-radius:100px;font-size:10px;padding:1px 6px}.fine{font-size:11px;color:#96a0b0}.redtext{color:var(--red);font-weight:700}.greentext{color:var(--green);font-weight:700}.account{background:#f0f4fc;border-radius:9px;padding:9px 12px;color:#324868}.checkboxline{display:inline-flex;align-items:center;gap:6px}input[type=checkbox]{accent-color:var(--blue)}.hint-rows>div{padding:10px 0;border-bottom:1px solid #edf1f5}.hint-rows>div:last-child{border:0}.pill-country{border-radius:7px;background:#edf3ff;color:#4569aa;padding:4px 7px;font-size:11px;font-weight:750}
@media(max-width:1120px){.cards.four{grid-template-columns:repeat(2,1fr)}.side{width:210px;min-width:210px}.content{padding:22px}.bar{padding:0 22px}}@media(max-width:780px){.layout{display:block}.side{width:100%;min-width:0;min-height:0;height:auto;position:static;display:block;padding:10px}.side .logo{padding:6px 8px}.navwrap{display:flex;gap:3px;overflow:auto}.nav-item{width:auto;white-space:nowrap}.group-label,.sidebottom{display:none}.bar{height:auto;padding:15px;align-items:start;flex-wrap:wrap}.bar-right{width:100%;justify-content:space-between}.content{padding:15px}.pagehead{align-items:start;flex-direction:column}.cards.three,.cards.two{grid-template-columns:1fr}.formgrid,.formgrid.three{grid-template-columns:1fr}.modal{padding:17px}.cards.four{gap:10px}.metric{min-height:108px;padding:14px}}

/* V3.2 business-facing rule builder */
.diy-modal{width:min(1080px,98vw)}.diy-line{padding:15px;margin:12px 0;background:#f8faff;border:1px solid #dae5f3;border-radius:12px}.diy-line-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.diy-flags{display:flex;gap:18px;flex-wrap:wrap;align-items:center;padding:15px;margin-top:14px;background:#f4f7fd;border-radius:10px}.diy-line .field label{font-size:11px}.diy-line .fine{margin:9px 0 0}.diy-modal h3{margin-top:12px}

.roi-card{display:flex;flex-direction:column;gap:3px;background:#f3f6fc;border:1px solid #e3ebfa;padding:10px 16px;border-radius:10px;min-width:95px}.roi-card small{color:#63738c}.roi-card b{font-size:19px}

/* Exception triage: keep the last guidance column readable; scroll sideways instead of breaking every Chinese character. */
.exception-table .table{min-width:1440px;table-layout:auto}
.exception-table .table th,.exception-table .table td{white-space:nowrap;vertical-align:top}
.exception-table .table td:last-child{white-space:normal;min-width:275px;max-width:380px;line-height:1.55;overflow-wrap:break-word}
.exception-table details{margin-top:5px}
.exception-table summary{cursor:pointer;color:#325fd1}
.exception-table .tablebox{max-width:100%;overflow-x:auto}


/* V3 approval review: independently scroll the SKU grid with always-visible
   column names (including margin) while keeping the filter/actions above it. */
.batch-review-scroll{
  max-height:min(70vh,760px);
  overflow:auto;
  position:relative;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
}
.batch-review-table{
  min-width:1150px;
  border-collapse:separate;
  border-spacing:0;
}
.batch-review-table thead th{
  position:sticky;
  top:0;
  z-index:3;
  background:#eef3fb;
  box-shadow:0 2px 0 #dce6f5;
}
.batch-margin-sort{
  display:inline-flex;
  gap:6px;
  align-items:center;
  border:0;
  background:transparent;
  color:#344f78;
  cursor:pointer;
  padding:0;
  font:inherit;
  font-weight:750;
  white-space:nowrap;
}
.batch-margin-sort:hover,
.batch-margin-sort:focus-visible{
  color:#2056d4;
  text-decoration:underline;
}
.batch-margin-sort span{font-size:15px}
.batch-margin-label{
  color:#5e6f85;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
select.search.batch-margin-order{
  width:auto;
  min-width:185px;
  max-width:230px;
}

/* Net margin range filter follows the global margin sort control. */
select.search.batch-margin-range{
  width:auto;
  min-width:170px;
  max-width:225px;
}


/* Inline fee rules, visible without opening the editor. */
.fee-overview{min-width:330px;max-width:760px;line-height:1.5}
.fee-summary-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:6px}
.fee-summary-chip{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;border-radius:7px;
 background:#ecf3ff;color:#224b8d;border:1px solid #d7e4ff;padding:4px 7px;
 font-size:11px;font-weight:600}
.fee-summary-chip b{font-size:12px;color:#12346d}
.fee-summary-chip small{color:#657a9c;font-size:10px}
.fee-summary-chip.is-voucher{background:#e7f8ee;border-color:#c8ead8;color:#11734a}
.fee-summary-chip.is-voucher b{color:#0e744b}
.fee-details{margin-top:7px}
.fee-details>summary{cursor:pointer;color:#315dc4;font-size:11px;user-select:none}
.fee-details-scroll{max-width:100%;overflow-x:auto;margin:6px 0}
.fee-details-scroll table{width:100%;min-width:640px;border-collapse:collapse;font-size:11px}
.fee-details-scroll th,.fee-details-scroll td{padding:5px 7px;border-bottom:1px solid #e5edf7;text-align:left}
.fee-details-scroll th{background:#f4f7fc;color:#51637c}
.fee-copy-source{border:1px solid #dce6f5;border-radius:10px;padding:12px;margin-top:15px;background:#f8faff}
.fee-copy-source .small,.fee-copy-source .fine{display:block;margin-top:5px}
.fee-copy-targets{border:1px solid #dce6f5;border-radius:10px;max-height:42vh;overflow:auto}
.fee-copy-target{display:flex;gap:12px;padding:12px;align-items:flex-start;cursor:pointer;border-bottom:1px solid #e5edf6}
.fee-copy-target:last-child{border-bottom:none}
.fee-copy-target:hover{background:#f5f8ff}
.fee-copy-target>input{margin-top:4px;flex-shrink:0}
.fee-copy-target-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.fee-copy-target-main .small{color:#51637c}
.fee-copy-target-main .fine{white-space:normal;overflow-wrap:anywhere}
.fee-copy-results{padding:10px 0;max-height:42vh;overflow:auto}
.fee-copy-results>div{padding:8px 0;border-bottom:1px solid #e5edf6}
@media(max-width:780px){.fee-overview{min-width:240px}.fee-copy-targets{max-height:36vh}}


/* Keep the current shop and signed-in account visible while scrolling any page. */
.main > .bar{
  position:sticky;
  top:0;
  z-index:12; /* Below dialogs and notifications, above scrolling tables. */
  background:#fff;
  box-shadow:0 3px 12px #13284112;
}

/* Paste-first batch enrollment evidence UI */
.evidence-paste-zone{
  border:2px dashed #93abda;
  background:#f5f8ff;
  border-radius:12px;
  padding:24px;
  text-align:center;
  cursor:text;
  outline:0;
  transition:background .15s,border-color .15s,box-shadow .15s;
}
.evidence-paste-zone:hover,.evidence-paste-zone:focus-visible,
.evidence-paste-zone:focus,.evidence-paste-zone.is-dragging{
  border-color:#356aec;
  background:#eaf1ff;
  box-shadow:0 0 0 3px #356aec18;
}
.evidence-paste-zone.is-saving{opacity:.7;cursor:progress}
.evidence-paste-title{font-size:16px;font-weight:750;color:#274c91;margin-bottom:6px}
.evidence-paste-status{font-size:12px;color:#35598f;min-height:18px;margin-top:9px}
.evidence-gallery{display:flex;gap:12px;overflow-x:auto;padding:12px 1px 6px;max-width:100%}
.evidence-card{display:flex;flex-direction:column;gap:5px;flex:0 0 160px;min-width:0;padding:9px;border:1px solid #dce6f5;border-radius:10px;background:white;text-decoration:none;color:#304b70}
.evidence-card:hover{border-color:#7698e6;background:#f8faff}
.evidence-thumb,.evidence-file-icon{height:92px;width:100%;object-fit:contain;border-radius:6px;background:#f2f5fb}
.evidence-file-icon{display:grid;place-items:center;font-size:35px}
.evidence-filename{font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.evidence-card small{color:#8390a3;font-size:10px}
@media(max-width:780px){.evidence-paste-zone{padding:16px 10px}.evidence-card{flex-basis:134px}}


/* TKMY96 catalog: dense marketplace-style, text-only layout (no media assets). */
.tk-shop-products{display:flex;flex-direction:column;gap:16px;margin-top:14px}
.tk-summary{display:flex;align-items:stretch;gap:0;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;min-height:94px}
.tk-summary-item{padding:18px 24px;min-width:150px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:4px}
.tk-summary-item span{font-size:12px;color:var(--muted)}
.tk-summary-item strong{font-size:24px;line-height:1.2;font-weight:750;color:var(--text);font-variant-numeric:tabular-nums}
.tk-summary-safety{margin-left:auto;display:flex;align-items:center;padding:16px 24px;color:#64748b;font-size:12px;text-align:right}
.tk-panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.tk-toolbar{display:flex;align-items:center;gap:10px;padding:18px 20px 12px;flex-wrap:wrap}
.tk-search-group{display:flex;align-items:center;gap:8px;flex:1;min-width:270px}
.tk-search-group input{flex:1;min-width:130px;max-width:490px;margin:0}
.tk-progress{padding:0 20px 14px;font-size:12px;color:var(--muted)}
.tk-table-wrap{overflow-x:auto;width:100%}
.tk-products-table{width:100%;min-width:850px;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:13px}
.tk-products-table>thead{background:#f6f8fb}
.tk-products-table>thead th{font-weight:650;color:#526075;font-size:12px;padding:13px 16px;border-block:1px solid var(--line)}
.tk-products-table>tbody>tr.tk-product-row>td{padding:18px 16px;vertical-align:middle;border-bottom:1px solid var(--line)}
.tk-products-table>tbody>tr.tk-product-row:hover{background:#f9fbff}
.tk-product-name{font-size:13px;font-weight:650;line-height:1.5;overflow-wrap:anywhere;color:#202d42;max-width:520px}
.tk-muted{color:#8190a5;font-size:11px;margin-top:6px;overflow-wrap:anywhere}
.tk-cell-number,.tk-cell-price,.tk-strong{font-variant-numeric:tabular-nums;font-weight:650;white-space:nowrap}
.tk-cell-price{font-size:12px}
.tk-pill{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:600}
.tk-pill-green{background:#e9f8ef;color:#16824a}
.tk-pill-amber{background:#fff3dc;color:#98600b}
.tk-pill-gray{background:#f0f2f6;color:#626c7d}
.tk-actions{display:flex;align-items:flex-start;flex-direction:column;gap:8px}
.tk-link,.tk-text-btn{font-size:12px;color:#2563eb;text-decoration:none;font-weight:600}
.tk-link:hover,.tk-text-btn:hover{text-decoration:underline}
.tk-text-btn{background:none;border:0;padding:0;text-align:left}
.tk-detail-row[hidden]{display:none}
.tk-detail-row>td{padding:0 14px 14px!important;border-bottom:1px solid var(--line);background:#f9fbfe}
.tk-sku-box{padding:14px 18px;border:1px solid #e7edf6;border-radius:8px;background:#fff}
.tk-sku-heading{font-size:12px;font-weight:700;color:#44536a;margin-bottom:9px}
.tk-sku-scroll{overflow-x:auto}
.tk-sku-scroll table{width:100%;border-collapse:collapse;min-width:650px}
.tk-sku-scroll th,.tk-sku-scroll td{padding:9px 12px;text-align:left;border-bottom:1px solid #eef1f6;font-size:12px}
.tk-sku-scroll th{background:#f8fafc;color:#69778b}
.tk-empty{text-align:center;padding:48px 20px;color:#8390a3}
.tk-pagination{padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#68788e;font-size:12px}
.tk-pagination>div{display:flex;gap:8px}
@media(max-width:900px){.tk-summary{flex-wrap:wrap}.tk-summary-item{flex:1;min-width:125px;padding:14px}.tk-summary-safety{margin-left:0;width:100%;padding:9px 14px;border-top:1px solid var(--line)}.tk-toolbar{padding:12px}.tk-progress{padding:0 12px 10px}.tk-pagination{padding:12px;flex-wrap:wrap}}

/* TikTok-style catalog status tabs; counts are for synchronized TKMY96 records. */
.tk-status-tabs{display:flex;gap:22px;align-items:center;overflow-x:auto;white-space:nowrap;padding:0 20px;border-bottom:1px solid var(--line);scrollbar-width:thin}
.tk-status-tab{position:relative;flex:0 0 auto;border:0;border-bottom:3px solid transparent;background:none;color:#637083;padding:15px 0 12px;font-size:13px;font-weight:650;display:flex;align-items:center;gap:6px}
.tk-status-tab:hover{color:#2563eb}
.tk-status-tab.is-active{color:#2563eb;border-bottom-color:#2563eb}
.tk-tab-count{font-size:11px;font-weight:600;color:#8b95a6;font-variant-numeric:tabular-nums}
.tk-status-tab.is-active .tk-tab-count{color:#2563eb}
.tk-status-tab:focus-visible{outline:2px solid #2563eb;outline-offset:-2px;border-radius:2px}
@media(max-width:900px){.tk-status-tabs{gap:16px;padding:0 12px}.tk-status-tab{font-size:12px;padding:12px 0 10px}}


/* Compact product list: two title lines, hover shows the untruncated title. */
.tk-shop-products{gap:10px}
.tk-summary{min-height:70px}
.tk-summary-item{padding:11px 18px}
.tk-summary-item strong{font-size:21px}
.tk-summary-safety{padding:10px 16px}
.tk-status-tabs{gap:17px}
.tk-status-tab{padding:10px 0 8px}
.tk-toolbar{padding:10px 14px 8px}
.tk-progress{padding:0 14px 9px}
.tk-products-table>thead th{padding:9px 12px}
.tk-products-table>tbody>tr.tk-product-row>td{padding:9px 12px;vertical-align:middle}
.tk-product-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;max-width:100%;font-size:12px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.tk-product-row .tk-muted{margin-top:2px;font-size:10px;line-height:1.35}
.tk-pill{font-size:10px;padding:2px 7px}
.tk-actions{gap:3px}
.tk-link,.tk-text-btn{font-size:11px;line-height:1.3}
.tk-pagination{padding:9px 14px}
.tk-sku-box{padding:10px 13px}
.tk-sku-scroll th,.tk-sku-scroll td{padding:7px 10px}

/* Unified shop administration: store details and API authorization share one entry. */
.tk-management-tabs{display:flex;gap:24px;align-items:center;border-bottom:1px solid var(--line);margin:0 0 16px;padding:0 6px;overflow-x:auto}
.tk-management-tab{background:transparent;color:var(--muted);font-size:14px;font-weight:650;border:0;border-bottom:3px solid transparent;padding:12px 4px;white-space:nowrap}
.tk-management-tab.active{color:var(--blue);border-bottom-color:var(--blue)}
.tk-management-tab:hover{color:var(--blue)}
.tk-management-tab:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}

/* Product links now own their SKU matching, procurement, and profit actions. */
.tk-products-table{min-width:990px}
.tk-sku-scroll table.tk-cost-table{min-width:1230px;width:100%;table-layout:auto}
.tk-cost-table th,.tk-cost-table td{padding:6px 9px!important;vertical-align:middle;line-height:1.4}
.tk-cost-table th{white-space:nowrap;font-size:11px}
.tk-cost-table td{font-size:11px}
.tk-cost-table td:nth-child(3){min-width:115px}
.tk-cost-table td:nth-child(4){min-width:95px}
.tk-cost-table td:nth-child(9){min-width:100px}
.tk-sku-id{font-size:10px;color:#69778b;font-variant-numeric:tabular-nums;white-space:nowrap}
.tk-nowrap{white-space:nowrap;font-variant-numeric:tabular-nums}
.tk-margin-good{color:#18834a;font-weight:700;white-space:nowrap}
.tk-margin-low{color:#d45b20;font-weight:700;white-space:nowrap}
.tk-reason{font-size:10px;color:#9b670a;line-height:1.4;max-width:155px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tk-fee-alert{background:#fffbeb;color:#86590a;border:1px solid #f9e4ad;padding:8px 12px;margin:0 12px 12px;border-radius:7px}
.tk-match-search{display:flex;gap:8px;margin:12px 0 6px}
.tk-match-search input{flex:1;min-width:100px}
.tk-match-options{display:flex;flex-direction:column;max-height:280px;overflow-y:auto;gap:4px;padding:8px 0}
.tk-company-option{display:grid;grid-template-columns:minmax(90px,1fr) minmax(70px,130px);gap:4px 8px;text-align:left;align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:9px 11px;color:#263449}
.tk-company-option:hover,.tk-company-option.selected{background:#eef5ff;border-color:#4f80ec}
.tk-company-option span{color:#18834a;font-size:11px;text-align:right}
.tk-company-option small{grid-column:1/-1;color:#8291a7;font-size:10px}
.tk-match-dialog .fine{margin-top:4px}
@media(max-width:900px){.tk-products-table{min-width:960px}.tk-cost-table{min-width:1130px}}

/* Global SKU match-state filter in the TikTok product management toolbar. */
.tk-match-filter-label{font-size:12px;font-weight:700;color:#526075;white-space:nowrap}
.tk-match-filter{width:auto;min-width:180px;max-width:230px;flex:0 0 auto;margin:0!important}
.tk-summary-item .tk-unmatched-count{color:#b45309}
.tk-sku-heading .tk-toggle-unmatched{margin-left:14px;font-weight:600}
@media(max-width:1000px){.tk-match-filter{min-width:162px}.tk-toolbar .tk-search-group{flex-basis:220px}}

/* Fast country-SKU pool filters and protected delete controls. */
.cp-quick-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:12px;margin-top:12px;border-top:1px solid var(--line)}
.cp-quick-label{font-weight:700;color:var(--muted);font-size:12px;white-space:nowrap}
.cp-quick-toolbar .search{width:auto;min-width:135px;max-width:190px;font-size:12px;padding:7px 9px}
.cp-quick-toolbar .btn{padding:7px 10px}
.cp-pool-table .tablebox{overflow-x:auto}
.cp-pool-table .table{min-width:1050px}
.cp-pool-table .table th{white-space:nowrap}
.cp-pool-table .table td{vertical-align:middle}
.cp-pool-table .table td:nth-child(2){max-width:230px;overflow-wrap:anywhere}
.cp-pool-table .table td:nth-child(6){min-width:155px}
.cp-pool-table .table td:nth-child(7){min-width:105px}
.cp-result-count{font-size:12px;color:var(--muted);padding:5px 0 11px}
.cp-delete-sku.btn,.cp-restore-sku.btn{font-size:11px;padding:5px 10px}
.cp-delete-sku.btn:disabled{opacity:.45;cursor:not-allowed}
.cp-linked-example{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}
.cp-linked-example .btn{font-size:11px}
.tk-cost-table .tk-unlink-sku{color:#b45309;margin-left:5px}
.tk-cost-table .tk-relink-sku{margin-left:5px}
@media(max-width:800px){.cp-quick-toolbar .search{flex:1 1 135px;max-width:none}}

/* Inline SKU cost/SPU editing: keep actions compact inside dense tables. */
.cp-pool-table .cp-actions{display:flex;gap:5px;align-items:center;flex-wrap:nowrap}
.cp-pool-table .cp-actions .btn{white-space:nowrap;font-size:11px;padding:5px 8px}
.cp-pool-table .cp-edit-sku{color:#1d4ed8;background:#eef4ff;border-color:#cbdcff}
.cp-pool-table .cp-edit-sku:hover{background:#e1edff}
.cp-pool-table .cp-result-count{padding:7px 0 10px}

/* Gift bundle rules & main-SPU display; compact in the existing SKU tables. */
.cp-bundle-rules{max-width:880px;padding:20px}
.cp-bundle-rules .field{max-width:520px;margin:14px 0}
.cp-bundle-rules textarea{width:100%;min-height:108px;line-height:1.6;font-family:inherit;resize:vertical;padding:10px;border:1px solid var(--line);border-radius:8px}
.cp-bundle-rules h3{margin:0 0 8px}
.cp-bundle-rules hr{border:0;border-top:1px solid var(--line);margin:16px 0}
.cp-bundle-label{font-size:10px;color:#48708a;font-weight:500}
.cp-set-primary{font-size:11px;white-space:nowrap;margin-top:3px}
.tk-bundle-tag{font-size:10px;color:#27698a;white-space:normal;line-height:1.4}
.tk-pick-main{font-size:11px;white-space:nowrap;margin-top:2px}

/* Bulk SKU maintenance: compact page/all selection and preflight summary. */
.cp-bulk-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:5px 0 12px;border-bottom:1px solid var(--line);margin-bottom:9px}
.cp-bulk-bar .btn{padding:6px 10px;font-size:12px;white-space:nowrap}
.cp-bulk-bar #cp-bulk-open{margin-left:auto}
.cp-bulk-count{font-size:12px;font-weight:650;color:#27446e}
.cp-pick-cell{width:36px;min-width:36px;text-align:center;vertical-align:middle}
.cp-bulk-row{width:16px;height:16px;cursor:pointer;accent-color:#3567e6}
.cp-bulk-overwrite{display:flex;gap:9px;align-items:center;margin:12px 0;font-size:12px;font-weight:600}
.cp-bulk-overwrite input{width:16px;height:16px;accent-color:#3567e6}
.cp-bulk-preview{border:1px solid #d8e3f5;background:#f7faff;border-radius:8px;padding:12px;margin:12px 0;font-size:12px;line-height:1.8;max-height:280px;overflow:auto}
.cp-bulk-preview-list{margin-top:8px;padding-top:8px;border-top:1px solid #dae5f4;line-height:1.75;overflow-wrap:anywhere}
.cp-bulk-preview-list div{padding:3px 0;border-bottom:1px solid #eaf0fa}
.cp-pool-table .table th:first-child{min-width:45px;text-align:center}
.cp-pool-table .table td:first-child{min-width:45px}
@media(max-width:900px){.cp-bulk-bar #cp-bulk-open{margin-left:0}}

/* SKU original catalog price versus pre-voucher seller promotional price. */
.tk-products-table{min-width:1120px}
.tk-products-table th,.tk-products-table td{vertical-align:middle}
.tk-cost-table{min-width:1510px}
.tk-cell-price{white-space:normal;font-size:11px;line-height:1.5}
.tk-promo-price{font-weight:750;color:#c35b16;white-space:nowrap}
.tk-promo-pending{display:inline-block;font-size:11px;color:#8a5b0c;background:#fff4d8;padding:3px 6px;border-radius:5px}
.tk-promo-notice{font-size:11px;line-height:1.6;color:#526681;background:#f2f6ff;border-left:3px solid #7b9ff3}
#tk-promo-sync{font-weight:650;border-color:#a6b9ec;color:#244fc5;background:#f1f5ff;white-space:nowrap}
#tk-promo-sync:disabled{opacity:.6}
#tk-promo-stop{white-space:nowrap}
.tk-toolbar{gap:8px;flex-wrap:wrap}
@media(max-width:1050px){.tk-products-table{min-width:1160px}.tk-cost-table{min-width:1510px}}

/* Product list: seller promotion and SKU-eligible store coupon, no drill-down. */
.tk-promo-coupon-col{overflow-wrap:anywhere}
.tk-product-coupon-summary{margin-top:6px;padding-top:6px;border-top:1px dashed #dae3ed;
  line-height:1.4;white-space:normal;max-width:100%;font-weight:400}
.tk-product-coupon-label{font-size:11px;font-weight:700;color:#2055a0;overflow-wrap:anywhere}
.tk-product-coupon-meta{margin-top:2px;font-size:10px;color:#63758a;overflow-wrap:anywhere}
.tk-product-coupon-after{margin-top:3px;font-size:11px;font-weight:700;color:#27664f;overflow-wrap:anywhere}
.tk-product-coupon-hint{margin-top:3px;font-size:10px;color:#7a8697}
.tk-product-coupon-warning{margin-top:3px;font-size:10px;font-weight:650;color:#a65b18}
.tk-product-coupon-partial{font-size:10px;color:#60728c;font-weight:400}
.tk-product-coupon-muted{font-size:10px;color:#8894a4}

/* Compact TKMY96 SKU accounting viewport: default profit-first, full fields on demand.
   Keep all columns accessible without extending the whole page past the right edge. */
.tk-shop-products,.tk-panel,.tk-table-wrap,.tk-detail-row,.tk-sku-box{min-width:0;max-width:100%}
.tk-detail-row>td{overflow:hidden}
.tk-sku-box{padding:8px 10px;overflow:hidden}
.tk-sku-heading{display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:5px 10px;min-height:30px;margin-bottom:5px;line-height:1.4}
.tk-sku-controls{margin-left:auto;display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.tk-sku-view,.tk-sku-pan{font-size:11px;line-height:1.3;padding:4px 8px;
  background:white;color:#546985;border:1px solid #d9e2ef;border-radius:5px;
  font-weight:650;cursor:pointer}
.tk-sku-view:hover,.tk-sku-pan:hover{border-color:#94b4eb;color:#2454a7;background:#f5f8ff}
.tk-sku-view.is-active{background:#eaf1ff;border-color:#95b3e9;color:#2255b8}
.tk-sku-view:focus-visible,.tk-sku-pan:focus-visible,.tk-sku-scroll:focus-visible{
  outline:2px solid #3466d6;outline-offset:2px}
.tk-sku-scroll{max-width:100%;width:100%;min-width:0;
  max-height:min(62vh,630px);overflow:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#9fb3d2 #eef3fa;border:1px solid #e8edf5;
  border-radius:5px}
.tk-sku-scroll table.tk-cost-table{border-collapse:separate;border-spacing:0;
  margin:0;max-width:none}
.tk-sku-scroll .tk-cost-table th{position:sticky;top:0;z-index:3;
  background:#f3f7fd;box-shadow:0 1px 0 #e4eaf3;font-size:11px}
.tk-sku-scroll .tk-cost-table td{background:white}
.tk-sku-scroll .tk-cost-table th,.tk-sku-scroll .tk-cost-table td{
  padding:5px 6px!important;line-height:1.35;vertical-align:middle}
.tk-sku-scroll .tk-muted{margin-top:2px;font-size:10px;line-height:1.3}
.tk-sku-scroll .tk-cost-table .tk-text-btn{font-size:10px;line-height:1.25}
.tk-sku-scroll .tk-cost-table .tk-reason{max-width:110px}
.tk-sku-scroll.tk-sku-core table.tk-cost-table{min-width:1080px;width:100%;table-layout:fixed}
.tk-sku-core .tk-cost-table th:nth-child(1),
.tk-sku-core .tk-cost-table td:nth-child(1),
.tk-sku-core .tk-cost-table th:nth-child(4),
.tk-sku-core .tk-cost-table td:nth-child(4),
.tk-sku-core .tk-cost-table th:nth-child(5),
.tk-sku-core .tk-cost-table td:nth-child(5){display:none}
.tk-sku-core .tk-cost-table th:nth-child(2){width:12%}
.tk-sku-core .tk-cost-table th:nth-child(3){width:15%}
.tk-sku-core .tk-cost-table th:nth-child(6){width:16%}
.tk-sku-core .tk-cost-table th:nth-child(7){width:13%}
.tk-sku-core .tk-cost-table th:nth-child(8){width:11%}
.tk-sku-core .tk-cost-table th:nth-child(9){width:9%}
.tk-sku-core .tk-cost-table th:nth-child(10){width:11%}
.tk-sku-core .tk-cost-table th:nth-child(11){width:7%}
.tk-sku-core .tk-cost-table th:nth-child(12){width:6%}
.tk-sku-core .tk-cost-table td:nth-child(2),.tk-sku-core .tk-cost-table td:nth-child(3){
  min-width:0;overflow-wrap:anywhere}
.tk-sku-core .tk-cost-table td:nth-child(6) .tk-muted,
.tk-sku-core .tk-cost-table td:nth-child(7) .tk-muted,
.tk-sku-core .tk-cost-table td:nth-child(8) .tk-muted{
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
.tk-sku-core .tk-cost-table th:nth-child(2),
.tk-sku-core .tk-cost-table td:nth-child(2){position:sticky;left:0;z-index:2;
  background:#fff;box-shadow:1px 0 0 #e4eaf3}
.tk-sku-core .tk-cost-table th:nth-child(2){background:#f3f7fd;z-index:5}
.tk-sku-scroll.tk-sku-full table.tk-cost-table{min-width:1510px;width:100%;
  table-layout:auto}
.tk-sku-full .tk-cost-table th:first-child,
.tk-sku-full .tk-cost-table td:first-child{position:sticky;left:0;z-index:2;
  background:#fff;box-shadow:1px 0 0 #e4eaf3}
.tk-sku-full .tk-cost-table th:first-child{background:#f3f7fd;z-index:5}
@media(max-width:900px){
  .tk-sku-scroll{max-height:57vh}
  .tk-sku-scroll.tk-sku-core table.tk-cost-table{min-width:1030px}
  .tk-sku-controls{width:100%;margin-left:0}
}

/* Read-only SKU financial trace: retain fee basis and monthly fixed cost. */
.tk-profit-audit{margin-top:4px!important;font-size:10px!important}
.tk-audit-grid{margin-top:12px;border:1px solid #dbe5f3;border-radius:8px;overflow:hidden}
.tk-audit-table{border-collapse:collapse;width:100%;font-size:12px}
.tk-audit-table td{padding:7px 10px;border-bottom:1px solid #e6edf7}
.tk-audit-table tr:last-child td{border-bottom:0;font-weight:700}
.tk-audit-table td:first-child{color:#4d5f79}
.tk-audit-highlight{background:#fff8e9;color:#805414;font-weight:700}
.tk-audit-scroll{max-height:220px;margin-top:8px}
.tk-audit-scroll table.tk-cost-table{min-width:460px!important;width:100%}

/* TikTok product-management cockpit refresh — presentation only.
   Keep headings, table controls and all finance/SKU data accessible. */
.tk-management-dashboard{gap:12px;margin-top:10px;color:#233650}
.tk-dashboard-context{display:flex;align-items:center;justify-content:space-between;
  gap:6px 14px;flex-wrap:wrap;padding:2px 2px 0;font-size:11px;color:#708097}
.tk-dashboard-context-left{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.tk-dashboard-store{font-size:12px;font-weight:750;color:#2756a5}
.tk-summary.tk-metrics-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;min-height:0;background:transparent;border:0;border-radius:0;overflow:visible}
.tk-metrics-grid>.tk-metric-card{min-width:0;padding:12px 13px 10px;border:1px solid #e3e9f3;
  border-radius:10px;background:#fff;box-shadow:0 1px 2px rgb(27 48 86 / 4%);
  gap:5px;position:relative}
.tk-metric-card:before{content:"";position:absolute;left:12px;top:0;right:12px;
  height:2px;background:#e5eaf1;border-radius:2px}
.tk-metric-card.tk-metric-blue:before{background:#6e9bed}
.tk-metric-card.tk-metric-green:before{background:#65ae8b}
.tk-metric-card.tk-metric-warning:before{background:#e4b36b}
.tk-metrics-grid .tk-metric-card>span{color:#6a7b90;font-size:11px;font-weight:600}
.tk-metrics-grid .tk-metric-card>strong{font-size:23px;line-height:1.15;
  font-weight:760;letter-spacing:-.5px;color:#19345b}
.tk-metrics-grid .tk-metric-warning>strong{color:#a56316}
.tk-metrics-grid .tk-metric-card>small{font-size:10px;color:#8290a3}
.tk-management-dashboard .tk-panel{border-color:#e0e8f3;box-shadow:0 2px 8px rgb(27 48 86 / 3%)}
/* Product status navigation: primary, accessible and consistent for all stores. */
.tk-management-dashboard .tk-status-tabs{
  display:flex;align-items:stretch;gap:10px;padding:12px 16px;
  background:#f6f9ff;border-bottom:1px solid #dbe5f2;
  overflow-x:auto;scrollbar-width:thin
}
.tk-management-dashboard .tk-status-tab{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:46px;padding:11px 17px;flex:0 0 auto;
  background:#fff;border:1px solid #dbe3ef;border-radius:10px;
  color:#425673;font-size:15px;font-weight:700;line-height:1.25;
  box-shadow:0 1px 2px rgb(20 44 90 / 4%);
  transition:background .15s,border-color .15s,color .15s,box-shadow .15s
}
.tk-management-dashboard .tk-status-tab:hover{
  color:#1d4ed8;background:#eff5ff;border-color:#93b4ee;
}
.tk-management-dashboard .tk-status-tab.is-active{
  color:#fff;background:#2459d3;border-color:#2459d3;
  font-weight:800;box-shadow:0 3px 9px rgb(37 89 211 / 18%)
}
.tk-management-dashboard .tk-tab-count{
  display:inline-flex;align-items:center;justify-content:center;min-width:27px;
  padding:3px 8px;border-radius:999px;background:#edf2fa;
  color:#46617f;font-size:13px;font-weight:800;line-height:1.3
}
.tk-management-dashboard .tk-status-tab.is-active .tk-tab-count{
  background:#fff;color:#2459d3
}
.tk-management-dashboard .tk-status-tab:focus-visible{
  outline:3px solid #f59e0b;outline-offset:2px
}
@media(max-width:920px){
  .tk-management-dashboard .tk-status-tabs{gap:8px;padding:10px 12px}
  .tk-management-dashboard .tk-status-tab{font-size:14px;min-height:44px;padding:9px 13px}
}
.tk-management-dashboard .tk-command-bar{display:flex;align-items:center;justify-content:space-between;
  gap:10px 16px;padding:12px 15px;border-bottom:1px solid #edf0f6}
.tk-toolbar-filters{display:flex;align-items:center;gap:8px;min-width:270px;flex:1 1 445px}
.tk-management-dashboard .tk-match-filter{max-width:195px;min-width:150px}
.tk-management-dashboard .tk-search-group{min-width:165px;flex:1}
.tk-management-dashboard .tk-search-group input{width:100%;max-width:none}
.tk-toolbar-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex:0 1 auto;flex-wrap:wrap}
.tk-toolbar-actions .btn,.tk-toolbar-filters .btn{font-size:11px;padding:8px 10px;white-space:nowrap}
.tk-toolbar-actions .btn.primary{padding:8px 14px;box-shadow:0 2px 5px rgb(37 99 235 / 14%)}
.tk-sync-status{display:flex;align-items:center;justify-content:flex-start;
  gap:5px 18px;flex-wrap:wrap;padding:8px 16px;color:#65758c;
  background:#f8fafc;font-size:10px;border-bottom:1px solid #edf1f6}
.tk-insight-strip{display:flex;justify-content:space-between;flex-wrap:wrap;
  gap:6px 16px;padding:9px 16px;background:#fff;border-bottom:1px solid #edf1f6}
.tk-insight-brief{font-size:11px;color:#64768d;line-height:1.5}
.tk-meta-disclosure{border-bottom:1px solid #edf1f6;margin:0}
.tk-meta-disclosure>summary{display:flex;align-items:center;justify-content:space-between;
  gap:8px 15px;flex-wrap:wrap;list-style:none;padding:8px 16px 8px 30px;
  color:#546a88;font-size:11px;cursor:pointer;position:relative}
.tk-meta-disclosure>summary::-webkit-details-marker{display:none}
.tk-meta-disclosure>summary:before{content:"▸";position:absolute;left:15px;
  font-size:12px;color:#7892b5}
.tk-meta-disclosure[open]>summary:before{content:"▾"}
.tk-meta-disclosure>summary b{font-size:11px;font-weight:700;color:#2c466a}
.tk-meta-disclosure>summary span{flex:1 1 auto;text-align:right;color:#647b99;font-size:10px}
.tk-meta-disclosure>summary:hover{background:#f8fbff;color:#234a91}
.tk-meta-disclosure>summary:focus-visible{outline:2px solid #4b79d8;outline-offset:-2px}
.tk-meta-disclosure>.tk-progress{padding:8px 16px 12px;line-height:1.65;
  color:#60728d;font-size:11px;margin:0}
.tk-meta-disclosure>.tk-promo-notice{margin:0 14px 12px;padding:10px 12px;border-radius:6px}
.tk-meta-disclosure .tk-promo-diagnostic-details{margin-top:7px}
.tk-meta-disclosure .fine{line-height:1.6}
.tk-management-dashboard .tk-fee-alert{margin:9px 14px;padding:9px 12px;
  border-radius:7px;font-size:11px}
.tk-management-dashboard .tk-table-wrap{padding:6px 10px 0;background:#fff}
.tk-management-dashboard .tk-products-table{min-width:1130px;
  border-collapse:separate;border-spacing:0 4px;font-size:12px}
.tk-management-dashboard .tk-products-table>thead th{background:#f6f8fc;
  padding:9px 10px;font-size:11px;border:0;color:#52647d}
.tk-management-dashboard .tk-products-table>thead th:first-child{border-radius:7px 0 0 7px}
.tk-management-dashboard .tk-products-table>thead th:last-child{border-radius:0 7px 7px 0}
.tk-management-dashboard .tk-products-table>tbody>tr.tk-product-row>td{
  padding:12px 10px;background:#fff;border-top:1px solid #edf1f6;
  border-bottom:1px solid #edf1f6}
.tk-management-dashboard .tk-products-table>tbody>tr.tk-product-row>td:first-child{
  border-left:3px solid #e1e8f2;border-radius:8px 0 0 8px}
.tk-management-dashboard .tk-products-table>tbody>tr.tk-product-row>td:last-child{
  border-right:1px solid #edf1f6;border-radius:0 8px 8px 0}
.tk-management-dashboard .tk-products-table>tbody>tr.tk-product-row:hover>td{background:#f8fbff}
.tk-management-dashboard .tk-products-table>tbody>tr.tk-product-row.tk-profit-risk>td:first-child{
  border-left-color:#e8aa72}
.tk-management-dashboard .tk-products-table>tbody>tr.tk-product-row.tk-profit-good>td:first-child{
  border-left-color:#8dc9ae}
.tk-management-dashboard .tk-products-table>tbody>tr.tk-detail-row>td{
  padding:3px 8px 10px!important;background:#fbfcff;border-bottom:1px solid #e8eef7;
  overflow:hidden}
.tk-management-dashboard .tk-product-name{font-size:12.5px;line-height:1.45;
  font-weight:720;max-width:100%;-webkit-line-clamp:2;line-clamp:2}
.tk-product-title-block .tk-muted{margin-top:5px}
.tk-management-dashboard .tk-product-row .tk-cell-price{font-size:11.5px}
.tk-management-dashboard .tk-product-coupon-summary{margin-top:5px;padding-top:5px}
.tk-management-dashboard .tk-product-coupon-label{font-size:11px;line-height:1.4;
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;
  -webkit-box-orient:vertical}
.tk-management-dashboard .tk-product-coupon-meta{font-size:10px;margin-top:2px}
.tk-management-dashboard .tk-product-coupon-after{margin-top:4px;font-size:11px}
.tk-product-margin{font-size:13px;line-height:1.4;font-weight:760;white-space:nowrap}
.tk-product-good-caption{color:#30815c;font-size:10px;margin-top:2px}
.tk-product-risk-caption{color:#b86a24;font-size:10px;margin-top:2px}
.tk-management-dashboard .tk-actions{gap:5px;align-items:stretch}
.tk-expand-primary{border:1px solid #bcd0f2;background:#edf4ff;color:#2858a6;
  padding:6px 10px;border-radius:6px;text-align:center;font-size:11px;
  font-weight:700;cursor:pointer;white-space:nowrap}
.tk-expand-primary:hover{background:#dfebff;border-color:#8fb2ea}
.tk-expand-primary:focus-visible{outline:2px solid #3972cb;outline-offset:2px}
.tk-more-actions{font-size:11px;color:#60738e}
.tk-more-actions>summary{cursor:pointer;list-style:none;text-align:center;
  font-size:10px;font-weight:650;color:#476897;padding:3px}
.tk-more-actions>summary::-webkit-details-marker{display:none}
.tk-more-actions>summary:after{content:" ▾";font-size:9px}
.tk-more-actions[open]>summary:after{content:" ▴"}
.tk-more-actions-popover{display:flex;flex-direction:column;gap:7px;
  background:#f8fbff;border:1px solid #e4eaf4;border-radius:6px;padding:8px;
  margin-top:5px;min-width:115px}
.tk-more-actions-popover .tk-link,.tk-more-actions-popover .tk-text-btn{
  font-size:10px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.tk-management-dashboard .tk-pagination{padding:12px 16px}
@media(max-width:1500px){
  .tk-summary.tk-metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tk-toolbar-actions{flex:1 1 100%;justify-content:flex-end}
}
@media(max-width:920px){
  .tk-summary.tk-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tk-toolbar-filters{flex-wrap:wrap}
  .tk-toolbar-actions{justify-content:flex-start}
  .tk-management-dashboard .tk-status-tabs{gap:14px}
  .tk-management-dashboard .tk-products-table{min-width:1080px}
}
@media(max-width:540px){
  .tk-summary.tk-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .tk-metrics-grid>.tk-metric-card{padding:10px}
  .tk-metrics-grid .tk-metric-card>strong{font-size:19px}
  .tk-toolbar-filters,.tk-management-dashboard .tk-search-group{flex-basis:100%;min-width:0}
  .tk-dashboard-context{font-size:10px}
  .tk-toolbar-actions .btn{flex:1 1 auto}
  .tk-meta-disclosure>summary span{text-align:left}
}

/* TikTok商品管理：紧凑筛选区与右侧核算说明 */
.tk-management-dashboard .tk-toolbar-filters{flex-wrap:wrap;gap:8px;align-items:center}
.tk-management-dashboard .tk-match-filter{min-width:146px;max-width:190px}
.tk-management-dashboard .tk-search-group{flex:1 1 225px;min-width:205px}
.tk-management-dashboard .tk-margin-filter{min-width:148px;max-width:182px}
.tk-management-dashboard .tk-profit-sort{min-width:140px;max-width:178px}
.tk-filter-label{font-size:11px;font-weight:650;color:#52677f;white-space:nowrap}
.tk-rules-toggle{border:1px solid #bfd1e8;background:#fff;color:#3c5d88}
.tk-rule-panel{position:fixed;z-index:1050;right:0;top:54px;bottom:0;
  width:min(590px,96vw);max-width:100%;overflow-y:auto;overscroll-behavior:contain;
  background:#fff;border-left:1px solid #dce5f0;box-shadow:-12px 0 34px rgb(26 45 79 / 18%);
  padding:0 14px 26px;color:#334155}
.tk-rule-panel[hidden]{display:none!important}
.tk-rule-heading{position:sticky;top:0;background:#fff;display:flex;
  align-items:center;justify-content:space-between;gap:12px;
  padding:16px 4px 12px;border-bottom:1px solid #e5edf6;z-index:2}
.tk-rule-heading b{font-size:15px}
.tk-rule-panel .tk-insight-strip{padding:12px 8px}
.tk-rule-panel .tk-insight-brief{font-size:12px}
.tk-rule-panel .tk-meta-disclosure>summary{padding-top:12px;padding-bottom:12px;font-size:12px}
.tk-rule-panel .tk-meta-disclosure>summary b{font-size:12px}
@media(max-width:920px){
  .tk-rule-panel{top:48px}
  .tk-management-dashboard .tk-search-group{flex-basis:100%}
}

/* 2026-11 core link monitoring: compact operational cards and honest
   analytics graphs. No fabricated metrics are rendered. */
.tk-management-dashboard .tk-products-table{min-width:1240px}
.tk-product-sales-cell{white-space:nowrap;min-width:115px}
.tk-product-sales-line{font-size:11px;line-height:1.5;color:#3b5275}
.tk-product-sales-line b{color:#687b92;font-weight:550}
.tk-watch-active,.tk-monitor-add{display:block;min-height:30px;border-radius:6px;
  border:1px solid #9cbce9;background:#f0f6ff;color:#235f9f;font-size:10px;
  font-weight:700;cursor:pointer;padding:5px 8px;text-align:center;white-space:nowrap}
.tk-watch-active{background:#e7f8f1;border-color:#92d1b2;color:#176e4b}
.tk-monitor-add:hover,.tk-watch-active:hover{filter:brightness(.97)}
.tk-opportunity-trigger{border-color:#a8c5df;color:#2e6476;background:#edf8f8}
.tk-opportunity-section{padding:14px 17px;border-bottom:1px solid #dde8f5;
  background:#f8fbff;display:flex;flex-direction:column;gap:10px}
.tk-opportunity-section[hidden]{display:none!important}
.tk-opportunity-title{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.tk-opportunity-title b{color:#264d78;font-size:15px}
.tk-opportunity-title p{margin:4px 0 0}
.tk-opportunity-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
  gap:10px;align-items:start}
.tk-opportunity-body>.fine,.tk-opportunity-body>.notice{grid-column:1/-1;margin:0}
.tk-opportunity-card{border:1px solid #dce6f4;background:#fff;border-radius:10px;
  display:flex;flex-direction:column;gap:11px;padding:13px;min-height:175px;
  box-shadow:0 1px 4px rgb(19 50 95 / 4%)}
.tk-opportunity-card>div:first-child b{font-size:12px}
.tk-opportunity-facts{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tk-opportunity-facts>span{display:flex;flex-direction:column;gap:3px}
.tk-opportunity-facts b{font-size:16px;color:#1e4269}
.tk-opportunity-facts small{font-size:10px;color:#7b8b9f}
.tk-opportunity-facts>.tk-opportunity-up{color:#16795d;font-size:11px;font-weight:700}
.tk-opportunity-card .btn{align-self:flex-end}
.core-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px;margin:12px 0 16px}
.core-kpi{padding:13px 15px;border:1px solid #e1e8f1;border-radius:10px;
  background:#fff;min-width:0;display:flex;flex-direction:column;gap:6px;
  box-shadow:0 1px 3px rgb(20 44 83 / 3%)}
.core-kpi-label{color:#607791;font-size:11px;font-weight:600}
.core-kpi strong{font-size:22px;line-height:1.2;color:#213854;overflow-wrap:anywhere}
.core-kpi small{font-size:10px;line-height:1.35;color:#8290a3}
.core-insight{margin:11px 0 15px;padding:11px 14px;
  border-left:3px solid #86a6d3;border-radius:5px;background:#f2f7fe;
  font-size:12px;color:#395575;line-height:1.65}
.core-filter-bar{display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;margin:14px 0}
.core-filter-bar label{font-size:12px;color:#506380;font-weight:700;display:flex;align-items:center;gap:8px}
.core-filter-bar select{min-width:140px}
.core-watch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
  gap:12px;margin:12px 0 15px}
.core-watch-card{min-width:0;padding:15px;border:1px solid #e0e7f2;border-radius:11px;
  background:#fff;display:flex;flex-direction:column;gap:14px}
.core-watch-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.core-watch-head>div{min-width:0;flex:1}
.core-watch-head b{font-size:13px;line-height:1.5;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.core-monitor-status{border-radius:30px;padding:4px 8px;font-size:10px;
  font-weight:700;white-space:nowrap;background:#edf2f9;color:#52677b}
.core-monitor-core{background:#e5f6ed;color:#267653}
.core-monitor-candidate{background:#e8f1ff;color:#285cab}
.core-monitor-paused{background:#f3f4f6;color:#747d8b}
.core-watch-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  border-radius:7px;background:#f7f9fc;padding:11px 8px;gap:9px}
.core-watch-stats>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.core-watch-stats small{font-size:10px;color:#718095}
.core-watch-stats strong{font-size:16px;color:#253c5d;overflow-wrap:anywhere}
.core-watch-bottom{display:flex;align-items:center;justify-content:space-between;
  gap:10px;margin-top:auto}
.core-detail-shell{border:1px solid #dfe7f2;background:#fff;border-radius:12px;
  padding:18px;display:flex;flex-direction:column;gap:12px}
.core-detail-top,.core-detail-actions{display:flex;align-items:center;justify-content:space-between;
  gap:9px;flex-wrap:wrap}
.core-detail-actions{justify-content:flex-start}
.core-detail-shell>h3{font-size:18px;line-height:1.5;margin:0}
.core-tabs{display:flex;gap:5px;overflow-x:auto;border-bottom:1px solid #e1e8f1;
  padding-bottom:8px;scrollbar-width:thin}
.core-tab{padding:8px 10px;border-radius:7px;border:1px solid transparent;background:transparent;
  color:#60728e;cursor:pointer;font-size:11px;font-weight:700;white-space:nowrap}
.core-tab.is-active{background:#e8f1ff;color:#2554a3;border-color:#bad1f5}
.core-tab:hover{background:#f3f6fd}
.core-tab-pane{display:flex;flex-direction:column;gap:15px;padding:6px 1px}
.core-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.core-visual{border:1px solid #e5ebf3;border-radius:9px;background:#fff;
  padding:15px;display:flex;flex-direction:column;gap:12px;min-width:0}
.core-visual h4{font-size:13px;color:#2c435f;margin:0}
.core-chart-sub{color:#798ba1;font-size:11px;line-height:1.5}
.core-bar-row{display:flex;flex-direction:column;gap:6px}
.core-bar-heading{display:flex;justify-content:space-between;gap:10px;
  color:#4d6280;font-size:11px}
.core-bar-heading b{font-size:12px;color:#29446e}
.core-bar-track{width:100%;height:13px;background:#edf2f9;border-radius:20px;overflow:hidden}
.core-bar-fill{height:100%;background:linear-gradient(90deg,#5689d8,#69abde);
  border-radius:20px;min-width:0}
.core-pending{padding:13px;border-radius:8px;background:#f6f8fc;
  font-size:12px;color:#576a81;line-height:1.6;border:1px dashed #d5deed}
.core-grid-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.core-blank-tile{padding:14px;border-radius:8px;border:1px solid #e0e8f3;
  display:flex;flex-direction:column;gap:9px;min-height:75px}
.core-blank-tile b{font-size:12px;color:#465e7f}
.core-blank-tile span{font-size:11px;color:#8491a5}
.core-note{background:#fff9e9;border-radius:7px;padding:11px;color:#795d2b;
  font-size:12px;white-space:pre-wrap}
.core-spu-rollup{margin-top:16px;border-top:1px solid #e1e7f2;padding-top:12px}
.core-spu-rollup>summary{cursor:pointer;font-size:12px;color:#5b7192;font-weight:600}
.core-spu-rollup .card{margin:12px 0}
@media(max-width:1100px){
 .core-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .core-charts{grid-template-columns:1fr}
}
@media(max-width:560px){
 .core-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .core-kpi{padding:11px}.core-kpi strong{font-size:18px}
 .core-watch-grid{grid-template-columns:1fr}
 .core-grid-tiles{grid-template-columns:1fr}
 .core-detail-shell{padding:12px}
}

/* User-adjustable compact link performance indicators. */
.tk-metric-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;margin:14px 0}
.tk-metric-picker label{display:flex;align-items:center;gap:8px;border:1px solid #e1e9f4;
  border-radius:7px;background:#fbfcff;padding:10px;font-size:12px;color:#3b5578;
  cursor:pointer}
.tk-metric-picker input{accent-color:#2d76c7}
@media(max-width:540px){.tk-metric-picker{grid-template-columns:1fr}}

/* Per-metric columns: real current-period value and same-length previous
   period delta; scroll, never truncate hidden selected columns. */
.tk-management-dashboard .tk-table-wrap{overflow-x:auto;overflow-y:visible;
  max-width:100%;scrollbar-color:#90a9d2 #f3f6fb;scrollbar-width:thin}
.tk-management-dashboard .tk-products-table{table-layout:auto;max-width:none}
.tk-management-dashboard .tk-products-table>.tk-product-row td{vertical-align:middle}
.tk-management-dashboard .tk-products-table>thead .tk-metric-th{min-width:153px;
  width:153px;padding:9px 8px;white-space:normal;line-height:1.3;color:#3d5675}
.tk-metric-head-desc{font-size:10px;font-weight:500;color:#98a7b7;line-height:1.6}
.tk-product-sales-cell{min-width:153px;max-width:190px;white-space:normal;
  text-align:left;vertical-align:middle!important}
.tk-metric-number{font-variant-numeric:tabular-nums;font-weight:780;
  font-size:13px;line-height:1.4;color:#243b5a;white-space:nowrap}
.tk-metric-delta{display:flex;align-items:center;gap:5px;min-height:18px;
  flex-wrap:wrap;margin-top:2px;font-size:11px;font-weight:700}
.tk-metric-date{font-size:9px;color:#8c99ad;line-height:1.4}
.tk-change-up{color:#16885d}
.tk-change-down{color:#d54a3b}
.tk-change-flat{color:#65788f}
.tk-change-pending{color:#9da8b6;font-weight:500}
.tk-change-new{color:#16885d}
.tk-change-points{color:#607993;font-weight:500;font-size:9px}
.tk-sync-health{margin:0;border-bottom:1px solid #e5edf7;background:#f7faff;
  color:#4f6581;font-size:11px}
.tk-sync-health>summary{cursor:pointer;padding:8px 15px;
  list-style:inside disclosure-closed}
.tk-sync-health[open]>summary{border-bottom:1px dashed #dfe8f3;
  color:#335b8e;font-weight:700}
.tk-sync-health-body{padding:8px 17px 12px;display:grid;gap:6px;line-height:1.6}
.tk-sync-health-body>div{overflow-wrap:anywhere}
.tk-sync-health-body .fine{color:#6e8098;margin-top:2px}
.tk-management-dashboard .tk-products-table thead th:first-child,
.tk-management-dashboard .tk-products-table>tbody>tr.tk-product-row>td:first-child{
  position:sticky;left:0;z-index:2;background:#fff;box-shadow:1px 0 3px #dfe7f2}
.tk-management-dashboard .tk-products-table thead th:first-child{
  z-index:4;background:#f6f8fc}
.tk-management-dashboard .tk-products-table>tbody>tr.tk-product-row:hover>td:first-child{
  background:#f8fbff}
@media(max-width:950px){
  .tk-management-dashboard .tk-products-table>.tk-product-row td:first-child{
    min-width:230px}
  .tk-management-dashboard .tk-table-wrap{overscroll-behavior-x:contain}
}

/* Sort each selected product-sales indicator by value or period change. */
.tk-metric-sort{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;margin-top:5px}
.tk-sales-sort{display:inline-flex;align-items:center;justify-content:center;
  min-height:23px;min-width:48px;padding:3px 5px;border:1px solid #d9e3f0;
  background:#fff;border-radius:5px;color:#647b99;font-size:10px;
  font-weight:600;white-space:nowrap;line-height:1.2;cursor:pointer}
.tk-sales-sort:hover{color:#245caf;border-color:#9bbbe8;background:#f3f7ff}
.tk-sales-sort.is-active{color:#1756a4;background:#e7f1ff;border-color:#7ea8e4;
  box-shadow:0 1px 2px rgba(41,94,175,.08)}
.tk-sales-sort:focus-visible{outline:2px solid #3972cb;outline-offset:1px}
.tk-management-dashboard .tk-products-table>thead .tk-metric-th{
  min-width:160px;width:160px;vertical-align:middle}

/* Monitor center: clear company-SPU identification before long product titles. */
.core-watch-head>div>.core-spu-row{margin:0 0 9px}
.core-spu-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.core-spu-tag{display:inline-flex;align-items:center;max-width:100%;
  gap:3px;padding:5px 8px;border-radius:6px;font-size:12px;
  line-height:1.25;font-weight:750;overflow-wrap:anywhere;
  border:1px solid #b4d4f7;background:#eaf4ff;color:#1559a1}
.core-spu-verified{border-color:#abd9c2;background:#e8f7ed;color:#176a44}
.core-spu-mixed{border-color:#efcb8b;background:#fff7e8;color:#9b601b}
.core-spu-partial,.core-spu-unmapped{border-color:#dbe1e9;background:#f2f5fa;color:#596b7e}
.core-spu-note{font-size:10px;color:#70829a;line-height:1.3}
.core-watch-title{display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;line-height:1.45}
.core-detail-shell>.core-spu-row{margin-top:-6px;margin-bottom:5px}
@media(max-width:700px){
  .core-spu-tag{font-size:11px;padding:4px 7px}
  .core-watch-head{gap:8px}
}

/* Monitor v3.1: verified comparisons, daily rolling history and audit / alert UI. */
.core-auto-badge{display:inline-flex;border:1px solid #d7e3f2;border-radius:18px;
  padding:5px 9px;background:#edf3fb;font-size:11px;font-weight:700;color:#56708d}
.core-auto-badge.core-auto-success{background:#e8f7ec;border-color:#bfe1c9;color:#197747}
.core-auto-badge.core-auto-failed{background:#fff0e8;border-color:#f4c9af;color:#b45029}
.core-sync-panel{display:flex;flex-direction:column;gap:8px;padding:13px 15px;
  margin:12px 0;border:1px solid #dce6f4;background:#fafcff;border-radius:10px}
.core-sync-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.core-sync-heading b{font-size:13px;color:#314a6b}
.core-sync-meta,.core-audit-statline{font-size:11px;line-height:1.6;color:#6c7c91}
.core-sync-error{border:1px solid #edd6b8;background:#fff8ed;color:#87521e;
  padding:8px 10px;font-size:11px;border-radius:7px;overflow-wrap:anywhere}
.core-audit-report{border:1px solid #dfe7f3;border-radius:9px;background:#fff;
  margin:12px 0;padding:0}
.core-audit-report>summary{cursor:pointer;padding:12px 14px;color:#476188;
  font-weight:700;font-size:12px}
.core-audit-report[open]>summary{border-bottom:1px solid #e7edf6}
.core-audit-report>.fine{margin:10px 14px 14px;line-height:1.5}
.core-audit-scroll{overflow-x:auto;max-width:100%;padding:10px}
.core-audit-scroll table{min-width:850px}
.core-conclusion{padding:9px 11px;border-left:3px solid #8aaee0;
  background:#f4f8fe;border-radius:5px;font-size:11px;line-height:1.65;color:#4b627c}
.core-conclusion-warning{background:#fff4e9;border-color:#efa15e;color:#a25822}
.core-conclusion-opportunity{background:#edf9f2;border-color:#5db48b;color:#257650}
.core-conclusion-data_gap{background:#f2f5fa;border-color:#bcc9d8;color:#677992}
.core-alerts{display:flex;gap:5px;align-items:flex-start;flex-wrap:wrap}
.core-alert{border-radius:6px;padding:5px 7px;font-size:10px;line-height:1.25;
  border:1px solid #e0e7f0;color:#6b7c91;background:#f5f7fa;max-width:100%}
.core-alert-warning{background:#fff0e9;border-color:#f0c5a9;color:#ae5a22}
.core-alert-up{background:#edf9f1;border-color:#b4dfc4;color:#277c4c}
.core-alert-data{background:#f4f6fa;border-color:#dbe1e9;color:#78889a}
.core-change{display:inline-block;border-radius:5px;font-weight:700;font-size:10px;
  padding:3px 5px;margin-top:3px;white-space:nowrap}
.core-change-up{background:#e8f7ed;color:#148257}
.core-change-down{background:#fff0e9;color:#c44838}
.core-change-flat{background:#eef1f6;color:#667b90}
.core-change-unknown{background:#f1f3f7;color:#8391a4}
.core-kpi-mini{font-size:9px;color:#7b8ba0;line-height:1.3}
.core-watch-stats>div{justify-content:flex-start}
.core-watch-card>.core-alerts{margin-top:-6px}
.core-chart-sub{max-width:100%}
.core-trend-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-size:11px;color:#67809d}
.core-sparkline{width:100%;height:auto;aspect-ratio:540/135;display:block}
.core-sparkline text{font-family:inherit}
.core-detail-shell>.core-alerts{margin:-3px 0 2px}
@media(max-width:700px){
 .core-sync-heading{align-items:flex-start}
 .core-audit-report>summary{line-height:1.5}
 .core-watch-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .core-watch-stats strong{font-size:13px}
}
@media(max-width:470px){
 .core-watch-stats{grid-template-columns:1fr}
 .core-watch-stats>div{flex-direction:row;align-items:center;justify-content:space-between}
 .core-watch-stats strong{font-size:15px}
 .core-change{margin:0}
}

/* 2026-11 compact product-operation overview.
   No full-width metric bars or placeholders in the default overview. */
.core-tab-pane>.core-overview{width:100%}
.core-overview{display:flex;flex-direction:column;gap:12px;min-width:0;color:#334c6a}
.core-overview-summary{border:1px solid #dae7f8;border-left:3px solid #5588cc;
  border-radius:9px;background:#f6f9fe;padding:12px 15px;display:flex;
  flex-direction:column;gap:5px}
.core-overview-summary-warn{border-color:#f5e0d3;border-left-color:#de824c;
  background:#fff9f4}
.core-overview-summary-opportunity{border-color:#cce9dd;border-left-color:#3d9a78;
  background:#f5fbf8}
.core-overview-summary-muted{border-color:#e1e7ef;border-left-color:#8799af;
  background:#f8fafc}
.core-overview-summary-top{display:flex;gap:10px;align-items:center;
  justify-content:space-between;color:#7488a1;font-size:10px;font-weight:700}
.core-overview-summary-content{font-size:13px;color:#263e59;line-height:1.55;
  font-weight:700}
.core-overview-summary .core-overview-alerts{display:flex;gap:6px;flex-wrap:wrap;
  margin-top:3px}
.core-overview-summary .core-overview-alerts .core-alert{font-size:10px;padding:4px 7px}
.core-overview-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;align-items:stretch}
.core-overview-metric{border:1px solid #e2e9f3;background:#fff;border-radius:9px;
  padding:13px 14px;display:flex;flex-direction:column;gap:8px;min-width:0}
.core-overview-kpi-risk{border-color:#f0d1b9;background:#fffaf5}
.core-overview-metric-name{font-size:11px;color:#71849c;font-weight:600}
.core-overview-metric strong{font-size:22px;line-height:1.15;font-weight:750;
  color:#183c63;letter-spacing:-.25px;overflow-wrap:anywhere}
.core-overview-metric-bottom{display:flex;align-items:center;gap:6px;
  flex-wrap:wrap;min-width:0;margin-top:auto}
.core-overview-metric-bottom small{font-size:10px;color:#8a9aab;line-height:1.4}
.core-overview-metric-bottom .core-change{margin:0;font-size:10px;padding:4px 6px}
.core-overview-profit-flag{display:inline-flex;border-radius:5px;padding:4px 6px;
  font-size:10px;background:#edf4fb;color:#4d6885;font-weight:700}
.core-overview-profit-flag.is-low{background:#ffe9db;color:#ad5929}
.core-overview-compare{border:1px solid #e1e9f3;border-radius:9px;
  background:#fff;padding:12px 15px;min-width:0}
.core-overview-section-head{display:flex;align-items:center;
  justify-content:space-between;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.core-overview-section-head h4{font-size:12px;font-weight:750;
  color:#29496e;margin:0}
.core-overview-section-head>span{font-size:10px;color:#91a0b1}
.core-overview-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px}
.core-overview-compare-item{min-width:0;padding:10px 12px;border-radius:8px;
  background:#f7f9fd;border:1px solid #edf1f6;display:flex;flex-direction:column;gap:8px}
.core-overview-compare-title{display:flex;gap:8px;justify-content:space-between;
  align-items:center;flex-wrap:wrap}
.core-overview-compare-title>b{font-size:11px;font-weight:700;color:#4b6786}
.core-overview-compare-title .core-change{margin:0}
.core-overview-bar-row{display:grid;grid-template-columns:28px minmax(36px,1fr) minmax(56px,max-content);
  gap:9px;align-items:center;min-width:0}
.core-overview-bar-name{font-size:10px;color:#7c8ba1}
.core-overview-bar-row b{font-size:11px;color:#2b4562;text-align:right;
  font-weight:700;overflow-wrap:anywhere}
.core-overview-mini-track{height:7px;border-radius:99px;background:#e5ebf4;overflow:hidden}
.core-overview-mini-fill{display:block;height:100%;border-radius:99px}
.core-overview-mini-current{background:#5384ca}
.core-overview-mini-previous{background:#9db0ca}
.core-overview-compare-missing{font-size:10px;color:#8b9bae;padding:9px 0;line-height:1.5}
.core-overview-lower{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
.core-overview-traffic,.core-overview-actions{border:1px solid #e0e8f3;
  border-radius:9px;background:#fff;padding:13px 15px;min-width:0}
.core-overview-traffic-inner{display:flex;gap:17px;align-items:center}
.core-overview-ctr-gauge{width:91px;height:91px;border-radius:50%;
  flex:0 0 91px;background:conic-gradient(#5384ca var(--core-ctr,0%),#e7edf5 0);
  display:grid;place-items:center}
.core-overview-ctr-gauge>div{width:74px;height:74px;border-radius:50%;
  background:#fff;display:flex;flex-direction:column;justify-content:center;
  align-items:center;gap:3px}
.core-overview-ctr-gauge b{font-size:16px;font-weight:750;color:#244d7b}
.core-overview-ctr-gauge small{font-size:10px;color:#8b9cac}
.core-overview-traffic-stats{flex:1;min-width:0;display:flex;
  flex-direction:column;gap:7px}
.core-overview-traffic-stats>div{display:flex;gap:8px;justify-content:space-between;
  align-items:center;border-bottom:1px dashed #e7edf4;padding-bottom:4px}
.core-overview-traffic-stats span{font-size:11px;color:#798ea5}
.core-overview-traffic-stats b{font-size:13px;color:#2b4c70}
.core-overview-traffic-stats>small{font-size:10px;color:#91a0b0;line-height:1.35}
.core-overview-compact-empty{font-size:11px;color:#8b99ac;
  padding:18px 0;line-height:1.55}
.core-overview-actions ol{margin:0;padding-left:17px;display:flex;
  flex-direction:column;gap:8px}
.core-overview-actions li{font-size:11px;line-height:1.55;color:#476280}
.core-overview-actions li::marker{color:#5c8dc8;font-weight:700}
.core-overview-history{border:1px solid #e2eaf3;border-radius:8px;background:#fff;
  padding:0 13px}
.core-overview-history>summary{cursor:pointer;padding:11px 0;
  font-size:11px;color:#547398;font-weight:700}
.core-overview-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;border-top:1px solid #edf1f6;padding:10px 0}
.core-overview-history-grid>.core-visual{padding:10px;gap:6px}
.core-overview-history-hint{font-size:10px;color:#92a0b0;
  padding:4px 1px 1px;line-height:1.5}
@media(max-width:1250px){
  .core-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .core-overview-metric strong{font-size:21px}
}
@media(max-width:760px){
  .core-overview-lower,.core-overview-compare-grid,
  .core-overview-history-grid{grid-template-columns:1fr}
  .core-overview-metrics{gap:7px}
  .core-overview-metric{padding:11px}
  .core-overview-bar-row{grid-template-columns:28px minmax(30px,1fr) minmax(45px,max-content)}
}
@media(max-width:420px){
  .core-overview-metrics{grid-template-columns:1fr}
  .core-overview-metric{gap:5px}
  .core-overview-metric strong{font-size:19px}
  .core-overview-ctr-gauge{width:78px;height:78px;flex-basis:78px}
  .core-overview-ctr-gauge>div{width:63px;height:63px}
  .core-overview-traffic-inner{gap:11px}
}

/* Official Analytics freshness: source date is distinct from task status. */
.core-freshness{display:flex;flex-direction:column;gap:4px;padding:9px 11px;
 border-radius:7px;border:1px solid #e2e9f2;background:#f7f9fc;
 color:#526b89;font-size:11px;line-height:1.5}
.core-freshness b{font-size:12px;color:#304967}
.core-freshness span{color:#5a718f;font-variant-numeric:tabular-nums}
.core-freshness small{color:#8393a6;font-size:10px}
.core-freshness.core-auto-success{background:#edf9f2;border-color:#bee3cf}
.core-freshness.core-auto-success b{color:#187349}
.core-freshness.core-auto-delayed{background:#fff8ed;border-color:#f4dcb9}
.core-freshness.core-auto-delayed b{color:#aa6727}
.core-freshness.core-auto-failed{background:#fff4f0;border-color:#ecc8c1}
.core-freshness.core-auto-failed b{color:#b64639}


/* V3.1 decision-first merchandise overview; analytical detail on demand */
.core-overview-metrics-primary{grid-template-columns:repeat(3,minmax(0,1fr))}
.core-overview-actions-primary{background:#f8fbff;border-color:#d7e6f5}
.core-overview-actions-primary ol{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px 14px}
.core-overview-actions-primary li{padding-right:5px;font-size:12px}
.core-overview-details{border:1px solid #e2eaf3;border-radius:9px;background:#fff;min-width:0}
.core-overview-details>summary{cursor:pointer;padding:13px 15px;display:flex;justify-content:space-between;gap:12px;align-items:center;color:#365b83;font-size:12px;font-weight:700}
.core-overview-details>summary span{color:#899caf;font-size:10px;font-weight:500}
.core-overview-details[open]>summary{border-bottom:1px solid #edf1f6}
.core-overview-details-body{display:flex;flex-direction:column;gap:10px;padding:12px}
.core-overview-details-body>.core-overview-compare,.core-overview-details-body>.core-overview-traffic{border-color:#edf1f6}
.core-overview-source-foot{font-size:10px;line-height:1.6;color:#8a9aac;padding:0 2px}
@media(max-width:900px){.core-overview-metrics-primary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.core-overview-metrics-primary{grid-template-columns:1fr}.core-overview-details>summary{align-items:flex-start;flex-direction:column;gap:3px}.core-overview-actions-primary ol{grid-template-columns:1fr}}


/* Product-only channel attribution: compact, responsive analytics visualization */
.core-channel-dashboard{--channel-ink:#d8eeff;--channel-muted:#91afcc;--channel-line:rgba(116,190,255,.19);
  color:var(--channel-ink);display:flex;flex-direction:column;gap:12px;border:1px solid #173b65;
  border-radius:15px;padding:16px;background:radial-gradient(ellipse at 85% 0%,rgba(12,111,172,.22),transparent 43%),
  linear-gradient(145deg,#0b203b,#112d4b 65%,#0a2038);box-shadow:0 12px 28px rgba(7,27,56,.10)}
.core-channel-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;
  padding:6px 5px 12px;border-bottom:1px solid var(--channel-line)}
.core-channel-eyebrow{font-size:10px;color:#6ccef4;letter-spacing:.08em;font-weight:700;display:flex;gap:8px;align-items:center}
.core-channel-pulse{width:7px;height:7px;border-radius:50%;background:#35e3cc;box-shadow:0 0 11px #35e3cc}
.core-channel-hero h3{color:#f1f9ff;font-size:20px;margin:6px 0 4px}
.core-channel-hero p,.core-channel-block-head p{margin:0;color:var(--channel-muted);font-size:11px}
.core-channel-product-id{text-align:right;color:#789bbb;font-size:10px;letter-spacing:.05em}
.core-channel-product-id b{display:block;color:#cce8ff;margin-top:5px;font-size:12px;letter-spacing:0}
.core-channel-stats{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:10px}
.core-channel-stat{min-width:0;min-height:91px;padding:13px 15px;border:1px solid var(--channel-line);
  border-radius:11px;display:flex;flex-direction:column;gap:7px;
  background:linear-gradient(145deg,rgba(30,73,112,.55),rgba(18,46,79,.6))}
.core-channel-stat.is-main{border-color:rgba(60,213,235,.5);box-shadow:inset 0 0 19px rgba(28,167,216,.09)}
.core-channel-stat>span{font-size:11px;color:#9fbcd9}
.core-channel-stat strong{font-size:19px;color:#eaf7ff;line-height:1.25;overflow-wrap:anywhere}
.core-channel-stat.is-main strong{color:#52e3e5}
.core-channel-stat small{font-size:10px;color:#85a4c5;line-height:1.45}
.core-channel-graph,.core-channel-support{border:1px solid var(--channel-line);
  background:rgba(5,21,42,.32);padding:15px;border-radius:12px;min-width:0}
.core-channel-block-head{display:flex;align-items:start;justify-content:space-between;gap:12px;
  margin-bottom:14px;flex-wrap:wrap}
.core-channel-block-head h4{margin:0 0 5px;font-size:14px;color:#dff7ff}
.core-channel-legend{display:flex;gap:13px;color:#a6c1df;font-size:11px}
.core-channel-legend span{display:flex;align-items:center;gap:5px}
.core-channel-legend i{display:inline-block;width:16px;height:6px;border-radius:12px}
.core-channel-legend .is-week{background:#76a4e2}
.core-channel-legend .is-month{background:#30ddd8}
.core-channel-graph-list{display:flex;flex-direction:column;gap:3px}
.core-channel-graph-row{--tone:#27dcd1;display:grid;grid-template-columns:minmax(136px,190px) minmax(0,1fr);
  gap:16px;align-items:center;padding:12px 10px;border-bottom:1px solid rgba(111,169,218,.12)}
.core-channel-graph-row:last-child{border-bottom:none}
.core-channel-graph-row.tone-blue{--tone:#61a8ff}
.core-channel-graph-row.tone-violet{--tone:#ad8bff}
.core-channel-graph-row.tone-teal{--tone:#41d9ae}
.core-channel-graph-row.tone-orange{--tone:#e8ac63}
.core-channel-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.core-channel-name strong{font-size:12px;color:#d9eafd}
.core-channel-index{font-size:10px;color:#54789c;font-variant-numeric:tabular-nums}
.core-channel-top-tag{color:#4ae6d7;font-size:9px;border:1px solid rgba(74,230,215,.36);
  padding:2px 5px;border-radius:20px}
.core-channel-bars{display:flex;flex-direction:column;gap:8px;min-width:0}
.core-channel-barline{display:grid;grid-template-columns:25px minmax(0,1fr) minmax(90px,126px);gap:10px;align-items:center}
.core-channel-barline>span{color:#799cbb;font-size:10px}
.core-channel-track{height:10px;min-width:0;overflow:hidden;background:rgba(88,131,175,.18);
  border-radius:30px;position:relative;border:1px solid rgba(120,179,225,.13)}
.core-channel-track.is-unverified{border-style:dashed;background:repeating-linear-gradient(90deg,
  rgba(91,125,161,.09) 0,rgba(91,125,161,.09) 7px,transparent 7px,transparent 13px)}
.core-channel-bar{height:100%;display:block;border-radius:30px;background:var(--tone);
  box-shadow:0 0 12px var(--tone);transition:width .25s ease}
.core-channel-bar.is-week{opacity:.60}
.core-channel-bar.is-month{opacity:1}
.core-channel-barline b{color:#d9ebff;font-size:11px;text-align:right;white-space:nowrap;
  font-variant-numeric:tabular-nums;font-weight:650}
.core-channel-barline b.is-unverified{color:#6485a6;font-weight:500}
.core-channel-support-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.core-channel-support-card{border:1px solid var(--channel-line);border-radius:9px;
  background:rgba(35,76,117,.25);padding:13px;min-width:0}
.core-channel-support-card>b{font-size:12px;color:#e1f5ff}
.core-channel-support-values{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.core-channel-support-values>span{display:flex;flex-direction:column;gap:4px;font-size:10px;color:#789ab9}
.core-channel-support-values strong{font-size:14px;color:#55e1df;font-variant-numeric:tabular-nums}
.core-channel-support-card small{color:#8da7c3;font-size:10px;line-height:1.5}
.core-channel-insight{border-left:3px solid #37ded5;border-radius:6px;
  background:rgba(22,116,133,.15);padding:12px 15px}
.core-channel-insight span{color:#45e0d7;font-size:11px;font-weight:700}
.core-channel-insight p{margin:6px 0 0;color:#d0e7f7;font-size:12px;line-height:1.7}
.core-channel-meta{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;
  color:#83a1bf;font-size:10px}
.core-channel-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.core-channel-footer .btn{border-color:#277fa7;background:#164569;color:#e0faff}
.core-channel-footer .fine{color:#a5bfd8}
.core-channel-disclaimer{padding-top:9px;border-top:1px solid var(--channel-line);
  color:#819dbb;font-size:10px;line-height:1.65}
@media(max-width:900px){.core-channel-stats{grid-template-columns:1fr 1fr}
 .core-channel-stats .is-main{grid-column:1/-1}}
@media(max-width:650px){.core-channel-dashboard{padding:10px}.core-channel-hero{align-items:start;flex-direction:column}
 .core-channel-product-id{text-align:left}.core-channel-stats{grid-template-columns:1fr 1fr}
 .core-channel-graph-row{grid-template-columns:1fr;gap:9px}.core-channel-barline{grid-template-columns:24px minmax(0,1fr) 85px;gap:7px}
 .core-channel-support-grid{grid-template-columns:1fr}.core-channel-graph,.core-channel-support{padding:10px}}
@media(max-width:380px){.core-channel-stats{grid-template-columns:1fr}
 .core-channel-stats .is-main{grid-column:auto}.core-channel-barline b{font-size:10px}}


/* Adjacent equal-period attribution trends and grounded recommendations */
.core-channel-trends,.core-channel-diagnostic{border:1px solid rgba(116,190,255,.19);
 border-radius:12px;background:rgba(5,21,42,.32);padding:15px;min-width:0}
.core-channel-trend-header,.core-channel-trend-row{display:grid;
 grid-template-columns:minmax(130px,1.4fr) minmax(110px,1fr) minmax(110px,1fr);
 gap:12px;align-items:center;padding:10px 12px}
.core-channel-trend-header{color:#81a8c6;font-size:10px;border-bottom:1px solid rgba(116,190,255,.19)}
.core-channel-trend-row{border-bottom:1px solid rgba(116,190,255,.1);color:#d6eaff;font-size:12px}
.core-channel-trend-row:last-child{border-bottom:0}
.core-channel-trend-row b{font-size:12px;font-weight:600}
.core-channel-trend{display:inline-flex;border-radius:18px;padding:5px 9px;font-size:11px;font-weight:700}
.core-channel-trend.is-up{color:#5ee7cb;background:rgba(41,165,139,.16)}
.core-channel-trend.is-down{color:#ffbd92;background:rgba(225,112,65,.16)}
.core-channel-trend.is-flat{color:#aac7de;background:rgba(105,137,169,.13)}
.core-channel-trend-unknown{color:#85a2bc;font-size:11px}
.core-channel-diagnostic ol{margin:0 0 12px;padding-left:23px;
 display:flex;flex-direction:column;gap:10px}
.core-channel-diagnostic li{font-size:12px;line-height:1.7;color:#d3e9fb}
.core-channel-diagnostic li::marker{color:#4eddd8;font-weight:700}
.core-channel-diagnostic small{display:block;border-top:1px solid rgba(116,190,255,.14);
 padding-top:10px;color:#8aa7c2;font-size:10px;line-height:1.6}
@media(max-width:600px){
 .core-channel-trends,.core-channel-diagnostic{padding:10px}
 .core-channel-trend-header,.core-channel-trend-row{grid-template-columns:minmax(95px,1fr) 1fr 1fr;
 gap:5px;padding:9px 2px;font-size:10px}
 .core-channel-trend-row b{font-size:10px}
 .core-channel-trend{font-size:10px;padding:4px 6px}
}


/* V3.1 creator samples pilot: simple explainable recommendation queue */
.sample-permission{border:1px solid #d7e6f4;background:#f4f9ff;border-radius:11px;
 padding:14px 16px;margin:12px 0;display:flex;flex-direction:column;gap:7px}
.sample-permission>div{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.sample-permission>div b{font-size:13px;color:#234d7b}
.sample-permission>div span{font-size:12px;color:#41668d}
.sample-permission small{font-size:11px;color:#6885a1;line-height:1.5}
.sample-controls{display:flex;align-items:end;gap:12px;margin:18px 0;flex-wrap:wrap}
.sample-controls label{font-size:12px;font-weight:600;display:flex;flex-direction:column;gap:6px;min-width:250px;flex:1}
.sample-controls .btn{min-height:36px}
.sample-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0}
.sample-kpis>div{border:1px solid #dfebf6;border-radius:11px;background:#fff;
 padding:15px;display:flex;flex-direction:column;gap:7px;box-shadow:0 3px 12px rgba(35,64,100,.03)}
.sample-kpis span{font-size:11px;color:#7188a3}
.sample-kpis strong{font-size:26px;color:#204b7b;font-variant-numeric:tabular-nums}
.sample-budget{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.sample-budget label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600}
.sample-budget input{width:130px}
.sample-budget .fine{font-size:11px}
.sample-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;
 margin:19px 0 12px;flex-wrap:wrap}
.sample-section-title b{font-size:15px;color:#1e4169}
.sample-section-title span{font-size:11px;color:#738da7}
.sample-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(295px,1fr));gap:12px}
.sample-card{border:1px solid #e2eaf2;border-radius:12px;background:white;padding:15px;min-width:0}
.sample-card.is-selected{border-color:#51beae;background:linear-gradient(160deg,#f3fffd,#fff)}
.sample-card-head{display:flex;align-items:center;gap:9px;min-width:0}
.sample-rank{color:#7b9ab6;font-size:12px}
.sample-name{display:flex;flex-direction:column;flex:1;min-width:0;gap:3px}
.sample-name b{font-size:13px;color:#244b72;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sample-name small{font-size:11px;color:#7c97b1}
.sample-score{border-radius:20px;background:#e8f3fc;padding:6px 8px;color:#255987;
 font-size:12px;font-weight:750;white-space:nowrap}
.sample-reco{color:#047766;background:#ddf7f0;font-size:10px;padding:5px 8px;border-radius:20px}
.sample-card-metrics{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:15px 0;font-size:11px;color:#778da4}
.sample-card-metrics span{display:flex;flex-direction:column;gap:5px}
.sample-card-metrics b{font-size:13px;color:#2b4c6e}
.sample-card-bottom{border-top:1px solid #e7eef5;padding-top:10px;
 display:flex;align-items:center;justify-content:space-between;gap:8px}
.sample-card-bottom label{white-space:nowrap;font-size:11px;font-weight:600}
.sample-card-bottom .fine{font-size:10px;line-height:1.6}
.sample-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
 margin-top:16px;padding:14px;border:1px solid #daebf8;border-radius:10px;background:#f7fbff}
@media(max-width:850px){.sample-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.sample-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sample-list{grid-template-columns:1fr}.sample-card{padding:12px}}


/* Fixed per-shop creator sample product watchlist */
.sample-preset-section{margin:17px 0 20px;padding:16px;border:1px solid #dfeaf5;
 background:linear-gradient(155deg,#f7fbff,#ffffff);border-radius:13px}
.sample-preset-section>.sample-section-title{margin:0 0 14px}
.sample-preset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.sample-preset-card{min-width:0;overflow:hidden;border:1px solid #dbe7f2;border-radius:12px;
 background:#fff;box-shadow:0 2px 9px rgba(30,62,106,.04)}
.sample-preset-card.is-active{border-color:#458dce;box-shadow:0 3px 13px rgba(40,120,190,.14)}
.sample-preset-open{background:transparent;border:0;width:100%;text-align:left;
 padding:14px;cursor:pointer;display:flex;flex-direction:column;gap:7px;color:#2b496f}
.sample-preset-open:hover{background:#f1f8ff}
.sample-preset-label{font-size:14px;font-weight:750;color:#17436e}
.sample-preset-open>small{font-size:10px;color:#8a9fb6;overflow-wrap:anywhere}
.sample-preset-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:6px;margin-top:7px}
.sample-preset-numbers b{font-size:11px;font-weight:650;padding:8px 5px;
 border-radius:7px;color:#356080;background:#eef5fb;text-align:center}
.sample-preset-card.is-active .sample-preset-numbers b{background:#e5f2ff}
.sample-preset-sync{font-size:10px;color:#879cb3;line-height:1.5}
.sample-preset-ops{padding:9px 12px;display:flex;gap:8px;flex-wrap:wrap;
 border-top:1px solid #e4edf5}
.sample-preset-ops .btn{font-size:10px;padding:5px 9px}
.sample-add-preset{margin-top:14px;display:flex;align-items:end;gap:10px;flex-wrap:wrap;
 border-top:1px solid #e5eef7;padding-top:14px}
.sample-add-preset label{display:flex;flex-direction:column;gap:5px;flex:1;min-width:180px;
 font-size:11px;font-weight:600;color:#476784}
.sample-add-preset .fine{flex-basis:100%}
.sample-add-preset .fine>.btn{margin:4px}
.sample-temporary-search{margin:13px 0;border:1px solid #e0e9f4;
 border-radius:10px;background:#fafcff}
.sample-temporary-search>summary{cursor:pointer;padding:10px 13px;
 font-size:11px;font-weight:650;color:#5c7898}
.sample-temporary-search .sample-controls{margin:8px 13px 13px}
.sample-current-product{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
 margin:12px 0;padding:12px 14px;border:1px solid #dce9f5;border-radius:10px;background:white}
.sample-current-product>b{font-size:13px;color:#2b5279}
.sample-current-product>.fine{margin-right:auto;font-size:10px}
@media(max-width:650px){
 .sample-preset-section{padding:11px}
 .sample-preset-grid{grid-template-columns:1fr}
 .sample-add-preset>label{min-width:100%}
 .sample-current-product>.fine{flex-basis:100%}
}

/* Product detail is the main cross-functional operating workspace */
.core-sample-workspace{display:flex;flex-direction:column;gap:12px}
.core-sample-head{border:1px solid #d9e8f5;background:linear-gradient(125deg,#f1f8ff,#fff);
 padding:15px;border-radius:12px;display:flex;justify-content:space-between;align-items:center;
 gap:15px;flex-wrap:wrap}
.core-sample-head h4{margin:0 0 5px;font-size:16px;color:#234f7b}
.core-sample-head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.core-sample-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;
 flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #e1eaf4}
.core-sample-list-head b{color:#275179;font-size:14px}
.core-sample-workspace .sample-kpis{margin:0}
.core-sample-workspace .sample-budget{padding:13px 0;border-bottom:1px solid #e5edf6;margin:0}
.core-sample-workspace .sample-list{margin-top:5px}
@media(max-width:650px){.core-sample-head-actions{width:100%}
 .core-sample-head-actions .btn{flex:1}
 .core-sample-workspace .sample-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* One creator per sample candidate; transparent evidence-based score */
.sample-merge-summary{border:1px solid #d1e8ec;border-radius:9px;background:#f2fcfc;
 color:#316879;font-size:12px;padding:10px 13px;margin:10px 0 14px;line-height:1.6}
.sample-duplicate-badge{font-size:10px;white-space:nowrap;color:#8b5b16;
 background:#fff1d7;border:1px solid #f2dbad;padding:4px 7px;border-radius:15px}
.sample-scoring-details{border-top:1px solid #e8eef5;padding:10px 0;margin-top:10px;
 font-size:11px;color:#506b84}
.sample-scoring-details>summary{cursor:pointer;font-size:11px;font-weight:650;
 color:#2c6890;padding:4px 0}
.sample-score-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:6px 14px;margin:11px 0}
.sample-score-line{border-bottom:1px dashed #dfebf2;display:flex;
 justify-content:space-between;gap:5px;padding:5px 1px;line-height:1.5}
.sample-score-line>span{color:#67849a}
.sample-score-line>b{font-variant-numeric:tabular-nums;color:#315a78;
 font-weight:700;white-space:nowrap}
.sample-application-list{margin:10px 0;padding:9px 11px;background:#f5f8fd;
 border-radius:8px;overflow-wrap:anywhere}
.sample-application-list>b{font-size:11px;color:#34597d}
.sample-application-list p{margin:7px 0;font-size:10px;color:#56748c}
.sample-application-choice-label{display:flex;flex-direction:column;gap:5px;
 font-size:11px;font-weight:650;color:#376583;margin:12px 0 5px}
.sample-application-choice-label select{min-width:0;width:100%;max-width:100%}
.sample-card>.sample-assess,.sample-card>.core-sample-assess{font-size:11px;margin:5px 0 9px}
@media(max-width:540px){.sample-score-lines{grid-template-columns:1fr}}


/* Product sample approvals: opt-in timed automatic versus manual modes */
.sample-automation-panel{border:1px solid #c7dceb;border-radius:13px;padding:17px;
 background:linear-gradient(130deg,#f0f8ff 0%,#ffffff 70%);
 margin:14px 0 18px}
.sample-automation-heading{display:flex;align-items:center;justify-content:space-between;
 flex-wrap:wrap;gap:12px;margin-bottom:14px}
.sample-automation-heading h4{margin:0 0 5px;font-size:15px;color:#23527d}
.sample-automation-heading p{font-size:11px;color:#7795af;margin:0}
.sample-auto-state{padding:6px 10px;border-radius:24px;font-size:11px;font-weight:750}
.sample-auto-state.is-manual{color:#516b8a;background:#e3edf6}
.sample-auto-state.is-auto{color:#08775f;background:#d7f6ed;border:1px solid #9bdccc}
.sample-automation-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.sample-automation-form>label{display:flex;flex-direction:column;gap:6px;font-size:11px;
 font-weight:650;color:#416789}
.sample-automation-form input,.sample-automation-form select{
 border:1px solid #cedeed;border-radius:8px;background:#fff;height:35px;
 padding:6px 9px;min-width:0;width:100%;font-size:12px;color:#264d71}
.sample-automation-form input:disabled,.sample-automation-form select:disabled{opacity:.7}
.sample-auto-fit{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;
 color:#406b8c;margin:14px 0}
.sample-auto-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;
 flex-wrap:wrap;padding-top:13px;border-top:1px solid #dbe7f1}
.sample-auto-info{display:flex;flex-direction:column;gap:6px;flex:1;min-width:200px;
 font-size:11px;color:#7190aa;line-height:1.5}
.sample-auto-info b{color:#28547b;font-size:12px}
.sample-auto-info .sample-auto-warn{color:#bd562a;font-weight:650}
.sample-auto-warning{padding:9px 10px;border-radius:8px;margin:14px 0 0;
 background:#fff5ed;border-left:3px solid #e3a35c;
 color:#986333;font-size:11px;line-height:1.65}
@media(max-width:950px){.sample-automation-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.sample-automation-form{grid-template-columns:1fr}.sample-automation-panel{padding:12px}}


/* Integrated sample operations: fixed product identity and decision-first hierarchy */
.core-sample-detail .core-detail-sticky{position:sticky;top:54px;z-index:32;background:#fff;
 border:1px solid #d9e6f4;border-radius:12px;padding:12px 15px;margin-bottom:12px;
 box-shadow:0 9px 22px rgba(26,63,104,.10)}
.core-sample-detail .core-detail-sticky h3{font-size:15px;line-height:1.45;margin:8px 0;
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.core-sample-detail .core-detail-sticky .core-detail-top{margin:0}
.core-sample-detail .core-detail-sticky .core-spu-tags{margin:4px 0}
.core-sample-detail .core-tab-pane{padding-bottom:80px}
.core-sample-workspace .sample-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.core-sample-workspace .sample-card{display:flex;flex-direction:column;gap:9px;border-radius:12px;
 min-width:0;box-shadow:0 2px 10px rgba(27,62,97,.04)}
.core-sample-workspace .sample-card-head{flex-wrap:wrap}
.core-sample-workspace .sample-card-metrics{margin:0;gap:8px;
 padding:11px 0;border-top:1px solid #edf2f7}
.core-sample-workspace .sample-scoring-details{margin-top:0}
.core-sample-workspace .sample-card-bottom{margin-top:auto}
.sample-request-sku{border:1px solid #dce7f2;background:#f7faff;border-radius:10px;
 padding:11px 12px;display:flex;flex-direction:column;gap:7px;font-size:11px}
.sample-request-sku>b{color:#2d5880;font-size:12px}
.sample-request-title{font-size:12px;font-weight:700;color:#203d5c;overflow-wrap:anywhere}
.sample-request-codes{display:flex;flex-direction:column;gap:4px;font-size:10px;
 color:#7288a0;overflow-wrap:anywhere}
.sample-request-cost{font-size:12px;color:#146b7b;font-weight:750}
.sample-request-sku-empty{padding:12px;border:1px dashed #e1e7ee;font-size:11px;color:#8a93a5}
.sample-period-summary,.sample-cost-section{border:1px solid #dbe9f5;border-radius:13px;
 padding:16px;background:#fff;margin:8px 0 15px}
.sample-period-summary>.sample-section-title,.sample-cost-section>.sample-section-title{margin:0 0 13px}
.sample-period-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.sample-period-metrics>div{display:flex;flex-direction:column;gap:8px;padding:13px;
 background:#f2f7fc;border:1px solid #e3edf6;border-radius:10px;min-width:0}
.sample-period-metrics span{color:#7790a7;font-size:11px}
.sample-period-metrics b{color:#1f4c78;font-size:15px;overflow-wrap:anywhere}
.sample-period-summary>.fine{margin:12px 0 0}
.sample-offline-fee{display:flex;align-items:end;gap:12px;flex-wrap:wrap;
 padding:15px 0;margin:0;border-bottom:1px solid #e0eaf3}
.sample-offline-fee label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:650;
 color:#335d7d;min-width:205px}
.sample-offline-fee .fine{font-size:11px}
.sample-cost-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.sample-cost-summary>div{display:flex;flex-direction:column;gap:7px;padding:13px 12px;
 border-radius:10px;background:#f4f8fd;min-width:0}
.sample-cost-summary span{font-size:11px;color:#708aa1}
.sample-cost-summary b{font-size:17px;color:#255579;font-variant-numeric:tabular-nums}
.sample-cost-summary>.sample-cost-total{background:#e7f6f3;border:1px solid #b7e4d8}
.sample-cost-summary>.sample-cost-total b{font-size:19px;color:#0c786c}
.sample-cost-issue{margin-top:10px;font-size:11px;line-height:1.55;color:#9a673a}
.sample-sticky-action{position:sticky;bottom:0;z-index:35;display:flex;align-items:center;
 justify-content:flex-end;gap:12px;flex-wrap:wrap;background:rgba(249,252,255,.98);
 border:1px solid #cbdfee;border-radius:12px;padding:12px 16px;
 box-shadow:0 -7px 25px rgba(20,64,105,.12)}
.sample-sticky-totals{display:flex;flex-direction:column;gap:4px;margin-right:auto;
 color:#23486e;font-size:13px}
.sample-sticky-totals small{font-size:12px;color:#66809b}
.sample-sticky-totals strong{font-size:16px;color:#087f6a}
@media(max-width:1120px){
 .core-sample-workspace .sample-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sample-period-metrics,.sample-cost-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
 .core-sample-detail .core-detail-sticky{top:48px;padding:9px}
 .core-sample-workspace .sample-list{grid-template-columns:1fr}
 .sample-period-metrics,.sample-cost-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sample-sticky-action .btn{flex:1}
 .sample-sticky-totals{flex-basis:100%}
}


/* Creator sampling v3: plan first, compact operations, horizontal applicant rows. */
.core-sample-workspace .sample-unified-setup{background:#f8fbff;border:1px solid #cbdfee;
 border-radius:13px;padding:14px 16px;margin:10px 0 12px}
.core-sample-workspace .sample-unified-setup .sample-automation-panel{background:transparent;
 border:0;padding:0;margin:0;box-shadow:none}
.core-sample-workspace .sample-unified-setup .sample-automation-heading{margin:0 0 11px}
.core-sample-workspace .sample-unified-setup .sample-automation-heading h4{font-size:14px}
.core-sample-workspace .sample-unified-setup .sample-automation-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.core-sample-workspace .sample-unified-setup .sample-automation-form>label{font-size:11px}
.core-sample-workspace .sample-unified-setup .sample-automation-form input,
.core-sample-workspace .sample-unified-setup .sample-automation-form select{height:34px}
.core-sample-workspace .sample-unified-setup .sample-auto-fit{margin:8px 0;line-height:1.3}
.core-sample-workspace .sample-auto-advanced{border-top:1px solid #e2edf7;margin-top:8px;
 padding-top:8px}
.core-sample-workspace .sample-auto-advanced>summary{font-size:11px;color:#477598;
 cursor:pointer;font-weight:600}
.core-sample-workspace .sample-auto-advanced-inner{padding:8px 0 0}
.core-sample-workspace .sample-auto-advanced .sample-auto-footer{border:0;padding:0}
.core-sample-workspace .sample-auto-advanced .sample-auto-warning{margin:8px 0 0;padding:7px}
.core-sample-workspace .sample-auto-submit{display:flex;justify-content:flex-end;margin-top:9px}
.core-sample-workspace .sample-auto-submit .btn{min-width:146px}
.core-sample-workspace .sample-inline-setup{display:flex;align-items:end;flex-wrap:wrap;
 gap:14px;padding-top:10px;border-top:1px solid #dfeaf6}
.core-sample-workspace .sample-inline-setup .sample-budget,
.core-sample-workspace .sample-inline-setup .sample-offline-fee{padding:0;margin:0;
 border:0;display:flex;align-items:end;flex-wrap:wrap;gap:8px}
.core-sample-workspace .sample-inline-setup .sample-budget>label,
.core-sample-workspace .sample-inline-setup .sample-offline-fee>label{display:flex;
 flex-direction:column;gap:5px;font-size:11px;font-weight:650;color:#416789;
 min-width:155px;width:170px}
.core-sample-workspace .sample-inline-setup input{width:100%;height:34px}
.core-sample-workspace .sample-inline-setup .fine{display:none}
.core-sample-workspace .sample-inline-setup .btn{white-space:nowrap}
.core-sample-workspace .sample-period-summary{margin:0 0 10px;padding:11px 14px}
.core-sample-workspace .sample-period-summary>.sample-section-title{margin-bottom:8px}
.core-sample-workspace .sample-period-metrics{gap:7px}
.core-sample-workspace .sample-period-metrics>div{padding:9px;gap:4px}
.core-sample-workspace .sample-period-metrics b{font-size:13px}
.core-sample-workspace .sample-period-summary>.fine{font-size:10px;margin-top:6px}
.core-sample-workspace .sample-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;
 margin-bottom:8px}
.core-sample-workspace .sample-kpis>div{padding:9px 12px}
.core-sample-workspace .sample-merge-summary{margin:6px 0;padding:7px 10px}
.core-sample-workspace .sample-cost-section{margin:10px 0;padding:11px 14px}
.core-sample-workspace .sample-cost-section .sample-section-title{margin-bottom:8px}
.core-sample-workspace .sample-cost-summary>div{padding:9px;gap:4px}
.core-sample-workspace .sample-cost-summary b{font-size:14px}
.core-sample-workspace .sample-cost-summary>.sample-cost-total b{font-size:16px}
.core-sample-workspace .sample-cost-issue{margin-top:5px}
.core-sample-workspace .sample-horizontal-scroll{overflow-x:auto;width:100%;
 border:1px solid #dbe6f2;border-radius:11px;margin:10px 0 14px}
.core-sample-workspace .sample-review-table{min-width:980px;width:100%}
.core-sample-workspace .sample-review-table-head,
.core-sample-workspace .sample-review-row{display:grid;
 grid-template-columns:minmax(165px,1.1fr) minmax(105px,.75fr) minmax(150px,.9fr)
 minmax(275px,1.7fr) minmax(135px,.85fr) minmax(68px,.45fr);
 align-items:start;gap:11px}
.core-sample-workspace .sample-review-table-head{background:#edf5fc;
 color:#426482;font-size:11px;font-weight:750;padding:12px 14px;
 position:sticky;top:0;z-index:2;border-bottom:1px solid #d8e5f1}
.core-sample-workspace .sample-review-row{margin:0;border:0;border-bottom:1px solid #e3ebf4;
 border-radius:0;padding:11px 14px;box-shadow:none;background:#fff;min-width:0;gap:11px}
.core-sample-workspace .sample-review-row:nth-of-type(even){background:#f9fbfe}
.core-sample-workspace .sample-review-row.is-selected{background:#f1fbf9}
.core-sample-workspace .sample-review-row:last-child{border-bottom:0}
.core-sample-workspace .sample-review-creator{display:flex;flex-wrap:wrap;align-items:flex-start;
 gap:6px;min-width:0}
.core-sample-workspace .sample-review-creator .sample-name{min-width:0;flex:1}
.core-sample-workspace .sample-review-creator .sample-name b{display:block;
 font-size:12px;overflow-wrap:anywhere}
.core-sample-workspace .sample-review-creator .sample-name small{font-size:10px;
 overflow-wrap:anywhere}
.core-sample-workspace .sample-review-score{display:flex;align-items:flex-start;
 flex-direction:column;gap:5px}
.core-sample-workspace .sample-review-score .sample-score{font-size:11px;white-space:nowrap}
.core-sample-workspace .sample-review-performance{display:grid;grid-template-columns:1fr 1fr;
 gap:7px 9px;min-width:0}
.core-sample-workspace .sample-review-performance>div{display:flex;flex-direction:column;
 gap:2px;min-width:0}
.core-sample-workspace .sample-review-performance small{color:#7890a8;font-size:10px}
.core-sample-workspace .sample-review-performance b{font-size:11px;overflow-wrap:anywhere}
.core-sample-workspace .sample-review-product{min-width:0}
.core-sample-workspace .sample-review-product .sample-request-sku{padding:8px 10px;gap:5px;
 background:#f3f8fd}
.core-sample-workspace .sample-review-product .sample-request-sku>b{font-size:10px}
.core-sample-workspace .sample-review-product .sample-request-title{font-size:11px}
.core-sample-workspace .sample-review-product .sample-request-codes{font-size:10px}
.core-sample-workspace .sample-review-product .sample-request-cost{font-size:11px}
.core-sample-workspace .sample-review-product .sample-application-choice-label{margin:5px 0 0}
.core-sample-workspace .sample-review-product select{height:31px;font-size:10px}
.core-sample-workspace .sample-review-verify .sample-scoring-details{padding:0;margin:0;
 border:0}
.core-sample-workspace .sample-review-verify .sample-scoring-details>summary{font-size:11px}
.core-sample-workspace .sample-review-verify .sample-score-lines{grid-template-columns:1fr;gap:3px}
.core-sample-workspace .sample-review-verify .core-sample-assess{margin:7px 0 0}
.core-sample-workspace .sample-review-select{display:flex;flex-direction:column;
 align-items:flex-start;gap:9px;font-size:11px}
.core-sample-workspace .sample-review-select label{white-space:nowrap;font-weight:700}
.core-sample-workspace .sample-review-eligibility{color:#72869b;font-size:10px}
.core-sample-workspace .sample-horizontal-scroll .sample-list{display:block}
@media(max-width:1100px){.core-sample-workspace .sample-unified-setup .sample-automation-form{
 grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.core-sample-workspace .sample-unified-setup{padding:10px}
 .core-sample-workspace .sample-unified-setup .sample-automation-form{grid-template-columns:1fr}
 .core-sample-workspace .sample-inline-setup{flex-direction:column;align-items:stretch}
 .core-sample-workspace .sample-inline-setup .sample-budget>label,
 .core-sample-workspace .sample-inline-setup .sample-offline-fee>label{width:100%}}


/* Compact, expandable monitoring and Affiliate status: no tall permanent banners. */
.core-monitor-status-strip{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;
 margin:8px 0 12px}
.core-sync-compact,.core-method-compact,.sample-auth-compact{
 border:1px solid #d9e5f1;background:#f8fbff;border-radius:9px;min-width:0;
 font-size:12px;color:#315b7d}
.core-sync-compact{flex:1 1 520px}
.core-method-compact{flex:0 0 auto}
.core-sync-compact>summary,.core-method-compact>summary,.sample-auth-compact>summary{
 display:flex;align-items:center;gap:8px;padding:9px 12px;cursor:pointer;
 list-style:none;line-height:1.4}
.core-sync-compact>summary::-webkit-details-marker,
.core-method-compact>summary::-webkit-details-marker,
.sample-auth-compact>summary::-webkit-details-marker{display:none}
.core-sync-compact>summary::after,.core-method-compact>summary::after,
.sample-auth-compact>summary::after{content:'⌄';color:#7291ac;font-weight:700;margin-left:5px}
.core-sync-compact[open]>summary::after,.core-method-compact[open]>summary::after,
.sample-auth-compact[open]>summary::after{transform:rotate(180deg)}
.core-sync-dot{width:8px;height:8px;background:#28a78f;border-radius:50%;
 box-shadow:0 0 0 3px #d7f4ed;flex:0 0 auto}
.needs-attention .core-sync-dot{background:#e19a4b;box-shadow:0 0 0 3px #fff1de}
.core-sync-state{font-weight:700;white-space:nowrap}
.core-sync-fresh{color:#6884a0;font-size:11px;overflow:hidden;
 text-overflow:ellipsis;white-space:nowrap}
.core-sync-toggle,.sample-auth-detail-label{font-size:11px;color:#557a9e;
 white-space:nowrap;margin-left:auto}
.core-sync-compact-body{padding:0 12px 11px;border-top:1px solid #e5edf6}
.core-sync-compact-body .core-freshness{margin:8px 0}
.core-sync-compact-body .core-sync-meta,.core-sync-compact-body .core-audit-statline{
 padding:6px 0;font-size:11px}
.core-method-compact>summary{font-size:11px;white-space:nowrap}
.core-method-compact>div{padding:0 12px 12px;max-width:520px;
 color:#607b93;line-height:1.6}
.sample-auth-compact{margin:8px 0 11px}
.sample-auth-compact>summary{gap:10px}
.sample-auth-compact>summary>span:nth-of-type(2){font-size:11px;color:#607d98}
.sample-auth-compact-body{border-top:1px solid #e3ecf5;padding:9px 12px;
 display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
 color:#59748c;font-size:11px}
.sample-auth-compact-body .btn{font-size:11px}
@media(max-width:660px){
 .core-monitor-status-strip{flex-direction:column}
 .core-sync-compact,.core-method-compact{flex:0 1 auto}
 .core-sync-fresh{max-width:130px}
 .core-sync-toggle{display:none}
 .sample-auth-detail-label{display:none}
}


/* Inline glossary for automated sample approval thresholds. */
.sample-field-label{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.sample-field-help{display:inline-flex;align-items:center;justify-content:center;
 width:16px;height:16px;border:1px solid #a8c7df;border-radius:50%;background:#edf6ff;
 color:#356b96;font-size:11px;line-height:1;font-weight:800;cursor:help}
.sample-field-help:focus-visible{outline:2px solid #346dee;outline-offset:2px}


/* Sample quantity exception: combo SKU may represent more than one physical piece. */
.sample-warehouse-warning{border:1px solid #f2c78b;border-left:3px solid #e49d37;
 border-radius:8px;padding:8px 9px;background:#fff7ea;color:#86551d;
 display:flex;flex-direction:column;gap:4px;line-height:1.45;font-size:11px}
.sample-warehouse-warning b{color:#a65d0a;font-size:11px}
.sample-warehouse-warning small{color:#a16b33;overflow-wrap:anywhere;font-size:10px}
.sample-warehouse-selected{margin:8px 0;color:#9b5c16;font-size:12px;line-height:1.6}
.sample-warehouse-selected:not(:empty){background:#fff7e9;border:1px solid #f2ce94;
 border-radius:8px;padding:9px 12px}

/* Country-localized app review: readable, persistent switch in both shell and login. */
.v3-language-box{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;
  font-size:12px;font-weight:700;color:#506078;white-space:nowrap}
.v3-language-switch{min-width:116px;max-width:136px;border-radius:9px;
  border:1px solid #cbd8ed;background:#fff;padding:8px 9px;
  color:#16375b;font-size:13px;font-weight:700;cursor:pointer}
.v3-language-switch:focus-visible{outline:2px solid #356aec;outline-offset:2px}
.auth-card .v3-language-box{display:flex;justify-content:flex-end;margin:-10px 0 12px}
.auth-card .v3-language-switch{min-width:145px}
@media(max-width:1100px){.bar-right{flex-wrap:wrap;justify-content:flex-end}
  .v3-language-label{display:none}.v3-language-switch{min-width:94px;max-width:118px}}
@media(max-width:750px){.bar{height:auto;min-height:76px;padding:12px 14px}
  .bar-right{gap:7px}.v3-language-switch{font-size:12px;padding:6px}
  .bar-right .account{max-width:110px;overflow:hidden;text-overflow:ellipsis}}


/* V3.2 compact preflight workspace: pricing, coupons and clearance rules */
.pricing-workspace{padding:15px 16px;max-width:1440px}
.pricing-workspace-top{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.pricing-workspace h3,.pricing-workspace h4{margin:0;font-size:14px}
.pricing-workspace-top .fine{margin:2px 0 0}
.pricing-coupon-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.pricing-stat{min-width:75px;border:1px solid #e5ebf5;background:#f7f9fd;border-radius:9px;padding:5px 10px;display:flex;flex-direction:column;gap:0;line-height:1.3}
.pricing-stat span{font-size:10px;color:#6a7890}
.pricing-stat strong{font-size:16px;color:#182238;font-variant-numeric:tabular-nums}
.pricing-sync-time{min-width:151px}.pricing-sync-time strong{font-size:11px}
.pricing-workspace-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,1.1fr) minmax(155px,.75fr);gap:10px}
.pricing-workspace-grid>section{min-width:0;background:#fbfcff;border:1px solid #e6edf7;border-radius:10px;padding:11px}
.pricing-workspace-grid h4{margin-bottom:8px}
.pricing-coupon-tabs{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid #e7ecf4;padding:5px 0 6px;font-size:12px}
.pricing-manual-title{margin-top:7px}
.pricing-coupon-row{padding:8px 1px;border-bottom:1px solid #edf1f7}
.pricing-coupon-main,.pricing-coupon-sub{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0}
.pricing-coupon-main b{font-size:12px;overflow-wrap:anywhere}
.pricing-coupon-discount{font-size:13px;font-weight:750;color:#285ad4;white-space:nowrap}
.pricing-coupon-sub{color:#65758f;font-size:11px;margin-top:2px}
.pricing-coupon-extra summary,.pricing-more summary,.pricing-help summary{font-size:11px;color:#426ba9;cursor:pointer;margin-top:4px}
.pricing-coupon-extra div{font-size:11px;color:#65758f;padding:5px;background:#f1f5fd;border-radius:5px;overflow-wrap:anywhere}
.pricing-more{padding-top:5px}.pricing-empty{margin:9px 0}.pricing-help{padding-top:7px;color:#6a7890}
.pricing-help p{margin:4px 0;font-size:11px}
.pricing-policy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pricing-policy-grid .field{gap:3px}
.pricing-policy-grid .field label{font-size:11px}
.pricing-policy-grid .field input{padding:6px 8px;font-size:13px}
.pricing-rules-panel .btn{margin-top:10px}
.pricing-actions-panel{display:flex;flex-direction:column;gap:8px}
.pricing-actions-panel h4{margin-bottom:0}
.pricing-actions-panel .btn{white-space:normal;font-size:12px;min-height:32px;padding:7px}
@media(max-width:1180px){.pricing-workspace-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.pricing-actions-panel{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.pricing-actions-panel h4{width:100%}.pricing-actions-panel .btn{min-width:135px}}
@media(max-width:710px){.pricing-workspace{padding:12px}.pricing-workspace-grid{grid-template-columns:1fr}.pricing-actions-panel{grid-column:auto}.pricing-workspace-top{align-items:stretch}.pricing-stat{flex:1;min-width:64px}.pricing-sync-time{flex:1 1 130px}.pricing-policy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact clarification beside the activity pre-margin header */
.margin-pre-help{display:inline-flex;align-items:center;justify-content:center;margin-left:4px;cursor:help;font-size:12px;vertical-align:middle;outline-offset:2px}
.margin-pre-help:focus-visible{outline:2px solid #356aec;border-radius:4px}

/* V3.2 batch review selection guard: keep page-only choice adjacent to table. */
.batch-selection-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:13px 0 8px;padding:10px 12px;border:1px solid #dbe5f4;background:#f4f7fc;border-radius:9px}
.batch-selection-bar .checkboxline{font-weight:700;color:#243b60;cursor:pointer}
.batch-selection-bar #batch-selection-count{color:#556784}
.batch-selection-bar #batch-selection-warning{color:#a35d12;font-weight:650}
.batch-selection-bar [hidden]{display:none!important}
#bulk-approve-filtered:disabled{opacity:.42;cursor:not-allowed;background:#e7eaf0;border-color:#d3dbe7;color:#6c788c}

/* Compact batch evidence: keep registration and SKU review above the fold. */
.batch-evidence-compact{
  margin-top:12px;
  border-top:1px solid #e4eaf4;
}
.batch-evidence-summary{
  display:flex;align-items:center;gap:12px;min-height:44px;
  padding:7px 2px;cursor:pointer;list-style:none;flex-wrap:wrap;
}
.batch-evidence-summary::-webkit-details-marker{display:none}
.batch-evidence-summary:focus-visible{outline:2px solid #487be6;outline-offset:3px;border-radius:5px}
.batch-evidence-title{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:700;color:#243957}
.batch-evidence-count{font-size:12px;font-weight:600;padding:2px 8px;background:#eef3fd;border-radius:16px;color:#55709b}
.batch-evidence-short{font-size:12px;color:#74849c}
.batch-evidence-expand{margin-left:auto;font-size:12px;color:#365ca3;white-space:nowrap}
.batch-evidence-compact[open] .batch-evidence-expand{color:#576b86}
.batch-evidence-body{padding:4px 0 8px}
.batch-evidence-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.batch-evidence-body .evidence-paste-zone{padding:12px 10px;border-width:1px}
.batch-evidence-body .evidence-paste-title{font-size:13px;margin:0}
.batch-evidence-body .evidence-paste-status{min-height:0;margin-top:4px}
.batch-evidence-body .evidence-paste-status:empty{display:none}
.batch-evidence-body .evidence-gallery{padding:8px 0}
.batch-evidence-footnote{margin:8px 0 0}
@media(max-width:640px){
  .batch-evidence-summary{gap:6px 10px}
  .batch-evidence-short{flex-basis:100%;order:2}
  .batch-evidence-body .evidence-paste-zone{padding:12px 8px}
}

/* Keep the product column headings visible within the independently scrollable listing. */
.tk-management-dashboard .tk-table-wrap{max-height:calc(100dvh - 155px);min-height:0;overflow:auto;scrollbar-gutter:stable;position:relative}
.tk-management-dashboard .tk-products-table>thead>tr>th{position:sticky;top:0;z-index:5;background:#f6f8fc;box-shadow:0 1px 0 #dce4ef}
.tk-management-dashboard .tk-products-table>thead>tr>th:first-child{position:sticky;left:0;top:0;z-index:7;background:#f6f8fc}

/* Product list: keep the current rows visible while a newer request loads. */
.tk-shop-products.is-loading .tk-table-wrap,.tk-shop-products.is-loading .tk-summary{opacity:.55;transition:opacity .15s;pointer-events:none}
.tk-shop-products.is-loading .tk-status-tabs{pointer-events:none}

/* Desktop sidebar: independently scroll all menu entries, keep brand fixed. */
@media (min-width:781px){
 .layout > .side{align-self:flex-start;height:100vh;height:100dvh;min-height:0;max-height:100dvh;overflow:hidden;padding-bottom:10px}
 .side > .logo{flex:0 0 auto;padding-bottom:16px}
 .side > .navwrap{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#526582 transparent;scroll-padding-block:8px}
 .side > .navwrap > .nav-item{min-height:32px!important;padding-top:6px!important;padding-bottom:6px!important}
 .side > .navwrap > div{margin-top:6px!important;padding-top:5px!important}
 .side > .sidebottom,.side > div:not(.logo):not(.navwrap){flex:0 0 auto}
}
@media (min-width:781px) and (max-height:720px){.side > .sidebottom{display:none}.side > .logo{padding-bottom:8px}}

/* Shared dashboard report styles: independent of active sales report. */
.report-shell{background:#fff;border:1px solid #dce5ef;border-top:4px solid var(--report-accent);border-radius:14px;padding:22px;box-shadow:0 4px 18px #16324f08}.report-sync{--report-accent:#15803d;--report-soft:#edf8f3}.report-creator{--report-accent:#7c3aed;--report-soft:#f5f0ff;--accent:#7c3aed}.report-shell-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}.report-shell-heading h2{margin:0;font-size:22px}.report-shell-heading small{color:#64748b}.report-creator .dash-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.report-creator .dash-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:14px;margin:16px 0}.report-creator .dash-kpi{display:grid;gap:8px;background:#f5f0ff;border:1px solid #e3d7fa;border-top:3px solid #8b5cf6;padding:16px!important;border-radius:10px}.report-creator .dash-kpi b{font-size:29px!important}.report-creator .dash-panel{padding:0;background:transparent;border:0}.sync-report-summary{display:grid;gap:16px;margin:12px 0}.sync-report-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px}.sync-report-card{text-align:left;cursor:pointer;display:grid;gap:5px;background:#f7fafc;border:1px solid #dce5ef;border-top:3px solid var(--card-accent);border-radius:10px;padding:14px;color:#334155}.sync-report-card strong{font-size:29px;color:var(--card-accent)}.sync-report-card span{font-size:11px;color:#64748b}.sync-report-card:hover,.sync-report-card[aria-pressed=true]{background:#edf7f3;outline:2px solid var(--card-accent);outline-offset:-2px}.sync-report-visual{display:flex;gap:24px;align-items:center;flex-wrap:wrap;background:#f5faf8;border-radius:12px;padding:16px}.sync-report-ring{width:135px;height:135px;border-radius:50%;display:grid;place-items:center;flex:none}.sync-report-ring>div{width:105px;height:105px;background:#fff;border-radius:50%;display:grid;place-content:center;text-align:center;color:#135945}.sync-report-ring b{font-size:24px}.sync-report-bars{flex:1;min-width:200px}.sync-report-bar{display:grid;grid-template-columns:100px 1fr 65px;align-items:center;gap:12px;width:100%;padding:8px;border:1px solid transparent;background:transparent;text-align:left;color:#334155;border-radius:7px;cursor:pointer}.sync-report-bar:hover,.sync-report-bar[aria-pressed=true]{background:#e0f2e9;border-color:#9bcab9}.sync-report-track{height:10px;background:#dce8e5;border-radius:8px;overflow:hidden}.sync-report-track i{display:block;height:100%;background:#169b79}.sync-report-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.sync-report-chips{display:flex;flex-wrap:wrap;gap:5px}.sync-report-chip{border-radius:5px;padding:4px 7px;font-size:12px;background:#f1f5f9;color:#475569}.sync-report-chip.ok{background:#dcfce7;color:#166534}.sync-report-chip.bad{background:#fee2e2;color:#991b1b}.sync-report-chip.wait{background:#fff4dc;color:#92400e}.sync-shop-link{color:#2563eb!important}.report-shell small,.sync-report-summary>small{color:#64748b}
