@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

:root {
    --bg: #020202;
    --panel: rgba(5, 5, 5, 0.9);
    --control: rgba(18, 18, 18, 0.94);
    --control-hover: rgba(24, 24, 24, 0.98);
    --line: rgba(255, 255, 255, 0.2);
    --line-soft: rgba(255, 255, 255, 0.13);
    --ink: #f4f4f2;
    --muted: rgba(244, 244, 242, 0.72);
    --dim: rgba(244, 244, 242, 0.52);
    --success: #9df0ac;
    --danger: #ff9a8b;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    background: #000;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    background: #000;
}

/* Aurora glow — the same drifting light the login screen uses, sitting behind
   the animated particle constellation (miracle-bg.js paints its canvas at z-index 0). */
body::before {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 34% 26% at 50% 20%, rgba(255, 255, 255, 0.14), transparent 72%),
        radial-gradient(ellipse 42% 32% at 15% 74%, rgba(255, 255, 255, 0.05), transparent 76%),
        radial-gradient(ellipse 42% 32% at 86% 82%, rgba(255, 255, 255, 0.05), transparent 76%);
    animation: studio-aurora-drift 18s ease-in-out infinite alternate;
}

/* Fine film grain on top, to keep gradients from banding. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
    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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

@keyframes studio-aurora-drift {
    0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
    100% { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); }
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

.studio-shell {
    position: relative;
    z-index: 1;
    width: min(1560px, calc(100vw - 120px));
    margin: 0 auto;
    padding: 92px 0 96px;
    display: grid;
    gap: 84px;
}

.studio-hero {
    display: grid;
    gap: 0;
}

.studio-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.studio-topbar-solo {
    justify-content: flex-end;
}

.studio-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-topbar-pill {
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(3, 3, 3, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.studio-account-pill {
    width: 302px;
}

.studio-context-pill {
    justify-content: space-between;
}

.studio-topbar-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The context pill doubles as the "Generar extensión" action button. */
button.studio-context-pill {
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

button.studio-context-pill:hover:not(:disabled) {
    color: #fff;
    background: rgba(3, 3, 3, 0.82);
    border-color: rgba(255, 255, 255, 0.4);
}

button.studio-context-pill:disabled {
    cursor: progress;
    opacity: 0.7;
}

.studio-topbar-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
    flex: 1;
}

.studio-topbar-label,
.studio-overall-pill {
    display: none;
}

.studio-topbar-copy strong,
.studio-context-pill strong {
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-topbar-caret {
    width: 14px;
    height: 14px;
    margin-left: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.studio-hero-copy {
    margin: 0 auto;
    padding-top: 22px;
    display: grid;
    justify-items: center;
    text-align: center;
}

.studio-hero-mark {
    width: 74px;
    height: 65px;
    margin-bottom: 26px;
    position: relative;
    animation: studio-mark-float 7s ease-in-out infinite;
}

@keyframes studio-mark-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.studio-hero-mark svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: rgba(0, 0, 0, 0.28);
    stroke: rgba(255, 255, 255, 0.96);
    stroke-width: 1.5;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.45));
}

.studio-hero-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 92px;
    height: 8px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    filter: blur(8px);
}

.studio-hero-copy h1 {
    margin: 0;
    font-size: clamp(4.6rem, 6.6vw, 7rem);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.065em;
    text-shadow: 0 0 9px rgba(255, 255, 255, 0.45), 0 0 30px rgba(255, 255, 255, 0.14);
}

.studio-intro,
.studio-hero-copy .studio-kicker {
    display: none;
}

.studio-access {
    padding: 17px 21px;
    border: 1px solid rgba(255, 154, 139, 0.28);
    border-radius: 16px;
    color: var(--danger);
    background: rgba(255, 154, 139, 0.08);
}

.studio-content {
    display: grid;
    gap: 34px;
}

.studio-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.studio-card {
    padding: 30px 34px 32px;
    position: relative;
    display: grid;
    gap: 22px;
    border: 1px solid var(--line-soft);
    border-radius: 26px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.014) 46%),
        rgba(8, 8, 10, 0.55);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.studio-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        0 30px 84px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Collapsed cards read as compact tiles; open ones lift toward the viewer. */
