@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--bg:#09111f;--panel:#111c2d;--panel2:#162338;--border:#27344a;--text:#f6f8fc;--muted:#9caec6;--purple:#a48aff;--blue:#7eaaff;--mint:#7ae9c0;--yellow:#ffd580;--pink:#ffa4bb;--shadow:0 20px 70px #00000030;font-family:'DM Sans',system-ui,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-size:15px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{text-decoration:none;color:inherit}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-family:Outfit,system-ui,sans-serif}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--mint);outline-offset:3px}::selection{background:#957aff70}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-thumb{border-radius:30px;background:#2c3d55}
.app-shell{display:flex;min-height:100vh;max-width:2000px;margin:auto}.sidebar{width:255px;flex:none;background:#0d1727;border-right:1px solid #223148;padding:31px 18px 18px;position:sticky;top:0;display:flex;flex-direction:column;height:100vh}.brand{display:flex;align-items:center;gap:10px;margin:0 12px 50px}.brand-mark{width:36px;height:36px;background:linear-gradient(140deg,#c1a9ff,#7cb6ff);color:#10182c;border-radius:11px;display:grid;place-items:center;font-weight:900;font-family:Outfit;font-size:24px;box-shadow:0 8px 25px #9278ed33;letter-spacing:-4px;padding-right:4px}.brand-dot,.brand-period{color:#78e6cb}.brand-word{font:800 24px Outfit;letter-spacing:-1px}.workspace-label{color:#72859f;letter-spacing:1.6px;font-size:10px;font-weight:800;margin:0 17px 14px}.workspace-second{margin-top:35px}.side-nav{display:flex;flex-direction:column;gap:7px}.nav-item{border:1px solid transparent;background:transparent;color:#a6b5ca;min-height:46px;text-align:left;padding:0 14px;border-radius:11px;display:flex;align-items:center;gap:12px;font-size:13px;font-weight:700;transition:.2s}.nav-item:hover{color:white;background:#1a2940}.nav-item.active{background:#a48aff19;color:#c3b5ff;border-color:#a48aff36}.nav-item .icon{width:22px;text-align:center;font-size:23px;font-family:Arial;line-height:1}.nav-badge{margin-left:auto;border:1px solid #626786;color:#a8a8e8;padding:2px 5px;font-size:9px;border-radius:5px}.sidebar-bottom{margin-top:auto}.online-status{font-size:12px;color:#9aaec3;border:1px solid #26364c;border-radius:9px;padding:12px;margin-bottom:16px}.online-dot{display:inline-block;width:7px;height:7px;background:#7ae9c0;border-radius:50%;box-shadow:0 0 10px #7ae9c06b;margin-right:7px}.mini-user{display:flex;align-items:center;gap:10px;border-top:1px solid #223148;padding:18px 4px 0}.avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:12px;background:linear-gradient(135deg,#aa94ed,#739fe0);color:#142036;font:800 19px Outfit}.mini-user-copy{display:flex;flex-direction:column;gap:3px}.mini-user-copy strong{font-size:12px}.mini-user-copy small{font-size:10px;color:#93a6c1}.mini-arrow{margin-left:auto;color:#6c7c91;font-size:18px}
.main-area{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:83px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 clamp(24px,4vw,62px);border-bottom:1px solid #1e2b3f}.search-wrap{width:min(100%,440px);height:43px;background:#111e31;border:1px solid #2a3b53;border-radius:11px;display:flex;align-items:center;gap:11px;padding:0 13px}.search-icon{font:700 23px Arial;color:#8ea1bb;transform:rotate(-40deg)}.search-wrap input{background:transparent;color:white;border:0;min-width:0;flex:1;font-size:12px;outline:none}.search-wrap input::placeholder{color:#7286a1}.search-shortcut{border:1px solid #33445c;border-radius:4px;padding:1px 6px;color:#72849f;font-size:11px}.topbar-actions{display:flex;align-items:center;gap:22px}.topbar-status{font-size:11px;font-weight:700;color:#9fb6cb;white-space:nowrap}.avatar-button{border:0;flex:none}.topbar-mobile-brand{display:none}.content{width:100%;max-width:1420px;margin:0 auto;padding:43px clamp(24px,4vw,62px) 75px;flex:1}.footer{display:flex;justify-content:space-between;gap:16px;padding:22px clamp(24px,4vw,62px);color:#72849c;font-size:11px;border-top:1px solid #1e2b3f}.mobile-nav{display:none}
.eyebrow{font-weight:800;letter-spacing:2px;color:#95dbcf;text-transform:uppercase;font-size:11px}.page-title{font-size:clamp(31px,3vw,42px);letter-spacing:-1px;line-height:1.16;margin:9px 0}.page-description{color:#9eb0c6;line-height:1.65;font-size:14px;max-width:680px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:31px}.section-title{font-size:21px;letter-spacing:-.45px}.section-subtitle{color:#96a9be;font-size:12px;margin-top:7px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:36px 0 21px}.text-link{border:0;background:transparent;color:#b5a3ff;font-weight:700;font-size:12px}.text-link:hover{text-decoration:underline}.btn{border:1px solid transparent;border-radius:11px;padding:12px 19px;font-size:13px;font-weight:800;display:inline-flex;justify-content:center;align-items:center;gap:9px;transition:transform .2s,background .2s,border-color .2s;white-space:nowrap}.btn:hover:not(:disabled){transform:translateY(-2px)}.btn-primary{background:#b7a4ff;color:#10152a;box-shadow:0 8px 20px #9f89eb23}.btn-primary:hover{background:#c8b8ff}.btn-secondary{background:#1d2b41;color:#dbe5f2;border-color:#30415b}.btn-secondary:hover{background:#293952}.btn-quiet{background:transparent;border-color:#36475f;color:#c7d4e5}.btn-ghost{border:0;color:#b5a3ff;background:transparent;padding:8px}.btn-danger{background:#5c2735;color:#ffd8dd;border-color:#884456}.btn-sm{padding:9px 13px;font-size:12px}.btn-lg{padding:15px 22px;font-size:14px}.btn-icon{height:38px;min-width:38px;padding:0;border-radius:10px}.pill{display:inline-block;border:1px solid #374861;color:#9eafc8;background:#172338;border-radius:99px;font-size:10px;font-weight:800;padding:6px 10px;white-space:nowrap}.pill.mint{border-color:#77efbf32;background:#77efbf12;color:#7ae9c0}.pill.purple{border-color:#ae98ff48;background:#ae98ff14;color:#b9a7ff}.pill.yellow{border-color:#f7d28644;background:#f7d28613;color:#ffd580}.pill.pink{border-color:#f7adc044;background:#f7adc013;color:#ffb5ca}
.hero{min-height:300px;border:1px solid #3b3b69;border-radius:23px;background:radial-gradient(ellipse at 85% 52%,#4c408f99,transparent 37%),radial-gradient(ellipse at 25% 104%,#24487855,transparent 48%),linear-gradient(108deg,#1b2446,#232a58 68%,#38285c);position:relative;overflow:hidden;padding:45px 43px;display:flex;align-items:center}.hero:after{content:'';position:absolute;right:3%;top:-45%;width:400px;height:400px;border:1px solid #d3caff25;border-radius:50%;box-shadow:0 0 0 35px #d3caff08,0 0 0 75px #d3caff09,0 0 0 120px #d3caff07;pointer-events:none}.hero-copy{z-index:1;max-width:540px}.hero h1{font-size:clamp(33px,3.5vw,53px);line-height:1.1;letter-spacing:-1.3px;margin:18px 0 14px}.hero h1 em{font-style:normal;color:#c9baff}.hero p{color:#b5c2dc;font-size:14px;line-height:1.65;max-width:440px}.hero-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:25px}.hero-visual{position:absolute;right:7%;top:26%;width:210px;height:210px;border-radius:34px;background:linear-gradient(140deg,#8a75ff,#5cc8bb);transform:rotate(17deg);box-shadow:0 25px 50px #02071b77;border:8px solid #ffffff22;display:grid;place-items:center;color:#142144;font:800 130px Outfit;z-index:1;text-shadow:2px 4px #ffffff20}.hero-visual span{display:inline-block;transform:rotate(-17deg)}
.stats-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:20px 0 0}.stat-card{background:var(--panel);border:1px solid var(--border);padding:20px 23px;border-radius:15px;display:flex;align-items:center;gap:13px}.stat-icon{height:43px;width:43px;display:grid;place-items:center;flex:none;border-radius:12px;font:800 23px Outfit;background:#a58bff18;color:#b6a3ff}.stat-icon.mint{background:#78dfbb18;color:#82eac7}.stat-icon.yellow{background:#ffcf7719;color:#ffd580}.stat-copy strong{display:block;font:700 24px Outfit}.stat-copy small{color:#95a7be;font-size:11px}
.category-row,.filter-row{display:flex;gap:8px;flex-wrap:wrap}.filter-chip{border:1px solid #33425a;color:#aebed1;background:#152035;padding:10px 16px;border-radius:10px;font-size:12px;font-weight:700;transition:.15s}.filter-chip:hover{background:#223149}.filter-chip.selected{background:#b7a4ff;color:#142034;border-color:#b7a4ff}.quiz-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.quiz-card{min-width:0;background:#111d2f;border:1px solid #293950;border-radius:16px;overflow:hidden;transition:transform .2s,border-color .2s,box-shadow .2s;display:flex;flex-direction:column}.quiz-card:hover{transform:translateY(-4px);border-color:#685c9c;box-shadow:var(--shadow)}.quiz-art{height:138px;position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden}.quiz-art:before{content:'';position:absolute;width:170px;height:170px;border:1px solid #ffffff30;border-radius:50%;right:-20px;top:-85px;box-shadow:0 0 0 32px #ffffff09,0 0 0 70px #ffffff07}.quiz-art:after{content:'';position:absolute;width:140px;height:140px;border:1px solid #ffffff19;border-radius:35px;transform:rotate(32deg);bottom:-100px;left:-35px}.art-icon{font:800 66px Outfit;color:#ffffffd9;text-shadow:0 8px 18px #00000028;z-index:1}.art-geo{background:linear-gradient(120deg,#287878,#49bbb0)}.art-tech{background:linear-gradient(125deg,#385cae,#829dff)}.art-history{background:linear-gradient(120deg,#a86b45,#e4aa71)}.art-science{background:linear-gradient(125deg,#6845a0,#b895e6)}.art-general{background:linear-gradient(125deg,#b46079,#e7a4b4)}.art-language{background:linear-gradient(125deg,#486a9b,#8aadd3)}.art-custom{background:linear-gradient(125deg,#356f7d,#8c8ad6)}.quiz-art .art-category{position:absolute;left:13px;top:13px;background:#091327b2;border:1px solid #ffffff2b;color:#f5f5fb;font-size:10px;font-weight:700;border-radius:6px;padding:6px 9px;z-index:1}.quiz-body{padding:19px 19px 16px;flex:1;display:flex;flex-direction:column}.quiz-topline{display:flex;justify-content:space-between;align-items:center;gap:8px}.quiz-title{font-size:18px;line-height:1.2;margin:13px 0 7px}.quiz-description{font-size:12px;color:#98aac0;line-height:1.6;flex:1;min-height:52px}.quiz-meta{display:flex;align-items:center;gap:13px;color:#9baec5;font-size:11px;border-top:1px solid #2a3950;margin-top:14px;padding-top:14px}.quiz-meta span{white-space:nowrap}.quiz-meta .btn{margin-left:auto}.favorite-button{background:#17243a;border:1px solid #34445d;color:#a9b8cb;width:31px;height:31px;border-radius:9px;font-size:20px;line-height:1}.favorite-button.favorited{color:#ffb3ca;background:#712d4633}.featured-label{display:inline-flex;align-items:center;gap:8px;color:#d1c5ff;background:#a48aff1b;border:1px solid #a48aff45;padding:7px 11px;font-size:11px;font-weight:800;border-radius:8px}
.empty{border:1px dashed #445069;border-radius:16px;text-align:center;padding:55px 20px;color:#aebfd1}.empty-icon{display:block;font-size:40px;margin-bottom:11px}.empty h3{font-size:20px;color:white;margin-bottom:8px}.empty p{max-width:480px;margin:auto auto 21px;font-size:13px;line-height:1.6}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;margin:26px 0}.select{appearance:auto;border:1px solid #354760;background:#17253a;color:#dce5f2;border-radius:9px;padding:11px;font-size:12px;min-height:40px}.crumb{display:flex;align-items:center;gap:8px;color:#91a3b8;font-size:12px;margin-bottom:26px}.crumb button{border:0;background:transparent;color:#b6a5ff;padding:0;font-weight:800}
.play-layout{max-width:810px;margin:auto}.play-top{display:flex;justify-content:space-between;align-items:center;gap:15px}.play-top h1{font-size:27px;margin:10px 0 6px}.progress-track{height:9px;border-radius:99px;background:#26354c;overflow:hidden;margin:23px 0 28px}.progress-fill{height:100%;background:linear-gradient(90deg,#9f88ff,#75e4c6);transition:width .3s;border-radius:99px}.question-panel{background:#142138;border:1px solid #364661;border-radius:19px;padding:30px;box-shadow:var(--shadow)}.question-info{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#a8b9cf;font-size:12px}.timer-badge{font:800 19px Outfit;color:#ffd580;background:#ffdd8014;border:1px solid #ffdd8030;padding:7px 12px;border-radius:9px;white-space:nowrap}.timer-badge.urgent{color:#ff9cb6;background:#ff9cb61c;border-color:#ff9cb64c}.question-panel h2{font-size:clamp(23px,3.7vw,32px);line-height:1.35;margin:28px 0 26px}.options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.option-btn{border:1px solid #394c65;background:#1c2c43;color:#eff5ff;display:flex;align-items:center;text-align:left;gap:13px;min-height:86px;padding:14px 17px;border-radius:13px;font-size:13px;font-weight:700;transition:.15s}.option-btn:hover:not(:disabled){background:#293d58;border-color:#9c86ef;transform:translateY(-1px)}.option-tag{width:31px;height:31px;flex:none;border-radius:8px;background:#ffffff12;display:grid;place-items:center;color:#b8c9e0;font-weight:900}.option-btn.correct{background:#236d5a52;border-color:#70e9b5;color:#adffe0}.option-btn.wrong{background:#7d32454d;border-color:#f49aad;color:#ffd2dc}.option-btn.muted{opacity:.55}.answer-feedback{margin-top:23px;background:#203249;border-radius:11px;padding:18px;color:#d5e3f3;font-size:13px;line-height:1.6;border:1px solid #3c5271}.answer-feedback strong{display:block;font-size:14px;color:#fff;margin-bottom:4px}.play-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:25px;gap:12px}.play-points{font:700 16px Outfit;color:#dbd1ff}.kbd-hint{color:#7c90ab;font-size:11px;margin-top:20px;text-align:center}
.results-card{background:radial-gradient(ellipse at 50% -30%,#8b70e65b,transparent 60%),#152238;border:1px solid #3b4b66;border-radius:21px;padding:42px 26px;text-align:center;max-width:810px;margin:0 auto}.results-trophy{width:80px;height:80px;border-radius:24px;margin:0 auto 20px;background:#beaaff21;display:grid;place-items:center;font:800 41px Outfit;color:#f8d98e}.results-card h1{font-size:clamp(31px,4vw,45px);margin:10px 0}.results-card>p{color:#aebfd4;margin-bottom:24px}.result-metrics{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-bottom:28px}.result-metric{min-width:150px;padding:18px;border:1px solid #3c4e68;border-radius:11px;background:#0c172951}.result-metric strong{display:block;font:800 30px Outfit}.result-metric span{color:#9cafc6;font-size:11px}.results-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:11px}.review{max-width:810px;margin:36px auto 0}.review-item{border:1px solid #2e3f56;border-radius:12px;background:#111c2d;padding:18px 20px;margin:10px 0}.review-item strong{display:block;font-size:14px;margin-bottom:7px}.review-item p{font-size:12px;color:#aabbd0;line-height:1.6}.review-mark{font-size:12px;font-weight:800;margin-right:7px}.review-mark.yes{color:#77e7bd}.review-mark.no{color:#ff9fb2}
.panel{background:#111d2f;border:1px solid #2d3d53;border-radius:16px;padding:25px}.split-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}.data-list{display:flex;flex-direction:column;gap:10px}.data-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 0;border-bottom:1px solid #27374f}.data-row:last-child{border:0}.data-row strong{font-size:13px}.data-row small{display:block;margin-top:5px;font-size:11px;color:#8d9fb6}.data-row .score{color:#b8a7ff;font:700 18px Outfit}.profile-cover{border-radius:18px;border:1px solid #475073;background:linear-gradient(135deg,#343566,#215867);padding:29px;display:flex;gap:20px;align-items:center}.profile-cover .avatar{width:67px;height:67px;font-size:32px}.profile-cover h1{font-size:26px}.profile-cover p{color:#bdcce1;margin-top:4px;font-size:12px}.note{padding:14px 17px;background:#7f8efd14;border:1px solid #7f8efd3f;color:#b9c5ef;font-size:12px;line-height:1.65;border-radius:10px;margin-bottom:20px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-field{display:flex;flex-direction:column;gap:7px;min-width:0}.form-field.wide{grid-column:1 / -1}.form-field label{color:#c9d5e5;font-size:12px;font-weight:800}.field{width:100%;background:#0d192a;border:1px solid #35465f;border-radius:9px;color:#f3f7fd;padding:12px 13px;font-size:13px;min-height:44px}.field::placeholder{color:#778aa3}textarea.field{min-height:85px;resize:vertical}.form-hint{color:#8499b2;font-size:11px;line-height:1.5}.builder-question{border:1px solid #36465c;border-radius:13px;padding:19px;margin-top:14px;background:#17243a}.builder-question-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.builder-question-head strong{font-size:14px}.builder-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:13px}.builder-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:20px}.admin-list{margin-top:24px}.admin-list h3{font-size:19px;margin-bottom:6px}.admin-quiz-row{border-bottom:1px solid #2b3b52;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 0}.admin-quiz-row:last-child{border:0}.admin-quiz-row h4{font-size:15px}.admin-quiz-row p{color:#8fa2ba;font-size:11px;margin-top:5px}.admin-actions{display:flex;gap:7px;flex-wrap:wrap}.toast{position:fixed;z-index:100;bottom:26px;right:26px;max-width:400px;padding:15px 19px;border-radius:11px;background:#284a41;border:1px solid #79debd;color:#e6fff5;font-size:13px;font-weight:700;box-shadow:var(--shadow);opacity:0;pointer-events:none;transform:translateY(12px);transition:.2s}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1250px){.quiz-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-visual{right:5%;width:160px;height:160px;font-size:100px;opacity:.8}.hero-copy{max-width:470px}}
@media(max-width:900px){.sidebar{width:78px;padding:25px 13px}.sidebar .brand{margin:0 0 50px 5px}.sidebar .brand-word,.sidebar .workspace-label,.sidebar .nav-item span:not(.icon),.sidebar .sidebar-bottom{display:none}.side-nav .nav-item{justify-content:center;padding:0}.nav-item .icon{font-size:24px}.topbar{padding:0 25px}.content{padding:30px 25px 60px}.hero-visual{opacity:.35}.hero-copy{max-width:100%}.stats-row{gap:10px}.stat-card{padding:15px}}
@media(max-width:650px){.sidebar{display:none}.topbar{height:68px;padding:0 17px;gap:10px}.topbar-mobile-brand{display:flex;align-items:center;gap:7px}.topbar-mobile-brand .brand-mark{width:28px;height:28px;font-size:19px;border-radius:8px}.topbar-mobile-brand .brand-word{font-size:18px}.search-wrap{height:37px;flex:1}.search-wrap input{font-size:11px}.search-shortcut,.topbar-status{display:none}.avatar-button{width:31px;height:31px;font-size:15px;border-radius:9px}.topbar-actions{gap:7px}.content{padding:23px 16px 95px}.hero{padding:31px 24px;min-height:320px}.hero h1{font-size:35px}.hero-visual{width:125px;height:125px;right:-30px;top:47%;font-size:90px;opacity:.25}.quiz-grid{grid-template-columns:1fr}.quiz-art{height:134px}.stats-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.stat-card{padding:12px 8px;flex-direction:column;text-align:center;gap:6px}.stat-icon{width:33px;height:33px;font-size:17px}.stat-copy strong{font-size:19px}.stat-copy small{font-size:10px}.section-head{margin:29px 0 15px}.section-title{font-size:20px}.page-head{align-items:start;flex-direction:column}.page-title{font-size:31px}.question-panel{padding:22px 17px}.question-panel h2{font-size:24px}.options-grid{grid-template-columns:1fr}.option-btn{min-height:66px}.form-grid,.builder-answers,.split-grid{grid-template-columns:1fr}.form-field.wide{grid-column:auto}.results-card{padding:30px 15px}.result-metric{min-width:90px;flex:1;padding:13px 7px}.result-metric strong{font-size:24px}.footer{display:none}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#101b2deF;border-top:1px solid #2c3a50;z-index:10;justify-content:space-around;backdrop-filter:blur(12px);padding:8px 0 max(9px,env(safe-area-inset-bottom))}.mobile-nav button{background:none;border:0;color:#8fa1bb;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;font-weight:700;padding:1px 6px}.mobile-nav button span{font-size:24px}.mobile-nav button.active{color:#c1aeff}.toast{bottom:92px;right:15px;left:15px}.admin-quiz-row{align-items:start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Phase 2 additions: accounts, dashboard, member roles and live rooms. */
[hidden]{display:none!important}
.auth-wrap{max-width:570px;margin:35px auto 0}
.auth-wrap>.page-description{margin:14px 0 26px}
.auth-wrap>.panel{padding:35px}
.auth-form{display:flex;flex-direction:column;gap:17px}
.auth-form .btn{align-self:flex-start}
.auth-switch{font-size:13px;color:#adc0d5;margin-top:27px}
.auth-switch .text-link{margin-left:4px}
.dashboard-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:21px}
.member-header,.member-row{display:grid;grid-template-columns:1.3fr 1fr .7fr;gap:15px;align-items:center}
.member-header{font-size:11px;text-transform:uppercase;color:#9bb0ca;letter-spacing:.06em;border-bottom:1px solid #394960;padding:12px 3px 17px}
.member-row{padding:14px 3px;border-bottom:1px solid #2a3b54}
.member-row:last-child{border-bottom:0}
.member-person strong,.member-person small{display:block;overflow-wrap:anywhere}
.member-person strong{font-size:13px}
.member-person small{color:#94a5bb;font-size:11px;margin-top:5px}
.member-row .field{min-height:38px;padding:7px 10px;font-size:12px}
.live-panel-icon{font-size:31px;background:#9987f622;color:#c6b8ff;width:58px;height:58px;border-radius:16px;display:grid;place-items:center;margin-bottom:17px}
.live-pin{background:#9987f626;color:#dacfff;padding:10px 17px;border:1px solid #9a88fe70;border-radius:13px;white-space:nowrap;font-weight:800;font-size:11px;letter-spacing:.12em}
.live-pin strong{display:block;color:white;font-size:31px;letter-spacing:.12em;line-height:1.4}
.live-actions{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}
.player-chips{display:flex;flex-wrap:wrap;gap:9px;margin:23px 0}
.player-chip{background:#202f48;border:1px solid #43556c;color:#e5edf7;border-radius:99px;padding:9px 14px;font-size:12px;font-weight:700}
#logoutAction{white-space:nowrap}
@media(max-width:720px){.member-row,.member-header{grid-template-columns:1fr;gap:10px}.member-header{display:none}.member-row{margin:6px 0;padding:19px 2px}.member-table{padding:18px}.auth-wrap>.panel{padding:20px}.live-pin strong{font-size:24px}}

/* Phase 3: persisted history, import, and AI draft studio. */
.phase3-studio-grid{grid-template-columns:1.1fr 1fr;align-items:start}
.phase3-source{min-height:155px!important}
.phase3-json{min-height:205px!important;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
.phase3-dashboard-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 10px}
.phase3-draft-question{border-top:1px solid #33445e;padding:18px 0}
.phase3-draft-question strong{font-size:14px;line-height:1.5;display:block}
.phase3-draft-question .section-subtitle{margin-top:8px;line-height:1.65}
.phase3-draft-question p:last-child{margin-top:7px;font-size:12px;color:#c2d1e5}
.phase3-draft-question b{color:#9eeacb}
#phase3DraftPanel{scroll-margin-top:105px}
@media(max-width:850px){.phase3-studio-grid{grid-template-columns:1fr}}
@media(max-width:650px){.mobile-nav{overflow-x:auto;justify-content:space-around;gap:5px}.mobile-nav button{flex:0 0 auto}}
