:root{color-scheme:light;--font-sans:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--bg:#f4f5f7;--surface:#ffffff;--border:#e6e8eb;--border-strong:#d0d5dd;--text:#1a1d23;--text-secondary:#5c6570;--text-muted:#8b93a0;--text-faint:#b0b7c3;--hover:#f0f2f5;--accent:#2563eb;--accent-hover:#1d4ed8;--accent-soft:#eff5ff;--accent-ring:#bfdbfe;--danger:#dc2626;--radius:8px;--radius-sm:6px;--sidebar-width:280px}*{box-sizing:border-box}body,html{margin:0;padding:0;height:100%;overflow:hidden;font-family:var(--font-sans);font-weight:400;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4,h5,h6{font-weight:500}#__next{height:100%;overflow:hidden}.appShell{width:100%;overflow:hidden}.appShell,.sidebar{height:100vh;display:flex}.sidebar{width:var(--sidebar-width);flex-shrink:0;border-right:1px solid var(--border);background:var(--surface);padding:20px 14px;position:-webkit-sticky;position:sticky;top:0;overflow:auto;flex-direction:column;gap:12px}.sidebarBrand{display:flex;align-items:center;padding:2px 10px 18px;border-bottom:1px solid var(--border);margin-bottom:4px}.sidebarBrandLink{display:inline-flex;align-items:center;line-height:0;text-decoration:none;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer}.sidebarBrandLink:focus-visible,.sidebarBrandLink:hover{opacity:.85;outline:none}.sidebarLogo{display:block;width:61px;height:20px;max-width:61px;object-fit:contain;image-rendering:auto}.sidebarNav{flex:1 1;min-height:0}.navList{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.navItem{display:block;width:100%;text-align:left;border:none;border-radius:var(--radius);padding:10px 14px;margin:0;background:transparent;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--text-secondary);font-family:inherit;font-size:14px;font-weight:400;line-height:1.4;text-decoration:none;transition:background-color .12s ease,color .12s ease,box-shadow .12s ease}.navItem:hover{background:var(--hover);color:var(--text)}.navItemActive{background:var(--accent-soft);color:var(--accent);font-weight:500;box-shadow:inset 3px 0 0 var(--accent)}a.navItemLink{box-sizing:border-box}.contentArea{flex:1 1;min-width:0;padding:12px 16px 16px;height:100vh;overflow:hidden;display:flex;flex-direction:column;gap:10px;background:var(--bg)}.contentAreaFullscreen{padding:8px}.layoutControls{display:flex;justify-content:flex-end;gap:8px}.layoutButton{border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:5px 10px;cursor:pointer;font-family:inherit;font-size:12px;font-weight:400;line-height:1.2;background:transparent;color:var(--text-secondary);transition:background-color .12s ease,border-color .12s ease,color .12s ease}.layoutButtonInactive:hover{background:var(--surface);border-color:#98a2b3;color:var(--text)}.layoutButtonActive{background:var(--accent-soft);border-color:var(--accent-ring);color:var(--accent)}.layoutButtonActive:hover{background:#dbeafe}.card{width:100%;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;box-shadow:none}.loginPage{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;background:var(--bg)}.loginCard{width:min(420px,100%);padding:28px 28px 24px}.loginCard h2{margin:0 0 6px;font-size:22px;font-weight:500;letter-spacing:-.02em}.loginCard p{margin:0 0 20px;color:var(--text-muted);font-size:14px;font-weight:400}.loginCard .formRow{margin:0 0 12px}.loginCard .formRow input{width:100%}.loginCard .buttonRow{margin:8px 0 0}.loginCard .buttonRow button{width:100%;min-height:40px;font-weight:500}.dashboardCard{flex:1 1;min-height:0;flex-direction:column;overflow:hidden;border:1px solid var(--border);border-radius:12px}.dashboardCard,.dashboardTopBar{display:flex;background:var(--surface)}.dashboardTopBar{align-items:center;justify-content:flex-end;gap:10px;padding:10px 14px;border-bottom:1px solid var(--border)}.dashboardTopBar button{background:transparent;color:var(--text-secondary);border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:5px 11px;cursor:pointer;font-family:inherit;font-size:12px;font-weight:400}.dashboardTopBar button:hover{background:var(--hover);color:var(--text);border-color:#98a2b3}.dashboardUserLabel{color:var(--text-muted);font-size:13px;font-weight:400}.rangeFilterBar{display:flex;align-items:flex-end;gap:8px;padding:12px 14px;border-bottom:1px solid var(--border);flex-wrap:wrap;background:#fbfbfc}.rangeFilterBar label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:400;color:var(--text-muted)}.rangeFilterBar input{width:120px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:6px 8px;color:var(--text);font-family:inherit;font-size:13px;font-weight:400;background:var(--surface)}.rangeFilterBar input[type=date]{width:146px}.rangeFilterBar input.dateInputEmpty{color:var(--text-faint)}.rangeFilterBar input.dateInputEmpty::-webkit-datetime-edit{color:var(--text-faint)}.filterButton{border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:7px 12px;cursor:pointer;color:var(--text-secondary);background:var(--surface);font-family:inherit;font-size:13px;font-weight:400;line-height:1.2;transition:background-color .12s ease,border-color .12s ease,color .12s ease}.filterButtonInactive{background:var(--surface);border-color:var(--border-strong);color:var(--text-muted)}.filterButtonInactive:hover:not(:disabled){border-color:#98a2b3;color:var(--text)}.filterButtonActive{background:var(--accent-soft);border-color:var(--accent-ring);color:var(--accent)}.filterButtonApplyReady{background:var(--accent);border-color:var(--accent);color:#ffffff}.filterButtonApplyReady:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.filterButtonSecondary{background:transparent;border-color:var(--border-strong);color:var(--text-secondary)}.filterButtonSecondary:hover:not(:disabled){background:var(--hover);color:var(--text)}a.filterButtonLink{display:inline-flex;align-items:center;text-decoration:none;box-sizing:border-box}.rangeFilterBar button:disabled{opacity:.55;cursor:not-allowed}.modalOverlay{position:absolute;inset:0;background:rgba(23,23,23,.4);display:flex;align-items:center;justify-content:center;z-index:12}.modalCard{width:min(620px,92vw);max-height:75vh;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px;box-shadow:0 16px 48px rgba(0,0,0,.12)}.modalCard h3{margin:0;font-size:16px;font-weight:500}.modalSearchInput{border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:8px 10px;font-family:inherit;font-size:13px;font-weight:400}.storeListBox{border:1px solid var(--border);border-radius:var(--radius);padding:8px;overflow:auto;max-height:46vh}.storeListItem{display:flex;align-items:center;gap:8px;padding:6px 4px;font-size:13px;font-weight:400}.modalActions{display:flex;justify-content:flex-end;gap:8px}.modalActions button{border:none;cursor:pointer;font-family:inherit;font-weight:400}.modalActionChip{border-radius:var(--radius-sm);padding:7px 12px;font-size:12px;border:1px solid var(--border-strong)!important}.modalActionChip,.modalActionChipReady{color:var(--text-secondary);background:var(--surface)}.modalActionChipMuted{background:var(--hover);color:var(--text-muted)}.modalApplyButton{border-radius:var(--radius-sm);padding:8px 14px;color:#ffffff;font-size:13px}.modalApplyButtonReady{background:var(--accent)}.modalApplyButtonMuted{background:#c5cad3}.statusText{margin:8px 12px;font-size:13px;font-weight:400}.card h1{margin:0 0 12px;font-size:22px;font-weight:500;letter-spacing:-.02em}.card p{margin:0 0 12px;font-weight:400}.card ul{margin:0;padding-left:18px}.buttonRow{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}.buttonRow button{background:var(--accent);color:#ffffff;border:none;border-radius:var(--radius-sm);padding:8px 14px;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500}.buttonRow button:disabled{opacity:.55;cursor:not-allowed}.buttonRow .activeButton{background:var(--accent-hover)}.formRow{display:flex;flex-direction:column;gap:6px;margin:10px 0;font-size:13px;font-weight:400;color:var(--text-secondary)}.formRow input{border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:8px 10px;font-family:inherit;font-size:14px;font-weight:400;color:var(--text)}.errorText{color:var(--danger)}.exportPage{box-sizing:border-box;height:100vh;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;align-items:flex-start;justify-content:center;padding:24px 16px 48px;background:var(--bg)}.exportCard{width:min(720px,100%);flex-shrink:0}.exportCardInShell{width:100%;max-width:none;margin:0}.exportShellPanel{flex:1 1;min-height:0;overflow:auto;padding-bottom:24px}.exportShellPanel .exportCard{width:100%;max-width:none}.exportPicker{gap:8px;width:100%}.exportPicker,.navSubList{display:flex;flex-direction:column}.navSubList{list-style:none;padding:0 0 4px 12px;margin:2px 0 0;gap:2px}.navSubItem{padding:8px 12px;font-size:13px}.exportCard h1{margin:0 0 8px;font-size:22px;letter-spacing:-.02em}.exportCard h1,.exportCardTitlePlain{font-weight:500}.exportCard p{margin:0 0 8px;font-size:14px;line-height:1.45;color:var(--text-muted);font-weight:400}.exportCardFooter{margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}.exportMeta{color:var(--text-muted);font-size:13px;font-weight:400}.exportDateRow{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0 8px}.exportDateRow label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:400;color:var(--text-secondary)}.exportDateRow input[type=date]{width:146px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:6px 8px;color:var(--text);font-family:inherit;font-weight:400}.exportDateRow input.dateInputEmpty{color:var(--text-faint)}.exportDateRow input.dateInputEmpty::-webkit-datetime-edit{color:var(--text-faint)}.exportArticlesFieldset{border:1px solid var(--border);border-radius:var(--radius);margin:12px 0 16px;padding:12px 14px}.exportArticlesFieldset legend{font-size:12px;font-weight:400;color:var(--text-secondary);padding:0 4px}.exportArticlesList{display:flex;flex-wrap:wrap;gap:10px 16px}.exportArticleOption{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:400;color:var(--text)}.exportArticleChips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px;max-height:140px;overflow:auto;padding:2px}.exportArticleChip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border-strong);border-radius:999px;padding:4px 8px 4px 10px;font-size:13px;font-weight:400;color:var(--text);background:var(--bg)}.exportArticleChip button{border:none;background:transparent;color:var(--text-muted);cursor:pointer;font-size:16px;line-height:1;padding:0}.exportArticleAutocomplete{position:relative}.exportArticleInput,.exportStoreSearchInput{width:100%;border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:8px 10px;font-size:13px;font-weight:400;font-family:inherit}.exportArticleSuggestions{position:absolute;z-index:5;top:calc(100% + 4px);left:0;right:0;margin:0;padding:4px 0;list-style:none;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:0 8px 24px rgba(0,0,0,.08);max-height:220px;overflow:auto}.exportArticleSuggestions li button{width:100%;border:none;background:transparent;text-align:left;padding:8px 12px;font-size:13px;font-weight:400;cursor:pointer;font-family:inherit}.exportArticleSuggestions li button:hover{background:var(--hover)}.exportLookupHint{margin:8px 0 0;font-size:12px;font-weight:400;color:var(--text-muted)}.exportCollapsible{border:1px solid var(--border);border-radius:var(--radius);margin:10px 0 12px;background:var(--surface)}.exportCollapsibleSummary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer;list-style:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.exportCollapsibleSummary::-webkit-details-marker{display:none}.exportCollapsibleSummary:before{content:"▸";flex-shrink:0;width:14px;color:var(--text-muted);font-size:12px;transition:transform .15s ease}.exportCollapsible[open]>.exportCollapsibleSummary:before{transform:rotate(90deg)}.exportCollapsibleTitle{font-size:13px;font-weight:500;color:var(--text-secondary)}.exportCollapsibleMeta{font-size:12px;font-weight:400;color:var(--text-muted);margin-left:auto;text-align:right}.exportCollapsibleBody{border-top:1px solid var(--border);padding:10px 12px 12px}.exportCollapsibleActions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:10px;padding-top:8px;border-top:1px solid var(--border)}.exportCollapsibleActions button{border:1px solid var(--border-strong);border-radius:999px;background:var(--surface);padding:6px 12px;font-size:12px;font-weight:400;cursor:pointer;font-family:inherit;color:var(--text-secondary)}.exportCollapsibleActions button:disabled{opacity:.5;cursor:not-allowed}.exportCardsPanel{border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px 12px;margin:0 0 12px;background:var(--surface)}.exportCardsHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.exportCardsActions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.exportCardsActions button{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);padding:6px 10px;font-size:12px;font-weight:400;cursor:pointer;font-family:inherit;color:var(--text-secondary)}.exportCardsActions button:disabled{opacity:.5;cursor:not-allowed}.exportCardsList{display:flex;flex-direction:column;gap:4px;max-height:180px;overflow:auto;border:1px solid var(--border);border-radius:var(--radius-sm);padding:6px 8px}.exportCardListItem{display:flex;align-items:flex-start;gap:8px;padding:6px 4px;font-size:13px;font-weight:400;cursor:pointer}.exportCardsStack{display:flex;flex-direction:column;gap:10px;margin-top:10px}.exportCardUnit{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.exportCardUnitActive{border-color:var(--border-strong)}.exportCardUnitOpen{box-shadow:0 4px 16px rgba(0,0,0,.04)}.exportCardUnitHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px 12px}.exportCardUnitTitleBtn{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;border:none;background:transparent;padding:0;cursor:pointer;text-align:left;font-family:inherit;color:inherit;flex:1 1;min-width:0}.exportCardUnitChevron{color:var(--text-muted);font-size:12px;width:14px;flex-shrink:0}.exportCardUnitName{font-size:14px;font-weight:500}.exportCardUnitBody{border-top:1px solid var(--border);padding:12px}.exportCardFlags{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:6px}.exportCardFlagItem{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:400;cursor:pointer}.exportCardUnitFooter{margin-top:12px;padding-top:8px;border-top:1px solid var(--border)}.exportCopyStoresRow{margin-bottom:10px}.exportCopyStoresLabel{display:block;margin-bottom:6px;font-size:12px;font-weight:400;color:var(--text-secondary)}.exportCopyStoresControls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.exportCopyStoresSelect{flex:1 1;min-width:160px;padding:8px 10px;font-size:13px}.exportCopyStoresControls button,.exportCopyStoresSelect{border:1px solid var(--border-strong);border-radius:var(--radius-sm);font-family:inherit;background:var(--surface)}.exportCopyStoresControls button{padding:6px 12px;font-size:12px;font-weight:400;cursor:pointer;color:var(--text-secondary)}.exportCopyStoresControls button:disabled{opacity:.5;cursor:not-allowed}.exportModalOverlay{position:fixed;inset:0;background:rgba(23,23,23,.4);display:flex;align-items:center;justify-content:center;z-index:40;padding:16px}.exportModalCard{width:min(420px,92vw);max-height:none}.exportModalField{display:flex;flex-direction:column;gap:6px;font-size:12px}.exportModalField,.exportModalMessage{font-weight:400;color:var(--text-secondary)}.exportModalMessage{margin:0;font-size:13px;line-height:1.4}.modalApplyButtonDanger{background:#c62828}.modalApplyButtonDanger:hover{background:#b71c1c}.exportStoresFieldset{border:1px solid var(--border);border-radius:var(--radius);margin:12px 0 16px;padding:12px 14px}.exportStoresFieldset legend{font-size:12px;font-weight:400;color:var(--text-secondary);padding:0 4px}.exportStoreListBox{border:1px solid var(--border);border-radius:var(--radius);padding:8px;overflow:auto;max-height:220px;margin-top:10px}.exportStoreListItem{display:flex;align-items:center;gap:8px;padding:6px 4px;font-size:13px;font-weight:400}.exportStoreActions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.exportStoreActions button{border:1px solid var(--border-strong);border-radius:999px;background:var(--surface);padding:6px 12px;font-size:12px;font-weight:400;cursor:pointer;font-family:inherit;color:var(--text-secondary)}.exportStoreActions button:disabled{opacity:.5;cursor:not-allowed}.exportPeriodFieldset{border:1px solid var(--border);border-radius:var(--radius);padding:10px 14px 12px;margin:0 0 10px}.exportPeriodFieldset legend{padding:0 6px;font-weight:500;font-size:13px;color:var(--text-secondary)}.exportProgressWrap{margin:16px 0}.exportProgressBar{height:6px;border-radius:999px;background:linear-gradient(90deg,var(--accent) 0,#93c5fd 50%,var(--accent) 100%);background-size:200% 100%;animation:exportProgressSlide 1.2s linear infinite}@keyframes exportProgressSlide{0%{background-position:200% 0}to{background-position:-200% 0}}.embedContainer{width:100%;min-height:0;height:100%;border:none;border-radius:0;overflow:hidden;margin-top:0;background:var(--surface);flex:1 1}.embedStage{position:relative;flex:1 1;min-height:0}.embedLoaderOverlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(244,245,247,.82);z-index:2}.embedLoaderSpinner{width:36px;height:36px;border-radius:50%;border:2px solid var(--accent-ring);border-top-color:var(--accent);animation:embedLoaderSpin .7s linear infinite}@keyframes embedLoaderSpin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.embedContainer iframe{width:100%!important;height:100%!important;border:0;display:block}@media (max-width:1024px){.appShell{flex-direction:column}.sidebar{width:100%;height:auto;position:static;border-right:none;border-bottom:1px solid var(--border)}.contentArea{height:auto;overflow:auto}.dashboardCard{height:calc(100vh - 240px);min-height:auto}.embedContainer{min-height:75vh;height:75vh}}