:root{--ink:#182a35;--muted:#7a8792;--teal:#008b7b;--border:#e7ecee;--navy:#12242f}*{box-sizing:border-box}body{margin:0;background:#f5f7f9;color:var(--ink);font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #64d8ca;outline-offset:3px}input,textarea,select{border:1px solid #dce4e7;border-radius:7px;background:#fff;color:var(--ink);padding:11px 12px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #008b7b12}label{display:block;font-size:13px;font-weight:600}label input,label textarea{display:block;width:100%;margin-top:9px}textarea{resize:vertical;line-height:1.7}button{border:0;background:none;color:inherit}a{color:var(--teal);text-decoration:none}h1,h2,h3,p{margin-top:0}[hidden]{display:none!important}.primary,.secondary{border-radius:7px;padding:11px 17px;font-weight:600;white-space:nowrap}.primary{background:var(--teal);color:white;box-shadow:0 3px 6px #008b7b14}.primary:hover{background:#00796b}.secondary{border:1px solid #dce4e7;background:white}.secondary:hover{background:#f3f8f7}.text-button{color:var(--muted);font-size:12px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);font-weight:700}.app-shell{display:flex;min-height:100vh}.sidebar{width:210px;background:var(--navy);color:#a2b1ba;padding:30px 19px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:20px;font-weight:700;letter-spacing:-.5px}.brand-mark{font-size:28px;font-weight:800;width:39px;height:42px;border:1px solid #ffffff24;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;color:white;background:#ffffff09}.brand-mark span{color:#4fd7bc}.brand small{display:block;color:#8197a4;font-size:10px;font-weight:400;letter-spacing:2px;margin-top:5px}.workspace-label{font-size:9px;letter-spacing:1.8px;color:#607985;margin:52px 13px 16px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;padding:13px;border-radius:7px;text-align:left;margin-bottom:7px;font-size:13px;color:#a2b1ba}.nav-item>span{font-size:19px}.nav-item.active{background:#173c40;color:#65decc}.nav-item i{width:5px;height:5px;background:#65decc;border-radius:50%;margin-left:auto}.sidebar-bottom{margin-top:auto;font-size:11px;padding:16px 8px 0;border-top:1px solid #ffffff0c}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#20b79c;margin-right:7px}.sidebar-bottom small{display:block;font-size:10px;color:#597481;margin-top:10px;margin-left:14px}.main-wrap{margin-left:210px;min-width:0;width:calc(100% - 210px)}.topbar{height:73px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumb{font-size:11px;color:#96a0a7}.breadcrumb>span{margin:0 12px;color:#ccd3d8}.breadcrumb strong{color:#53646f;font-weight:500}.user-menu{display:flex;gap:10px;align-items:center;font-size:12px}.avatar{border-radius:50%;background:#e4f3ef;color:#087d6f;font-weight:700;width:29px;height:29px;display:grid;place-items:center}.user-menu .text-button{margin-left:8px;border-left:1px solid var(--border);padding-left:17px}main{max-width:1640px;margin:auto;padding:36px 38px 25px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-heading h1{font-size:29px;letter-spacing:-1px;margin:9px 0 10px;font-weight:700}.heading-dot{color:var(--teal);margin-left:3px}.page-heading p{color:var(--muted);font-size:12px;margin:0}.stats{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:18px;margin-bottom:27px}.stat{padding:21px 23px;background:white;border:1px solid var(--border);border-radius:10px}.stat>div{font-size:12px;color:#697985;display:flex;justify-content:space-between}.stat>div span{color:#9ebdb7}.stat strong{font-size:31px;letter-spacing:-1px;display:block;line-height:1.3;margin:13px 0 8px;font-weight:600}.stat small{font-size:10px;color:#a0a9b0}.last-stat strong{font-size:20px;letter-spacing:0;margin-top:20px;margin-bottom:14px}.table-panel{background:#fff;border:1px solid var(--border);border-radius:10px;overflow:hidden}.table-toolbar{padding:21px 22px;display:flex;justify-content:space-between;gap:15px;align-items:center}.panel-title{font-weight:600;white-space:nowrap}.panel-title span{color:#71948d;background:#eff6f4;font-size:10px;margin-left:7px;padding:3px 7px;border-radius:4px}.table-controls{display:flex;gap:9px;align-items:center}.table-controls input,.table-controls select,.table-controls button{font-size:11px;padding:9px 10px}.search{display:flex;align-items:center;border:1px solid #e1e7ea;border-radius:6px;padding-left:10px;gap:4px}.search span{font-size:20px;color:#8a99a2}.search input{border:0;width:205px;margin:0;background:transparent;font-weight:400}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{background:#f9fafb;color:#8c989f;font-size:10px;font-weight:500;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:13px 17px;white-space:nowrap}td{padding:19px 17px;border-bottom:1px solid #f0f3f5;font-size:12px;vertical-align:middle}th:first-child,td:first-child{padding-left:23px}.products-table{min-width:980px}.products-table th:first-child{width:29%}.products-table tbody tr:hover{background:#fbfdfc}.product-cell{display:flex;align-items:center;gap:11px;max-width:320px}.product-icon{flex-shrink:0;background:#f1f5f4;color:#8eaaa3;border:1px solid #e6eeeb;border-radius:8px;width:43px;height:46px;display:grid;place-items:center;font-size:21px}.product-name{display:block;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:600;line-height:1.55;color:#30434e;overflow-wrap:anywhere}.subtext{display:block;font-size:10px;color:#98a3ab;margin-top:6px;font-weight:400}.metric-line{display:flex;align-items:center;gap:8px}.sparkline{width:68px;height:25px;flex-shrink:0}.positive{color:var(--teal)}.negative{color:#bb685b}.badge{font-size:9px;border-radius:4px;padding:3px 5px;background:#edf7f3;color:#50927f;white-space:nowrap}.badge.warning{color:#ad7b34;background:#fff5e4}.badge.error-state{color:#ab6868;background:#fff0ef}.right{text-align:right}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;white-space:nowrap}.history-button{font-size:11px;color:var(--teal);padding:5px 0}.archive-button{color:#a5afb5;font-size:17px;padding:4px}.table-footer{padding:15px 23px;display:flex;justify-content:space-between;gap:10px;color:#9aa5ad;font-size:10px;background:#fff}.empty-state{text-align:center;padding:58px 22px 64px}.empty-state>span{font-size:32px;color:#8eaaa4}.empty-state h3{margin:17px 0 9px;font-size:17px}.empty-state p{font-size:12px;color:var(--muted);line-height:1.8}.empty-state button{font-size:12px;margin-top:10px}.data-note{font-size:10px;color:#98a3ab;margin:17px 0;line-height:1.8}.page-footer{padding:20px 38px 28px;display:flex;gap:15px;color:#a0acb4;font-size:9px;letter-spacing:1.6px}.page-footer span{letter-spacing:0}.page-footer span:last-child{margin-left:auto}dialog{border:0;border-radius:13px;padding:30px;width:min(550px,calc(100vw - 32px));box-shadow:0 20px 100px #12242f30;max-height:90vh;overflow:auto;color:var(--ink)}dialog::backdrop{background:#10263065;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-heading h2{font-size:23px;margin:8px 0 0}.icon-button{font-size:26px;color:#7f919d;line-height:1;padding:8px}dialog p{font-size:12px;color:var(--muted);line-height:1.9}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.error{color:#b54f4f!important;min-height:16px}.history-dialog{width:min(920px,calc(100vw - 32px))}.history-dialog>h3{font-size:15px;line-height:1.6;margin-bottom:10px}.history-toolbar{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:25px}.history-toolbar select{font-size:11px}.chart-heading{font-size:12px;font-weight:600;margin-bottom:13px}.chart-heading small{font-size:10px;font-weight:400;color:var(--muted);margin-left:10px}#history-chart{border:1px solid var(--border);border-radius:8px;padding:15px;min-height:150px;display:grid;align-items:center}#history-chart svg{width:100%;height:auto;max-height:225px}.chart-empty{text-align:center;color:var(--muted);font-size:12px}.history-table{min-width:660px}.history-table td{font-size:11px;padding:15px 12px}.history-table th{padding:12px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-card{padding:27px;background:white;border:1px solid var(--border);border-radius:10px}.settings-card h2{font-size:17px;margin-bottom:12px}.settings-card>p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:24px}.stack-form{display:grid;gap:16px}.stack-form button{justify-self:start;margin-bottom:10px}.users-list{margin-top:20px}.user-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--border);padding:16px 0}.user-row button{font-size:11px;color:var(--teal)}.collector-status{font-size:12px;background:#f5f8f7;padding:13px;border-radius:7px;color:#6a817a;margin:18px 0}.settings-note{display:block;font-size:11px;color:#8e9ca4;line-height:1.9;margin-top:23px}.token-note{margin-top:20px;color:#a57b3b!important}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:13px 21px;background:#183e39;color:#fff;border-radius:8px;box-shadow:0 5px 30px #0002;z-index:10;max-width:calc(100vw - 35px);font-size:13px}.login-view{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-brand{background:var(--navy);padding:9vh 12%;position:relative;overflow:hidden}.login-brand:after{content:"";width:450px;height:450px;position:absolute;border:1px solid #ffffff0b;border-radius:50%;right:-200px;bottom:-100px;box-shadow:0 0 0 75px #ffffff02,0 0 0 150px #ffffff02}.login-brand h1{font-size:clamp(35px,4.5vw,65px);color:#eff8f6;line-height:1.4;letter-spacing:2px;margin:13vh 0 20px}.login-brand>p{color:#78998f;font-size:13px;letter-spacing:2px}.login-caption{font-size:9px;letter-spacing:2px;color:#5d7980;position:absolute;bottom:6vh}.login-form{align-self:center;justify-self:center;width:min(330px,80%)}.login-form h2{font-size:28px;margin:13px 0}.login-form>p{font-size:12px;color:var(--muted);margin-bottom:30px}.login-form label{margin-top:22px}.login-form .primary{width:100%;display:flex;justify-content:space-between}.login-form>small{font-size:10px;color:#a3adb5;display:block;margin-top:23px}.login-form #login-error{margin:14px 0;font-size:12px;min-height:18px}
@media(min-width:1600px){main{padding-top:45px}.page-heading{margin-bottom:35px}.stats{margin-bottom:32px}td{padding-top:24px;padding-bottom:24px}}@media(max-width:1100px){.sidebar{width:176px;padding-left:14px;padding-right:14px}.brand{font-size:17px}.main-wrap{margin-left:176px;width:calc(100% - 176px)}main{padding:28px 23px}.topbar{padding:0 23px}.table-toolbar{align-items:flex-start;flex-direction:column}.table-controls{width:100%}.search{flex:1}.search input{width:100%}.stats{gap:12px}.stat{padding:18px}.admin-grid{grid-template-columns:1fr}.page-footer{padding:20px 23px}}@media(max-width:700px){.sidebar{position:static;width:100%;padding:14px 18px;flex-direction:row;align-items:center;gap:20px}.brand{font-size:16px}.brand-mark{width:32px;height:34px;font-size:24px}.brand small,.workspace-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;margin-left:auto}.nav-item{font-size:11px;width:auto;white-space:nowrap;margin:0;padding:9px;gap:5px}.nav-item>span{font-size:15px}.nav-item i{display:none}.app-shell{display:block}.main-wrap{margin:0;width:100%}.topbar{height:54px;padding:0 18px}.breadcrumb{font-size:10px}.user-menu{gap:6px;font-size:11px}.avatar{width:24px;height:24px}.user-menu .text-button{padding-left:10px;margin-left:2px}main{padding:24px 16px}.page-heading h1{font-size:25px}.page-heading .primary{font-size:11px;padding:10px 12px}.page-heading p{font-size:10px}.eyebrow{font-size:8px;letter-spacing:1.5px}.stats{grid-template-columns:1fr 1fr;gap:10px}.last-stat{grid-column:1/-1}.last-stat strong{margin:11px 0;font-size:19px}.stat{padding:16px}.stat strong{font-size:28px}.stat small{font-size:9px}.table-toolbar{padding:18px 14px}.table-controls{flex-wrap:wrap;gap:8px}.search{flex-basis:100%}.table-controls select{flex:1}.table-footer{padding:14px;flex-direction:column;font-size:9px}.data-note{font-size:9px}.page-footer{padding:10px 16px 24px;font-size:8px;gap:10px}.page-footer span:last-child{display:none}.login-view{grid-template-columns:1fr}.login-brand{padding:30px 10%}.login-brand h1{font-size:30px;margin:25px 0 10px}.login-brand>p{font-size:11px}.login-caption{display:none}.login-form{padding:35px 0;width:80%}.login-form h2{font-size:24px}.login-form>p{margin-bottom:24px}dialog{padding:23px}.settings-card{padding:21px}.chart-heading small{display:block;margin:7px 0 0}}

