:root{color-scheme:dark;--bg:#08090b;--panel:#111317;--line:#23272f;--text:#f4f6f8;--muted:#8d96a3;--accent:#d7ff52;--accent2:#b9dc42;--danger:#ff6470;--warning:#ffbd59;--shadow:0 20px 60px rgba(0,0,0,.32)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{overflow-x:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer}
.noise{position:fixed;inset:0;pointer-events:none;opacity:.03;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E")}
#app{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--line);background:rgba(10,11,14,.92);backdrop-filter:blur(20px);padding:28px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 30px}.brand-mark,.modal-logo{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--accent);color:#0a0b0c;font-weight:950;letter-spacing:-.05em}.brand-name{font-weight:850;letter-spacing:-.03em}.brand-sub{font-size:11px;color:var(--muted);margin-top:2px;text-transform:uppercase;letter-spacing:.13em}.nav{display:flex;flex-direction:column;gap:6px}.nav-item{appearance:none;border:0;background:transparent;color:var(--muted);border-radius:12px;padding:11px 12px;text-align:left;display:flex;gap:12px;align-items:center;font-weight:650;transition:.18s ease}.nav-item b{font-weight:650}.nav-item span{width:18px;text-align:center;color:#69717d}.nav-item:hover{background:#15181c;color:var(--text)}.nav-item.active{background:#1a1d21;color:var(--text);box-shadow:inset 0 0 0 1px #24282e}.nav-item.active span{color:var(--accent)}.sidebar-bottom{margin-top:auto;padding:14px 10px 0;border-top:1px solid var(--line)}.connection{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-bottom:12px}.connection i{width:8px;height:8px;border-radius:50%;background:var(--warning);box-shadow:0 0 16px currentColor}.connection.ok i{background:var(--accent)}.connection.error i{background:var(--danger)}
.main{padding:36px 42px 80px;max-width:1600px;width:100%;margin:0 auto}.topbar{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:30px}.eyebrow,.panel-kicker{font-size:10px;font-weight:850;letter-spacing:.18em;color:var(--accent);text-transform:uppercase}h1{font-size:34px;margin:7px 0 0;letter-spacing:-.045em}h2{font-size:20px;margin:6px 0 0;letter-spacing:-.03em}p{color:var(--muted);line-height:1.55}.top-actions{display:flex;align-items:center;gap:10px}.version{font-size:12px;color:var(--muted);padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:#0c0e11}.icon-button,.ghost,.primary{border:0;transition:.16s ease}.icon-button{width:36px;height:36px;border-radius:11px;background:#15181c;color:var(--text);border:1px solid var(--line)}.icon-button:hover{border-color:#3a404a;transform:translateY(-1px)}.primary{background:var(--accent);color:#090a0b;font-weight:850;border-radius:12px;padding:11px 16px}.primary:hover{background:#e0ff74;transform:translateY(-1px)}.primary:disabled{opacity:.45;cursor:not-allowed;transform:none}.ghost{background:#171a1f;color:var(--text);border:1px solid var(--line);border-radius:12px;padding:10px 14px;font-weight:700}.ghost:hover{border-color:#404650;background:#1c2026}.small{font-size:11px;padding:7px 10px}.wide{width:100%;padding:13px 16px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.metric,.panel{background:linear-gradient(180deg,rgba(19,22,27,.94),rgba(15,17,21,.96));border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.metric{padding:20px}.metric-label{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.12em}.metric-value{font-size:32px;font-weight:900;letter-spacing:-.055em;margin-top:13px}.metric-foot{font-size:11px;color:#69727f;margin-top:8px}.grid-2{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:16px}.panel{padding:22px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.muted{font-size:11px;color:var(--muted)}.stack{display:flex;flex-direction:column;gap:10px}.empty{min-height:150px;border:1px dashed #252a31;border-radius:16px;display:grid;place-items:center;color:#626a76;font-size:13px;text-align:center;padding:24px}
.job{border:1px solid var(--line);background:#0d0f12;border-radius:16px;padding:14px 15px}.job-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.job-title{font-weight:780;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.job-meta{font-size:11px;color:var(--muted);margin-top:4px}.status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;padding:6px 9px;background:#1b1e23;color:#aab2bd}.status.running,.status.uploading,.status.rendering,.status.publishing{color:#dffb79;background:#202813}.status.completed,.status.published,.status.rendered,.status.uploaded{color:#a6ffc1;background:#12251a}.status.failed{color:#ff9aa3;background:#2a1417}.status.queued,.status.draft{color:#cbd4df;background:#181c22}.status.scheduled{color:#9fc7ff;background:#121f33}.progress-row{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;margin-top:13px}.progress-track{height:5px;background:#1d2126;border-radius:999px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,var(--accent2),var(--accent));border-radius:999px;transition:width .35s ease}.progress-label{font-size:10px;color:var(--muted);min-width:36px;text-align:right}.job-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.phase{font-size:11px;color:#aeb6c0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.job-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.action-link{font-size:10px;font-weight:750;color:#c8d0da;border:0;background:transparent;padding:4px 0;text-decoration:none}.action-link:hover{color:var(--accent)}.compact .job{padding:12px 13px}.compact .progress-row{margin-top:9px}
.section-intro{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:18px}.section-intro h2{font-size:28px}.section-intro p{margin:7px 0 0;font-size:13px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.project-card{position:relative;overflow:hidden;border:1px solid var(--line);background:linear-gradient(145deg,#12151a,#0d0f12);border-radius:20px;padding:20px;min-height:210px;display:flex;flex-direction:column;cursor:pointer;transition:.16s ease}.project-card:hover{transform:translateY(-2px);border-color:#39404a}.project-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.project-card:after{content:"";position:absolute;width:170px;height:170px;border-radius:50%;right:-95px;top:-100px;background:radial-gradient(circle,rgba(215,255,82,.11),rgba(215,255,82,0) 70%)}.project-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.project-id{font-size:10px;color:var(--accent);font-weight:850;letter-spacing:.12em;text-transform:uppercase}.project-title{font-size:21px;font-weight:850;letter-spacing:-.035em;margin-top:14px;line-height:1.12}.project-scenes{font-size:12px;color:var(--muted);margin-top:9px}.project-profiles{display:flex;flex-direction:column;gap:5px;margin-top:12px;font-size:10px;color:#aeb6c0;letter-spacing:.04em}.project-profiles span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-actions{margin-top:auto;display:flex;gap:8px;padding-top:24px}.view{display:none}.view.active{display:block}
.youtube-hero{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;overflow:hidden;position:relative}.youtube-hero:after{content:"";position:absolute;right:-120px;top:-190px;width:380px;height:380px;border-radius:50%;background:radial-gradient(circle,rgba(255,50,60,.13),transparent 70%)}.youtube-actions{display:flex;gap:8px;z-index:1}.modal-backdrop{position:fixed;inset:0;z-index:50;background:rgba(2,3,4,.78);backdrop-filter:blur(16px);display:grid;place-items:center;padding:20px}.modal-backdrop.hidden{display:none}.modal{width:min(520px,100%);max-height:88vh;overflow:auto;background:#111419;border:1px solid #2a2f37;border-radius:24px;padding:25px;box-shadow:0 30px 100px rgba(0,0,0,.65)}.auth-card{text-align:center;width:min(420px,100%);padding:34px}.auth-card .modal-logo{margin:0 auto 28px}.auth-card h2{font-size:26px}.auth-card p{font-size:13px;margin:12px 0 22px}.modal-wide{width:min(920px,100%)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}
input,textarea,select{width:100%;border:1px solid #2a2f37;background:#0a0c0f;color:var(--text);border-radius:12px;padding:12px 13px;outline:none;transition:.15s}input:focus,textarea:focus,select:focus{border-color:#59626f;box-shadow:0 0 0 3px rgba(215,255,82,.05)}label{display:block;font-size:11px;color:var(--muted);font-weight:700;margin-bottom:14px}label input,label textarea,label select{margin-top:7px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.error-text{min-height:20px;color:#ff8992;font-size:11px;margin:7px 0 10px}pre{background:#090b0e;border:1px solid var(--line);padding:16px;border-radius:14px;white-space:pre-wrap;word-break:break-word;color:#b8c1cc;font:12px/1.55 "SFMono-Regular",Consolas,monospace;max-height:65vh;overflow:auto}
.artifacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:11px}.artifact{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#12151a;border:1px solid var(--line);border-radius:12px;padding:10px}.artifact-name{font-size:10px;color:#c2cad4;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.artifact-actions{display:flex;gap:8px;flex:none}.toast-stack{position:fixed;right:24px;bottom:24px;z-index:80;display:flex;flex-direction:column;gap:9px}.toast{background:#181c21;border:1px solid #303641;color:var(--text);padding:11px 14px;border-radius:12px;box-shadow:var(--shadow);font-size:12px;animation:toast-in .2s ease}.toast.error{border-color:#58252a;color:#ffb1b7}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:1100px){#app{grid-template-columns:78px minmax(0,1fr)}.sidebar{padding:24px 12px}.brand>div:not(.brand-mark),.nav-item b{display:none}.brand{padding-left:8px}.nav-item{justify-content:center;padding:12px}.nav-item span{font-size:16px}.sidebar-bottom .connection span,.sidebar-bottom .ghost{display:none}.metrics{grid-template-columns:repeat(2,1fr)}.project-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){#app{display:block}.sidebar{position:fixed;z-index:30;left:12px;right:12px;bottom:12px;top:auto;width:auto;height:58px;border:1px solid var(--line);border-radius:18px;padding:7px;background:rgba(14,16,19,.93);flex-direction:row}.brand,.sidebar-bottom{display:none}.nav{display:grid;grid-template-columns:repeat(4,1fr);width:100%;gap:4px}.nav-item{justify-content:center}.nav-item span{font-size:18px}.main{padding:24px 16px 96px}.topbar{align-items:center}.topbar .eyebrow{display:none}h1{font-size:27px}.grid-2{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)}.metric{padding:16px}.project-grid{grid-template-columns:1fr}.panel{padding:17px}.youtube-hero{display:block}.youtube-actions{margin-top:18px}.form-row{grid-template-columns:1fr}.artifacts{grid-template-columns:1fr}}

.project-detail-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:16px;position:relative;overflow:hidden}
.project-detail-hero:after{content:"";position:absolute;right:-120px;top:-180px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(215,255,82,.12),transparent 70%);pointer-events:none}
.project-detail-hero h2{font-size:30px;margin-top:10px}.project-detail-hero p{margin:8px 0 0;font-size:12px}.project-detail-actions{display:flex;gap:8px;z-index:1;flex:none}
.back-link{display:inline-block;color:#aeb6c0;text-decoration:none;font-size:11px;font-weight:750;margin-bottom:18px}.back-link:hover{color:var(--accent)}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.detail-grid .panel h2{margin-bottom:18px}
.detail-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.detail-value{border:1px solid var(--line);background:#0d0f12;border-radius:14px;padding:12px;min-width:0}.detail-value span{display:block;font-size:9px;color:#6f7884;text-transform:uppercase;letter-spacing:.12em;margin-bottom:7px}.detail-value strong{display:block;font-size:12px;color:#d8dee7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail-scenes-panel{margin-bottom:16px}.scene-list{display:flex;flex-direction:column;gap:9px}.scene-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;border:1px solid var(--line);background:#0d0f12;border-radius:16px;padding:14px}.scene-number{width:42px;height:42px;border-radius:12px;background:#15191e;border:1px solid #252b33;display:grid;place-items:center;color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.08em}.scene-body{min-width:0}.scene-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.scene-head strong{font-size:12px}.scene-head span{font-size:9px;color:#8d96a3;text-transform:uppercase;letter-spacing:.1em}.scene-body p{font-size:12px;margin:8px 0 0;color:#bac2cc;line-height:1.45}.scene-media{font-size:10px;color:#6f7884;margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.project-detail-hero{display:block}.project-detail-actions{margin-top:18px}.detail-grid{grid-template-columns:1fr}.detail-values{grid-template-columns:1fr}.scene-card{grid-template-columns:40px minmax(0,1fr);padding:12px}.scene-number{width:36px;height:36px}}

.project-title-row{display:flex;align-items:flex-start;gap:14px;justify-content:space-between}.project-state{margin-top:2px;flex:none}
.project-video-panel{margin-bottom:16px}.project-video-layout{display:grid;grid-template-columns:minmax(230px,360px) minmax(0,1fr);gap:20px;align-items:start}.project-video{display:block;width:100%;aspect-ratio:9/16;max-height:620px;background:#050607;border:1px solid var(--line);border-radius:18px;object-fit:contain}.project-video-info{display:flex;flex-direction:column;gap:12px}.project-video-info>.detail-value{max-width:420px}.project-video-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}.button-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.publication-summary{display:flex;align-items:center;gap:10px;padding-top:4px;color:var(--muted);font-size:11px}
.failure-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px;border-color:#4b2328;background:linear-gradient(180deg,rgba(42,20,23,.92),rgba(24,15,17,.96))}.failure-panel h2{color:#ffd8db}.failure-panel p{margin:8px 0 0;color:#ff9aa3;font-size:12px}.error-link{color:#ff9aa3}.error-link:hover{color:#ffc1c6}
.detail-history-panel{margin-bottom:16px}
@media(max-width:900px){.project-video-layout{grid-template-columns:1fr}.project-video{width:min(360px,100%)}}
@media(max-width:760px){.project-title-row{display:block}.project-state{margin-top:12px}.failure-panel{display:block}.failure-panel button{margin-top:14px}.project-detail-actions{flex-wrap:wrap}.project-detail-actions .primary{width:100%}}


/* Структурированный интерфейс */
.nav-label{
  padding:0 12px 9px;
  font-size:9px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#5f6874;
}
.page-intro{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.page-intro h2{
  margin:0;
  font-size:22px;
}
.page-intro p{
  margin:7px 0 0;
  font-size:13px;
  max-width:760px;
}
.section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:28px 0 14px;
}
.section-heading h2{
  margin-top:6px;
  font-size:22px;
}
.panel-kicker{
  line-height:1.2;
}
.panel-head h2{
  margin-top:6px;
}
.metric{
  min-height:126px;
  display:flex;
  flex-direction:column;
}
.metric-value{
  margin-top:auto;
  padding-top:12px;
}
.metric-foot{
  min-height:16px;
}
.project-card{
  min-height:240px;
}
.project-card-top{
  position:relative;
  z-index:1;
}
.project-title,
.project-scenes,
.project-profiles,
.project-actions{
  position:relative;
  z-index:1;
}
.project-scenes{
  margin-top:10px;
}
.project-profiles{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  margin-top:16px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.project-profiles span{
  padding:9px 0;
}
.project-profiles span+span{
  border-top:1px solid var(--line);
}
.project-actions{
  align-items:center;
}
.project-actions .ghost,
.project-actions .primary{
  flex:1;
}
.job{
  padding:16px;
}
.job-meta{
  line-height:1.45;
}
.job-bottom{
  align-items:flex-end;
}
.status{
  text-transform:none;
  letter-spacing:0;
  font-size:10px;
  padding:6px 10px;
}
.detail-grid{
  align-items:stretch;
}
.detail-grid>.panel{
  height:100%;
}
.detail-value{
  min-height:70px;
}
.detail-value span{
  text-transform:none;
  letter-spacing:.06em;
  font-size:10px;
}
.detail-value strong{
  font-size:12px;
  line-height:1.45;
}
.scene-head span{
  text-transform:none;
  letter-spacing:.05em;
}
.youtube-hero h2{
  font-size:26px;
}
.youtube-hero p{
  margin:8px 0 0;
  max-width:720px;
}
.auth-card p{
  max-width:340px;
  margin-left:auto;
  margin-right:auto;
}
@media(max-width:1100px){
  .nav-label{display:none}
}
@media(max-width:760px){
  .page-intro{
    display:block;
  }
  .page-intro .muted{
    display:block;
    margin-top:10px;
  }
  .section-heading{
    margin-top:22px;
  }
  .project-actions{
    flex-wrap:wrap;
  }
  .project-actions .ghost,
  .project-actions .primary{
    flex:1 1 44%;
  }
}
