:root{
    --bg:#050505;
    --panel:#101113;
    --panel2:#17191c;
    --line:#2a2d31;
    --text:#f5f5f5;
    --muted:#9ca3af;
    --green:#c8ff00;
    --green2:#8fdc00;
    --danger:#ff5c5c;
    --radius-xl:22px;
    --radius-lg:18px;
    --glass:rgba(17,19,22,.58);
    --glass-strong:rgba(17,19,22,.78);
    --glow:0 0 0 1px rgba(200,255,0,.12),0 20px 60px rgba(0,0,0,.45);
    --card-size:260px;
}

*{box-sizing:border-box}

body{
    margin:0;
    background:radial-gradient(circle at top right,#172000 0,#050505 35%,#050505 100%);
    color:var(--text);
    font-family:Inter,Arial,sans-serif;
}

a{
    color:inherit;
    text-decoration:none;
}

.logo{
    height:38px;
    object-fit:contain;
}

.app{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:285px;
    border-right:1px solid rgba(255,255,255,.08);
    padding:24px;
    background:linear-gradient(180deg,rgba(24,26,30,.72),rgba(8,9,10,.62));
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    position:sticky;
    top:0;
    height:100vh;
    overflow:auto;
    box-shadow:0 18px 50px rgba(0,0,0,.28);
}

.brand{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:34px;
}

.brand span{
    color:var(--green);
    font-size:13px;
    font-weight:800;
    letter-spacing:.08em;
}

.sidebar-main-menu{
    margin:0 -6px 18px;
    padding:12px 6px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:18px;
    background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.client-brand{
    display:block;
    text-align:left;
}

.client-brand .logo{
    height:92px;
    max-width:220px;
    display:block;
    margin-bottom:18px;
}

.section-label{
    font-size:12px;
    color:var(--muted);
    text-transform:uppercase;
    margin:26px 0 10px;
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,.08);
}

.filter-menu{
    margin:0;
}

.filter-menu .section-label{
    cursor:pointer;
    list-style:none;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    user-select:none;
}

.filter-menu .section-label::-webkit-details-marker{
    display:none;
}

.filter-menu .section-label::after{
    content:"+";
    color:var(--green);
    font-size:18px;
    line-height:1;
    transition:transform .22s ease;
}

.filter-menu[open] .section-label::after{
    transform:rotate(45deg);
}

.filter-menu-content{
    animation:dopeFadeUp .22s ease both;
}

.brand + .filter,
.brand + .section-label,
.brand + .filter-menu .section-label,
.sidebar-main-menu + .filter-menu .section-label,
.sidebar > .filter:first-of-type{
    border-top:0;
    padding-top:10px;
}

.filter{
    display:block;
    padding:10px 12px;
    border-radius:999px;
    color:#d1d5db;
    font-size:14px;
    margin-bottom:6px;
    border:1px solid transparent;
    transition:all .22s ease;
}

.filter + .filter{
    border-top:1px solid rgba(255,255,255,.045);
}

.filter:hover,
.filter.active{
    background:linear-gradient(135deg,rgba(200,255,0,.18),rgba(200,255,0,.05));
    border-color:rgba(200,255,0,.28);
    color:var(--green);
    transform:translateX(3px);
}

.filter.has-content{
    border-color:rgba(200,255,0,.35);
    color:var(--green);
    background:rgba(200,255,0,.04);
}

.filter.has-content::after{
    content:"•";
    float:right;
    color:var(--green);
    font-size:18px;
    line-height:1;
}

.period-month{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-left:20px;
}

.period-month b{
    background:rgba(200,255,0,.18);
    color:var(--green);
    border-radius:999px;
    padding:3px 9px;
    font-size:12px;
}

.project-filter{
    border-radius:24px;
}

.project-filter-main{
    min-width:0;
    display:flex;
    align-items:center;
    gap:10px;
}

.project-filter-main > span:last-child{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
}

.project-avatar{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:1px solid rgba(200,255,0,.22);
    border-radius:999px;
    background:rgba(200,255,0,.12);
    color:var(--green);
    font-weight:900;
}

.project-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.project-avatar.small{
    width:34px;
    height:34px;
    font-size:13px;
}

.project-avatar.medium{
    width:48px;
    height:48px;
    font-size:17px;
}

.project-avatar.large{
    width:82px;
    height:82px;
    font-size:30px;
    box-shadow:0 18px 45px rgba(0,0,0,.35);
}

.project-hero-title{
    display:flex;
    align-items:center;
    gap:20px;
    margin:10px 0;
}

.project-hero-title h1{
    margin:0;
}

.taglist{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.tag{
    border:1px solid rgba(255,255,255,.08);
    padding:9px 11px;
    border-radius:999px;
    color:#cfd3d8;
    font-size:13px;
}

.tag.active{
    border-color:var(--green);
    color:var(--green);
    background:rgba(200,255,0,.09);
}

.main{
    flex:1;
    padding:28px 36px;
}

.client-main{
    padding-bottom:110px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:36px;
}

.search{
    background:var(--panel);
    border:1px solid var(--line);
    color:var(--text);
    padding:14px 16px;
    border-radius:999px;
    min-width:320px;
}

.btn{
    border:0;
    border-radius:999px;
    padding:11px 18px;
    font-weight:800;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    transition:all .22s ease;
    box-shadow:0 10px 24px rgba(0,0,0,.25);
}

.btn.green{
    background:linear-gradient(135deg,#d7ff35 0%,#9dff00 48%,#57c900 100%);
    color:#0b0b0b;
}

.btn.dark{
    background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
    border:1px solid rgba(255,255,255,.10);
    color:#fff;
}

.btn.danger{
    background:var(--danger);
    color:#fff;
}

.btn:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 34px rgba(200,255,0,.16);
}

.hero{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:24px;
    animation:dopeFadeUp .45s ease both;
}

.hello{
    color:#d1d5db;
}

.hello strong{
    color:var(--green);
}

h1{
    font-size:42px;
    line-height:1;
    margin:10px 0;
}

.muted{
    color:var(--muted);
}

.stat,
.period-panel,
.activebar,
.card,
.stream-card,
.asset-card,
.form-wrap,
.table,
.login-card{
    background:linear-gradient(180deg,rgba(24,26,30,.72),rgba(8,9,10,.62));
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:var(--radius-xl);
    box-shadow:0 18px 50px rgba(0,0,0,.28);
}

.stat{
    padding:22px;
    min-width:220px;
}

.stat b{
    display:block;
    color:var(--green);
    font-size:34px;
}

.activebar{
    padding:14px 16px;
    margin:28px 0;
    animation:dopeFadeUp .45s ease both;
}

.pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin:4px 8px 4px 0;
    background:var(--panel2);
    border:1px solid var(--line);
    padding:8px 11px;
    border-radius:999px;
    color:#d8dde3;
    font-size:13px;
}

.period-panel{
    margin:28px 0;
    overflow:hidden;
    animation:dopeFadeUp .45s ease both;
}

.project-overview{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:14px;
    margin:28px 0 4px;
}

.project-card{
    display:grid;
    gap:8px;
    min-height:132px;
    padding:18px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    background:linear-gradient(180deg,rgba(24,26,30,.72),rgba(8,9,10,.62));
    box-shadow:0 18px 50px rgba(0,0,0,.28);
    transition:all .22s ease;
}

.project-card-avatar{
    margin-bottom:4px;
}

.project-card:hover{
    transform:translateY(-3px);
    border-color:rgba(200,255,0,.38);
    box-shadow:var(--glow);
}

.project-card span{
    color:var(--muted);
    font-size:12px;
    text-transform:uppercase;
}

.project-card strong{
    font-size:20px;
}

.project-card b{
    color:var(--green);
    font-size:13px;
}

.project-card.empty{
    opacity:.62;
}

.period-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 24px;
    border-left:3px solid var(--green);
}

