:root{--bg:#090810;--sidebar:#0f0d18;--surface:#14111f;--surface-2:#1b1728;--surface-3:#211c31;--line:#2c2640;--line-soft:#211d30;--text:#f8f5ff;--muted:#aaa3ba;--subtle:#777085;--accent:#9d83ff;--accent-2:#c8baff;--accent-rgb:157,131,255;--positive:#65d996;--positive-rgb:101,217,150;--danger:#ff788b;--danger-rgb:255,120,139;--warning:#f4c76d;--radius:18px;--shadow:0 22px 70px #00000052;--row-height:58px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-accent=teal]{--accent:#62d5c8;--accent-2:#a9eee7;--accent-rgb:98,213,200}:root[data-accent=blue]{--accent:#6da7ff;--accent-2:#b4d1ff;--accent-rgb:109,167,255}:root[data-accent=rose]{--accent:#ef80bb;--accent-2:#f7bddc;--accent-rgb:239,128,187}:root[data-compact=true]{--row-height:46px}*{box-sizing:border-box}[hidden]{display:none!important}html{background:var(--bg);min-width:320px}body{background:var(--bg);min-height:100vh;color:var(--text);margin:0}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}a{color:inherit;text-decoration:none}::selection{background:rgba(var(--accent-rgb),.34)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.muted{color:var(--muted)}.small{font-size:11px}.empty{color:var(--muted);text-align:center;padding:42px 18px}.tone-good{color:var(--positive)!important}.tone-bad{color:var(--danger)!important}.tone-warn{color:var(--warning)!important}.auth-page{background:radial-gradient(circle at 16% 12%,rgba(var(--accent-rgb),.22),transparent 31%), radial-gradient(circle at 88% 84%,#65d99614,transparent 28%),var(--bg);place-items:center;min-height:100vh;padding:28px;display:grid}.auth-layout{grid-template-columns:minmax(360px,.9fr) minmax(460px,1.1fr);gap:16px;width:min(1180px,100%);display:grid}.auth-panel{border:1px solid var(--line-soft);min-height:650px;box-shadow:var(--shadow);background:#14111ff2;border-radius:28px}.auth-intro{background:linear-gradient(145deg,rgba(var(--accent-rgb),.22),transparent 62%),var(--surface);flex-direction:column;justify-content:space-between;padding:42px;display:flex;position:relative;overflow:hidden}.auth-intro:after{content:"";background:rgba(var(--accent-rgb),.14);border-radius:50%;width:330px;height:330px;position:absolute;top:-150px;right:-150px}.brand-line{z-index:1;align-items:center;gap:12px;display:flex;position:relative}.brand-mark{background:linear-gradient(145deg,var(--accent-2),var(--accent));color:#17101f;letter-spacing:-.06em;width:42px;height:42px;box-shadow:0 12px 30px rgba(var(--accent-rgb),.25);border-radius:13px;place-items:center;font-weight:900;display:grid}.brand-mark.large{border-radius:17px;width:56px;height:56px;font-size:24px}.brand-title{font-size:15px;font-weight:760}.brand-subtitle{color:var(--muted);margin-top:2px;font-size:11px}.auth-copy{z-index:1;position:relative}.eyebrow{color:var(--accent-2);letter-spacing:.13em;text-transform:uppercase;margin:0 0 10px;font-size:10px;font-weight:800}.auth-copy h1,.center-card h1{letter-spacing:-.055em;margin:0;font-size:clamp(34px,5vw,58px);line-height:1.02}.auth-copy p{color:#c5becf;max-width:520px;margin:18px 0 0;font-size:14px;line-height:1.65}.auth-note{z-index:1;color:var(--muted);align-items:center;gap:9px;font-size:10px;display:flex;position:relative}.auth-note:before{content:"";background:var(--positive);width:7px;height:7px;box-shadow:0 0 0 5px rgba(var(--positive-rgb),.1);border-radius:50%}.login-panel{padding:34px}.login-head h2{letter-spacing:-.035em;margin:0;font-size:24px}.login-head p{color:var(--muted);margin:7px 0 0;font-size:11px}.field{gap:6px;display:grid}.field label{color:var(--muted);font-size:10px;font-weight:680}.field input,.field select,.field textarea,.control{border:1px solid var(--line);width:100%;color:var(--text);background:#0f0d18;border-radius:11px;outline:0;padding:11px 12px}.field textarea{resize:vertical;min-height:90px}.field input:focus,.field select:focus,.field textarea:focus,.control:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.1)}.login-form{gap:14px;margin-top:24px;display:grid}.login-form .button{width:100%}.demo-label{color:var(--subtle);letter-spacing:.12em;text-transform:uppercase;margin:26px 0 10px;font-size:9px;font-weight:780}.demo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.demo-account{border:1px solid var(--line-soft);cursor:pointer;text-align:left;background:#ffffff04;border-radius:12px;align-items:center;gap:9px;padding:10px;transition:all .18s;display:flex}.demo-account:hover{border-color:rgba(var(--accent-rgb),.34);background:rgba(var(--accent-rgb),.05)}.avatar{background:rgba(var(--accent-rgb),.13);width:32px;height:32px;color:var(--accent-2);border-radius:10px;flex:none;place-items:center;font-size:10px;font-weight:850;display:grid}.demo-account strong{font-size:10px;display:block}.demo-account small{color:var(--subtle);margin-top:2px;font-size:8px;display:block}.app{grid-template-columns:250px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{z-index:30;border-right:1px solid var(--line-soft);background:radial-gradient(circle at 15% 4%,rgba(var(--accent-rgb),.14),transparent 30%),var(--sidebar);flex-direction:column;width:250px;padding:22px 16px 16px;display:flex;position:fixed;inset:0 auto 0 0}.sidebar-brand{align-items:center;gap:11px;padding:0 8px 25px;display:flex}.nav-label{color:var(--subtle);letter-spacing:.13em;text-transform:uppercase;padding:0 10px 8px;font-size:9px;font-weight:780}.nav{gap:3px;display:grid}.nav+.nav-label{margin-top:22px}.nav-item{min-height:42px;color:var(--muted);border-radius:11px;align-items:center;gap:11px;padding:9px 10px;font-size:12px;font-weight:650;transition:all .18s;display:flex}.nav-item:hover{color:var(--text);background:#ffffff09}.nav-item.active{color:var(--text);background:rgba(var(--accent-rgb),.14);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.15)}.nav-icon{width:25px;height:25px;color:var(--accent-2);background:#ffffff0b;border-radius:8px;flex:none;place-items:center;font-size:10px;font-weight:850;display:grid}.nav-count{color:var(--subtle);background:#ffffff0d;border-radius:99px;margin-left:auto;padding:2px 7px;font-size:9px}.sidebar-user{border-top:1px solid var(--line-soft);margin-top:auto;padding:15px 8px 2px}.user-card{align-items:center;gap:9px;display:flex}.user-card strong{font-size:10px;display:block}.user-card small{color:var(--subtle);margin-top:2px;font-size:8px;display:block}.logout{color:var(--muted);cursor:pointer;background:0 0;border:0;margin-left:auto}.main{grid-column:2;min-width:0}.topbar{z-index:20;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#090810d6;border-bottom:1px solid #ffffff0d;align-items:center;gap:16px;height:70px;padding:0 34px;display:flex;position:sticky;top:0}.menu-button{display:none}.breadcrumbs{min-width:0}.top-title{text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:15px;font-weight:720;overflow:hidden}.top-actions{gap:8px;margin-left:auto;display:flex}.content{width:100%;max-width:1540px;margin:0 auto;padding:32px 34px 58px}.stack{gap:22px;display:grid}.button{border:1px solid var(--line);background:var(--surface-2);min-height:38px;color:var(--text);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:8px 13px;font-size:11px;font-weight:720;transition:all .18s;display:inline-flex}.button:hover{background:var(--surface-3);border-color:#403654;transform:translateY(-1px)}.button.primary{background:var(--accent);color:#17101f;box-shadow:0 8px 25px rgba(var(--accent-rgb),.18);border-color:#0000}.button.ghost{background:0 0}.button.danger{color:var(--danger)}.button.small{min-height:30px;padding:5px 9px;font-size:9px}.button.icon{width:34px;padding:0}.button[disabled]{opacity:.45;cursor:not-allowed;transform:none}.button-row{flex-wrap:wrap;gap:8px;display:flex}.mobile-only{display:none}.page-head{justify-content:space-between;align-items:flex-end;gap:20px;display:flex}.page-head h1{letter-spacing:-.045em;margin:0;font-size:clamp(28px,3vw,42px)}.page-head p{max-width:720px;color:var(--muted);margin:8px 0 0;font-size:12px;line-height:1.6}.section-head{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:13px;display:flex}.section-head h2{letter-spacing:-.02em;margin:0;font-size:17px}.section-head p{color:var(--muted);margin:4px 0 0;font-size:11px}.hero{border:1px solid rgba(var(--accent-rgb),.18);background:linear-gradient(120deg,rgba(var(--accent-rgb),.2),rgba(var(--accent-rgb),.03) 62%),var(--surface);min-height:235px;box-shadow:var(--shadow);border-radius:24px;grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);gap:28px;padding:31px;display:grid;position:relative;overflow:hidden}.hero:after{content:"";background:rgba(var(--accent-rgb),.12);border-radius:50%;width:330px;height:330px;position:absolute;top:-180px;right:-140px}.hero-copy,.hero-side{z-index:1;align-self:center;position:relative}.hero h1{letter-spacing:-.055em;max-width:760px;margin:13px 0 10px;font-size:clamp(32px,4.2vw,52px);line-height:1.03}.hero p{color:#c2bbcf;max-width:660px;margin:0;font-size:13px;line-height:1.65}.hero-side{gap:10px;display:grid}.chip-row{flex-wrap:wrap;gap:8px;margin-top:20px;display:flex}.chip,.role-pill,.status-pill{border-radius:99px;align-items:center;gap:6px;padding:6px 9px;font-size:9px;font-weight:720;display:inline-flex}.chip{color:#d6d0df;background:#ffffff0b;border:1px solid #ffffff14}.role-pill{background:rgba(var(--accent-rgb),.12);color:var(--accent-2)}.status-pill.good{background:rgba(var(--positive-rgb),.1);color:var(--positive)}.status-pill.bad{background:rgba(var(--danger-rgb),.1);color:var(--danger)}.status-pill.warn{color:var(--warning);background:#f4c76d1a}.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.kpi{border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--surface);min-height:112px;padding:18px}.kpi-label{color:var(--muted);font-size:10px;font-weight:650}.kpi-value{letter-spacing:-.04em;margin-top:11px;font-size:25px;font-weight:780}.kpi-foot{color:var(--subtle);margin-top:7px;font-size:9px}.card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.story-card,.season-card,.category-card{border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--surface);transition:all .2s;position:relative;overflow:hidden}.story-card:hover,.season-card:hover,.category-card:hover{border-color:rgba(var(--accent-rgb),.34);transform:translateY(-2px);box-shadow:0 16px 40px #0003}.story-card{flex-direction:column;min-height:240px;padding:20px;display:flex}.story-card:before{content:"";background:var(--story-color,var(--accent));height:4px;position:absolute;inset:0 0 auto}.story-top{align-items:center;gap:10px;display:flex}.story-mark{background:color-mix(in srgb,var(--story-color,var(--accent)) 18%,transparent);width:42px;height:42px;color:var(--story-color,var(--accent));border-radius:12px;place-items:center;font-size:14px;font-weight:900;display:grid}.story-card h3{letter-spacing:-.025em;margin:22px 0 7px;font-size:18px}.story-card p{color:var(--muted);margin:0;font-size:10px;line-height:1.55}.story-meta{color:var(--subtle);justify-content:space-between;align-items:center;margin-top:auto;padding-top:18px;font-size:9px;display:flex}.accordion{gap:10px;display:grid}.accordion-item{border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--surface);overflow:hidden}.accordion-head{width:100%;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:12px;padding:17px 18px;display:flex}.accordion-head h3{margin:0;font-size:13px}.accordion-head p{color:var(--subtle);margin:4px 0 0;font-size:9px}.accordion-arrow{color:var(--muted);margin-left:auto;transition:all .2s}.accordion-item.open .accordion-arrow{transform:rotate(90deg)}.accordion-body{padding:0 18px 18px;display:none}.accordion-item.open .accordion-body{gap:8px;display:grid}.season-row{border:1px solid var(--line-soft);background:#ffffff04;border-radius:12px;align-items:center;gap:12px;padding:12px;display:flex}.season-row:hover{background:rgba(var(--accent-rgb),.04)}.season-row strong{font-size:11px}.season-row small{color:var(--subtle);margin-top:3px;font-size:9px;display:block}.season-row .button{margin-left:auto}.panel{border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--surface)}.panel-head{border-bottom:1px solid var(--line-soft);justify-content:space-between;align-items:center;gap:14px;padding:17px 18px;display:flex}.panel-title{font-size:12px;font-weight:730}.panel-subtitle{color:var(--subtle);margin-top:3px;font-size:9px}.panel-body{padding:18px}.split{grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);gap:12px;display:grid}.permission-list{gap:7px;display:grid}.permission-line{border:1px solid var(--line-soft);color:var(--muted);border-radius:10px;align-items:center;gap:8px;padding:9px 11px;font-size:9px;display:flex}.permission-line:before{content:"✓";color:var(--positive);font-weight:900}.toolbar{border-bottom:1px solid var(--line-soft);flex-wrap:wrap;align-items:center;gap:8px;padding:13px;display:flex}.search{flex:280px;min-width:220px;position:relative}.search input{border:1px solid var(--line);width:100%;color:var(--text);background:#0f0d18;border-radius:10px;outline:0;padding:10px 11px 10px 35px}.search:before{content:"⌕";color:var(--subtle);font-size:17px;position:absolute;top:7px;left:13px}.toolbar select{border:1px solid var(--line);width:auto;min-width:128px;color:var(--text);background:#0f0d18;border-radius:10px;padding:10px 28px 10px 10px;font-size:10px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%}th{z-index:2;border-bottom:1px solid var(--line);height:38px;color:var(--subtle);text-align:left;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;background:#171322;padding:9px 12px;font-size:8px;font-weight:780;position:sticky;top:0}td{height:var(--row-height);border-bottom:1px solid var(--line-soft);color:#ddd8e6;vertical-align:middle;padding:9px 12px;font-size:10px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#ffffff05}.item-name{min-width:220px;max-width:500px;color:var(--text);font-weight:620;line-height:1.45}.number-cell{font-variant-numeric:tabular-nums;font-weight:720}.series-badge{background:var(--surface-3);width:30px;height:30px;color:var(--accent-2);border-radius:9px;place-items:center;font-size:9px;font-weight:850;display:grid}.link-tag{background:rgba(var(--accent-rgb),.09);color:var(--accent-2);border-radius:7px;padding:4px 7px;font-size:8px;display:inline-flex}.row-actions{justify-content:flex-end;gap:4px;display:flex}.row-action{width:29px;height:29px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px}.row-action:hover{border-color:var(--line);background:var(--surface-3);color:var(--text)}.approval-button{cursor:pointer;border:0;border-radius:99px;padding:5px 8px;font-size:8px;font-weight:780}.approval-button.yes{color:var(--positive);background:rgba(var(--positive-rgb),.1)}.approval-button.no{color:var(--warning);background:#f4c76d1a}.approval-button[disabled]{cursor:not-allowed;opacity:.72}.lock-note{color:var(--subtle);align-items:center;gap:5px;font-size:8px;display:inline-flex}.category-summary{grid-template-columns:minmax(0,1fr) repeat(3,minmax(145px,.31fr));gap:12px;display:grid}.category-banner{border:1px solid rgba(var(--accent-rgb),.19);border-radius:var(--radius);background:linear-gradient(120deg,rgba(var(--accent-rgb),.17),transparent 70%),var(--surface);align-items:center;gap:17px;min-height:128px;padding:20px;display:flex}.category-banner h1{margin:0;font-size:20px}.category-banner p{color:var(--muted);margin:6px 0 0;font-size:10px}.mini-stat{border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--surface);min-height:128px;padding:19px}.mini-stat span{color:var(--muted);font-size:9px}.mini-stat strong{letter-spacing:-.04em;margin-top:13px;font-size:23px;display:block}.mini-stat small{color:var(--subtle);margin-top:7px;font-size:9px;display:block}.category-tabs{gap:6px;padding-bottom:2px;display:flex;overflow:auto}.tab-button{white-space:nowrap;border:1px solid var(--line);color:var(--muted);cursor:pointer;background:0 0;border-radius:10px;padding:9px 11px;font-size:9px;font-weight:700}.tab-button.active{border-color:rgba(var(--accent-rgb),.34);background:rgba(var(--accent-rgb),.12);color:var(--text)}.series-grid{grid-template-columns:repeat(13,minmax(78px,1fr));gap:7px;padding-bottom:4px;display:grid;overflow:auto}.series-card{border:1px solid var(--line-soft);background:var(--surface);border-radius:12px;min-width:78px;padding:10px}.series-card.over{border-color:rgba(var(--danger-rgb),.28);background:rgba(var(--danger-rgb),.045)}.series-card .label{color:var(--subtle);text-transform:uppercase;font-size:8px}.series-card .value{margin-top:7px;font-size:13px;font-weight:730}.series-card .limit{color:var(--subtle);margin-top:2px;font-size:8px}.progress{background:#fff1;border-radius:99px;height:5px;margin-top:12px;overflow:hidden}.progress>span{border-radius:inherit;background:var(--bar,var(--positive));height:100%;display:block}.plan-table{min-width:1280px}.plan-table th:first-child,.plan-table td:first-child{z-index:4;background:#15121f;width:125px;position:sticky;left:0}.plan-table th:nth-child(2),.plan-table td:nth-child(2){z-index:4;background:#15121f;width:74px;position:sticky;left:125px}.plan-table th{min-width:155px}.plan-table td{vertical-align:top;height:94px}.plan-cell{color:#d5cfdf;white-space:pre-wrap;border-radius:8px;min-width:145px;min-height:68px;padding:7px;font-size:9px;line-height:1.45}.plan-cell.editable:hover,.plan-cell.editable:focus{background:rgba(var(--accent-rgb),.07);outline:1px solid rgba(var(--accent-rgb),.22)}.plan-cell:empty:before{content:"Нет сцены";color:#554e62}.release-cell{color:var(--accent-2);font-size:9px;font-weight:690}.episode-cell{font-size:11px;font-weight:780}.comment-count{color:var(--muted);align-items:center;gap:4px;font-size:8px;display:inline-flex}.comment-list{gap:9px;display:grid}.comment{border:1px solid var(--line-soft);background:#ffffff04;border-radius:11px;padding:11px}.comment-head{justify-content:space-between;gap:10px;font-size:9px;display:flex}.comment-head strong{color:var(--accent-2)}.comment-head time{color:var(--subtle)}.comment p{color:#d4cedd;margin:7px 0 0;font-size:10px;line-height:1.5}.history-list{display:grid}.history-row{border-bottom:1px solid var(--line-soft);grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:68px;padding:11px 17px;display:grid}.history-row:last-child{border:0}.history-icon{background:rgba(var(--accent-rgb),.1);width:36px;height:36px;color:var(--accent-2);border-radius:11px;place-items:center;font-size:12px;font-weight:850;display:grid}.history-action{font-size:10px;font-weight:680}.history-detail{color:var(--muted);margin-top:4px;font-size:9px}.history-meta{text-align:right;color:var(--subtle);font-size:8px}.history-meta strong{color:#d7d0df;margin-bottom:4px;font-size:9px;display:block}.admin-tabs{gap:6px;display:flex}.admin-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.role-card{border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--surface);padding:18px}.role-card-head{align-items:center;gap:10px;display:flex}.role-card h3{margin:0;font-size:13px}.role-card p{color:var(--muted);margin:5px 0 0;font-size:9px;line-height:1.45}.role-permissions{gap:6px;margin-top:16px;display:grid}.role-permission{color:var(--muted);align-items:center;gap:8px;font-size:8px;display:flex}.role-permission input{accent-color:var(--accent)}.access-chips{flex-wrap:wrap;gap:5px;display:flex}.access-chip{border:1px solid var(--line-soft);color:var(--muted);cursor:pointer;background:0 0;border-radius:99px;padding:5px 7px;font-size:8px}.access-chip.on{border-color:rgba(var(--positive-rgb),.24);background:rgba(var(--positive-rgb),.08);color:var(--positive)}.settings-grid{grid-template-columns:minmax(0,1.5fr) minmax(280px,.6fr);align-items:start;gap:12px;display:grid}.settings-section{padding:20px}.setting-list{gap:9px;display:grid}.setting-row{border:1px solid var(--line-soft);background:#ffffff04;border-radius:12px;justify-content:space-between;align-items:center;gap:14px;padding:12px;display:flex}.setting-row strong{font-size:10px}.setting-row small{color:var(--subtle);margin-top:3px;font-size:8px;display:block}.palette{gap:6px;display:flex}.swatch{cursor:pointer;border:2px solid #0000;border-radius:8px;width:25px;height:25px}.swatch.active{border-color:var(--text)}.switch{width:38px;height:22px;position:relative}.switch input{opacity:0;position:absolute}.switch span{cursor:pointer;background:#302a3f;border-radius:99px;transition:all .2s;position:absolute;inset:0}.switch span:after{content:"";background:#b8b1c5;border-radius:50%;width:16px;height:16px;transition:all .2s;position:absolute;top:3px;left:3px}.switch input:checked+span{background:var(--accent)}.switch input:checked+span:after{background:#17101f;transform:translate(16px)}dialog{border:1px solid var(--line);background:var(--surface);width:min(590px,100vw - 28px);max-height:min(780px,100vh - 28px);color:var(--text);border-radius:20px;padding:0;overflow:auto;box-shadow:0 26px 90px #00000094}dialog::backdrop{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#040308bd}.dialog-head{border-bottom:1px solid var(--line-soft);justify-content:space-between;align-items:flex-start;gap:18px;padding:20px 22px;display:flex}.dialog-head h2{margin:0;font-size:16px}.dialog-head p{color:var(--muted);margin:5px 0 0;font-size:9px}.dialog-close{color:var(--muted);cursor:pointer;background:0 0;border:0;font-size:20px}.dialog-body{padding:20px 22px}.dialog-actions{border-top:1px solid var(--line-soft);justify-content:flex-end;gap:8px;padding:16px 22px;display:flex}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;display:grid}.field.wide{grid-column:1/-1}.checkbox-line{min-height:40px;color:var(--muted);align-items:center;gap:8px;font-size:10px;display:flex}.checkbox-line input{accent-color:var(--accent)}.toast{z-index:100;opacity:0;border:1px solid var(--line);max-width:min(360px,100vw - 44px);box-shadow:var(--shadow);pointer-events:none;background:#211c2d;border-radius:12px;padding:12px 15px;font-size:10px;transition:all .24s;position:fixed;bottom:22px;right:22px;transform:translateY(20px)}.toast.show{opacity:1;transform:translateY(0)}.backdrop-mobile{display:none}.center-card{border:1px solid var(--line-soft);background:var(--surface);width:min(620px,100%);box-shadow:var(--shadow);border-radius:24px;padding:36px}.center-card h1{margin-top:14px;font-size:36px}.center-card .button-row{margin-top:24px}.story-library-section{border:1px solid var(--line-soft);background:linear-gradient(#ffffff05,#0000 180px),#100e18;border-radius:20px;padding:20px}.story-library-section .section-head{align-items:center}.story-library-section .eyebrow{margin:0 0 6px}.library-count{border:1px solid var(--line);color:var(--muted);border-radius:99px;padding:7px 10px;font-size:9px;font-weight:750}.story-library-grid{grid-template-columns:repeat(3,minmax(220px,1fr));gap:14px;display:grid}.story-library-card{border:1px solid var(--line-soft);background:#17141f;border-radius:15px;min-width:0;transition:transform .22s,border-color .22s,box-shadow .22s;overflow:hidden;box-shadow:0 10px 28px #0003}.story-library-card:hover{border-color:color-mix(in srgb,var(--story-color) 46%,#3a3348);transform:translateY(-3px);box-shadow:0 18px 44px #00000057}.story-library-cover{aspect-ratio:16/10;background:#211b2e;display:block;position:relative;overflow:hidden}.story-library-cover img{object-fit:cover;object-position:center 39%;width:100%;height:100%;transition:transform .38s,filter .38s;display:block}.story-library-card:hover .story-library-cover img{filter:saturate(1.08);transform:scale(1.045)}.story-cover-fallback{background:linear-gradient(135deg,color-mix(in srgb,var(--story-color) 45%,#17121f),#0c0a10);color:#fff;place-items:center;font-size:36px;font-weight:900;display:grid;position:absolute;inset:0}.story-cover-shade{background:linear-gradient(#06050a29,#06050a0f 42%,#06050aeb 100%);position:absolute;inset:0}.story-cover-top{justify-content:space-between;align-items:center;gap:8px;display:flex;position:absolute;inset:12px 12px auto}.story-code{color:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#08070db3;border:1px solid #fff3;border-radius:10px;place-items:center;width:34px;height:34px;font-size:10px;font-weight:900;display:grid}.story-cover-top .status-pill{color:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#08070db8;border:1px solid #ffffff1a}.story-cover-copy{color:#fff;display:block;position:absolute;bottom:14px;left:15px;right:15px}.story-cover-copy small{color:#ffffffa3;margin-bottom:5px;font-size:8px;font-weight:700;display:block}.story-cover-copy strong{letter-spacing:-.025em;font-size:18px;display:block}.story-cover-copy>span{opacity:0;color:#ffffffbd;max-height:0;margin-top:0;font-size:9px;line-height:1.45;transition:max-height .28s,opacity .25s,margin .25s;display:block;overflow:hidden}.story-library-card:hover .story-cover-copy>span{opacity:1;max-height:44px;margin-top:6px}.story-library-seasons{align-items:center;gap:12px;min-height:66px;padding:11px 13px;display:flex}.story-library-label{color:var(--subtle);text-transform:uppercase;font-size:8px;font-weight:750}.story-season-links{gap:6px;min-width:0;margin-left:auto;display:flex}.story-season-links a{border:1px solid var(--line);min-width:48px;color:var(--text);background:#ffffff06;border-radius:9px;gap:1px;padding:6px 8px;transition:all .18s;display:grid}.story-season-links a:hover{border-color:color-mix(in srgb,var(--story-color) 58%,#3b3449);background:color-mix(in srgb,var(--story-color) 12%,transparent)}.story-season-links b{font-size:10px}.story-season-links span{max-width:76px;color:var(--subtle);text-overflow:ellipsis;white-space:nowrap;font-size:7px;overflow:hidden}.story-detail-cover{aspect-ratio:2/3;border:1px solid color-mix(in srgb,var(--story-color) 42%,#443852);border-radius:18px;justify-self:center;width:128px;position:relative;overflow:hidden;box-shadow:0 18px 45px #00000061}.story-detail-cover img{object-fit:cover;width:100%;height:100%;display:block}.story-detail-cover:after{content:"";background:linear-gradient(#0000 56%,#06050ad1);position:absolute;inset:0}.story-detail-cover span{z-index:1;background:var(--story-color);color:#fff;border-radius:10px;place-items:center;width:34px;height:34px;font-size:10px;font-weight:900;display:grid;position:absolute;bottom:9px;right:10px}.library-page{gap:18px}.library-page-head{border-bottom:1px solid var(--line-soft);align-items:center;padding:4px 2px 20px}.library-page-head .eyebrow{margin:0 0 8px}.library-page-head h1{font-size:clamp(28px,3vw,40px)}.library-summary{align-items:center;gap:7px;display:flex}.library-summary span{border:1px solid var(--line-soft);min-width:76px;color:var(--subtle);background:#ffffff05;border-radius:10px;padding:9px 11px;font-size:8px}.library-summary b{color:var(--text);margin-bottom:3px;font-size:15px;display:block}.steam-library{background:linear-gradient(#ffffff06,#0000 110px),#141820;border:1px solid #282d37;border-radius:12px;min-height:390px;padding:16px;box-shadow:0 16px 45px #00000038}.steam-library-head{border-bottom:1px solid #ffffff0e;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px;padding-bottom:12px;display:flex}.steam-library-head h2{margin:0;font-size:14px}.steam-library-head p{color:#7f8996;margin:4px 0 0;font-size:9px}.steam-library .library-count{color:#94a0ae;background:#1a2029;border-color:#303744}.steam-grid{grid-template-columns:repeat(auto-fill,minmax(124px,146px));justify-content:start;align-items:start;gap:18px 11px;display:grid}.steam-card{min-width:0;position:relative}.steam-cover{aspect-ratio:2/3;background:#202632;border:1px solid #333b48;border-radius:5px;transition:transform .16s,border-color .16s,box-shadow .16s;display:block;position:relative;overflow:hidden;box-shadow:0 7px 16px #00000070}.steam-card:hover .steam-cover,.steam-card:focus-within .steam-cover{z-index:2;border-color:color-mix(in srgb,var(--story-color) 70%,#7697b4);box-shadow:0 12px 25px #0000008f,0 0 0 1px color-mix(in srgb,var(--story-color) 36%,transparent);transform:translateY(-3px)scale(1.025)}.steam-cover img{object-fit:cover;width:100%;height:100%;transition:filter .18s,transform .2s;display:block}.steam-card:hover .steam-cover img{filter:brightness(1.08)saturate(1.08);transform:scale(1.018)}.steam-cover-fallback{background:linear-gradient(145deg,color-mix(in srgb,var(--story-color) 44%,#202632),#0c1017);color:#fff;place-items:center;font-size:30px;font-weight:900;display:grid;position:absolute;inset:0}.steam-cover-shade{background:linear-gradient(#05080c2e,#0000 30% 72%,#05080cb8);position:absolute;inset:0}.steam-code{color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#070a0fb8;border:1px solid #fff3;border-radius:5px;place-items:center;min-width:26px;height:26px;padding:0 5px;font-size:8px;font-weight:900;display:grid;position:absolute;top:7px;left:7px}.steam-badge{color:#08111a;letter-spacing:.045em;text-overflow:ellipsis;white-space:nowrap;background:#4db8ee;border-radius:3px 0 0 3px;max-width:78%;padding:4px 6px;font-size:6px;font-weight:900;position:absolute;top:7px;right:0;overflow:hidden;box-shadow:0 2px 8px #00000052}.steam-progress{background:#04070ab8;height:4px;position:absolute;bottom:0;left:0;right:0}.steam-progress i{background:linear-gradient(90deg,var(--story-color),#66c7ff);height:100%;box-shadow:0 0 10px var(--story-color);display:block}.steam-title{color:#e6ebf1;text-overflow:ellipsis;white-space:nowrap;margin-top:8px;font-size:10px;font-weight:720;line-height:1.3;display:block;overflow:hidden}.steam-title:hover{color:#fff}.steam-meta{color:#737e8b;justify-content:space-between;gap:6px;margin-top:3px;font-size:7px;display:flex}.steam-seasons{gap:4px;margin-top:7px;display:flex}.steam-seasons a{color:#9aa6b3;background:#1a2029;border:1px solid #303743;border-radius:4px;place-items:center;min-width:25px;height:22px;font-size:7px;font-weight:800;transition:all .14s;display:grid}.steam-seasons a:hover{border-color:color-mix(in srgb,var(--story-color) 58%,#46505e);background:color-mix(in srgb,var(--story-color) 16%,#1a2029);color:#fff}.steam-empty{grid-column:1/-1}.library-access-panel{background:#12161d;border-color:#272d37}.library-permissions{flex-wrap:wrap;gap:7px;display:flex}.library-permissions span{color:#8e9aa8;background:#181d25;border:1px solid #2c333e;border-radius:6px;padding:6px 8px;font-size:8px}@media (width<=1120px){.card-grid,.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.story-library-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.category-banner{grid-column:1/-1}.settings-grid{grid-template-columns:1fr}.auth-layout{grid-template-columns:1fr;max-width:720px}.auth-intro{min-height:360px}.auth-panel{min-height:auto}}@media (width<=820px){.app{grid-template-columns:1fr}.sidebar{transition:all .24s;transform:translate(-102%);box-shadow:30px 0 70px #0006}body.menu-open .sidebar{transform:translate(0)}.main{grid-column:1}.topbar{height:62px;padding:0 18px}.menu-button{border:1px solid var(--line);background:var(--surface);border-radius:9px;place-items:center;width:34px;height:34px;display:inline-grid}.content{padding:22px 18px 44px}.hero,.split{grid-template-columns:1fr}.backdrop-mobile{z-index:29;opacity:0;pointer-events:none;background:#0000008c;transition:all .2s;display:block;position:fixed;inset:0}body.menu-open .backdrop-mobile{opacity:1;pointer-events:auto}.desktop-only{display:none}.mobile-only{display:inline-flex}}@media (width<=610px){.card-grid,.admin-grid,.kpi-grid,.category-summary,.demo-grid,.story-library-grid{grid-template-columns:1fr}.category-banner{grid-column:auto}.top-actions .button span{display:none}.hero{padding:24px}.hero h1{font-size:31px}.page-head,.section-head{flex-direction:column;align-items:flex-start}.story-library-section{padding:14px}.story-library-cover{aspect-ratio:4/3}.form-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}.login-panel,.auth-intro{padding:25px}.auth-copy h1{font-size:36px}.history-row{grid-template-columns:38px minmax(0,1fr)}.history-meta{text-align:left;grid-column:2}}@media (width<=900px){.library-page-head{flex-direction:column;align-items:flex-start}.library-summary{flex-wrap:wrap;width:100%}.library-summary span{flex:82px}.steam-grid{grid-template-columns:repeat(auto-fill,minmax(118px,142px))}}@media (width<=610px){.steam-library{min-height:0;padding:12px}.steam-library-head{align-items:flex-start}.steam-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}.steam-title{font-size:9px}.library-access-panel{display:none}}@media print{.sidebar,.topbar,.toolbar,.button,.row-actions,.admin-tabs{display:none!important}.app,.main{display:block}.content{max-width:none;padding:0}.panel,.hero,.kpi,.story-card{break-inside:avoid;box-shadow:none}}.pdf-workspace{grid-template-columns:330px minmax(0,1fr);align-items:start;gap:18px;display:grid}.pdf-controls{flex-direction:column;max-height:calc(100vh - 112px);display:flex;position:sticky;top:88px;overflow:hidden}.pdf-controls-head{border-bottom:1px solid var(--line-soft);justify-content:space-between;align-items:center;gap:12px;padding:17px 18px;display:flex}.pdf-controls-scroll{gap:16px;padding:17px 18px;display:grid;overflow:auto}.pdf-controls-scroll::-webkit-scrollbar{width:7px}.pdf-controls-scroll::-webkit-scrollbar-thumb{background:#342d44;border-radius:99px}.pdf-control-grid{grid-template-columns:1fr 1.25fr;gap:10px;display:grid}.pdf-range{align-items:center;gap:7px;display:flex}.pdf-range select{min-width:0}.pdf-control-section{gap:10px;padding-top:4px;display:grid}.pdf-control-title{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;justify-content:space-between;align-items:center;font-size:9px;font-weight:780;display:flex}.link-button{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:2px 3px;font-size:9px;font-weight:750}.pdf-category-options{grid-template-columns:1fr 1fr;gap:6px;display:grid}.pdf-category-option{border:1px solid var(--line-soft);min-height:39px;color:var(--muted);cursor:pointer;background:#ffffff03;border-radius:10px;align-items:center;gap:7px;padding:6px 8px;font-size:8px;font-weight:700;display:flex}.pdf-category-option:has(input:checked){border-color:rgba(var(--accent-rgb),.4);background:rgba(var(--accent-rgb),.09);color:var(--text)}.pdf-category-option input{display:none}.pdf-category-option .story-mark{border-radius:7px;width:23px;height:23px;font-size:7px}.pdf-option-list{gap:5px;display:grid}.pdf-option{cursor:pointer;border-radius:9px;align-items:center;gap:9px;padding:7px 8px;display:flex}.pdf-option:hover{background:#ffffff06}.pdf-option input{width:15px;height:15px;accent-color:var(--accent)}.pdf-option span{min-width:0}.pdf-option strong{font-size:9px;display:block}.pdf-option small{color:var(--subtle);margin-top:2px;font-size:7px;line-height:1.35;display:block}.pdf-controls-footer{border-top:1px solid var(--line-soft);background:#ffffff03;gap:9px;margin-top:auto;padding:15px 18px;display:grid}.pdf-controls-footer .button{width:100%}.pdf-controls-footer small{color:var(--subtle);text-align:center;font-size:7px}.pdf-selection-meta{color:var(--muted);text-align:center;font-size:8px}.pdf-preview-stage{border:1px solid var(--line-soft);background:#13101c;border-radius:16px;min-width:0;overflow:hidden}.pdf-preview-toolbar{border-bottom:1px solid var(--line-soft);background:#ffffff05;justify-content:space-between;align-items:center;gap:12px;min-height:50px;padding:8px 14px;display:flex}.pdf-preview-toolbar strong{font-size:10px;display:block}.pdf-preview-toolbar small{color:var(--subtle);margin-top:2px;font-size:8px;display:block}.pdf-zoom-label{min-width:35px;color:var(--muted);text-align:center;font-size:8px}.pdf-preview-viewport{background:radial-gradient(circle at 50% 0,rgba(var(--accent-rgb),.08),transparent 35%),#0d0b13;height:calc(100vh - 190px);min-height:640px;padding:28px;overflow:auto}.pdf-document{--pdf-zoom:.85;width:max-content;transform:scale(var(--pdf-zoom));transform-origin:0 0;margin-bottom:calc((var(--pdf-zoom) - 1)*100%);gap:24px;font-family:Arial,Helvetica,sans-serif;display:grid}.pdf-sheet{box-sizing:border-box;color:#20202a;background:#fff;flex-direction:column;padding:12mm 13mm 11mm;display:flex;position:relative;overflow:hidden;box-shadow:0 18px 55px #00000073}.pdf-document.landscape .pdf-sheet{width:297mm;min-height:210mm}.pdf-document.portrait .pdf-sheet{width:210mm;min-height:297mm}.pdf-document.colorless .pdf-sheet{filter:grayscale()}.pdf-sheet h1,.pdf-sheet h2,.pdf-sheet h3,.pdf-sheet p{font-family:Arial,Helvetica,sans-serif}.pdf-sheet h2{margin:2mm 0 1mm;font-size:18pt;line-height:1.15}.pdf-sheet h3{margin:0 0 2.5mm;font-size:10pt}.pdf-section-kicker{color:#8065d1;letter-spacing:.16em;font-size:7pt;font-weight:800}.pdf-title-row{justify-content:space-between;align-items:flex-start;gap:8mm;margin-bottom:5mm;display:flex}.pdf-title-row p,.pdf-category-head p{color:#797784;margin:1mm 0 0;font-size:7.5pt}.pdf-status{white-space:nowrap;border-radius:99px;align-items:center;padding:2mm 3mm;font-size:7pt;font-weight:800;display:inline-flex}.pdf-status.ok{color:#237b65;background:#e8f7f2}.pdf-status.over{color:#b74459;background:#fdecef}.pdf-kpi-row{grid-template-columns:repeat(4,1fr);gap:3mm;margin-bottom:5mm;display:grid}.pdf-kpi-row article{background:#fbfafd;border:1px solid #e8e6ed;border-radius:3mm;padding:3.2mm}.pdf-kpi-row span{color:#7b7986;text-transform:uppercase;font-size:6.5pt;font-weight:700;display:block}.pdf-kpi-row strong{margin-top:1.4mm;font-size:15pt;display:block}.pdf-kpi-row small{color:#8f8d98;margin-top:1mm;font-size:6.5pt;display:block}.pdf-kpi-row.compact article{padding:2.4mm 3mm}.pdf-kpi-row.compact strong{font-size:12pt}.pdf-table{border-collapse:collapse;table-layout:auto;color:#282733;width:100%;font-size:6.8pt}.pdf-table th{color:#6d6977;letter-spacing:.04em;text-align:left;text-transform:uppercase;background:#f3f1f6;border-bottom:1px solid #d9d6e0;padding:2.2mm 2mm;font-size:6.1pt;font-weight:800}.pdf-table td{vertical-align:top;border-bottom:1px solid #eceaf0;padding:2mm;line-height:1.35}.pdf-table tr:nth-child(2n) td{background:#faf9fb}.pdf-table small{color:#85828d;margin-top:.7mm;font-size:5.8pt;display:block}.pdf-summary-table td:not(:first-child),.pdf-limits-table td:not(:first-child){white-space:nowrap}.pdf-usage{vertical-align:middle;background:#e6e2ec;border-radius:99px;width:16mm;height:1.2mm;margin-right:1.5mm;display:inline-block;overflow:hidden}.pdf-usage i{background:#8d73dc;height:100%;display:block}.pdf-bad{color:#bd4058!important}.pdf-good{color:#23826a!important}.pdf-subsection{margin-top:4mm}.pdf-limits-table{max-width:145mm}.pdf-document.portrait .pdf-limits-table{max-width:none}.pdf-items-table{font-size:6.2pt}.pdf-items-table th{font-size:5.8pt}.pdf-items-table td:first-child{text-align:center;width:7mm}.pdf-items-table td:nth-child(2){min-width:42mm}.pdf-items-table a{color:#6651a9;word-break:break-word;text-decoration:none}.pdf-approval{border-radius:99px;padding:1mm 1.7mm;font-size:5.6pt;font-weight:800;display:inline-block}.pdf-approval.yes{color:#237b65;background:#e8f7f2}.pdf-approval.no{color:#9b6a16;background:#fff5dd}.pdf-comment{color:#5f5c68;max-width:56mm;margin-bottom:1mm;font-size:5.8pt}.pdf-category-head{align-items:center;gap:4mm;margin-bottom:4mm;display:flex}.pdf-category-head .pdf-status{margin-left:auto}.pdf-category-mark{color:#765bc8;background:#ede8fb;border-radius:3mm;place-items:center;width:13mm;height:13mm;font-size:8pt;font-weight:850;display:grid}.pdf-category-head h2{margin:0}.pdf-sheet-footer{color:#918e99;border-top:1px solid #e9e7ed;justify-content:space-between;gap:4mm;margin-top:auto;padding-top:4mm;font-size:5.8pt;display:flex}.pdf-cover-sheet{background:linear-gradient(145deg,#fff 0,#faf8ff 52%,#f0ebff 100%);padding:15mm 17mm 12mm}.pdf-cover-top{color:#77727f;letter-spacing:.14em;align-items:center;gap:4mm;font-size:6.5pt;font-weight:800;display:flex}.pdf-logo{--pdf-accent:#9d83ff;background:var(--pdf-accent);color:#fff;border-radius:3.5mm;place-items:center;width:13mm;height:13mm;font-size:8pt;font-weight:850;display:grid;box-shadow:0 3mm 8mm #624ca02e}.pdf-cover-main{max-width:215mm;margin:auto 0 11mm}.pdf-document.portrait .pdf-cover-main{max-width:165mm}.pdf-cover-main>p:first-child{color:#8065d1;text-transform:uppercase;margin:0 0 3mm;font-size:8pt;font-weight:800}.pdf-cover-main h1{letter-spacing:-.03em;max-width:230mm;margin:0;font-size:29pt;line-height:1.08}.pdf-document.portrait .pdf-cover-main h1{font-size:26pt}.pdf-cover-line{background:#8d73dc;border-radius:99px;width:28mm;height:1.2mm;margin:6mm 0 4mm}.pdf-cover-description{color:#777482;max-width:180mm;margin:0;font-size:9pt;line-height:1.55}.pdf-cover-kpis{grid-template-columns:repeat(4,1fr);gap:3mm;margin-bottom:7mm;display:grid}.pdf-document.portrait .pdf-cover-kpis{grid-template-columns:repeat(2,1fr)}.pdf-cover-kpis article{border-top:1px solid #dcd7e7;padding-top:3mm}.pdf-cover-kpis span{color:#8b8793;text-transform:uppercase;font-size:6.5pt;font-weight:700;display:block}.pdf-cover-kpis strong{margin-top:1.5mm;font-size:17pt;display:block}.pdf-cover-meta{grid-template-columns:repeat(4,1fr);gap:4mm;margin-bottom:8mm;display:grid}.pdf-document.portrait .pdf-cover-meta{grid-template-columns:repeat(2,1fr)}.pdf-cover-meta span{color:#918e99;text-transform:uppercase;font-size:6pt;display:block}.pdf-cover-meta strong{margin-top:1mm;font-size:7.5pt;display:block}.pdf-empty-sheet{text-align:center;justify-content:center;align-items:center}.pdf-empty-sheet>div{margin:auto}.pdf-empty-sheet .pdf-logo{margin:0 auto 5mm}.pdf-empty-sheet h2{margin:0 0 2mm}.pdf-empty-sheet p{color:#777482;font-size:9pt}.pdf-threshold-box{border:1px solid rgba(var(--accent-rgb),.18);background:rgba(var(--accent-rgb),.045);border-radius:12px;gap:8px;padding:8px;display:grid}.pdf-threshold-box>.pdf-option{padding:4px 3px}.pdf-threshold-field{padding:0 3px}.pdf-threshold-input{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;display:grid}.pdf-threshold-input input{min-width:0}.pdf-threshold-input span,.pdf-threshold-box>small{color:var(--subtle);font-size:7px;line-height:1.4}.pdf-threshold-box>small{padding:0 3px 3px}.pdf-threshold-input input:disabled{opacity:.45}.pdf-subsection-title{justify-content:space-between;align-items:center;gap:4mm;margin-bottom:1.5mm;display:flex}.pdf-subsection-title h3{margin:0}.pdf-filter-note,.pdf-matrix-legend{color:#85828d;font-size:5.8pt}.pdf-inline-note{color:#686471;background:#f7f4fc;border-left:1mm solid #8d73dc;border-radius:1.5mm;align-items:center;gap:1.5mm;margin:0 0 3mm;padding:2mm 2.5mm;font-size:6pt;display:flex}.pdf-inline-note strong{color:#5d48a1}.pdf-inline-note-bottom{margin:3mm 0 0}.pdf-overview-sheet,.pdf-overview-items-sheet{padding:7mm 8mm 6mm}.pdf-overview-sheet .pdf-title-row,.pdf-overview-items-sheet .pdf-title-row{margin-bottom:3mm}.pdf-overview-sheet .pdf-kpi-row{gap:2mm;margin-bottom:3mm}.pdf-overview-sheet .pdf-kpi-row article{padding:2mm 2.4mm}.pdf-overview-sheet .pdf-kpi-row strong{margin-top:.7mm;font-size:11pt}.pdf-overview-sheet .pdf-kpi-row small{margin-top:.4mm;font-size:5.8pt}.pdf-overview-matrix{table-layout:fixed;text-align:center;font-size:5.2pt}.pdf-overview-matrix th,.pdf-overview-matrix td{text-align:center;white-space:nowrap;padding:1.05mm .45mm}.pdf-overview-matrix thead th{font-size:4.8pt}.pdf-overview-matrix th:first-child{text-align:left;width:29mm}.pdf-overview-matrix tbody th{color:#4f4c57;text-transform:none;letter-spacing:0;background:#f7f5fa}.pdf-overview-matrix td strong{font-size:5.5pt;display:block}.pdf-overview-matrix td small{margin:.3mm 0 0;font-size:4.5pt}.pdf-over-cell{color:#b83d54;background:#fff0f2!important}.pdf-matrix-mark{color:#6e56b7;vertical-align:middle;background:#ebe6f8;border-radius:1.2mm;place-items:center;width:5mm;height:5mm;margin-right:1.2mm;font-size:4.6pt;font-weight:850;display:inline-grid}.pdf-matrix-total th,.pdf-matrix-total td{border-top:1px solid #cfc9d9;font-weight:800;background:#eeeaf5!important}.pdf-overview-footer-grid{grid-template-columns:repeat(3,1fr);gap:2mm;margin-top:3mm;display:grid}.pdf-overview-footer-grid span{color:#777380;background:#fbfafc;border:1px solid #e7e3ec;border-radius:2mm;padding:2mm;font-size:5.8pt}.pdf-overview-footer-grid b{color:#4e4859;font-size:7pt}.pdf-overview-items{table-layout:fixed;font-size:5.5pt}.pdf-overview-items th{padding:1.1mm 1mm;font-size:5pt}.pdf-overview-items td{height:auto;padding:.75mm 1mm;line-height:1.15}.pdf-overview-items th:first-child,.pdf-overview-items td:first-child{text-align:center;width:7mm}.pdf-overview-items th:nth-child(2),.pdf-overview-items td:nth-child(2){width:30mm}.pdf-overview-items th:nth-child(4),.pdf-overview-items td:nth-child(4){white-space:nowrap;width:13mm}.pdf-overview-items td:nth-child(3){overflow:hidden}.pdf-overview-items td:nth-child(3)>strong{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.pdf-overview-items a{color:#6651a9;text-decoration:none}.pdf-overview-items .pdf-approval{padding:.55mm 1mm;font-size:4.7pt}.pdf-document.compact-layout .pdf-summary-sheet,.pdf-document.compact-layout .pdf-category-sheet{min-height:0;padding:7mm 8mm 6mm;overflow:visible}.pdf-document.compact-layout .pdf-title-row{margin-bottom:3mm}.pdf-document.compact-layout .pdf-category-head{margin-bottom:2.5mm}.pdf-document.compact-layout .pdf-category-mark{width:10mm;height:10mm}.pdf-document.compact-layout .pdf-category-head h2{font-size:14pt}.pdf-document.compact-layout .pdf-kpi-row{gap:2mm;margin-bottom:2.5mm}.pdf-document.compact-layout .pdf-kpi-row article{border-radius:2mm;padding:2mm 2.4mm}.pdf-document.compact-layout .pdf-kpi-row strong{margin-top:.8mm;font-size:11pt}.pdf-document.compact-layout .pdf-kpi-row small{margin-top:.5mm}.pdf-document.compact-layout .pdf-subsection{margin-top:2.5mm}.pdf-document.compact-layout .pdf-subsection h3{margin-bottom:1.3mm;font-size:8pt}.pdf-document.compact-layout .pdf-table{font-size:6pt}.pdf-document.compact-layout .pdf-table th{padding:1.3mm 1.2mm;font-size:5.5pt}.pdf-document.compact-layout .pdf-table td{padding:1.15mm 1.2mm;line-height:1.22}.pdf-document.compact-layout .pdf-items-table{font-size:5.8pt}.pdf-document.compact-layout .pdf-items-table th{font-size:5.2pt}.pdf-document.compact-layout .pdf-approval{padding:.7mm 1.2mm;font-size:5.1pt}.pdf-document.compact-layout .pdf-sheet-footer{margin-top:2.5mm;padding-top:2mm}.pdf-document.compact-layout .pdf-category-sheet .pdf-sheet-footer{display:none}.pdf-limits-matrix{table-layout:fixed;text-align:center}.pdf-limits-matrix th,.pdf-limits-matrix td{text-align:center;white-space:nowrap}.pdf-limits-matrix th:first-child{text-align:left;width:13mm}.pdf-limits-matrix tbody th{color:#6d6977;background:#f8f6fa;border-bottom:1px solid #eceaf0}.pdf-document.portrait.compact-layout .pdf-limits-matrix{font-size:5.2pt}.pdf-document.portrait.compact-layout .pdf-limits-matrix th,.pdf-document.portrait.compact-layout .pdf-limits-matrix td{padding:1mm .55mm}@media (width<=1180px){.pdf-workspace{grid-template-columns:300px minmax(0,1fr)}.pdf-preview-viewport{padding:20px}.pdf-category-options{grid-template-columns:1fr}}@media (width<=900px){.pdf-workspace{grid-template-columns:1fr}.pdf-controls{max-height:none;position:relative;top:auto}.pdf-controls-scroll{overflow:visible}.pdf-category-options{grid-template-columns:repeat(2,1fr)}.pdf-preview-viewport{height:720px;min-height:0}.pdf-builder-head{display:none}}@media (width<=610px){.pdf-category-options,.pdf-control-grid{grid-template-columns:1fr}.pdf-preview-viewport{padding:12px}.pdf-preview-toolbar{position:sticky;left:0}.pdf-controls-footer{z-index:2;position:sticky;bottom:0}}@media print{html,body{background:#fff!important;width:auto!important;height:auto!important;overflow:visible!important}.pdf-page .sidebar,.pdf-page .topbar,.pdf-page .pdf-builder-head,.pdf-page .pdf-controls,.pdf-page .pdf-preview-toolbar,.pdf-page .backdrop-mobile,.pdf-page #toast{display:none!important}.pdf-page .app,.pdf-page .main,.pdf-page .content,.pdf-page .pdf-screen,.pdf-page .pdf-workspace,.pdf-page .pdf-preview-stage,.pdf-page .pdf-preview-viewport{background:#fff!important;border:0!important;border-radius:0!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;display:block!important;overflow:visible!important}.pdf-page .pdf-document{width:auto!important;margin:0!important;display:block!important;transform:none!important}.pdf-page .pdf-sheet{break-after:page;page-break-after:always;width:auto!important;min-height:100vh!important;box-shadow:none!important;border:0!important;margin:0!important}.pdf-page .pdf-sheet:last-child{break-after:auto;page-break-after:auto}.pdf-page .pdf-table tr,.pdf-page .pdf-kpi-row article{break-inside:avoid;page-break-inside:avoid}.pdf-page .pdf-table thead{display:table-header-group}.pdf-page .pdf-document.compact-layout .pdf-summary-sheet,.pdf-page .pdf-document.compact-layout .pdf-category-sheet{break-after:auto;page-break-after:auto;min-height:0!important;overflow:visible!important}.pdf-page .pdf-document.compact-layout .pdf-cover-sheet{break-after:page;page-break-after:always;min-height:100vh!important}.pdf-page .pdf-document.compact-layout .pdf-category-head,.pdf-page .pdf-document.compact-layout .pdf-kpi-row,.pdf-page .pdf-document.compact-layout .pdf-limits-compact{break-inside:avoid;page-break-inside:avoid;break-after:avoid;page-break-after:avoid}.pdf-page .pdf-document.compact-layout .pdf-subsection h3{break-after:avoid;page-break-after:avoid}.pdf-page .pdf-document.compact-layout .pdf-category-sheet+.pdf-category-sheet{border-top:1px solid #ddd8e7!important}.pdf-page .pdf-document.colorless .pdf-sheet{filter:grayscale()}}.server-sync{z-index:2000;color:#b5f3d4;background:#17251f;border:1px solid #426557;border-radius:10px;padding:8px 14px;font:12px system-ui;position:fixed;bottom:14px;right:16px;box-shadow:0 3px 15px #0004}.server-sync.error{color:#ffb4c2;background:#361d28;border-color:#a94f64}.server-error{max-width:610px}.server-account{max-width:780px;margin:48px auto;padding:24px}.server-account form{gap:14px;display:grid}.server-account .panel{margin-bottom:22px;padding:24px}.server-account label{gap:7px;display:grid}.server-account input,.server-account select{background:var(--panel,#171421);border:1px solid var(--line,#3a3150);width:100%;color:inherit;border-radius:8px;padding:12px}.server-account .error-text{color:#ff8799}.server-login{background:#171421;border:1px solid #352c48;border-radius:20px;width:min(480px,100% - 32px);margin:12vh auto;padding:36px}.server-login form{gap:20px;display:grid}.server-login label{gap:8px;display:grid}.server-login input{border-radius:8px;padding:12px}.server-login h1{font-size:30px}.server-login p{color:#aca3c3}@media print{.server-sync{display:none!important}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.theme-toggle{white-space:nowrap}.auth-theme{z-index:40;position:absolute;top:12px;right:18px}.auth-page{padding-top:60px}@media screen{:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f4f5fa;--sidebar:#fff;--surface:#fff;--surface-2:#f0f1f7;--surface-3:#e7e9f3;--line:#cbd0df;--line-soft:#e0e3ed;--text:#222638;--muted:#535d73;--subtle:#68738a;--accent:#6945d2;--accent-2:#5534b8;--accent-rgb:105,69,210;--positive:#187348;--positive-rgb:24,115,72;--danger:#b82e49;--danger-rgb:184,46,73;--warning:#8d590e;--shadow:0 12px 35px #252b4817}:root[data-theme=light][data-accent=teal]{--accent:#14786f;--accent-2:#0c625c;--accent-rgb:20,120,111}:root[data-theme=light][data-accent=blue]{--accent:#285fb9;--accent-2:#204f9d;--accent-rgb:40,95,185}:root[data-theme=light][data-accent=rose]{--accent:#ad3277;--accent-2:#92215f;--accent-rgb:173,50,119}:root[data-theme=light] .auth-panel{background:var(--surface)}:root[data-theme=light] .auth-intro{background:linear-gradient(145deg,rgba(var(--accent-rgb),.13),transparent 65%),var(--surface)}:root[data-theme=light] .auth-copy p,:root[data-theme=light] .hero p,:root[data-theme=light] .comment p,:root[data-theme=light] .history-meta strong{color:var(--muted)}:root[data-theme=light] .field input,:root[data-theme=light] .field select,:root[data-theme=light] .field textarea,:root[data-theme=light] .control,:root[data-theme=light] .search input,:root[data-theme=light] .toolbar select{background:var(--surface);color:var(--text)}:root[data-theme=light] input::placeholder,:root[data-theme=light] textarea::placeholder{color:var(--subtle)}:root[data-theme=light] .topbar{border-color:var(--line-soft);background:#fffffff0}:root[data-theme=light] .button.primary,:root[data-theme=light] .brand-mark,:root[data-theme=light] .notification-button b{color:#fff}:root[data-theme=light] .button:hover{border-color:var(--accent)}:root[data-theme=light] .nav-icon,:root[data-theme=light] .nav-count,:root[data-theme=light] .chip{background:var(--surface-2);border-color:var(--line);color:var(--muted)}:root[data-theme=light] .nav-item:hover{background:var(--surface-2)}:root[data-theme=light] .role-pill,:root[data-theme=light] .demo-account .avatar{color:var(--text)!important}:root[data-theme=light] body:not(.pdf-page) th{background:var(--surface-2);color:var(--muted)}:root[data-theme=light] body:not(.pdf-page) td{color:var(--text)}:root[data-theme=light] body:not(.pdf-page) tbody tr:hover{background:rgba(var(--accent-rgb),.025)}:root[data-theme=light] .plan-table th:first-child,:root[data-theme=light] .plan-table td:first-child,:root[data-theme=light] .plan-table th:nth-child(2),:root[data-theme=light] .plan-table td:nth-child(2){background:var(--surface-2)}:root[data-theme=light] .plan-cell{color:var(--text)}:root[data-theme=light] .plan-cell:empty:before{color:var(--subtle)}:root[data-theme=light] .progress,:root[data-theme=light] .switch span{background:var(--line)}:root[data-theme=light] .switch span:after{background:var(--surface)}:root[data-theme=light] .switch input:checked+span{background:var(--accent)}:root[data-theme=light] .switch input:checked+span:after{background:#fff}:root[data-theme=light] .toast{background:var(--text);color:#fff}:root[data-theme=light] .story-library-section,:root[data-theme=light] .story-library-card,:root[data-theme=light] .steam-library,:root[data-theme=light] .library-access-panel{background:var(--surface);border-color:var(--line-soft)}:root[data-theme=light] .steam-title{color:var(--text)}:root[data-theme=light] .steam-title:hover{color:var(--accent)}:root[data-theme=light] .steam-meta,:root[data-theme=light] .steam-library-head p{color:var(--muted)}:root[data-theme=light] .steam-library .library-count,:root[data-theme=light] .steam-seasons a,:root[data-theme=light] .library-permissions span{background:var(--surface-2);border-color:var(--line);color:var(--muted)}:root[data-theme=light] .steam-seasons a:hover{background:var(--surface-3);color:var(--accent);border-color:var(--accent)}:root[data-theme=light] .status-needs_info,:root[data-theme=light] .approval-button.needs_info{color:#245da8}:root[data-theme=light] body:not(.pdf-page) .series-group td,:root[data-theme=light] body .workflow-plan tr.plan-sprint td{border-color:var(--line);background:var(--surface-3)!important}:root[data-theme=light] body:not(.pdf-page) .series-group.approved-group td{color:var(--positive);background:#e3f3e9!important}:root[data-theme=light] body:not(.pdf-page) .emotion-summary td{background:var(--surface-2)}:root[data-theme=light] .emotion-name-toggle:before{color:var(--accent)}:root[data-theme=light] .character-role,:root[data-theme=light] .emotion-status{background:var(--surface-3);color:var(--text)}:root[data-theme=light] .character-role--hero{color:#633492;background:#eae0fa}:root[data-theme=light] .character-role--favorite{color:#9c345a;background:#f7e2eb}:root[data-theme=light] .character-warning{color:#805211;background:#fff0d3}:root[data-theme=light] .emotion-status.approved{color:var(--positive);background:#e0f3e9}:root[data-theme=light] .ref-pictures{background:var(--surface-2)}:root[data-theme=light] .pdf-preview-toolbar,:root[data-theme=light] .pdf-preview-stage{background:var(--surface-2);border-color:var(--line)}:root[data-theme=light] .pdf-preview-viewport{background:#dfe3ec}}@media (width<=610px){.theme-toggle{padding:6px 8px;font-size:11px}.auth-theme{right:12px}.top-actions{flex-wrap:wrap}}@media print{.theme-toggle,.auth-theme{display:none!important}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}}.auth-panel .brand-title,.auth-panel .brand-subtitle{display:block}@media screen{:root[data-theme=light] .steam-cover{box-shadow:0 6px 14px #1e243c2e}:root[data-theme=light] .story-library-card:hover,:root[data-theme=light] .season-card:hover,:root[data-theme=light] .category-card:hover{box-shadow:0 10px 24px #1e243c1a}}@media (width<=610px){.top-actions .density-toggle span[aria-hidden]{display:inline!important}}@media screen{:root[data-theme=light] .steam-library{box-shadow:var(--shadow)}html[data-theme=light] .server-login{background:var(--panel);border-color:var(--line)}html[data-theme=light] .server-login p{color:var(--muted)}html[data-theme=light] .server-sync{color:#20553b;background:#e5f4eb;border-color:#8caf98}html[data-theme=light] .server-sync.error{color:#92203f;background:#ffedf0;border-color:#cd9bad}}.episode-settings h2{margin:0}.episode-count-controls{flex-wrap:wrap;align-items:flex-end;gap:10px;display:flex}.episode-count-controls .field{max-width:180px;margin:0}.episode-count-controls .button{margin-bottom:0}.item-series-cell{align-items:center;gap:6px;display:flex}.item-transfer-controls{border-top:1px solid var(--line);padding:8px 16px}.transfer-switch{cursor:pointer;align-items:center;gap:8px;font-size:13px;display:flex}.transfer-switch input{width:auto;accent-color:var(--accent)}.transfer-panel{margin-top:8px}.transfer-panel p{overflow-wrap:anywhere;margin:0 0 8px;font-size:13px}.transfer-targets{grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:6px;display:grid}.transfer-target,.transfer-handle{font:inherit;color:inherit;border:1px solid var(--line);cursor:pointer;background:0 0;border-radius:8px}.transfer-target{white-space:nowrap;padding:8px 4px;font-size:12px}.transfer-target[aria-disabled=true]{opacity:.5;cursor:default}.transfer-target:not([aria-disabled=true]):hover,.transfer-handle[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 15%,transparent)}.transfer-handle{cursor:grab;flex-shrink:0;padding:2px 6px;font-size:19px;line-height:1.2}.transfer-handle:active{cursor:grabbing}.transfer-handle:focus-visible,.transfer-target:focus-visible{outline:2px solid var(--accent);outline-offset:2px}[data-transfer-over=true]{outline:2px solid var(--accent);outline-offset:-2px;background:color-mix(in srgb,var(--accent) 18%,transparent)!important}.transfer-note{color:var(--muted);justify-content:space-between;align-items:center;gap:12px;margin-top:8px;font-size:12px;display:flex}.transfer-note .button{flex-shrink:0}.brand-mark.brand-mark-long{overflow-wrap:anywhere;text-align:center;box-sizing:border-box;flex-shrink:0;min-width:38px;padding:3px;font-size:11px;line-height:1.1}@media (width<=600px){.transfer-note{flex-direction:column;align-items:flex-start}.item-transfer-controls{padding:8px}}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.app-loading{min-height:60vh;color:var(--muted,#aca3c3);text-align:center;place-items:center;padding:24px;font:14px system-ui,sans-serif;display:grid}.app-loading .button{margin-left:8px}.toast{bottom:64px}button.server-sync{cursor:pointer;font:12px system-ui,sans-serif}button.server-sync:hover{filter:brightness(1.15)}button.server-sync:focus-visible{outline:2px solid var(--accent,#9d83ff);outline-offset:2px}html[data-theme=light] .server-sync{color:#1d5a3c;background:#e7f6ee;border-color:#9fd2b6}html[data-theme=light] .server-sync.error{color:#8a2338;background:#fde8ec;border-color:#e6a2b0}.field-label{color:var(--muted);font-size:10px;font-weight:680}.account-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.server-account .error-text,.server-login .error-text{color:#ff8799;min-height:1em}html[data-theme=light] .server-account .error-text,html[data-theme=light] .server-login .error-text{color:#b3263f}.server-login .error-text:empty{display:none}.poster-preview:not(img){background:var(--surface-2,#211c2d);display:block}@media print{.server-sync,.toast{display:none!important}}html[data-theme=light] .server-account input,html[data-theme=light] .server-account select,html[data-theme=light] .server-login input{color:#1d1830;background:#fff;border:1px solid #cfc7e3}.plan-settings-dialog{width:min(960px,100vw - 28px)}.plan-settings-dialog .plan-route-setting{gap:12px;grid-template-columns:minmax(160px,1.4fr) 180px minmax(150px,1fr) auto!important}.plan-settings-dialog .plan-route-setting>.field>label:first-child{align-items:flex-end;min-height:40px;margin-bottom:8px;line-height:1.35;display:flex}.plan-settings-dialog .plan-route-setting>.field>input,.plan-settings-dialog .plan-route-setting>.field>select{min-width:0;height:42px}.plan-settings-dialog .plan-route-setting>.button{min-height:42px;margin-top:48px}.plan-settings-dialog .plan-route-setting .checkbox-line{justify-content:flex-start;align-items:center;gap:8px;min-height:32px;margin:8px 0 0;font-size:13px;font-weight:400;line-height:1.4;display:flex}.plan-settings-dialog .checkbox-line input[type=checkbox]{flex:0 0 16px;width:16px;height:16px;min-height:0;margin:0;padding:0}.plan-settings-dialog .plan-route-setting .field small{margin-top:8px;display:block}.plan-import-columns input[type=text]{width:100%;min-width:140px}.plan-import-columns .import-check{white-space:nowrap}.plan-import-columns td{vertical-align:middle}@media (width<=850px){.plan-settings-dialog .plan-route-setting{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.plan-settings-dialog .plan-route-setting>.button{place-self:end start;margin:0}}@media (width<=550px){.plan-settings-dialog .plan-route-setting{grid-template-columns:1fr!important}.plan-settings-dialog .plan-route-setting>.field>label:first-child{min-height:0}.plan-settings-dialog .dialog-body{padding:16px}.plan-settings-dialog .plan-route-setting>.button{margin:0}}body:not(.pdf-page) .series-grid{grid-template-columns:none;grid-auto-columns:minmax(88px,1fr);grid-auto-flow:column}