/* Product thumbnails and full clickable titles. */
.product-cell{max-width:380px;align-items:flex-start}.product-cell>div{min-width:0}.product-image-link{position:relative;display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border:1px solid #e4ebea;border-radius:8px;background:#fff;overflow:hidden}.product-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.product-image-fallback{font-size:10px;color:#99a6ad;text-align:center}.product-name{display:block;-webkit-line-clamp:unset;line-clamp:unset;overflow:visible;white-space:normal;overflow-wrap:anywhere}.product-name:hover{text-decoration:underline;color:var(--teal)}.product-image-link:hover{border-color:var(--teal)}


/* Three-date growth ranking. */
.ranking-note{margin:0;padding:0 22px 16px;color:#7a8792;font-size:11px;line-height:1.7}.products-table th:first-child{width:64px}.products-table th:nth-child(2){width:34%}.rank-cell{width:64px;text-align:center;vertical-align:middle}.rank-number{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:6px;background:#eef4f3;color:#51766e;font-weight:700}.rank-number.podium{background:#dbf3eb;color:#007865}.rank-unlisted{color:#a1afb5}.products-table{min-width:1100px}


.assignment-toolbar{padding:0 22px 16px;display:flex;gap:24px;align-items:center;flex-wrap:wrap}.inline-check{display:inline-flex;align-items:center;gap:8px;font-weight:400;font-size:12px}.inline-check input{width:auto;margin:0;accent-color:var(--teal)}#assignment-tools{display:flex;gap:16px;align-items:center}.assignment-cell{min-width:110px}.assignment-cell button{display:block;margin-top:8px;padding:0}.product-check{accent-color:var(--teal);float:left;margin:4px 10px 0 0}.products-table{min-width:1240px}#assignee{display:block;width:100%;margin-top:10px}

.supplier-cell{min-width:120px;max-width:170px;overflow-wrap:anywhere}.supplier-cell button{display:block;margin-top:8px;padding:0}.supplier-field{margin-top:18px}.supplier-help{color:var(--muted);font-size:11px;line-height:1.6;margin-top:9px}.products-table{min-width:1360px}.products-table th:nth-child(2){width:30%}

.supplier-library{grid-column:1/-1}.library-form{display:flex;align-items:flex-end;gap:14px;max-width:660px}.library-form label{flex:1}.product-id{display:flex;align-items:center;gap:8px;margin-top:7px;font-size:10px;color:var(--muted);overflow-wrap:anywhere}.copy-id{color:var(--teal);font-size:10px;padding:2px 4px;white-space:nowrap}.added-date{white-space:nowrap}.cooperation-cell{min-width:140px;max-width:180px;overflow-wrap:anywhere}.cooperation-cell>button{padding:0;margin-top:8px}.cooperation-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.rules-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.products-table{min-width:1600px}.products-table th:nth-child(2){width:27%}@media(max-width:700px){.cooperation-fields{grid-template-columns:1fr}.library-form{align-items:stretch;flex-direction:column}}

.cooperation-fields select{display:block;width:100%;margin-top:9px}.cooperation-cell .subtext{line-height:1.7}

.attachment-section{margin-top:18px}.attachment-label{display:block;font-size:13px;font-weight:600;margin-bottom:10px}.attachment-tools{display:flex;align-items:center;gap:14px}.attachment-preview{width:76px;height:76px;border:1px solid var(--border);border-radius:7px;background:#fff;padding:3px;cursor:zoom-in}.attachment-preview img{width:100%;height:100%;object-fit:contain}.list-attachment{display:block;width:42px;height:42px;padding:2px;margin-top:9px;border:1px solid var(--border);border-radius:5px;cursor:zoom-in}.list-attachment img{width:100%;height:100%;object-fit:contain}.image-viewer{width:min(1100px,95vw);max-height:95vh}.image-viewer>img{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:auto}

.collection-change.negative{color:#b44545}
