
/* Supporting pages only: consistent with approved V2 tokens, no global redesign. */
.sp-support,.sp-legal{max-width:1120px;margin-inline:auto}
.sp-support{padding:8px 0 24px}
.sp-support>.row:first-child{gap:12px;margin:0 0 18px;align-items:center}
.sp-support>.row:first-child h1,.sp-legal>header h1{font-size:clamp(25px,2.5vw,34px);line-height:1.2;letter-spacing:-.02em;margin:0}
.sp-support>.row:first-child .primary{border-radius:100px;padding:9px 15px}
.sp-support-layout{gap:16px;grid-template-columns:minmax(175px,220px) minmax(0,1fr);margin:0 0 16px;align-items:start}
.sp-support-layout>nav{padding:9px;gap:6px!important;border-radius:12px}
.sp-support-layout>nav button{min-height:42px;display:flex;gap:9px;align-items:center;font-size:13px;padding:9px 11px;border-radius:8px}
.sp-support-layout>nav button.active{background:color-mix(in srgb,var(--accent) 20%,var(--surface));color:var(--text)}
.sp-support-content{min-width:0;border:1px solid var(--border);border-radius:12px;padding:14px;background:var(--surface)}
.sp-support-content:has(.support-layout){border:0;background:none;padding:0}
.sp-support-content>.accordion{border-radius:9px;margin:0 0 8px;background:var(--surface);box-shadow:none}
.sp-support-content>.accordion:last-child{margin:0}
.sp-support-content>.accordion summary{min-height:45px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;font-weight:600;font-size:13px}
.sp-support-content>.accordion p{margin:0;padding:2px 0 4px;line-height:1.6;color:var(--muted)}
.sp-support-content>.accordion>div{padding:0 12px 10px}
.sp-support-content>.sp-section-title{font-size:16px;font-weight:700;margin:0 0 13px}
.sp-support-content>section.panel,.sp-support-content>form.panel{padding:0;border:0;background:none}
.sp-support-content .support-layout{display:grid;grid-template-columns:minmax(160px,240px) minmax(0,1fr);gap:12px;min-height:400px}
.sp-support-content .support-layout>aside{border-radius:12px;padding:11px;gap:8px;min-width:0}
.sp-support-content .support-layout>aside h3,.sp-support-content .support-thread h3{font-size:14px;line-height:1.35}
.sp-support-content .support-layout>aside input{width:100%;min-width:0;height:35px;font-size:11px}
.sp-support-content .ticket-row{padding:11px 10px;text-align:start;border-radius:9px;display:grid;gap:5px;min-width:0;width:100%;white-space:normal}
.sp-support-content .ticket-row b{font-size:13px;line-height:1.3}
.sp-support-content .ticket-row small{font-size:11px}
.sp-support-content .ticket-row.active{background:color-mix(in srgb,var(--accent) 14%,var(--surface));border-color:color-mix(in srgb,var(--accent) 60%,var(--border))}
.sp-support-content .support-thread{border-radius:12px;min-width:0;padding:13px;display:flex;flex-direction:column;gap:9px;min-height:400px}
.sp-support-content .support-thread .chat-scroll{flex:1;min-height:180px;max-height:45dvh;padding:9px 3px}
.sp-support-content .support-thread #ticket-reply{gap:6px}
.sp-support-content .support-thread #ticket-reply input{min-width:0;width:0;flex:1}
.sp-support-content .support-thread .bubble{font-size:12px;max-width:86%;line-height:1.5}
.sp-support-content .support-thread .row>div{min-width:0}
.sp-support-content .sp-thread-back{display:none}
.sp-support>.sp-link{display:inline-flex;align-items:center;gap:6px;padding:6px 0;font-size:12px}
.sp-support-content #sp-ticket-search{display:flex;gap:8px}
.sp-support-content #sp-ticket-search input{flex:1;min-width:0}
.sp-support-content textarea{resize:vertical;min-height:100px}
.sp-support-content label{display:grid;gap:6px;font-size:12px;font-weight:600}
.sp-support-content .sp-ref-box{padding:10px;border:1px solid var(--border);border-radius:9px;display:flex;justify-content:space-between;gap:8px;align-items:center}
.sp-support-content .sp-ref-box:empty{display:none}
.sp-legal{padding:6px 0 32px}
.sp-legal>header{padding:20px 0 25px;border-bottom:1px solid var(--border);margin-bottom:24px}
.sp-legal>header>small{font-size:11px;font-weight:700;color:var(--accent);letter-spacing:.05em}
.sp-legal>header h1{margin:10px 0}
.sp-legal>header p{font-size:12px;line-height:1.6;margin:7px 0;color:var(--muted)}
.sp-legal>header .sp-link{font-size:12px;display:inline-block;margin-top:6px}
.sp-legal-grid{gap:clamp(20px,3vw,40px);grid-template-columns:minmax(185px,230px) minmax(0,1fr)}
.sp-legal .sp-toc{padding:14px;max-height:calc(100dvh - 125px);border-radius:12px;overflow:auto}
.sp-legal .sp-toc summary{font-size:14px;cursor:pointer;font-weight:700}
.sp-legal .sp-toc ol{margin:12px 0 0;padding-inline-start:20px}
.sp-legal .sp-toc li{margin:2px 0}
.sp-legal .sp-toc button{font-size:12px;line-height:1.45;padding:6px 2px;text-align:start}
.sp-legal article{font-size:14px;line-height:1.85;min-width:0;max-width:780px}
.sp-legal article section{scroll-margin-top:100px;margin:0 0 22px;padding:0 0 22px}
.sp-legal article section h2{font-size:clamp(18px,2vw,23px);line-height:1.35;margin:0 0 12px}
.sp-legal article section p,.sp-legal article section li{overflow-wrap:anywhere;margin-block:0 10px}
.sp-legal article>div.panel{border-radius:10px;padding:13px 16px}
.sp-status{min-height:100dvh;grid-template-rows:1fr;box-sizing:border-box;padding:72px 16px 30px}
.sp-status-top{inset:12px clamp(16px,3vw,48px) auto;gap:12px}
.sp-status-top>a::before{width:135px;height:44px}
.sp-status>section{gap:13px;width:min(550px,100%);padding:12px}
.sp-status>section>svg{box-sizing:border-box;width:64px;height:64px;padding:16px;border-radius:16px}
.sp-status .sp-error-number{font-size:43px;line-height:1.05;letter-spacing:.02em}
.sp-status h1{font-size:clamp(25px,3vw,36px);line-height:1.2}
.sp-status p{font-size:14px;line-height:1.6;margin:0;max-width:440px}
.sp-status .sp-primary{width:auto;min-width:152px;padding:9px 20px;border-radius:8px}
.sp-status .sp-link{font-size:12px}
.sp-status .panel{padding:15px;border-radius:10px;gap:6px}
.sp-status .panel h3{font-size:15px;margin:0}
.sp-status .panel p{font-size:13px}
.sp-status .panel small{display:none}
.sp-status .sp-mode{display:none!important}
.sp-report-dialog,.sp-team-dialog{gap:12px!important}
.sp-report-dialog>.panel,.sp-team-dialog>.panel{padding:10px 12px;border-radius:9px;background:var(--raised)}
.sp-report-dialog>.panel svg{color:var(--accent);width:24px;height:24px}
.sp-report-dialog .row>button{min-height:36px}
.sp-team-dialog label,.sp-report-dialog label{font-size:12px;font-weight:600}
.sp-report-dialog textarea{min-height:90px;resize:vertical}
.sp-team-dialog .sp-team-cover{width:48px!important;height:68px!important}
.sp-team-dialog .sp-balance{color:var(--accent);font-weight:700}
.sp-auth-scene{box-sizing:border-box;height:auto;min-height:100dvh;gap:0!important}
.sp-auth-main{gap:clamp(14px,4vw,60px);padding:8px clamp(16px,3.2vw,48px);min-height:0}
.sp-auth-top{flex-shrink:0;padding-block:7px}
.sp-auth-footer{flex-shrink:0;padding-block:6px}
.sp-auth-card{max-width:500px;min-width:0;box-sizing:border-box;padding:20px!important;gap:10px!important;border-radius:14px!important}
html:not([data-theme=light]) .sp-auth-card{background:color-mix(in srgb,#12172a 88%,transparent)!important;border-color:#6d739b55}
html[data-theme=light] .sp-auth-card{background:#fffdf2ee!important;border-color:#ded8e8}
.sp-auth-card>svg{width:29px;height:29px}
.sp-auth-card .sp-auth-kicker{font-size:10px;letter-spacing:.04em}
.sp-auth-card>p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}
.sp-auth-card h1{font-size:26px;margin:0}
.sp-auth-card .sp-field{font-size:12px;gap:4px}
.sp-auth-card .sp-field input,.sp-auth-card .sp-code input{min-height:36px;height:36px;padding:6px 9px;font-size:13px}
.sp-auth-card .sp-code input{text-align:center}
.sp-auth-card .sp-primary{padding:9px;min-height:36px;font-size:13px;border-radius:8px}
.sp-auth-card .sp-auth-bottom{gap:8px}
.sp-auth-card .sp-auth-bottom a{font-size:11px}
.sp-auth-story{gap:12px}
.sp-auth-story h1{font-size:clamp(30px,3vw,48px)}
.sp-story-feature{padding:11px;font-size:13px}
.sp-auth-card .sp-feedback{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid var(--border);background:var(--raised);border-radius:8px;line-height:1.5;font-size:12px}
.sp-auth-card .sp-feedback svg{flex-shrink:0;color:var(--accent);width:20px;height:20px}
.sp-auth-card .sp-feedback.success svg{color:#34d399}
.sp-auth-card .sp-feedback.error svg{color:#ef7184}
.sp-auth-card .sp-feedback p{margin:3px 0 0;color:var(--muted)}
.sp-empty-v2{min-height:130px;padding:20px!important;border-radius:10px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;color:var(--muted);box-sizing:border-box}
.sp-empty-v2>svg{width:27px;height:27px;color:var(--muted)}
.sp-empty-v2>b{font-size:13px;color:var(--text);font-weight:650}
.sp-empty-v2>small{font-size:12px}
.sp-empty-v2>a,.sp-empty-v2>button{margin-top:5px;font-size:12px;color:var(--accent)}
.sp-inline-notice{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-inline-start:3px solid var(--accent);background:var(--surface);border-radius:9px;padding:11px 14px}
.sp-inline-notice>svg{width:20px;height:20px;color:var(--accent)}
.sp-inline-notice .grow{display:grid;gap:4px}
.sp-inline-notice small{color:var(--muted);font-size:12px}
@media(max-width:760px){
 .sp-support>.row:first-child h1{font-size:23px}
 .sp-support>.row:first-child{margin-bottom:12px}
 .sp-support>.row:first-child button{font-size:11px;padding:7px 10px}
 .sp-support-layout{grid-template-columns:minmax(0,1fr);gap:10px}
 .sp-support-layout>nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;padding:7px;gap:4px!important}
 .sp-support-layout>nav button{font-size:11px;min-height:36px;gap:5px;padding:6px;white-space:normal;justify-content:center}
 .sp-support-layout>nav button svg{width:13px;height:13px}
 .sp-support-content{padding:10px}
 .sp-support-content .support-layout{grid-template-columns:minmax(0,1fr);min-height:0}
 .sp-support-content .support-thread{display:none;min-height:350px}
 .sp-support-content .support-layout.sp-thread-open>aside{display:none}
 .sp-support-content .support-layout.sp-thread-open .support-thread{display:flex}
 .sp-support-content .sp-thread-back{display:flex;align-self:start;gap:5px;font-size:12px}
 .sp-support-content .ticket-row{padding:10px}
 .sp-legal{padding:0 0 20px}
 .sp-legal>header{padding:12px 0 17px;margin-bottom:14px}
 .sp-legal>header h1{font-size:27px}
 .sp-legal-grid{grid-template-columns:minmax(0,1fr);gap:15px}
 .sp-legal .sp-toc{position:static;max-height:none;padding:12px}
 .sp-legal article{font-size:14px;line-height:1.75}
 .sp-legal article section{margin-bottom:16px;padding-bottom:16px}
 .sp-status-top>a::before{width:100px}
 .sp-status>section{padding:5px;gap:10px}
 .sp-auth-top{padding:5px 10px}
 .sp-auth-main{flex:1;padding:6px 10px}
 .sp-auth-card{padding:15px!important;gap:9px!important}
 .sp-auth-card h1{font-size:23px}
 .sp-auth-card>svg{width:25px;height:25px}
 .sp-auth-footer{padding:8px 10px;font-size:11px}
}
@media(max-height:740px) and (max-width:760px){.sp-auth-card{gap:7px!important;padding:12px!important}.sp-auth-card h1{font-size:21px}.sp-auth-card .sp-field input{height:32px;min-height:32px}.sp-auth-footer{padding-block:5px}}

.sp-support-content>.accordion{padding:0!important}.sp-support-content>.accordion summary{box-sizing:border-box;min-height:44px;padding:10px 12px!important}.sp-support-content>.accordion>div{padding:0 12px 12px!important}.sp-status-top>a{display:block;font-size:0!important;line-height:0!important;min-width:0}.sp-status-top>a::before{display:block}.sp-status-top>a::after{content:none!important}
