:root {
    --bg: #07090f;
    --ink: #e8eefc;
    --muted: #9aa8c3;
    --line: rgba(255, 255, 255, .1);
    --blue: #3d6ef5;
    --blue-2: #9db6ff;
    --gold: #e4b15a;
    --good: #3dcea0;
    --bad: #ff6b81;
    --card: rgba(14, 19, 32, .78);
    --light: #f3f6fb;
    --light-ink: #162033;
    --display: "Syne", "Outfit", sans-serif;
    --font: "Outfit", sans-serif;
    --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(900px 480px at 0% -10%, rgba(61, 110, 245, .38), transparent 55%),
        radial-gradient(520px 320px at 100% 0%, rgba(228, 177, 90, .18), transparent 50%),
        var(--bg);
}
body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
}
body::before {
    width: 420px;
    height: 420px;
    left: -140px;
    top: -120px;
    background: rgba(47, 86, 190, .45);
}
body::after {
    width: 260px;
    height: 260px;
    right: -80px;
    top: 40px;
    background: rgba(180, 120, 40, .22);
}
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; color-scheme: dark; }
a { color: var(--blue-2); }
::selection { background: var(--blue); color: white; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }

.sr-only, .skip {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    background: white;
    color: black;
    padding: 8px 12px;
    z-index: 100;
    border-radius: 8px;
}

.wrap, .wrap-wide { margin: 0 auto; }
.wrap { width: min(980px, calc(100% - 32px)); }
.wrap-wide { width: min(1240px, calc(100% - 28px)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(7, 9, 15, .78);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 16px;
    position: relative;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}
.brand-mark {
    display: grid;
}
.brand-mark img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 11px;
    display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
    font-family: var(--display);
    font-size: 20px;
    letter-spacing: -.03em;
}
.brand-text em {
    font-style: normal;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .04em;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    color: var(--ink);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 560;
}
.nav-links a[aria-current="page"],
.nav-links a:hover { background: rgba(255, 255, 255, .06); }
.nav-ext { color: var(--gold) !important; }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: transparent;
    place-items: center;
    gap: 5px;
    padding: 0;
}
.nav-toggle i {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.hero { padding: 28px 0 8px; }
.crumbs {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 13px;
}
.crumbs li { display: flex; align-items: center; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; opacity: .7; }
.crumbs a { color: var(--blue-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); }
.eyebrow {
    margin: 0 0 8px;
    color: var(--gold);
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}
.hero h1, .sheet h2, .panel h3, .auth-card h1, .admin-top h1 {
    font-family: var(--display);
    letter-spacing: -.04em;
    line-height: 1.02;
}
.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4.4vw, 54px);
    max-width: 16ch;
}
.lede { margin: 0; max-width: 62ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.trust li, .pill {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--blue-2);
    font-size: 13px;
}

.shell {
    position: relative;
    margin: 18px auto 28px;
    padding: 14px;
    border-radius: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.shell-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    padding: 6px 8px 14px;
}
.shell-head h2 { margin: 0 0 4px; font-family: var(--display); font-size: 28px; }
.shell-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(61, 110, 245, .16);
    color: white;
    font-size: 13px;
    font-weight: 650;
    padding: 8px 12px 8px 8px;
}
.steps b {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
}

.page-studio .hero { padding: 8px 0 0; }
.page-studio .hero h1 { font-size: clamp(26px, 2.5vw, 34px); max-width: 22ch; margin-bottom: 6px; }
.page-studio .lede { font-size: 15px; max-width: 68ch; }
.page-studio .trust { margin-top: 8px; }
.page-studio .shell { margin-top: 8px; margin-bottom: 16px; }
.page-studio .shell-head { padding-bottom: 8px; }
.page-studio .shell-head h2 { font-size: 22px; }
.studio-grid {
    display: grid;
    grid-template-columns: 214px minmax(0, 1fr) 292px;
    grid-template-rows: minmax(420px, 1fr) auto;
    gap: 12px;
    align-items: stretch;
    height: min(760px, calc(100vh - 400px));
    min-height: 480px;
}
.tool-col, .panel-col {
    background: rgba(0, 0, 0, .22);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 8px;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}
