/*
 * AI Image Studio + AI Video Studio — shared look.
 *
 * Two-pane "creative tool" layout: a sticky control rail on the left (prompt,
 * references, shape, quality, price) and a canvas on the right (live results,
 * then the user's history). Stacks on mobile with the Generate bar pinned to
 * the bottom of the viewport.
 */
.aistudio {
    --as-bg: #0b0b12;
    --as-panel: rgba(24, 24, 36, 0.78);
    --as-panel-solid: #161622;
    --as-field: #0f0f18;
    --as-line: rgba(255, 255, 255, 0.08);
    --as-line-strong: rgba(255, 255, 255, 0.16);
    --as-text: #f3f3f8;
    --as-dim: #a3a3b8;
    --as-faint: #6e6e86;
    --as-accent: var(--primary-color, #fc4778);
    --as-accent-2: var(--secondary-color, #4a00e0);
    --as-grad: linear-gradient(135deg, var(--as-accent) 0%, #b23cff 55%, var(--as-accent-2) 100%);
    --as-radius: 18px;
    --as-radius-sm: 12px;
    max-width: 1360px;
    margin: 0 auto;
    color: var(--as-text);
}

/* ---- hero ---------------------------------------------------------------- */
.aistudio-hero { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.25rem; }
.aistudio-hero h1 { font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 0; line-height: 1.1; }
.aistudio-hero h1 .grad { background: var(--as-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.aistudio-hero p { color: var(--as-dim); margin: .35rem 0 0; max-width: 40rem; font-size: .95rem; }
.aistudio-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--as-field); border: 1px solid var(--as-line); }
.aistudio-switch a { color: var(--as-dim); text-decoration: none; font-weight: 600; font-size: .85rem; padding: .4rem .95rem; border-radius: 999px; }
.aistudio-switch a.active { background: var(--as-grad); color: #fff; }
.aistudio-switch a:not(.active):hover { color: #fff; }

/* ---- layout -------------------------------------------------------------- */
.aistudio-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 992px) {
    .aistudio-grid { grid-template-columns: minmax(360px, 420px) 1fr; align-items: start; }
    .aistudio-rail { position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
    .aistudio-rail-scroll { overflow-y: auto; scrollbar-width: thin; }
}

.aistudio-card {
    background: var(--as-panel);
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.aistudio-rail { padding: 0; overflow: hidden; min-width: 0; }
.aistudio-canvas { min-width: 0; }
.aistudio-rail-scroll { padding: 1.1rem 1.1rem .5rem; }
.aistudio-section { margin-bottom: 1.15rem; }
.aistudio-section:last-child { margin-bottom: .5rem; }
.aistudio-label {
    display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--as-dim); margin-bottom: .55rem;
}
.aistudio-label .meta { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--as-faint); font-size: .75rem; }

/* ---- tabs (mode / frame source) ----------------------------------------- */
.aistudio-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--as-field); border: 1px solid var(--as-line); border-radius: 14px; }
.aistudio-tabs button {
    border: 0; background: transparent; color: var(--as-dim); font-weight: 600; font-size: .85rem;
    padding: .55rem .5rem; border-radius: 10px; cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.aistudio-tabs button:hover { color: #fff; }
.aistudio-tabs button.active { background: var(--as-panel-solid); color: #fff; box-shadow: 0 0 0 1px var(--as-line-strong), 0 6px 18px rgba(0,0,0,.35); }

/* ---- prompt box ---------------------------------------------------------- */
.aistudio-prompt {
    position: relative; background: var(--as-field); border: 1px solid var(--as-line);
    border-radius: var(--as-radius-sm); transition: border-color .15s ease, box-shadow .15s ease;
}
.aistudio-prompt:focus-within { border-color: rgba(252, 71, 120, .55); box-shadow: 0 0 0 4px rgba(252, 71, 120, .12); }
.aistudio-prompt textarea {
    width: 100%; min-height: 112px; max-height: 320px; resize: none; display: block;
    background: transparent; border: 0; outline: 0; color: var(--as-text);
    padding: .85rem .9rem .3rem; font-size: .95rem; line-height: 1.5;
}
.aistudio-prompt textarea::placeholder { color: var(--as-faint); }
.aistudio-prompt-bar { display: flex; align-items: center; gap: .4rem; padding: .35rem .45rem .45rem; }
.aistudio-prompt-bar .count { margin-left: auto; font-size: .72rem; color: var(--as-faint); padding-right: .35rem; }
.aistudio-chip-btn {
    display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--as-line);
    background: rgba(255,255,255,.04); color: var(--as-text); font-size: .78rem; font-weight: 600;
    padding: .32rem .65rem; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.aistudio-chip-btn:hover:not(:disabled) { background: rgba(255,255,255,.09); border-color: var(--as-line-strong); }
.aistudio-chip-btn:disabled { opacity: .5; cursor: not-allowed; }
.aistudio-chip-btn.enhance { border-color: rgba(178, 60, 255, .45); background: linear-gradient(135deg, rgba(252,71,120,.16), rgba(74,0,224,.18)); }
.aistudio-chip-btn.enhance .spark { filter: drop-shadow(0 0 6px rgba(252,71,120,.7)); }
.aistudio-chip-btn.is-loading .spark { font-size: 0; }
.aistudio-free { font-size: .62rem; font-weight: 800; letter-spacing: .06em; color: #7cf3b0; text-transform: uppercase; }

/* ---- option chips (aspect, count, style) -------------------------------- */
.aistudio-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.aistudio-opt {
    display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--as-line);
    background: rgba(255,255,255,.03); color: var(--as-dim); font-weight: 600; font-size: .8rem;
    padding: .42rem .7rem; border-radius: 10px; cursor: pointer; transition: all .15s ease;
}
.aistudio-opt:hover { color: #fff; border-color: var(--as-line-strong); }
.aistudio-opt.active { color: #fff; border-color: rgba(252,71,120,.7); background: rgba(252,71,120,.12); box-shadow: inset 0 0 0 1px rgba(252,71,120,.35); }
.aistudio-opt:disabled { opacity: .4; cursor: not-allowed; }
.aistudio-shape { display: inline-block; border: 1.6px solid currentColor; border-radius: 3px; opacity: .9; }
.aistudio-opt .sub { display: block; font-size: .66rem; font-weight: 500; color: var(--as-faint); }
.aistudio-opt.active .sub { color: rgba(255,255,255,.7); }
.aistudio-opt.stack { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; }
.aistudio-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.aistudio-count .aistudio-opt { justify-content: center; }

/* ---- tier cards ---------------------------------------------------------- */
.aistudio-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.aistudio-tier {
    text-align: left; border: 1px solid var(--as-line); background: rgba(255,255,255,.03);
    border-radius: 12px; padding: .65rem .75rem; color: var(--as-text); cursor: pointer; transition: all .15s ease;
}
.aistudio-tier:hover { border-color: var(--as-line-strong); }
.aistudio-tier.active { border-color: rgba(252,71,120,.75); background: linear-gradient(135deg, rgba(252,71,120,.14), rgba(74,0,224,.14)); }
.aistudio-tier .d, .aistudio-tier .p { display: block; }
.aistudio-tier .t { font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .35rem; }
.aistudio-tier .d { font-size: .72rem; color: var(--as-dim); margin-top: .1rem; }
.aistudio-tier .p { font-size: .78rem; font-weight: 700; margin-top: .3rem; color: #ffd36e; }
.aistudio-badge { font-size: .6rem; font-weight: 800; letter-spacing: .06em; padding: .1rem .4rem; border-radius: 999px; background: var(--as-grad); color: #fff; }

/* ---- reference strip ----------------------------------------------------- */
.aistudio-refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: .45rem; }
.aistudio-ref, .aistudio-ref-add {
    position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--as-line); background: var(--as-field);
}
.aistudio-ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aistudio-ref .n {
    position: absolute; left: 5px; top: 5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    background: rgba(0,0,0,.7); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center;
}
.aistudio-ref .x {
    position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 999px; border: 0;
    background: rgba(0,0,0,.72); color: #fff; font-size: .8rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.aistudio-ref .x:hover { background: var(--as-accent); }
.aistudio-ref-add {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border-style: dashed; border-color: var(--as-line-strong); color: var(--as-dim); cursor: pointer;
    font-size: .68rem; font-weight: 600; transition: all .15s ease; text-align: center;
}
.aistudio-ref-add .plus { font-size: 1.2rem; line-height: 1; }
.aistudio-ref-add:hover, .aistudio-ref-add.dragover { color: #fff; border-color: var(--as-accent); background: rgba(252,71,120,.08); }
.aistudio-ref-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.aistudio-hint { font-size: .74rem; color: var(--as-faint); margin-top: .4rem; line-height: 1.45; }
.aistudio-hint a, .aistudio-link { color: #ff86a8; text-decoration: none; }
.aistudio-hint a:hover, .aistudio-link:hover { text-decoration: underline; }
.aistudio-note {
    font-size: .74rem; color: #ffcf8a; background: rgba(255, 179, 71, .07);
    border: 1px solid rgba(255, 179, 71, .22); border-radius: 10px; padding: .5rem .65rem; margin-top: .5rem;
}

/* big drop zone (single upload) */
.aistudio-drop {
    border: 1.5px dashed var(--as-line-strong); border-radius: 14px; background: var(--as-field);
    padding: 1.2rem; text-align: center; color: var(--as-dim); cursor: pointer; transition: all .15s ease;
}
.aistudio-drop:hover, .aistudio-drop.dragover { border-color: var(--as-accent); color: #fff; background: rgba(252,71,120,.06); }
.aistudio-drop img { max-width: 100%; max-height: 240px; border-radius: 10px; display: block; margin: 0 auto .5rem; }
.aistudio-drop .big { font-size: 1.6rem; }

/* picker grid (my images) */
.aistudio-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .4rem; max-height: 280px; overflow-y: auto; padding: 2px; }
.aistudio-pick {
    position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent;
    padding: 0; background: var(--as-field); cursor: pointer;
}
.aistudio-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aistudio-pick.selected { border-color: var(--as-accent); box-shadow: 0 0 0 3px rgba(252,71,120,.25); }
.aistudio-pick.selected::after {
    content: '✓'; position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; border-radius: 999px;
    background: var(--as-accent); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center;
}

/* toggle row (audio) */
.aistudio-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem; cursor: pointer;
    border: 1px solid var(--as-line); background: rgba(255,255,255,.03); border-radius: 12px; padding: .6rem .75rem;
    transition: all .15s ease;
}
.aistudio-toggle.on { border-color: rgba(252,71,120,.7); background: rgba(252,71,120,.1); }
.aistudio-toggle .t { font-weight: 700; font-size: .88rem; }
.aistudio-toggle .d { font-size: .72rem; color: var(--as-dim); }
.aistudio-switch-ui { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.aistudio-switch-ui input { opacity: 0; width: 0; height: 0; position: absolute; }
.aistudio-switch-ui span { position: absolute; inset: 0; background: #2c2c3d; border-radius: 999px; transition: .2s; }
.aistudio-switch-ui span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.aistudio-switch-ui input:checked + span { background: var(--as-grad); }
.aistudio-switch-ui input:checked + span::before { transform: translateX(18px); }

/* ---- generate bar -------------------------------------------------------- */
.aistudio-go { border-top: 1px solid var(--as-line); padding: .85rem 1.1rem 1rem; background: rgba(14, 14, 22, .92); }
@media (max-width: 991.98px) {
    .aistudio-go { position: sticky; bottom: 0; z-index: 20; border-radius: 0 0 var(--as-radius) var(--as-radius); backdrop-filter: blur(12px); }
}
.aistudio-go-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .55rem; font-size: .78rem; color: var(--as-dim); }
.aistudio-go-row .bal { display: inline-flex; align-items: center; gap: .3rem; }
.aistudio-go-row .bal b { color: #fff; }
.aistudio-go-row .low { color: #ff9a9a; }
.aistudio-btn {
    width: 100%; border: 0; border-radius: 14px; padding: .85rem 1rem; font-weight: 800; font-size: 1rem;
    color: #fff; background: var(--as-grad); background-size: 160% 160%; cursor: pointer;
    box-shadow: 0 10px 30px rgba(252, 71, 120, .28); transition: transform .12s ease, box-shadow .15s ease, background-position .4s ease, opacity .15s;
    display: flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none;
}
.aistudio-btn:hover:not(:disabled) { background-position: 100% 0; box-shadow: 0 12px 36px rgba(252, 71, 120, .4); color: #fff; }
.aistudio-btn:active:not(:disabled) { transform: translateY(1px); }
.aistudio-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.aistudio-btn .cost { background: rgba(0,0,0,.22); border-radius: 999px; padding: .12rem .55rem; font-size: .85rem; }
.aistudio-btn-ghost {
    border: 1px solid var(--as-line-strong); background: rgba(255,255,255,.04); color: var(--as-text);
    border-radius: 10px; padding: .45rem .8rem; font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: .35rem;
}
.aistudio-btn-ghost:hover { background: rgba(255,255,255,.09); color: #fff; }
.aistudio-error {
    margin-top: .6rem; font-size: .82rem; color: #ffb4b4; background: rgba(255, 80, 80, .08);
    border: 1px solid rgba(255, 80, 80, .25); border-radius: 10px; padding: .55rem .7rem;
}

/* ---- canvas -------------------------------------------------------------- */
.aistudio-canvas { padding: 1.1rem; min-height: 420px; }
.aistudio-canvas-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.aistudio-canvas-head h2 { font-size: .95rem; font-weight: 700; margin: 0; }
.aistudio-empty {
    border: 1px dashed var(--as-line-strong); border-radius: var(--as-radius-sm); min-height: 340px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    color: var(--as-dim); padding: 2rem 1rem;
    background:
        radial-gradient(600px 220px at 50% 0%, rgba(252,71,120,.10), transparent 70%),
        radial-gradient(500px 220px at 50% 100%, rgba(74,0,224,.12), transparent 70%);
}
.aistudio-empty .big { font-size: 2.4rem; margin-bottom: .4rem; }
.aistudio-empty h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.aistudio-empty p { font-size: .85rem; max-width: 26rem; margin: 0 auto; }
.aistudio-ideas { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 1rem; }

.aistudio-results { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 768px) { .aistudio-results { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.aistudio-results.n1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.aistudio-results.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aistudio-tile {
    position: relative; border-radius: 14px; overflow: hidden; background: var(--as-field);
    border: 1px solid var(--as-line);
}
.aistudio-tile img, .aistudio-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.aistudio-tile.is-done img { cursor: zoom-in; }
.aistudio-tile .state {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .35rem; color: var(--as-dim); font-size: .8rem; text-align: center; padding: 1rem;
}
.aistudio-tile .state .timer { font-variant-numeric: tabular-nums; font-size: .72rem; color: var(--as-faint); }
.aistudio-tile.is-failed .state { color: #ffb4b4; }
.aistudio-shimmer {
    position: absolute; inset: 0;
    background: linear-gradient(110deg, rgba(255,255,255,.02) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.02) 70%);
    background-size: 200% 100%; animation: as-shimmer 1.6s linear infinite;
}
.aistudio-tile-actions {
    position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: .3rem; justify-content: flex-end; flex-wrap: wrap;
    padding: .5rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: opacity .15s ease;
}
.aistudio-tile:hover .aistudio-tile-actions, .aistudio-tile:focus-within .aistudio-tile-actions { opacity: 1; }
@media (hover: none) { .aistudio-tile-actions { opacity: 1; } }
.aistudio-icon-btn {
    border: 0; border-radius: 9px; background: rgba(20,20,30,.85); color: #fff; font-size: .75rem; font-weight: 600;
    padding: .35rem .55rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .25rem;
}
.aistudio-icon-btn:hover { background: var(--as-accent); color: #fff; }
.aistudio-tag {
    position: absolute; left: 8px; top: 8px; font-size: .62rem; font-weight: 800; letter-spacing: .05em;
    padding: .15rem .45rem; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff;
}

.aistudio-history { margin-top: 1.5rem; }
.aistudio-masonry { columns: 2 130px; column-gap: .55rem; }
@media (min-width: 1200px) { .aistudio-masonry { columns: 4 170px; } }
.aistudio-masonry .aistudio-tile { break-inside: avoid; margin-bottom: .55rem; }
.aistudio-masonry .aistudio-tile img { height: auto; }

/* stage progress (video) */
.aistudio-stages { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-top: .3rem; }
.aistudio-stage { font-size: .7rem; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--as-line); color: var(--as-faint); }
.aistudio-stage.on { color: #fff; border-color: rgba(252,71,120,.7); background: rgba(252,71,120,.14); }
.aistudio-stage.done { color: #7cf3b0; border-color: rgba(124,243,176,.35); }

/* lightbox */
.aistudio-lightbox {
    position: fixed; inset: 0; z-index: 2000; background: rgba(5,5,10,.94); display: none;
    align-items: center; justify-content: center; padding: 1rem;
}
.aistudio-lightbox.open { display: flex; }
.aistudio-lightbox-inner { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 1200px; width: 100%; max-height: 94vh; }
@media (min-width: 992px) { .aistudio-lightbox-inner { grid-template-columns: 1fr 320px; } }
.aistudio-lightbox-media { display: flex; align-items: center; justify-content: center; min-height: 0; }
.aistudio-lightbox-media img, .aistudio-lightbox-media video { max-width: 100%; max-height: 86vh; border-radius: 12px; }
.aistudio-lightbox-side { background: var(--as-panel-solid); border: 1px solid var(--as-line); border-radius: 14px; padding: 1rem; overflow-y: auto; max-height: 86vh; }
.aistudio-lightbox-side .prompt { font-size: .82rem; color: var(--as-dim); white-space: pre-wrap; word-break: break-word; margin: .4rem 0 1rem; max-height: 40vh; overflow-y: auto; }
.aistudio-lightbox-close { position: absolute; top: 14px; right: 14px; }

/* toast */
.aistudio-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
    background: #1f1f2e; color: #fff; border: 1px solid var(--as-line-strong); border-radius: 12px;
    padding: .6rem 1rem; font-size: .85rem; z-index: 2100; transition: all .2s ease; pointer-events: none;
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.aistudio-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* SEO / info sections below the tool */
.aistudio-info { margin-top: 3rem; }
.aistudio-features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.aistudio-feature { padding: 1.1rem; border-radius: var(--as-radius-sm); border: 1px solid var(--as-line); background: rgba(255,255,255,.02); }
.aistudio-feature .i { font-size: 1.4rem; }
.aistudio-feature h2 { font-size: .95rem; font-weight: 700; margin: .4rem 0 .25rem; color: #fff; }
.aistudio-feature p { font-size: .82rem; color: var(--as-dim); margin: 0; }
.aistudio-faq { margin-top: 2rem; }
.aistudio-faq details { border-bottom: 1px solid var(--as-line); padding: .8rem 0; }
.aistudio-faq summary { cursor: pointer; font-weight: 600; color: #fff; list-style: none; }
.aistudio-faq summary::-webkit-details-marker { display: none; }
.aistudio-faq summary::after { content: '+'; float: right; color: var(--as-dim); }
.aistudio-faq details[open] summary::after { content: '–'; }
.aistudio-faq p { color: var(--as-dim); font-size: .88rem; margin: .5rem 0 0; }

@keyframes as-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
    .aistudio-shimmer { animation: none; }
}
.aistudio-rail-scroll > div:not(.aistudio-section) { margin-bottom: 1.15rem; }
.aistudio-tabs button { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) {
    .aistudio-tabs { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
}
.aistudio-hero .aistudio-langs { margin-top: .45rem; font-size: .85rem; color: #ffd36e; }
.aistudio-hero .aistudio-langs span { color: var(--as-text); }
