:root{--ink:#f6f8fb;--muted:#9ca8b8;--line:rgba(255,255,255,.1);--panel:rgba(17,24,34,.96);--panel2:#0a121b;--page:#070b10;--teal:#2dd4bf;--gold:#f2b84b;--red:#f04452;--green:#2dcf84;--blue:#4a86c8;--shadow:0 22px 70px rgba(0,0,0,.32)}
*{box-sizing:border-box}html{background:var(--page)}body{margin:0;min-height:100vh;color:var(--ink);background:linear-gradient(115deg,rgba(45,212,191,.10) 0 8%,transparent 8% 32%,rgba(74,134,200,.08) 32% 35%,transparent 35% 72%,rgba(240,68,82,.07) 72% 76%,transparent 76%),linear-gradient(180deg,#08111a 0%,var(--page) 48%,#090d13 100%);font-family:"Segoe UI",Inter,system-ui,sans-serif;font-size:14px;line-height:1.5}body:before{position:fixed;inset:0;pointer-events:none;content:"";background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);background-size:42px 42px}button,input,select{font:inherit}
.credit-workspace{position:relative;width:min(1540px,calc(100% - 34px));margin:auto;padding:24px 0 55px}
.module-header,.module-toolbar,.toolbar,.panel,.metrics article{border:1px solid var(--line);background:var(--panel);box-shadow:var(--shadow)}
.module-header{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(520px,680px);gap:30px;align-items:center;min-height:260px;overflow:hidden;padding:30px 38px;border-radius:16px;background:linear-gradient(125deg,rgba(43,85,139,.36),#101923 48%,#0b1420)}.module-header:after{position:absolute;right:-65px;top:-160px;width:360px;height:430px;border:18px solid rgba(37,87,151,.35);border-left-color:rgba(255,255,255,.55);border-radius:50%;content:"";transform:rotate(-18deg)}.module-heading,.header-actions{position:relative;z-index:1}.studio-brand{display:flex;align-items:center;gap:16px;margin-bottom:24px}.studio-brand img{width:72px;height:72px;object-fit:cover;border:2px solid #d6e1ef;border-radius:50%;box-shadow:0 8px 24px #0008}.studio-brand strong,.studio-brand span{display:block}.studio-brand strong{font-size:19px;letter-spacing:.12em}.studio-brand span{margin-top:4px;color:#aab6c7;font-size:10px;letter-spacing:.35em}.module-heading em,.module-toolbar em{display:block;margin-bottom:6px;color:#93b9e6;font-size:11px;font-style:normal;font-weight:900;letter-spacing:.08em}.module-heading h1{margin:0 0 8px;color:#fff;font-size:clamp(34px,4vw,52px);line-height:1;letter-spacing:-.025em}.module-heading p{margin:0;color:#cbd4df;font-size:16px}
.header-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:26px 24px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(17,29,44,.9);box-shadow:0 18px 48px #0007}.header-actions .secondary-actions{display:flex;gap:8px}.header-actions button,.header-actions .headerLink{min-height:42px}
button,.headerLink,.module-navigation a{display:inline-flex;min-height:40px;align-items:center;justify-content:center;padding:0 14px;color:#f3f7fc;border:1px solid #405069;border-radius:8px;background:linear-gradient(145deg,#243449,#111c2b);font-weight:750;text-decoration:none;cursor:pointer;transition:.16s}button:hover,.headerLink:hover,.module-navigation a:hover{border-color:#6d9bd1;background:linear-gradient(145deg,#315f95,#17375f)}button.primary{border-color:#4f83bd;background:linear-gradient(135deg,#3d78b9,#204976)}button.primary:hover{background:linear-gradient(135deg,#4b86c8,#295989)}button:disabled{opacity:.5;cursor:not-allowed}.headerLink{border-color:#6589b5;background:#172d49}.secondary-actions button{color:#c9d5e4;background:#101a27}
.module-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:14px 0;padding:16px 18px;border-radius:11px}.module-toolbar h2{margin:0 0 2px;font-size:24px}.module-toolbar p{margin:0;color:var(--muted);font-size:13px}.module-navigation{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.module-navigation button.active{border-color:#73a6df;background:linear-gradient(135deg,#4b86c8,#234f80);box-shadow:0 8px 22px #0005}
.toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:14px;padding:16px 18px;border-radius:11px}label{display:grid;gap:6px;color:var(--muted);font-size:10px;font-weight:900;text-transform:uppercase}.toolbar label{width:min(560px,100%)}input,select{width:100%;height:40px;padding:0 12px;color:var(--ink);border:1px solid #31445c;border-radius:8px;background:#070e15;outline:0}input:focus,select:focus{border-color:#6395cd;box-shadow:0 0 0 3px rgba(74,134,200,.18)}
.pill{display:inline-flex;min-height:32px;align-items:center;padding:5px 11px;color:#d9e9fb;border:1px solid #4e78aa;border-radius:999px;background:#17385f;font-size:11px;font-weight:850;white-space:nowrap;text-transform:uppercase}.pill.ok{color:#bffbf2;border-color:#257d72;background:rgba(45,212,191,.12)}.pill.warn{color:#ffe19a;border-color:#8b6b2f;background:#53390b52}.pill.bad{color:#ffb3bb;border-color:#8b3a48;background:#542331}
.view{display:none}.view.active{display:block}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-bottom:14px}.metrics article{position:relative;min-height:116px;overflow:hidden;padding:17px;border-radius:10px}.metrics article:after{position:absolute;right:-12px;bottom:-25px;width:75px;height:75px;border-radius:50%;content:"";background:rgba(74,134,200,.12)}.metrics article.credit:after{background:rgba(45,212,191,.12)}.metrics article.potential:after{background:rgba(242,184,75,.13)}.metrics span,.metrics small{display:block;color:var(--muted)}.metrics span{font-size:13px}.metrics strong{display:block;margin:8px 0 4px;color:#fff;font-size:27px}.metrics .credit strong{color:#7ce4d6}.metrics .potential strong{color:#f3c76f}.metrics small{font-size:11px}.metrics small.warnText{color:#ffd77d}.metrics small.okText{color:#8ff0c6}
.grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(360px,.85fr);gap:14px}.panel{margin-bottom:14px;padding:18px;border-radius:11px}.panel h2{margin:0 0 16px;color:#fff;font-size:24px}.panel p{color:var(--muted)}.panel dl{margin:0}.panel dl>div{display:flex;justify-content:space-between;gap:24px;padding:11px 0;border-bottom:1px solid var(--line)}.panel dt{color:#aeb9c8}.panel dd{margin:0;color:#fff;font-weight:800;text-align:right}.panel dl>div.total{margin-top:9px;padding:13px 14px;border:1px solid #2e716d;border-radius:9px;background:rgba(45,212,191,.1)}.panel dl>div.total dt,.panel dl>div.total dd{color:#7ce4d6;font-weight:900}.note{border-left:4px solid var(--gold);background:#17150f}.note b{color:#f3c76f}.note p{margin:7px 0 0;color:#c7b98f}
.head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:18px}.head h2{margin-bottom:3px}.head p{max-width:720px;margin:0}.table-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.table-actions button{min-height:38px;font-size:12px}#clearImport{color:#ffabb4;border-color:#8b3a48;background:#542331}
.scroll{max-width:100%;overflow:auto;border:1px solid #293b51;border-radius:10px;background:#07111b}table{width:100%;min-width:1540px;border-collapse:collapse;table-layout:fixed}th{position:sticky;top:0;z-index:2;height:46px;padding:8px 10px;color:#aab6c7;border-bottom:1px solid #32445a;background:#09121d;font-size:10px;font-weight:900;text-align:left;text-transform:uppercase}td{height:54px;padding:7px 8px;color:#e6edf7;border-bottom:1px solid #243348;vertical-align:middle}tbody tr:hover td{background:#0e1b2a}td input,td select{min-width:0;height:38px;font-size:12px}td .wide{width:100%}td button{min-height:36px;padding:0 11px;font-size:12px}th:nth-child(1){width:250px}th:nth-child(2){width:105px}th:nth-child(3){width:135px}th:nth-child(4){width:180px}th:nth-child(5){width:95px}th:nth-child(6){width:155px}th:nth-child(7){width:125px}th:nth-child(8){width:115px}th:nth-child(9){width:105px}th:nth-child(10){width:145px}th:nth-child(11){width:80px}.del{width:38px;padding:0;color:#ff9baa;border-color:#8b3a48;background:#542331;font-size:18px}
#monthBars{display:grid;gap:14px}.month-row{display:grid;grid-template-columns:64px 1fr 90px;align-items:center;gap:12px}.month-row span{color:#aab6c7}.month-row strong{text-align:right;color:#fff}.bar{height:9px;overflow:hidden;border-radius:999px;background:#202d3d}.bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2f6fae,#4b91d5)}
#checksList{display:grid;gap:10px}#checksList>.check{display:grid;grid-template-columns:18px minmax(0,1fr) 110px;align-items:center;gap:14px;min-height:70px;padding:13px 16px;border:1px solid #293b51;border-radius:9px;background:#08131f}#checksList>.check>i{display:grid;width:18px;height:18px;place-items:center;border:2px solid #35b98a;border-radius:50%;background:rgba(45,207,132,.12)}#checksList>.check>i:after{content:"";width:6px;height:3px;border:solid #82efc0;border-width:0 0 2px 2px;transform:rotate(-45deg) translateY(-1px)}#checksList>.check.fail>i{border-color:#d0a040;background:rgba(242,184,75,.12)}#checksList>.check.fail>i:after{width:2px;height:8px;border:0;border-radius:2px;background:#ffd77d;box-shadow:0 6px 0 -1px #ffd77d;transform:none}#checksList>.check>div{min-width:0;text-align:left}#checksList>.check b{display:block;color:#f7f9fc;font-size:14px;line-height:1.25}#checksList>.check span{display:block;margin-top:4px;color:#b5c0ce;line-height:1.3}#checksList>.check>strong{justify-self:end;width:110px;color:#c9f5e5;font-size:12px;text-align:right;white-space:nowrap}#checksList>.check.fail>strong{color:#ffd77d}
.sogei-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.sogei-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.sogei-preview{margin:12px 0 14px;padding:14px;border:1px solid #2d4662;border-radius:10px;background:#08131f}.sogei-preview h3{margin:0;color:#fff;font-size:18px}.sogei-preview dl{margin:0 0 12px}.sogei-preview dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.sogei-preview dt{color:#aeb9c8}.sogei-preview dd{margin:0;color:#fff;font-weight:750;overflow-wrap:anywhere}.sogei-preview pre{max-height:360px;overflow:auto;margin:0;padding:12px;border:1px solid #263950;border-radius:8px;background:#050b11;color:#dbe7f5;white-space:pre-wrap;font:13px/1.5 "Segoe UI",Arial,sans-serif}.sogei-scroll table{min-width:1380px}.sogei-scroll th:nth-child(1){width:70px}.sogei-scroll th:nth-child(2){width:260px}.sogei-scroll th:nth-child(3){width:170px}.sogei-scroll th:nth-child(4){width:210px}.sogei-scroll th:nth-child(5){width:190px}.sogei-scroll th:nth-child(6){width:240px}.sogei-scroll th:nth-child(7){width:150px}.sogei-scroll th:nth-child(8){width:90px}.sogei-scroll input[type="checkbox"]{width:18px;height:18px;accent-color:var(--teal)}.sogei-scroll .mail-ready{color:#bffbf2}.sogei-scroll .mail-missing{color:#ffd77d}.sogei-scroll .mail-sent{display:inline-block;color:#8ff0c6;font-weight:800}.sogei-scroll td:last-child small{display:block;margin:4px 0;color:var(--muted)}.sogei-scroll button.mini,.sogei-scroll .unlock-sogei{padding:6px 10px;border-radius:8px;font-size:12px}.hint{color:var(--muted)}
#toast{position:fixed;right:24px;bottom:24px;z-index:10000;max-width:440px;padding:13px 16px;color:#fff;border:1px solid #4f7daf;border-left:4px solid #70a8e7;border-radius:10px;background:#102039;box-shadow:0 18px 45px #000b;opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s}#toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1180px){.module-header{grid-template-columns:1fr}.header-actions{justify-content:flex-start}.metrics{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}}
@media(max-width:760px){.credit-workspace{width:calc(100% - 16px);padding-top:8px}.module-header{padding:20px}.studio-brand img{width:58px;height:58px}.module-heading h1{font-size:34px}.header-actions{padding:16px}.header-actions>*{flex:1 1 180px}.header-actions .secondary-actions{display:contents}.module-toolbar,.toolbar,.head{align-items:stretch;flex-direction:column}.module-navigation{justify-content:flex-start}.metrics{grid-template-columns:1fr}.table-actions,.sogei-actions{justify-content:flex-start}.sogei-settings{grid-template-columns:1fr}.month-row{grid-template-columns:54px 1fr 72px}#checksList>.check{grid-template-columns:18px minmax(0,1fr);gap:12px}#checksList>.check>strong{grid-column:2;justify-self:start;width:auto;text-align:left}}