.tool-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    color: var(--ink);
    border-radius: 14px;
    padding: 8px;
    cursor: pointer;
}
.tool-btn:hover { background: rgba(255, 255, 255, .04); }
.tool-btn.is-active {
    background: rgba(61, 110, 245, .18);
    border-color: rgba(61, 110, 245, .45);
}
.ico {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    color: var(--blue-2);
}
.tool-btn.is-active .ico { background: var(--blue); color: white; }
.ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-btn b { display: block; font-weight: 620; font-size: 14px; }
.tool-btn small { display: block; color: var(--muted); font-size: 11px; }

.stage-col {
    min-width: 0;
    min-height: 0;
    display: flex;
}
.stage-well {
    flex: 1;
    width: 100%;
    min-height: 0;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), transparent 28%),
        #0b101a;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}
.drop { text-align: center; max-width: 460px; padding: 12px; }
.drop h2 { margin: 12px 0 6px; font-family: var(--display); font-size: 32px; }
.drop p { color: var(--muted); line-height: 1.5; }
.drop-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.fine { font-size: 13px; }
.logo-plate {
    border-radius: 28px;
    display: grid;
    place-items: center start;
    padding: 12px;
}
.logo-plate-2 {
    border-radius: 28px;
    display: grid;
    place-items: center;
    padding: 12px;
}
.drop .logo-plate img,
.drop .logo-plate-2 img { width: 132px; height: 132px; border-radius: 22px; }
.canvas-wrap {
    position: relative;
    background-color: #121826;
    background-image:
        linear-gradient(45deg, #1b2436 25%, transparent 25%),
        linear-gradient(-45deg, #1b2436 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1b2436 75%),
        linear-gradient(-45deg, transparent 75%, #1b2436 75%);
    background-size: 22px 22px;
    background-position: 0 0, 0 11px, 11px -11px, -11px 0;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.canvas-wrap canvas { display: block; }
.text-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.pixel-marquee {
    position: absolute;
    z-index: 3;
    border: 2px solid #fff;
    outline: 1px solid #111;
    background: rgba(255, 255, 255, .18);
    pointer-events: none;
}
body[data-tool="crop"] .stage-well { overflow: visible; }
body[data-tool="pixel"] .canvas-wrap { cursor: crosshair; touch-action: none; }
.panel-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 8px;
    padding: 8px 0 2px;
    background: linear-gradient(180deg, rgba(8, 12, 20, 0), #10151f 30%);
}
.compare-clip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
    border-right: 2px solid white;
}
.compare-clip canvas { position: absolute; left: 0; top: 0; max-width: none; }
.compare-range {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    width: calc(100% - 24px);
    z-index: 2;
}
.tag {
    position: absolute;
    top: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, .62);
    color: white;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.tag-after { right: 8px; display: none; }
.tag-before { left: 8px; }
.canvas-wrap.is-compare .tag-after { display: inline; }
#cropMount { width: min(100%, 920px); }
#cropMount img { display: block; max-width: 100%; max-height: min(68vh, 720px); }
#dropzone.is-hot { outline: 2px dashed #9db6ff; border-radius: 18px; }
.draghint {
    display: none;
    position: absolute;
    inset: 10px;
    border-radius: 22px;
    border: 2px dashed var(--blue-2);
    background: rgba(7, 12, 24, .82);
    z-index: 4;
    place-items: center;
    font-family: var(--display);
    font-size: 28px;
}
.shell.is-drag .draghint { display: grid; }

.panel { padding: 8px; }
.panel h3 { margin: 4px 0 6px; font-size: 22px; }
.hint { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.slider { display: block; margin: 0 0 10px; }
.slider span, .field span {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
}
.slider output, .field output { color: var(--ink); font-variant-numeric: tabular-nums; }
.field { display: block; margin: 0 0 10px; }
.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.field select,
.auth-card input,
.filters input,
.filters select {
    width: 100%;
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--ink);
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; color: var(--muted); }
.group-label {
    margin: 12px 0 6px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}
.chip-row, .bar-actions, .drop-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--ink);
    border-radius: 999px;
    padding: 7px 10px;
    cursor: pointer;
}
.chip:hover, .chip.is-active { border-color: rgba(157, 182, 255, .8); background: rgba(61, 110, 245, .16); }
.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.preset {
    text-align: left;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: inherit;
    padding: 8px;
    cursor: pointer;
}
.preset:hover, .preset.is-active { border-color: rgba(157, 182, 255, .75); }
.preset i { display: block; height: 28px; border-radius: 8px; margin-bottom: 6px; }
.preset b { display: block; font-size: 13px; }
.preset small { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; }
.swatch-color {
    width: 100%;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-bottom: 8px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 22px;
    background: transparent;
    margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2c4eb8, #d7b16a);
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0 4px rgba(61, 110, 245, .28);
    cursor: pointer;
}
input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2c4eb8, #d7b16a);
}
input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0 4px rgba(61, 110, 245, .28);
    cursor: pointer;
}
input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 12px;
    padding: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 16px;
    border: 1px solid transparent;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
    background: linear-gradient(180deg, #6b93ff, #2f5eef);
    color: white;
    box-shadow: 0 10px 24px rgba(47, 94, 239, .32);
}
.btn-ghost {
    background: rgba(255, 255, 255, .04);
    color: var(--ink);
    border-color: var(--line);
}
.btn-gold {
    background: linear-gradient(180deg, #f3d08a, #d9a441);
    color: #241806 !important;
}
.btn-danger { background: rgba(255, 107, 129, .14); color: #ffd0d8; border-color: rgba(255, 107, 129, .4); }
.btn-block { width: 100%; margin-top: 8px; }
.btn.is-ready { box-shadow: 0 0 0 1px rgba(228, 177, 90, .7), 0 10px 24px rgba(47, 94, 239, .25); }

.studio-bar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--line);
}
.status { margin: 0; color: var(--muted); font-size: 13px; min-width: 0; }
.status strong { color: var(--ink); font-weight: 600; }

