@charset "UTF-8";
/* Unified visual finish: navigation, sign-in and working surfaces. */
:root[data-theme]{--radius:13px;--radius-sm:8px}
:root[data-theme=douyin]{--bg:#090f1c;--surface:#111a2b;--surface-sub:#0d1524;--raised:#1b2940;--input-bg:#0b1321;--text:#edf3fd;--muted:#a5b5ca;--subtle:#8296b1;--line:rgba(154,177,208,.13);--line-strong:rgba(154,177,208,.22);--shadow-card:0 5px 18px #00000014}
:root[data-theme=stripe]{--bg:#f3f6fa;--surface:#fff;--surface-sub:#f7f9fc;--raised:#eaf0f7;--input-bg:#fff;--text:#19283e;--muted:#52647c;--subtle:#64768c;--line:#e4eaf2;--line-strong:#d4deeb;--shadow-card:0 5px 18px #20365408}
:root[data-theme=linear]{--bg:#111215;--surface:#1b1d23;--surface-sub:#16181e;--raised:#282b34;--input-bg:#14161b;--text:#f1f2f6;--muted:#afb3c2;--subtle:#8e94a8;--line:#ffffff10;--line-strong:#ffffff21;--shadow-card:0 5px 18px #00000014}
body{background:var(--bg);font-family:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}.sidebar{border-radius:16px;padding:16px 12px 12px;background:var(--surface-sub);border-color:var(--line-strong);box-shadow:none}.sidebar>.brand{background:transparent;border:0;padding:9px 9px 18px;margin-bottom:10px;border-bottom:1px solid var(--line);border-radius:0}.brand-mark{box-shadow:none;border-radius:10px}.brand-name{font-size:17px;letter-spacing:.2px}.brand-name small{font-size:8px;letter-spacing:1.1px;margin-top:4px}.nav-caption,.nav-section-label{color:var(--subtle);font-size:10px;font-weight:600;letter-spacing:.5px}.nav-caption{margin-bottom:8px}.nav-section-label{padding:14px 11px 5px;display:block}.desktop-nav{gap:4px;flex-shrink:1!important;min-height:0;overflow-y:auto;scrollbar-width:thin}.desktop-nav a{padding:9px 10px;border-radius:9px;font-size:12px;font-weight:600;gap:10px;min-height:43px}.desktop-nav a>[data-icon]{background:transparent;border:0;width:27px;height:27px}.desktop-nav a.active{background:var(--primary-soft);border-color:var(--primary-border);box-shadow:inset 3px 0 var(--primary);color:var(--text)}.desktop-nav a.active>[data-icon]{background:transparent;color:var(--primary);box-shadow:none}.desktop-nav a:hover{background:var(--raised)}.sidebar-footer{border-top:1px solid var(--line);padding-top:12px}.sidebar-user{background:transparent;border:0;padding:8px 5px}.sidebar-user strong{font-size:12px}.sidebar-user small{font-size:10px}.collapse-button{min-height:35px;font-size:10px;background:transparent;border-color:var(--line);border-radius:8px}.sidebar-collapsed .nav-section-label{display:none}.topbar{border-radius:13px;border-color:var(--line-strong);box-shadow:none;background:var(--surface)}.breadcrumb{font-size:12px;gap:9px}.breadcrumb-badge{font-size:8px;letter-spacing:.8px;background:transparent;border-color:var(--line-strong);color:var(--muted)}.topbar-theme-group{padding:3px;gap:2px;background:var(--surface-sub);border-radius:9px;border:1px solid var(--line)}.topbar-theme-pill{font-size:10px;padding:5px 8px;border-radius:6px}.service-state{font-size:10px;padding:6px 9px;box-shadow:none}.admin-avatar-trigger{border-radius:9px;border-color:var(--line);padding:5px 9px;gap:8px}.avatar{box-shadow:none}.account-popover{border-radius:13px;border-color:var(--line-strong);background:var(--surface);box-shadow:0 16px 48px #0003}.account-popover-header{padding:18px}.account-popover-actions button{min-height:39px;border-radius:7px;font-size:12px}.main-content{padding-top:22px}.page-heading{background:var(--surface);border:1px solid var(--line-strong);box-shadow:none;padding:20px 22px;border-radius:13px;min-height:112px}.page-heading::before{display:none}.page-heading h1{font-size:25px;letter-spacing:0;font-weight:750}.eyebrow{font-size:9px;letter-spacing:1px;color:var(--subtle)}.page-heading-info>#pageDescription{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.8}.ui-page-symbol{background:var(--primary-soft);border:1px solid var(--primary-border);box-shadow:none;width:43px;height:43px;border-radius:11px}.page-heading-actions .button{min-height:36px;font-size:11px;box-shadow:none}.button{border-radius:8px;font-weight:600;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.button-primary{background:var(--primary);box-shadow:none!important}.button-primary:hover:not(:disabled){filter:brightness(1.08);transform:none}.button-secondary{background:var(--surface);box-shadow:none}.button-danger{box-shadow:none}.button:hover:not(:disabled){transform:none}.panel,.stat-card,.engine-panel,.toolbar,.product-card,.page-card{box-shadow:var(--shadow-card);border-color:var(--line-strong)}.stat-card{border-radius:12px;background:var(--surface);padding:19px}.stat-card>strong{font-size:30px;font-weight:750;letter-spacing:-.6px}.stat-card>div{font-size:12px}.stat-card p{font-size:11px;line-height:1.8}.stat-icon-orb{box-shadow:none!important;border-radius:9px;width:33px;height:33px}.stat-card::before{height:2px;opacity:.8}.panel-heading{border-bottom-color:var(--line);padding:17px 19px}.panel-heading h2{font-size:14px}.toolbar{border-radius:11px;padding:13px 15px;background:var(--surface)}.segmented{background:var(--surface-sub);border-radius:8px;border-color:var(--line);padding:3px}.segmented button{border-radius:6px;font-size:11px;min-height:32px}.search-field{border-radius:8px;box-shadow:none;background:var(--input-bg)}.badge{border-radius:6px;font-weight:600;letter-spacing:0;box-shadow:none}.data-table thead th{background:var(--surface-sub);color:var(--muted);font-size:11px;letter-spacing:0;text-transform:none}.data-table tbody tr:hover td{background:var(--primary-soft)}.data-table tbody td{line-height:1.75}.management-metric{box-shadow:none}.management-metric strong{font-size:26px}.analytics-coverage,.pages-binding{box-shadow:none}.product-table-head{background:var(--surface-sub)!important}.product-card:hover{box-shadow:none}.product-info .product-title{font-weight:650}.manual-product-dialog,.workspace-command,.modal,.detail-dialog{background:var(--surface);border-color:var(--line-strong);border-radius:14px}.manual-product-form>header,.manual-product-form>footer{background:var(--surface);box-shadow:none}.manual-product-form h2{font-size:18px}.manual-product-image{background:var(--surface-sub)}.manual-fixed-highlight{border-radius:8px}.settings-section{box-shadow:none}.save-bar{background:var(--surface);box-shadow:0 -4px 20px #00000012}.notice{border-radius:9px}.toast{border-radius:10px;background:var(--surface);border-color:var(--line-strong);box-shadow:0 9px 28px #0002}.modal-symbol{box-shadow:none}.more-dialog{width:min(640px,calc(100vw - 24px));padding:22px}.more-dialog .modal-heading{padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:0}.more-dialog .modal-heading h2{font-size:19px}.menu-description{font-size:12px;color:var(--muted);margin:12px 0 16px}.more-links{display:grid;grid-template-columns:1fr 1fr;gap:9px}.more-links>a,.more-links>button{display:flex;align-items:center;gap:10px;padding:15px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-sub);color:var(--text);font-size:13px;min-width:0;text-align:left;min-height:58px}.more-links>a:hover,.more-links>button:hover{background:var(--primary-soft);border-color:var(--primary-border)}.more-links .icon{width:19px;height:19px;color:var(--primary);flex-shrink:0}.more-links>a>[data-icon]:last-child{margin-left:auto}.more-links>a>[data-icon]:last-child .icon{width:13px;height:13px;color:var(--muted)}.more-links>.logout-button{color:var(--red)}.more-links>.logout-button .icon{color:var(--red)}
/* Login: strong identity, a quiet and legible form. */
.login-shell{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:100dvh}.login-brand{padding:44px clamp(30px,4.4vw,78px);background:radial-gradient(ellipse at 12% 95%,#11658b44,transparent 60%),linear-gradient(145deg,#101e36,#091222);border-right:1px solid #ffffff14}.login-brand::before{width:470px;height:470px;border:1px solid #7dc6ff19;right:-240px;top:18%;background:transparent;border-radius:50%;filter:none;opacity:1}.login-brand::after{width:650px;height:650px;border:1px solid #7dc6ff12;right:-330px;top:9%;background:transparent;border-radius:50%;filter:none;opacity:1}.login-brand>.brand{background:transparent;border:0;padding:0;position:relative;z-index:1}.login-story{position:relative;z-index:1;max-width:550px}.login-story h1{font-size:clamp(40px,4.1vw,62px);line-height:1.25;letter-spacing:-1px;margin:18px 0 22px;color:#f3f7ff}.login-story h1>span{color:#56c7ed}.login-story .eyebrow{color:#95abc9;font-size:10px}.login-story .story-description{color:#b0c0d5;font-size:15px;line-height:1.95}.login-flow{background:#ffffff05;border:1px solid #ffffff12;border-radius:12px;padding:18px;margin-top:32px;gap:15px}.login-flow>div{background:transparent;border:0;padding:0;min-width:0;gap:9px;font-size:12px;color:#d4dfef}.login-flow .icon{width:20px;height:20px;color:#63c8ed}.login-flow .flow-arrow{color:#6b85a4;flex-shrink:0}.story-line{background:#ffffff12;margin-top:28px}.story-tags{gap:15px;color:#94aac5;font-size:11px}.brand-bottom{font-size:11px;line-height:1.9;color:#8199b8;position:relative;z-index:1}.brand-bottom span{font-size:10px;color:#68829f}.login-side{background:var(--bg);padding:40px;position:relative}.login-card{position:relative;width:100%;max-width:435px;padding:35px;border:1px solid var(--line-strong);border-radius:16px;background:var(--surface);box-shadow:0 15px 55px #00000016}.login-welcome{display:inline-block;color:var(--primary);font-size:11px;letter-spacing:.5px;background:var(--primary-soft);padding:4px 8px;border-radius:5px;margin-bottom:15px}.login-card h2{font-size:26px;letter-spacing:-.4px;margin-bottom:8px}.login-card .login-description{font-size:12px;color:var(--muted);margin-bottom:27px}.login-card .login-input{background:var(--input-bg);border-color:var(--line-strong);box-shadow:none}.login-card .login-input:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.login-submit{background:var(--primary)!important;box-shadow:none!important;border-radius:9px}.login-security{border-top:1px solid var(--line);margin-top:24px;padding-top:18px;font-size:11px}.login-copyright{font-size:10px;color:var(--subtle);margin-top:22px}.login-theme-picker{position:absolute;top:22px;right:24px;display:flex;gap:7px}.login-theme-picker button{width:16px;height:16px;padding:0;border:2px solid var(--line-strong);border-radius:50%;cursor:pointer;box-shadow:none}.login-theme-picker [data-login-theme=douyin]{background:#263e60}.login-theme-picker [data-login-theme=stripe]{background:#edf2f8}.login-theme-picker [data-login-theme=linear]{background:#42434b}.login-theme-picker [aria-pressed=true]{outline:2px solid var(--primary);outline-offset:3px}.login-theme-picker button:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
@media(max-height:820px) and (min-width:768px){.sidebar{padding-top:12px}.sidebar>.brand{padding-bottom:12px;margin-bottom:4px}.nav-section-label{padding-top:9px}.desktop-nav a{min-height:38px;padding-block:6px}.sidebar-footer{padding-top:7px}.sidebar-user{padding-block:5px}}
@media(max-width:1099px){.page-heading h1{font-size:23px}.login-brand{padding:35px 30px}.login-card{padding:30px;max-width:420px}.login-side{padding:28px}.login-flow{gap:10px;padding:14px}.login-flow>div{font-size:11px}.login-story .story-description{font-size:13px}}
@media(max-width:767px){.topbar{border-radius:11px;background:var(--surface);min-height:57px}.breadcrumb-badge{display:none}.breadcrumb{font-size:12px}.page-heading{min-height:0;padding:16px 14px;border-radius:11px;gap:10px}.page-heading h1{font-size:22px}.page-heading-info>#pageDescription{font-size:11px;line-height:1.75}.ui-page-symbol{width:35px;height:35px;border-radius:9px}.ui-page-symbol .icon{width:18px;height:18px}.page-heading-actions .button{min-height:36px;min-width:36px;padding:7px}.panel,.stat-card,.toolbar,.page-card{border-radius:10px}.stat-card{padding:14px}.stat-card>strong{font-size:27px}.stat-card>div{font-size:11px}.stat-card p{font-size:10px}.mobile-nav{background:var(--surface);border-top:1px solid var(--line-strong);box-shadow:0 -6px 20px #00000010;backdrop-filter:none;padding-top:7px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}.mobile-nav a,.mobile-nav button{font-size:10px;min-height:46px;border-radius:9px;gap:4px}.mobile-nav a.active,.mobile-nav button.active{background:var(--primary-soft);color:var(--primary)}.mobile-nav .icon{width:20px;height:20px}.more-dialog{width:calc(100vw - 18px);max-width:none;max-height:85dvh;margin:auto auto calc(10px + env(safe-area-inset-bottom));border-radius:17px;padding:19px 15px;overflow:auto}.more-links{gap:8px}.more-links>a,.more-links>button{font-size:12px;padding:13px 10px;gap:8px;min-height:55px}.more-links .icon{width:18px;height:18px}.more-links>a>[data-icon]:last-child{display:none}.menu-description{font-size:11px}.login-shell{display:flex;flex-direction:column}.login-brand{padding:24px 23px 26px;min-height:0;border:0}.login-brand>.brand{margin:0 0 22px}.login-brand .brand-mark{width:33px;height:33px}.login-brand .brand-name{font-size:16px}.login-story h1{font-size:32px;margin:9px 0 12px;line-height:1.25}.login-story .eyebrow{font-size:9px}.login-story .story-description{font-size:12px;line-height:1.85}.login-flow,.story-line,.story-tags,.brand-bottom{display:none}.login-brand::before{width:260px;height:260px;right:-120px;top:0}.login-brand::after{width:380px;height:380px;right:-185px;top:-60px}.login-side{padding:22px 16px 24px}.login-card{max-width:460px;padding:27px 22px;border-radius:13px}.login-card h2{font-size:24px}.login-card .login-description{font-size:12px;margin-bottom:23px}.login-card .login-input input{font-size:16px}.login-theme-picker{top:22px;right:23px}.login-theme-picker button{width:17px;height:17px}.login-security{margin-top:21px;padding-top:16px}.login-copyright{margin-top:19px}.manual-recovery{font-size:12px}.settings-jump-nav button{border-radius:7px}.toast-container{top:12px;right:12px}.toast{font-size:12px}}
@media(prefers-reduced-motion:reduce){.button,.desktop-nav a,.login-shell{transition:none}.login-brand::before,.login-brand::after{animation:none}}
/* Final pass: semantic icon contrast and consistent selected navigation. */
.desktop-nav a.active>[data-icon]{color:var(--primary)!important}.desktop-nav a.active>[data-icon] .icon{color:inherit;stroke:currentColor}.desktop-nav a>[data-icon]{opacity:1}.mobile-nav a.active,.mobile-nav button.active{color:var(--primary)!important}.mobile-nav a.active .icon,.mobile-nav button.active .icon{color:inherit;stroke:currentColor}
:root[data-theme=stripe]{color-scheme:light;--primary:#4338ca;--primary-hover:#3730a3;--primary-text:#fff;--green:#087458;--red:#b42340;--amber:#885100}
:root[data-theme=stripe] .desktop-nav a{color:#52647c}:root[data-theme=stripe] .desktop-nav a>[data-icon]{color:#52647c}:root[data-theme=stripe] .desktop-nav a:hover{background:#edf1f8;color:#253652}:root[data-theme=stripe] .desktop-nav a:hover>[data-icon]{color:#3730a3}:root[data-theme=stripe] .desktop-nav a.active{background:#eaeafb;border-color:#c6c5f1;color:#253284!important}:root[data-theme=stripe] .desktop-nav a.active>[data-icon]{color:#4338ca!important}:root[data-theme=stripe] .nav-caption,:root[data-theme=stripe] .nav-section-label{color:#65758c}
:root[data-theme=stripe] .mobile-nav{background:#fff}:root[data-theme=stripe] .mobile-nav a,:root[data-theme=stripe] .mobile-nav button{color:#52647c}:root[data-theme=stripe] .mobile-nav a.active,:root[data-theme=stripe] .mobile-nav button.active{color:#4338ca!important;background:#eaeafb}:root[data-theme=stripe] .mobile-nav .icon{color:inherit;opacity:1}:root[data-theme=stripe] .more-links>a>[data-icon],:root[data-theme=stripe] .more-links>a>.icon{color:#4338ca}:root[data-theme=stripe] .more-links>a{background:#f7f9fc;border-color:#dce3ee;color:#253652}:root[data-theme=stripe] .more-links>a:hover{background:#eaeafb;border-color:#b7b5eb}:root[data-theme=stripe] .more-links>.logout-button{color:#b42340}
:root[data-theme=stripe] .sidebar,:root[data-theme=stripe] .topbar,:root[data-theme=stripe] .page-heading{background:#fff}:root[data-theme=stripe] .button-secondary{background:#fff;color:#34445d;border-color:#d4deeb}:root[data-theme=stripe] .button-secondary:hover:not(:disabled){background:#f1f4fa;border-color:#abbad0}:root[data-theme=stripe] .button-primary{color:#fff!important}:root[data-theme=stripe] .button-ghost{color:#52647c}:root[data-theme=stripe] .button-danger-ghost{color:#b42340}:root[data-theme=stripe] .search-field .icon{color:#4e5eb0}:root[data-theme=stripe] .search-field .search-clear .icon{color:#52647c}:root[data-theme=stripe] input::placeholder,:root[data-theme=stripe] textarea::placeholder{color:#718198;opacity:1}:root[data-theme=stripe] .badge-success{color:#08654d;background:#e7f5ef;border-color:#b8dfcf}:root[data-theme=stripe] .badge-failed,:root[data-theme=stripe] .badge-danger{color:#a51e3c;background:#fcebf0;border-color:#f0c2cf}:root[data-theme=stripe] .badge-primary,:root[data-theme=stripe] .badge-processing,:root[data-theme=stripe] .badge-pending{color:#3730a3;background:#eeedff;border-color:#ccc9f5}:root[data-theme=stripe] .badge-neutral{color:#52647c;background:#eef2f7;border-color:#d9e1ed}:root[data-theme=stripe] .badge-urgent{color:#885100;background:#fff4db;border-color:#e9d39d}:root[data-theme=stripe] .account-popover{box-shadow:0 14px 42px #1d355b21}:root[data-theme=stripe] .command-item[aria-current=true]{background:#eeedff;border-color:#c6c5f1}:root[data-theme=stripe] .manual-fixed-highlight{color:#3730a3}:root[data-theme=stripe] .manual-duplicate-hint[data-state=clear]{color:#087458}:root[data-theme=stripe] .manual-duplicate-hint[data-state=duplicate]{color:#885100}:root[data-theme=stripe] .login-card .login-input>.icon{color:#52647c}
/* Keep decorative white symbols on their solid brand backgrounds. */
.brand-mark,.brand-mark .icon{color:#fff}.login-brand .brand-name{color:#f3f7ff!important}.login-brand .brand-name small{color:#8ed8f2!important}.icon-button:disabled,.button:disabled{cursor:not-allowed}.desktop-nav a:focus-visible,.more-links>a:focus-visible,.mobile-nav a:focus-visible,.mobile-nav button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.more-dialog .more-links a[aria-current=page]{border-color:var(--primary-border);background:var(--primary-soft)}.workspace-command[open]{display:flex;flex-direction:column}.workspace-command>header,.workspace-command>.command-search,.workspace-command>footer{flex-shrink:0}.workspace-command>.command-results{min-height:0;flex:1;overflow-y:auto}.workspace-command>footer{position:relative}.login-theme-picker button{min-width:20px;min-height:20px}.login-card .login-options .checkbox-label{min-height:32px}.settings-jump-nav button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:767px){.login-theme-picker{gap:9px}.mobile-nav a,.mobile-nav button{min-height:46px}.more-links>a,.more-links>button{min-height:56px}.command-launcher{min-height:36px}.daily-back-top{min-height:40px}.workspace-command{max-height:84dvh}.workspace-command>.command-results{max-height:none}}