.period-head strong{
    font-size:24px;
}

.period-head p{
    margin:6px 0 0;
    color:var(--green);
}

.group-title{
    margin:32px 0 18px;
    font-size:20px;
    text-transform:uppercase;
    letter-spacing:.04em;
    animation:dopeFadeUp .45s ease both;
}

.group-title span{
    color:var(--green);
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(var(--card-size),var(--card-size)));
    gap:20px;
    align-items:start;
}

.card,
.stream-card,
.asset-card{
    overflow:hidden;
    animation:dopeFadeUp .45s ease both;
    transition:all .25s ease;
}

.card:hover,
.stream-card:hover,
.asset-card:hover{
    transform:translateY(-4px);
    border-color:rgba(200,255,0,.38);
    box-shadow:var(--glow);
}

.stream-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(var(--card-size),var(--card-size))) !important;
    gap:22px;
    align-items:start;
}

.stream-card{
    width:var(--card-size) !important;
    max-width:var(--card-size) !important;
    display:block;
}

.stream-thumb{
    position:relative;
    border:0;
    background:#1c1f22;
    width:100%;
    height:auto;
    aspect-ratio:9/16;
    cursor:pointer;
    color:var(--muted);
    font-weight:800;
    overflow:hidden;
    border-radius:18px 18px 0 0;
}