.studio-card:not(.is-collapsed) {
    border-color: rgba(255, 255, 255, 0.24);
}

.studio-card-head {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
}

.studio-card-head:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 4px;
    border-radius: 8px;
}

.studio-card-body {
    display: grid;
    gap: 22px;
    padding-top: 4px;
}

.studio-card.is-collapsed .studio-card-body {
    display: none;
}

.studio-card .studio-kicker {
    display: none;
}

.studio-card h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.038em;
}

.studio-provider-group {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.studio-provider-group + .studio-provider-group {
    margin-top: 4px;
}

.studio-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.studio-subhead h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.studio-status-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.studio-status-meta strong {
    display: block;
    max-width: min(230px, 42vw);
    color: var(--dim);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-card-chevron {
    width: 15px;
    height: 15px;
    flex: none;
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

.studio-card:not(.is-collapsed) .studio-card-chevron {
    transform: rotate(180deg);
}

.status-pill {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: transparent;
    font-size: 0;
    display: grid;
    place-items: center;
    flex: none;
    transition: border-color 160ms ease;
}

.status-pill::before {
    content: "";
    width: 12px;
    height: 7px;
    margin-top: -2px;
    border-left: 1.8px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1.8px solid rgba(255, 255, 255, 0.6);
    transform: rotate(-45deg);
    transition: border-color 160ms ease;
}

.status-pill[data-tone="ready"] {
    border-color: var(--success);
}

.status-pill[data-tone="ready"]::before {
    border-color: var(--success);
}

.status-pill[data-tone="warning"],
.status-pill[data-tone="danger"] {
    border-color: var(--danger);
}

.status-pill[data-tone="warning"]::before,
.status-pill[data-tone="danger"]::before {
    border-color: var(--danger);
}

.studio-current {
    display: none;
}

.studio-form,
.studio-form-grid {
    display: grid;
}

.studio-form {
    align-content: space-between;
    gap: 22px;
}

.studio-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 18px;
}

.field {
    min-width: 0;
    display: grid;
    gap: 9px;
    grid-column: 1 / -1;
}

.field span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    outline: none;
    color: var(--ink);
    background-color: var(--control);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.field-key-row {
    position: relative;
    display: flex;
}

.field-key-row input {
    padding-right: 44px;
}

.field-key-toggle {
    position: absolute;
    top: 5px;
    bottom: 5px;
    right: 5px;
    width: 36px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 140ms ease, background-color 140ms ease;
}

.field-key-toggle:hover {
    color: var(--ink);
    background-color: rgba(255, 255, 255, 0.06);
}

.field-key-toggle[aria-pressed="true"] {
    color: var(--ink);
}

.field-key-toggle-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.field textarea {
    height: auto;
    min-height: 160px;
    padding: 12px 15px;
    line-height: 1.5;
    resize: vertical;
    color-scheme: dark;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre;
    overflow: auto;
}

.field textarea::placeholder {
    color: rgba(244, 244, 242, 0.36);
}

.field textarea:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: var(--control-hover);
}

.field textarea:focus {
    border-color: rgba(255, 255, 255, 0.68);
    background-color: #161616;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 18px rgba(255, 255, 255, 0.06);
}

.field textarea:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.field select {
    padding-right: 44px;
    color-scheme: dark;
    cursor: pointer;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #ededeb 50%),
        linear-gradient(135deg, #ededeb 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 20px,
        calc(100% - 14px) 20px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.field select option {
    color: #f7f7f5;
    background: #141414;
    font-weight: 500;
}

.field select option:checked {
    color: #050505;
    background: #f1f1ee;
}

.field input::placeholder {
    color: rgba(244, 244, 242, 0.36);
}

.field input:hover,
.field select:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: var(--control-hover);
}

.field input:focus,
.field select:focus,
.field select:open {
    border-color: rgba(255, 255, 255, 0.68);
    background-color: #161616;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 18px rgba(255, 255, 255, 0.06);
}

.field.is-hidden,
.is-hidden {
    display: none !important;
}

.field-editor {
    width: max-content;
    max-width: 100%;
    grid-column: auto;
    align-self: end;
    gap: 0;
}

.field-span-2 {
    grid-column: 1 / -1;
}

.field-editor > span {
    min-height: 24px;
    padding-right: 22px;
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    cursor: text;
}

.field-editor > span::after {
    content: "";
    width: 14px;
    height: 14px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.85;
}

.field-editor input {
    width: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    border-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
        width 160ms ease,
        height 160ms ease,
        opacity 140ms ease,
        padding 160ms ease,
        border-width 160ms ease,
        transform 160ms ease;
}

.field-editor:focus-within {
    width: 100%;
    grid-column: 1 / -1;
    gap: 7px;
}

.field-editor:focus-within input {
    width: 100%;
    height: 46px;
    padding: 0 15px;
    border-width: 1px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.studio-actions {
    min-height: 44px;
    padding-top: 6px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.button {
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 140ms ease, text-shadow 140ms ease;
}

.button:hover,
.button:focus-visible {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.button:focus-visible,
.studio-link:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 4px;
}

.button:disabled {
    opacity: 0.42;
    cursor: wait;
}

/* Primary action reads as a solid pill; secondary actions stay as quiet text. */
.button.primary {
    margin-left: auto;
    height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    color: #0a0a0c;
    background: #f2f2ef;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, opacity 150ms ease;
}

.button.primary:hover,
.button.primary:focus-visible {
    transform: translateY(-1px);
    color: #0a0a0c;
    background: #ffffff;
    text-shadow: none;
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.3);
}

.button.primary:disabled {
    transform: none;
}

a.button {
    text-decoration: none;
}

a.button:hover {
    text-decoration: none;
}

.form-message {
    min-height: 0;
    margin: -8px 0 0;
    color: var(--dim);
    font-size: 0.72rem;
    line-height: 1.4;
}

.form-message:empty {
    display: none;
}

.form-message[data-tone="success"] {
    color: var(--success);
}

.form-message[data-tone="error"] {
    color: var(--danger);
}

.form-message[data-tone="warning"] {
    color: #f1d783;
}

.studio-section {
    margin: 0 auto;
    width: 100%;
}

.studio-api-keys-section {
    display: grid;
    gap: 18px;
    padding: 30px 34px 32px;
    border: 1px solid var(--line-soft);
    border-radius: 26px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.014) 46%),
        rgba(8, 8, 10, 0.55);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.studio-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.studio-section-links .studio-section-head {
    justify-content: center;
    text-align: center;
    margin-bottom: 6px;
}

.studio-section-head .studio-kicker {
    margin: 0 0 6px;
    color: var(--dim);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.studio-section-head h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.studio-section-links {
    display: grid;
    gap: 22px;
}

.studio-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.studio-link {
    width: 236px;
    height: 54px;
    padding: 0 20px;
    position: relative;
    display: grid;
    grid-template-columns: 20px 1fr 22px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.studio-link::before,
.studio-link::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 52%;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    filter: blur(7px);
    opacity: 0;
    transition: opacity 140ms ease;
}

.studio-link::before {
    top: -2px;
}

.studio-link::after {
    bottom: -2px;
}

.studio-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.studio-link:hover::before,
.studio-link:hover::after {
    opacity: 1;
}

.studio-link-icon,
.studio-link-arrow {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.studio-link-arrow {
    width: 22px;
    height: 22px;
}

.studio-links .studio-link:nth-child(3) {
    display: none;
}

@media (max-width: 1320px) {
    .studio-shell {
        width: min(1100px, calc(100vw - 56px));
        padding: 64px 0 72px;
        gap: 60px;
    }

    .studio-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 820px) {
    .studio-shell {
        width: min(100% - 24px, 620px);
        padding: 18px 0 32px;
        gap: 34px;
    }

    .studio-account-pill {
        width: min(68%, 302px);
    }

    .studio-context-pill {
        min-width: 136px;
    }

    .studio-topbar-pill {
        height: 40px;
        padding: 0 14px;
    }

    .studio-hero-copy {
        padding-top: 30px;
    }

    .studio-hero-mark {
        width: 49px;
        height: 44px;
        margin-bottom: 14px;
    }

    .studio-hero-copy h1 {
        font-size: clamp(3.1rem, 14vw, 5rem);
    }

    .studio-board {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .studio-card {
        width: 100%;
        min-height: auto;
        grid-column: auto;
        padding: 24px 22px 22px;
    }

    .studio-links {
        gap: 14px;
    }

    .studio-link {
        width: min(244px, calc(50vw - 19px));
        padding: 0 18px;
    }
}

@media (max-width: 560px) {
    .studio-topbar {
        gap: 10px;
    }

    .studio-account-pill {
        width: calc(100% - 126px);
    }

    .studio-context-pill {
        min-width: 116px;
    }

    .studio-topbar-icon {
        display: none;
    }

    .studio-topbar-copy strong,
    .studio-context-pill strong {
        font-size: 0.82rem;
    }

    .studio-links {
        flex-direction: column;
        width: 100%;
    }

    .studio-link {
        width: 100%;
    }

    .studio-links .studio-link:nth-child(3) {
        display: flex;
        justify-content: center;
    }
}

.api-key-list {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.api-key-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: var(--control);
}

.api-key-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.api-key-info strong {
    color: var(--ink);
    font-size: 0.9rem;
}

.api-key-info code {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.api-key-revoke {
    flex: none;
    padding: 6px 12px;
    font-size: 0.78rem;
}

.api-key-empty {
    color: var(--muted);
    font-size: 0.85rem;
    padding: 6px 2px;
}

.api-key-reveal {
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: var(--control-hover);
    padding: 12px;
    display: grid;
    gap: 8px;
}

.api-key-reveal-warn {
    margin: 0;
    color: var(--ink);
    font-size: 0.82rem;
}

.api-key-reveal-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-key-reveal-row code {
    flex: 1;
    min-width: 0;
    color: var(--ink);
    font-size: 0.82rem;
    word-break: break-all;
}

/* ------------------------------------------------------------------------ */
/* Tabs de superficies (Web App / Windows App / Android App)                 */
/* ------------------------------------------------------------------------ */

.studio-surface-tabs {
    display: inline-flex;
    justify-self: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 20px;
    padding: 6px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(8, 8, 10, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-wrap: wrap;
}

.studio-surface-tab {
    padding: 10px 26px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, text-shadow 180ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.studio-surface-tab:hover:not(.is-active) {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
}

.studio-surface-tab:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 3px;
}

.studio-surface-tab.is-active {
    color: #0a0a0c;
    background: #f2f2ef;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}

.studio-surface-panel {
    display: grid;
    gap: 26px;
}

.surface-placeholder {
    margin: 0 auto;
    max-width: 560px;
    padding: 46px 30px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ------------------------------------------------------------------------ */
/* Panel Android: config distribuida                                         */
/* ------------------------------------------------------------------------ */

.android-config-card {
    width: min(760px, 100%);
    margin: 0 auto;
}

.studio-card-head-static {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.android-config-note {
    margin: -6px 0 0;
    color: var(--dim);
    font-size: 0.78rem;
    line-height: 1.4;
}

.android-voice-info .android-config-note {
    margin: 10px 0 0;
}

.android-voice-info code {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 5px;
    font-size: 0.74rem;
}

/* ------------------------------------------------------------------------ */
/* Panel Android: usuarios / prompts / logs                                  */
/* ------------------------------------------------------------------------ */

.android-users-section {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.android-users-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.android-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex-wrap: wrap;
}

.android-crumb {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 140ms ease, text-shadow 140ms ease;
}

button.android-crumb:hover,
button.android-crumb:focus-visible {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.android-crumb.is-current {
    color: var(--ink);
    cursor: default;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.android-crumb-sep {
    color: var(--dim);
    font-size: 0.82rem;
}

.android-view {
    display: grid;
    gap: 14px;
}

.android-empty {
    margin: 0;
    padding: 26px 18px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.android-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 14px;
}

.android-users-grid .android-empty {
    grid-column: 1 / -1;
}

.android-user-card {
    display: grid;
    gap: 9px;
    padding: 16px 18px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 42%), var(--panel);
    color: var(--ink);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.android-user-card:hover,
.android-user-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
    outline: none;
}

/* Zona clicable que abre el detalle del dispositivo: el toggle de voz Live
   vive fuera de este botón (no puede haber <button> anidado dentro de otro). */
.android-user-card-open {
    display: grid;
    gap: 5px;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.android-realtime-toggle {
    justify-self: start;
    padding: 5px 11px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.android-realtime-toggle:hover {
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.55);
}

.android-realtime-toggle[aria-pressed="true"] {
    color: var(--success);
    border-color: var(--success);
    background: rgba(157, 240, 172, 0.1);
}

.android-realtime-toggle:disabled {
    opacity: 0.55;
    cursor: wait;
}

.android-user-name {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.android-user-meta,
.android-user-seen {
    color: var(--muted);
    font-size: 0.76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.android-user-count {
    margin-top: 4px;
    color: var(--dim);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.android-user-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.android-user-header-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.android-user-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.android-user-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.android-prompts-list {
    display: grid;
    gap: 10px;
}

.android-prompt-row {
    display: grid;
    gap: 7px;
    padding: 13px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: var(--control);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.android-prompt-row:hover,
.android-prompt-row:focus-visible {
    border-color: rgba(255, 255, 255, 0.45);
    background: var(--control-hover);
    outline: none;
}

.android-prompt-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.android-prompt-time {
    color: var(--muted);
    font-size: 0.74rem;
    font-variant-numeric: tabular-nums;
}

.android-prompt-duration {
    color: var(--dim);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.android-prompt-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.android-prompt-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.android-badge {
    padding: 3px 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.android-badge[data-status="running"] {
    color: #9fc6ff;
    border-color: rgba(120, 170, 255, 0.5);
    background: rgba(80, 130, 255, 0.13);
    animation: android-badge-pulse 1.6s ease-in-out infinite;
}

.android-badge[data-status="ok"] {
    color: var(--success);
    border-color: rgba(157, 240, 172, 0.45);
    background: rgba(157, 240, 172, 0.1);
}

.android-badge[data-status="error"] {
    color: var(--danger);
    border-color: rgba(255, 154, 139, 0.5);
    background: rgba(255, 154, 139, 0.1);
}

.android-badge[data-status="cancelled"] {
    color: rgba(244, 244, 242, 0.6);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
}

@keyframes android-badge-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(120, 170, 255, 0.3); }
    50% { opacity: 0.72; box-shadow: 0 0 10px 1px rgba(120, 170, 255, 0.16); }
}

.android-logs-title {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.android-terminal {
    max-height: 480px;
    min-height: 130px;
    padding: 14px 16px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: #030303;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.8);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.76rem;
    line-height: 1.55;
}

.android-terminal:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.5);
}

.android-terminal-empty {
    margin: 0;
    color: var(--dim);
}

.android-log-line {
    display: grid;
    grid-template-columns: 66px auto 1fr;
    gap: 10px;
    align-items: start;
}

.android-log-time {
    color: rgba(244, 244, 242, 0.4);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.android-log-tag {
    color: #9fc6ff;
    white-space: nowrap;
}

.android-log-message {
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .studio-surface-tab {
        padding: 9px 18px;
        font-size: 0.82rem;
    }

    .android-users-head {
        flex-wrap: wrap;
    }

    .android-user-header {
        flex-wrap: wrap;
    }

    .android-log-line {
        grid-template-columns: 58px 1fr;
    }

    .android-log-message {
        grid-column: 1 / -1;
    }

    .studio-docs-topics {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ───────────── Visualización consciente/subconsciente (tab Windows) ───────────── */
#mind-viz {
    margin: 0 0 18px;
    padding: 8px 6px 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}
#mind-viz svg { width: 100%; height: auto; display: block; }

.viz-wire { fill: none; stroke: rgba(255, 255, 255, 0.20); stroke-width: 2; }
.viz-wire-faint { stroke: rgba(240, 200, 90, 0.32); }
.viz-arrowhead { fill: rgba(255, 255, 255, 0.35); }

.viz-circle circle {
    fill: rgba(255, 255, 255, 0.04);
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 1.5;
    animation: viz-breathe 3.4s ease-in-out infinite;
}
.viz-circle text { fill: rgba(255, 255, 255, 0.9); font-size: 16px; text-anchor: middle; font-weight: 500; }

.viz-bar rect { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.viz-bar text { fill: rgba(255, 255, 255, 0.82); font-size: 17px; text-anchor: middle; letter-spacing: 0.02em; }

.viz-tree circle { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.viz-tree .viz-branch { fill: none; stroke: rgba(255, 255, 255, 0.30); stroke-width: 1.4; }
.viz-tree .viz-node { fill: rgba(255, 255, 255, 0.5); stroke: none; }
.viz-mcp-label { fill: rgba(255, 255, 255, 0.7); font-size: 15px; text-anchor: middle; letter-spacing: 0.08em; }
.viz-mcp-dot { fill: rgba(255, 255, 255, 0.55); }

/* Pulsos de energía: un solo ciclo compartido de 3.4s; cada uno activo en su ventana. */
.viz-pulse-rise   { fill: #F4C752; offset-path: path("M150 286 C150 250 150 230 150 178"); animation: viz-rise 3.4s linear infinite; }
.viz-pulse-throw  { fill: #FFD65C; offset-path: path("M203 138 C250 150 272 152 296 140"); animation: viz-throw 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.viz-pulse-return { fill: #6FC9F5; offset-path: path("M320 222 C320 250 320 268 320 286"); animation: viz-return 3.4s ease-in-out infinite; }
.viz-pulse-learn  { fill: #E7C56A; offset-path: path("M425 300 C520 292 560 268 634 250"); animation: viz-learn 3.4s ease-in infinite; }

@keyframes viz-rise {
    0% { offset-distance: 0%; opacity: 0; } 2% { opacity: 1; }
    26% { offset-distance: 100%; opacity: 1; } 30% { offset-distance: 100%; opacity: 0; } 100% { opacity: 0; }
}
@keyframes viz-throw {
    0%, 29% { offset-distance: 0%; opacity: 0; } 31% { opacity: 1; }
    50% { offset-distance: 100%; opacity: 1; } 54% { offset-distance: 100%; opacity: 0; } 100% { opacity: 0; }
}
@keyframes viz-return {
    0%, 52% { offset-distance: 0%; opacity: 0; } 55% { opacity: 0.85; }
    88% { offset-distance: 100%; opacity: 0.85; } 92% { offset-distance: 100%; opacity: 0; } 100% { opacity: 0; }
}
@keyframes viz-learn {
    0%, 60% { offset-distance: 0%; opacity: 0; } 64% { opacity: 0.6; }
    96% { offset-distance: 100%; opacity: 0.5; } 99% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes viz-breathe { 0%, 100% { opacity: 0.82; } 50% { opacity: 1; } }

.viz-caption { margin: 4px 12px 8px; font-size: 12px; color: var(--muted); }
.viz-caption span { opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
    .viz-pulse-rise, .viz-pulse-throw, .viz-pulse-return, .viz-pulse-learn, .viz-circle circle { animation: none; }
    .viz-pulse-throw, .viz-pulse-return { opacity: 0.7; }
}

/* ───────────── Documentación viva (Provider Studio) ───────────── */
.studio-docs { margin: 34px auto 40px; max-width: 960px; padding: 0 8px; }
.studio-docs-head {
    all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
}
.studio-docs-head:focus-visible { outline: 1px solid #fff; outline-offset: 4px; border-radius: 8px; }
.studio-docs-head-copy { min-width: 0; }
.studio-docs-head h2 { margin: 0 0 2px; font-size: 20px; }
.studio-docs-head p { margin: 0; font-size: 13px; color: var(--muted); }
.studio-docs-chevron {
    width: 16px; height: 16px; flex: none; margin-top: 4px; fill: none;
    stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 160ms ease;
}
.studio-docs:not(.is-collapsed) .studio-docs-chevron { transform: rotate(180deg); }
.studio-docs.is-collapsed .studio-docs-topics { display: none; }
.studio-docs-group { margin-bottom: 0; }
.studio-docs-topic {
    margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted); font-weight: 600;
}
.studio-docs-topics {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px; margin-top: 16px; align-items: start;
}
.studio-docs-card {
    display: block; width: 100%; text-align: left; cursor: pointer;
    margin: 0 0 8px; padding: 12px 14px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03); color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.studio-docs-card:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
.studio-docs-card-title { display: block; font-size: 14px; font-weight: 600; }
.studio-docs-card-sum { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.studio-docs-loading { font-size: 13px; color: var(--muted); }

.studio-docs-reader {
    position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px);
}
.studio-docs-reader.is-hidden { display: none; }
.studio-docs-reader-panel {
    position: relative; width: 100%; max-width: 720px; max-height: 84vh; overflow: auto;
    padding: 28px 30px; border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12); background: #0b0b0d;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.studio-docs-close {
    position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; cursor: pointer;
    border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.75); font-size: 14px;
}
.studio-docs-close:hover { background: rgba(255, 255, 255, 0.12); }
.studio-docs-content { color: rgba(255, 255, 255, 0.88); line-height: 1.6; font-size: 14px; }
.studio-docs-content h1 { font-size: 22px; margin: 0 0 14px; }
.studio-docs-content h2 { font-size: 17px; margin: 22px 0 8px; }
.studio-docs-content h3 { font-size: 14px; margin: 18px 0 6px; color: rgba(255, 255, 255, 0.95); }
.studio-docs-content p { margin: 0 0 12px; }
.studio-docs-content ul { margin: 0 0 12px; padding-left: 20px; }
.studio-docs-content li { margin: 3px 0; }
.studio-docs-content code { background: rgba(255, 255, 255, 0.08); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
.studio-docs-content pre { background: rgba(255, 255, 255, 0.05); padding: 12px 14px; border-radius: 10px; overflow-x: auto; margin: 0 0 12px; }
.studio-docs-content pre code { background: none; padding: 0; }
.studio-docs-content hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 18px 0; }

/* ------------------------------------------------------------------------ */
/* Panel Windows: barra de distribución (split button + progreso)            */
/* ------------------------------------------------------------------------ */

.studio-split-button {
    position: relative;
    display: flex;
    align-items: stretch;
}

.studio-split-main.button.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    border-radius: 999px 0 0 999px;
}

.studio-split-caret {
    all: unset;
    box-sizing: border-box;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0c;
    background: #f2f2ef;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0 999px 999px 0;
    cursor: pointer;
    transition: background 150ms ease;
}

.studio-split-caret:hover,
.studio-split-caret:focus-visible {
    background: #ffffff;
}

.studio-split-caret .studio-topbar-caret {
    margin-left: 0;
}

.studio-split-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    padding: 6px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(8, 8, 10, 0.92);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.studio-split-menu-item {
    all: unset;
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease;
}

.studio-split-menu-item:hover,
.studio-split-menu-item:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.studio-split-menu-item:disabled {
    opacity: 0.5;
    cursor: wait;
}

.studio-download-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.studio-build-meta {
    margin: 0;
    color: var(--dim);
    font-size: 0.72rem;
    text-align: right;
}

.studio-build-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px auto 0;
    width: fit-content;
    padding: 14px 18px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(8, 8, 10, 0.55);
}

.studio-build-progress-spinner {
    width: 18px;
    height: 18px;
    flex: none;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: studio-spin 0.8s linear infinite;
}

.studio-build-progress-copy {
    display: grid;
    gap: 2px;
}

@keyframes studio-spin {
    to { transform: rotate(360deg); }
}
.studio-docs-content a { color: #7db4ff; }

/* ───────────── Puerta al laboratorio (la viz en vivo vive en /windows-lab.html) ───────────── */

.studio-lab-entry {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    margin: 0 auto 24px;
    max-width: 960px;
    padding: 20px 22px;
    border: 1px solid rgba(96, 148, 235, 0.28);
    border-radius: 18px;
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(76, 141, 255, 0.14), transparent 62%),
        rgba(9, 14, 26, 0.6);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.studio-lab-entry:hover {
    border-color: rgba(127, 178, 255, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 0 32px rgba(76, 141, 255, 0.16);
}

.studio-lab-entry-mark {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 21px;
    border-radius: 14px;
    border: 1px solid rgba(96, 148, 235, 0.36);
    background: rgba(76, 141, 255, 0.12);
}

.studio-lab-entry-copy { display: grid; gap: 3px; min-width: 0; }

.studio-lab-entry-kicker {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(127, 178, 255, 0.8);
}

.studio-lab-entry-copy strong { font-size: 17px; letter-spacing: -0.02em; }

.studio-lab-entry-sub { font-size: 12.5px; line-height: 1.55; color: var(--muted); }

.studio-lab-entry-arrow {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: rgba(127, 178, 255, 0.7);
    transition: transform 0.2s ease;
}

.studio-lab-entry:hover .studio-lab-entry-arrow { transform: translateX(3px); }
