:root{--status-ok:#8ed6b1;--status-ok-bg:#183c30;--status-ok-border:#32604e;--status-wait:#b9c3ce;--status-wait-bg:#28313c;--status-wait-border:#46505c;--status-error:#ffa2ab;--status-error-bg:#46272e;--status-error-border:#75424c;--status-info:#a1c5ff;--status-info-bg:#24364f;--status-warning:#f2c579;--status-warning-bg:#45371f}
:root[data-theme-mode="light"]{--text:#2d3342;--muted:#697181;--status-ok:#176547;--status-ok-bg:#eaf7ef;--status-ok-border:#b9ddc7;--status-wait:#606b7a;--status-wait-bg:#f1f3f6;--status-wait-border:#dce1e8;--status-error:#a42d42;--status-error-bg:#fff0f2;--status-error-border:#efc4cb;--status-info:#315d9b;--status-info-bg:#edf3fc;--status-warning:#88600e;--status-warning-bg:#fff6de}
:root[data-theme] .pill{color:var(--status-ok);background:var(--status-ok-bg);border-color:var(--status-ok-border);font-weight:500}
:root[data-theme] .pill.off{color:var(--status-wait);background:var(--status-wait-bg);border-color:var(--status-wait-border)}
:root[data-theme] .pill.red{color:var(--status-error);background:var(--status-error-bg);border-color:var(--status-error-border)}
:root[data-theme] .pill::before{animation:none!important}
:root[data-theme] .stats .stat{background:var(--panel);border-color:var(--border);border-top:3px solid var(--lime)}
:root[data-theme] .stats .stat:nth-child(2){border-top-color:var(--status-ok)}
:root[data-theme] .stats .stat:nth-child(3){border-top-color:var(--status-info)}
:root[data-theme] .stats .stat:nth-child(4){border-top-color:var(--status-warning)}
:root[data-theme] .stats .stat .value{color:var(--text)}
:root[data-theme] .stats .stat .top,:root[data-theme] .stats .stat .sub{color:var(--muted)}
:root[data-theme] .authority-step{background:var(--panel);border-left:3px solid var(--status-ok)}
:root[data-theme] .authority-step:nth-child(2){border-left-color:var(--status-info)}
:root[data-theme] .authority-step:nth-child(3){border-left-color:var(--lime)}
:root[data-theme] .authority-step strong{color:var(--text)}
:root[data-theme] .catalog-product{background:var(--panel)}
:root[data-theme] .catalog-product-title{color:var(--text)}
:root[data-theme] .catalog-note{color:var(--muted)}
:root[data-theme] .table-wrap th{background:var(--panel2);color:var(--muted)}
:root[data-theme] .table-wrap tbody tr:hover{background:var(--soft,var(--panel2))}
.topbar-tools{display:flex;align-items:center;gap:12px}
.purchase-panel{margin-top:24px;margin-bottom:24px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:28px;border-left:4px solid var(--status-info)}
.purchase-panel h2{margin:10px 0}.purchase-panel p{margin:7px 0;color:var(--muted)}
.purchase-panel .eyebrow{color:var(--status-info)}
.purchase-actions{display:flex;flex-direction:column;gap:10px;flex-shrink:0;min-width:160px}
#purchase-sync-message{color:var(--status-info);font-size:13px}
.creator-start{padding:24px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-left:4px solid var(--lime)}
.creator-start h2{margin:8px 0}.creator-start p{margin:0;color:var(--muted)}
.creator-start .form-actions{margin:0;flex-shrink:0;display:flex;gap:10px;align-items:center}
#modal{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
#oauth-settings{max-width:660px}#oauth-settings .muted{margin:0;font-size:12px}
@media(max-width:1000px){.creator-start{align-items:flex-start;flex-direction:column}.creator-start .form-actions{flex-wrap:wrap}}
@media(max-width:650px){.purchase-panel{align-items:stretch;flex-direction:column;padding:20px}.purchase-actions{flex-direction:row;flex-wrap:wrap}.topbar-tools{gap:6px}.topbar-tools .small{padding:7px}.creator-start{padding:20px}.creator-steps li{padding:12px}.creator-start h2{font-size:17px}}

.creator-tour{padding:24px;margin-bottom:28px;border:1px solid var(--lime);box-shadow:0 8px 24px var(--shadow,#0002);scroll-margin-top:20px}
.creator-tour h2{font-size:23px;margin:18px 0 8px;outline:none}.creator-tour p{max-width:800px;color:var(--muted);margin:0 0 20px;line-height:1.9}.creator-tour small{color:var(--status-ok)}
.tour-progress{display:flex;gap:7px;margin-top:18px}.tour-progress span{height:4px;flex:1;border-radius:4px;background:var(--border)}.tour-progress .current{background:var(--lime)}.tour-progress .visited{background:var(--status-ok)}
.tour-actions{display:flex;gap:10px;flex-shrink:0}.tour-target{outline:3px solid var(--lime)!important;outline-offset:5px;scroll-margin-top:24px}.tour-target:focus{outline-offset:5px}
@media(max-width:650px){.creator-tour{padding:18px}.tour-bottom{align-items:flex-start;flex-direction:column}.tour-actions{width:100%;flex-wrap:wrap}.tour-actions .primary{margin-left:auto}.creator-tour h2{font-size:20px}}

[data-tour-action="previous"]:disabled::after,#purchase-link:disabled::after{display:none}
[data-tour-action="previous"]:disabled,#purchase-link:disabled{cursor:not-allowed}
@media(max-width:650px){.topbar{gap:12px}.topbar .crumb{display:none}.topbar .mobile-menu{flex:1;min-width:0;width:auto}.topbar-tools{flex-shrink:0}.topbar-tools .theme-picker{gap:0}.topbar-tools .theme-picker select{max-width:100px}#creator-help{white-space:nowrap;flex-shrink:0}.page-head{flex-wrap:wrap}.page-head>div{flex:1;min-width:180px}.page-head>button{white-space:nowrap;flex-shrink:0}}

.oauth-application{margin-top:24px;padding-top:20px;border-top:1px solid var(--border);font-size:13px;line-height:1.8}.oauth-application summary{cursor:pointer;color:var(--lime);font-weight:600}.oauth-application p{color:var(--muted);margin-top:12px}.oauth-application a{color:var(--lime);text-decoration:underline}.oauth-application textarea{width:100%;max-width:100%;resize:vertical;min-height:190px;padding:12px;color:var(--text);background:var(--panel2);border:1px solid var(--border);border-radius:10px;font:inherit;line-height:1.7}.oauth-application button{margin-top:12px}