.stream-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.stream-body{
    padding:18px;
}

.stream-body h3{
    margin:0 0 12px;
    font-size:17px;
}

.stream-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:14px;
}

.play{
    position:absolute;
    inset:0;
    margin:auto;
    width:58px;
    height:58px;
    border:2px solid rgba(255,255,255,.72);
    background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.04));
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border-radius:999px;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    box-shadow:0 12px 30px rgba(0,0,0,.35);
    transition:all .22s ease;
}

.stream-card:hover .play{
    transform:scale(1.08);
    border-color:var(--green);
    color:var(--green);
}

.thumb{
    height:auto;
    aspect-ratio:9/16;
    background:#1c1f22;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--muted);
    font-weight:800;
}

.thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.card-body{
    padding:15px;
}

.card h3{
    font-size:16px;
    margin:0 0 10px;
}

.meta{
    display:flex;
    justify-content:space-between;
    color:var(--muted);
    font-size:12px;
    margin:12px 0;
}

.actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.asset-grid,
.image-row{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}

.image-group-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:18px;
    align-items:start;
}

.image-group-card{
    display:flex;
    flex-direction:column;
}

.image-group-cover{
    height:260px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:12px;
    background:#08090a;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.image-group-cover button{
    width:100%;
    height:100%;
    border:0;
    padding:0;
    background:transparent;
    cursor:pointer;
}

.image-group-cover img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.image-group-cover.image-format-feed img{
    max-width:82%;
}

.image-group-cover.image-format-stories img{
    max-width:58%;
}

.image-group-cover.image-format-horizontal img{
    max-width:100%;
}

.image-group-info h3{
    line-height:1.25;
}

.image-variant-list{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin-top:14px;
}

.image-variant{
    min-width:0;
    padding:8px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    background:#0d0e10;
    color:#d8dde3;
    cursor:pointer;
    transition:all .18s ease;
}

.image-variant:hover{
    border-color:rgba(200,255,0,.45);
    color:var(--green);
    transform:translateY(-2px);
}

.variant-thumb{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:56px;
    margin-bottom:7px;
    border-radius:8px;
    background:#17191c;
    overflow:hidden;
}

.variant-thumb img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.image-variant-stories .variant-thumb img{
    width:auto;
}

.image-variant strong{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:11px;
}

.carousel-list{
    display:grid;
    gap:12px;
}

