:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#11151e;--card:#1c2430;--border:#344050;--text:#f3eee5;--muted:#a7b1be;--gold:#e5bb71}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-family:Arial,Helvetica,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.shell{max-width:1150px;margin:auto;padding:28px}.header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding-bottom:25px;display:flex}.logo{letter-spacing:.02em;font-size:22px;font-weight:800}.logo span{color:var(--gold)}.tag{color:var(--muted);font-size:13px}.hero{padding:40px 0 22px}.hero h1{margin:0 0 8px;font-size:36px}.hero p{color:var(--muted);max-width:630px}.grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:16px;display:grid}.card,.form{border:1px solid var(--border);background:var(--card);border-radius:18px;padding:23px}.avatar{background:#273546;border:1px solid #556578;border-radius:16px;place-items:center;width:65px;height:65px;font-size:28px;display:grid}.card h3{margin:15px 0 7px}.card p{color:var(--muted);min-height:45px;font-size:14px;line-height:1.5}.pill{color:#d3f3d9;background:#304137;border-radius:20px;padding:5px 10px;font-size:12px;display:inline-block}.pill.draft{color:#f8dba9;background:#44392d}.actions{align-items:center;gap:12px;margin:25px 0;display:flex}.btn{background:var(--gold);color:#211a10;border:0;border-radius:10px;padding:12px 17px;font-weight:700}.btn.secondary{color:var(--text);background:#2b3443}.form{gap:12px;max-width:620px;margin-bottom:28px;display:grid}.field{color:var(--muted);gap:6px;font-size:14px;display:grid}.field input,.field select,.field textarea{color:#fff;background:#121923;border:1px solid #4b5666;border-radius:9px;padding:12px}.error{color:#ffb0a8}.detail{margin-top:25px}.foot{border-top:1px solid var(--border);color:var(--muted);margin-top:32px;padding-top:16px;font-size:13px}@media (max-width:650px){.shell{padding:18px}.hero h1{font-size:29px}.header{gap:12px}}.tabbar{flex-wrap:wrap;gap:8px;margin:0 0 24px;display:flex}.tab{border:1px solid var(--border);color:var(--text);background:#202938;border-radius:10px;padding:11px 17px}.tab.active{background:var(--gold);border-color:var(--gold);color:#221a0f;font-weight:700}.form.wide{max-width:830px}.form textarea{resize:vertical;min-height:85px}.notice{color:#d4f5df;background:#19362b;border-left:3px solid #82c99b;padding:10px 16px}.reference-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:15px;margin-top:20px;display:grid}.reference-grid .card{flex-direction:column;align-items:flex-start;gap:12px;display:flex}.reference-grid h3{margin:0}.reference-image{object-fit:contain;background:#101722;border-radius:12px;width:100%;height:210px}.relation{flex-wrap:wrap;align-items:center;gap:12px;max-width:830px;margin-bottom:12px;display:flex}.relation h3{min-width:120px;margin:0}.relation p{flex:1;min-width:160px;min-height:auto;margin:0}.generator-fields{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;min-width:0;max-width:100%;display:grid}.generator-fields>*{min-width:0;max-width:100%;overflow:hidden}.generator-fields select,.generator-fields input,.generator-fields textarea{box-sizing:border-box;width:100%}.visual-ref-choices{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;display:grid}.ref-choice{border:1px solid var(--border);cursor:pointer;border-radius:12px;flex-direction:column;gap:7px;padding:10px;display:flex}.ref-choice.chosen{border:2px solid var(--gold);background:#35301e}.ref-choice img{object-fit:contain;background:#111923;border-radius:7px;width:100%;height:122px}.ref-choice small{color:var(--muted)}.ref-choice input{width:19px;height:19px;accent-color:var(--gold)}.prompt-preview{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--border);background:#111925;border-radius:10px;padding:14px;font-family:inherit;font-size:13px;line-height:1.55}.generation-row{border-bottom:1px solid var(--border);color:var(--muted);flex-wrap:wrap;gap:16px;padding:12px 0;display:flex}.comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0;display:grid}.comparison-grid>div{flex-direction:column;gap:12px;display:flex}.comparison-grid img{object-fit:contain;background:#101722;border-radius:12px;width:100%;max-height:410px}@media (max-width:600px){.comparison-grid{grid-template-columns:1fr}}.cast-selector{flex-wrap:wrap;gap:10px;margin:14px 0;display:flex}.cast-selector label{border:1px solid #3a455a;border-radius:12px;align-items:center;gap:8px;padding:10px 12px;display:flex}.scene-list{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin:20px 0;display:grid}.scene-list .card{flex-direction:column;align-items:start;gap:10px;display:flex}.scene-list .card h3,.scene-list .card p{margin:0}.production-studio>.form{margin-bottom:22px}.settings-page{gap:22px;max-width:880px;display:grid}.settings-credentials{gap:18px;display:grid}.settings-credentials>.card{max-width:830px}.settings-form{gap:14px;margin-top:16px;display:grid}.settings-form .actions{flex-wrap:wrap;margin:0}.settings-credentials code{overflow-wrap:anywhere}.canon-compare-group{border:1px solid var(--border);border-radius:12px;margin:16px 0;padding:14px}.canon-compare-group h4{margin:0 0 8px}.canon-fact{border-bottom:1px solid var(--border);align-items:flex-start;gap:12px;padding:10px 0;font-size:13px;display:flex}.canon-fact:last-child{border-bottom:0}.canon-fact input{width:18px;height:18px;accent-color:var(--gold);flex-shrink:0;margin-top:2px}.canon-fact strong{overflow-wrap:anywhere}.canon-fact-value{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);padding-top:5px;display:block}.auto-studio{gap:18px;max-width:890px;display:grid}.auto-studio>.form{margin-bottom:0}.auto-story-shots{grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:12px;margin:12px 0;display:grid}.auto-story-shots .card{padding:14px}.auto-story-shots .card p{min-height:0}.header .actions{flex-wrap:wrap;justify-content:flex-end;margin:0}@media (max-width:700px){.header{flex-direction:column;align-items:flex-start}.header .actions{justify-content:flex-start}}.world-memory{gap:16px;display:grid}.world-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.world-stat{flex-direction:column;align-items:center;gap:6px;padding:18px;display:flex}.world-stat h3{margin:0;font-size:30px}.world-stat span{color:var(--muted);text-align:center;font-size:13px}.world-stat.attention{border-color:var(--gold)}.world-filters{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));max-width:none;display:grid}.world-fact{max-width:830px;margin-bottom:12px}.world-fact-head{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.world-fact-head h3{margin:0}.world-fact .tag{margin:8px 0 0}.pill.rejected{color:#f3c9c4;background:#4a2f2f}.world-detail{border-top:1px solid var(--border);gap:12px;margin-top:14px;padding-top:12px;display:grid}.world-meta{grid-template-columns:max-content 1fr;gap:6px 16px;margin:0;font-size:14px;display:grid}.world-meta dt{color:var(--muted)}.world-meta dd{overflow-wrap:anywhere;margin:0}.world-dialog{border:1px solid var(--gold);background:#26221a;border-radius:12px;gap:10px;padding:14px;display:grid}.world-dialog h4{margin:0}.world-review{color:var(--muted);align-items:flex-start;gap:9px;font-size:14px;display:flex}.world-review input{width:18px;height:18px;accent-color:var(--gold);flex-shrink:0;margin-top:2px}.world-source,.world-history{border:1px solid var(--border);border-radius:12px;gap:8px;padding:14px;display:grid}.world-source h4,.world-history h4{margin:0}.world-pager{flex-wrap:wrap;justify-content:center;gap:14px}.world-two-fields{grid-template-columns:1fr 1fr;gap:12px;display:grid}.world-ownership{border:1px solid var(--border);border-radius:12px;gap:8px;padding:14px;display:grid}.world-ownership h4{margin:0}@media (max-width:650px){.world-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.world-two-fields,.world-meta{grid-template-columns:1fr}.world-meta dt{margin-top:6px}}.world-memory-preview{border:1px solid var(--border);border-radius:14px;gap:10px;margin:12px 0;padding:14px;display:grid}.world-memory-preview strong{font-size:15px}.world-memory-preview ul{gap:4px;margin:6px 0;padding-left:20px;display:grid}.world-memory-preview .tag{margin:0}.project-switcher{flex-direction:column;align-items:flex-start;gap:8px;display:flex;position:relative}.switcher-toggle{white-space:nowrap}.switcher-menu{z-index:50;border:1px solid var(--border);background:#1b2334;border-radius:14px;gap:10px;min-width:min(430px,92vw);max-height:70vh;padding:14px;display:grid;position:absolute;top:calc(100% + 6px);left:0;overflow:auto;box-shadow:0 14px 40px #00000073}.switcher-row{align-items:stretch;gap:8px;display:flex}.switcher-row.active .switcher-pick{border-color:var(--gold)}.switcher-pick{border:1px solid var(--border);color:var(--text);cursor:pointer;text-align:left;background:#202938;border-radius:10px;flex-direction:column;flex:1;align-items:flex-start;gap:6px;padding:10px 14px;display:flex}.switcher-pick:hover{border-color:var(--gold)}.switcher-act{align-self:center}.switcher-create{border:1px solid var(--border);background:#202938;border-radius:10px;gap:10px;padding:12px;display:grid}.nav-main{justify-content:flex-start;width:100%}.nav-calendar{opacity:.55;cursor:not-allowed}@media (max-width:760px){.nav-main{flex-direction:column;align-items:stretch}.switcher-menu{width:100%;position:static}}.report{border-collapse:collapse;width:100%;margin:10px 0}.report td{border:1px solid var(--border);padding:7px 12px}.report td:first-child{color:var(--muted,#9fb0c9)}.wizard-steps{flex-wrap:wrap;gap:8px;margin:10px 0 18px;padding:0;list-style:none;display:flex}.wizard-steps li{border:1px solid var(--border);color:var(--muted,#9fb0c9);border-radius:999px;padding:6px 14px}.wizard-steps li.current{background:var(--gold);border-color:var(--gold);color:#221a0f;font-weight:700}.wizard-steps li.done{color:#82c99b;border-color:#82c99b}.error-block{color:#f3c9c4;background:#3a2222;border-left:3px solid #c9756b;gap:6px;padding:10px 16px 10px 20px;list-style:none;display:grid}.publish-body{white-space:pre-wrap;border:1px solid var(--border);background:#1b2334;border-radius:12px;padding:14px}.channels-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;display:grid}@media (max-width:760px){.channels-grid{grid-template-columns:1fr}}.cal-grid{grid-template-columns:repeat(7,1fr);gap:8px;display:grid}.cal-grid.week{grid-template-columns:repeat(7,1fr)}.cal-cell{border:1px solid var(--border);background:#1b2334;border-radius:10px;align-content:start;gap:6px;min-height:110px;padding:8px;display:grid}.cal-cell.today{border-color:var(--gold)}.cal-day{color:var(--muted,#9fb0c9);font-size:12px}.cal-card h4{margin:0 0 4px;font-size:14px}.cal-date{max-width:150px}@media (max-width:760px){.cal-grid{grid-template-columns:1fr}.cal-cell{min-height:auto}}
