:root{color-scheme:dark;--bg:#0e1116;--panel:#171b22;--line:#2a3039;--txt:#f5f7fa;--muted:#9da8b6;--blue:#4f8cff;--green:#27c46b;--orange:#ff9b45}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--txt)}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid var(--line);background:#11151b;position:sticky;top:0;z-index:10}
.topbar h1{font-size:20px;margin:0 0 4px}.topbar p{margin:0;color:var(--muted);font-size:13px}.badge{padding:7px 11px;border-radius:999px;background:#193326;color:#8df3b7;font-size:12px;font-weight:700}
.layout{display:grid;grid-template-columns:minmax(360px,520px) minmax(360px,1fr);gap:18px;padding:18px;max-width:1600px;margin:auto}.panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden}.controls{padding:18px}.grid2,.grid3{display:grid;gap:12px;margin-bottom:12px}.grid2{grid-template-columns:1fr 1fr}.grid3{grid-template-columns:1fr 1fr 1fr}label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#c8d0da;font-weight:600}input,select,textarea{width:100%;background:#0f1319;color:#fff;border:1px solid #303844;border-radius:10px;padding:10px 11px;font:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:#5f8fff}textarea{height:420px;resize:vertical;line-height:1.45;font-family:Consolas,monospace;font-size:13px;margin-bottom:12px}.actions{display:flex;gap:9px;flex-wrap:wrap;margin:10px 0}button{border:1px solid #39414d;background:#202630;color:#fff;border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer}button:hover{filter:brightness(1.08)}button.primary{background:#2f6fff;border-color:#2f6fff}.accent{background:#0b8d68;border-color:#0b8d68}.accent2{background:#a95d18;border-color:#a95d18}.status{margin-top:12px;padding:10px 12px;background:#0e1319;border:1px solid #2a323c;border-radius:10px;color:#cbd5e1;font-size:13px}.note{margin-top:12px;color:#9aa6b5;font-size:12px;line-height:1.5}.previewPanel{display:flex;flex-direction:column;min-height:650px}.previewToolbar{display:flex;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--line);font-size:13px;color:#b9c3d0}.canvasWrap{display:flex;align-items:flex-start;justify-content:center;padding:18px;overflow:auto;background:#0a0d12;min-height:0;flex:1}canvas{display:block;max-width:100%;height:auto;max-height:calc(100vh - 145px);box-shadow:0 24px 80px rgba(0,0,0,.45);background:#fff}
@media(max-width:1000px){.layout{grid-template-columns:1fr}.previewPanel{min-height:500px}.canvasWrap canvas{max-height:80vh}}
@media(max-width:620px){.grid2,.grid3{grid-template-columns:1fr}.layout{padding:10px}.topbar{padding:14px}.topbar h1{font-size:16px}.topbar p{display:none}.controls{padding:12px}}
input[type="range"]{width:100%;accent-color:#2563eb}.miniHelp{font-size:12px;color:#667085}

#codecInfo{white-space:pre-wrap;max-height:150px;overflow:auto}.controls select,.controls input,.controls textarea{background:#fff!important;color:#111827!important;-webkit-text-fill-color:#111827!important}.controls select option{background:#fff;color:#111827}.controls input::placeholder,.controls textarea::placeholder{color:#6b7280!important;-webkit-text-fill-color:#6b7280!important}.badge{white-space:nowrap}


/* ==========================================================
   LOIS ABSURDES — WORKFLOW
========================================================== */

.la-workflow{
    display:flex;
    align-items:center;
    width:100%;
    margin:0 0 24px;
    padding:15px 18px;

    background:#14110f;
    border:1px solid #34261c;
    border-radius:16px;

    overflow-x:auto;
}

.la-workflow-step{
    display:flex;
    align-items:center;
    gap:9px;

    color:#806f62;
    text-decoration:none;
    font-size:13px;
    font-weight:800;

    white-space:nowrap;
}

.la-workflow-step small{
    display:block;
    margin-top:1px;
    color:#705c4d;
    font-size:10px;
}

.la-workflow-number{
    display:flex;
    align-items:center;
    justify-content:center;

    width:29px;
    height:29px;

    flex:0 0 29px;

    border-radius:50%;

    background:#241b15;
    border:1px solid #493323;

    color:#8e7766;
}

.la-workflow-step.done{
    color:#d9c6b7;
}

.la-workflow-step.done .la-workflow-number{
    background:#26351f;
    border-color:#49643b;
    color:#b8e09f;
}

.la-workflow-step.current{
    color:#fff7ed;
}

.la-workflow-step.current .la-workflow-number{
    color:white;
    border-color:#f97316;

    background:
        linear-gradient(
            135deg,
            #fb923c,
            #c2410c
        );

    box-shadow:
        0 0 0 4px
        rgba(249,115,22,.10);
}

.la-workflow-line{
    width:34px;
    height:1px;
    margin:0 11px;
    flex:0 0 34px;
    background:#3a2a20;
}


/* ===== FIX LOGO SIDEBAR ===== */

.la-sidebar-logo{
    display:block !important;
    width:180px !important;
    max-width:180px !important;
    height:auto !important;
    max-height:110px !important;
    object-fit:contain !important;
    margin:0 auto 12px auto !important;
}


/* ==========================================================
   BRANDING SIDEBAR — LOIS ABSURDES
========================================================== */

.la-brand{
    display:flex;
    align-items:center;
    gap:12px;
    padding:18px 16px;
}

.la-brand-mark{
    display:flex;
    align-items:center;
    justify-content:center;

    width:42px;
    height:42px;
    flex:0 0 42px;

    border-radius:12px;

    background:linear-gradient(135deg,#f97316,#84cc16);
    color:#090807;

    font-size:27px;
    font-weight:900;
    line-height:1;
}

.la-brand-copy{
    min-width:0;
}

.la-brand-title{
    color:#fff7ed;
    font-size:16px;
    font-weight:900;
    line-height:1.05;
    letter-spacing:.3px;
}

.la-brand-title span{
    color:#f97316;
}

.la-brand-subtitle{
    margin-top:5px;
    color:#8d7969;
    font-size:9px;
    font-weight:800;
    letter-spacing:1.8px;
}