.carousel-card{
    display:grid;
    grid-template-columns:minmax(220px,280px) minmax(0,1fr);
    align-items:stretch;
    min-height:148px;
    overflow:hidden;
    background:linear-gradient(180deg,rgba(24,26,30,.72),rgba(8,9,10,.62));
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:var(--radius-xl);
    box-shadow:0 18px 50px rgba(0,0,0,.28);
    transition:all .25s ease;
}

.carousel-card:hover{
    transform:translateY(-4px);
    border-color:rgba(200,255,0,.38);
    box-shadow:var(--glow);
}

.carousel-strip{
    display:flex;
    gap:8px;
    min-width:0;
    padding:12px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(200,255,0,.55) rgba(255,255,255,.08);
    background:rgba(255,255,255,.025);
}

.carousel-strip button{
    flex:0 0 112px;
    width:112px;
    aspect-ratio:4/5;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    background:#1c1f22;
    color:var(--green);
    font-weight:800;
    cursor:pointer;
    overflow:hidden;
    transition:all .18s ease;
}

.carousel-strip button:hover{
    border-color:rgba(200,255,0,.50);
    transform:translateY(-2px);
}

.carousel-strip img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.carousel-body{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:16px;
    padding:16px;
    border-right:1px solid rgba(255,255,255,.08);
}

.carousel-body h3{
    font-size:17px;
    margin:0 0 8px;
}

.carousel-body p{
    margin:0 0 14px;
    color:var(--muted);
    font-size:13px;
}

.carousel-actions{
    display:grid;
    gap:8px;
}

.carousel-actions .btn{
    width:100%;
    padding:10px 12px;
    font-size:12px;
}

.asset-thumb,
.image-card{
    height:150px;
    background:#1c1f22;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--green);
    font-weight:800;
}

.asset-thumb button{
    width:100%;
    height:100%;
    padding:0;
    border:0;
    background:transparent;
    color:var(--green);
    font:inherit;
    cursor:pointer;
}

.asset-thumb img,
.image-card img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.asset-info{
    padding:14px;
}

.asset-info h3{
    font-size:15px;
    margin:0 0 6px;
}

.asset-info p{
    margin:0;
    color:var(--muted);
    font-size:12px;
}

.form-wrap{
    max-width:980px;
    padding:24px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.field label{
    display:block;
    color:var(--muted);
    font-size:13px;
    margin-bottom:7px;
}

.input,
select,
textarea{
    width:100%;
    background:#0d0e10;
    color:#fff;
    border:1px solid var(--line);
    border-radius:999px;
    padding:12px;
}

textarea{
    min-height:90px;
    border-radius:18px;
}

.table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
}

.table th,
.table td{
    border-bottom:1px solid var(--line);
    padding:13px;
    text-align:left;
}

.table th{
    color:var(--green);
    font-size:13px;
}

.client-logo-cell{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    min-width:210px;
}

.client-logo-cell img{
    width:76px;
    height:46px;
    object-fit:contain;
    padding:7px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    background:rgba(255,255,255,.05);
}

.client-logo-cell span{
    color:var(--muted);
    font-size:12px;
}

.project-logo-list{
    display:grid;
    gap:12px;
    min-width:310px;
}

.project-logo-row{
    display:grid;
    grid-template-columns:46px minmax(0,1fr);
    gap:12px;
    padding:10px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    background:rgba(255,255,255,.035);
}

.project-logo-preview{
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:1px solid rgba(200,255,0,.22);
    border-radius:999px;
    background:rgba(200,255,0,.10);
    color:var(--green);
    font-weight:900;
}

.project-logo-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.project-logo-main{
    min-width:0;
    display:grid;
    gap:7px;
}

.project-logo-main strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.project-logo-main small{
    color:var(--muted);
}

.logo-upload-form{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
}

.logo-file-input{
    max-width:190px;
    color:var(--muted);
    font-size:12px;
}

