:root{--ink:#18242a;--muted:#748188;--line:#e5eaed;--paper:#fff;--wash:#f5f7f8;--green:#338d67;--green-dark:#247650;--mint:#e8f4ed;--orange:#ee6d39;--shadow:0 18px 60px rgba(24,36,42,.07)}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 82% 0%,#eaf5ed 0,transparent 34%),#f6f8f8;color:var(--ink);font-family:"DM Sans",sans-serif}.shell{max-width:1180px;margin:auto;padding:0 44px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6ebea}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--green);color:white;font:800 19px Manrope;box-shadow:0 6px 16px #338d6730}.brand b{display:block;font:700 14px Manrope;letter-spacing:-.2px}.brand small{display:block;margin-top:3px;font-size:9px;letter-spacing:1.35px;color:#89948f}.header-right{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}.secure-dot{height:7px;width:7px;border-radius:50%;background:#48a476;box-shadow:0 0 0 4px #48a4761c}.quiet-button{margin-left:10px;padding:8px 12px;color:#59676c;border:1px solid var(--line);border-radius:9px;background:#fff;font:600 11px inherit;cursor:pointer}main{max-width:820px;margin:0 auto}.intro{padding:58px 0 34px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--green);margin-bottom:14px}.intro h1{margin:0;color:#142128;font:800 clamp(37px,5vw,54px)/1.08 Manrope;letter-spacing:-2.7px}.intro h1 em{font-style:normal;color:var(--green)}.intro p{max-width:570px;color:#66747a;font-size:14px;line-height:1.7;margin:17px 0 0}.workspace{background:var(--paper);border:1px solid #e8edeb;border-radius:18px;box-shadow:var(--shadow);overflow:hidden}.tabs{display:flex;gap:6px;padding:14px 22px;border-bottom:1px solid var(--line);background:#fcfdfc}.tab{display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid transparent;border-radius:10px;background:transparent;color:#77838a;font:600 12px "DM Sans";cursor:pointer}.tab.active{color:var(--ink);background:white;border-color:#e7ece9;box-shadow:0 2px 7px #1b30310b}.tab-icon{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#f0ecff;color:#7161b8;font:800 9px Manrope}.shopee-icon{color:#d65d31;background:#fff0e8}.panel{padding:30px 32px 25px}.panel[hidden]{display:none}.panel-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:23px}.step{font-size:9px;letter-spacing:1.55px;color:#7b69c9;font-weight:700}.shopee-step{color:var(--orange)}.panel h2{font:700 21px Manrope;letter-spacing:-.65px;margin:8px 0 5px}.panel-heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.file-badge{white-space:nowrap;padding:6px 8px;border:1px solid var(--line);border-radius:7px;color:#879196;font-size:9px}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.dropzone{min-height:146px;padding:19px;border:1px dashed #d2ded7;background:#fbfdfb;border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;cursor:pointer;transition:.16s}.dropzone:hover,.dropzone:focus-within{border-color:#78b18f;background:#f6fbf7}.dropzone strong{font:700 13px Manrope}.dropzone>span:nth-of-type(2){font-size:11px;color:var(--muted)}.upload-symbol{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--mint);color:var(--green);font-size:18px}.file-count{font-size:10px;color:var(--green-dark);font-weight:600;margin-top:2px}.dropzone input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.shopee-drop{min-height:130px}.field-label{display:flex;justify-content:space-between;gap:10px;margin:21px 0 8px;font-size:11px;font-weight:700}.field-label span{font-weight:400;color:#9aa3a5}.exclude-input,.advanced textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:9px;padding:11px 12px;background:#fff;color:var(--ink);font:11px/1.55 "DM Sans";outline:none}.exclude-input:focus,.advanced textarea:focus,.advanced input:focus{border-color:#86b99a;box-shadow:0 0 0 3px #338d6711}.exclude-input::placeholder{color:#a9b2b5}.advanced{padding-top:14px;margin-top:11px;border-top:1px solid #f0f2f1}.advanced summary{font-size:11px;color:#707c80;font-weight:600;cursor:pointer}.advanced-grid{display:grid;grid-template-columns:180px 1fr;gap:17px;padding-top:14px}.advanced-grid label{font-size:10px;color:#626f73;font-weight:600}.advanced input{display:block;width:100%;margin-top:7px;padding:9px;border:1px solid var(--line);border-radius:8px;font:12px "DM Sans"}.advanced textarea{display:block;margin-top:7px}.advanced small{display:block;margin-top:5px;color:#879398;font-weight:400}.status{display:none;margin-top:16px;padding:11px 13px;background:#f2f8f4;border-radius:9px;color:#326d4d;font-size:11px;line-height:1.55}.status.show{display:block}.status.error{background:#fff3f0;color:#a8442b}.status.busy{background:#f3f6f8;color:#50626a}.actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:21px}.privacy-note{font-size:10px;color:#879196}.privacy-note span{color:#54a277;margin-right:5px}.primary-button{border:0;border-radius:10px;padding:12px 16px;background:var(--green);color:#fff;font:700 11px "DM Sans";cursor:pointer;box-shadow:0 5px 13px #338d6728;transition:.15s}.primary-button span{padding-left:15px;font-size:15px;vertical-align:-1px}.primary-button:hover{background:var(--green-dark);transform:translateY(-1px)}.primary-button:disabled{opacity:.55;cursor:wait;transform:none}.shopee-button{background:var(--orange);box-shadow:0 5px 13px #ee6d3928}.shopee-button:hover{background:#d95b2c}footer{display:flex;justify-content:space-between;gap:15px;padding:17px 2px;color:#929c9f;font-size:10px}footer b{font-size:9px;letter-spacing:.7px;color:#6d7b7e;margin-left:4px}.auth-screen{position:fixed;inset:0;z-index:10;display:grid;place-items:center;padding:22px;background:#f3f6f4ef;backdrop-filter:blur(8px)}.auth-screen[hidden]{display:none}.auth-card{width:min(100%,365px);padding:32px;background:white;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.auth-card .brand-mark{margin-bottom:24px}.auth-card h2{margin:0 0 8px;font:700 23px Manrope}.auth-card p{margin:0 0 20px;color:var(--muted);font-size:12px}.auth-card label{display:block;margin-bottom:7px;font-size:11px;font-weight:700}.auth-card input{width:100%;padding:11px;border:1px solid var(--line);border-radius:9px;margin-bottom:13px}.auth-card button{width:100%}.error-text{color:#ae4228;font-size:11px;margin-top:10px}@media(max-width:650px){.shell{padding:0 17px}.topbar{height:70px}.header-right{font-size:0}.quiet-button{font-size:11px}.intro{padding:39px 0 25px}.intro h1{letter-spacing:-1.8px}.intro p{font-size:12px}.tabs{padding:10px 12px}.panel{padding:23px 17px 20px}.panel h2{font-size:18px}.panel-heading{margin-bottom:18px}.upload-grid{grid-template-columns:1fr}.dropzone{min-height:125px}.advanced-grid{grid-template-columns:1fr}.actions{align-items:flex-end}footer{font-size:9px}}

.pivot-icon{background:#e7f4ee;color:#388761}.pivot-step{color:#388761}.pivot-panel{padding-bottom:30px}.pivot-upload-row{display:grid;grid-template-columns:1fr 220px;align-items:stretch;gap:14px}.pivot-drop{min-height:118px}.pivot-load{display:flex;flex-direction:column;justify-content:flex-end;gap:13px;padding:7px 0 2px}.pivot-button{width:100%}.pivot-workbench{margin-top:24px}.pivot-workbench[hidden]{display:none}.pivot-toolbar{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:18px 0 13px}.pivot-toolbar>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.pivot-toolbar b{font:700 12px Manrope}.pivot-toolbar span{color:var(--muted);font-size:10px}.pivot-toolbar .quiet-button{margin:0}.pivot-layout{display:grid;grid-template-columns:208px minmax(0,1fr);gap:15px}.field-sidebar,.chart-card,.table-card{border:1px solid var(--line);border-radius:11px;background:#fff}.field-sidebar{padding:13px;align-self:start}.field-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.field-heading strong{font:700 11px Manrope}.field-heading span{font-size:10px;color:var(--muted)}#fieldSearch{width:100%;height:32px;border:1px solid var(--line);border-radius:7px;padding:0 9px;font:10px "DM Sans";outline:none}.field-list{display:flex;flex-direction:column;gap:4px;margin:10px 0;max-height:315px;overflow:auto}.field-item{display:flex;align-items:center;gap:7px;width:100%;min-height:29px;padding:5px 7px;border:0;border-radius:6px;background:#f7f9f8;text-align:left;color:#435158;font:10px "DM Sans";cursor:grab}.field-item:hover,.field-item.selected{background:#eaf4ed;color:#347950}.field-type{flex:none;font-size:8px;color:#96a29d}.field-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.add-field-control{display:block;padding-top:10px;border-top:1px solid #eef1ef;color:var(--muted);font-size:9px}.add-field-control select,.pivot-actions select,.chart-heading select{display:block;width:100%;height:30px;margin-top:5px;padding:0 7px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#39464a;font:10px "DM Sans"}.pivot-zones{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.pivot-zone{min-height:64px;padding:9px;border:1px dashed #d9e1dc;border-radius:8px;background:#fafcfb}.pivot-zone.drag-over{border-color:#389367;background:#edf7f0}.zone-title{color:#8a9991;font-size:8px;font-weight:700;letter-spacing:1px}.zone-fields{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;min-height:20px}.zone-empty{color:#b1bab6;font-size:9px}.zone-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:4px 6px;border:1px solid #e4ece6;border-radius:6px;background:#fff;color:#3e5650;font-size:9px}.zone-chip-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.zone-chip select{max-width:82px;border:0;border-left:1px solid #edf0ee;padding-left:4px;color:#66756e;font:9px "DM Sans"}.zone-remove{border:0;background:transparent;color:#97a39d;font-size:13px;cursor:pointer;padding:0 1px}.view-switch{display:flex;gap:4px}.pivot-viewbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #eef1ef}.view-button{padding:7px 9px;border:0;border-radius:6px;background:transparent;color:#83908c;font:600 9px "DM Sans";cursor:pointer}.view-button.active{background:#eaf4ed;color:#347950}.pivot-actions{display:flex;align-items:center;gap:9px}.pivot-actions label,.chart-heading label{font-size:9px;color:#7a8781}.pivot-actions select{display:inline-block;width:auto;min-width:74px;height:27px;margin:0 0 0 5px}.export-button{height:27px;padding:0 9px;border:1px solid var(--line);border-radius:7px;background:white;color:#51615a;font:600 9px "DM Sans";cursor:pointer}.filter-controls{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 9px}.filter-control{display:flex;align-items:center;gap:6px;padding:5px 7px;border:1px solid var(--line);border-radius:7px;color:#718078;font-size:9px}.filter-control select{max-width:150px;border:0;color:#49574f;font:9px "DM Sans";outline:none}.chart-card{padding:11px 13px;margin-bottom:10px}.chart-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.chart-heading b{display:block;font:700 10px Manrope}.chart-heading span{display:block;margin-top:3px;color:#8a9691;font-size:8px}.chart-heading select{display:inline-block;width:auto;min-width:110px;margin:0 0 0 5px}.chart-canvas{height:220px;margin-top:7px;overflow:hidden}.chart-canvas svg{display:block;width:100%;height:100%}.chart-empty{display:grid;place-items:center;height:100%;color:#9ba6a1;font-size:10px}.pivot-chart-label{fill:#78867e;font:9px "DM Sans",sans-serif}.pivot-chart-legend{fill:#627069;font:9px "DM Sans",sans-serif}.table-card{overflow:hidden}.table-scroll{max-height:440px;overflow:auto}#pivotTable{width:100%;border-collapse:separate;border-spacing:0;font-size:9px}#pivotTable th,#pivotTable td{padding:8px 9px;border-bottom:1px solid #edf0ee;white-space:nowrap;text-align:right;color:#43514b}#pivotTable th{position:sticky;top:0;z-index:1;background:#f4f7f5;color:#6d7a73;font-weight:700;text-align:right}#pivotTable th:first-child,#pivotTable td:first-child{text-align:left}#pivotTable td:first-child{max-width:180px;overflow:hidden;text-overflow:ellipsis}.table-footer{padding:8px 10px;color:#8a9690;font-size:9px;background:#fbfcfb}.raw-preview{max-height:500px}.pivot-main{min-width:0}.pivot-main.hidden{display:none}
@media(max-width:780px){.pivot-layout{grid-template-columns:1fr}.field-sidebar{display:grid;grid-template-columns:1fr;order:0}.field-list{max-height:145px}.pivot-main{order:1}.pivot-upload-row{grid-template-columns:1fr}.pivot-load{align-items:flex-start}.pivot-button{width:auto}.pivot-zone{min-height:60px}}
@media(max-width:650px){.tabs{overflow-x:auto}.tab{white-space:nowrap;padding:9px}.pivot-zones{grid-template-columns:1fr}.pivot-viewbar{align-items:flex-start;flex-direction:column}.pivot-actions{width:100%;justify-content:space-between}.pivot-actions select{min-width:0}.chart-canvas{height:190px}.pivot-toolbar{align-items:flex-start}.pivot-toolbar>div{display:block}.pivot-toolbar span{display:block;margin-top:4px}}
#pivotTable tr.pivot-total td{background:#f4f8f5;font-weight:700;color:#2f6949}

/* Give the data workspace room on desktop instead of keeping the whole app in a narrow centered column. */
.shell{max-width:1720px;padding-inline:clamp(24px,4vw,72px)}
main{width:100%;max-width:none;margin:0}
.intro{padding:48px 0 28px}
.intro p{max-width:760px;font-size:15px}
.workspace{width:100%}
.panel{padding:34px clamp(22px,3vw,48px) 38px}
.pivot-panel{padding-bottom:40px}
.pivot-layout{grid-template-columns:minmax(270px,22%) minmax(0,1fr);gap:22px}
.field-sidebar{padding:18px}
.field-heading strong{font-size:14px}
.field-heading span,.field-item,.add-field-control,.pivot-toolbar span,.zone-title,.zone-chip,.view-button,.pivot-actions label,.chart-heading label,.filter-control{font-size:12px}
.field-list{max-height:420px}
.field-item{min-height:36px;padding:7px 9px}
.add-field-control select,.pivot-actions select,.chart-heading select,.filter-control select{font-size:12px}
.pivot-zone{min-height:78px;padding:12px}
.zone-empty{font-size:11px}
.zone-chip{padding:6px 8px}
.view-button{padding:9px 12px}
.chart-card{padding:18px 20px;margin-bottom:16px}
.chart-heading b{font-size:14px}
.chart-heading span{font-size:11px}
.chart-canvas{height:360px;margin-top:12px}
.chart-empty{font-size:13px}
.pivot-chart-label,.pivot-chart-legend{font-size:11px}
.pivot-bar-value{fill:#273b32;font:600 8px "DM Sans",sans-serif;paint-order:stroke;stroke:#fff;stroke-width:2.5px;stroke-linejoin:round}
.product-family-controls{padding:13px 15px;margin:0 0 10px;border:1px solid var(--line);border-radius:10px;background:#fcfdfc}
.product-family-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.product-family-heading strong{font:700 12px Manrope}
.product-family-actions{display:flex;gap:7px}
.product-family-actions button{padding:5px 9px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#526158;font:600 10px "DM Sans";cursor:pointer}
.product-family-list{display:flex;flex-wrap:wrap;gap:7px}
.product-family-option{display:flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #e5ebe7;border-radius:7px;background:#fff;color:#4b5b52;font-size:11px;cursor:pointer}
.product-family-option input{accent-color:var(--green)}
.table-scroll{max-height:560px}
#pivotTable{font-size:12px}
#pivotTable th,#pivotTable td{padding:11px 13px}
#pivotTable td:first-child{max-width:320px}
.table-footer{padding:11px 14px;font-size:11px}
@media(max-width:780px){.shell{padding-inline:22px}.pivot-layout{grid-template-columns:1fr;gap:16px}.field-list{max-height:190px}.chart-canvas{height:280px}}
@media(max-width:650px){.shell{padding-inline:14px}.intro{padding:32px 0 22px}.panel{padding:22px 14px 24px}.pivot-zones{grid-template-columns:1fr}.chart-canvas{height:230px}#pivotTable{font-size:11px}}