.sheet {
    background: var(--light);
    color: var(--light-ink);
    margin-top: 42px;
    padding: 52px 0 28px;
}
.sheet h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 8px; }
.sheet p { line-height: 1.6; }
.sheet a { color: #2346b5; }
.section-gap { margin-top: 34px; }
.card-grid, .tool-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info-card, .promo, .faq details {
    background: white;
    border: 1px solid #e4ebf5;
    border-radius: 22px;
    padding: 18px 18px 16px;
    box-shadow: 0 12px 30px rgba(20, 40, 80, .04);
}
.info-card h3, .promo h2 { margin: 0 0 8px; font-size: 22px; }
.info-card p, .faq p { margin: 0; color: #3d4b63; }
.step-no {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e7edff;
    color: #2346b5;
    font-weight: 700;
    margin-bottom: 8px;
}
.tool-cards { grid-template-columns: repeat(2, 1fr); }
.tool-cards article h3 { margin: 0 0 6px; font-size: 18px; }
.promo {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 22px;
    align-items: center;
    margin-top: 28px;
}
.promo .logo-plate img,
.promo .logo-plate-2 img { width: 168px; height: 168px; border-radius: 24px; }
.promo-list { margin: 8px 0 16px; padding-left: 18px; color: #3d4b63; }
.faq { display: grid; gap: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.sheet .btn-line {
    background: white;
    color: var(--light-ink);
    border: 1px solid #d5deea;
}

.site-footer {
    background: #07090f;
    color: var(--muted);
    padding: 28px 0 36px;
}
.footer-inner { display: grid; grid-template-columns: 1.4fr 1.4fr auto; gap: 18px; align-items: start; }
.site-footer a { color: white; }
.site-footer p { margin: 4px 0; }
.footer-meta { margin: 0; }

.banner {
    margin: 16px auto 0;
    background: rgba(228, 177, 90, .12);
    border: 1px solid rgba(228, 177, 90, .45);
    color: #ffe6b5;
    border-radius: 16px;
    padding: 12px 14px;
}
.banner a { color: white; }

.toaster {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(360px, calc(100% - 24px));
}
.toast {
    background: #10192c;
    color: white;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
}
.loader {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: rgba(5, 7, 12, .72);
    backdrop-filter: blur(8px);
}
.loader-card { text-align: center; }
.orbit {
    width: 210px;
    height: 210px;
    margin: 0 auto 8px;
    position: relative;
    display: grid;
    place-items: center;
}
.orbit img {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: 28px;
    position: relative;
    z-index: 1;
    background: #000;
    animation: logo-pulse 1.8s ease-in-out infinite;
}
.orbit i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #8eafff;
    border-right-color: rgba(228, 177, 90, .9);
    animation: spin 1.15s linear infinite;
}
.orbit i:nth-child(2) {
    inset: 16px;
    animation-duration: 1.8s;
    animation-direction: reverse;
    border-top-color: var(--gold);
    border-right-color: transparent;
}
.loader-title { margin: 0; font-family: var(--display); font-size: 26px; }
.loader-sub {
    margin: 4px 0 0;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    font-size: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
}

.queue { display: grid; gap: 12px; margin-top: 16px; }
.file-card {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(0, 0, 0, .22);
    border: 1px solid var(--line);
}
.file-card img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: #111; }
.file-card p { margin: 2px 0; color: var(--muted); font-size: 13px; }
.saved { color: var(--good); font-weight: 700; }
.nosave { color: var(--bad); font-weight: 700; }
.settings-row { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 10px; }

.auth-screen, .admin-screen { padding: 28px 0 50px; }
.auth-card {
    width: min(440px, 100%);
    margin: 40px auto;
    padding: 22px;
    border-radius: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.auth-card .logo-plate,
.auth-card .logo-plate-2 { width: 148px; margin: 0 auto 12px; }
.auth-card .logo-plate img,
.auth-card .logo-plate-2 img { width: 124px; height: 124px; border-radius: 20px; }
.auth-card h1, .admin-top h1 { margin: 0 0 6px; }
.form-error {
    background: rgba(255, 107, 129, .12);
    border: 1px solid rgba(255, 107, 129, .4);
    color: #ffd5dc;
    border-radius: 12px;
    padding: 8px 10px;
}
.flash {
    background: rgba(61, 206, 160, .12);
    border: 1px solid rgba(61, 206, 160, .4);
    color: #d8fff1;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat, .panel-card {
    background: rgba(14, 19, 32, .78);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 14px;
}
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 30px; letter-spacing: -.04em; }
.stat em { font-style: normal; color: var(--blue-2); font-size: 13px; }
.admin-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 12px; margin-top: 12px; }
.chart { display: flex; align-items: stretch; gap: 6px; min-height: 170px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.bar-track { width: 100%; height: 120px; display: flex; align-items: flex-end; }
.bar {
    width: 100%;
    height: var(--h);
    min-height: 3px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #b9cbff, #3d6ef5);
}
.bar-col.is-today .bar { background: linear-gradient(180deg, #f3d08a, #d9a441); }
.bar-col small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.tool-bar { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.tool-bar i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #3d6ef5, #e4b15a); width: var(--w); }
.filters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: rgba(255,255,255,.03); }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.admin-top { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 14px; }
.fold { margin-top: 14px; }
.fold summary { cursor: pointer; color: var(--blue-2); }
.check-list { list-style: none; padding: 0; margin: 12px 0; }
.check-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.ok { color: var(--good); }
.bad { color: var(--bad); }
.warn-box {
    border: 1px solid rgba(255, 107, 129, .45);
    background: rgba(255, 107, 129, .08);
    border-radius: 16px;
    padding: 12px;
    margin: 12px 0;
}

@media (max-width: 1100px) {
    .studio-grid, .card-grid, .admin-grid, .stat-grid, .settings-row, .filters, .footer-inner, .promo, .tool-cards {
        grid-template-columns: 1fr;
    }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .studio-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
    }
    .stage-col { order: 1; display: block; }
    .studio-bar { order: 2; position: static; }
    .tool-col { order: 3; }
    .panel-col { order: 4; }
    .tool-col, .panel-col { overflow: visible; max-height: none; }
    .tool-list { display: flex; gap: 8px; overflow-x: auto; }
    .tool-btn { width: auto; min-width: 92px; flex-direction: column; text-align: center; }
    .tool-btn small { display: none; }
    .shell-head { flex-direction: column; align-items: start; }
    .studio-bar { flex-direction: column; align-items: stretch; }
    .stage-well { min-height: 280px; height: auto; flex: none; }
}
@media (max-width: 800px) {
    .nav-toggle { display: grid; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #0c111b;
        border-bottom: 1px solid var(--line);
        padding: 10px;
    }
    .nav-links.is-open { display: flex; }
    .file-card { grid-template-columns: 72px 1fr; }
    .file-card .btn { grid-column: 1 / -1; }
    .hero h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}