.login{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.login-card{
    width:100%;
    max-width:430px;
    padding:28px;
}

.login-card .logo{
    height:46px;
    margin-bottom:24px;
}

.tag-checkbox-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.tag-check{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#0d0e10;
    color:#d1d5db;
    cursor:pointer;
}

.tag-check:hover,
.tag-check.active{
    border-color:rgba(200,255,0,.45);
    color:var(--green);
    background:linear-gradient(135deg,rgba(200,255,0,.16),rgba(200,255,0,.04));
}

.tag-check input{
    width:16px;
    height:16px;
    accent-color:var(--green);
}

.admin-material-card{
    width:var(--card-size) !important;
    max-width:var(--card-size) !important;
    outline:none;
    position:relative;
    transition:all .22s ease;
}

.admin-material-card:hover,
.admin-material-card.selected{
    border-color:rgba(200,255,0,.75);
    box-shadow:0 0 0 2px rgba(200,255,0,.12),0 18px 50px rgba(0,0,0,.42);
    transform:translateY(-4px) scale(1.01);
}

.tag-quick-menu{
    position:absolute;
    z-index:9999;
    width:280px;
    display:none;
    background:linear-gradient(180deg,rgba(20,22,25,.95),rgba(8,9,10,.92));
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border:1px solid rgba(200,255,0,.18);
    border-radius:22px;
    box-shadow:0 18px 50px rgba(0,0,0,.55);
    padding:14px;
    animation:dopePop .18s ease both;
}

.tag-quick-menu.open{
    display:block;
}

.tag-quick-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:12px;
}

.tag-quick-head strong{
    color:var(--green);
}

.tag-quick-head span{
    font-size:11px;
    color:var(--muted);
}

.tag-quick-options{
    display:grid;
    gap:8px;
}

.tag-check.quick{
    padding:10px;
}

.tag-quick-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:14px;
}

.video-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.86);
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:30px;
}

.video-modal.open{
    display:flex;
}

.image-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.90);
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:30px;
}

.image-modal.open{
    display:flex;
}

.video-modal-inner{
    width:min(1100px,94vw);
    aspect-ratio:16/9;
    background:#000;
    border:1px solid var(--line);
    border-radius:18px;
    position:relative;
    overflow:hidden;
}

.image-modal-inner{
    width:min(1100px,94vw);
    max-height:92vh;
    position:relative;
    display:grid;
    grid-template-rows:minmax(0,1fr) auto;
    border:1px solid var(--line);
    border-radius:18px;
    background:#070707;
    overflow:hidden;
}

.video-modal-inner iframe{
    width:100%;
    height:100%;
    border:0;
}

.image-modal-inner img{
    width:100%;
    max-height:calc(92vh - 72px);
    object-fit:contain;
    background:#050505;
}

.image-modal-caption{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:14px 16px;
    border-top:1px solid var(--line);
}

