@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');
:root{
  --bg:#031022;--bg2:#06182f;--panel:#0a2140;--panel2:#0d2b52;--panel3:#102f5b;
  --line:#184b83;--line2:#246db6;--text:#f6fbff;--muted:#8fb0d2;--blue:#1689ff;--cyan:#1dc9ff;
  --orange:#ff9900;--yellow:#ffc633;--green:#21c87a;--red:#f3494e;--shadow:0 16px 36px rgba(0,0,0,.28);
  --r:15px;--r2:11px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:'Prompt','Noto Sans Thai',system-ui,sans-serif;background:radial-gradient(circle at 70% 0,#0a2b56 0,transparent 30%),linear-gradient(180deg,#021020,#020b18 70%);color:var(--text)}body{font-size:14px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%;display:block}.hidden{display:none!important}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.center{text-align:center}.full{width:100%}.mobile-only{display:none}
.app-shell{min-height:100vh;display:grid;grid-template-columns:238px 1fr}.sidebar{position:fixed;left:0;top:0;bottom:0;width:238px;padding:18px 14px;background:linear-gradient(180deg,#061a36 0,#04152e 65%,#031126 100%);border-right:1px solid #153e6d;box-shadow:12px 0 40px rgba(0,0,0,.18);z-index:40}.brand{display:flex;align-items:center;gap:11px;padding:6px 8px 22px;border-bottom:1px solid rgba(66,132,198,.28)}.brand-mark{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;font-size:24px;font-weight:800;font-style:italic;color:#fff;background:linear-gradient(145deg,#1dbaff,#1265eb 55%,#7a5cff);box-shadow:0 9px 20px rgba(19,120,255,.28),inset 0 1px 0 rgba(255,255,255,.4)}.brand-mark.giant{width:92px;height:92px;border-radius:24px;font-size:46px}.brand strong{display:block;font-size:15px;letter-spacing:.1px}.brand small{display:block;color:#8eafd0;font-size:10px;margin-top:1px}.side-label{font-size:10px;letter-spacing:1.4px;color:#6288ae;padding:18px 10px 8px;text-transform:uppercase}.sidebar nav{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid transparent;border-radius:10px;color:#cfe3f6;transition:.18s}.nav-item:hover{background:#0c315e;border-color:#1b5995}.nav-item.active{color:#fff;background:linear-gradient(180deg,#0c5cb5,#08498f);border-color:#1b79da;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 6px 14px rgba(2,74,151,.24)}.nav-icon{width:24px;text-align:center;font-size:17px}.sidebar-foot{position:absolute;left:14px;right:14px;bottom:16px}.system-mini{display:flex;gap:9px;align-items:center;padding:11px;border:1px solid #174b7a;border-radius:11px;background:#08213e}.system-mini strong,.system-mini small{display:block}.system-mini strong{font-size:11px}.system-mini small{color:#789bbb;font-size:9px}.pulse{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(33,200,122,.1),0 0 12px rgba(33,200,122,.6);display:inline-block}.main-wrap{grid-column:2;min-width:0}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:rgba(5,21,43,.88);backdrop-filter:blur(14px);border-bottom:1px solid #153c67;position:sticky;top:0;z-index:30}.top-title h1{margin:1px 0 0;font-size:20px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:#65aef1;font-weight:600}.top-actions{display:flex;align-items:center;gap:9px}.status-chip,.user-chip,.icon-btn{border:1px solid #1a4e7e;background:linear-gradient(180deg,#0e2e55,#082141);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}.status-chip{padding:8px 11px;border-radius:9px;display:flex;align-items:center;gap:7px;font-size:11px}.user-chip{display:flex;align-items:center;gap:8px;padding:5px 10px 5px 6px;border-radius:10px}.user-chip strong,.user-chip small{display:block}.user-chip strong{font-size:11px}.user-chip small{font-size:9px;color:#87a9c9}.avatar{width:32px;height:32px;border-radius:8px;background:linear-gradient(145deg,#1e9cff,#1162c8);display:grid;place-items:center;font-weight:700}.icon-btn{width:37px;height:37px;border-radius:9px;color:#fff;display:grid;place-items:center}.content{padding:22px;max-width:1800px;margin:0 auto}.panel{background:linear-gradient(180deg,rgba(12,39,75,.96),rgba(7,29,58,.98));border:1px solid #174a7f;border-radius:var(--r);box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.04);padding:17px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.panel-head h3{margin:2px 0 0;font-size:16px}.hero-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;margin-bottom:18px;border-radius:16px;border:1px solid #1b5793;background:radial-gradient(circle at 75% 40%,rgba(20,146,255,.18),transparent 24%),linear-gradient(120deg,#0c2a51,#092242 62%,#0a315f);box-shadow:var(--shadow)}.hero-strip h2{font-size:25px;margin:2px 0 4px}.hero-strip p{margin:0;color:#9bbbd9}.btn{border:1px solid #286aa5;border-radius:9px;padding:9px 13px;color:#fff;background:linear-gradient(180deg,#123966,#0b294e);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:500;transition:.17s}.btn:hover{transform:translateY(-1px);filter:brightness(1.08)}.btn:active{transform:translateY(0)}.btn-primary{border-color:#1d90ef;background:linear-gradient(180deg,#1ca6ff 0,#1277e8 54%,#0d5bbd 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 8px 18px rgba(10,108,229,.24)}.btn-danger{border-color:#f15b61;background:linear-gradient(180deg,#ef555b,#b71f35)}.btn-ghost{background:#0a274b}.btn-lg{padding:11px 17px;font-size:14px}.btn-xl{padding:15px 20px;font-size:16px;border-radius:11px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:18px}.stat-card{display:flex;align-items:center;gap:13px;padding:15px;border-radius:13px;border:1px solid #174d81;background:linear-gradient(180deg,#0b2a51,#08213f);box-shadow:0 10px 26px rgba(0,0,0,.18)}.stat-icon{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;font-size:21px;background:#0e396a;border:1px solid #1e69ab}.stat-card small,.stat-card span,.stat-card strong{display:block}.stat-card small{font-size:10px;color:#88a8c7}.stat-card strong{font-size:22px;margin:0}.stat-card span{font-size:9px;color:#6e91b4}.tone-cyan .stat-icon{background:#073e5d;border-color:#138fbc}.tone-orange .stat-icon{background:#4a2e0c;border-color:#9e671a}.tone-green .stat-icon{background:#0b4739;border-color:#158565}.grid-2{display:grid;grid-template-columns:1.55fr 1fr;gap:16px}.design-list,.provider-health{display:grid;gap:9px}.design-row,.health-row{display:flex;align-items:center;gap:11px;padding:10px;border:1px solid #123e6b;background:#071d39;border-radius:10px}.design-row:hover{border-color:#2678bd;background:#0a294d}.thumb,.version-thumb{width:70px;height:48px;border-radius:8px;overflow:hidden;background:#0d315b;display:grid;place-items:center}.thumb img,.version-thumb img{width:100%;height:100%;object-fit:cover}.design-row strong,.health-row strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.design-row small,.health-row small{display:block;color:#7699bc;font-size:10px}.provider-orb{width:37px;height:37px;border-radius:9px;background:#0d3d72;border:1px solid #1d66a7;display:grid;place-items:center}.health-meta{text-align:right}.badge,.version-pill,.chip{font-size:9px;padding:4px 7px;border-radius:999px;border:1px solid #285b86;background:#102f50;color:#bed8ed;white-space:nowrap}.status-completed{background:#0d4d3c!important;border-color:#1a8466!important;color:#82f0c6!important}.status-processing{background:#4d3808!important;border-color:#a87813!important;color:#ffd77d!important}.status-failed{background:#4d1720!important;border-color:#a63a48!important;color:#ffabb1!important}.status-draft{background:#23354d!important;border-color:#49617b!important;color:#aebfd0!important}.mini-note{margin-top:13px;padding:10px 12px;border-radius:9px;border:1px solid #17466f;background:#071c34;color:#8faecc;font-size:10px}.empty-state{padding:42px 18px;text-align:center;color:#8ca9c6}.empty-state>div{font-size:42px}.empty-state h3,.empty-state h4{color:#fff;margin:8px 0 4px}.empty-state p{margin:0 0 14px}.steps{display:flex;align-items:center;gap:5px;margin-bottom:14px}.step{display:flex;align-items:center;gap:7px;color:#6687a7;padding:7px 12px;border-radius:9px;border:1px solid transparent}.step span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#0a2b4f;border:1px solid #174f82;font-size:10px}.step b{font-size:11px}.step.active{color:#fff;background:#0a284a;border-color:#16558d}.step.active span{background:linear-gradient(180deg,#1599f7,#0f65cc);border-color:#38adff}.design-workspace{display:grid;grid-template-columns:380px 1fr 310px;gap:14px;align-items:start}.create-left,.create-center,.create-right{min-height:620px}.create-right{position:sticky;top:90px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.span2{grid-column:span 2}label{display:block;font-size:10px;color:#90afd0;margin-bottom:10px}input,select,textarea{width:100%;margin-top:5px;color:#eef8ff;background:#041a34;border:1px solid #174d7e;border-radius:9px;padding:10px 11px;outline:none;transition:.15s}input:focus,select:focus,textarea:focus{border-color:#1a91ea;box-shadow:0 0 0 3px rgba(22,137,255,.1)}textarea{resize:vertical;line-height:1.65}.toggle-stack{display:grid;gap:8px;margin-top:5px}.toggle-row{display:flex;gap:10px;align-items:flex-start;margin:0;padding:10px;border-radius:9px;border:1px solid #123e69;background:#071d39}.toggle-row input{display:none}.toggle-row>span{width:35px;height:19px;border-radius:20px;background:#183754;position:relative;flex:0 0 auto;margin-top:1px;border:1px solid #285b82}.toggle-row>span:after{content:'';width:13px;height:13px;border-radius:50%;background:#8aabc7;position:absolute;left:2px;top:2px;transition:.16s}.toggle-row input:checked+span{background:#0f6ccf;border-color:#1da2ff}.toggle-row input:checked+span:after{left:17px;background:white}.toggle-row b,.toggle-row small{display:block}.toggle-row b{font-size:10px;color:#dfefff}.toggle-row small{font-size:9px;color:#7396b7;margin-top:2px}.upload-zone{height:190px;border:1.5px dashed #246ba9;border-radius:13px;background:linear-gradient(180deg,#071e3a,#061a32);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;position:relative;transition:.15s}.upload-zone.dragging{border-color:#1bc3ff;background:#0b2d51}.upload-zone input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}.upload-icon{width:45px;height:45px;border-radius:12px;background:#0d3a68;display:grid;place-items:center;font-size:22px;border:1px solid #1d6ba9}.upload-zone h4{margin:8px 0 2px}.upload-zone p,.upload-zone small{margin:0;color:#779bbb;font-size:10px}.upload-preview{display:flex;gap:8px;overflow:auto;margin:10px 0}.upload-preview .up-thumb{width:64px;height:64px;border-radius:9px;border:1px solid #1b578e;overflow:hidden;flex:0 0 auto}.up-thumb img{width:100%;height:100%;object-fit:cover}.preview-stage{min-height:315px;border:1px solid #174c7b;border-radius:13px;background:radial-gradient(circle at center,#0b3058,#041426 70%);display:flex;align-items:center;justify-content:center;overflow:hidden}.preview-stage img{max-height:420px;object-fit:contain}.preview-empty{text-align:center;color:#7e9cbc;padding:30px}.preview-empty span{font-size:38px}.preview-empty h4{color:#fff;margin:8px 0 4px}.preview-empty p{margin:0}.info-card{display:flex;gap:10px;border:1px solid #154d7e;background:#071f3c;padding:11px;border-radius:10px;margin:12px 0}.info-icon{font-size:22px}.info-card b{display:block;font-size:10px}.info-card p{font-size:9px;color:#7799b8;margin:3px 0 0;line-height:1.5}.generation-progress{padding:12px;border:1px solid #185a91;background:#061c35;border-radius:10px;margin:12px 0}.progress-top{display:flex;justify-content:space-between;font-size:10px}.progress-bar{height:7px;background:#0c3158;border-radius:999px;margin:8px 0;overflow:hidden}.progress-bar i{height:100%;width:0;display:block;background:linear-gradient(90deg,#169bff,#22d0ff);border-radius:inherit;transition:width .4s}.progress-steps{display:grid;gap:4px;color:#6688a9;font-size:9px}.progress-steps span.active{color:#bfe9ff}.shortcut{text-align:center;color:#6488aa;font-size:9px;margin:7px 0}.page-tools{display:flex;justify-content:space-between;gap:12px;margin-bottom:15px}.search-box{display:flex;align-items:center;gap:8px;width:min(500px,100%);padding:0 12px;border-radius:10px;border:1px solid #184d7c;background:#061c35}.search-box input{border:0;background:transparent;margin:0;box-shadow:none}.design-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.design-card{border:1px solid #164875;background:#08203d;border-radius:13px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.18);transition:.16s}.design-card:hover{transform:translateY(-2px);border-color:#2786cc}.design-cover{aspect-ratio:16/10;background:#06162a;position:relative;overflow:hidden}.design-cover img{width:100%;height:100%;object-fit:cover}.cover-empty{height:100%;display:grid;place-items:center;font-size:36px}.badge.overlay{position:absolute;top:9px;right:9px}.design-card-body{padding:11px}.design-card-body strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.design-card-body p{color:#7799b8;font-size:10px;margin:4px 0 8px}.design-card-body>div{display:flex;justify-content:space-between;color:#6d8cab;font-size:9px}.wide{grid-column:1/-1}.project-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:15px}.back-link{color:#6faee6;font-size:10px}.title-line{display:flex;align-items:center;gap:9px}.title-line h2{margin:5px 0 2px}.project-head p{color:#7898b6;margin:0;font-size:10px}.project-layout{display:grid;grid-template-columns:1fr 330px;gap:15px;align-items:start}.result-viewer{height:580px;display:flex;align-items:center;justify-content:center;border-radius:12px;border:1px solid #153f68;background:#031022;overflow:hidden}.result-viewer img{max-height:100%;max-width:100%;object-fit:contain;transition:transform .15s}.viewer-toolbar{display:flex;gap:8px;align-items:center;margin-top:10px}.viewer-toolbar .muted{margin-left:auto;font-size:9px}.project-side{display:grid;gap:14px}.version-list{display:grid;gap:7px}.version-row{display:flex;align-items:center;gap:9px;padding:8px;border-radius:9px;border:1px solid #123c65;background:#071c36}.version-row.active{border-color:#2295df;background:#0b3158}.version-thumb{width:65px;height:44px}.version-row strong,.version-row small{display:block}.version-row strong{font-size:10px}.version-row small{font-size:8px;color:#6e91b1}.project-info{margin-top:15px}.info-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.info-columns h4{font-size:11px;margin:0 0 7px}.info-columns pre,.info-columns p{white-space:pre-wrap;font:inherit;color:#9ab7d1;background:#061a31;padding:12px;border-radius:9px;border:1px solid #123c63;margin:0;min-height:100px}.chip-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.provider-page{display:grid;grid-template-columns:400px 1fr;gap:15px;align-items:start}.provider-list-panel{min-height:700px}.provider-cards{display:grid;gap:9px}.provider-card{display:flex;align-items:center;gap:10px;padding:11px;border-radius:11px;background:#071e3a;border:1px solid #154978;transition:.15s}.provider-card:hover,.provider-card.active{border-color:#1f93e7;background:#0a2c53;box-shadow:0 0 0 2px rgba(20,137,255,.06)}.provider-number{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#0f65c7;border:1px solid #2b9cf1;font-weight:700}.provider-logo{width:45px;height:45px;border-radius:11px;background:#0c315c;display:grid;place-items:center;font-weight:800;font-size:16px;border:1px solid #1d5f99}.provider-title{display:flex;justify-content:space-between;gap:5px}.provider-card small{display:block;color:#7d9fbd;font-size:9px}.provider-test-line{margin-top:3px}.inline-actions{display:flex;gap:7px}.inline-actions form{margin:0}.tabs{display:flex;border-bottom:1px solid #164872;margin:-2px -2px 15px}.tab{padding:10px 13px;background:transparent;border:0;border-bottom:2px solid transparent;color:#7598b8;font-size:10px}.tab.active{color:#fff;border-color:#1ca4ff}.provider-form-grid{grid-template-columns:1fr 1fr}.input-action{position:relative}.key-preview{position:absolute;right:9px;top:15px;color:#6f92b2;font-size:8px}.capability-box{margin-top:8px;padding:12px;border-radius:11px;border:1px solid #15466f;background:#061a31}.capability-box h4{margin:0 0 9px;font-size:11px}.cap-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.check-card{margin:0;padding:9px;border:1px solid #15446d;border-radius:9px;background:#09203b;display:flex;align-items:center;gap:7px}.check-card input[type=checkbox]{width:15px;height:15px;margin:0}.check-card input[type=number]{margin:0;width:54px;padding:6px}.check-card b,.check-card small{display:block}.check-card b{color:#e5f2ff;font-size:9px}.check-card small{font-size:8px;color:#7191af}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.test-result{padding:10px;border:1px solid #1b5e91;background:#092441;border-radius:9px;margin-top:12px}.settings-layout{display:grid;grid-template-columns:1.4fr .8fr;gap:15px}.system-table{display:grid}.system-table>div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #123b61}.system-table span{color:#7999b7}.alert{padding:10px 12px;border-radius:9px;border:1px solid #1c5d8f;background:#0a3156;margin-bottom:12px}.alert.success{border-color:#208762;background:#0c4236}.alert.danger{border-color:#9d3a49;background:#4a1821}.install-body,.auth-body{min-height:100vh;background:radial-gradient(circle at 20% 20%,#0d3a6d 0,transparent 34%),linear-gradient(145deg,#020b17,#04142b 60%,#061c39)}.install-shell{max-width:920px;margin:0 auto;padding:45px 20px}.brand-lockup{display:flex;align-items:center;gap:14px;margin-bottom:18px}.brand-lockup h1{margin:0;font-size:26px}.brand-lockup p{margin:2px 0;color:#7c9bb9}.install-card{padding:24px;border-radius:16px;border:1px solid #1a578d;background:rgba(6,28,55,.95);box-shadow:var(--shadow)}.install-card h2{margin-top:0}.install-card h3{font-size:12px;margin:20px 0 8px;color:#bcd5eb}.check-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:15px 0}.check{padding:8px;border:1px solid #194b77;border-radius:8px;background:#071f3b;font-size:9px}.check span{font-weight:700;margin-right:5px}.check.ok span{color:#42d79b}.check.bad span{color:#ff747a}.success-card{text-align:center;padding:50px}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1.2fr 430px;gap:60px;align-items:center;max-width:1200px;margin:0 auto;padding:40px}.auth-brand{display:flex;align-items:center;gap:20px}.auth-brand h1{font-size:38px;margin:0}.auth-brand p{color:#89a9c8}.auth-badges{display:flex;gap:8px;flex-wrap:wrap}.auth-badges span{font-size:9px;padding:7px 9px;border:1px solid #19548b;background:#072141;border-radius:8px}.auth-card{padding:27px;border-radius:17px;border:1px solid #1a578e;background:rgba(7,30,58,.96);box-shadow:0 25px 70px rgba(0,0,0,.38)}.auth-card h2{margin:3px 0 2px}.auth-card p{margin:0 0 20px}.auth-card small.center{display:block;margin-top:10px}.light{--bg:#edf4fb;--bg2:#e6eef7;--panel:#fff;--panel2:#f5f9fd;--panel3:#eef5fb;--line:#cbdcec;--line2:#a8c5df;--text:#15314e;--muted:#6d87a0}.light,.light body{background:#edf4fb;color:#15314e}.light .sidebar{background:linear-gradient(180deg,#0a2a52,#071f3c)}.light .topbar{background:rgba(255,255,255,.92)}.light .panel,.light .stat-card,.light .hero-strip{background:#fff;border-color:#d4e2ee;box-shadow:0 12px 30px rgba(25,63,95,.08)}.light input,.light select,.light textarea,.light .search-box{background:#f7fbff;border-color:#c9dceb;color:#18324d}.light .design-row,.light .health-row,.light .info-card,.light .toggle-row,.light .upload-zone,.light .preview-stage,.light .version-row,.light .provider-card,.light .capability-box,.light .check-card,.light .info-columns pre,.light .info-columns p{background:#f4f8fc;border-color:#d2e1ee;color:#18324d}.light .panel-head h3,.light .hero-strip h2,.light .toggle-row b,.light .info-card b,.light .check-card b{color:#18324d}
@media(max-width:1250px){.design-workspace{grid-template-columns:340px 1fr}.create-right{grid-column:1/-1;position:static;min-height:auto}.provider-page{grid-template-columns:330px 1fr}.cap-grid{grid-template-columns:repeat(3,1fr)}.design-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{transform:translateX(-105%);transition:.2s}.sidebar.open{transform:translateX(0)}.main-wrap{grid-column:1}.mobile-only{display:grid}.status-chip{display:none}.content{padding:14px}.stats-grid{grid-template-columns:1fr 1fr}.grid-2,.design-workspace,.project-layout,.provider-page,.settings-layout,.info-columns{grid-template-columns:1fr}.create-right{position:static}.provider-list-panel{min-height:auto}.design-grid{grid-template-columns:1fr 1fr}.auth-shell{grid-template-columns:1fr;max-width:520px}.auth-brand{display:none}.result-viewer{height:430px}}
@media(max-width:600px){.topbar{padding:0 10px;height:64px}.top-title .eyebrow,.user-chip div:not(.avatar){display:none}.content{padding:10px}.stats-grid,.form-grid,.provider-form-grid,.design-grid,.check-grid{grid-template-columns:1fr}.span2{grid-column:span 1}.hero-strip{align-items:flex-start;flex-direction:column;padding:17px}.hero-strip h2{font-size:20px}.cap-grid{grid-template-columns:1fr 1fr}.steps{overflow:auto}.project-head{align-items:flex-start}.result-viewer{height:330px}.auth-shell{padding:18px}.auth-card{padding:20px}.install-shell{padding:20px 12px}}

/* White and red visual theme */
:root{
  --bg:#f7f7f8;--bg2:#ffffff;--panel:#ffffff;--panel2:#fff7f7;--panel3:#fff1f1;
  --line:#eadfe0;--line2:#d9bfc2;--text:#261b1d;--muted:#806d70;
  --blue:#c62838;--cyan:#e0525c;--orange:#c62838;--yellow:#b71c2b;--green:#198754;--red:#c62838;
  --shadow:0 12px 30px rgba(75,26,31,.08)
}
html,body{background:linear-gradient(180deg,#fff 0,#faf7f7 60%,#f6f1f2 100%);color:var(--text)}
.sidebar{background:linear-gradient(180deg,#fff 0,#fffafa 100%);border-right:1px solid #eadfe0;box-shadow:10px 0 30px rgba(75,26,31,.06)}
.brand{border-bottom-color:#f0e2e3}.brand-mark{background:linear-gradient(145deg,#e94b58,#b71c2b);box-shadow:0 9px 20px rgba(198,40,56,.22),inset 0 1px 0 rgba(255,255,255,.35)}
.brand small,.sidebar .side-label{color:#a68b8e}.nav-item{color:#5d4b4e}.nav-item:hover{background:#fff0f1;border-color:#efcdd0}.nav-item.active{color:#9f1424;background:#fff0f1;border-color:#e8aeb4;box-shadow:inset 3px 0 0 #c62838,0 6px 14px rgba(198,40,56,.08)}
.system-mini{border-color:#edd7d9;background:#fff5f5}.system-mini small{color:#a68b8e}.pulse{background:#198754;box-shadow:0 0 0 4px rgba(25,135,84,.1),0 0 12px rgba(25,135,84,.35)}
.topbar{background:rgba(255,255,255,.94);border-bottom-color:#eadfe0}.eyebrow{color:#b71c2b}.status-chip,.user-chip,.icon-btn{border-color:#ead7d9;background:#fff;box-shadow:0 2px 8px rgba(75,26,31,.05)}.avatar{background:linear-gradient(145deg,#e94b58,#b71c2b)}
.panel,.stat-card,.design-card{background:#fff;border-color:#eadfe0;box-shadow:var(--shadow)}
.hero-strip{border-color:#efcdd0;background:linear-gradient(120deg,#fff 0,#fff4f4 100%);box-shadow:var(--shadow)}.hero-strip p{color:#806d70}
.btn{border-color:#dfc6c8;background:#fff;color:#5d3c40;box-shadow:0 2px 6px rgba(75,26,31,.05)}.btn:hover{filter:none;background:#fff6f6}.btn-primary{border-color:#c62838;background:linear-gradient(180deg,#e34b57,#c62838);color:#fff;box-shadow:0 8px 18px rgba(198,40,56,.2)}.btn-danger{border-color:#c62838;background:linear-gradient(180deg,#e34b57,#b71c2b);color:#fff;box-shadow:0 8px 18px rgba(183,28,43,.18)}.btn-ghost{background:#fff5f5;color:#a51c2c;border-color:#edc5c8}
.stat-icon,.provider-orb,.upload-icon{background:#fff0f1;border-color:#e8aeb4;color:#b71c2b}.stat-card small,.stat-card span{color:#947b7f}
.design-row,.health-row,.version-row,.provider-card,.check-card,.toggle-row{border-color:#eee1e2;background:#fffafa}.design-row:hover,.provider-card:hover,.provider-card.active,.version-row.active{border-color:#df9da3;background:#fff1f2}.design-row small,.health-row small,.version-row small,.provider-card small{color:#9b8285}
.badge,.version-pill,.chip{border-color:#e4cdd0;background:#fff4f4;color:#8f4d54}.status-completed{background:#e8f6ef!important;border-color:#a9d9bf!important;color:#187749!important}.status-processing{background:#fff4df!important;border-color:#e9c37e!important;color:#9a6500!important}.status-failed{background:#fdebed!important;border-color:#e5a5ad!important;color:#b71c2b!important}.status-draft{background:#f2eeee!important;border-color:#d8cacc!important;color:#76666a!important}
.mini-note,.info-card,.generation-progress,.capability-box,.test-result{border-color:#efdbdd;background:#fff7f7;color:#806d70}.info-card p{color:#9b8285}
input,select,textarea,.search-box{color:#352528;background:#fff;border-color:#e2d2d4}input:focus,select:focus,textarea:focus{border-color:#c62838;box-shadow:0 0 0 3px rgba(198,40,56,.12)}
.upload-zone{border-color:#df9da3;background:#fffafa}.upload-zone.dragging{border-color:#c62838;background:#fff0f1}.preview-stage,.result-viewer{border-color:#eadfe0;background:#fffafa}.preview-empty{color:#a0878a}.preview-empty h4{color:#4b3639}
.progress-bar{background:#f0dfe1}.progress-bar i{background:linear-gradient(90deg,#c62838,#ef6b73)}.progress-steps{color:#a0878a}.progress-steps span.active{color:#a51c2c}
.design-cover,.thumb,.version-thumb{background:#f7eeee}.cover-empty{color:#c62838}.search-box input{background:transparent;border:0}.back-link{color:#b71c2b}.project-head p{color:#947b7f}.info-columns pre,.info-columns p{background:#fffafa;border-color:#eee1e2;color:#806d70}
.tabs{border-bottom-color:#eadfe0}.tab{color:#947b7f}.tab.active{color:#b71c2b;border-color:#c62838}
.install-body,.auth-body{background:linear-gradient(145deg,#fff 0,#fff5f5 100%)}.install-card,.auth-card{border-color:#ead1d3;background:rgba(255,255,255,.96);box-shadow:0 25px 70px rgba(75,26,31,.12)}.auth-badges span,.check{border-color:#edd7d9;background:#fff5f5}.light{background:#fff;color:var(--text)}
.provider-number,.provider-logo{background:#fff0f1;border-color:#e8aeb4;color:#b71c2b}.step{color:#9b8285}.step span{background:#fff5f5;border-color:#edc5c8}.step.active{color:#a51c2c;background:#fff1f2;border-color:#df9da3}.step.active span{background:linear-gradient(180deg,#e34b57,#c62838);border-color:#c62838}.empty-state{color:#9b8285}.empty-state h3,.empty-state h4{color:#4b3639}.design-card:hover{border-color:#df9da3}.alert{border-color:#efcdd0;background:#fff1f2;color:#7d3f45}.alert.success{border-color:#a9d9bf;background:#e8f6ef}.alert.danger{border-color:#e5a5ad;background:#fdebed}.system-table>div{border-bottom-color:#eee1e2}.system-table span,.design-card-body p,.design-card-body>div{color:#947b7f}.key-preview{color:#a0878a}
.light,.light body{background:#fff;color:var(--text)}.light .sidebar{background:linear-gradient(180deg,#fff 0,#fffafa 100%)}.light .panel,.light .stat-card,.light .hero-strip{background:#fff;border-color:#eadfe0;box-shadow:var(--shadow)}.light input,.light select,.light textarea,.light .search-box{background:#fff;border-color:#e2d2d4;color:#352528}.light .design-row,.light .health-row,.light .info-card,.light .toggle-row,.light .upload-zone,.light .preview-stage,.light .version-row,.light .provider-card,.light .capability-box,.light .check-card,.light .info-columns pre,.light .info-columns p{background:#fffafa;border-color:#eee1e2;color:#352528}.light .panel-head h3,.light .hero-strip h2,.light .toggle-row b,.light .info-card b,.light .check-card b{color:#352528}

/* Keep dashboard Emoji frames consistent with the white-red theme. */
.stat-card.tone-blue .stat-icon,.stat-card.tone-cyan .stat-icon,.stat-card.tone-orange .stat-icon,.stat-card.tone-green .stat-icon{
  background:#fff7f7;border-color:#efcdd0;color:#b71c2b;box-shadow:inset 0 0 0 1px rgba(198,40,56,.03)
}

/* Readability and layout polish */
body{font-size:15px;line-height:1.55}
.content{padding:28px;max-width:1560px}
.topbar{height:78px;padding:0 22px 0 16px;justify-content:flex-start}
.top-actions{margin-left:auto}
.topbar .mobile-only{display:none!important}
.top-title h1{font-size:23px;font-weight:600;line-height:1.25}
.eyebrow{font-size:10px;letter-spacing:1.5px}
.brand strong{font-size:14px}.brand small{font-size:11px}
.side-label{font-size:11px;padding-top:22px}.nav-item{font-size:13px;padding:12px 13px}
.status-chip,.user-chip{font-size:12px}.user-chip small{font-size:10px}.icon-btn{width:40px;height:40px}
.panel{padding:22px;border-radius:14px}.panel-head{margin-bottom:18px}.panel-head h3{font-size:18px;font-weight:600}
.hero-strip{padding:26px 28px;margin-bottom:22px}.hero-strip h2{font-size:28px;line-height:1.25}.hero-strip p{font-size:13px;line-height:1.6}
.stats-grid{gap:16px;margin-bottom:22px}.stat-card{padding:18px;gap:15px;min-height:92px}.stat-icon{width:48px;height:48px;font-size:22px}.stat-card small{font-size:12px}.stat-card strong{font-size:26px;line-height:1.2}.stat-card span{font-size:11px;margin-top:2px}
.grid-2{gap:20px}.design-list,.provider-health{gap:10px}.design-row,.health-row{padding:12px;gap:13px}.design-row small,.health-row small{font-size:11px}.health-meta small{font-size:10px}
.badge,.version-pill,.chip{font-size:10px;padding:5px 8px}
.btn{font-size:13px;padding:10px 14px}.btn-lg{padding:12px 18px}.btn-xl{padding:16px 22px}
label{font-size:12px;margin-bottom:12px}input,select,textarea{font-size:14px;padding:11px 12px}.toggle-row{padding:12px}.toggle-row b{font-size:12px}.toggle-row small{font-size:11px}
.upload-zone p,.upload-zone small{font-size:11px}.upload-zone h4{font-size:15px}
.design-card-body p{font-size:11px}.design-card-body>div{font-size:10px}
.empty-state p,.mini-note,.alert,.info-card p{font-size:11px}.empty-state h3,.empty-state h4{font-size:17px}
.steps{gap:7px}.step{font-size:12px;padding:8px 13px}.step b{font-size:12px}
.form-actions{margin-top:20px}.page-tools{margin-bottom:18px}.search-box{font-size:13px}
.provider-card small{font-size:10px}.provider-title{font-size:13px}.capability-box h4{font-size:13px}.check-card b{font-size:11px}.check-card small{font-size:10px}
.system-mini strong{font-size:12px}.system-mini small{font-size:10px}
@media(min-width:901px){.app-shell{grid-template-columns:252px 1fr}.sidebar{width:252px}}
@media(max-width:900px){.content{padding:18px}.topbar{padding:0 18px}.hero-strip{padding:22px}.hero-strip h2{font-size:24px}}
@media(max-width:600px){body{font-size:14px}.content{padding:12px}.topbar{height:68px;padding:0 12px}.top-title h1{font-size:19px}.panel{padding:16px}.panel-head h3{font-size:16px}.hero-strip{padding:18px;margin-bottom:16px}.hero-strip h2{font-size:21px}.stats-grid{gap:10px;margin-bottom:16px}.stat-card{padding:14px;min-height:82px}.stat-card strong{font-size:23px}.stat-card small{font-size:11px}.stat-card span{font-size:10px}.btn{font-size:12px}.design-row,.health-row{padding:10px}.design-row small,.health-row small{font-size:10px}}

/* Use the available workspace and keep text readable on white surfaces. */
.content{max-width:none;width:100%}
label{color:#6d5559}
.panel-head h3,.hero-strip h2,.design-row strong,.health-row strong,.provider-card strong,.provider-title,
.check-card b,.toggle-row b,.info-card b,.capability-box h4,.system-mini strong{color:#352528}
.design-row small,.health-row small,.provider-card small,.version-row small,.system-table span{color:#725e62}
.check-card small,.toggle-row small,.upload-zone p,.upload-zone small,.key-preview{color:#816d71}
.panel-head .eyebrow,.hero-strip .eyebrow{color:#a51c2c}
.btn:hover{color:#7d1d29;background:#fff4f4}
  .btn-primary:hover,.btn-danger:hover{color:#fff;background:linear-gradient(180deg,#d83d4c,#b71c2b);border-color:#b71c2b}

  /* Provider settings are presented as one unified form. */
  .provider-page .tabs .tab:not(:first-child){display:none}
  .provider-logo{font-family:Arial,sans-serif;font-size:0;position:relative}
  .provider-logo:after{font-size:18px;font-weight:800;line-height:1}
  .provider-logo-openai:after{content:'◎';font-size:23px}
  .provider-logo-grok:after{content:'𝕏';font-size:21px}
  .provider-logo-generic:after{content:'AI';font-size:16px}
  .provider-logo span{display:none;font-size:14px;font-weight:800}
  .provider-logo img{width:32px;height:32px;object-fit:contain;border-radius:6px}
  .provider-orb img{width:28px;height:28px;object-fit:contain;border-radius:5px}
  .provider-orb span{font-size:12px;font-weight:800}
  .provider-logo.brand-gpt:after,.provider-logo.brand-grok:after,.provider-logo.brand-nai:after{display:none}
  .provider-logo.logo-fallback span{display:block}
  .provider-logo.logo-fallback:after{display:none}
  .provider-logo.brand-gpt:after{content:'GPT';font-size:15px;letter-spacing:-.4px}
  .provider-logo.brand-nai:after{content:'NAI';font-size:14px;letter-spacing:-.3px}
  .provider-logo.brand-grok:after{content:'𝕏';font-size:22px}
  .provider-logo.brand-custom:after{content:'AI';font-size:16px}
.btn-ghost:hover{color:#8f1625;background:#ffe9eb;border-color:#df9da3}
.icon-btn:hover,.status-chip:hover,.user-chip:hover{color:#8f1625;background:#fff4f4;border-color:#df9da3}
.provider-page{grid-template-columns:minmax(330px,390px) minmax(0,1fr)}
@media(max-width:900px){.content{max-width:none}.provider-page{grid-template-columns:1fr}}

/* Prompt is the primary typeface across the entire interface. */
html,body,button,input,select,textarea{font-family:'Prompt','Noto Sans Thai',Tahoma,Arial,sans-serif}

/* Strong hierarchy for primary headings. */
h1,h2,h3,h4,.top-title h1,.hero-strip h2,.panel-head h3,.title-line h2,.project-head h2,
.auth-card h2,.install-card h2,.install-card h3,.brand strong,.provider-title strong{font-weight:700}
.brand-logo{width:48px;height:48px;border-radius:13px;object-fit:contain;background:#fff0f1;border:1px solid #efcdd0;padding:4px;box-shadow:0 9px 20px rgba(198,40,56,.12)}
.brand-logo.giant{width:92px;height:92px;border-radius:24px}
.branding-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:4px 0 16px;padding:14px;border:1px solid #efdbdd;border-radius:11px;background:#fffafa}
.branding-upload{min-width:0}.branding-upload label{margin-bottom:5px}.branding-upload small{display:block;color:#816d71;font-size:10px;margin-top:5px}.branding-preview{width:100%;height:78px;object-fit:contain;background:#fff;border:1px solid #eadfe0;border-radius:9px;padding:8px;margin-top:8px}.favicon-preview{width:52px;height:52px;object-fit:contain;background:#fff;border:1px solid #eadfe0;border-radius:9px;padding:8px;margin-top:8px}

/* Admin workspaces: stronger hierarchy than a single hero banner. */
.admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 20px}.admin-stat{display:flex;align-items:center;gap:13px;min-height:94px;padding:16px 18px;border:1px solid #efdbdd;border-radius:14px;background:#fff;box-shadow:0 10px 25px rgba(112,28,37,.07);position:relative;overflow:hidden}.admin-stat:after{content:'';position:absolute;width:90px;height:90px;right:-32px;bottom:-48px;border:13px solid rgba(198,40,56,.06);border-radius:50%}.admin-stat>span{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#fff1f2;color:#b71c2b;font-size:21px;border:1px solid #efcdd0}.admin-stat small,.admin-stat strong,.admin-stat em{display:block}.admin-stat small{color:#947b7f;font-size:11px}.admin-stat strong{color:#4b252a;font-size:25px;line-height:1.2}.admin-stat strong i{font-size:12px;font-style:normal;color:#947b7f}.admin-stat em{font-size:10px;color:#a18488;font-style:normal}.admin-stat.stat-green>span{background:#e9f7ef;border-color:#b9dfc7;color:#218051}.admin-stat.stat-soft>span{background:#f7f1f2;color:#8f6970}.page-lead{margin:4px 0 0;color:#947b7f;font-size:12px}.approval-panel{padding:22px}.approval-row{padding:14px;border-radius:12px;align-items:center}.approval-thumb{width:112px;height:76px;border-radius:10px;border:1px solid #efdbdd}.approval-thumb span{font-size:24px;opacity:.65}.approval-meta{display:block;color:#a18488;font-size:10px;margin-top:6px}.approval-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.approval-actions form{margin:0}.storage-meter{padding:15px 16px;margin-bottom:20px;border:1px solid #efdbdd;border-radius:12px;background:#fffafa}.storage-meter>div:first-child{display:flex;justify-content:space-between;color:#542c31;font-size:12px;margin-bottom:8px}.storage-meter>div:first-child span{color:#b71c2b;font-weight:700}.storage-meter .metric-bar{height:9px;background:#f0dfe1;border-radius:99px;overflow:hidden}.storage-meter .metric-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#c62838,#e95b65)}.storage-meter small{display:block;margin-top:7px;color:#a18488;font-size:10px}.health-summary{padding:6px 10px;border-radius:999px;background:#e9f7ef;color:#218051;font-size:10px;font-weight:600}.health-value{display:flex;align-items:center;gap:6px}.health-value i{font-style:normal;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;font-size:11px}.health-value.is-ok{color:#218051}.health-value.is-ok i{background:#dff4e8}.health-value.is-bad{color:#b71c2b}.health-value.is-bad i{background:#fdebed}.backup-icon{font-size:24px}
@media(max-width:900px){.admin-stats{grid-template-columns:1fr 1fr}.approval-actions{justify-content:flex-start}.approval-thumb{width:88px;height:62px}}
@media(max-width:600px){.admin-stats{grid-template-columns:1fr;gap:10px}.admin-stat{min-height:82px;padding:13px 14px}.admin-stat strong{font-size:22px}.approval-row{align-items:flex-start;flex-wrap:wrap}.approval-row .grow{min-width:calc(100% - 102px)}.approval-actions{width:100%;padding-left:102px}.approval-actions .btn{flex:1}.storage-panel{padding:16px}}

/* Login page: calm white/red workspace with a clear form focus. */
.auth-body{position:relative;isolation:isolate;min-height:100vh;color:#352528;background:#fff8f8}
.auth-body:before,.auth-body:after{content:'';position:fixed;z-index:-1;pointer-events:none;border-radius:50%}
.auth-body:before{width:520px;height:520px;left:-230px;top:-210px;border:70px solid rgba(198,40,56,.055)}
.auth-body:after{width:380px;height:380px;right:-190px;bottom:-170px;border:55px solid rgba(198,40,56,.045)}
.auth-bg{position:fixed;inset:0;z-index:-2;pointer-events:none;opacity:.45;background-image:linear-gradient(rgba(198,40,56,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(198,40,56,.035) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 78%)}
.auth-shell{width:min(1120px,100%);min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(370px,440px);align-items:center;gap:clamp(48px,8vw,110px);margin:0 auto;padding:48px 32px}
.auth-brand{display:block;max-width:510px}
.auth-brand .brand-logo.giant,.auth-brand .brand-mark.giant{width:78px;height:78px;border-radius:21px;margin-bottom:24px;box-shadow:0 14px 28px rgba(198,40,56,.18)}
.auth-brand .brand-mark.giant{color:#fff;background:#c62838;font-size:38px;font-style:normal}
.auth-brand h1{margin:0 0 10px;color:#4b252a;font-size:clamp(30px,4vw,46px);line-height:1.15;letter-spacing:0}
.auth-brand p{max-width:430px;margin:0 0 22px;color:#806d70;font-size:15px;line-height:1.8}
.auth-brand:after{content:'สร้างงานได้เร็วขึ้น พร้อมจัดการทุกโปรเจกต์ในที่เดียว';display:block;width:fit-content;max-width:100%;margin-top:18px;padding:9px 13px;border-left:3px solid #c62838;color:#8b6e72;background:#fff;border-radius:0 8px 8px 0;font-size:12px}
.auth-badges{gap:8px;margin-top:22px}.auth-badges span{padding:7px 10px;border:1px solid #efcdd0;border-radius:8px;color:#986c72;background:#fff;font-size:10px}
.auth-badges span{font-size:0}.auth-badges span:after{font-size:10px}.auth-badges span:nth-child(1):after{content:'⚡ สร้างงานด้วย AI'}.auth-badges span:nth-child(2):after{content:'📁 จัดการโปรเจกต์'}.auth-badges span:nth-child(3):after{content:'🖼️ รองรับหลายรูปแบบ'}
.auth-card{width:100%;padding:32px;border:1px solid #ecd8da;border-radius:18px;background:#fff;box-shadow:0 22px 55px rgba(99,32,39,.12),0 2px 4px rgba(99,32,39,.04)}
.auth-card .eyebrow{color:#b71c2b;font-size:10px;font-weight:700}.auth-card h2{margin:7px 0 4px;color:#4b252a;font-size:27px;line-height:1.25}.auth-card>p{margin:0 0 24px;color:#8b7478;font-size:13px;line-height:1.7}
.auth-card label{color:#6d5559;font-size:12px;font-weight:500;margin-bottom:15px}.auth-card input{margin-top:7px;padding:13px 14px;border-color:#e4d4d6;border-radius:10px;color:#352528;background:#fff;font-size:14px}.auth-card input::placeholder{color:#b8a4a7}.auth-card input:hover{border-color:#d9a6ab}.auth-card input:focus{border-color:#c62838;box-shadow:0 0 0 4px rgba(198,40,56,.1)}
.auth-card .btn-primary{margin-top:7px;min-height:48px;border-color:#b71c2b;background:#c62838;box-shadow:0 10px 20px rgba(198,40,56,.2);font-size:14px;font-weight:700}.auth-card .btn-primary:hover{background:#a51c2c;border-color:#a51c2c;color:#fff;transform:translateY(-1px);box-shadow:0 13px 24px rgba(198,40,56,.24)}.auth-card small.center{margin-top:18px;color:#a58d91;font-size:10px}
@media(max-width:900px){.auth-shell{grid-template-columns:minmax(0,520px);justify-content:center;gap:24px;padding:36px 24px}.auth-brand{max-width:520px;text-align:center}.auth-brand .brand-logo.giant,.auth-brand .brand-mark.giant{margin:0 auto 16px}.auth-brand p{margin-left:auto;margin-right:auto}.auth-brand:after{margin:18px auto 0;text-align:left}.auth-badges{justify-content:center}}
@media(max-width:600px){.auth-shell{padding:24px 16px;gap:20px}.auth-brand h1{font-size:30px}.auth-brand p{font-size:13px;margin-bottom:15px}.auth-badges{display:none}.auth-card{padding:24px 20px;border-radius:15px}.auth-card h2{font-size:24px}}
.profile-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:18px;align-items:start}.profile-card{min-height:520px;position:relative;overflow:hidden;box-shadow:0 16px 34px rgba(112,28,37,.09)}.profile-card:before{content:'';position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,#b71c2b,#e95b65,#f5c5c8)}.profile-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:-17px -17px 20px;padding:18px 20px;background:radial-gradient(circle at 86% 30%,rgba(198,40,56,.12),transparent 24%),linear-gradient(120deg,#fff7f7,#fff 75%);border-bottom:1px solid #f0dadd}.profile-banner strong,.profile-banner small{display:block}.profile-banner strong{margin-top:3px;color:#542c31;font-size:16px}.profile-banner small{margin-top:3px;color:#9a7b80;font-size:11px}.profile-banner-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff1f2;border:1px solid #efcdd0;color:#c62838;font-size:26px;box-shadow:0 7px 16px rgba(198,40,56,.12)}.profile-identity{display:flex;align-items:center;gap:15px;padding:3px 2px 20px;margin-bottom:20px;border-bottom:1px solid #efdbdd}.profile-identity h2{margin:3px 0 1px;font-size:24px;color:#4b252a}.profile-identity p{margin:0;font-size:12px}.profile-avatar{width:76px;height:76px;border-radius:20px;background:linear-gradient(145deg,#e94b58,#b71c2b);font-size:29px;color:#fff;border:4px solid #fff;box-shadow:0 7px 0 #f9dfe1,0 13px 24px rgba(198,40,56,.2)}.profile-section-head{margin-top:25px;margin-bottom:8px;padding-top:4px}.profile-hint{font-size:11px;color:#816d71;margin:0 0 12px;padding:9px 11px;border-radius:8px;background:#fff8f8;border:1px solid #f0dadd}.profile-summary{position:relative;overflow:hidden;box-shadow:0 16px 34px rgba(112,28,37,.08)}.profile-summary:after{content:'';position:absolute;width:150px;height:150px;right:-70px;top:-70px;border:18px solid rgba(198,40,56,.05);border-radius:50%}.profile-summary-head{display:flex;align-items:center;gap:11px;margin-bottom:13px}.summary-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#fff1f2;border:1px solid #efcdd0;color:#b71c2b;font-size:22px}.profile-summary-head h3{margin:2px 0;font-size:16px}.profile-summary-head p{margin:0;color:#9a7b80;font-size:10px}.profile-summary .system-table{position:relative;z-index:1}.profile-summary .system-table>div{padding:13px 0}.profile-summary .system-table b{max-width:60%;overflow-wrap:anywhere;text-align:right}.role-pill{padding:4px 8px;border-radius:999px;background:#fff1f2;border:1px solid #efcdd0;color:#a51c2c;font-size:10px}.profile-status{display:inline-flex;align-items:center;gap:5px;color:#218051!important}.profile-status i{width:7px;height:7px;border-radius:50%;background:#2cab70;box-shadow:0 0 0 3px #dff4e8}.profile-summary-note{display:flex;align-items:center;gap:9px;margin-top:15px;padding:11px;border-radius:10px;background:#f1faf4;border:1px solid #c9ead5;color:#218051}.profile-summary-note>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#dff4e8;font-size:13px}.profile-summary-note strong,.profile-summary-note small{display:block}.profile-summary-note strong{font-size:11px}.profile-summary-note small{margin-top:2px;color:#6d987b;font-size:9px}
.user-chip{cursor:pointer}.user-chip:focus-visible{outline:3px solid rgba(198,40,56,.25);outline-offset:2px}.avatar{object-fit:cover}.avatar-link{display:block;line-height:0}.avatar-link .avatar{display:grid}
.sidebar{overflow-y:auto;padding-bottom:92px}
.admin-nav-section{margin-top:14px;padding-top:4px;border-top:1px solid #efdbdd}
.admin-nav-section .side-label{color:#b71c2b;padding-top:16px}
.admin-nav .nav-item{color:#70474c}
.admin-nav .nav-item:hover{background:#fff0f1}
.admin-nav .nav-item.active{color:#9f1424}
@media(max-width:900px){.profile-layout{grid-template-columns:1fr}}
@media(max-width:600px){.branding-settings{grid-template-columns:1fr}.profile-banner{margin:-13px -13px 17px;padding:15px 16px}.profile-banner strong{font-size:14px}.profile-banner-mark{width:40px;height:40px;font-size:21px}.profile-identity{gap:11px}.profile-avatar{width:64px;height:64px;font-size:25px}.profile-identity h2{font-size:20px}.profile-identity p{font-size:10px}.profile-summary-note{margin-top:12px}}

/* Provider capability switches */
.cap-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.check-card{min-height:72px;padding:11px 12px;align-items:center;gap:9px;cursor:pointer;transition:border-color .16s,background .16s,box-shadow .16s}
.check-card:hover{border-color:#df9da3;background:#fff5f5;box-shadow:0 4px 12px rgba(198,40,56,.06)}
.check-card input[type=checkbox]{appearance:none;-webkit-appearance:none;width:42px;height:24px;flex:0 0 42px;margin:0;position:relative;border:1px solid #d7c3c6;border-radius:999px;background:#e9e1e2;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.check-card input[type=checkbox]::after{content:'';position:absolute;width:18px;height:18px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(55,25,29,.25);transition:transform .18s}
.check-card input[type=checkbox]:checked{border-color:#c62838;background:#c62838;box-shadow:0 2px 7px rgba(198,40,56,.24)}
.check-card input[type=checkbox]:checked::after{transform:translateX(18px)}
.check-card input[type=checkbox]:focus-visible{outline:3px solid rgba(198,40,56,.22);outline-offset:2px}
.check-card>span{width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto;color:#c62838;font-size:14px;line-height:1;background:#fff0f1;border:1px solid #efcdd0;border-radius:6px}
.check-card>div{min-width:0;flex:1}
.check-card.reference-limit{justify-content:flex-start}.check-card.reference-limit input[type=number]{width:56px;flex:0 0 56px}
@media(max-width:1250px){.cap-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.cap-grid{grid-template-columns:1fr}.check-card{min-height:66px}}
.page-tools-actions{display:flex;gap:8px;align-items:center}.inline-check{display:flex;align-items:center;gap:6px;white-space:nowrap}.inline-check input{width:auto}.user-management{display:grid;gap:8px}.user-management .design-row form{display:contents}
.project-head-actions{gap:10px}.project-head-actions .btn{min-height:42px;padding:10px 16px;font-weight:600}.project-head-actions .btn span{font-size:15px;line-height:1}.btn-danger:focus-visible{outline:3px solid rgba(183,28,43,.24);outline-offset:2px}
.btn-success,.btn-warning,.btn-info{color:#fff;border-width:1px;box-shadow:0 8px 18px rgba(45,70,55,.18)}
.btn-success{border-color:#198754;background:linear-gradient(180deg,#36b978,#198754)}
.btn-warning{border-color:#d97706;background:linear-gradient(180deg,#f3a32b,#d97706)}
.btn-info{border-color:#2563eb;background:linear-gradient(180deg,#4c8dff,#2563eb)}
.btn-success:hover,.btn-warning:hover,.btn-info:hover{color:#fff}
.btn-success:hover{background:linear-gradient(180deg,#2aa86b,#157347);border-color:#157347}
.btn-warning:hover{background:linear-gradient(180deg,#e99418,#b45309);border-color:#b45309}
.btn-info:hover{background:linear-gradient(180deg,#397cf0,#1d4ed8);border-color:#1d4ed8}
.page-ready{animation:page-in .22s ease-out}.page-ready img{transition:opacity .25s ease,transform .22s ease}.page-ready img:not(.is-loaded){opacity:.35}.design-cover img:hover,.result-viewer img:hover{transform:scale(1.02);cursor:zoom-in}.modal-backdrop,.lightbox{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;background:rgba(47,20,24,.42);backdrop-filter:blur(5px);animation:fade-in .16s ease}.modal-card{width:min(430px,calc(100% - 28px));padding:24px;border:1px solid #efcdd0;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(75,26,31,.24)}.modal-card h3{margin:0 0 7px}.modal-card p{margin:0;color:#806d70;font-size:13px;line-height:1.7}.modal-close,.lightbox-close{position:absolute;top:18px;right:20px;border:0;background:#fff;color:#7d3f45;font-size:28px;line-height:1;cursor:pointer}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.lightbox{padding:35px}.lightbox img{max-width:min(1100px,94vw);max-height:86vh;object-fit:contain;border-radius:10px;box-shadow:0 20px 70px rgba(0,0,0,.4);background:#fff}.lightbox span{position:absolute;bottom:18px;color:#fff;font-size:11px}.lightbox-close{background:transparent;color:#fff;font-size:34px}.skeleton{position:relative;overflow:hidden;background:#f4e9ea!important;color:transparent!important}.skeleton:after{content:'';position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);animation:shimmer 1.2s infinite}.progress-bar i{transition:width .35s ease}.btn:focus-visible,.nav-item:focus-visible{outline:3px solid rgba(198,40,56,.25);outline-offset:2px}@keyframes page-in{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes shimmer{to{transform:translateX(100%)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}@media(max-width:600px){.lightbox{padding:18px}.modal-card{padding:20px}.modal-actions .btn{flex:1}}
.access-control-panel{padding:24px}.access-control-panel .panel-head{align-items:flex-start}.panel-subtitle{margin:5px 0 0;color:#816d71;font-size:12px}.access-head-actions{display:flex;align-items:center;gap:9px}.access-count{padding:6px 10px;border:1px solid #efcdd0;border-radius:999px;background:#fff5f5;color:#a51c2c;font-size:11px;white-space:nowrap}.user-row{display:grid;grid-template-columns:40px minmax(220px,1fr) minmax(180px,220px) 132px;align-items:center;gap:14px;padding:14px 16px}.user-row:hover{transform:none;box-shadow:0 5px 14px rgba(198,40,56,.06)}.user-details{min-width:0}.user-details strong{font-size:14px}.user-details small{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-field{margin:0}.user-field>span{display:block;color:#9b8285;font-size:10px;margin:0 0 3px}.user-field select{width:100%;margin:0;padding:9px 10px;font-size:12px}.switch-control{display:flex;align-items:center;gap:8px;margin:0;color:#6d5559;font-size:11px;white-space:nowrap;cursor:pointer}.switch-input{position:absolute;opacity:0;width:1px;height:1px}.switch-track{width:42px;height:24px;display:inline-block;position:relative;flex:0 0 42px;border:1px solid #d7c3c6;border-radius:999px;background:#e9e1e2;transition:.18s}.switch-track i{position:absolute;width:18px;height:18px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(55,25,29,.25);transition:.18s}.switch-input:checked+.switch-track{border-color:#c62838;background:#c62838;box-shadow:0 2px 7px rgba(198,40,56,.24)}.switch-input:checked+.switch-track i{transform:translateX(18px)}.switch-input:focus-visible+.switch-track{outline:3px solid rgba(198,40,56,.22);outline-offset:2px}
@media(max-width:900px){.access-head-actions{flex-wrap:wrap;justify-content:flex-end}.user-row{grid-template-columns:40px minmax(0,1fr)}.user-field{grid-column:2}.switch-control{grid-column:2}.access-control-panel{padding:18px}}
@media(max-width:600px){.access-control-panel .panel-head{gap:8px}.panel-subtitle{font-size:11px}.user-row{gap:10px;padding:12px}.user-details strong{font-size:13px}.user-details small{font-size:10px}.user-active{justify-content:flex-start}}

/* Brand/logo assets should never inherit the temporary image-loading dimmer. */
.page-ready .brand-logo,.page-ready .avatar{opacity:1!important}

/* Loading dimmer/shimmer is intentionally disabled. */
.page-ready,.page-ready img,.skeleton,.skeleton:after{animation:none!important;opacity:1!important}

/* Usage guide */
.guide-hero h2{font-size:32px}.guide-hero p{font-size:15px}.guide-toc h3{font-size:17px}.guide-toc a{font-size:13px;padding:9px 8px}.guide-toc-note{font-size:12px}.guide-section-heading h3{font-size:25px}.guide-section-heading p{font-size:14px}.guide-step-body h4{font-size:17px}.guide-step-body p{font-size:14px;line-height:1.8}.guide-step-no{font-size:13px}.guide-fields span{font-size:11px;padding:5px 8px}.guide-callout{font-size:12px;line-height:1.65}.guide-tip h4{font-size:14px}.guide-tip p{font-size:12px;line-height:1.7}.guide-reference-copy h4{font-size:17px}.guide-reference-copy p,.guide-reference-copy li{font-size:13px;line-height:1.8}.guide-result-band h3{font-size:19px}.guide-result-band p{font-size:13px}.guide-faq summary{font-size:14px}.guide-faq p{font-size:13px;line-height:1.8}
.visual-form b{font-size:11px}.visual-type strong{font-size:14px}.visual-type span{font-size:18px}.visual-type small,.visual-upload small,.visual-ai b,.visual-result small{font-size:10px}.visual-upload span,.visual-result b{font-size:12px}
/* Complete usage-guide layout and panels. */
.guide-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:30px;align-items:center;padding:28px 32px;margin-bottom:20px;border:1px solid #efcdd0;border-radius:17px;background:linear-gradient(120deg,#fffafa,#fff1f2 68%,#ffe8ea);box-shadow:0 16px 36px rgba(112,28,37,.1);overflow:hidden}.guide-hero h2{margin:6px 0 7px;color:#4b252a;line-height:1.35}.guide-hero p{margin:0;color:#806d70;line-height:1.8}.guide-hero-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.guide-hero-art{display:grid;place-items:center;min-height:205px}.guide-art-window{width:min(310px,100%);padding:12px;border:1px solid #e7b9bf;border-radius:15px;background:#fff;box-shadow:0 18px 35px rgba(132,36,48,.16);transform:rotate(2deg)}.guide-art-bar{display:flex;gap:5px;margin:1px 0 10px}.guide-art-bar i{width:7px;height:7px;border-radius:50%;background:#e8a1aa}.guide-art-bar i:nth-child(2){background:#f0c478}.guide-art-bar i:nth-child(3){background:#9bd2b1}.guide-art-canvas{height:130px;border-radius:9px;display:flex;flex-direction:column;justify-content:center;padding:20px;background:linear-gradient(135deg,#c62838,#8f1625);color:#fff;position:relative;overflow:hidden}.guide-art-canvas:after{content:'';position:absolute;width:160px;height:160px;border:20px solid rgba(255,255,255,.12);border-radius:50%;right:-45px;bottom:-70px}.guide-art-canvas span{font-size:11px;letter-spacing:2px;opacity:.75}.guide-art-canvas b{font-size:21px;line-height:1.4;margin-top:4px}.guide-art-canvas em{position:absolute;right:26px;top:23px;font-style:normal;font-size:26px;color:#ffd9dc}.guide-art-controls{display:flex;gap:7px;margin-top:10px}.guide-art-controls i{height:7px;border-radius:5px;background:#f0dce0;flex:1}.guide-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;align-items:start}.guide-toc{position:sticky;top:90px;padding:16px}.guide-toc h3{margin:5px 0 11px;color:#4b252a}.guide-toc a{display:block;border-radius:7px;color:#846d71;line-height:1.4}.guide-toc a:hover,.guide-toc a.active{background:#fff0f1;color:#a51c2c;font-weight:600}.guide-toc-note{margin-top:13px;padding-top:12px;border-top:1px solid #efdbdd;color:#9a7f83;line-height:1.6}.guide-main{min-width:0}.guide-section{margin-bottom:28px;scroll-margin-top:92px}.guide-section-heading{margin-bottom:14px}.guide-section-heading h3{color:#4b252a;margin:4px 0 2px}.guide-section-heading p{margin:0;color:#846d71}.guide-steps{display:grid;gap:10px}.guide-step{display:grid;grid-template-columns:45px minmax(0,1fr) 160px;gap:14px;align-items:center;padding:16px;border:1px solid #efdbdd;border-radius:13px;background:#fff;box-shadow:0 7px 18px rgba(108,30,38,.05);transition:.16s}.guide-step:hover{border-color:#d98891;box-shadow:0 10px 24px rgba(108,30,38,.1);transform:translateY(-1px)}.guide-step-no{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;background:#fff0f1;border:1px solid #efcdd0;color:#b71c2b;font-weight:700}.guide-step-body h4{color:#542c31;margin:0 0 4px}.guide-step-body p{color:#806d70;margin:0}.guide-step-body b{color:#a51c2c}.guide-fields{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.guide-fields span{color:#986c72;border-radius:5px;background:#fff5f5;border:1px solid #f0dfe1}.guide-callout{display:flex;gap:6px;align-items:flex-start;margin-top:9px;padding:7px 9px;border-radius:7px;background:#fff8e9;border:1px solid #f1dcac;color:#8b661d;line-height:1.5}.guide-step-visual{height:84px;border-radius:9px;display:flex;flex-direction:column;justify-content:center;padding:12px;overflow:hidden}.visual-form{background:#fff6f6;border:1px solid #f1d9dc}.visual-form i{height:6px;background:#e8c9cd;border-radius:4px;margin:3px 0;width:75%}.visual-form i:nth-child(2){width:50%}.visual-form i:nth-child(3){width:64%}.visual-form b{color:#a51c2c;margin-top:5px}.visual-type{background:linear-gradient(135deg,#c62838,#9f1424);color:#fff}.visual-type small{opacity:.72}.visual-upload{align-items:center;background:#fffafa;border:1px dashed #d98891;color:#a51c2c}.visual-upload b{font-size:18px}.visual-upload small{color:#a88287}.visual-ai{background:#fff0f1;border:1px solid #efcdd0;position:relative}.visual-ai span{font-weight:700;color:#c62838}.visual-ai i{height:4px;width:100%;border-radius:4px;background:linear-gradient(90deg,#c62838 62%,#f0dfe1 62%);margin-top:7px}.visual-result{align-items:center;background:#f1fbf5;border:1px solid #b9dfc7;color:#177244}.visual-result span{font-size:20px}.visual-result small{color:#59916c}.guide-tips-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.guide-tip{display:flex;gap:11px;padding:13px;border:1px solid #efdbdd;border-radius:11px;background:#fff}.guide-tip>span{color:#c62838;font-weight:700}.guide-tip h4{color:#542c31;margin:0 0 3px}.guide-tip p{color:#806d70;margin:0}.guide-reference{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:16px;border:1px solid #efdbdd;border-radius:13px;background:#fff}.guide-reference-images{display:grid;grid-template-columns:1fr 1fr;gap:9px}.guide-example{min-width:0}.guide-example img{width:100%;height:150px;object-fit:cover;border-radius:9px;border:1px solid #efdbdd;background:#fff5f5}.guide-example span{display:block;margin-top:5px;color:#986c72;text-align:center}.guide-reference-copy h4{color:#542c31;margin:2px 0 6px}.guide-reference-copy p,.guide-reference-copy li{color:#806d70}.guide-reference-copy p{margin:0 0 7px}.guide-reference-copy ul{margin:0;padding-left:18px}.guide-result-band{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 20px;border:1px solid #efcdd0;border-radius:13px;background:#fff5f5}.guide-result-band h3{color:#542c31;margin:3px 0}.guide-result-band p{color:#806d70;margin:0;line-height:1.6}.guide-result-actions{display:flex;gap:8px;flex-wrap:wrap}.guide-faq{display:grid;gap:8px}.guide-faq details{padding:12px 14px;border:1px solid #efdbdd;border-radius:10px;background:#fff}.guide-faq summary{cursor:pointer;color:#542c31;font-weight:600}.guide-faq p{color:#806d70;line-height:1.8;margin:8px 0 0}.guide-faq details[open]{border-color:#df9da3;background:#fffafa}
@media(max-width:900px){.guide-hero{grid-template-columns:1fr;padding:22px}.guide-hero-art{display:none}.guide-layout{grid-template-columns:1fr}.guide-toc{position:static;display:flex;align-items:center;gap:4px;overflow:auto;white-space:nowrap}.guide-toc h3,.guide-toc .eyebrow,.guide-toc-note{display:none}.guide-step{grid-template-columns:38px minmax(0,1fr)}.guide-step-visual{grid-column:2;width:100%;height:70px}.guide-reference{grid-template-columns:1fr}.guide-result-band{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.guide-hero h2{font-size:24px}.guide-hero p{font-size:12px}.guide-section-heading h3{font-size:19px}.guide-step{padding:13px;gap:10px}.guide-step-body h4{font-size:13px}.guide-tips-grid{grid-template-columns:1fr}.guide-reference-images{grid-template-columns:1fr 1fr}.guide-example img{height:110px}.guide-result-actions,.guide-result-actions .btn{width:100%}}
.shared-admin-hero{margin-bottom:20px}.admin-hero-mark{display:flex;align-items:center;gap:8px;padding:11px 14px;border:1px solid #efcdd0;border-radius:11px;background:rgba(255,255,255,.75);color:#218051;font-size:11px;white-space:nowrap}.admin-hero-mark span{width:9px;height:9px;border-radius:50%;background:#2cab70;box-shadow:0 0 0 4px #dff4e8}
.analytics-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 26px;margin-bottom:18px;border:1px solid #efcdd0;border-radius:16px;background:radial-gradient(circle at 78% 20%,rgba(220,38,56,.13),transparent 28%),linear-gradient(120deg,#fffafa,#fff1f2 70%,#ffe8ea);box-shadow:0 14px 30px rgba(112,28,37,.09)}.analytics-hero h2{margin:5px 0 3px;color:#4b252a;font-size:26px}.analytics-hero p{margin:0;color:#806d70;font-size:13px}.analytics-period{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;min-width:170px;padding:12px 14px;border:1px solid #efcdd0;border-radius:11px;background:rgba(255,255,255,.72)}.analytics-period .period-dot{grid-row:span 2;width:9px;height:9px;border-radius:50%;background:#2cab70;box-shadow:0 0 0 4px #dff4e8}.analytics-period strong{font-size:12px;color:#542c31}.analytics-period small{color:#a08286;font-size:10px}.analytics-stats .stat-card{position:relative;overflow:hidden}.analytics-stats .stat-card:after{content:'';position:absolute;width:80px;height:80px;right:-25px;bottom:-35px;border:14px solid rgba(198,40,56,.07);border-radius:50%}.analytics-panel{padding:22px 24px}.analytics-panel-head{align-items:flex-start}.analytics-panel-head h3{margin-top:4px}.panel-description{margin:5px 0 0;color:#947b7f;font-size:12px}.provider-table{display:grid;gap:0}.provider-table-head,.provider-table-row{display:grid;grid-template-columns:minmax(220px,1.7fr) 90px minmax(150px,1fr) 100px 110px;gap:18px;align-items:center}.provider-table-head{padding:0 14px 9px;color:#ad8f93;font-size:10px;font-weight:600}.provider-table-row{padding:13px 14px;border-top:1px solid #f0e2e3;transition:.16s}.provider-table-row:hover{background:#fff8f8;border-radius:9px}.provider-identity{display:flex;align-items:center;gap:10px;min-width:0}.provider-avatar{width:37px;height:37px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(145deg,#e94b58,#b71c2b);color:#fff;font-weight:700;box-shadow:0 5px 12px rgba(198,40,56,.18)}.provider-identity strong,.provider-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.provider-identity strong{color:#542c31;font-size:13px}.provider-identity small{margin-top:2px;color:#a18488;font-size:10px}.metric-number,.latency{color:#542c31;font-size:15px}.metric-number small,.latency small{color:#a18488;font-size:10px;font-weight:400}.success-metric{min-width:0}.metric-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.metric-top strong{color:#238153;font-size:12px}.metric-top small{color:#a18488;font-size:9px}.metric-bar{height:7px;background:#f2e5e6;border-radius:99px;overflow:hidden}.metric-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#39b879,#16834f)}.provider-status{display:inline-flex;align-items:center;gap:6px;width:max-content;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:600}.provider-status i{width:6px;height:6px;border-radius:50%;background:currentColor}.provider-status.is-on{color:#218051;background:#e9f7ef}.provider-status.is-off{color:#9b7378;background:#f8edef}.analytics-empty{display:grid;place-items:center;gap:5px;padding:42px 15px;color:#947b7f;text-align:center}.analytics-empty span{font-size:32px}.analytics-empty strong{color:#542c31}.analytics-empty small{font-size:11px}.analytics-footnote{display:flex;align-items:center;gap:8px;margin-top:12px;padding:10px 13px;color:#947b7f;font-size:11px;border:1px solid #f0dfe1;border-radius:9px;background:#fffafa}.analytics-footnote span:first-child{font-size:16px}
@media(max-width:900px){.analytics-hero{align-items:flex-start;flex-direction:column}.analytics-period{width:100%;min-width:0}.provider-table{overflow-x:auto}.provider-table-head,.provider-table-row{min-width:760px}}
@media(max-width:600px){.analytics-hero{padding:19px}.analytics-hero h2{font-size:22px}.analytics-hero p{font-size:12px}.analytics-panel{padding:17px 14px}.analytics-panel-head{gap:10px;flex-direction:column}.analytics-panel-head .btn{width:100%}.analytics-footnote{align-items:flex-start;font-size:10px}}
.admin-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 26px;margin-bottom:18px;border:1px solid #efcdd0;border-radius:16px;background:radial-gradient(circle at 80% 15%,rgba(220,38,56,.13),transparent 28%),linear-gradient(120deg,#fffafa,#fff1f2 70%,#ffe8ea);box-shadow:0 14px 30px rgba(112,28,37,.09)}.admin-hero h2{margin:5px 0 3px;color:#4b252a;font-size:25px}.admin-hero p{margin:0;color:#806d70;font-size:13px}.admin-hero-stats{display:flex;gap:10px}.admin-hero-stats>span{display:grid;place-items:center;min-width:78px;padding:10px;border:1px solid #efcdd0;border-radius:11px;background:rgba(255,255,255,.72)}.admin-hero-stats b{font-size:22px;color:#b71c2b}.admin-hero-stats small{font-size:10px;color:#947b7f}.admin-hero-stats .hero-icon{font-size:25px;color:#218051}@media(max-width:600px){.admin-hero{align-items:flex-start;flex-direction:column;padding:19px}.admin-hero h2{font-size:22px}.admin-hero-stats{width:100%}.admin-hero-stats>span{flex:1}}
.template-row,.notification-row{display:flex;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.template-row:last-child,.notification-row:last-child{border-bottom:0}.template-row p,.notification-row p{margin:5px 0;color:var(--muted)}.notification-row{color:inherit;text-decoration:none}.notification-row.unread{background:rgba(220,38,38,.05);margin:0 -14px;padding-left:14px;padding-right:14px}.notification-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);flex:0 0 auto}.notification-row:not(.unread) .notification-dot{background:var(--line)}.action-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inline-form{display:flex;gap:6px;align-items:center}.inline-form input{min-width:150px}.approval-approved{background:#dcfce7;color:#166534}.approval-pending{background:#fef3c7;color:#92400e}.approval-rejected{background:#fee2e2;color:#991b1b}.approval-not_requested{background:var(--soft);color:var(--muted)}
@media(max-width:900px){.guide-hero{grid-template-columns:1fr;padding:22px}.guide-hero-art{display:none}.guide-layout{grid-template-columns:1fr}.guide-toc{position:static;display:flex;align-items:center;gap:4px;overflow:auto;white-space:nowrap}.guide-toc h3,.guide-toc .eyebrow,.guide-toc-note{display:none}.guide-toc a{padding:7px 9px}.guide-step{grid-template-columns:38px minmax(0,1fr)}.guide-step-visual{grid-column:2;width:100%;height:70px}.guide-reference{grid-template-columns:1fr}.guide-result-band{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.guide-hero h2{font-size:24px}.guide-hero p{font-size:12px}.guide-section-heading h3{font-size:19px}.guide-step{padding:13px;gap:10px}.guide-step-body h4{font-size:13px}.guide-tips-grid{grid-template-columns:1fr}.guide-reference-images{grid-template-columns:1fr 1fr}.guide-example img{height:110px}.guide-result-actions,.guide-result-actions .btn{width:100%}}
/* Settings and provider panels get a clear visual frame. */
.settings-layout>.panel{position:relative;overflow:hidden}.settings-layout>.panel:before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#c62838,#ef7b82,#f3c1c4);opacity:.9}.settings-layout>.panel:nth-child(2){background:linear-gradient(145deg,#fff 0,#fff8f8 100%)}.settings-layout>.panel:nth-child(2) .panel-head{padding-bottom:12px;border-bottom:1px solid #efdbdd}.settings-layout>.panel:nth-child(2) .system-table b{color:#542c31}.provider-editor{box-shadow:0 14px 30px rgba(112,28,37,.1)}.provider-list-panel{box-shadow:0 14px 30px rgba(112,28,37,.08)}
.notification-bell{position:relative;text-decoration:none}.notification-bell>span{display:block;line-height:1;font-size:17px}.notification-count{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:#c62838;color:#fff;border:2px solid #fff;font-size:9px;line-height:1;box-shadow:0 3px 8px rgba(198,40,56,.28)}.notification-bell:hover{color:#a51c2c;background:#fff1f2;border-color:#df9da3}.light .notification-count{border-color:#fff}
.provider-table .provider-avatar{overflow:hidden;background:#fff;border:1px solid #efcdd0}.provider-table .provider-avatar img{width:100%;height:100%;display:block;object-fit:contain;padding:5px;background:#fff}.provider-table .provider-avatar:has(img){box-shadow:0 5px 12px rgba(198,40,56,.12)}
.notification-wrap{position:relative}.notification-popover{position:absolute;z-index:80;top:calc(100% + 11px);right:-8px;width:min(360px,calc(100vw - 24px));border:1px solid #efcdd0;border-radius:14px;background:#fff;box-shadow:0 18px 45px rgba(91,24,32,.2);overflow:hidden}.notification-popover[hidden]{display:none}.notification-popover:before{content:'';position:absolute;right:20px;top:-7px;width:13px;height:13px;background:#fff;border-left:1px solid #efcdd0;border-top:1px solid #efcdd0;transform:rotate(45deg)}.notification-popover-head{position:relative;display:flex;justify-content:space-between;align-items:center;padding:15px 16px 13px;background:linear-gradient(120deg,#fff7f7,#fff);border-bottom:1px solid #f0dadd}.notification-popover-head strong,.notification-popover-head small{display:block}.notification-popover-head strong{color:#4b252a;font-size:15px}.notification-popover-head small{color:#9a7b80;font-size:10px;margin-top:2px}.notification-popover-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#fff1f2;color:#b71c2b;font-size:17px}.notification-popover-list{max-height:310px;overflow:auto;padding:4px 8px}.notification-mini{display:flex;gap:9px;padding:11px 8px;border-bottom:1px solid #f2e6e7;text-decoration:none;color:#542c31;border-radius:8px}.notification-mini:last-child{border-bottom:0}.notification-mini:hover{background:#fff6f6}.notification-mini.unread{background:#fff3f4}.notification-mini-dot{width:8px;height:8px;margin-top:5px;flex:0 0 auto;border-radius:50%;background:#d9c6c8}.notification-mini.unread .notification-mini-dot{background:#c62838;box-shadow:0 0 0 3px #fbe0e3}.notification-mini strong,.notification-mini small,.notification-mini time{display:block}.notification-mini strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:290px}.notification-mini small{margin-top:3px;color:#896e73;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:290px}.notification-mini time{margin-top:4px;color:#b09296;font-size:9px}.notification-empty{text-align:center;padding:25px 12px;color:#9a7b80}.notification-empty span{display:grid;place-items:center;width:35px;height:35px;margin:0 auto 7px;border-radius:50%;background:#f1faf4;color:#218051;font-size:17px}.notification-empty p{margin:0;font-size:11px}.notification-popover-foot{padding:10px 14px;border-top:1px solid #f0dadd;background:#fffafa;text-align:center}.notification-popover-foot a{color:#b71c2b;font-size:10px;font-weight:600;text-decoration:none}.notification-popover-foot a:hover{text-decoration:underline}.notification-popover-foot span{font-size:15px;vertical-align:-1px;margin-left:3px}@media(max-width:600px){.notification-popover{position:fixed;top:69px;right:10px;width:min(360px,calc(100vw - 20px))}.notification-popover:before{right:84px}}

/* Popup notifications are buttons: clicking marks the item as read without leaving the page. */
.notification-mini{width:100%;border:0;border-bottom:1px solid #f2e6e7;text-align:left;font:inherit;background:transparent;cursor:default}

/* Keep the page title in the top bar; admin pages do not need a duplicate hero. */
.shared-admin-hero{display:none}
/* Top bar is the single title source for these pages. */
.page-tools:has(~ .grid-2 textarea[name="prompt"]),
.page-tools:has(+ .grid-2 input[name="width"]),
.analytics-hero{display:none}

/* Separate the project details panel from the workflow controls below it. */
.project-info + .project-actions{margin-top:16px}

/* Favorites and tags remain visible where users browse their work. */
.history-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:-4px 0 16px}.history-filter{padding:6px 10px;border:1px solid #efcdd0;border-radius:999px;background:#fffafa;color:#856268;font-size:11px;text-decoration:none;transition:.16s}.history-filter:hover{border-color:#d88790;background:#fff1f2;color:#a51c2c}.history-filter.active{border-color:#c62838;background:#c62838;color:#fff;box-shadow:0 5px 12px rgba(198,40,56,.18)}.favorite-filter{font-weight:600}.design-cover{position:relative}.favorite-mark{position:absolute;top:9px;left:9px;display:grid;place-items:center;width:30px;height:30px;border:1px solid #f0c452;border-radius:9px;background:rgba(255,255,255,.93);color:#d69200;font-size:18px;line-height:1;box-shadow:0 4px 10px rgba(83,54,0,.16)}.card-tag-row{display:flex!important;justify-content:flex-start!important;gap:5px;flex-wrap:wrap;margin:-1px 0 8px}.card-tag{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 6px;border:1px solid #efcdd0;border-radius:999px;background:#fff5f5;color:#a51c2c;font-size:9px}.project-tag-row{align-items:center}.tag-remove-form{margin:0}.removable-chip{display:inline-flex;align-items:center;gap:5px;cursor:pointer;color:#a51c2c;background:#fff5f5}.removable-chip:hover{border-color:#d65b67;background:#ffe8ea}.removable-chip b{font-size:14px;line-height:.7;font-weight:500}@media(max-width:600px){.history-filters{margin-bottom:13px}.history-filter{font-size:10px;padding:5px 8px}}

/* Keep the create workspace columns visually balanced on desktop. */
@media(min-width:901px){
  .design-workspace{align-items:stretch;grid-template-columns:minmax(320px,.95fr) minmax(420px,1.35fr) minmax(280px,.9fr);gap:16px}
  .create-left,.create-center,.create-right{height:auto;min-height:620px;overflow:visible}
  .create-right{position:static}
}

/* Responsive feedback and visual state for AI work. */
html,body,.app-shell,.sidebar,.topbar,.panel,.stat-card,.design-card,.design-row,.health-row,.provider-card,.version-row,input,select,textarea,.btn,.icon-btn,.status-chip,.user-chip{transition:background-color .22s ease,border-color .22s ease,color .22s ease,box-shadow .22s ease}
.toast-root{position:fixed;right:20px;top:92px;z-index:1000;display:grid;gap:10px;width:min(390px,calc(100vw - 28px))}
.toast{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) 22px;gap:10px;align-items:start;overflow:hidden;padding:13px 13px 15px;border:1px solid #ead2d5;border-radius:12px;background:#fff;color:#4b252a;box-shadow:0 16px 38px rgba(80,27,34,.16);transform:translateX(calc(100% + 24px));opacity:0;transition:transform .25s ease,opacity .25s ease}
.toast.show{transform:translateX(0);opacity:1}.toast-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#fff0f1;color:#b71c2b;font-weight:800}.toast-copy strong{display:block;color:#542c31;font-size:12px}.toast-copy p{margin:2px 0 0;color:#856b70;font-size:11px;line-height:1.55}.toast-close{border:0;background:transparent;color:#a18488;font-size:19px;line-height:1;padding:0;transition:color .15s}.toast-close:hover{color:#a51c2c}.toast-timer{position:absolute;left:0;bottom:0;width:100%;height:3px;background:#d66a74;transform-origin:left;animation:toast-time 4.55s linear forwards}.toast.success{border-color:#b9dfc7}.toast.success .toast-icon{background:#e9f7ef;color:#218051}.toast.success .toast-timer{background:#2cab70}.toast.error{border-color:#e5a5ad}.toast.error .toast-icon{background:#fdebed;color:#b71c2b}.toast.error .toast-timer{background:#c62838}@keyframes toast-time{to{transform:scaleX(0)}}
.selected-provider{display:flex;align-items:center;gap:10px;margin:2px 0 12px;padding:10px;border:1px solid #efdbdd;border-radius:10px;background:#fffafa}.selected-provider-mark{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:9px;background:#fff0f1;border:1px solid #efcdd0;color:#b71c2b;font-family:Arial,sans-serif;font-weight:800;font-size:17px}.selected-provider b,.selected-provider small{display:block}.selected-provider b{color:#542c31;font-size:11px}.selected-provider small{margin-top:1px;color:#947b7f;font-size:9px}.selected-provider[data-brand="openai"] .selected-provider-mark{background:#edf8f2;border-color:#b9dfc7;color:#187749}.selected-provider[data-brand="grok"] .selected-provider-mark{background:#f2f2f4;border-color:#d8d8df;color:#27262b}.selected-provider[data-brand="nai"] .selected-provider-mark{background:#fff5e8;border-color:#f0d3a1;color:#b56800}
.design-metadata{display:flex!important;justify-content:flex-start!important;margin:-1px 0 7px;color:#9b7d82!important;font-size:9px!important}.design-metadata span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.result-metadata{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.result-metadata span{padding:5px 8px;border:1px solid #efdbdd;border-radius:999px;background:#fffafa;color:#80676b;font-size:10px}
.design-card.is-processing{position:relative;overflow:hidden}.design-card.is-processing:after{content:'';position:absolute;top:0;bottom:0;left:-40%;width:28%;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(198,40,56,.17),transparent);transform:skewX(-18deg);animation:processing-sweep 1.75s ease-in-out infinite}.design-card.is-processing .status-processing{position:relative;z-index:1}.design-row:has(.status-processing){position:relative;overflow:hidden}.design-row:has(.status-processing):after{content:'';position:absolute;inset:0 auto 0 -35%;width:24%;background:linear-gradient(90deg,transparent,rgba(198,40,56,.12),transparent);transform:skewX(-18deg);animation:processing-sweep 1.75s ease-in-out infinite;pointer-events:none}@keyframes processing-sweep{to{left:120%}}
.success-sparkles{position:fixed;z-index:1100;left:50%;top:50%;width:1px;height:1px;pointer-events:none}.success-sparkles i{position:absolute;left:0;top:0;width:8px;height:8px;border-radius:2px;background:#e7a226;box-shadow:0 0 10px rgba(231,162,38,.55);transform:translate(-50%,-50%);animation:sparkle-pop .9s cubic-bezier(.2,.75,.25,1) var(--d) both}.success-sparkles i:nth-child(3n){background:#c62838}.success-sparkles i:nth-child(4n){background:#2cab70;border-radius:50%}@keyframes sparkle-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--x)*1px),calc(-50% + var(--y)*1px)) scale(1.2) rotate(170deg)}}
.stat-card strong{font-variant-numeric:tabular-nums}.stat-card{overflow:hidden}.stat-card:focus-within{border-color:#d98891;box-shadow:0 12px 27px rgba(112,28,37,.1)}
@media(max-width:600px){.toast-root{right:12px;top:78px;width:calc(100vw - 24px)}.result-metadata span{font-size:9px}.selected-provider{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.design-card.is-processing:after,.design-row:has(.status-processing):after{display:none}}

/* Project detail: image-led workspace with a balanced information row. */
.content:has(.project-layout .viewer-panel){
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(330px,.78fr);
  gap:18px;
  align-items:start;
}
.content:has(.project-layout .viewer-panel)>.project-head,
.content:has(.project-layout .viewer-panel)>.project-layout{grid-column:1/-1}
.content:has(.project-layout .viewer-panel)>.project-info{grid-column:1;margin:0;min-height:100%}
.content:has(.project-layout .viewer-panel)>.project-actions{grid-column:2;margin:0;min-height:100%}
.project-head{padding:2px 2px 3px;margin-bottom:0;align-items:center}.project-head>div:first-child{min-width:0}.project-head .title-line{margin-top:4px}.project-head .title-line h2{color:#4b252a;font-size:27px;line-height:1.25}.project-head p{font-size:12px;margin-top:4px}.project-head-actions{flex:0 0 auto}
.project-layout{grid-template-columns:minmax(0,1fr) minmax(330px,370px);gap:18px;align-items:stretch}.viewer-panel{display:flex;flex-direction:column;min-width:0;padding:20px}.viewer-panel .panel-head{margin-bottom:14px}.result-viewer{height:clamp(410px,58vh,620px);border-radius:11px;background:linear-gradient(145deg,#fffafa,#fff4f5);border-color:#efdbdd}.result-viewer img{cursor:zoom-in}.viewer-toolbar{padding-top:12px;margin-top:0;border-top:1px solid #f0e1e3}.viewer-toolbar .btn{width:36px;height:34px;padding:0;font-size:14px}.viewer-toolbar .muted{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-metadata{padding-top:10px;margin-top:0}.result-metadata span{background:#fff;border-color:#efdbdd}
.project-side{gap:18px}.project-side>.panel{padding:18px}.project-side .panel-head{margin-bottom:12px}.version-list{gap:8px}.version-row{min-height:63px;padding:8px 9px;border-radius:10px}.version-row:hover{transform:translateX(2px)}.version-row.active{box-shadow:inset 3px 0 0 #c62838;background:#fff4f5;border-color:#df9da3}.version-thumb{width:70px;height:46px;border-radius:7px}.version-row strong{color:#542c31;font-size:11px}.version-row small{margin-top:2px;color:#947b7f;font-size:9px}.project-side form label:last-of-type{margin-bottom:13px}.project-side textarea{min-height:112px}.project-side .btn.full{min-height:43px}
.project-info,.project-actions{padding:20px}.project-info:before,.project-actions:before{content:'';display:block;width:38px;height:4px;margin:-20px 0 16px;border-radius:0 0 5px 5px;background:#c62838}.project-actions:before{background:#e9a72c}.project-info .panel-head,.project-actions .panel-head{margin-bottom:15px}.project-info .info-columns{gap:14px}.project-info .info-columns>div{min-width:0}.project-info .info-columns h4{color:#6a4c51;font-size:12px}.project-info .info-columns pre,.project-info .info-columns p{min-height:132px;max-height:220px;overflow:auto;padding:13px;line-height:1.75;font-size:12px}.project-actions{display:flex;flex-direction:column}.project-actions .panel-head{align-items:flex-start}.project-actions .action-row{gap:8px}.project-actions .inline-form{width:100%;margin-top:2px}.project-actions .inline-form input{flex:1;min-width:0}.project-actions .project-tag-row{margin-top:auto;padding-top:14px;border-top:1px solid #f0e1e3}.project-actions .chip{font-size:10px}
@media(max-width:1100px){.content:has(.project-layout .viewer-panel){grid-template-columns:1fr}.content:has(.project-layout .viewer-panel)>.project-info,.content:has(.project-layout .viewer-panel)>.project-actions{grid-column:1}.project-layout{grid-template-columns:minmax(0,1fr) 330px}.project-actions .project-tag-row{margin-top:15px}}
@media(max-width:900px){.content:has(.project-layout .viewer-panel){display:block}.project-head{margin-bottom:14px}.project-layout{grid-template-columns:1fr}.result-viewer{height:min(62vh,520px)}.project-info,.project-actions{margin-top:14px!important}.project-info .info-columns{grid-template-columns:1fr}.project-info .info-columns pre,.project-info .info-columns p{max-height:none;min-height:110px}}
@media(max-width:600px){.project-head{align-items:flex-start;padding:0;gap:12px}.project-head .title-line{align-items:flex-start}.project-head .title-line h2{font-size:22px}.project-head-actions{width:100%}.project-head-actions .btn{flex:1}.viewer-panel{padding:15px}.result-viewer{height:360px}.viewer-toolbar{flex-wrap:wrap;gap:6px}.viewer-toolbar .muted{order:2;width:100%;margin:5px 0 0}.result-metadata{gap:5px}.result-metadata span{font-size:9px}.project-side{gap:14px}.project-side>.panel,.project-info,.project-actions{padding:16px}.project-info:before,.project-actions:before{margin:-16px 0 13px}.project-actions .action-row,.project-actions .action-row form{width:100%}.project-actions .action-row .btn{width:100%}}

/* Explicit dark theme overrides. The white/red palette is the default light mode. */
html:not(.light) body:not(.auth-body){background:radial-gradient(circle at 70% 0,#0a2b56 0,transparent 30%),linear-gradient(180deg,#021020,#020b18 70%);color:#f6fbff}
html:not(.light) body:not(.auth-body) .sidebar{background:linear-gradient(180deg,#061a36 0,#04152e 65%,#031126 100%);border-right-color:#153e6d;box-shadow:12px 0 40px rgba(0,0,0,.18)}
html:not(.light) body:not(.auth-body) .topbar{background:rgba(5,21,43,.88);border-bottom-color:#153c67}
html:not(.light) body:not(.auth-body) .brand strong,html:not(.light) body:not(.auth-body) .panel-head h3,html:not(.light) body:not(.auth-body) .hero-strip h2,html:not(.light) body:not(.auth-body) .design-row strong,html:not(.light) body:not(.auth-body) .health-row strong,html:not(.light) body:not(.auth-body) .provider-card strong,html:not(.light) body:not(.auth-body) .provider-title,html:not(.light) body:not(.auth-body) .toggle-row b,html:not(.light) body:not(.auth-body) .info-card b,html:not(.light) body:not(.auth-body) .check-card b{color:#f6fbff}
html:not(.light) body:not(.auth-body) .panel,html:not(.light) body:not(.auth-body) .stat-card,html:not(.light) body:not(.auth-body) .design-card{background:linear-gradient(180deg,rgba(12,39,75,.96),rgba(7,29,58,.98));border-color:#174a7f;box-shadow:0 16px 36px rgba(0,0,0,.28)}
html:not(.light) body:not(.auth-body) .design-row,html:not(.light) body:not(.auth-body) .health-row,html:not(.light) body:not(.auth-body) .version-row,html:not(.light) body:not(.auth-body) .provider-card,html:not(.light) body:not(.auth-body) .toggle-row,html:not(.light) body:not(.auth-body) .check-card{background:#071d39;border-color:#123e6b;color:#f6fbff}
html:not(.light) body:not(.auth-body) input,html:not(.light) body:not(.auth-body) select,html:not(.light) body:not(.auth-body) textarea,html:not(.light) body:not(.auth-body) .search-box{background:#041a34;border-color:#174d7e;color:#eef8ff}
html:not(.light) body:not(.auth-body) .result-viewer,html:not(.light) body:not(.auth-body) .preview-stage{background:radial-gradient(circle at center,#0b3058,#041426 70%);border-color:#174c7b}
html:not(.light) body:not(.auth-body) .btn,html:not(.light) body:not(.auth-body) .icon-btn,html:not(.light) body:not(.auth-body) .status-chip,html:not(.light) body:not(.auth-body) .user-chip{background:linear-gradient(180deg,#123966,#0b294e);border-color:#286aa5;color:#fff}
html:not(.light) body:not(.auth-body) .btn-primary{background:linear-gradient(180deg,#1ca6ff 0,#1277e8 54%,#0d5bbd 100%);border-color:#1d90ef;color:#fff}
html:not(.light) body:not(.auth-body) .btn-danger{background:linear-gradient(180deg,#ef555b,#b71f35);border-color:#f15b61;color:#fff}
html:not(.light) body:not(.auth-body) .btn-ghost{background:#0a274b;border-color:#286aa5;color:#fff}
html:not(.light) body:not(.auth-body) .muted,html:not(.light) body:not(.auth-body) .design-row small,html:not(.light) body:not(.auth-body) .health-row small,html:not(.light) body:not(.auth-body) .provider-card small{color:#8fb0d2}
html:not(.light) body:not(.auth-body) .selected-provider,html:not(.light) body:not(.auth-body) .result-metadata span{background:#071d39;border-color:#174a7f;color:#cfe3f6}
html:not(.light) body:not(.auth-body) .nav-item{color:#cfe3f6;background:transparent;border-color:transparent}
html:not(.light) body:not(.auth-body) .nav-item:hover{background:#0c315e;border-color:#1b5995;color:#fff}
html:not(.light) body:not(.auth-body) .nav-item.active{color:#fff;background:linear-gradient(180deg,#0c5cb5,#08498f);border-color:#1b79da;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 6px 14px rgba(2,74,151,.24)}
html:not(.light) body:not(.auth-body) .hero-strip{border-color:#1b5793;background:radial-gradient(circle at 75% 40%,rgba(20,146,255,.18),transparent 24%),linear-gradient(120deg,#0c2a51,#092242 62%,#0a315f);box-shadow:0 16px 36px rgba(0,0,0,.28)}
html:not(.light) body:not(.auth-body) .hero-strip h2{color:#f6fbff}
html:not(.light) body:not(.auth-body) .hero-strip p{color:#9bbbd9}
html:not(.light) body:not(.auth-body) .eyebrow{color:#65aef1}
html:not(.light) body:not(.auth-body) .stat-card small,html:not(.light) body:not(.auth-body) .stat-card span{color:#88a8c7}
html:not(.light) body:not(.auth-body) .stat-card strong{color:#f6fbff}
html:not(.light) body:not(.auth-body) .panel-head h3{color:#f6fbff}
html:not(.light) body:not(.auth-body) .empty-state h3,html:not(.light) body:not(.auth-body) .empty-state h4{color:#f6fbff}
html:not(.light) body:not(.auth-body) .mini-note,html:not(.light) body:not(.auth-body) .info-card,html:not(.light) body:not(.auth-body) .generation-progress{background:#071c34;border-color:#17466f;color:#8faecc}
html:not(.light) body:not(.auth-body) .info-card p{color:#7799b8}
html:not(.light) body:not(.auth-body) .design-card-body p,html:not(.light) body:not(.auth-body) .design-card-body>div{color:#7799b8}
html:not(.light) body:not(.auth-body) .design-metadata{color:#8fb0d2!important}
html:not(.light) body:not(.auth-body) .project-head .title-line h2{color:#f6fbff}
html:not(.light) body:not(.auth-body) .project-head p{color:#8fb0d2}
html:not(.light) body:not(.auth-body) .project-info:before{background:#ef6b73}.project-actions:before{background:#e9a72c}
html:not(.light) body:not(.auth-body) .project-info .info-columns h4{color:#cfe3f6}
html:not(.light) body:not(.auth-body) .project-info .info-columns pre,html:not(.light) body:not(.auth-body) .project-info .info-columns p{background:#061a31;border-color:#123c63;color:#9ab7d1}
html:not(.light) body:not(.auth-body) .project-actions .project-tag-row{border-top-color:#123c63}
html:not(.light) body:not(.auth-body) .system-mini{background:#08213e;border-color:#174b7a;color:#f6fbff}
html:not(.light) body:not(.auth-body) .system-mini small{color:#789bbb}
html:not(.light) body:not(.auth-body) .provider-orb,html:not(.light) body:not(.auth-body) .stat-icon,html:not(.light) body:not(.auth-body) .upload-icon{background:#0d3d72;border-color:#1d66a7;color:#fff}
html:not(.light) body:not(.auth-body) .badge,html:not(.light) body:not(.auth-body) .version-pill,html:not(.light) body:not(.auth-body) .chip{background:#102f50;border-color:#285b86;color:#bed8ed}
html:not(.light) body:not(.auth-body) .status-completed{background:#0d4d3c!important;border-color:#1a8466!important;color:#82f0c6!important}
html:not(.light) body:not(.auth-body) .status-processing{background:#4d3808!important;border-color:#a87813!important;color:#ffd77d!important}

/* MaxPlus AI Management */
.maxplus-page{display:grid;gap:18px}.maxplus-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px 27px;border:1px solid #edc6ca;background:linear-gradient(110deg,#fff 0%,#fff7f7 54%,#fff0f1);box-shadow:0 14px 32px rgba(107,30,38,.08)}.maxplus-intro h2{margin:4px 0 6px;color:#4b252a;font-size:25px}.maxplus-intro p{margin:0;color:#80666b;font-size:12px}.maxplus-api-state{display:flex;align-items:center;gap:10px;min-width:215px;padding:11px 13px;border:1px solid #ecd2d5;background:#fff;border-radius:8px}.maxplus-api-state i{width:10px;height:10px;border-radius:50%;background:#d28b22;box-shadow:0 0 0 4px #fff4db}.maxplus-api-state.is-ready i{background:#249a62;box-shadow:0 0 0 4px #e5f7ee}.maxplus-api-state strong,.maxplus-api-state small{display:block}.maxplus-api-state strong{font-size:11px;color:#573036}.maxplus-api-state small{margin-top:2px;font-size:9px;color:#92777c}.maxplus-token-panel{padding:18px 20px}.maxplus-token-panel .panel-head{margin-bottom:10px}.maxplus-token-form{display:flex;align-items:end;gap:10px}.maxplus-token-form label{flex:1;margin:0}.maxplus-token-form .btn{height:39px;white-space:nowrap}.form-help{margin:9px 0 0;color:#8b7277;font-size:10px}.maxplus-secret{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 17px;border:1px solid #bedeca;background:#f2fbf5;box-shadow:0 12px 25px rgba(24,119,73,.07)}.maxplus-secret>div{display:flex;align-items:center;gap:10px}.maxplus-secret span{display:grid;place-items:center;width:34px;height:34px;background:#dff5e7;border-radius:8px}.maxplus-secret strong,.maxplus-secret small{display:block}.maxplus-secret strong{font-size:12px;color:#255f42}.maxplus-secret small{margin-top:2px;color:#538166;font-size:10px}.maxplus-secret code{max-width:54%;overflow:auto;padding:9px 11px;border:1px dashed #8bc4a1;background:#fff;color:#17613e;font-size:11px}.maxplus-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.maxplus-stat{display:flex;gap:12px;align-items:center;padding:15px 17px;border:1px solid #ead9dc;background:#fff}.maxplus-stat>span{display:grid;place-items:center;width:39px;height:39px;border:1px solid #efcdd1;background:#fff0f1;color:#b62535;font-size:18px}.maxplus-stat:nth-child(2)>span{border-color:#f2dbad;background:#fff9ec}.maxplus-stat:nth-child(3)>span{border-color:#bdddeb;background:#edf9ff}.maxplus-stat small,.maxplus-stat em{display:block;color:#8d7479;font-size:10px;font-style:normal}.maxplus-stat strong{display:block;margin:1px 0;color:#542b31;font-size:21px}.maxplus-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:18px;align-items:start}.maxplus-key-panel,.maxplus-editor,.maxplus-usage{padding:20px}.maxplus-key-list{display:grid;gap:8px}.maxplus-key-row{display:grid;grid-template-columns:minmax(160px,1.2fr) .55fr .72fr .72fr auto;align-items:center;gap:12px;padding:12px;border:1px solid #efdcdf;background:#fffafa}.maxplus-key-row:hover,.maxplus-key-row.active{border-color:#d999a0;background:#fff5f6;box-shadow:inset 3px 0 0 #c62838}.key-identity{display:flex;align-items:center;gap:9px;min-width:0}.key-icon{display:grid;place-items:center;flex:0 0 33px;width:33px;height:33px;border:1px solid #eccfd3;background:#fff0f1;color:#b42635;font-size:15px}.key-identity strong,.key-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.key-identity strong{color:#552d32;font-size:11px}.key-identity small{margin-top:2px;color:#957a7f;font-family:monospace;font-size:9px}.key-metric small,.key-metric b{display:block}.key-metric small{color:#9a8085;font-size:9px}.key-metric b{margin-top:2px;color:#66454a;font-size:10px;white-space:nowrap}.key-actions{display:flex;gap:4px}.key-actions form{margin:0}.key-actions .icon-btn{display:grid;place-items:center;width:30px;height:30px;padding:0;font-size:12px}.danger-icon:hover{border-color:#d34e5b!important;background:#fff0f1!important}.maxplus-editor form{display:grid;gap:12px}.maxplus-editor .form-grid{gap:10px}.maxplus-editor .inline-check{margin:0}.maxplus-usage{display:grid;gap:13px}.usage-filter{display:flex;align-items:end;gap:10px;padding:12px;border:1px solid #efdcdf;background:#fffafa}.usage-filter label{flex:1;margin:0}.usage-filter .btn{height:38px;white-space:nowrap}.usage-summary{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #eadadd}.usage-summary>div{padding:14px;border-right:1px solid #eadadd;background:#fff}.usage-summary>div:last-child{border-right:0}.usage-summary small,.usage-summary strong{display:block}.usage-summary small{color:#957b80;font-size:10px}.usage-summary strong{margin-top:4px;color:#552d32;font-size:18px;font-variant-numeric:tabular-nums}.usage-key-preview{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e5d6d8;background:#fffafa;color:#73575c;font-size:10px}.usage-key-preview span{color:#9a8085}.maxplus-usage details{border:1px solid #e5d6d8;background:#fff}.maxplus-usage summary{padding:11px;cursor:pointer;color:#724a50;font-size:11px;font-weight:700}.maxplus-usage pre{max-height:280px;overflow:auto;margin:0;padding:13px;border-top:1px solid #e5d6d8;background:#fffafa;color:#62434a;font-size:10px}.maxplus-note{padding:11px 13px;border-left:3px solid #d99828;background:#fff9ed;color:#85672b;font-size:10px;line-height:1.6}
html:not(.light) body:not(.auth-body) .maxplus-intro{border-color:#26558a;background:linear-gradient(110deg,#0b294e,#092041)}html:not(.light) body:not(.auth-body) .maxplus-intro h2,html:not(.light) body:not(.auth-body) .maxplus-stat strong,html:not(.light) body:not(.auth-body) .key-identity strong,html:not(.light) body:not(.auth-body) .key-metric b,html:not(.light) body:not(.auth-body) .usage-summary strong{color:#f3f9ff}html:not(.light) body:not(.auth-body) .maxplus-intro p,html:not(.light) body:not(.auth-body) .maxplus-api-state small,html:not(.light) body:not(.auth-body) .key-identity small,html:not(.light) body:not(.auth-body) .key-metric small,html:not(.light) body:not(.auth-body) .maxplus-stat small,html:not(.light) body:not(.auth-body) .maxplus-stat em,html:not(.light) body:not(.auth-body) .usage-summary small{color:#91b0cf}.maxplus-api-state,html:not(.light) body:not(.auth-body) .maxplus-stat,html:not(.light) body:not(.auth-body) .maxplus-key-row,html:not(.light) body:not(.auth-body) .usage-summary>div,html:not(.light) body:not(.auth-body) .maxplus-usage details{background:#071d39;border-color:#174a7f}html:not(.light) body:not(.auth-body) .maxplus-api-state strong{color:#f3f9ff}html:not(.light) body:not(.auth-body) .maxplus-key-row:hover,html:not(.light) body:not(.auth-body) .maxplus-key-row.active,html:not(.light) body:not(.auth-body) .usage-filter,html:not(.light) body:not(.auth-body) .usage-key-preview{background:#0a284a;border-color:#1d5488}html:not(.light) body:not(.auth-body) .maxplus-secret{border-color:#287458;background:#082d28}html:not(.light) body:not(.auth-body) .maxplus-secret strong{color:#9be6bd}html:not(.light) body:not(.auth-body) .maxplus-secret small,html:not(.light) body:not(.auth-body) .usage-key-preview,html:not(.light) body:not(.auth-body) .usage-key-preview span{color:#a2cbb6}html:not(.light) body:not(.auth-body) .maxplus-secret code,html:not(.light) body:not(.auth-body) .maxplus-usage pre{background:#061a31;border-color:#245a67;color:#bce6d7}html:not(.light) body:not(.auth-body) .usage-summary,html:not(.light) body:not(.auth-body) .usage-summary>div{border-color:#174a7f}html:not(.light) body:not(.auth-body) .maxplus-note{background:#30270d;color:#f3d98e}
@media(max-width:1050px){.maxplus-grid{grid-template-columns:1fr}.maxplus-editor{order:-1}.maxplus-key-row{grid-template-columns:minmax(180px,1.2fr) repeat(3,.7fr) auto}}@media(max-width:700px){.maxplus-intro,.maxplus-secret{align-items:flex-start;flex-direction:column}.maxplus-api-state{min-width:0;width:100%}.maxplus-token-form,.usage-filter{align-items:stretch;flex-direction:column}.maxplus-token-form .btn,.usage-filter .btn{width:100%}.maxplus-stats,.usage-summary{grid-template-columns:1fr}.usage-summary>div{border-right:0;border-bottom:1px solid #eadadd}.usage-summary>div:last-child{border-bottom:0}.maxplus-key-row{grid-template-columns:1fr 1fr}.key-identity{grid-column:1/-1}.key-actions{grid-column:1/-1}.maxplus-secret code{max-width:100%;width:100%}.usage-key-preview{align-items:flex-start;flex-direction:column}.maxplus-key-panel,.maxplus-editor,.maxplus-usage{padding:15px}}

.maxplus-token-form label small{display:block;margin:1px 0 4px;color:#9a7d82;font-size:9px}.maxplus-account{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:18px}.account-profile,.account-usage,.maxplus-models{padding:20px}.period-select label{display:flex;align-items:center;gap:7px;margin:0;color:#866c71;font-size:10px}.period-select select{width:auto;min-width:80px;padding:7px 25px 7px 9px;font-size:10px}.account-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:10px}.account-grid>div{min-height:76px;padding:13px;border:1px solid #eadadd;background:#fffafa}.account-grid small,.account-grid b,.account-grid em{display:block}.account-grid small{color:#9b7e83;font-size:9px}.account-grid b{margin-top:5px;overflow:hidden;color:#593137;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.account-grid em{margin-top:2px;overflow:hidden;color:#92777c;font-size:9px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.account-grid .credit-card{border-color:#ecd59e;background:linear-gradient(135deg,#fffdf4,#fff7df)}.credit-card strong{margin:4px 0 0;color:#b36a00;font-size:25px;font-variant-numeric:tabular-nums}.credit-card span{color:#a47b36;font-size:9px}.account-usage-grid{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #eadadd}.account-usage-grid>div{padding:12px;border-right:1px solid #eadadd;border-bottom:1px solid #eadadd}.account-usage-grid>div:nth-child(3n){border-right:0}.account-usage-grid>div:nth-last-child(-n+3){border-bottom:0}.account-usage-grid small,.account-usage-grid strong{display:block}.account-usage-grid small{color:#987d82;font-size:9px}.account-usage-grid strong{margin-top:3px;color:#593137;font-size:15px;font-variant-numeric:tabular-nums}.maxplus-models{max-height:480px;overflow:auto}.model-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.model-row{display:flex;align-items:center;gap:8px;min-width:0;padding:10px;border:1px solid #eadadd;background:#fffafa}.model-row>span{display:grid;place-items:center;width:25px;height:25px;background:#edf8ff;color:#24749b;font-size:12px}.model-row>div{min-width:0;flex:1}.model-row strong,.model-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-row strong{color:#593137;font-size:10px}.model-row small{margin-top:2px;color:#95797e;font-family:monospace;font-size:8px}.model-row b{padding:3px 5px;background:#fff;border:1px solid #eadadd;color:#8b6f74;font-size:8px;font-weight:600}
html:not(.light) body:not(.auth-body) .account-grid>div,html:not(.light) body:not(.auth-body) .model-row{background:#071d39;border-color:#174a7f}html:not(.light) body:not(.auth-body) .account-grid .credit-card{background:#30270d;border-color:#7c6121}html:not(.light) body:not(.auth-body) .account-grid b,html:not(.light) body:not(.auth-body) .account-usage-grid strong,html:not(.light) body:not(.auth-body) .model-row strong{color:#f3f9ff}html:not(.light) body:not(.auth-body) .account-grid small,html:not(.light) body:not(.auth-body) .account-grid em,html:not(.light) body:not(.auth-body) .account-usage-grid small,html:not(.light) body:not(.auth-body) .model-row small{color:#91b0cf}html:not(.light) body:not(.auth-body) .account-usage-grid,html:not(.light) body:not(.auth-body) .account-usage-grid>div{border-color:#174a7f}html:not(.light) body:not(.auth-body) .model-row b{background:#0d3158;border-color:#245a8c;color:#bcdaf2}
@media(max-width:900px){.maxplus-account{grid-template-columns:1fr}.model-list{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.account-grid,.account-usage-grid,.model-list{grid-template-columns:1fr}.account-usage-grid>div,.account-usage-grid>div:nth-child(3n),.account-usage-grid>div:nth-last-child(-n+3){border-right:0;border-bottom:1px solid #eadadd}.account-usage-grid>div:last-child{border-bottom:0}.period-select{width:100%}.period-select label,.period-select select{width:100%}}

.maxplus-key-switcher{padding:20px}.account-key-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.account-key-card{display:flex;align-items:center;gap:8px;min-width:0;padding:10px;border:1px solid #eadadd;background:#fffafa;color:inherit;text-decoration:none}.account-key-card:hover{border-color:#d89ba2;background:#fff3f4}.account-key-card.active{border-color:#ca5f6c;background:#fff0f1;box-shadow:inset 3px 0 0 #c62838}.account-key-card>span{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;background:#fff;border:1px solid #ecd1d4;font-size:13px}.account-key-card>div{min-width:0;flex:1}.account-key-card strong,.account-key-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-key-card strong{color:#593137;font-size:10px}.account-key-card small{margin-top:2px;color:#967a80;font-family:monospace;font-size:8px}.account-key-card b{padding:3px 5px;background:#c62838;color:#fff;font-size:8px;font-weight:700}.maxplus-add-key{margin-top:13px;padding-top:13px;border-top:1px solid #eadadd}.maxplus-add-key form{display:flex;align-items:end;gap:10px}.maxplus-add-key .form-grid{flex:1;gap:10px}.maxplus-add-key label{margin:0}.maxplus-add-key .btn{height:39px;white-space:nowrap}.selected-key-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:2px 2px 0}.selected-key-head h3{margin:3px 0 1px;color:#542c31;font-size:19px}.selected-key-head small{color:#94787e;font-family:monospace;font-size:9px}.selected-key-actions,.rename-key-form{display:flex;align-items:center;gap:6px}.rename-key-form input{width:180px;height:34px;padding:6px 9px;font-size:10px}.selected-key-actions .icon-btn{display:grid;place-items:center;width:34px;height:34px;padding:0}.selected-key-actions form{margin:0}
html:not(.light) body:not(.auth-body) .account-key-card{background:#071d39;border-color:#174a7f}html:not(.light) body:not(.auth-body) .account-key-card:hover,html:not(.light) body:not(.auth-body) .account-key-card.active{background:#0b2d55;border-color:#2b6ea7}html:not(.light) body:not(.auth-body) .account-key-card strong,html:not(.light) body:not(.auth-body) .selected-key-head h3{color:#f3f9ff}html:not(.light) body:not(.auth-body) .account-key-card small,html:not(.light) body:not(.auth-body) .selected-key-head small{color:#91b0cf}html:not(.light) body:not(.auth-body) .maxplus-add-key{border-color:#174a7f}
@media(max-width:1000px){.account-key-list{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.account-key-list{grid-template-columns:repeat(2,minmax(0,1fr))}.maxplus-add-key form{align-items:stretch;flex-direction:column}.maxplus-add-key .btn{width:100%}.selected-key-head{align-items:flex-start;flex-direction:column}.selected-key-actions{width:100%}.rename-key-form{flex:1}.rename-key-form input{width:100%;flex:1}}@media(max-width:430px){.account-key-list{grid-template-columns:1fr}}

/* Keep the selected-key state aligned with the white-red administrative UI. */
.maxplus-api-state,
html:not(.light) body:not(.auth-body) .maxplus-api-state{
  min-width:235px;
  padding:12px 14px;
  border:1px solid #e8c8cb;
  border-left:4px solid #c62838;
  border-radius:10px;
  background:#fff;
  box-shadow:0 7px 16px rgba(75,26,31,.07);
}
.maxplus-api-state i,
html:not(.light) body:not(.auth-body) .maxplus-api-state i{
  width:11px;
  height:11px;
  background:#c58b22;
  box-shadow:0 0 0 4px #fff5df;
}
.maxplus-api-state.is-ready i,
html:not(.light) body:not(.auth-body) .maxplus-api-state.is-ready i{
  background:#198754;
  box-shadow:0 0 0 4px #e6f5ec;
}
.maxplus-api-state strong,
html:not(.light) body:not(.auth-body) .maxplus-api-state strong{
  color:#5a292f;
  font-size:12px;
  font-weight:600;
}
.maxplus-api-state small,
html:not(.light) body:not(.auth-body) .maxplus-api-state small{
  margin-top:3px;
  color:#7d6468;
  font-size:10px;
  line-height:1.4;
}

/* Shared confirmation modal. */
.modal-card.modal-danger{
  position:relative;
  width:min(440px,calc(100% - 28px));
  padding:28px;
  border-color:#edc4c8;
  border-radius:14px;
  box-shadow:0 28px 74px rgba(75,26,31,.28),0 0 0 1px rgba(255,255,255,.8) inset;
}
.modal-card .modal-symbol{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-bottom:14px;
  border:1px solid #efb7bc;
  border-radius:12px;
  background:#fff0f1;
  color:#bd2332;
  font-size:25px;
  font-weight:700;
  line-height:1;
}
.modal-card .modal-copy h3{margin:0 0 7px;color:#422126;font-size:19px}
.modal-card .modal-copy p{font-size:13px;color:#755d61;line-height:1.7}
.modal-card .modal-actions{margin-top:23px}
.modal-card .modal-ok{min-width:118px}
@media(max-width:600px){.modal-card.modal-danger{padding:22px}.modal-card .modal-actions{gap:9px}.modal-card .modal-ok{min-width:0}}

/* Standalone installer: keep the initial setup readable without relying on app theme state. */
.install-body{
  min-height:100vh;
  color:#472d31;
  background:#f7f4f4;
  background-image:linear-gradient(135deg,rgba(198,40,56,.06) 0,transparent 38%),linear-gradient(225deg,rgba(92,36,44,.04) 0,transparent 44%);
}
.install-shell{max-width:980px;padding:54px 24px 64px}
.install-body .brand-lockup{gap:13px;margin:0 0 24px}
.install-body .brand-mark{
  width:48px;height:48px;border-radius:12px;
  background:linear-gradient(145deg,#e64d59,#be2133);
  box-shadow:0 10px 20px rgba(185,31,48,.2);
}
.install-body .brand-lockup h1{color:#4a272d;font-size:25px;font-weight:700}
.install-body .brand-lockup p{margin-top:3px;color:#86676c;font-size:13px}
.install-body .install-card{
  padding:30px;
  border:1px solid #ead7d9;
  border-radius:14px;
  background:#fff;
  box-shadow:0 18px 42px rgba(79,30,37,.1);
}
.install-body .install-card h2{margin:0 0 6px;color:#4b252b;font-size:23px;font-weight:700}
.install-body .install-card>.muted{margin:0;color:#7d6267;font-size:13px;line-height:1.7}
.install-body .install-card h3{margin:27px 0 12px;padding-bottom:9px;border-bottom:1px solid #f0e1e3;color:#722b35;font-size:14px;font-weight:700}
.install-body label{margin:0;color:#68484e;font-size:12px;font-weight:500}
.install-body input{
  min-height:44px;margin-top:7px;padding:10px 12px;
  color:#43262b;background:#fff;border:1px solid #ddc8cb;border-radius:8px;
  box-shadow:none;
}
.install-body input::placeholder{color:#ab9195;opacity:1}
.install-body input:focus{border-color:#c62838;box-shadow:0 0 0 3px rgba(198,40,56,.11)}
.install-body .form-grid{gap:16px 14px}
.install-body .check-grid{gap:9px;margin:18px 0 0}
.install-body .check{
  min-height:42px;display:flex;align-items:center;padding:9px 10px;
  color:#71565b;background:#fffafa;border-color:#ecd9db;border-radius:8px;font-size:10px;
}
.install-body .check.ok{background:#f5fbf7;border-color:#cde9d7;color:#3f7457}
.install-body .check.bad{background:#fff3f3;border-color:#f0c8cc;color:#a22a38}
.install-body .check span{font-size:14px}
.install-body .btn-primary{
  min-height:46px;margin-top:26px;padding:11px 20px;
  border-color:#b91f30;background:linear-gradient(180deg,#df4d59,#c62838);
  color:#fff;font-size:14px;font-weight:600;box-shadow:0 10px 20px rgba(198,40,56,.2);
}
.install-body .btn-primary:hover{background:#ae1f2e;color:#fff;box-shadow:0 12px 23px rgba(198,40,56,.26)}
.install-body .alert.danger{margin:18px 0 0;color:#9f2634;background:#fff2f3;border-color:#efc4c8;font-size:12px}
.install-body .success-card{padding:54px 30px}
.install-body .success-card p{color:#74585d}
@media(max-width:620px){
  .install-shell{padding:30px 15px 42px}
  .install-body .install-card{padding:22px 18px}
  .install-body .check-grid{grid-template-columns:1fr 1fr}
  .install-body .form-grid{grid-template-columns:1fr}
  .install-body .span2{grid-column:auto}
}