.image-modal-caption strong{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.video-close{
    position:absolute;
    top:10px;
    right:10px;
    z-index:2;
    width:38px;
    height:38px;
    border:0;
    border-radius:999px;
    background:rgba(0,0,0,.65);
    color:#fff;
    font-size:28px;
    cursor:pointer;
}

.floating-preview-control{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:999;
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 16px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(10,10,10,.72);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    box-shadow:0 18px 50px rgba(0,0,0,.45);
}

.floating-preview-control span{
    color:var(--muted);
    font-size:12px;
    font-weight:700;
}

.floating-preview-control input{
    width:150px;
}

.script-generator-page{
    min-width:0;
}

.script-generator-hero{
    align-items:center;
    margin-bottom:28px;
}

.script-theme-switch{
    display:inline-flex;
    padding:5px;
    border:1px solid rgba(200,255,0,.26);
    border-radius:999px;
    background:rgba(255,255,255,.055);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 34px rgba(0,0,0,.24);
}

.script-theme-switch button{
    border:0;
    border-radius:999px;
    padding:10px 16px;
    background:transparent;
    color:#d8dde3;
    font-weight:900;
    cursor:pointer;
    transition:all .2s ease;
}

.script-theme-switch button.active{
    background:var(--green);
    color:#08090a;
}

.script-tool-shell{
    display:grid;
    grid-template-columns:minmax(320px,420px) minmax(0,1fr);
    gap:24px;
    align-items:start;
}

.script-control-panel{
    display:grid;
    gap:16px;
    padding:22px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:var(--radius-xl);
    background:linear-gradient(180deg,rgba(24,26,30,.78),rgba(8,9,10,.70));
    box-shadow:0 18px 50px rgba(0,0,0,.28);
}

.script-control-panel small{
    display:block;
    margin-top:7px;
    color:var(--muted);
    font-size:12px;
}

.script-actions-row{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:10px;
}

.script-actions-row .btn{
    width:100%;
    min-height:42px;
    padding:10px 12px;
    font-size:12px;
}

.script-scene-editor{
    display:grid;
    gap:14px;
    max-height:720px;
    overflow:auto;
    padding-right:4px;
}

.script-scene-card{
    display:grid;
    gap:12px;
    margin:0;
    padding:15px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    background:#0d0e10;
}

.script-scene-card legend{
    padding:0 8px;
    color:var(--green);
    font-weight:900;
}

.script-scene-card textarea{
    min-height:108px;
    resize:vertical;
}

.script-scene-card-footer{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:12px;
}

.script-preview-wrap{
    min-width:0;
    overflow:auto;
    padding-bottom:8px;
}

.script-preview{
    --script-bg:#f4f5f2;
    --script-text:#090b0d;
    --script-muted:#5d6470;
    --script-line:rgba(8,10,12,.14);
    --script-green:#bfff00;
    position:relative;
    min-width:720px;
    min-height:980px;
    padding:64px 54px 42px 72px;
    border-radius:8px;
    overflow:hidden;
    background:var(--script-bg);
    color:var(--script-text);
    box-shadow:0 26px 80px rgba(0,0,0,.45);
}

.script-preview-dark{
    --script-bg:#070806;
    --script-text:#fff;
    --script-muted:#b9c0c7;
    --script-line:rgba(255,255,255,.18);
}

.script-preview-accent{
    position:absolute;
    inset:0 auto 0 0;
    width:28px;
    background:var(--script-green);
}

.script-preview-accent::after{
    content:"";
    position:absolute;
    top:0;
    right:-20px;
    width:20px;
    height:108px;
    background:var(--script-text);
    opacity:.96;
}

.script-preview-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    min-height:160px;
}

.script-preview-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:18px;
}

.script-preview-header span{
    display:inline-flex;
    padding:7px 12px;
    border:1px solid rgba(191,255,0,.55);
    border-radius:999px;
    color:var(--script-muted);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
}

.script-preview-date{
    display:inline-flex;
    padding:0;
    border:0;
    border-radius:0;
    color:var(--script-muted);
    font-size:14px;
    font-weight:700;
    text-transform:none;
    white-space:nowrap;
}

.script-preview-header h2{
    max-width:470px;
    margin:0;
    color:var(--script-text);
    font-size:56px;
    line-height:.98;
    letter-spacing:0;
}

.script-preview-header img{
    width:132px;
    max-height:86px;
    object-fit:contain;
    padding:10px;
    border:1px solid rgba(191,255,0,.26);
    border-radius:6px;
    background:#243300;
}

.script-preview-dark .script-preview-header img{
    background:#243300;
}

.script-preview-table{
    display:grid;
    gap:0;
    margin-top:34px;
}

.script-preview-row{
    display:grid;
    grid-template-columns:88px minmax(0,1fr) minmax(0,1.28fr) 86px;
    min-height:142px;
    border-bottom:2px solid rgba(191,255,0,.72);
}

.script-preview-row > *{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    margin:0;
    padding:24px 18px;
    text-align:center;
    overflow-wrap:anywhere;
}

.script-preview-head{
    min-height:72px;
    border-bottom:0;
    background:var(--script-green);
    color:#08090a;
}

.script-preview-head strong{
    font-size:15px;
    text-transform:uppercase;
    white-space:nowrap;
    overflow-wrap:normal;
    word-break:keep-all;
    line-height:1;
}

.script-preview-row b{
    font-size:14px;
}

.script-preview-row p,
.script-preview-row time{
    color:var(--script-text);
    font-size:18px;
    line-height:1.35;
}

.script-preview-row time{
    font-weight:800;
}

.script-preview-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-top:54px;
    padding-top:22px;
    border-top:1px solid var(--script-line);
}

.script-preview-footer strong{
    color:var(--script-text);
    font-size:28px;
}

.script-preview-footer span{
    color:var(--script-muted);
    font-size:13px;
}

@keyframes dopeFadeUp{
    from{
        opacity:0;
        transform:translateY(14px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes dopePop{
    from{
        opacity:0;
        transform:scale(.96) translateY(6px);
    }
    to{
        opacity:1;
        transform:scale(1) translateY(0);
    }
}

@media(max-width:1050px){
    .sidebar{
        width:250px;
    }

    .script-tool-shell{
        grid-template-columns:1fr;
    }

    .script-preview{
        min-width:680px;
    }

    .asset-grid,
    .image-row{
        grid-template-columns:repeat(2,1fr);
    }

    .image-group-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .carousel-card{
        grid-template-columns:1fr;
    }

    .carousel-body{
        border-right:0;
        border-bottom:1px solid rgba(255,255,255,.08);
    }
}

@media(max-width:760px){
    .app{
        display:block;
    }

    .sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    .main{
        padding:24px;
    }

    .topbar,
    .hero{
        display:block;
    }

    .script-generator-hero .script-theme-switch{
        margin-top:18px;
    }

    .script-actions-row{
        grid-template-columns:1fr;
    }

    .script-scene-card-footer{
        grid-template-columns:1fr;
    }

    .script-preview{
        min-width:620px;
        min-height:820px;
        padding:48px 34px 32px 52px;
    }

    .script-preview-header{
        min-height:130px;
    }

    .script-preview-meta{
        gap:8px;
    }

    .script-preview-header h2{
        font-size:42px;
    }

    .script-preview-row{
        grid-template-columns:70px minmax(0,1fr) minmax(0,1.12fr) 70px;
        min-height:122px;
    }

    .script-preview-row > *{
        padding:18px 12px;
    }

    .script-preview-row p,
    .script-preview-row time{
        font-size:15px;
    }

    .search{
        min-width:100%;
        margin-bottom:12px;
    }

    .grid,
    .stream-grid{
        grid-template-columns:repeat(2,1fr) !important;
    }

    .asset-grid,
    .image-row{
        grid-template-columns:repeat(2,1fr) !important;
    }

    .image-group-grid{
        grid-template-columns:1fr;
    }

    .image-group-cover{
        height:240px;
    }

    .carousel-strip button{
        flex-basis:92px;
        width:92px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .stream-card,
    .admin-material-card{
        width:100% !important;
        max-width:none !important;
    }

    .period-head{
        display:block;
    }

    .client-brand .logo{
        height:68px;
    }

    .floating-preview-control{
        display:none;
    }

    h1{
        font-size:34px;
    }
}

@media print{
    @page{
        margin:12mm;
    }

    body{
        background:#fff;
    }

    .sidebar,
    .script-generator-hero,
    .script-control-panel,
    .script-generator-page > .group-title,
    .script-generator-page > .table,
    .script-generator-page > .project-overview{
        display:none !important;
    }

    .app,
    .main,
    .script-tool-shell,
    .script-preview-wrap{
        display:block;
        min-height:0;
        padding:0;
        margin:0;
        overflow:visible;
    }

    .script-preview{
        width:100%;
        min-width:0;
        min-height:0;
        box-shadow:none;
        border-radius:0;
        print-color-adjust:exact;
        -webkit-print-color-adjust:exact;
    }
}
