:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #f1f4f9;
    --text: #111827;
    --muted: #667085;
    --line: #e4e7ec;
    --line-strong: #d0d5dd;
    --accent: #2563eb;
    --accent-soft: #eff4ff;
    --success: #0f9d58;
    --warning: #f59e0b;
    --danger: #9f1239;
    --danger-soft: rgba(159, 18, 57, 0.12);
    --success-soft: rgba(15, 157, 88, 0.12);
    --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    --max: 1360px;
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 13px;
}

body.theme-dark {
    --bg: #1f2430;
    --surface: #1f2430;
    --surface-soft: #1f2430;
    --text: #f5f7fb;
    --muted: #a3adc2;
    --line: #2b3240;
    --line-strong: #3b4354;
    --accent: #7cb3ff;
    --accent-soft: rgba(124, 179, 255, 0.12);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    transition: background-color 180ms ease, color 180ms ease;
}

body.page-home {
    background: #f7f9fc;
    color: #0f172a;
    overflow-x: hidden;
}

body.page-login,
body.page-register,
body.page-check-email,
body.page-verify-email {
    background: #070b18;
    color: #ffffff;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.page-shell {
    width: min(calc(100% - 36px), var(--max));
    margin: 0 auto;
    padding-bottom: 48px;
}

body.page-home .page-shell {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.page-home .site-header {
    display: none;
}

body.page-home .page-shell {
    min-height: 100vh;
}

body.page-login .page-shell-auth,
body.page-register .page-shell-auth,
body.page-check-email .page-shell-auth,
body.page-verify-email .page-shell-auth {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0 clamp(18px, 4vw, 72px);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 92% 2%, rgba(37, 99, 235, 0.48), transparent 24%),
        radial-gradient(circle at 4% 94%, rgba(236, 28, 98, 0.42), transparent 28%),
        linear-gradient(132deg, #080a15 0%, #11182c 44%, #06142f 100%);
}

body.page-login .page-shell-auth::before,
body.page-register .page-shell-auth::before,
body.page-check-email .page-shell-auth::before,
body.page-verify-email .page-shell-auth::before {
    content: "";
    position: fixed;
    inset: -8vh -8vw;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(120, 142, 255, 0.28) 2px, transparent 2px) 0 0 / 8vw 100%,
        linear-gradient(0deg, rgba(120, 142, 255, 0.24) 2px, transparent 2px) 0 0 / 100% 9vh,
        linear-gradient(90deg, rgba(236, 72, 153, 0.32) 2px, transparent 2px) 3vw 23vh / 14vw 38%,
        linear-gradient(0deg, rgba(236, 72, 153, 0.24) 2px, transparent 2px) 3vw 23vh / 86% 13vh;
    opacity: 0.72;
    transform: perspective(900px) rotateX(58deg) rotateZ(-3deg) scale(1.22);
    transform-origin: center;
    box-shadow: inset 0 0 80px rgba(52, 85, 190, 0.22);
}

body.page-login .page-shell-auth::after,
body.page-register .page-shell-auth::after,
body.page-check-email .page-shell-auth::after,
body.page-verify-email .page-shell-auth::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(4, 6, 15, 0.78), transparent 22%, transparent 78%, rgba(4, 9, 24, 0.48)),
        linear-gradient(180deg, rgba(3, 5, 13, 0.42), transparent 42%, rgba(4, 5, 13, 0.68));
}

body.page-login .auth-header,
body.page-register .auth-header,
body.page-check-email .auth-header,
body.page-verify-email .auth-header {
    position: relative;
    z-index: 2;
    width: min(100%, 1360px);
    margin: 0 auto;
    padding: 24px 0 12px;
}

body.page-login .auth-brand,
body.page-register .auth-brand,
body.page-check-email .auth-brand,
body.page-verify-email .auth-brand {
    color: #ffffff;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

body.page-login .auth-brand small,
body.page-register .auth-brand small,
body.page-check-email .auth-brand small,
body.page-verify-email .auth-brand small {
    color: rgba(255, 255, 255, 0.72);
}

body.page-login .auth-main,
body.page-register .auth-main,
body.page-check-email .auth-main,
body.page-verify-email .auth-main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 180px);
    padding: clamp(32px, 8vh, 110px) 0 clamp(34px, 7vh, 90px);
}

body.page-login .auth-card,
body.page-register .auth-card,
body.page-check-email .auth-status-card,
body.page-verify-email .auth-status-card {
    position: relative;
    isolation: isolate;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
        rgba(8, 13, 30, 0.62);
    box-shadow:
        0 34px 95px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(24px);
}

body.page-login .auth-card::before,
body.page-register .auth-card::before,
body.page-check-email .auth-status-card::before,
body.page-verify-email .auth-status-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background:
        radial-gradient(circle at 18% 12%, rgba(34, 240, 68, 0.16), transparent 32%),
        radial-gradient(circle at 88% 20%, rgba(37, 99, 235, 0.26), transparent 36%),
        radial-gradient(circle at 18% 100%, rgba(255, 47, 115, 0.18), transparent 34%);
    pointer-events: none;
}

body.page-login .auth-card-head h1,
body.page-register .auth-card-head h1,
body.page-check-email .auth-status-head h1,
body.page-verify-email .auth-status-head h1 {
    color: #ffffff;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

body.page-login .auth-card-head p,
body.page-register .auth-card-head p,
body.page-check-email .auth-status-head p,
body.page-verify-email .auth-status-head p,
body.page-register .auth-panel-intro,
body.page-register .auth-field-note,
body.page-register .auth-check-copy,
body.page-login .auth-links,
body.page-register .auth-links,
body.page-register .auth-inline-note span,
body.page-login .auth-footer,
body.page-register .auth-footer,
body.page-check-email .auth-footer,
body.page-verify-email .auth-footer {
    color: rgba(255, 255, 255, 0.72);
}

body.page-login .auth-field input,
body.page-register .auth-field input {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.page-login .auth-field input::placeholder,
body.page-register .auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

body.page-login .auth-field input:focus,
body.page-register .auth-field input:focus {
    border-color: rgba(124, 179, 255, 0.76);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.page-login .auth-password-toggle,
body.page-register .auth-password-toggle {
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.12);
}

body.page-login .auth-google-button,
body.page-register .auth-google-button {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
}

body.page-login .auth-google-button:hover,
body.page-register .auth-google-button:hover {
    background: rgba(255, 255, 255, 0.16);
}

body.page-login .auth-provider-notice {
    margin-top: -2px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(147, 197, 253, 0.28);
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.1)),
        rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.page-login .auth-links a,
body.page-login .auth-links p a,
body.page-register .auth-links a,
body.page-register .auth-links p a {
    color: #93c5fd;
}

body.page-register .auth-role-switch,
body.page-register .auth-inline-note {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

body.page-register .auth-role-button {
    color: rgba(255, 255, 255, 0.74);
}

body.page-register .auth-role-button.is-active {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
}

body.page-register .auth-check-box {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

body.page-login .auth-footer,
body.page-register .auth-footer,
body.page-check-email .auth-footer,
body.page-verify-email .auth-footer {
    position: relative;
    z-index: 2;
    width: min(100%, 1360px);
    margin: 0 auto;
    border-top-color: rgba(255, 255, 255, 0.14);
}

body.page-login .footer-locale-button,
body.page-register .footer-locale-button,
body.page-check-email .footer-locale-button,
body.page-verify-email .footer-locale-button {
    color: rgba(255, 255, 255, 0.72);
}

body.page-login,
body.page-register,
body.page-check-email,
body.page-verify-email,
body.page-forgot-password,
body.page-reset-password {
    background: var(--bg);
    color: var(--text);
}

body.page-login .page-shell-auth,
body.page-register .page-shell-auth,
body.page-check-email .page-shell-auth,
body.page-verify-email .page-shell-auth,
body.page-forgot-password .page-shell-auth,
body.page-reset-password .page-shell-auth {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0 clamp(18px, 4vw, 72px);
    overflow: visible;
    isolation: auto;
    background:
        radial-gradient(circle at top center, color-mix(in srgb, var(--accent) 8%, transparent), transparent 42%),
        linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--surface-soft) 72%, var(--bg)) 100%);
}

body.page-login .page-shell-auth::before,
body.page-register .page-shell-auth::before,
body.page-check-email .page-shell-auth::before,
body.page-verify-email .page-shell-auth::before,
body.page-forgot-password .page-shell-auth::before,
body.page-reset-password .page-shell-auth::before,
body.page-login .page-shell-auth::after,
body.page-register .page-shell-auth::after,
body.page-check-email .page-shell-auth::after,
body.page-verify-email .page-shell-auth::after,
body.page-forgot-password .page-shell-auth::after,
body.page-reset-password .page-shell-auth::after {
    content: none;
}

body.page-login .auth-header,
body.page-register .auth-header,
body.page-check-email .auth-header,
body.page-verify-email .auth-header,
body.page-forgot-password .auth-header,
body.page-reset-password .auth-header {
    position: relative;
    z-index: 1;
    width: min(100%, 1360px);
    margin: 0 auto;
    padding: 18px 0 12px;
}

body.page-login .auth-brand,
body.page-register .auth-brand,
body.page-check-email .auth-brand,
body.page-verify-email .auth-brand,
body.page-forgot-password .auth-brand,
body.page-reset-password .auth-brand {
    color: var(--text);
    text-shadow: none;
}

body.page-login .auth-brand small,
body.page-register .auth-brand small,
body.page-check-email .auth-brand small,
body.page-verify-email .auth-brand small,
body.page-forgot-password .auth-brand small,
body.page-reset-password .auth-brand small {
    color: var(--muted);
}

body.page-login .auth-main,
body.page-register .auth-main,
body.page-check-email .auth-main,
body.page-verify-email .auth-main,
body.page-forgot-password .auth-main,
body.page-reset-password .auth-main {
    position: relative;
    z-index: 1;
    min-height: auto;
    padding: 28px 0 40px;
}

body.page-login .auth-card,
body.page-register .auth-card,
body.page-forgot-password .auth-card,
body.page-reset-password .auth-card,
body.page-check-email .auth-status-card,
body.page-verify-email .auth-status-card {
    color: var(--text);
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    background:
        radial-gradient(circle at top center, color-mix(in srgb, var(--accent) 10%, transparent), transparent 48%),
        var(--surface);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    backdrop-filter: none;
}

body.page-login .auth-card::before,
body.page-register .auth-card::before,
body.page-forgot-password .auth-card::before,
body.page-reset-password .auth-card::before,
body.page-check-email .auth-status-card::before,
body.page-verify-email .auth-status-card::before {
    content: none;
}

body.page-login .auth-card-head h1,
body.page-register .auth-card-head h1,
body.page-forgot-password .auth-card-head h1,
body.page-reset-password .auth-card-head h1,
body.page-check-email .auth-status-head h1,
body.page-verify-email .auth-status-head h1 {
    color: var(--text);
    text-shadow: none;
}

body.page-login .auth-card-head p,
body.page-register .auth-card-head p,
body.page-forgot-password .auth-card-head p,
body.page-reset-password .auth-card-head p,
body.page-check-email .auth-status-head p,
body.page-verify-email .auth-status-head p,
body.page-register .auth-panel-intro,
body.page-register .auth-field-note,
body.page-register .auth-check-copy,
body.page-login .auth-links,
body.page-register .auth-links,
body.page-forgot-password .auth-links,
body.page-reset-password .auth-links,
body.page-register .auth-inline-note span {
    color: var(--muted);
}

body.page-login .auth-field input,
body.page-register .auth-field input,
body.page-forgot-password .auth-field input,
body.page-reset-password .auth-field input {
    color: var(--text);
    border-color: var(--line);
    background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft));
    box-shadow: none;
}

body.page-login .auth-field input::placeholder,
body.page-register .auth-field input::placeholder,
body.page-forgot-password .auth-field input::placeholder,
body.page-reset-password .auth-field input::placeholder {
    color: color-mix(in srgb, var(--muted) 82%, transparent);
}

body.page-login .auth-field input:focus,
body.page-register .auth-field input:focus,
body.page-forgot-password .auth-field input:focus,
body.page-reset-password .auth-field input:focus {
    border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

body.page-login .auth-password-toggle,
body.page-register .auth-password-toggle,
body.page-reset-password .auth-password-toggle {
    color: var(--text);
    background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
}

body.page-login .auth-google-button,
body.page-register .auth-google-button {
    color: var(--text);
    border-color: color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 90%, var(--surface-soft));
}

body.page-login .auth-provider-notice {
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
    color: var(--muted);
    box-shadow: none;
}

body.page-login .auth-links a,
body.page-login .auth-links p a,
body.page-register .auth-links a,
body.page-register .auth-links p a,
body.page-forgot-password .auth-links a,
body.page-forgot-password .auth-links p a,
body.page-reset-password .auth-links a,
body.page-reset-password .auth-links p a {
    color: var(--accent);
}

body.page-register .auth-role-switch,
body.page-register .auth-inline-note {
    border-color: color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
}

body.page-register .auth-role-button {
    color: var(--muted);
}

body.page-register .auth-role-button.is-active {
    color: var(--text);
    background: var(--surface);
}

body.page-register .auth-check-box {
    border-color: var(--line-strong);
    background: var(--surface);
}

body.page-login .auth-footer,
body.page-register .auth-footer,
body.page-check-email .auth-footer,
body.page-verify-email .auth-footer,
body.page-forgot-password .auth-footer,
body.page-reset-password .auth-footer {
    position: relative;
    z-index: 1;
    width: min(100%, 1360px);
    margin: 0 auto;
    color: var(--muted);
    border-top-color: color-mix(in srgb, var(--line) 82%, transparent);
}

body.page-login .footer-locale-button,
body.page-register .footer-locale-button,
body.page-check-email .footer-locale-button,
body.page-verify-email .footer-locale-button,
body.page-forgot-password .footer-locale-button,
body.page-reset-password .footer-locale-button {
    color: var(--muted);
}
.page-shell-auth {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}
.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0 12px;
}
.auth-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.auth-header-links,
.auth-header-socials {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.auth-header-links .button {
    min-height: 42px;
    padding-inline: 18px;
}
.auth-header-socials a {
    color: var(--text);
    font-size: 1.1rem;
    transition: color 160ms ease, transform 160ms ease;
}
.auth-header-socials a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}
.auth-main {
    display: grid;
    place-items: center;
    padding: 28px 0 40px;
}
.auth-card-wrap {
    width: 100%;
    display: grid;
    place-items: center;
}
.auth-card {
    width: min(100%, 420px);
    padding: 28px;
    border-radius: 28px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    background:
        radial-gradient(circle at top center, color-mix(in srgb, var(--accent) 10%, transparent), transparent 48%),
        var(--surface);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}
.auth-card-head {
    text-align: center;
    margin-bottom: 20px;
}
.auth-card-head h1 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
}
.auth-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.auth-form {
    display: grid;
    gap: 12px;
}
.auth-field input {
    width: 100%;
    height: 50px;
    min-height: 50px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft));
    color: var(--text);
    padding: 0 14px;
    outline: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.auth-field input:focus {
    border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.auth-field {
    display: grid;
    gap: 8px;
    align-content: start;
}
.auth-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.auth-password-wrap input {
    width: 100%;
    padding-right: 46px;
}
.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
    color: var(--text);
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 78%, transparent);
    transition: color 160ms ease, transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.auth-password-toggle svg,
.auth-password-toggle i {
    width: 16px;
    height: 16px;
    display: block;
    line-height: 1;
    font-size: 14px;
    color: currentColor;
    pointer-events: none;
}
.auth-password-toggle:hover {
    color: var(--accent);
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
}
.auth-password-toggle:focus-visible {
    outline: 0;
    color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.auth-field-note {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.4;
}
.auth-field.is-valid input {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.auth-field.is-invalid input {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.auth-field.is-valid .auth-field-note {
    color: #16a34a;
}
.auth-field.is-invalid .auth-field-note {
    color: #dc2626;
}
.auth-password-meter {
    position: relative;
    display: block;
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 84%, transparent);
}
.auth-password-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #ef4444;
    transition: width 180ms ease, background-color 180ms ease;
}
.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.auth-submit-label {
    transition: opacity 160ms ease;
}
.auth-submit-spinner {
    width: 18px;
    height: 18px;
    display: none;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.26);
    border-top-color: #ffffff;
    animation: auth-submit-spin 0.75s linear infinite;
}
.auth-submit.is-loading {
    pointer-events: none;
}
.auth-submit.is-loading .auth-submit-label {
    display: none;
}
.auth-submit.is-loading .auth-submit-spinner {
    display: inline-block;
}
@keyframes auth-submit-spin {
    to {
        transform: rotate(360deg);
    }
}
.auth-google-button {
    width: 100%;
    min-height: 48px;
    gap: 10px;
    font-weight: 700;
    background: color-mix(in srgb, var(--surface) 90%, var(--surface-soft));
}
.auth-google-button i {
    color: #ea4335;
    font-size: 1rem;
}
.auth-links {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    text-align: center;
}
.auth-links a {
    color: var(--muted);
}
.auth-links a:hover,
.auth-links p a {
    color: var(--accent);
}
.auth-links p {
    margin: 0;
    color: var(--muted);
}
.auth-card-register {
    width: min(100%, 700px);
}
.auth-role-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding: 5px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}
.auth-role-button {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.auth-role-button.is-active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}
.auth-role-button:hover {
    transform: translateY(-1px);
}
.auth-role-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}
.auth-role-panel[hidden] {
    display: none !important;
}
.auth-panel-intro {
    grid-column: 1 / -1;
}
.auth-panel-intro {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}
.auth-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 2px 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
    cursor: pointer;
}
.auth-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.auth-check-box {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 5px;
    border: 1.5px solid color-mix(in srgb, var(--line-strong) 90%, transparent);
    background: color-mix(in srgb, var(--surface) 90%, var(--surface-soft));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    flex-shrink: 0;
    position: relative;
}
.auth-check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: 0;
    transform: rotate(45deg) scale(0.72);
    transition: opacity 160ms ease, transform 160ms ease;
}
.auth-check-copy {
    flex: 1;
}
.auth-check input:checked + .auth-check-box {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.auth-check input:checked + .auth-check-box::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}
.auth-check input:focus-visible + .auth-check-box {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.auth-check.is-invalid .auth-check-box {
    border-color: rgba(239, 68, 68, 0.68);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.auth-alert[hidden] {
    display: none !important;
}
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--danger) 42%, transparent);
    background: color-mix(in srgb, var(--danger) 10%, var(--surface));
    color: var(--danger);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
}
.auth-alert i {
    margin-top: 1px;
    flex-shrink: 0;
}
.auth-alert span {
    flex: 1;
}
.auth-alert.is-success {
    border-color: color-mix(in srgb, #16a34a 34%, transparent);
    background: color-mix(in srgb, #16a34a 10%, var(--surface));
    color: #16a34a;
}
body.theme-dark .auth-alert.is-success {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.12);
    color: #86efac;
}
body.theme-dark .auth-alert {
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}
.auth-inline-note {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
}
.auth-inline-note strong {
    font-size: 0.78rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}
.auth-inline-note span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}
.auth-status-card {
    width: min(100%, 520px);
    display: grid;
    gap: 18px;
}
.auth-status-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: var(--accent);
    background: radial-gradient(circle at top, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.auth-status-icon svg {
    width: 64px;
    height: 64px;
    display: block;
}
.auth-status-head {
    margin-bottom: 0;
}
.auth-status-mail {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    text-align: center;
}
.auth-status-mail strong {
    font-size: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}
.auth-status-mail span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}
.auth-status-steps {
    display: grid;
    gap: 10px;
}
.auth-status-steps div {
    padding: 12px 14px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}
.auth-status-steps strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}
.auth-status-steps p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}
.auth-status-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.auth-status-steps-compact {
    gap: 12px;
}
.auth-status-steps-compact div {
    padding: 14px 16px;
}
.auth-inline-note-status {
    margin-top: 2px;
}
.auth-footer {
    border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    padding: 18px 0 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.auth-footer p {
    margin: 0;
    font-size: 0.84rem;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px);
    padding: 14px 0 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: color-mix(in srgb, var(--bg) 74%, transparent);
    backdrop-filter: blur(8px);
}
.page-loader[hidden] {
    display: none;
}
.page-loader-card {
    width: 148px;
    height: 148px;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.page-loader-mark {
    position: relative;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
}
.page-loader-logo,
.page-loader-orbit,
.page-loader-aura {
    position: absolute;
}
.page-loader-logo {
    inset: 18px;
    width: 76px;
    height: 76px;
    overflow: visible;
    animation: page-loader-logo-float 2.2s ease-in-out infinite;
}
.page-loader-aura {
    inset: 12px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 45% 38%, color-mix(in srgb, #2563eb 24%, transparent), transparent 55%),
        radial-gradient(circle at 62% 60%, color-mix(in srgb, #14b8a6 14%, transparent), transparent 68%);
    filter: blur(12px);
    opacity: 0.75;
}
.page-loader-orbit {
    inset: 3px;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--line) 52%, transparent);
    border-top-color: #2563eb;
    border-right-color: #0f766e;
    box-shadow: 0 0 22px rgba(37, 99, 235, 0.1);
}
.page-loader-logo-tile {
    fill: var(--surface);
    stroke: color-mix(in srgb, var(--line) 84%, transparent);
    stroke-width: 1.4;
    filter: drop-shadow(0 16px 26px rgba(15, 23, 42, 0.14));
}
.page-loader-logo-w,
.page-loader-logo-trace {
    fill: none;
    stroke-width: 5.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.page-loader-logo-w {
    stroke: #111827;
}
.page-loader-logo-trace {
    stroke: url(#page-loader-wandy-trace);
    stroke-dasharray: 18 82;
    stroke-dashoffset: 100;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.22));
}
.page-loader.is-active .page-loader-aura {
    animation: page-loader-aura-pulse 2.2s ease-in-out infinite;
}
.page-loader.is-active .page-loader-orbit {
    animation: page-loader-orbit-spin 1.05s linear infinite;
}
.page-loader.is-active .page-loader-logo-trace {
    animation: page-loader-w-trace 1.45s ease-in-out infinite;
}

body:not(.theme-dark) .page-loader-aura {
    background:
        radial-gradient(circle at 45% 38%, rgba(37, 99, 235, 0.18), transparent 58%),
        radial-gradient(circle at 62% 60%, rgba(20, 184, 166, 0.1), transparent 72%);
    opacity: 0.92;
}

body:not(.theme-dark) .page-loader-logo-tile {
    fill: #ffffff;
}

body.theme-dark .page-loader-logo-w {
    stroke: #f8fafc;
}
body.is-page-loading {
    cursor: progress;
}
body.is-page-loading a,
body.is-page-loading button {
    pointer-events: none;
}

.studio-dashboard-toast-stack {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 1200;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 28px));
    transform: translateX(-50%);
    pointer-events: none;
}

.studio-dashboard-toast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, #22c55e 34%, var(--line));
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 94%, #ecfdf5);
    color: var(--text);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.studio-dashboard-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.studio-dashboard-toast.is-error {
    border-color: color-mix(in srgb, #ef4444 38%, var(--line));
    background: color-mix(in srgb, var(--surface) 92%, #fef2f2);
}

.studio-dashboard-toast-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.studio-dashboard-toast.is-error .studio-dashboard-toast-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.topbar,
.section-head,
.pill-row,
.prediction-topline,
.ranking-item,
.topbar-actions,
.signal-metrics,
.filter-row,
.market-tabs,
.site-nav,
.context-filter-group,
.carousel-controls,
.carousel-nav,
.carousel-title-row,
.probability-row,
.target-list,
.comment-item,
.insight-grid,
.highlight-list,
.visual-topline,
.chart-axis {
    display: flex;
}

.topbar { align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 180px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-weight: 800;
}
.brand-mark--wandy {
    padding: 0;
    font-size: 0;
    color: #000;
}
.brand-mark-svg {
    display: block;
    width: 76%;
    height: 76%;
    overflow: visible;
}
body.theme-dark .brand-mark--wandy {
    color: #fff;
}
.brand strong { display: block; font-size: 1rem; }
.brand small,
.muted,
.hero-copy,
.signal-analyst,
.ranking-content p,
.card p,
.ranking-subtitle,
.chart-axis { color: var(--muted); }

.searchbar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: 0 14px;
    min-height: 50px;
}
.searchbar input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.searchbar input:focus {
    border-color: transparent !important;
    box-shadow: none !important;
    outline: 0;
}
.search-icon { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.search-icon svg, .theme-toggle svg { width: 18px; height: 18px; }
.topbar-actions { align-items: center; gap: 10px; }
.nav-link { color: var(--accent); font-weight: 700; }
.site-nav { gap: 8px; overflow-x: auto; padding: 12px 0 4px; }

.site-nav a,
.market-tabs a,
.button,
.status,
.theme-toggle,
.filter-pill,
.probability-pill,
.asset-badge,
.carousel-dot,
.position-badge { border-radius: 999px; }

.site-nav a,
.market-tabs a {
    padding: 9px 13px;
    color: var(--accent);
    white-space: nowrap;
}
.site-nav a.is-active,
.site-nav a:hover,
.market-tabs a.is-active,
.market-tabs a:hover {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
}

.button,
.theme-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.button-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button, .theme-toggle { transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.button:focus-visible, .theme-toggle:focus-visible { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.button-primary:hover, .button-primary:focus-visible { background: color-mix(in srgb, var(--accent) 88%, #ffffff 12%); border-color: color-mix(in srgb, var(--accent) 88%, #ffffff 12%); transform: translateY(-1px); box-shadow: 0 12px 22px color-mix(in srgb, var(--accent) 22%, transparent); }
.button-ghost:hover, .button-ghost:focus-visible { background: color-mix(in srgb, var(--surface-soft) 92%, var(--surface)); border-color: color-mix(in srgb, var(--line) 72%, var(--accent)); transform: translateY(-1px); }
.button-ghost, .button-filter, .text-link { background: var(--surface); }
.theme-toggle { width: 42px; height: 42px; padding: 0; }

.wandy-landing {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 94% 4%, rgba(38, 104, 255, 0.48), transparent 24%),
        radial-gradient(circle at 3% 92%, rgba(239, 28, 104, 0.46), transparent 28%),
        linear-gradient(132deg, #080a15 0%, #11182c 44%, #06142f 100%);
}

.wandy-landing::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 7.5vw 100%,
        linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 9vh;
    opacity: 0.45;
    transform: perspective(900px) rotateX(58deg) rotateZ(-3deg) scale(1.18);
    transform-origin: center;
}

.wandy-landing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 6, 15, 0.74), transparent 20%, transparent 78%, rgba(4, 9, 24, 0.4)),
        linear-gradient(180deg, rgba(3, 5, 13, 0.38), transparent 42%, rgba(4, 5, 13, 0.62));
    pointer-events: none;
}

.wandy-landing-market-art {
    position: absolute;
    inset: -7vh -5vw -8vh -4vw;
    z-index: -2;
    transform: rotate(-3deg);
    filter: saturate(1.12);
}

.wandy-landing-grid-plane {
    position: absolute;
    inset: 12vh 7vw 11vh 6vw;
    border: 2px solid rgba(116, 142, 255, 0.38);
    background:
        linear-gradient(90deg, rgba(120, 142, 255, 0.42) 2px, transparent 2px) 0 0 / 7.2vw 100%,
        linear-gradient(0deg, rgba(120, 142, 255, 0.35) 2px, transparent 2px) 0 0 / 100% 8.4vh,
        linear-gradient(90deg, rgba(236, 72, 153, 0.44) 2px, transparent 2px) 3.6vw 5vh / 14.4vw 42%,
        linear-gradient(0deg, rgba(236, 72, 153, 0.36) 2px, transparent 2px) 3vw 5vh / 82% 13vh;
    box-shadow:
        0 0 38px rgba(70, 114, 255, 0.42),
        inset 0 0 54px rgba(50, 74, 174, 0.32);
    opacity: 0.78;
}

.wandy-landing-line {
    position: absolute;
    left: 11vw;
    right: 7vw;
    height: 25vh;
    bottom: 21vh;
    opacity: 0.54;
    filter: drop-shadow(0 0 14px currentColor);
    clip-path: polygon(0 74%, 7% 51%, 13% 62%, 19% 26%, 26% 80%, 33% 38%, 39% 58%, 46% 20%, 53% 70%, 60% 34%, 68% 78%, 75% 22%, 82% 42%, 89% 14%, 100% 30%);
}

.wandy-landing-line.is-blue {
    color: #0ea5e9;
    border-bottom: 6px solid currentColor;
}

.wandy-landing-line.is-pink {
    color: #fb2e78;
    bottom: 47vh;
    height: 17vh;
    clip-path: polygon(0 70%, 12% 42%, 21% 48%, 32% 34%, 44% 54%, 57% 23%, 69% 46%, 83% 16%, 100% 29%);
}

.wandy-landing-candles {
    position: absolute;
    left: 9vw;
    right: 8vw;
    bottom: 29vh;
    height: 39vh;
}

.wandy-landing-candle {
    position: absolute;
    left: var(--x);
    top: var(--t);
    width: clamp(9px, 0.9vw, 18px);
    height: var(--h);
    border-radius: 4px;
    box-shadow: 0 0 16px currentColor;
}

.wandy-landing-candle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -22px;
    bottom: -24px;
    width: 3px;
    transform: translateX(-50%);
    background: currentColor;
    opacity: 0.76;
}

.wandy-landing-candle.is-green {
    color: #22f044;
    background: linear-gradient(180deg, #3cff61, #0fb52c);
}

.wandy-landing-candle.is-red {
    color: #ff2a73;
    background: linear-gradient(180deg, #ff4c8d, #c40f4d);
}

.wandy-landing-number {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1.8rem, 3vw, 4.1rem);
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 5px 16px rgba(0, 0, 0, 0.45);
    filter: blur(0.1px);
}

.wandy-landing-number.is-one { left: 45%; top: 29%; }
.wandy-landing-number.is-two { left: 61%; top: 28%; font-size: clamp(1.5rem, 2.4vw, 3.2rem); }
.wandy-landing-number.is-three { right: 5%; top: 18%; font-size: clamp(1.3rem, 2.2vw, 3rem); }

.wandy-landing-arrow {
    position: absolute;
    width: 0;
    height: 0;
    filter: drop-shadow(0 0 12px currentColor);
}

.wandy-landing-arrow.is-up {
    right: 10%;
    top: 18%;
    color: #21f052;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-bottom: 38px solid currentColor;
}

.wandy-landing-arrow.is-down {
    right: 25%;
    bottom: 38%;
    color: #ff2f73;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 34px solid currentColor;
}

.wandy-landing-actions {
    position: absolute;
    top: clamp(20px, 4.6vw, 58px);
    right: clamp(18px, 4.2vw, 70px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wandy-landing-action {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 20px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.wandy-landing-action:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.42);
}

.wandy-landing-action.is-primary {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.wandy-landing-title {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    text-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.wandy-landing-title h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(5.2rem, 13vw, 12.4rem);
    line-height: 0.86;
    font-weight: 900;
    letter-spacing: 0;
}

.wandy-landing-title p {
    margin: clamp(18px, 2.2vw, 34px) 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(2rem, 4.2vw, 5.1rem);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: 0;
}

.wandy-marketing {
    --wandy-ink: #0f172a;
    --wandy-muted: #64748b;
    --wandy-line: #dbe3ef;
    --wandy-blue: #2563eb;
    --wandy-green: #16a34a;
    width: 100%;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 4%, rgba(37, 99, 235, 0.11), transparent 28%),
        radial-gradient(circle at 92% 9%, rgba(20, 184, 166, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: var(--wandy-ink);
}

.wandy-marketing-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    width: min(100% - 32px, 1180px);
    min-height: 72px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    background: rgba(248, 251, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(219, 227, 239, 0.78);
}

.wandy-marketing-brand,
.wandy-marketing-links,
.wandy-marketing-actions,
.wandy-marketing-button,
.wandy-marketing-proof,
.wandy-product-demo-top,
.wandy-demo-badges span,
.wandy-story-tabs a {
    display: inline-flex;
    align-items: center;
}

.wandy-marketing-brand {
    gap: 10px;
}

.wandy-marketing-brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.wandy-marketing-brand strong,
.wandy-marketing-brand small {
    display: block;
}

.wandy-marketing-brand strong {
    font-size: 0.98rem;
    font-weight: 900;
}

.wandy-marketing-brand small {
    color: var(--wandy-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.wandy-marketing-links {
    justify-content: center;
    gap: 8px;
}

.wandy-marketing-links a,
.wandy-marketing-button {
    gap: 8px;
    border-radius: 999px;
    font-weight: 850;
    white-space: nowrap;
}

.wandy-marketing-links a {
    min-height: 38px;
    padding: 0 13px;
    color: var(--wandy-muted);
    transition: color 160ms ease, background-color 160ms ease;
}

.wandy-marketing-links a:hover {
    color: var(--wandy-blue);
    background: rgba(37, 99, 235, 0.08);
}

.wandy-marketing-actions {
    justify-content: flex-end;
    gap: 10px;
}

.wandy-marketing-button {
    min-height: 42px;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--wandy-line);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.wandy-marketing-button:hover {
    transform: translateY(-1px);
}

.wandy-marketing-button.is-primary {
    color: #ffffff;
    border-color: #1d4ed8;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.24);
}

.wandy-marketing-button.is-ghost {
    color: var(--wandy-ink);
    background: #ffffff;
}

.wandy-marketing-button.is-large {
    min-height: 50px;
    padding-inline: 20px;
}

.wandy-marketing-hero,
.wandy-marketing-section {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
}

.wandy-marketing-hero {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: clamp(26px, 5vw, 72px);
    align-items: center;
    padding: clamp(44px, 8vh, 94px) 0 64px;
}

.wandy-marketing-hero-copy {
    display: grid;
    gap: 20px;
}

.wandy-marketing-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.1);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wandy-marketing-hero h1,
.wandy-section-head h2,
.wandy-pricing-card h2 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.04;
}

.wandy-marketing-hero h1 {
    max-width: 720px;
    font-size: clamp(2.55rem, 5.3vw, 5.45rem);
}

.wandy-marketing-hero p {
    max-width: 600px;
    margin: 0;
    color: var(--wandy-muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.7;
}

.wandy-marketing-hero-actions,
.wandy-marketing-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wandy-marketing-proof {
    margin-top: 8px;
}

.wandy-marketing-proof span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 14px;
    color: var(--wandy-muted);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(219, 227, 239, 0.82);
}

.wandy-marketing-proof strong {
    color: var(--wandy-ink);
    font-size: 1.1rem;
}

.wandy-product-demo {
    border-radius: 28px;
    border: 1px solid rgba(219, 227, 239, 0.88);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.wandy-product-demo-top {
    min-height: 54px;
    gap: 8px;
    padding: 0 18px;
    border-bottom: 1px solid var(--wandy-line);
    background: rgba(248, 251, 255, 0.9);
}

.wandy-product-demo-top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
}

.wandy-product-demo-top span:first-child { background: #ef4444; }
.wandy-product-demo-top span:nth-child(2) { background: #f59e0b; }
.wandy-product-demo-top span:nth-child(3) { background: #22c55e; }

.wandy-product-demo-top strong {
    margin-left: auto;
    color: var(--wandy-muted);
    font-size: 0.82rem;
}

.wandy-product-demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(190px, 0.8fr);
    gap: 14px;
    padding: 18px;
}

.wandy-product-demo-grid article {
    border-radius: 18px;
    border: 1px solid var(--wandy-line);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.wandy-demo-selected {
    min-height: 150px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px;
}

.wandy-demo-selected small,
.wandy-section-head span {
    color: var(--wandy-blue);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wandy-demo-selected h2 {
    margin: 8px 0 6px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.wandy-demo-selected p {
    margin: 0;
    color: var(--wandy-muted);
}

.wandy-demo-score {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #052e16;
    background: conic-gradient(from -110deg, #f97316 0 22%, #facc15 22% 42%, #22c55e 42% 100%);
    font-size: 2rem;
    font-weight: 950;
}

.wandy-demo-badges {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.wandy-demo-badges span {
    min-height: 38px;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.82rem;
}

.wandy-demo-badges .is-buy,
.wandy-demo-badges .is-up { color: #15803d; background: #dcfce7; border: 1px solid #86efac; }
.wandy-demo-badges .is-time { color: #a16207; background: #fef3c7; border: 1px solid #fde68a; }
.wandy-demo-badges .is-test { color: #1d4ed8; background: #dbeafe; border: 1px solid #bfdbfe; }

.wandy-demo-chart {
    position: relative;
    min-height: 210px;
    grid-column: span 1;
    padding: 20px;
    overflow: hidden;
}

.wandy-demo-chart .bar {
    position: absolute;
    bottom: 22px;
    width: 16%;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.wandy-demo-chart .one { left: 10%; height: 42%; }
.wandy-demo-chart .two { left: 30%; height: 60%; background: linear-gradient(180deg, #86efac, #16a34a); }
.wandy-demo-chart .three { left: 50%; height: 36%; }
.wandy-demo-chart .four { left: 70%; height: 72%; background: linear-gradient(180deg, #86efac, #16a34a); }
.wandy-demo-chart .line {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 42%;
    height: 3px;
    border-radius: 999px;
    background: #0f172a;
    transform: rotate(-12deg);
}

.wandy-demo-list {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.wandy-demo-list div {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.wandy-demo-list span {
    color: #15803d;
    font-weight: 900;
}

.wandy-demo-list div:last-child span {
    color: #dc2626;
}

.wandy-marketing-section {
    padding: 76px 0;
}

.wandy-section-head {
    max-width: 680px;
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.wandy-section-head h2 {
    font-size: clamp(2rem, 3.5vw, 3.3rem);
}

.wandy-simple-steps,
.wandy-metrics-grid,
.wandy-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wandy-simple-steps article,
.wandy-metrics-grid article,
.wandy-testimonial-grid blockquote,
.wandy-pricing-card,
.wandy-story-panels article {
    border: 1px solid var(--wandy-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.wandy-simple-steps article,
.wandy-metrics-grid article {
    min-height: 190px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 22px;
}

.wandy-simple-steps i,
.wandy-metrics-grid i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: var(--wandy-blue);
}

.wandy-simple-steps strong,
.wandy-metrics-grid strong {
    font-size: 1.08rem;
    font-weight: 950;
}

.wandy-simple-steps p,
.wandy-metrics-grid p,
.wandy-story-panels p,
.wandy-pricing-card p,
.wandy-testimonial-grid blockquote {
    margin: 0;
    color: var(--wandy-muted);
    line-height: 1.65;
}

.wandy-story-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.wandy-story-tabs {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 10px;
}

.wandy-story-tabs a {
    min-height: 48px;
    gap: 10px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--wandy-ink);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--wandy-line);
    font-weight: 900;
}

.wandy-story-panels {
    display: grid;
    gap: 18px;
}

.wandy-story-panels article {
    min-height: 230px;
    display: grid;
    align-content: center;
    gap: 12px;
    padding: clamp(24px, 4vw, 42px);
    scroll-margin-top: 96px;
}

.wandy-story-panels span {
    color: var(--wandy-blue);
    font-size: 0.86rem;
    font-weight: 950;
    letter-spacing: 0.12em;
}

.wandy-story-panels h3 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.wandy-testimonial-grid blockquote {
    min-height: 180px;
    display: grid;
    align-content: space-between;
    gap: 18px;
    padding: 24px;
    font-weight: 700;
}

.wandy-testimonial-grid cite {
    color: var(--wandy-ink);
    font-style: normal;
    font-weight: 950;
}

.wandy-pricing {
    padding-bottom: 110px;
}

.wandy-pricing-card {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
    padding: clamp(26px, 5vw, 44px);
}

.wandy-price strong {
    display: block;
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 0.95;
}

.wandy-price span {
    color: var(--wandy-muted);
    font-weight: 900;
}

.wandy-pricing-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wandy-pricing-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--wandy-ink);
    font-weight: 800;
}

.wandy-pricing-card li i {
    color: var(--wandy-green);
}

@media (max-width: 980px) {
    .wandy-marketing-nav {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .wandy-marketing-links {
        display: none;
    }

    .wandy-marketing-hero,
    .wandy-story-layout {
        grid-template-columns: 1fr;
    }

    .wandy-story-tabs {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wandy-simple-steps,
    .wandy-metrics-grid,
    .wandy-testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wandy-marketing-nav {
        width: min(100% - 24px, 1180px);
        grid-template-columns: 1fr;
        padding: 12px 0;
    }

    .wandy-marketing-actions {
        justify-content: stretch;
    }

    .wandy-marketing-actions .wandy-marketing-button {
        flex: 1;
    }

    .wandy-marketing-hero,
    .wandy-marketing-section {
        width: min(100% - 24px, 1180px);
    }

    .wandy-product-demo-grid {
        grid-template-columns: 1fr;
    }

    .wandy-story-tabs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.page-home {
        overflow: auto;
    }

    .wandy-landing {
        min-height: 100svh;
    }

    .wandy-landing-market-art {
        inset: -4vh -46vw -4vh -30vw;
        transform: rotate(-4deg) scale(1.03);
    }

    .wandy-landing-actions {
        top: 18px;
        right: 16px;
        left: 16px;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .wandy-landing-action {
        min-height: 42px;
        padding-inline: 15px;
        font-size: 0.86rem;
    }

    .wandy-landing-title h1 {
        font-size: clamp(4.3rem, 22vw, 7rem);
    }

    .wandy-landing-title p {
        font-size: clamp(1.65rem, 8vw, 2.7rem);
    }

    .wandy-landing-number.is-one,
    .wandy-landing-number.is-two {
        display: none;
    }
}

.home-shell { padding-top: 22px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(320px, 0.9fr); gap: 20px; align-items: start; }
.card, .table-card, .feature-stage, .ranking-panel, .market-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}
.card, .table-card, .feature-stage, .ranking-panel, .market-card { padding: 22px; }
.feature-stage-head, .ranking-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 16px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.67rem; font-weight: 700; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.7rem, 3.8vw, 3rem); line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 10px; }
h2 { font-size: 1.05rem; line-height: 1.25; margin-bottom: 8px; }
h3 { font-size: 0.96rem; margin-bottom: 8px; }
.hero-copy, .ranking-subtitle, .ranking-content p, .card p, .comment-item p { font-size: 0.9rem; line-height: 1.5; }

.filter-row, .market-tabs, .signal-metrics, .context-filter-group, .highlight-list { gap: 8px; flex-wrap: wrap; }

.prediction-carousel { display: grid; gap: 14px; }
.carousel-track { position: relative; min-height: 540px; }
.carousel-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.2fr);
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(16px);
    transition: opacity 240ms ease, transform 240ms ease;
}
.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.carousel-summary,
.carousel-visual {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
    padding: 18px;
}
.carousel-title-row { align-items: center; gap: 12px; margin-bottom: 14px; }
.asset-badge {
    width: 42px;
    height: 46px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    color: var(--accent);
    font-weight: 800;
}
.probability-row { flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.probability-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 8px 10px;
    font-size: 0.75rem;
}
.target-list { flex-direction: column; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0; }
.target-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.target-list div:last-child { border-bottom: 0; }
.target-list span { color: var(--muted); font-size: 0.78rem; }
.target-list strong { font-size: 0.9rem; }

.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 7px 13px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.position-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}
.position-badge-long {
    background: linear-gradient(180deg, rgba(15, 157, 88, 0.92), rgba(13, 132, 74, 0.92));
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    border-color: rgba(110, 231, 183, 0.55);
}
.position-badge-short {
    background: linear-gradient(180deg, rgba(190, 24, 93, 0.94), rgba(136, 19, 55, 0.94));
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    border-color: rgba(251, 113, 133, 0.55);
}

.comment-marquee {
    position: relative;
    height: 130px;
    overflow: hidden;
    margin-top: 14px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}
.comment-marquee-track {
    display: grid;
    gap: 12px;
    animation: credits-scroll 16s linear infinite;
}
.comment-item { gap: 10px; align-items: start; }
.comment-item-marquee { padding-right: 6px; }
.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}
.comment-item strong { display: block; font-size: 0.82rem; margin-bottom: 2px; }

.visual-topline { justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.analyst-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: var(--accent);
    font-size: 0.83rem;
}
.analyst-meta a { color: var(--text); }
.analyst-meta small { color: var(--muted); font-size: 0.74rem; }

.chart-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    padding: 14px;
}
.chart-card-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.chart-timeframes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.chart-timeframe-chip {
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    background: color-mix(in srgb, var(--surface-2) 84%, transparent);
    color: var(--muted);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.chart-timeframe-chip:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}
.chart-timeframe-chip.is-active {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 42%, transparent);
}
.lightweight-chart-shell {
    position: relative;
    width: 100%;
    min-height: 170px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 72%, transparent), transparent 72%),
        radial-gradient(circle at top, color-mix(in srgb, var(--accent) 12%, transparent), transparent 58%);
}
.lightweight-chart-surface {
    display: block;
    width: 100%;
    height: 170px;
}
.lightweight-chart-surface > div {
    display: block;
    width: 100%;
    height: 100%;
}
.chart-axis { justify-content: space-between; margin-top: 8px; font-size: 0.74rem; }

.insight-grid {
    gap: 10px;
    margin-top: 14px;
    align-items: stretch;
    flex-wrap: wrap;
}
.insight-card {
    flex: 1;
    min-width: 118px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 18px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 58px;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
}
.insight-label {
    color: var(--accent);
    font-size: 0.74rem;
    line-height: 1.1;
    margin-bottom: 5px;
}
.insight-value {
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.highlight-list {
    margin-top: 14px;
    gap: 8px;
}
.highlight-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 0.76rem;
    color: var(--accent);
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
}

.carousel-controls { justify-content: space-between; align-items: center; gap: 12px; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, var(--line-strong) 90%, transparent);
    cursor: pointer;
}
.carousel-dot.is-active { width: 24px; background: var(--text); }
.carousel-nav { gap: 8px; }

.ranking-panel { min-height: 100%; }
.ranking-subtitle { margin: 0; }
.filter-row { margin-bottom: 18px; align-items: center; }
.ranking-head { align-items: start; }
.ranking-filter-form {
    position: relative;
    margin: 0;
    flex-shrink: 0;
}
.ranking-filter-shell {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
    width: auto;
}
.ranking-filter-trigger {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.ranking-filter-trigger:hover,
.ranking-filter-shell.is-open .ranking-filter-trigger {
    border-color: var(--line-strong);
    background: var(--surface-soft);
    color: var(--text);
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.10);
}
.ranking-filter-trigger:focus-visible,
.ranking-filter-option:focus-visible,
.favorite-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.ranking-filter-trigger svg,
.ranking-filter-option-icon i,
.ranking-filter-check i,
.favorite-toggle i {
    display: block;
    font-size: 0.95rem;
    line-height: 1;
}
.ranking-filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, calc(100vw - 48px));
    z-index: 20;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
    overflow: hidden;
}
.ranking-filter-options {
    display: grid;
}
.ranking-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}
.ranking-filter-option:first-child {
    border-top: 0;
}
.ranking-filter-option:hover,
.ranking-filter-option.is-active {
    background: var(--surface-soft);
}
.ranking-filter-option-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.ranking-filter-option-icon {
    width: 18px;
    color: var(--accent);
    display: inline-flex;
    justify-content: center;
}
.ranking-filter-option-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ranking-filter-option-copy strong {
    font-size: 0.94rem;
    line-height: 1.2;
}
.ranking-filter-option-copy small {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.3;
}
.ranking-filter-option-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.ranking-filter-check,
.favorite-toggle {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}
.ranking-filter-check {
    color: var(--accent);
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 160ms ease, transform 160ms ease;
}
.ranking-filter-option.is-active .ranking-filter-check {
    opacity: 1;
    transform: scale(1);
}
.favorite-toggle {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
}
.favorite-toggle:hover {
    transform: scale(1.05);
}
.favorite-toggle.is-favorite {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}
.favorite-toggle.is-burst {
    animation: favorite-burst 420ms ease;
}
.ranking-list { display: grid; gap: 10px; }
.ranking-item { align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); transition: transform 160ms ease; }
.ranking-item:hover { transform: translateX(4px); }
.ranking-item:last-child { border-bottom: 0; }
.ranking-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-soft);
    display: grid;
    place-items: center;
    font-weight: 800;
    flex-shrink: 0;
}
.ranking-content { flex: 1; }
.ranking-name { font-weight: 800; display: inline-block; font-size: 0.95rem; }
.ranking-content p { margin: 4px 0 0; }
.ranking-score { text-align: right; }
.ranking-score strong { font-size: 0.95rem; }
.ranking-score small { display: block; color: var(--muted); font-size: 0.76rem; }

.prediction-topline { justify-content: space-between; align-items: center; gap: 12px; }
.prediction-range { color: var(--text); }
.status {
    padding: 7px 10px;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}
.status-active { background: var(--accent-soft); color: var(--accent); }
.status-hit { background: rgba(15, 157, 88, 0.12); color: var(--success); }
.status-watchlist { background: var(--surface-soft); color: var(--muted); }

.compact-head { margin: 26px 0 14px; }
.section-head { justify-content: space-between; align-items: end; gap: 18px; }
.market-tabs { margin-bottom: 16px; overflow-x: auto; }
.front-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mini-meter {
    height: 7px;
    border-radius: 999px;
    background: var(--surface-soft);
    overflow: hidden;
    margin: 12px 0 10px;
}
.mini-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #7dd3fc);
    border-radius: inherit;
}

.pulse-head { margin-top: 34px; }
.pulse-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.pulse-tab {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.pulse-tab:hover,
.pulse-tab.is-active {
    background: color-mix(in srgb, var(--surface) 84%, var(--accent-soft));
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line-strong));
}
.pulse-tab:hover { transform: translateY(-1px); }
.community-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.community-card {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, #dbeafe 4%), var(--surface));
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
}
.community-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}
.community-name {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}
.community-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.community-badge.is-bull {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.14);
}
.community-badge.is-bear {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.14);
}
.pulse-block {
    display: grid;
    gap: 10px;
}
.pulse-copy-row,
.pulse-label-row,
.consensus-head,
.consensus-range-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.pulse-copy-row span,
.consensus-range-row span,
.pulse-note,
.community-name { color: var(--muted); }
.market-pulse-bar {
    display: flex;
    width: 100%;
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 74%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}
.market-pulse-bull,
.market-pulse-bear {
    display: block;
    height: 100%;
}
.market-pulse-bull {
    background: linear-gradient(90deg, #2563eb, #38bdf8);
}
.market-pulse-bear {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.16), rgba(239, 68, 68, 0.42));
}
.pulse-label-row strong {
    font-size: 0.8rem;
    line-height: 1.35;
}
.pulse-note {
    margin: 0;
    font-size: 0.78rem;
}
.consensus-card {
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
    padding: 16px;
    display: grid;
    gap: 12px;
}
.consensus-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}
.consensus-tag.is-positive {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
}
.consensus-tag.is-negative {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
}
.consensus-price {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}
.consensus-range-row {
    color: var(--muted);
    font-size: 0.8rem;
}
.consensus-slider {
    position: relative;
    height: 12px;
}
.consensus-slider-track {
    position: absolute;
    inset: 2px 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.08));
}
.consensus-slider-dot {
    position: absolute;
    top: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}
.quick-insights {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.insight-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid transparent;
}
.insight-pill-warm {
    color: #c2410c;
    background: rgba(251, 146, 60, 0.14);
    border-color: rgba(251, 146, 60, 0.2);
}
.insight-pill-cool {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.2);
}
.insight-pill-neutral {
    color: #7c2d12;
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.22);
}
.insight-pill-soft {
    color: var(--text);
    background: color-mix(in srgb, var(--surface-soft) 86%, transparent);
    border-color: color-mix(in srgb, var(--line) 82%, transparent);
}
.pulse-empty {
    margin-top: 18px;
}
.table-card { overflow-x: auto; }
.leaderboard { width: 100%; border-collapse: collapse; }
.leaderboard th, .leaderboard td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.profile-social-hero {
    align-items: start;
}
.profile-main-card,
.favorite-assets-block,
.pricing-sales-head {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}
.profile-main-card {
    padding: 22px;
    display: grid;
    gap: 18px;
}
.profile-side-stack {
    display: grid;
    gap: 16px;
}
.profile-social-topline,
.profile-title-row,
.hit-history-head,
.hit-history-metric,
.pricing-sales-head,
.profile-card-cta-row {
    display: flex;
}
.profile-social-topline,
.hit-history-head,
.hit-history-metric,
.pricing-sales-head {
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.profile-title-row {
    justify-content: space-between;
    gap: 20px;
    align-items: start;
}
.profile-title-copy {
    max-width: 62%;
}
.profile-title-row h1 {
    margin-bottom: 20px;
}
.profile-strategy {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.35;
}
.profile-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.profile-subscribe-button {
    min-width: 126px;
}
.profile-followers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}
.profile-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.profile-follow-button {
    gap: 8px;
    min-width: 0;
}
.social-action {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
    color: var(--text);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.social-action i {
    font-size: 0.8rem;
    line-height: 1;
}
.social-action:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--surface-soft);
}
.social-action-wide {
    width: auto;
    min-width: 0;
    padding: 0 10px;
    font-size: 0.74rem;
    font-weight: 700;
}
.has-tooltip {
    position: relative;
}
.tooltip-bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    min-width: 156px;
    max-width: 220px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 94%, #05070c 6%);
    color: var(--text);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 15;
}
.tooltip-bubble::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) translateY(-5px) rotate(45deg);
    border-right: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 94%, #05070c 6%);
}
.tooltip-title {
    display: block;
    margin-bottom: 3px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}
.tooltip-copy {
    display: block;
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--text);
}
.has-tooltip:hover .tooltip-bubble,
.has-tooltip:focus-visible .tooltip-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.hit-history-card {
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    border-radius: 20px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-soft) 72%, transparent));
    padding: 16px;
    display: grid;
    gap: 12px;
}
.hit-history-head h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}
.hit-history-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}
.hit-history-head strong {
    white-space: nowrap;
}
.hit-history-metric {
    align-items: center;
    gap: 12px;
}
.hit-history-metric span,
.hit-history-metric strong {
    font-size: 0.82rem;
    min-width: 56px;
}
.hit-history-bar {
    position: relative;
    flex: 1;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 80%, transparent);
}
.hit-history-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
}
.hit-history-bar.is-hit span {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}
.hit-history-bar.is-miss span {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.28), rgba(148, 163, 184, 0.52));
}
.profile-metrics-compact {
    min-height: auto;
}
.favorite-assets-block {
    padding: 18px 20px;
}
.compact-head-tight {
    margin: 0 0 10px;
}
.favorite-asset-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.favorite-asset-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
    color: var(--text);
    font-size: 0.74rem;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}
.pricing-sales-head {
    margin: 6px 0 18px;
    padding: 18px 20px;
}
.pricing-sales-head p {
    margin: 6px 0 0;
    color: var(--muted);
}
.pricing-cta,
.profile-card-cta {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-color: #16a34a;
    color: #fff;
}
.profile-prediction-grid {
    align-items: stretch;
}
.profile-prediction-card {
    display: grid;
    gap: 8px;
}
.profile-card-cta-row {
    justify-content: flex-end;
    margin-top: auto;
}
.profile-hero {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 24px;
    margin: 26px 0 34px;
}
.profile-metrics {
    display: grid;
    gap: 12px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}
.profile-metrics div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.metric-grid, .card-grid, .section-grid { display: grid; gap: 16px; }
.card-grid, .section-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0; }
.metric-grid div { padding: 12px; border-radius: var(--radius-md); background: var(--surface-soft); }
.metric-grid dt { color: var(--muted); font-size: 0.76rem; }
.metric-grid dd { margin: 6px 0 0; font-size: 1rem; font-weight: 800; }
.empty-state { margin-top: 36px; }
.hide-mobile { display: inline-flex; }
.site-footer {
    margin-top: 44px;
    padding: 34px 0 14px;
    border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}
.footer-top {
    display: grid;
    gap: 26px;
}
.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 800;
}
.footer-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: var(--text);
    color: var(--surface);
    font-size: 0.8rem;
    font-weight: 800;
}
.footer-brand-mark.brand-mark--wandy {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 0;
}
.footer-socials {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--text);
    transition: color 160ms ease, transform 160ms ease;
}
.footer-socials a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.footer-grid h3 {
    margin: 0 0 12px;
    font-size: 0.92rem;
}
.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.footer-grid a {
    color: var(--text);
    font-size: 0.9rem;
}
.footer-grid a:hover {
    color: var(--accent);
}
.footer-disclaimer,
.footer-bottom {
    border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}
.footer-disclaimer {
    margin-top: 28px;
    padding-top: 24px;
}
.footer-disclaimer p {
    max-width: 1080px;
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.65;
}
.footer-bottom {
    margin-top: 26px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.84rem;
}
.footer-locale {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.footer-locale-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
}
.footer-locale-button.is-active,
.footer-locale-button:hover {
    color: var(--text);
}

@keyframes page-loader-aura-pulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.6;
    }
    48% {
        transform: scale(1.08);
        opacity: 0.95;
    }
}

@keyframes page-loader-orbit-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes page-loader-logo-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.02);
    }
}

@keyframes page-loader-w-trace {
    0% {
        stroke-dasharray: 8 92;
        stroke-dashoffset: 100;
        opacity: 0;
    }
    22% {
        opacity: 1;
    }
    58% {
        stroke-dasharray: 34 66;
        stroke-dashoffset: 34;
        opacity: 1;
    }
    100% {
        stroke-dasharray: 8 92;
        stroke-dashoffset: -12;
        opacity: 0;
    }
}

@keyframes page-loader-energy-run {
    0% {
        stroke-dasharray: 6 94;
        stroke-dashoffset: 100;
        opacity: 0;
    }
    16% {
        opacity: 0.9;
    }
    52% {
        stroke-dasharray: 24 76;
        stroke-dashoffset: 34;
        opacity: 1;
    }
    74% {
        stroke-dasharray: 18 82;
        stroke-dashoffset: 4;
        opacity: 1;
    }
    88% {
        stroke-dasharray: 8 92;
        stroke-dashoffset: -6;
        opacity: 0.22;
    }
    100% {
        stroke-dasharray: 6 94;
        stroke-dashoffset: -10;
        opacity: 0;
    }
}

@keyframes page-loader-core-breathe {
    0%, 100% {
        transform: scale(0.88);
        opacity: 0.82;
    }
    45% {
        transform: scale(1.04);
        opacity: 1;
    }
    76% {
        transform: scale(0.8);
        opacity: 0.72;
    }
}

@keyframes page-loader-star-burst {
    0%, 58% {
        opacity: 0;
        transform: scale(0.2) rotate(-10deg);
    }
    74% {
        opacity: 1;
        transform: scale(1.16) rotate(10deg);
    }
    100% {
        opacity: 0;
        transform: scale(1.56) rotate(24deg);
    }
}

@keyframes page-loader-star-spark-one {
    0%, 62% { opacity: 0; transform: translate(0, 0) scale(0.5); }
    80% { opacity: 1; transform: translate(-4px, -3px) scale(1.05); }
    100% { opacity: 0; transform: translate(-7px, -6px) scale(0.82); }
}

@keyframes page-loader-star-spark-two {
    0%, 60% { opacity: 0; transform: translate(0, 0) scale(0.45); }
    78% { opacity: 1; transform: translate(2px, -5px) scale(1); }
    100% { opacity: 0; transform: translate(4px, -8px) scale(0.8); }
}

@keyframes page-loader-star-spark-three {
    0%, 64% { opacity: 0; transform: translate(0, 0) scale(0.5); }
    82% { opacity: 1; transform: translate(5px, 2px) scale(1.08); }
    100% { opacity: 0; transform: translate(8px, 4px) scale(0.78); }
}

@keyframes credits-scroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes favorite-burst {
    0% { transform: scale(1); }
    35% { transform: scale(1.24) rotate(-10deg); }
    70% { transform: scale(0.92) rotate(7deg); }
    100% { transform: scale(1); }
}

@media (max-width: 1240px) {
    .hero-grid,
    .front-grid,
    .card-grid,
    .section-grid,
    .profile-hero,
    .carousel-slide {
        grid-template-columns: 1fr;
    }

    .carousel-track { min-height: 780px; }
}

@media (max-width: 860px) {
    .page-shell { width: min(calc(100% - 20px), var(--max)); }
    .topbar,
    .section-head,
    .feature-stage-head,
    .ranking-head,
    .filter-row,
    .carousel-controls,
    .carousel-nav,
    .visual-topline,
    .carousel-title-row {
        flex-direction: column;
        align-items: stretch;
    }
    .topbar-actions { flex-wrap: wrap; }
    .searchbar { order: 3; }
    .hide-mobile { display: none; }
    .site-nav { padding-top: 14px; }
    .button-filter { width: 100%; }
    .ranking-filter-trigger,
    .ranking-filter-menu {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .auth-header,
    .auth-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .auth-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .auth-header-links,
    .auth-header-socials {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .auth-header-links .button {
        flex: 1 1 180px;
        justify-content: center;
    }
    .auth-card {
        padding: 22px;
    }
    .auth-role-panel {
        grid-template-columns: 1fr;
    }
    .auth-status-actions {
        grid-template-columns: 1fr;
    }
    .carousel-track { min-height: 960px; }
}






















.social-action.is-copied,
.social-action.is-shared {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(34, 197, 94, 0.12);
}






.profile-green-cta {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-color: #16a34a;
    color: #fff;
}
.social-action svg {
    width: 15px;
    height: 15px;
    display: block;
    flex-shrink: 0;
}







.topbar-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.topbar-user-chip strong {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--accent) 16%, var(--surface));
    color: var(--accent);
    font-size: 0.74rem;
}
.topbar-user-chip strong.has-image {
    background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}
.topbar-user-chip strong img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.topbar-user-chip span {
    color: var(--muted);
    font-size: 0.82rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dashboard-shell {
    padding: 22px 0 0;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.dashboard-sidebar,
.dashboard-content {
    display: grid;
    gap: 18px;
}
.dashboard-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.dashboard-user-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 16%, var(--surface));
    color: var(--accent);
    font-size: 1rem;
    font-weight: 800;
}
.dashboard-user-card h2 {
    margin-bottom: 4px;
}
.dashboard-user-card p,
.dashboard-copy {
    margin: 0;
    color: var(--muted);
}
.dashboard-menu {
    display: grid;
    gap: 10px;
}
.dashboard-menu-item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 90%, var(--surface-soft));
    transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}
.dashboard-menu-item:hover,
.dashboard-menu-item.is-active {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    transform: translateY(-1px);
}
.dashboard-menu-item strong {
    display: block;
    margin-bottom: 5px;
}
.dashboard-menu-item span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}
.dashboard-logout {
    width: 100%;
}
.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}
.dashboard-hero h1 {
    margin-bottom: 12px;
}
.dashboard-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.dashboard-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.dashboard-actions-card .section-head {
    margin-bottom: 14px;
}
.dashboard-action-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.dashboard-action-item {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft));
}
.dashboard-action-item h3 {
    margin-bottom: 8px;
}
.dashboard-action-item p {
    margin: 0;
    color: var(--muted);
}
@media (max-width: 1240px) {
    .dashboard-grid,
    .dashboard-action-list,
    .dashboard-panel-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 860px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .topbar-user-chip {
        width: 100%;
        justify-content: flex-start;
    }
}
.page-shell-dashboard {
    width: calc(100% - 24px);
    max-width: none;
    margin: 12px auto;
    padding: 0;
}
.app-dashboard {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 8%, transparent), transparent 30%),
        var(--bg);
}
.app-dashboard-frame {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 100vh;
}
.app-dashboard-rail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 18px 10px;
    background: color-mix(in srgb, var(--accent) 78%, #3d2469 22%);
}
.app-dashboard-brand,
.app-dashboard-rail-link {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 160ms ease, transform 160ms ease;
}
.app-dashboard-brand {
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}
.app-dashboard-rail-link:hover,
.app-dashboard-rail-link.is-active,
.app-dashboard-brand:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.app-dashboard-rail-nav {
    display: grid;
    gap: 10px;
}
.app-dashboard-main {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
}
.app-dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    backdrop-filter: blur(12px);
}
.app-dashboard-toplinks,
.app-dashboard-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.app-dashboard-toplink {
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.85rem;
}
.app-dashboard-toplink.is-active,
.app-dashboard-toplink:hover {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
}
.app-dashboard-icon,
.app-dashboard-profile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}
.app-dashboard-body {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(240px, 300px);
    gap: 22px;
    padding: 22px 24px 28px;
    align-items: start;
}
.app-dashboard-section-list,
.app-dashboard-content,
.app-dashboard-context {
    min-width: 0;
}
.app-dashboard-tabs {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 18px;
}
.app-dashboard-tab {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    border-radius: 10px 10px 0 0;
    padding: 8px 14px;
    cursor: pointer;
}
.app-dashboard-tab.is-active {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.app-dashboard-group {
    border-top: 1px solid var(--line);
}
.app-dashboard-group:first-of-type {
    border-top: 0;
}
.app-dashboard-group-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}
.app-dashboard-group-body {
    display: grid;
    gap: 8px;
    padding-bottom: 14px;
}
.app-dashboard-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted);
}
.app-dashboard-group-item.is-active,
.app-dashboard-group-item:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
}
.app-dashboard-group-item small {
    color: inherit;
    font-size: 0.74rem;
}
.app-dashboard-content {
    display: grid;
    gap: 24px;
    min-height: 540px;
}
.app-dashboard-content-copy {
    max-width: 680px;
}
.app-dashboard-content-copy h1 {
    margin-bottom: 14px;
}
.app-dashboard-content-copy p {
    color: var(--muted);
    max-width: 58ch;
}
.app-dashboard-illustration {
    position: relative;
    min-height: 290px;
    margin-top: 10px;
    border-radius: 28px;
    border: 1px dashed color-mix(in srgb, var(--line) 88%, transparent);
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 22%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 85%, transparent), transparent),
        var(--surface);
    overflow: hidden;
}
.app-dashboard-illustration-card,
.app-dashboard-illustration-sheet {
    position: absolute;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft));
    box-shadow: var(--shadow);
}
.app-dashboard-illustration-card {
    width: 190px;
    height: 128px;
    left: 50%;
    top: 54px;
    transform: translateX(-50%);
}
.app-dashboard-illustration-sheet {
    width: 270px;
    height: 166px;
    left: 50%;
    bottom: 40px;
    transform: translateX(-38%);
}
.app-dashboard-illustration-play,
.app-dashboard-illustration-badge {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.app-dashboard-illustration-play {
    width: 64px;
    height: 64px;
    right: 92px;
    bottom: 78px;
    background: color-mix(in srgb, var(--accent) 82%, #5a35b8 18%);
    color: #fff;
}
.app-dashboard-illustration-badge {
    width: 44px;
    height: 52px;
    background: var(--surface);
    color: color-mix(in srgb, var(--accent) 74%, #7439bc 26%);
    border: 1px solid var(--line);
}
.app-dashboard-illustration-badge.is-heart {
    left: 88px;
    top: 52px;
}
.app-dashboard-illustration-badge.is-bell {
    right: 66px;
    top: 82px;
}
.app-dashboard-context {
    display: grid;
    gap: 18px;
}
.app-dashboard-cta p,
.app-dashboard-checklist span,
.app-dashboard-profile-head a {
    color: var(--muted);
}
.app-dashboard-cta .button {
    margin-top: 10px;
    width: 100%;
}
.app-dashboard-checklist {
    display: grid;
    gap: 12px;
}
.app-dashboard-check-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text);
}
.app-dashboard-check-item i {
    color: var(--accent);
    margin-top: 3px;
}
.app-dashboard-profile {
    position: relative;
}
.app-dashboard-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 24px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 20%, var(--surface));
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
}
.app-dashboard-avatar.is-large {
    width: 44px;
    height: 44px;
    font-size: 0.94rem;
}
.app-dashboard-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, 88vw);
    padding: 12px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
    background: var(--surface);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    z-index: 20;
}
.app-dashboard-profile-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 8px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
}
.app-dashboard-profile-head strong {
    display: block;
    margin-bottom: 3px;
}
.app-dashboard-profile-item {
    display: block;
    padding: 12px 10px;
    border-radius: 12px;
}
.app-dashboard-profile-item:hover {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
@media (max-width: 1240px) {
    .app-dashboard-body {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    }
    .app-dashboard-context {
        grid-column: 1 / -1;
    }
}
@media (max-width: 980px) {
    .app-dashboard-body {
        grid-template-columns: 1fr;
    }
    .app-dashboard-frame {
        grid-template-columns: 1fr;
    }
    .app-dashboard-rail {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 16px;
    }
    .app-dashboard-rail-nav {
        display: flex;
        gap: 10px;
    }
}
@media (max-width: 860px) {
    .app-dashboard-topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .app-dashboard-toplinks,
    .app-dashboard-toolbar {
        justify-content: flex-start;
    }
    .app-dashboard-illustration {
        min-height: 240px;
    }
    .app-dashboard-illustration-card {
        width: 150px;
        height: 106px;
    }
    .app-dashboard-illustration-sheet {
        width: 220px;
        height: 140px;
        transform: translateX(-44%);
    }
    .app-dashboard-illustration-play {
        right: 36px;
        bottom: 52px;
    }
    .app-dashboard-illustration-badge.is-heart {
        left: 28px;
    }
    .app-dashboard-illustration-badge.is-bell {
        right: 18px;
    }
}
.app-dashboard-content-stack {
    display: grid;
    gap: 22px;
    min-width: 0;
}
.app-dashboard-balance {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 88%, #204f90 12%), color-mix(in srgb, var(--accent) 72%, #14b8d4 28%));
    color: #ffffff;
}
.app-dashboard-balance-copy,
.app-dashboard-balance-metrics {
    padding: 24px;
}
.app-dashboard-balance-copy {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.app-dashboard-balance-copy h1 {
    margin-bottom: 8px;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}
.app-dashboard-balance-copy p,
.app-dashboard-balance-metrics span {
    color: rgba(255,255,255,0.84);
}
.app-dashboard-balance-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    font-size: 1.45rem;
}
.app-dashboard-balance-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    min-width: min(100%, 420px);
}
.app-dashboard-balance-metrics strong {
    display: block;
    margin-top: 6px;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
}
.app-dashboard-account-switch {
    position: relative;
    align-self: end;
}
.app-dashboard-account-trigger {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(13, 18, 28, 0.16);
    color: #fff;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
}
.app-dashboard-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 18px 44px rgba(0,0,0,0.24);
    z-index: 25;
}
.app-dashboard-account-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    padding: 12px 10px;
    border-radius: 12px;
    cursor: pointer;
}
.app-dashboard-account-item:hover,
.app-dashboard-account-item.is-active {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.app-dashboard-finance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 22px;
}
.app-dashboard-section-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 14px;
    margin-bottom: 18px;
}
.app-dashboard-accounts-list,
.app-dashboard-flow-list {
    display: grid;
    gap: 12px;
}
.app-dashboard-account-row,
.app-dashboard-flow-item {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
}
.app-dashboard-account-row.is-active {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    box-shadow: inset 4px 0 0 color-mix(in srgb, var(--accent) 84%, transparent);
}
.app-dashboard-account-row strong,
.app-dashboard-flow-item strong {
    display: block;
}
.app-dashboard-account-row span,
.app-dashboard-flow-item span,
.app-dashboard-account-row small {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}
.app-dashboard-account-balance,
.app-dashboard-flow-value {
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}
.app-dashboard-flow-item {
    grid-template-columns: minmax(0, 1fr) auto;
}
.app-dashboard-flow-value.is-positive {
    color: #16a34a;
}
.app-dashboard-flow-value.is-neutral {
    color: var(--text);
}
.app-dashboard-inline-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}
.app-dashboard-analyst-card {
    text-align: center;
}
.app-dashboard-analyst-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffb0c3, #8ad0ff 60%, #86efac);
    color: #111827;
    font-size: 1.6rem;
    font-weight: 800;
}
.app-dashboard-analyst-card p {
    margin-bottom: 8px;
    color: var(--muted);
}
.app-dashboard-analyst-card > a {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.84rem;
}
.app-dashboard-analyst-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    border-top: 1px solid var(--line);
}
.app-dashboard-analyst-stats div {
    padding: 16px 10px 0;
}
.app-dashboard-analyst-stats strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.app-dashboard-analyst-stats span {
    color: var(--muted);
    font-size: 0.8rem;
}
@media (max-width: 1240px) {
    .app-dashboard-balance,
    .app-dashboard-finance-grid {
        grid-template-columns: 1fr;
    }
    .app-dashboard-balance {
        flex-direction: column;
    }
    .app-dashboard-balance-metrics {
        min-width: 0;
    }
}
@media (max-width: 860px) {
    .app-dashboard-balance-metrics,
    .app-dashboard-account-row {
        grid-template-columns: 1fr;
    }
    .app-dashboard-section-head {
        flex-direction: column;
        align-items: stretch;
    }
}
.app-dashboard-rail-link svg,
.app-dashboard-icon svg,
.app-dashboard-profile-trigger svg,
.app-dashboard-group-trigger svg,
.app-dashboard-balance-icon svg,
.app-dashboard-account-trigger svg,
.app-dashboard-check-item svg {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 18px;
}
.app-dashboard-illustration-play svg,
.app-dashboard-illustration-badge svg {
    width: 22px;
    height: 22px;
    display: block;
}
.app-dashboard-rail-link {
    position: relative;
}
.app-dashboard-rail-link.is-active {
    transform: translateX(8px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 10px 22px rgba(6, 12, 24, 0.18);
}
.app-dashboard-rail-link.is-active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 4px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    transform: translateY(-50%);
}
.app-dashboard-group.is-open .app-dashboard-group-trigger svg,
.app-dashboard-profile.is-open .app-dashboard-profile-trigger svg,
.app-dashboard-account-switch.is-open .app-dashboard-account-trigger svg {
    transform: rotate(180deg);
}
.app-dashboard-group-trigger svg,
.app-dashboard-profile-trigger svg,
.app-dashboard-account-trigger svg {
    transition: transform 160ms ease;
}
@media (max-width: 980px) {
    .app-dashboard-rail-link.is-active {
        transform: translateY(-6px);
    }
    .app-dashboard-rail-link.is-active::before {
        left: 50%;
        top: auto;
        bottom: -8px;
        width: 22px;
        height: 4px;
        transform: translateX(-50%);
    }
}

.app-dashboard-rail-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}
.app-dashboard-rail-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.app-dashboard-rail,
.app-dashboard-rail-nav {
    gap: 12px;
}
.app-dashboard-rail-link,
.app-dashboard-icon,
.app-dashboard-profile-trigger,
.app-dashboard-group-trigger,
.app-dashboard-account-trigger,
.app-dashboard-rail-toggle,
.app-dashboard-balance-icon,
.app-dashboard-modal-icon,
.app-dashboard-check-item {
    color: inherit;
}
.app-dashboard-rail-link svg,
.app-dashboard-icon svg,
.app-dashboard-profile-trigger svg,
.app-dashboard-group-trigger svg,
.app-dashboard-balance-icon svg,
.app-dashboard-account-trigger svg,
.app-dashboard-check-item svg,
.app-dashboard-modal-icon svg,
.app-dashboard-rail-toggle svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    stroke: currentColor;
    fill: none;
    opacity: 1;
    visibility: visible;
}
.app-dashboard-illustration-play svg,
.app-dashboard-illustration-badge svg {
    fill: currentColor;
}
.app-dashboard-frame {
    transition: grid-template-columns 220ms ease;
}
.app-dashboard-body {
    transition: grid-template-columns 220ms ease, gap 220ms ease;
}
.app-dashboard-section-list {
    transition: opacity 220ms ease, transform 220ms ease, width 220ms ease, padding 220ms ease, margin 220ms ease;
}
.app-dashboard-frame:not(.is-sidebar-open) .app-dashboard-body {
    grid-template-columns: 0 minmax(0, 1fr) minmax(240px, 300px);
    gap: 18px;
}
.app-dashboard-frame:not(.is-sidebar-open) .app-dashboard-section-list {
    width: 0;
    min-width: 0;
    max-width: 0;
    padding: 0;
    border-width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-28px);
    pointer-events: none;
}
.app-dashboard-frame.is-sidebar-open .app-dashboard-rail-toggle {
    background: rgba(255, 255, 255, 0.22);
}
.app-dashboard-modal[hidden] {
    display: none !important;
}
.app-dashboard-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}
.app-dashboard-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 18, 0.68);
    backdrop-filter: blur(8px);
}
.app-dashboard-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    text-align: center;
}
.app-dashboard-modal-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 18px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.app-dashboard-modal-dialog h2 {
    margin-bottom: 10px;
}
.app-dashboard-modal-dialog p:not(.eyebrow) {
    color: var(--muted);
    max-width: 38ch;
    margin: 0 auto;
}
.app-dashboard-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
    flex-wrap: wrap;
}
.app-dashboard-modal-actions .button {
    min-width: 170px;
}
@media (max-width: 1240px) {
    .app-dashboard-frame:not(.is-sidebar-open) .app-dashboard-body {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    }
}
@media (max-width: 980px) {
    .app-dashboard-frame:not(.is-sidebar-open) .app-dashboard-body,
    .app-dashboard-frame.is-sidebar-open .app-dashboard-body {
        grid-template-columns: 1fr;
    }
    .app-dashboard-frame:not(.is-sidebar-open) .app-dashboard-section-list {
        display: none;
    }
}

body.is-modal-open { overflow: hidden; }


.app-dashboard-brand,
.app-dashboard-rail-link {
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}
.app-dashboard-rail-link svg *,
.app-dashboard-icon svg *,
.app-dashboard-profile-trigger svg *,
.app-dashboard-group-trigger svg *,
.app-dashboard-account-trigger svg *,
.app-dashboard-modal-icon svg *,
.app-dashboard-rail-toggle svg * {
    stroke: currentColor;
}
.app-dashboard-rail-link svg[fill="currentColor"],
.app-dashboard-icon svg[fill="currentColor"],
.app-dashboard-modal-icon svg[fill="currentColor"] {
    fill: currentColor;
}

.app-dashboard-group-item small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.app-dashboard-group-item small em {
    font-style: normal;
    font-weight: 800;
    color: var(--accent);
}
.app-dashboard-group-item small strong {
    font-weight: 600;
}
.app-dashboard-onboarding-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 360px);
    gap: 22px;
    align-items: center;
}
.app-dashboard-onboarding-copy h1 {
    margin-bottom: 12px;
    max-width: 12ch;
}
.app-dashboard-onboarding-copy > p:not(.eyebrow) {
    color: var(--muted);
    max-width: 58ch;
}
.app-dashboard-onboarding-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.app-dashboard-onboarding-meta div {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft));
}
.app-dashboard-onboarding-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}
.app-dashboard-onboarding-meta strong {
    display: block;
    margin-top: 6px;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}
.app-dashboard-onboarding-progress {
    height: 12px;
    margin-top: 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
    overflow: hidden;
}
.app-dashboard-onboarding-progress span,
.app-dashboard-onboarding-step-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 88%, #204f90 12%), color-mix(in srgb, var(--accent) 70%, #8bc5ff 30%));
}
.app-dashboard-onboarding-visual {
    position: relative;
    min-height: 320px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 24%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 92%, transparent), var(--surface)),
        var(--surface);
    overflow: hidden;
}
.app-dashboard-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed color-mix(in srgb, var(--accent) 24%, var(--line));
}
.app-dashboard-orbit-one {
    width: 220px;
    height: 220px;
    top: 48px;
    left: 72px;
}
.app-dashboard-orbit-two {
    width: 300px;
    height: 300px;
    top: 8px;
    left: 30px;
    opacity: 0.7;
}
.app-dashboard-onboarding-badge {
    position: absolute;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.app-dashboard-onboarding-badge.is-primary {
    top: 48px;
    right: 54px;
    color: #fff;
    background: color-mix(in srgb, var(--accent) 84%, #204f90 16%);
}
.app-dashboard-onboarding-badge.is-secondary {
    left: 56px;
    bottom: 58px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}
.app-dashboard-onboarding-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 240px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
    transform: translate(-50%, -44%);
    box-shadow: var(--shadow);
}
.app-dashboard-onboarding-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.app-dashboard-onboarding-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
}
.app-dashboard-onboarding-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
}
.app-dashboard-onboarding-lines {
    display: grid;
    gap: 12px;
}
.app-dashboard-onboarding-lines span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 86%, var(--line));
}
.app-dashboard-onboarding-lines span:nth-child(1) { width: 90%; }
.app-dashboard-onboarding-lines span:nth-child(2) { width: 72%; }
.app-dashboard-onboarding-lines span:nth-child(3) { width: 58%; }
.app-dashboard-onboarding-grid,
.app-dashboard-benefit-list {
    display: grid;
    gap: 14px;
}
.app-dashboard-onboarding-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app-dashboard-onboarding-step,
.app-dashboard-benefit-item {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
}
.app-dashboard-onboarding-step-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}
.app-dashboard-onboarding-step-top span,
.app-dashboard-onboarding-step small,
.app-dashboard-benefit-item p {
    color: var(--muted);
}
.app-dashboard-onboarding-step p {
    min-height: 78px;
    color: var(--text);
}
.app-dashboard-onboarding-step-progress {
    height: 10px;
    margin: 14px 0 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
    overflow: hidden;
}
.app-dashboard-benefit-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.app-dashboard-benefit-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 14px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
@media (max-width: 1240px) {
    .app-dashboard-onboarding-hero,
    .app-dashboard-onboarding-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 860px) {
    .app-dashboard-onboarding-meta {
        grid-template-columns: 1fr;
    }
    .app-dashboard-onboarding-visual {
        min-height: 260px;
    }
    .app-dashboard-onboarding-panel {
        width: 210px;
    }
}

.app-dashboard-onboarding-copy h1 {
    font-size: clamp(2.8rem, 4.8vw, 4.7rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}
@media (max-width: 1520px) {
    .app-dashboard-body {
        grid-template-columns: minmax(220px, 252px) minmax(0, 1fr) minmax(220px, 264px);
        gap: 18px;
    }
    .app-dashboard-onboarding-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .app-dashboard-onboarding-copy h1 {
        max-width: 11ch;
        font-size: clamp(2.4rem, 4vw, 3.6rem);
    }
    .app-dashboard-onboarding-copy > p:not(.eyebrow) {
        max-width: 64ch;
    }
    .app-dashboard-onboarding-visual {
        min-height: 240px;
    }
}
@media (max-width: 1360px) {
    .app-dashboard-onboarding-visual {
        min-height: 220px;
    }
    .app-dashboard-orbit-one {
        width: 190px;
        height: 190px;
        top: 40px;
        left: 56px;
    }
    .app-dashboard-orbit-two {
        width: 250px;
        height: 250px;
        top: 8px;
        left: 24px;
    }
    .app-dashboard-onboarding-panel {
        width: 220px;
        padding: 16px;
    }
}

.app-dashboard-group-body[hidden] {
    display: none !important;
}

@media (max-width: 1520px) {
    .app-dashboard-onboarding-copy h1 {
        max-width: none;
        font-size: clamp(2rem, 3.1vw, 3rem);
        line-height: 1.02;
        letter-spacing: -0.045em;
    }
    .app-dashboard-onboarding-copy > p:not(.eyebrow) {
        max-width: none;
    }
    .app-dashboard-onboarding-visual {
        min-height: 164px;
        padding: 0;
    }
    .app-dashboard-orbit-two {
        display: none;
    }
    .app-dashboard-orbit-one {
        width: 140px;
        height: 140px;
        top: 18px;
        left: 22px;
        opacity: 0.55;
    }
    .app-dashboard-onboarding-panel {
        width: 180px;
        padding: 14px;
        left: auto;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
    }
    .app-dashboard-onboarding-badge.is-primary {
        top: 18px;
        right: 18px;
        width: 46px;
        height: 46px;
    }
    .app-dashboard-onboarding-badge.is-secondary {
        display: none;
    }
}
@media (max-width: 1360px) {
    .app-dashboard-onboarding-copy h1 {
        font-size: clamp(1.9rem, 2.7vw, 2.6rem);
    }
    .app-dashboard-onboarding-visual {
        display: none;
    }
}

.app-dashboard-main {
    position: relative;
}
.app-dashboard-toplink {
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}
.app-dashboard-account-panel[hidden] {
    display: none !important;
}
.app-dashboard-account-panel {
    position: absolute;
    top: 84px;
    left: 24px;
    width: min(360px, calc(100vw - 140px));
    max-height: min(72vh, 760px);
    overflow: auto;
    z-index: 35;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}
.app-dashboard-body-overlay-menu {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
}
@media (max-width: 1240px) {
    .app-dashboard-body-overlay-menu {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 980px) {
    .app-dashboard-account-panel {
        left: 16px;
        right: 16px;
        width: auto;
        top: 132px;
    }
}

.app-dashboard-group-item {
    gap: 14px;
}
.app-dashboard-group-item > span:first-child {
    flex: 1;
}
.app-dashboard-progress-donut {
    --size: 36px;
    --fill: calc(var(--progress, 0) * 1%);
    position: relative;
    display: inline-grid;
    place-items: center;
    width: var(--size);
    height: var(--size);
    flex: 0 0 var(--size);
    border-radius: 999px;
    background:
        radial-gradient(circle at center, var(--surface) 58%, transparent 59%),
        conic-gradient(color-mix(in srgb, var(--accent) 86%, #8bc5ff 14%) var(--fill), color-mix(in srgb, var(--surface-soft) 84%, var(--line)) 0);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, var(--line));
}
.app-dashboard-progress-donut span {
    position: relative;
    z-index: 1;
    font-size: 0.62rem;
    line-height: 1;
    font-weight: 800;
    color: var(--text);
}

.app-dashboard-frame {
    display: block;
    min-height: 100vh;
}
.app-dashboard-rail {
    display: none !important;
}
.app-dashboard-main {
    width: 100%;
}
.app-dashboard-topbar {
    padding: 14px 28px;
}
.app-dashboard-body,
.app-dashboard-body-overlay-menu {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 24px;
    padding: 24px 28px 32px;
}
.app-dashboard-body.is-first-access,
.app-dashboard-body-overlay-menu.is-first-access {
    grid-template-columns: minmax(0, 1fr);
}
.app-dashboard-body.is-first-access .app-dashboard-context,
.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-context {
    max-width: none;
}
.app-dashboard-content-stack,
.app-dashboard-context,
.app-dashboard-onboarding-hero,
.app-dashboard-onboarding-steps,
.app-dashboard-flow-card,
.app-dashboard-balance,
.app-dashboard-finance-grid,
.app-dashboard-accounts-card,
.app-dashboard-analyst-card {
    min-width: 0;
}
.app-dashboard-context {
    align-self: start;
}
.app-dashboard-onboarding-hero,
.app-dashboard-onboarding-steps,
.app-dashboard-flow-card,
.app-dashboard-context,
.app-dashboard-balance,
.app-dashboard-accounts-card,
.app-dashboard-analyst-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.app-dashboard-onboarding-hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}
.app-dashboard-onboarding-copy h1 {
    max-width: none;
}
.app-dashboard-onboarding-visual {
    min-width: 0;
}
.app-dashboard-account-panel {
    top: 74px;
    left: 28px;
}
@media (max-width: 1380px) {
    .app-dashboard-body,
    .app-dashboard-body-overlay-menu {
        grid-template-columns: 1fr;
    }
    .app-dashboard-context {
        order: 3;
    }
    .app-dashboard-onboarding-hero,
    .app-dashboard-finance-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 980px) {
    .app-dashboard-topbar,
    .app-dashboard-body,
    .app-dashboard-body-overlay-menu {
        padding-left: 18px;
        padding-right: 18px;
    }
    .app-dashboard-account-panel {
        left: 18px;
        right: 18px;
        top: 120px;
        width: auto;
    }
}

/* Dashboard recovery override */
.app-dashboard,
.app-dashboard-frame,
.app-dashboard-main {
    min-width: 0;
}
.app-dashboard-frame {
    display: block !important;
}
.app-dashboard-main {
    position: relative !important;
    width: 100% !important;
}
.app-dashboard-topbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    padding: 18px 24px !important;
}
.app-dashboard-toplinks,
.app-dashboard-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}
.app-dashboard-toplinks {
    flex: 1 1 auto !important;
}
.app-dashboard-toplink {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px) !important;
    gap: 24px !important;
    align-items: start !important;
    padding: 24px !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access {
    grid-template-columns: minmax(0, 1fr) !important;
}
.app-dashboard-content-stack,
.app-dashboard-context {
    min-width: 0 !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-context {
    order: 3 !important;
    width: 100% !important;
    max-width: none !important;
}
.app-dashboard-onboarding-hero,
.app-dashboard-onboarding-steps,
.app-dashboard-flow-card,
.app-dashboard-context,
.app-dashboard-balance,
.app-dashboard-accounts-card,
.app-dashboard-analyst-card {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    overflow: hidden !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-hero {
    display: block !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-copy {
    display: block !important;
    min-width: 0 !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-copy h1 {
    max-width: none !important;
    font-size: clamp(2.05rem, 4vw, 3.1rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.04em !important;
    margin-bottom: 14px !important;
    word-break: normal !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-copy > p:not(.eyebrow) {
    max-width: none !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-visual {
    display: none !important;
}
.app-dashboard-onboarding-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}
.app-dashboard-benefit-list {
    display: grid !important;
    gap: 14px !important;
}
.app-dashboard-account-panel {
    position: absolute !important;
    top: 76px !important;
    left: 24px !important;
    width: min(380px, calc(100vw - 48px)) !important;
    max-height: min(72vh, 760px) !important;
    overflow: auto !important;
    z-index: 40 !important;
}
@media (max-width: 1380px) {
    .app-dashboard-body.app-dashboard-body-overlay-menu {
        grid-template-columns: 1fr !important;
    }
    .app-dashboard-context {
        order: 3 !important;
    }
    .app-dashboard-onboarding-grid {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 980px) {
    .app-dashboard-topbar,
    .app-dashboard-body.app-dashboard-body-overlay-menu {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    .app-dashboard-account-panel {
        left: 18px !important;
        right: 18px !important;
        width: auto !important;
        top: 118px !important;
    }
    .app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-meta {
        grid-template-columns: 1fr !important;
    }
}

/* Dashboard first-access stabilization */
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px) !important;
    align-items: start !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-content-stack {
    display: grid !important;
    gap: 24px !important;
    min-width: 0 !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) !important;
    gap: 24px !important;
    align-items: center !important;
    padding: 28px !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-copy h1 {
    font-size: clamp(2.35rem, 3.4vw, 3.5rem) !important;
    line-height: 0.98 !important;
    max-width: 11ch !important;
    margin-bottom: 14px !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-copy > p:not(.eyebrow) {
    max-width: 62ch !important;
}
.app-dashboard-onboarding-bullets {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.app-dashboard-onboarding-bullet {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
}
.app-dashboard-onboarding-bullet p {
    margin: 4px 0 0;
    color: var(--muted);
}
.app-dashboard-onboarding-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.app-dashboard-onboarding-link:hover,
.app-dashboard-onboarding-link:focus-visible {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--accent) 16%, var(--surface));
    border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-visual {
    display: block !important;
    min-height: 260px !important;
}
.app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-context {
    order: 0 !important;
    align-self: start !important;
}
@media (max-width: 1360px) {
    .app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access {
        grid-template-columns: 1fr !important;
    }
    .app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-context {
        order: 2 !important;
    }
}
@media (max-width: 980px) {
    .app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-hero {
        grid-template-columns: 1fr !important;
    }
    .app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-copy h1 {
        max-width: none !important;
        font-size: clamp(2rem, 9vw, 3rem) !important;
    }
    .app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-visual {
        min-height: 220px !important;
    }
}
@media (max-width: 720px) {
    .app-dashboard-topbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: start !important;
    }
    .app-dashboard-toplinks {
        gap: 10px !important;
    }
    .app-dashboard-toplink {
        padding-inline: 12px !important;
    }
    .app-dashboard-body.app-dashboard-body-overlay-menu,
    .app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access {
        padding: 18px !important;
    }
    .app-dashboard-body.app-dashboard-body-overlay-menu.is-first-access .app-dashboard-onboarding-hero {
        padding: 22px !important;
    }
    .app-dashboard-onboarding-bullet {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 12px;
    }
}
/* Studio dashboard */
.studio-dashboard {
    min-height: 100vh;
    padding: 10px;
    background: var(--bg);
}
.studio-dashboard-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: calc(100vh - 20px);
    border-radius: 18px;
    overflow: hidden;
}
.studio-dashboard-sidebar {
    position: sticky;
    top: 0;
    display: grid;
    align-content: start;
    gap: 20px;
    height: 100vh;
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, var(--bg));
}
.studio-dashboard-sidebar-head,
.studio-dashboard-topbar,
.studio-dashboard-topbar-left,
.studio-dashboard-topbar-actions,
.studio-dashboard-brandmark,
.studio-dashboard-profile-trigger,
.studio-dashboard-panel-head,
.studio-dashboard-pagebar,
.studio-dashboard-metrics-inline,
.studio-dashboard-summary-grid,
.studio-dashboard-grid.is-onboarding,
.studio-dashboard-bullet-list li,
.studio-dashboard-side-point {
    display: flex;
    align-items: center;
}
.studio-dashboard-sidebar-head,
.studio-dashboard-topbar,
.studio-dashboard-pagebar,
.studio-dashboard-panel-head {
    justify-content: space-between;
}
.studio-dashboard-brandmark {
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}
.studio-dashboard-brandmark strong,
.studio-dashboard-brandmark small {
    display: block;
}
.studio-dashboard-brandmark small {
    color: var(--muted);
}
.studio-dashboard-brandmark-icon,
.studio-dashboard-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #9dc6ff 18%), color-mix(in srgb, var(--accent) 64%, #244a84 36%));
    color: #fff;
    font-weight: 800;
}
.studio-dashboard-avatar.has-image {
    background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}
.studio-dashboard-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.studio-dashboard-menu-button,
.studio-dashboard-action-button,
.studio-dashboard-profile-trigger {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}
.studio-dashboard-menu-button,
.studio-dashboard-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}
.studio-dashboard-action-button.is-create {
    width: auto;
    gap: 8px;
    padding: 0 14px;
    font-weight: 700;
}

.theme-toggle,
.studio-dashboard-briefing-trigger,
.studio-dashboard-notifications-trigger {
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.studio-dashboard-briefing-trigger:hover,
.studio-dashboard-briefing-trigger:focus-visible,
.studio-dashboard-notifications-trigger:hover,
.studio-dashboard-notifications-trigger:focus-visible {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
    color: var(--text);
    transform: translateX(2px);
}

.studio-dashboard-nav {
    display: grid;
    gap: 4px;
}
.studio-dashboard-nav-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.studio-dashboard-nav-item:hover,
.studio-dashboard-nav-item.is-active {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    color: var(--text);
    transform: translateX(2px);
}
.studio-dashboard-nav-icon {
    display: inline-flex;
    color: inherit;
}
.studio-dashboard-main {
    min-width: 0;
}
.studio-dashboard-topbar {
    gap: 20px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 96%, var(--bg));
}
.studio-dashboard-topbar-left,
.studio-dashboard-topbar-actions,
.studio-dashboard-metrics-inline,
.studio-dashboard-summary-grid,
.studio-dashboard-grid.is-onboarding {
    gap: 14px;
}
.studio-dashboard-menu-button.is-mobile {
    display: none;
}
.studio-dashboard-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(100%, 520px);
    padding: 0 14px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
}
.studio-dashboard-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}
.studio-dashboard-profile {
    position: relative;
}
.studio-dashboard-profile-trigger {
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 14px;
}
.studio-dashboard-avatar.is-large {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}
.studio-dashboard-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 32px));
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    z-index: 50;
}
.studio-dashboard-profile-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.studio-dashboard-profile-head a,
.studio-dashboard-profile-item,
.studio-dashboard-inline-link {
    color: var(--accent);
    text-decoration: none;
}
.studio-dashboard-profile-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--text);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}
.studio-dashboard-profile-item i {
    width: 1rem;
    flex: 0 0 1rem;
    text-align: center;
    color: currentColor;
}
.studio-dashboard-profile-item span {
    min-width: 0;
}
.studio-dashboard-profile-item:last-child {
    border-bottom: 0;
}
.studio-dashboard-content {
    position: relative;
    display: grid;
    gap: 20px;
    padding: 24px;
}

.studio-dashboard-market-strip {
    padding: 10px 24px 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 98%, var(--bg));
}

.studio-dashboard-market-strip-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding-bottom: 14px;
}

.studio-dashboard-market-tile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
    text-decoration: none;
    color: inherit;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.studio-dashboard-market-tile:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.studio-dashboard-market-tile.is-placeholder {
    pointer-events: none;
}

.studio-dashboard-market-tile.is-placeholder:hover {
    transform: none;
    border-color: color-mix(in srgb, var(--line) 78%, transparent);
    box-shadow: none;
}

.studio-dashboard-market-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.studio-dashboard-market-copy strong {
    font-size: 0.95rem;
    color: var(--accent);
    line-height: 1.1;
}

.studio-dashboard-market-copy span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.studio-dashboard-market-copy small {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.studio-dashboard-market-copy small.is-positive {
    color: #059669;
}

.studio-dashboard-market-copy small.is-negative {
    color: #dc2626;
}

.studio-dashboard-market-tile.is-placeholder .studio-dashboard-market-copy strong,
.studio-dashboard-market-tile.is-placeholder .studio-dashboard-market-copy span,
.studio-dashboard-market-tile.is-placeholder .studio-dashboard-market-copy small,
.studio-dashboard-market-tile.is-placeholder .studio-dashboard-market-sparkline {
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.28), rgba(148, 163, 184, 0.12));
    background-size: 220% 100%;
    animation: studio-dashboard-market-shimmer 1.2s ease-in-out infinite;
}

.studio-dashboard-market-tile.is-placeholder .studio-dashboard-market-copy strong {
    width: 58%;
    height: 14px;
}

.studio-dashboard-market-tile.is-placeholder .studio-dashboard-market-copy span {
    width: 72%;
    height: 18px;
}

.studio-dashboard-market-tile.is-placeholder .studio-dashboard-market-copy small {
    width: 42%;
    height: 13px;
}

.studio-dashboard-market-sparkline {
    width: 112px;
    height: 34px;
}

.studio-dashboard-market-sparkline svg {
    display: block;
    width: 100%;
    height: 100%;
}

.studio-dashboard-market-sparkline-guide {
    stroke: rgba(148, 163, 184, 0.36);
    stroke-width: 1;
    stroke-dasharray: 3 5;
    fill: none;
}

.studio-dashboard-market-sparkline-line {
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.studio-dashboard-market-tile.is-positive .studio-dashboard-market-sparkline-line {
    stroke: #16a34a;
}

.studio-dashboard-market-tile.is-negative .studio-dashboard-market-sparkline-line {
    stroke: #dc2626;
}

.studio-dashboard-market-tile.is-placeholder .studio-dashboard-market-sparkline svg {
    opacity: 0;
}

@keyframes studio-dashboard-market-shimmer {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -220% 0;
    }
}
.studio-dashboard-pagebar h1 {
    margin: 6px 0 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: -0.04em;
}
.studio-dashboard-metrics-inline {
    flex-wrap: wrap;
    color: var(--muted);
}
.studio-dashboard-metrics-inline strong {
    color: var(--text);
}
.studio-dashboard-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.studio-dashboard-tab {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
}
.studio-dashboard-tab.is-active,
.studio-dashboard-tab:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
}
.studio-dashboard-panel {
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.studio-dashboard-grid.is-onboarding {
    align-items: stretch;
}
.studio-dashboard-grid.is-onboarding {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 340px);
}
.studio-dashboard-onboarding-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: center;
}
.studio-dashboard-onboarding-copy h2,
.studio-dashboard-panel-head h2 {
    margin: 8px 0 0;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
}
.studio-dashboard-bullet-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.studio-dashboard-bullet-list li,
.studio-dashboard-side-point {
    align-items: flex-start;
    gap: 12px;
}
.studio-dashboard-bullet-icon,
.studio-dashboard-side-point svg {
    flex: 0 0 auto;
    color: var(--accent);
}
.studio-dashboard-bullet-list p,
.studio-dashboard-side-point span,
.studio-dashboard-summary-card span {
    color: var(--muted);
}
.studio-dashboard-showcase {
    position: relative;
    min-height: 260px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30%), linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 96%, var(--surface)) 0%, var(--surface) 100%);
    overflow: hidden;
}
.studio-dashboard-showcase-ring {
    position: absolute;
    inset: 24px;
    border: 1px dashed color-mix(in srgb, var(--accent) 24%, var(--line));
    border-radius: 999px;
}
.studio-dashboard-showcase-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 210px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
    transform: translate(-50%, -50%);
}
.studio-dashboard-showcase-pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
}
.studio-dashboard-showcase-lines {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
.studio-dashboard-showcase-lines span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 84%, var(--line));
}
.studio-dashboard-showcase-lines span:nth-child(1) { width: 92%; }
.studio-dashboard-showcase-lines span:nth-child(2) { width: 76%; }
.studio-dashboard-showcase-lines span:nth-child(3) { width: 58%; }
.studio-dashboard-showcase-badge {
    position: absolute;
    right: -16px;
    top: -16px;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 84%, #9dc6ff 16%), color-mix(in srgb, var(--accent) 64%, #244a84 36%));
    color: #fff;
    box-shadow: var(--shadow);
}
.studio-dashboard-sidecard {
    align-self: stretch;
}
.studio-dashboard-sidecard h3 {
    margin: 8px 0 0;
    font-size: 1.25rem;
}
.studio-dashboard-side-points {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.studio-dashboard-table-wrap {
    overflow-x: auto;
}
.studio-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.studio-dashboard-table th,
.studio-dashboard-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.studio-dashboard-table th {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.studio-dashboard-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 84%, var(--surface));
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}
.studio-dashboard-status.is-live {
    background: color-mix(in srgb, #22c55e 18%, var(--surface));
    color: #67e8a4;
}
.studio-dashboard-status.is-progress {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    color: var(--accent);
}
.studio-dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.studio-dashboard-summary-card {
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.studio-dashboard-summary-card p {
    margin: 0 0 10px;
    color: var(--muted);
}
.studio-dashboard-summary-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.9rem;
    letter-spacing: -0.04em;
}
@media (max-width: 1200px) {
    .studio-dashboard-shell {
        grid-template-columns: 88px minmax(0, 1fr);
    }
    .studio-dashboard-brandmark span,
    .studio-dashboard-nav-item span:last-child {
        display: none;
    }
    .studio-dashboard-nav-item {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .studio-dashboard-grid.is-onboarding,
    .studio-dashboard-summary-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 980px) {
    .studio-dashboard-shell {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .studio-dashboard-brandmark span,
    .studio-dashboard-nav-item span:last-child {
        display: block;
    }
    .studio-dashboard-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .studio-dashboard-onboarding-panel {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-menu-button.is-mobile {
        display: inline-flex;
    }
}
@media (max-width: 720px) {
    .studio-dashboard-topbar,
    .studio-dashboard-content {
        padding: 16px;
    }

    .studio-dashboard-market-strip {
        padding: 10px 16px 0;
    }

    .studio-dashboard-market-strip-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .studio-dashboard-topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .studio-dashboard-topbar-left,
    .studio-dashboard-topbar-actions,
    .studio-dashboard-pagebar,
    .studio-dashboard-panel-head {
        flex-wrap: wrap;
    }
    .studio-dashboard-search {
        min-width: 0;
        width: 100%;
    }
    .studio-dashboard-nav {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-panel {
        padding: 18px;
    }
}
/* Studio sidebar toggle */
.studio-dashboard-sidebar {
    position: relative;
    overflow: visible;
}
.studio-dashboard-shell {
    transition: grid-template-columns 220ms ease;
}
.studio-dashboard-sidebar-toggle {
    position: absolute;
    top: 22px;
    right: -16px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    background: color-mix(in srgb, var(--surface) 96%, var(--bg));
    color: var(--text);
    box-shadow: var(--shadow);
    font-size: 1.1rem;
    line-height: 1;
}
.studio-dashboard-sidebar-toggle-icon.is-closed {
    display: none;
}
.studio-dashboard-shell.is-sidebar-collapsed {
    grid-template-columns: 92px minmax(0, 1fr);
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-brandmark span,
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item span:last-child {
    display: none;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-sidebar-toggle-icon.is-open {
    display: none;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-sidebar-toggle-icon.is-closed {
    display: inline-flex;
}
@media (max-width: 980px) {
    .studio-dashboard-sidebar-toggle {
        display: none;
    }
}
/* Studio dashboard refinement */
.studio-dashboard-topbar-left {
    flex: 1 1 auto;
    min-width: 0;
}
.studio-dashboard-search {
    width: 100%;
    min-width: 0;
    max-width: none;
}
.studio-dashboard-topbar-actions {
    margin-left: auto;
}
.studio-dashboard-brandmark {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}
.studio-dashboard-brandmark:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 46%, transparent);
    outline-offset: 4px;
    border-radius: 14px;
}
.studio-dashboard-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.67rem;
    font-weight: 700;
}
.studio-dashboard-section-label-icon {
    display: inline-flex;
    color: var(--accent);
}
.studio-dashboard-sidebar-toggle {
    display: none !important;
}
.studio-dashboard-shell.is-sidebar-collapsed {
    grid-template-columns: 92px minmax(0, 1fr);
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-brandmark span,
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item span:last-child {
    display: none;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
}
.studio-dashboard-sidebar,
.studio-dashboard-sidebar-head {
    cursor: default;
}
.studio-dashboard-sidebar[data-collapsible='true'] {
    cursor: pointer;
}
.studio-dashboard-sidebar[data-collapsible='true'] .studio-dashboard-nav,
.studio-dashboard-sidebar[data-collapsible='true'] .studio-dashboard-nav * {
    cursor: auto;
}
@media (max-width: 1200px) {
    .studio-dashboard-topbar-left {
        flex: 1 1 100%;
    }
}
@media (max-width: 980px) {
    .studio-dashboard-shell.is-sidebar-collapsed {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-brandmark span,
    .studio-dashboard-nav-item span:last-child {
        display: block;
    }
}
/* Studio dashboard final polish */
.studio-dashboard-topbar {
    justify-content: flex-start !important;
}
.studio-dashboard-topbar-left {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}
.studio-dashboard-search {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
}
.studio-dashboard-topbar-actions {
    flex: 0 0 auto !important;
    margin-left: 16px !important;
}
.studio-dashboard-brandmark-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--text);
    font-weight: 800;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.studio-dashboard-brandmark strong {
    display: block;
    font-size: 1rem;
}
.studio-dashboard-brandmark small {
    color: var(--muted);
}
/* Studio brand parity with site header */
.studio-dashboard-brandmark {
    min-width: 0;
    justify-content: flex-start;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    appearance: none;
    -webkit-appearance: none;
}
.studio-dashboard-brandmark .studio-dashboard-brandmark-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}
.studio-dashboard-brandmark strong,
.studio-dashboard-brandmark small {
    text-align: left;
}
/* Studio brand exact parity */
.studio-dashboard-brandmark {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 180px !important;
    color: var(--text) !important;
    text-decoration: none !important;
    text-align: left !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
}
.studio-dashboard-brandmark .studio-dashboard-brandmark-icon {
    flex: 0 0 40px;
}
.studio-dashboard-brandmark .studio-dashboard-brandmark-icon.brand-mark--wandy {
    padding: 0;
    font-size: 0;
    background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft));
}
.studio-dashboard-brandmark strong,
.studio-dashboard-brandmark small {
    display: block !important;
    text-align: left !important;
}
.studio-dashboard-brandmark strong {
    font-size: 1rem !important;
    color: var(--text) !important;
}
.studio-dashboard-brandmark small {
    color: var(--muted) !important;
}/* Studio profile menu hover restoration */
.studio-dashboard-profile-head a,
.studio-dashboard-profile-item {
    transition: color 160ms ease, opacity 160ms ease;
}
.studio-dashboard-profile-head a:hover,
.studio-dashboard-profile-head a:focus-visible,
.studio-dashboard-profile-item:hover,
.studio-dashboard-profile-item:focus-visible {
    color: var(--accent);
    opacity: 1;
}
/* Dashboard flush to top edge */
body.page-dashboard {
    margin: 0;
    padding: 0;
}
body.page-dashboard .page-shell-dashboard,
body.page-dashboard .studio-dashboard,
body.page-dashboard .studio-dashboard-shell,
body.page-dashboard .studio-dashboard-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Studio collapsed sidebar icon alignment */
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    justify-content: center;
    padding: 11px 0;
    min-height: 46px;
    transform: none !important;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item:hover,
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item.is-active {
    transform: none !important;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-icon {
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
/* Studio collapsed sidebar containment */
.studio-dashboard-sidebar,
.studio-dashboard-nav {
    min-width: 0;
}
.studio-dashboard-sidebar {
    overflow-x: hidden;
}
.studio-dashboard-nav-item {
    width: 100%;
    max-width: 100%;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-sidebar {
    padding-left: 10px;
    padding-right: 10px;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav {
    width: 100%;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item .studio-dashboard-nav-icon {
    position: relative;
    left: 0;
}
/* Studio sidebar collapsed final layering */
.studio-dashboard-sidebar {
    position: relative !important;
    top: auto;
    z-index: auto;
}
.studio-dashboard-main {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-sidebar {
    overflow: hidden;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 6px;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 0 !important;
    margin: 0;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    flex: 0 0 18px;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item span:last-child {
    display: none !important;
}
/* Studio collapsed brand width fix */
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-brandmark {
    min-width: 0 !important;
    width: 100%;
    justify-content: center !important;
    gap: 0 !important;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-sidebar-head {
    justify-content: center !important;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-brandmark .studio-dashboard-brandmark-icon {
    flex: 0 0 40px;
    margin: 0 auto;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item {
    inline-size: 100%;
    max-inline-size: 100%;
}
/* Studio collapsed brand keep W visible */
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-brandmark > span:last-child {
    display: none !important;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-brandmark .studio-dashboard-brandmark-icon {
    display: grid !important;
}
/* Studio sidebar tooltip behavior */
.studio-dashboard-nav-item .tooltip-bubble {
    display: none;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-sidebar,
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav,
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item {
    overflow: visible !important;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item .tooltip-bubble {
    display: block;
    left: calc(100% + 12px);
    bottom: 50%;
    transform: translateY(50%) translateX(-6px);
    min-width: 180px;
    max-width: 240px;
    z-index: 40;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item .tooltip-bubble::before {
    left: 0;
    top: 50%;
    transform: translateX(-5px) translateY(-50%) rotate(45deg);
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    border-left: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item:hover .tooltip-bubble,
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item:focus-visible .tooltip-bubble {
    opacity: 1;
    transform: translateY(50%) translateX(0);
}
.studio-dashboard-shell:not(.is-sidebar-collapsed) .studio-dashboard-nav-item .tooltip-bubble {
    display: none !important;
}
/* Studio sidebar tooltip visibility fix */
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-sidebar {
    z-index: 20;
    overflow: visible !important;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item {
    position: relative;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item .tooltip-bubble {
    z-index: 80;
    pointer-events: none;
}
/* Dashboard root flush */
html,
body {
    margin: 0;
    padding: 0;
}
body.page-dashboard {
    margin: 0 !important;
    padding: 0 !important;
}
body.page-dashboard > .page-shell-dashboard {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}
body.page-dashboard .studio-dashboard,
body.page-dashboard .studio-dashboard-shell {
    width: 100vw;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}
/* Dashboard top inner spacing removal */
body.page-dashboard .studio-dashboard-sidebar {
    padding-top: 0 !important;
}
body.page-dashboard .studio-dashboard-topbar {
    padding-top: 0 !important;
}
/* Dashboard app viewport lock */
body.page-dashboard {
    overflow-x: hidden;
    overflow-y: auto;
}
body.page-dashboard > .page-shell-dashboard {
    position: relative;
    inset: auto;
    overflow: auto;
}
/* Studio collapsed nav labels hidden */
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item > span:not(.studio-dashboard-nav-icon) {
    display: none !important;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-nav-item {
    gap: 0 !important;
}
/* Dashboard top band color unification */
body.page-dashboard,
body.page-dashboard > .page-shell-dashboard,
body.page-dashboard .studio-dashboard,
body.page-dashboard .studio-dashboard-shell {
    background: #ffffff !important;
}
body.page-dashboard .studio-dashboard-sidebar,
body.page-dashboard .studio-dashboard-topbar {
    background: #ffffff !important;
}
body.page-dashboard .studio-dashboard-topbar {
    border-top: 0 !important;
}

body.theme-dark.page-dashboard,
body.theme-dark.page-dashboard > .page-shell-dashboard,
body.theme-dark.page-dashboard .studio-dashboard,
body.theme-dark.page-dashboard .studio-dashboard-shell {
    background: var(--bg) !important;
}

body.theme-dark.page-dashboard .studio-dashboard-sidebar,
body.theme-dark.page-dashboard .studio-dashboard-topbar {
    background: color-mix(in srgb, var(--surface) 94%, var(--bg)) !important;
}

body.theme-dark.page-dashboard .studio-dashboard-pagebar h1 {
    color: var(--text);
}
/* Input glow parity with auth */
input:not([type='hidden']):not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']),
select,
textarea {
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
input:not([type='hidden']):not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']):focus,
select:focus,
textarea:focus {
    border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
    outline: 0;
}
.searchbar:focus-within,
.studio-dashboard-search:focus-within {
    border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
/* Dashboard search single glow */
.studio-dashboard-search input:focus {
    border-color: transparent !important;
    box-shadow: none !important;
    outline: 0;
}
/* Studio sidebar session footer */
.studio-dashboard-sidebar {
    grid-template-rows: auto auto auto;
}
.studio-dashboard-sidebar-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    display: grid;
}
.studio-dashboard-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, #ef4444 22%, var(--line));
    border-radius: 14px;
    background: color-mix(in srgb, #ef4444 8%, var(--surface));
    color: #dc2626;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.studio-dashboard-sidebar-logout:hover,
.studio-dashboard-sidebar-logout:focus-visible {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, #ef4444 36%, var(--line));
    background: color-mix(in srgb, #ef4444 12%, var(--surface));
    color: #b91c1c;
    outline: 0;
}
.studio-dashboard-shell.is-sidebar-collapsed .studio-dashboard-sidebar-footer {
    display: none;
}


/* Dashboard scrollbar cleanup */
body.page-dashboard > .page-shell-dashboard {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 12px);
    position: relative;
    inset: auto;
    overflow: visible !important;
}
body.page-dashboard .studio-dashboard,
body.page-dashboard .studio-dashboard-shell {
    width: 100% !important;
    height: auto !important;
    min-height: calc(100vh - 12px);
    overflow: visible !important;
}
body.page-dashboard .studio-dashboard-main {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    min-height: 100vh;
    overflow: visible !important;
}
body.page-dashboard .studio-dashboard-sidebar {
    min-width: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}
body.page-dashboard .studio-dashboard-content {
    min-width: 0;
    min-height: 0;
    overflow: visible !important;
    overscroll-behavior: auto;
}
body.page-dashboard .studio-dashboard-tabs {
    overflow-x: auto;
    overflow-y: hidden;
}
body.page-dashboard .studio-dashboard-sidebar,
body.page-dashboard .studio-dashboard-content,
body.page-dashboard .studio-dashboard-tabs {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body.page-dashboard .studio-dashboard-sidebar::-webkit-scrollbar,
body.page-dashboard .studio-dashboard-content::-webkit-scrollbar,
body.page-dashboard .studio-dashboard-tabs::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}



/* Consumer first-access wizard */
.studio-dashboard-wizard {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 14px;
    min-height: auto;
    max-height: none;
    align-content: start;
    overflow: hidden;
}
.studio-dashboard-wizard-progress {
    display: flex;
    gap: 10px;
}
.studio-dashboard-wizard-dot {
    width: 44px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 86%, var(--surface));
    cursor: pointer;
}
.studio-dashboard-wizard-dot.is-active {
    background: var(--accent);
}
.studio-dashboard-wizard-step[hidden] {
    display: none !important;
}
.studio-dashboard-wizard-step {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 28px;
    align-items: start;
    min-height: 0;
}
.studio-dashboard-wizard-track {
    position: relative;
    min-height: 0;
    display: grid;
    align-items: start;
}
.studio-dashboard-wizard-step {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 180ms ease, transform 180ms ease;
}
.studio-dashboard-wizard-step.is-leaving {
    opacity: 0;
    transform: translateX(-16px);
}
.studio-dashboard-wizard-step.is-entering {
    opacity: 0;
    transform: translateX(16px);
}
.studio-dashboard-wizard-stephead {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 4px 0 10px;
}
.studio-dashboard-wizard-stepcount {
    flex: 0 0 auto;
    min-width: 44px;
    padding-top: 2px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.studio-dashboard-wizard-copy h2 {
    margin: 0;
    font-size: clamp(1.42rem, 2.2vw, 2rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}
.studio-dashboard-wizard-copy > p {
    max-width: 56ch;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 8px;
}
.studio-dashboard-wizard .studio-dashboard-bullet-list {
    gap: 12px;
}
.studio-dashboard-wizard .studio-dashboard-bullet-list p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.38;
}
.studio-dashboard-wizard-visual {
    position: relative;
    min-height: 238px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
    background:
        radial-gradient(circle at 50% 24%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 88%, transparent), var(--surface));
    overflow: hidden;
}
.studio-dashboard-wizard-orbit {
    position: absolute;
    inset: 18px;
    border-radius: 999px;
    border: 1px dashed color-mix(in srgb, var(--accent) 24%, transparent);
}
.studio-dashboard-wizard-card {
    position: relative;
    width: min(280px, 84%);
    padding: 20px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft));
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}
.studio-dashboard-wizard-mini-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
}
.studio-dashboard-wizard-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, #9dc6ff 10%), color-mix(in srgb, var(--accent) 68%, #244a84 32%));
}
.studio-dashboard-wizard-icon svg {
    width: 18px;
    height: 18px;
}
.studio-dashboard-wizard-card strong {
    font-size: 1rem;
}
.studio-dashboard-wizard-card-copy {
    margin: -2px 0 2px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}
.studio-dashboard-wizard-lines {
    display: grid;
    gap: 8px;
}
.studio-dashboard-wizard-lines span {
    height: 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 90%, var(--surface));
}
.studio-dashboard-wizard-lines span:nth-child(1) { width: 100%; }
.studio-dashboard-wizard-lines span:nth-child(2) { width: 78%; }
.studio-dashboard-wizard-lines span:nth-child(3) { width: 58%; }
.studio-dashboard-wizard-actions,
.studio-dashboard-wizard-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.studio-dashboard-wizard-actions {
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 0;
}
.studio-dashboard-wizard-actions .button[disabled] {
    opacity: 0.45;
    pointer-events: none;
}

.studio-dashboard-content.is-consumer-first-access {
    gap: 14px;
    padding: 8px 24px 16px;
    align-content: start;
    justify-content: start;
    grid-auto-rows: max-content;
}
.studio-dashboard-content.is-consumer-first-access .studio-dashboard-pagebar h1 {
    font-size: clamp(1.75rem, 2.6vw, 2.45rem);
    margin-top: 2px;
}
.studio-dashboard-content.is-consumer-first-access .studio-dashboard-pagebar {
    align-items: end;
    align-self: start;
    min-height: auto;
    margin: 0;
    padding: 0;
}
.studio-dashboard-wizard-visual-frame {
    position: relative;
    width: min(360px, 100%);
    height: 100%;
    display: grid;
    place-items: center;
    padding-right: 56px;
}
.studio-dashboard-wizard-illustration {
    width: min(296px, 100%);
    height: auto;
    transform: translateX(-12px);
    color: color-mix(in srgb, var(--accent) 78%, var(--text));
}
.studio-dashboard-wizard-illustration rect,
.studio-dashboard-wizard-illustration circle,
.studio-dashboard-wizard-illustration path,
.studio-dashboard-wizard-illustration line,
.studio-dashboard-wizard-illustration polyline {
    fill: none;
    stroke: currentColor;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.studio-dashboard-wizard-illustration rect:first-child {
    stroke: color-mix(in srgb, var(--line) 68%, var(--accent));
}
.studio-dashboard-wizard-illustration .is-surface {
    fill: color-mix(in srgb, var(--surface-soft) 92%, var(--surface));
    stroke: none;
}
.studio-dashboard-wizard-illustration .is-soft {
    fill: color-mix(in srgb, var(--accent) 10%, var(--surface));
    stroke: none;
}
.studio-dashboard-wizard-illustration .is-accent-fill {
    fill: color-mix(in srgb, var(--accent) 84%, white 16%);
    stroke: none;
}
.studio-dashboard-wizard-illustration .is-accent-stroke {
    stroke: color-mix(in srgb, var(--accent) 88%, var(--text));
}
.studio-dashboard-wizard-card {
    position: absolute;
    right: 4%;
    bottom: 10%;
    width: min(210px, 56%);
    padding: 14px;
}
.studio-dashboard-wizard-icon {
    width: 48px;
    height: 48px;
}
.studio-dashboard-wizard-card strong {
    font-size: 0.96rem;
}
.studio-dashboard-wizard-card-copy {
    font-size: 0.85rem;
}
.studio-dashboard-wizard-lines span {
    height: 8px;
}
.studio-dashboard-wizard-actions {
    position: relative;
    z-index: 2;
}
@media (max-width: 980px) {
    .studio-dashboard-wizard {
        min-height: auto;
    }
    .studio-dashboard-wizard-track {
        min-height: 0;
    }
    .studio-dashboard-wizard-step {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-wizard-visual {
        min-height: 220px;
    }
    .studio-dashboard-wizard-card {
        right: 24px;
        bottom: 18px;
    }
}
@media (max-width: 720px) {
    .studio-dashboard-wizard-track {
        min-height: 0;
    }
    .studio-dashboard-content.is-consumer-first-access {
        padding-inline: 14px;
    }
    .studio-dashboard-wizard-copy h2 {
        font-size: clamp(1.3rem, 8vw, 1.8rem);
    }
    .studio-dashboard-wizard-actions,
    .studio-dashboard-wizard-actions-right {
        flex-direction: column;
        align-items: stretch;
    }
    .studio-dashboard-wizard-dot {
        flex: 1 1 0;
        width: auto;
    }
    .studio-dashboard-wizard-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 240px;
        margin: -10px auto 0;
    }
}


.studio-dashboard-wizard-actions .button,
.studio-dashboard-wizard-actions .studio-dashboard-inline-link {
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.studio-dashboard-wizard-actions .button:hover,
.studio-dashboard-wizard-actions .button:focus-visible {
    transform: translateY(-1px);
}
.studio-dashboard-wizard-actions .button-primary:hover,
.studio-dashboard-wizard-actions .button-primary:focus-visible {
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 24%, transparent);
    background: color-mix(in srgb, var(--accent) 88%, #9dc6ff 12%);
    border-color: color-mix(in srgb, var(--accent) 92%, #9dc6ff 8%);
}
.studio-dashboard-wizard-actions .button-ghost:hover,
.studio-dashboard-wizard-actions .button-ghost:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.studio-dashboard-wizard-actions .studio-dashboard-inline-link:hover,
.studio-dashboard-wizard-actions .studio-dashboard-inline-link:focus-visible {
    color: color-mix(in srgb, var(--accent) 82%, #9dc6ff 18%);
}



@media (max-height: 760px) {
    .studio-dashboard-content.is-consumer-first-access .studio-dashboard-pagebar h1 {
        font-size: clamp(1.55rem, 2.2vw, 2rem);
    }
    .studio-dashboard-wizard-copy > p,
    .studio-dashboard-wizard .studio-dashboard-bullet-list p {
        font-size: 0.88rem;
    }
    .studio-dashboard-wizard-visual {
        min-height: 190px;
    }
    .studio-dashboard-wizard-illustration {
        width: min(220px, 100%);
        transform: translateX(-10px);
    }
    .studio-dashboard-wizard-actions .studio-dashboard-inline-link {
        display: none;
    }
    .studio-dashboard-wizard-actions .button {
        min-height: 40px;
        padding: 8px 14px;
    }
}




/* Dashboard settings module */
.studio-dashboard-view[hidden] {
    display: none !important;
}
.studio-dashboard-settings-view {
    display: grid;
    gap: 18px;
}
.studio-dashboard-settings-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
}
.studio-dashboard-settings-tab {
    position: relative;
    flex: 0 0 auto;
    padding: 0 0 10px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: color 160ms ease;
}
.studio-dashboard-settings-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background-color 160ms ease;
}
.studio-dashboard-settings-tab:hover,
.studio-dashboard-settings-tab.is-active {
    color: var(--text);
}
.studio-dashboard-settings-tab.is-disabled,
.studio-dashboard-settings-tab:disabled {
    color: color-mix(in srgb, var(--muted) 58%, transparent);
    cursor: not-allowed;
    opacity: 0.58;
}
.studio-dashboard-settings-tab.is-disabled:hover,
.studio-dashboard-settings-tab:disabled:hover {
    color: color-mix(in srgb, var(--muted) 58%, transparent);
}
.studio-dashboard-settings-tab.is-active::after {
    background: var(--text);
}
.studio-dashboard-settings-panel {
    position: relative;
    min-height: 360px;
    padding: 8px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.studio-dashboard-view-loader {
    position: absolute;
    inset: 22px;
    z-index: 2;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 6px 0;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: blur(4px);
}
.studio-dashboard-view-loader.is-global {
    inset: 140px 24px 24px;
    z-index: 8;
    padding: 18px 0 0;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-radius: 24px;
}
.studio-dashboard-view-loader-bar {
    width: 42%;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--surface-soft) 90%, var(--surface)) 0%, color-mix(in srgb, var(--accent) 18%, var(--surface)) 50%, color-mix(in srgb, var(--surface-soft) 90%, var(--surface)) 100%);
    background-size: 220% 100%;
    animation: dashboard-loader 1.1s linear infinite;
}
.studio-dashboard-view-loader-bar.is-wide {
    width: 68%;
}

.studio-dashboard-view-loader-blocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.studio-dashboard-view-loader-card,
.studio-dashboard-view-loader-row {
    display: block;
    border-radius: 22px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--surface-soft) 92%, var(--surface)) 0%, color-mix(in srgb, var(--accent) 10%, var(--surface)) 48%, color-mix(in srgb, var(--surface-soft) 92%, var(--surface)) 100%);
    background-size: 220% 100%;
    animation: dashboard-loader 1.1s linear infinite;
}
.studio-dashboard-view-loader-card {
    min-height: 124px;
}
.studio-dashboard-view-loader-card.is-tall {
    min-height: 180px;
}
.studio-dashboard-view-loader-list {
    display: grid;
    gap: 12px;
}
.studio-dashboard-view-loader-row {
    height: 78px;
    border-radius: 18px;
}
.studio-dashboard-view-loader-row.is-mid {
    width: 84%;
}
@keyframes dashboard-loader {
    from { background-position: 200% 0; }
    to { background-position: -20% 0; }
}
.studio-dashboard-settings-head {
    align-items: flex-start;
    gap: 18px;
}
.studio-dashboard-settings-head h2 {
    margin: 8px 0 0;
}
.studio-dashboard-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.studio-dashboard-settings-alert {
    margin-top: 16px;
}
.studio-dashboard-settings-form {
    display: grid;
    gap: 20px;
}
.studio-dashboard-settings-stack {
    display: grid;
    gap: 18px;
    margin-top: 8px;
}
.studio-dashboard-settings-card {
    --settings-accent: color-mix(in srgb, var(--accent) 62%, var(--line));
    display: grid;
    gap: 18px;
    padding: 22px 24px 24px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, var(--settings-accent));
    border-radius: 24px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 97%, #ffffff 3%) 0%, var(--surface) 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: visible;
}
.studio-dashboard-settings-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--settings-accent) 0%, color-mix(in srgb, var(--settings-accent) 54%, transparent) 100%);
}
.studio-dashboard-settings-card--personal {
    --settings-accent: color-mix(in srgb, var(--accent) 78%, #9ac7ff 22%);
}
.studio-dashboard-settings-card--contact {
    --settings-accent: color-mix(in srgb, var(--accent) 52%, #4ade80 48%);
}
.studio-dashboard-settings-card--location {
    --settings-accent: color-mix(in srgb, var(--accent) 48%, #f59e0b 52%);
}
.studio-dashboard-settings-card--social {
    --settings-accent: color-mix(in srgb, var(--accent) 58%, #38bdf8 42%);
}
.studio-dashboard-settings-card--security {
    --settings-accent: color-mix(in srgb, var(--accent) 48%, #22c55e 52%);
}
.studio-dashboard-settings-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
}
.studio-dashboard-settings-card-copy {
    display: grid;
    gap: 4px;
}
.studio-dashboard-settings-card-kicker {
    color: var(--settings-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.studio-dashboard-settings-card-copy h3 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.studio-dashboard-settings-card-copy p {
    margin: 0;
    max-width: 56ch;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}
.studio-dashboard-settings-card-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--settings-accent) 26%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--settings-accent) 10%, var(--surface));
    color: var(--settings-accent);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.studio-dashboard-settings-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}
.studio-dashboard-settings-field {
    display: grid;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}
.studio-dashboard-settings-field span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-left: 2px;
}
.studio-dashboard-settings-field input,
.studio-dashboard-settings-field select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: none;
}
.studio-dashboard-settings-field .auth-password-wrap input {
    padding-right: 48px;
}
.studio-dashboard-settings-field .auth-password-meter {
    margin-top: 2px;
}
.studio-dashboard-settings-field .auth-field-note {
    padding-left: 2px;
}
.studio-dashboard-settings-field.is-valid input {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.studio-dashboard-settings-field textarea {
    min-height: 108px;
    padding: 12px 14px;
    resize: vertical;
}
.studio-dashboard-settings-field input::placeholder,
.studio-dashboard-settings-field textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 84%, transparent);
}
.studio-dashboard-settings-field.is-disabled span {
    color: color-mix(in srgb, var(--muted) 72%, transparent);
}
.studio-dashboard-settings-field.is-disabled input,
.studio-dashboard-settings-field.is-disabled select {
    background: color-mix(in srgb, var(--surface-soft) 82%, var(--surface));
    color: color-mix(in srgb, var(--muted) 78%, transparent);
    border-color: color-mix(in srgb, var(--line) 92%, transparent);
    cursor: not-allowed;
}

.studio-dashboard-settings-input-wrap {
    position: relative;
}
.studio-dashboard-settings-input-wrap input {
    padding-right: 42px;
}
.studio-dashboard-settings-input-wrap.is-verified input {
    border-color: color-mix(in srgb, #16a34a 44%, var(--line));
    background: color-mix(in srgb, #16a34a 5%, var(--surface));
}
.studio-dashboard-settings-input-wrap.is-unverified input {
    border-color: color-mix(in srgb, #f59e0b 44%, var(--line));
    background: color-mix(in srgb, #f59e0b 6%, var(--surface));
}
.studio-dashboard-settings-input-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #16a34a;
    font-size: 0.95rem;
    pointer-events: auto;
}
.studio-dashboard-settings-input-icon--warning {
    color: #f59e0b;
}
.studio-dashboard-field-verified {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: #16a34a;
    font-size: 0.8rem;
    vertical-align: middle;
}
.studio-dashboard-field-unverified {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: #f59e0b;
    font-size: 0.8rem;
    vertical-align: middle;
}
.studio-dashboard-field-warning {
    display: block;
    padding-left: 2px;
    color: #b45309;
    font-size: 0.79rem;
    line-height: 1.45;
    font-weight: 600;
}

.studio-dashboard-settings-field input.is-invalid,
.studio-dashboard-settings-field select.is-invalid,
.studio-dashboard-settings-field textarea.is-invalid,
.studio-dashboard-settings-input-wrap.is-invalid input {
    border-color: #f472b6;
    box-shadow: 0 0 0 3px color-mix(in srgb, #f472b6 16%, transparent);
}
.studio-dashboard-field-error,
.studio-dashboard-field-success {
    display: block;
    padding-left: 2px;
    font-size: 0.79rem;
    line-height: 1.45;
}
.studio-dashboard-field-error {
    color: #f472b6;
}
.studio-dashboard-field-success {
    color: #15803d;
    font-weight: 600;
}

.studio-dashboard-char-count {
    margin-top: 8px;
    color: var(--muted);
    font-weight: 500;
    text-align: right;
}
.studio-dashboard-char-count.is-near-limit {
    color: #b06000;
}
.studio-dashboard-char-count.is-at-limit {
    color: #a50e0e;
}

.studio-dashboard-autocomplete {
    position: relative;
    z-index: 4;
}
.studio-dashboard-autocomplete:focus-within {
    z-index: 12;
}
.studio-dashboard-autocomplete-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    border: 1px solid color-mix(in srgb, var(--line) 84%, var(--accent));
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 96%, #ffffff 4%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}
.studio-dashboard-autocomplete-empty {
    padding: 12px 14px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
}
.studio-dashboard-autocomplete-list {
    margin: 0;
    padding: 8px;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
}
.studio-dashboard-autocomplete-item {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}
.studio-dashboard-autocomplete-item:hover,
.studio-dashboard-autocomplete-item.is-active {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--text);
}
.studio-dashboard-autocomplete-item mark {
    background: transparent;
    color: var(--accent);
    font-weight: 800;
}
.studio-dashboard-global-search-panel {
    top: calc(100% + 10px);
}
.studio-dashboard-global-search-list {
    max-height: 340px;
}
.studio-dashboard-global-search-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}
.studio-dashboard-global-search-media {
    display: flex;
    align-items: center;
    justify-content: center;
}
.studio-dashboard-global-search-logo {
    width: 2.1rem;
    height: 2.1rem;
    flex-basis: 2.1rem;
}
.studio-dashboard-global-search-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.studio-dashboard-global-search-headline {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.studio-dashboard-global-search-headline strong {
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.studio-dashboard-global-search-ticker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.studio-dashboard-global-search-meta {
    display: block;
    font-size: 0.76rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--muted) 88%, var(--surface));
}
.theme-dark .studio-dashboard-global-search-meta,
body.theme-dark .studio-dashboard-global-search-meta {
    color: rgba(191, 199, 214, 0.82);
}
.theme-dark .studio-dashboard-global-search-ticker,
body.theme-dark .studio-dashboard-global-search-ticker {
    color: rgba(224, 231, 255, 0.72);
}
.studio-dashboard-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}
.studio-dashboard-settings-submit[disabled],
.studio-dashboard-settings-cancel.is-disabled {
    opacity: 0.72;
    pointer-events: none;
}
.studio-dashboard-settings-submit.is-loading {
    min-width: 164px;
}
.studio-dashboard-settings-submit.is-loading span {
    opacity: 0.9;
}
@media (max-width: 860px) {
    .studio-dashboard-settings-grid,
    .studio-dashboard-settings-flow {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-settings-card {
        padding: 20px;
        border-radius: 20px;
    }
}
.studio-dashboard-view-loader[hidden] {
    display: none !important;
}

.studio-dashboard-suggestions-view {
    display: grid;
}
.studio-dashboard-suggestions-panel {
    padding: 28px;
    border-radius: 28px;
}
.studio-dashboard-suggestions-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
}
.studio-dashboard-suggestions-copy {
    display: grid;
    gap: 14px;
    padding: 8px 4px 0;
}
.studio-dashboard-suggestions-copy h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.studio-dashboard-suggestions-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}
.studio-dashboard-suggestion-form {
    display: grid;
    gap: 18px;
}
.studio-dashboard-suggestion-field.is-full {
    grid-column: 1 / -1;
}
.studio-dashboard-suggestion-field textarea {
    width: 100%;
    min-height: 168px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    resize: vertical;
    box-shadow: none;
}
.studio-dashboard-suggestion-field textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 84%, transparent);
}
.studio-dashboard-suggestion-thanks {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: 20px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface)) 0%, var(--surface) 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}
.studio-dashboard-suggestion-thanks.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.studio-dashboard-suggestion-thanks strong {
    display: block;
    margin-bottom: 4px;
}
.studio-dashboard-suggestion-thanks p {
    margin: 0;
    font-size: 0.92rem;
}
.studio-dashboard-suggestion-thanks-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    border: 1px solid color-mix(in srgb, #22c55e 32%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, #22c55e 22%, var(--surface)) 0%, color-mix(in srgb, #16a34a 12%, var(--surface)) 100%);
    color: #4ade80;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
    line-height: 1;
}
.studio-dashboard-suggestion-thanks-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}
.studio-dashboard-suggestion-thanks-icon path {
    fill: none;
    stroke: #ecfdf5;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.studio-dashboard-suggestion-actions {
    justify-content: flex-start;
    margin-top: 0;
}
.studio-dashboard-suggestion-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.studio-dashboard-suggestion-submit[disabled] {
    opacity: 0.72;
    pointer-events: none;
}
.studio-dashboard-curves-panel {
    display: grid;
    gap: 20px;
}
.studio-dashboard-curves-head {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.75fr);
    gap: 18px;
    align-items: start;
}
.studio-dashboard-curves-copy {
    display: grid;
    gap: 8px;
    max-width: 72ch;
}
.studio-dashboard-curves-copy h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}
.studio-dashboard-curves-copy p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}
.studio-dashboard-curves-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.studio-dashboard-curves-stat {
    appearance: none;
    cursor: pointer;
    display: grid;
    gap: 4px;
    min-height: 92px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
    text-align: left;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.studio-dashboard-curves-stat span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.studio-dashboard-curves-stat strong {
    font-size: 1.42rem;
    letter-spacing: -0.03em;
}
.studio-dashboard-curves-stat.is-bullish strong {
    color: #15803d;
}
.studio-dashboard-curves-stat.is-bearish strong {
    color: #b91c1c;
}
.studio-dashboard-curves-stat:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.studio-dashboard-curves-stat.is-active {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    background: color-mix(in srgb, var(--surface) 82%, var(--accent) 10%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
}
.studio-dashboard-curves-scatter-shell {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 12%, transparent), transparent 32%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, var(--bg)), color-mix(in srgb, var(--surface-soft) 94%, var(--surface)));
}

.studio-dashboard-sectorial-shell {
    gap: 16px;
}

.studio-dashboard-sectorial-chart {
    position: relative;
    min-height: 420px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 60%, var(--surface)), color-mix(in srgb, var(--surface) 98%, var(--bg)));
    overflow: hidden;
}

.studio-dashboard-sectorial-chart svg {
    display: block;
    width: 100%;
    height: 100%;
}
.studio-dashboard-curves-legend,
.studio-dashboard-curves-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.studio-dashboard-curves-legend span,
.studio-dashboard-curves-foot span {
    color: var(--muted);
    font-size: 0.84rem;
}
.studio-dashboard-curves-dot {
    display: inline-flex;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.studio-dashboard-curves-dot.is-bullish {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}
.studio-dashboard-curves-dot.is-bearish {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}
.studio-dashboard-curves-dot.is-reference {
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
.studio-dashboard-curves-scatter {
    position: relative;
    min-height: 480px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background:
        linear-gradient(0deg, color-mix(in srgb, var(--line) 24%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--line) 24%, transparent) 1px, transparent 1px),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 60%, var(--surface)), color-mix(in srgb, var(--surface) 98%, var(--bg)));
    background-size: 100% 20%, 12.5% 100%, auto;
    overflow: hidden;
}
.studio-dashboard-curves-scatter svg {
    display: block;
    width: 100%;
    height: 100%;
}
.studio-dashboard-curves-scatter .curves-point {
    outline: none;
}
.studio-dashboard-curves-scatter .curves-point:focus-visible .curves-point-core {
    stroke: rgba(255, 255, 255, 1);
    stroke-width: 1.9;
}
.studio-dashboard-curves-scatter .curves-point:focus-visible .curves-point-glow {
    opacity: 1;
}
.studio-dashboard-curves-tooltip {
    position: absolute;
    z-index: 3;
    min-width: 220px;
    max-width: 280px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--bg));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    pointer-events: none;
}
.studio-dashboard-curves-tooltip[hidden] {
    display: none !important;
}
.studio-dashboard-curves-tooltip strong,
.studio-dashboard-curves-tooltip p,
.studio-dashboard-curves-tooltip small {
    display: block;
}
.studio-dashboard-curves-tooltip p,
.studio-dashboard-curves-tooltip small {
    margin: 0;
}
.studio-dashboard-curves-tooltip p {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}
.studio-dashboard-curves-tooltip small {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}
.studio-dashboard-curves-tooltip-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.studio-dashboard-curves-tooltip-metrics span {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: 0.74rem;
}
.studio-dashboard-curves-tooltip-metrics strong {
    font-size: 0.95rem;
    color: var(--text);
}
.studio-dashboard-curves-ranking {
    display: grid;
    gap: 14px;
}
.studio-dashboard-curves-ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.studio-dashboard-curves-ranking-head span {
    color: var(--muted);
    font-size: 0.84rem;
}
.studio-dashboard-curves-ranking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.studio-dashboard-curves-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.studio-dashboard-curves-pagination[hidden] {
    display: none !important;
}
.studio-dashboard-curves-pagination-button {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
    color: var(--text);
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, opacity 180ms ease, transform 180ms ease;
}
.studio-dashboard-curves-pagination-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
    background: color-mix(in srgb, var(--surface) 82%, var(--accent) 10%);
}
.studio-dashboard-curves-pagination-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}
.studio-dashboard-curves-pagination-status {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
}
.studio-dashboard-curves-ranking-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
}
.studio-dashboard-curves-ranking-card.is-bullish {
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.08);
}
.studio-dashboard-curves-ranking-card.is-bearish {
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.08);
}
.studio-dashboard-curves-ranking-card .studio-dashboard-tracking-status.is-bullish {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.24);
}
.studio-dashboard-curves-ranking-card .studio-dashboard-tracking-status.is-bearish {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.24);
}
.studio-dashboard-curves-ranking-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.studio-dashboard-curves-ranking-card > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}
.studio-dashboard-curves-ranking-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.studio-dashboard-curves-ranking-metrics span {
    display: grid;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--muted);
}
.studio-dashboard-curves-ranking-metrics strong {
    font-size: 1rem;
    color: var(--text);
}
.studio-dashboard-quant-panel {
    gap: 18px;
}
.studio-dashboard-quant-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.studio-dashboard-quant-summary article,
.studio-dashboard-quant-card,
.studio-dashboard-quant-disclaimer {
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
    border-radius: 20px;
}
.studio-dashboard-quant-summary article {
    display: grid;
    gap: 6px;
    padding: 16px;
}
.studio-dashboard-quant-summary span,
.studio-dashboard-quant-card small {
    color: var(--muted);
    font-size: 0.78rem;
}
.studio-dashboard-quant-summary span {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.studio-dashboard-quant-summary strong {
    color: var(--text);
    font-size: 1rem;
}
.studio-dashboard-quant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.studio-dashboard-quant-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.studio-dashboard-quant-card:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}
.studio-dashboard-quant-card.is-bullish {
    border-color: rgba(34, 197, 94, 0.24);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.08);
}
.studio-dashboard-quant-card.is-bearish {
    border-color: rgba(239, 68, 68, 0.24);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.08);
}
.studio-dashboard-quant-card-head,
.studio-dashboard-quant-card-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.studio-dashboard-quant-card-head > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.studio-dashboard-quant-weight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent);
    font-weight: 800;
}
.studio-dashboard-quant-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}
.studio-dashboard-quant-metrics span {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 84%, var(--surface));
    color: var(--muted);
    font-size: 0.74rem;
}
.studio-dashboard-quant-metrics strong {
    color: var(--text);
    font-size: 0.92rem;
}
.studio-dashboard-quant-reason {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.studio-dashboard-quant-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    color: var(--muted);
    line-height: 1.5;
}
.studio-dashboard-quant-disclaimer i {
    margin-top: 3px;
    color: var(--accent);
}
@media (max-width: 860px) {
    .studio-dashboard-suggestions-layout {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-suggestions-panel {
        padding: 22px;
        border-radius: 22px;
    }
    .studio-dashboard-curves-head,
    .studio-dashboard-curves-ranking-grid {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-curves-stats,
    .studio-dashboard-curves-ranking-metrics,
    .studio-dashboard-quant-summary,
    .studio-dashboard-quant-grid,
    .studio-dashboard-quant-metrics {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-curves-scatter {
        min-height: 420px;
    }
    .studio-dashboard-sectorial-chart {
        min-height: 360px;
    }
}
.theme-dark .studio-dashboard-curves-tooltip {
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.4);
}
.theme-dark .studio-dashboard-curves-dot.is-reference {
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}
.theme-dark .studio-dashboard-curves-stat span {
    color: #e5eefc;
}
.theme-dark .studio-dashboard-curves-stat strong {
    color: #f8fafc;
}
.theme-dark .studio-dashboard-curves-stat.is-bullish strong {
    color: #4ade80;
}
.theme-dark .studio-dashboard-curves-stat.is-bearish strong {
    color: #f87171;
}
.theme-dark .studio-dashboard-tracking-stat.is-positive strong {
    color: #86efac;
}
.theme-dark .studio-dashboard-tracking-stat.is-neutral strong {
    color: #bfdbfe;
}
.theme-dark .studio-dashboard-tracking-stat.is-negative strong {
    color: #fca5a5;
}
.theme-dark .studio-dashboard-curves-ranking-card .studio-dashboard-tracking-status.is-bullish {
    color: #86efac;
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.3);
}
.theme-dark .studio-dashboard-curves-ranking-card .studio-dashboard-tracking-status.is-bearish {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.3);
}
.theme-dark .studio-dashboard-quant-summary span,
.theme-dark .studio-dashboard-quant-card small,
.theme-dark .studio-dashboard-quant-metrics span,
.theme-dark .studio-dashboard-quant-reason,
.theme-dark .studio-dashboard-quant-disclaimer {
    color: #cbd5e1;
}
.theme-dark .studio-dashboard-quant-summary strong,
.theme-dark .studio-dashboard-quant-metrics strong {
    color: #f8fafc;
}
.theme-dark .studio-dashboard-quant-weight {
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.2);
}
@media (max-width: 640px) {
    .studio-dashboard-curves-scatter-shell {
        padding: 14px;
    }
    .studio-dashboard-curves-scatter {
        min-height: 360px;
    }
    .studio-dashboard-curves-tooltip {
        min-width: 0;
        max-width: 220px;
    }
    .studio-dashboard-curves-ranking-grid {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-sectorial-chart {
        min-height: 320px;
    }
}















.studio-dashboard-settings-card--profile {
    --settings-accent: color-mix(in srgb, var(--accent) 56%, #fb7185 44%);
}
.studio-dashboard-settings-card--credentials {
    --settings-accent: color-mix(in srgb, var(--accent) 44%, #22c55e 56%);
}
.studio-dashboard-settings-card--favorites {
    --settings-accent: color-mix(in srgb, var(--accent) 52%, #f59e0b 48%);
}
.studio-dashboard-settings-field textarea {
    width: 100%;
    min-height: 108px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    resize: vertical;
    box-shadow: none;
}
.studio-dashboard-settings-field textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 84%, transparent);
}
.studio-dashboard-settings-field--full {
    grid-column: 1 / -1;
}
.studio-dashboard-profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, var(--settings-accent));
    border-radius: 18px;
    background: color-mix(in srgb, var(--settings-accent) 8%, var(--surface));
}
.studio-dashboard-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--settings-accent) 92%, #ffffff 8%) 0%, color-mix(in srgb, var(--settings-accent) 64%, #0f172a 36%) 100%);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    overflow: hidden;
}
.studio-dashboard-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.studio-dashboard-profile-hero-copy {
    display: grid;
    gap: 4px;
}
.studio-dashboard-profile-hero-copy strong {
    font-size: 1rem;
    color: var(--text);
}
.studio-dashboard-profile-hero-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}
.studio-dashboard-settings-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.studio-dashboard-settings-choice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
}
.studio-dashboard-settings-choice input {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--accent);
}
.studio-dashboard-settings-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    width: 100%;
}
.studio-dashboard-settings-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.studio-dashboard-settings-switch-ui {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 34%, var(--surface-soft));
    transition: background-color 160ms ease;
}
.studio-dashboard-settings-switch-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
    transition: transform 160ms ease;
}
.studio-dashboard-settings-switch input[type="checkbox"]:checked ~ .studio-dashboard-settings-switch-ui {
    background: var(--accent);
}
.studio-dashboard-settings-switch input[type="checkbox"]:checked ~ .studio-dashboard-settings-switch-ui::after {
    transform: translateX(20px);
}
.studio-dashboard-settings-switch-copy {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    padding-left: 0;
    flex: 1 1 auto;
}
.studio-dashboard-settings-checkgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.studio-dashboard-settings-checkitem {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.studio-dashboard-settings-checkitem input {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--accent);
}
.studio-dashboard-settings-checkitem span {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    padding-left: 0;
}
@media (max-width: 860px) {
    .studio-dashboard-settings-checkgrid {
        grid-template-columns: 1fr;
    }
}

.studio-dashboard-settings-checkgrid--auth {
    gap: 14px;
}
.studio-dashboard-auth-check {
    display: flex;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.studio-dashboard-auth-check .auth-check-box {
    margin-top: 0;
}
.studio-dashboard-auth-check .auth-check-copy {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
}




.studio-dashboard-file-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 94%, var(--bg));
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.35;
}
.studio-dashboard-file-input::file-selector-button {
    margin-right: 12px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 94%, #9dc6ff 6%), color-mix(in srgb, var(--accent) 72%, #244a84 28%));
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}
.studio-dashboard-file-input::file-selector-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}
.studio-dashboard-file-input::file-selector-button:active {
    transform: translateY(0);
}
.studio-dashboard-file-input::-webkit-file-upload-button {
    margin-right: 12px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 94%, #9dc6ff 6%), color-mix(in srgb, var(--accent) 72%, #244a84 28%));
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}
.public-user-profile-shell {
    padding: 32px 0 56px;
}
.public-user-profile-card {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--bg)), var(--surface));
    box-shadow: var(--shadow);
}
.public-user-profile-cover {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(96, 165, 250, 0.28), transparent 20%),
        radial-gradient(circle at 88% 24%, rgba(34, 197, 94, 0.22), transparent 18%),
        linear-gradient(135deg, #0f172a 0%, #13233e 42%, #1d4ed8 100%);
}
.public-user-profile-cover::after {
    content: '';
    position: absolute;
    inset: auto 28px 34px 28px;
    height: 84px;
    border-radius: 24px;
    background:
        linear-gradient(115deg, transparent 0 8%, rgba(255,255,255,0.12) 8% 9%, transparent 9% 21%, rgba(255,255,255,0.1) 21% 22%, transparent 22% 38%, rgba(96,165,250,0.24) 38% 39%, transparent 39% 56%, rgba(34,197,94,0.28) 56% 57%, transparent 57% 100%),
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    opacity: 0.92;
}
.public-user-profile-cover-mark {
    position: absolute;
    right: 34px;
    top: 16px;
    font-size: clamp(7rem, 18vw, 12rem);
    line-height: 1;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
}
.public-user-profile-cover-orb {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}
.public-user-profile-cover-orb.orb-one {
    width: 260px;
    height: 260px;
    left: -80px;
    top: -90px;
}
.public-user-profile-cover-orb.orb-two {
    width: 180px;
    height: 180px;
    right: -30px;
    bottom: -60px;
}
.public-user-profile-body {
    padding: 0 28px 30px;
    margin-top: -56px;
    position: relative;
}
.public-user-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
}
.public-user-profile-avatar {
    display: grid;
    place-items: center;
    width: 124px;
    height: 124px;
    border-radius: 28px;
    overflow: hidden;
    border: 6px solid var(--surface);
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #9dc6ff 18%), color-mix(in srgb, var(--accent) 64%, #244a84 36%));
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}
.public-user-profile-avatar.has-image {
    background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}
.public-user-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.public-user-profile-copy h1 {
    margin: 0;
    font-size: clamp(1.78rem, 3.2vw, 2.76rem);
    color: #f8fbff;
    text-shadow: 0 10px 26px rgba(8, 15, 32, 0.42);
}
.public-user-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}
.public-user-profile-meta strong {
    color: var(--text);
    font-weight: 800;
}
.public-user-profile-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
}
.public-user-profile-list--chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.public-user-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, var(--bg));
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}
.public-user-profile-chip.is-accent {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent);
}
.public-user-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}
.public-user-profile-actions--toolbar {
    row-gap: 10px;
    column-gap: 8px;
}
.public-user-profile-toolbar-button {
    gap: 8px;
    min-width: 0;
}
.public-user-profile-toolbar-button span {
    line-height: 1;
}
.public-user-profile-toolbar-icon i {
    line-height: 1;
}
.public-user-profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 9fr) minmax(260px, 3fr);
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}
.public-user-profile-main-column,
.public-user-profile-side-column {
    display: grid;
    gap: 18px;
    align-content: start;
}
.public-user-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.public-user-profile-grid--compact {
    margin-top: 18px;
}
.public-user-profile-grid--inner {
    margin-top: 0;
}
.public-user-profile-panel {
    padding: 24px;
    border-radius: 24px;
}
.public-user-profile-panel h2 {
    margin-top: 8px;
    margin-bottom: 12px;
    font-size: 1.42rem;
}
.public-user-profile-panel--about {
    grid-column: auto;
}
.public-user-profile-side-card {
    padding: 18px 18px;
    border-radius: 22px;
    min-height: 0;
    position: relative;
    overflow: hidden;
}
.public-user-profile-side-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, color-mix(in srgb, #ffffff 14%, transparent), transparent 42%);
}
.public-user-profile-side-card--positive {
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, #ecfff5 12%), color-mix(in srgb, var(--surface) 94%, #f6fff9 6%));
    border: 1px solid color-mix(in srgb, #22c55e 22%, var(--line));
}
.public-user-profile-side-card--neutral {
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, #eef4ff 12%), color-mix(in srgb, var(--surface) 96%, #f9fbff 4%));
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
}
.public-user-profile-side-list {
    display: grid;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.public-user-profile-side-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.public-user-profile-side-item strong,
.public-user-profile-side-item small,
.public-user-profile-side-item span {
    display: block;
}
.public-user-profile-side-item strong {
    color: var(--text);
    font-size: 0.8rem;
}
.public-user-profile-side-item small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.66rem;
}
.public-user-profile-side-item span {
    align-self: center;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}
.public-user-profile-side-item.is-placeholder span {
    color: var(--accent);
}
.public-user-profile-side-item.is-live-market span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.public-user-profile-side-item.is-live-market.is-market-extreme-fear span {
    color: #a50e0e;
    background: #fce8e6;
    border-color: #f6c7c2;
}
.public-user-profile-side-item.is-live-market.is-market-fear span {
    color: #b06000;
    background: #feefe3;
    border-color: #f8d2a7;
}
.public-user-profile-side-item.is-live-market.is-market-neutral span {
    color: #5f6368;
    background: #f1f3f4;
    border-color: #dadce0;
}
.public-user-profile-side-item.is-live-market.is-market-greed span {
    color: #137333;
    background: #e6f4ea;
    border-color: #b7dfc1;
}
.public-user-profile-side-item.is-live-market.is-market-extreme-greed span {
    color: #0d652d;
    background: #d7f0dd;
    border-color: #9fd3ac;
}
.public-user-profile-experts {
    padding: 22px;
    overflow: hidden;
}
.public-user-profile-experts-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}
.public-user-profile-experts-carousel {
    gap: 16px;
}
.public-user-profile-experts-carousel .carousel-track {
    min-height: 328px;
}
.public-user-profile-experts-slide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
.public-user-profile-expert-card {
    min-width: 0;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, var(--bg)), color-mix(in srgb, var(--surface-soft) 92%, var(--surface)));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.public-user-profile-expert-topline,
.public-user-profile-expert-head,
.public-user-profile-expert-stats,
.public-user-profile-expert-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.public-user-profile-expert-topline {
    margin-bottom: 14px;
}
.public-user-profile-expert-badge,
.public-user-profile-expert-winrate {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.public-user-profile-expert-badge {
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent);
}
.public-user-profile-expert-badge.is-hibrido,
.public-user-profile-expert-badge.is-hybrid {
    background: color-mix(in srgb, #22c55e 12%, var(--surface));
    color: #15803d;
    border-color: color-mix(in srgb, #22c55e 22%, var(--line));
}
.public-user-profile-expert-winrate {
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 90%, var(--surface-soft));
    border: 1px solid var(--line);
}
.public-user-profile-expert-avatar {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}
.public-user-profile-expert-head {
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 14px;
}
.public-user-profile-expert-head h3 {
    margin: 0 0 4px;
    font-size: 1.08rem;
}
.public-user-profile-expert-link {
    color: inherit;
    text-decoration: none;
}
.public-user-profile-expert-link:hover,
.public-user-profile-expert-link:focus-visible {
    color: var(--accent);
}
.public-user-profile-expert-head p,
.public-user-profile-expert-copy {
    margin: 0;
    color: var(--muted);
}
.public-user-profile-expert-copy {
    min-height: 58px;
    font-size: 0.78rem;
    line-height: 1.45;
}
.public-user-profile-expert-stats {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.84rem;
}
.public-user-profile-expert-stats strong {
    color: var(--text);
}
.public-user-profile-expert-stat-success {
    color: #16a34a;
    font-weight: 700;
}
.public-user-profile-expert-stat-success strong {
    color: #16a34a;
}
.public-user-profile-expert-meter {
    margin-top: 12px;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--line) 70%, transparent);
}
.public-user-profile-expert-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #1d4ed8), color-mix(in srgb, #22c55e 30%, var(--accent)));
}
.public-user-profile-expert-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.public-user-profile-expert-actions .social-action {
    width: 100%;
    min-height: 38px;
    justify-content: center;
}
.public-user-profile-expert-actions .profile-green-cta {
    border-color: #16a34a;
    color: #fff;
}
.public-user-profile-expert-actions .profile-green-cta:hover,
.public-user-profile-expert-actions .profile-green-cta:focus-visible {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-color: #16a34a;
    color: #fff;
}
.public-user-profile-experts-controls {
    justify-content: flex-end;
    flex-shrink: 0;
}
.public-user-profile-experts-nav {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 96%, var(--bg));
    color: var(--text);
    box-shadow: var(--shadow);
}
.public-user-profile-experts-nav:hover,
.public-user-profile-experts-nav:focus-visible {
    border-color: var(--line-strong);
    background: var(--surface-soft);
}
.public-user-profile-links {
    display: grid;
    gap: 12px;
}
.public-user-profile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    background: color-mix(in srgb, var(--surface) 96%, var(--bg));
}
.public-user-profile-link:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.public-user-profile-empty {
    color: var(--muted);
    margin: 0;
}
@media (max-width: 1100px) {
    .public-user-profile-content-grid {
        grid-template-columns: 1fr;
    }
    .public-user-profile-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .public-user-profile-experts-slide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .public-user-profile-experts-carousel .carousel-track {
        min-height: 490px;
    }
}
@media (max-width: 900px) {
    .public-user-profile-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .public-user-profile-actions {
        justify-content: flex-start;
    }
    .public-user-profile-grid {
        grid-template-columns: 1fr 1fr;
    }
    .public-user-profile-side-column {
        grid-template-columns: 1fr;
    }
    .public-user-profile-experts-head {
        align-items: start;
        flex-direction: column;
    }
}
@media (max-width: 640px) {
    .public-user-profile-body {
        padding: 0 18px 22px;
    }
    .public-user-profile-avatar {
        width: 104px;
        height: 104px;
        border-radius: 24px;
    }
    .public-user-profile-grid {
        grid-template-columns: 1fr;
    }
    .public-user-profile-experts-slide {
        grid-template-columns: 1fr;
    }
    .public-user-profile-experts-carousel .carousel-track {
        min-height: 960px;
    }
}
.studio-dashboard-settings-section,
.studio-dashboard-settings-form,
.studio-dashboard-settings-stack {
    align-content: start;
}
.studio-dashboard-settings-card--social {
    align-content: start;
}
.studio-dashboard-settings-card--social .studio-dashboard-settings-card-head {
    align-items: flex-start;
}
.studio-dashboard-settings-card--social .studio-dashboard-settings-card-tag {
    align-self: flex-start;
}
.studio-dashboard-pagebar {
    align-items: flex-start;
}
.studio-dashboard-pagebar > div:first-child {
    display: grid;
    align-content: start;
}
.studio-dashboard-content {
    align-content: start;
    grid-auto-rows: max-content;
}
.studio-dashboard-view,
.studio-dashboard-settings-view,
.studio-dashboard-suggestions-view {
    align-content: start;
    align-items: start;
}
.studio-dashboard-suggestions-panel,
.studio-dashboard-suggestions-layout,
.studio-dashboard-suggestion-form,
.studio-dashboard-suggestions-copy {
    align-content: start;
}


.studio-dashboard-analysts-view,
.studio-dashboard-analyst-hub,
.studio-dashboard-analyst-xray-stack {
    display: grid;
    gap: 20px;
    align-content: start;
}
.studio-dashboard-analyst-hub-head {
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 4px;
}
.studio-dashboard-analyst-hub-controls {
    justify-content: flex-end;
    margin: -64px 0 12px;
    align-self: end;
    position: relative;
    z-index: 2;
}
.studio-dashboard-analyst-hub-copy,
.studio-dashboard-analyst-xray-copy,
.studio-dashboard-analyst-spotlight-copy,
.studio-dashboard-analyst-tools-card p,
.studio-dashboard-analyst-philosophy-card p {
    color: var(--muted);
}
.studio-dashboard-analyst-carousel {
    gap: 0;
}
.studio-dashboard-analyst-carousel .carousel-track {
    min-height: 306px;
}
.studio-dashboard-analyst-slide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.studio-dashboard-analyst-spotlight {
    min-width: 0;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 16%, transparent), transparent 32%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, var(--bg)), color-mix(in srgb, var(--surface-soft) 92%, var(--surface)));
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    cursor: pointer;
}
.studio-dashboard-analyst-spotlight:hover,
.studio-dashboard-analyst-spotlight.is-selected {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
    box-shadow: 0 28px 56px rgba(37, 99, 235, 0.12);
}
.studio-dashboard-analyst-spotlight-topline,
.studio-dashboard-analyst-spotlight-actions,
.studio-dashboard-analyst-equity-head,
.studio-dashboard-analyst-xray-head,
.studio-dashboard-analyst-heatmap-head,
.studio-dashboard-analyst-report,
.studio-dashboard-analyst-report-action {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}
.studio-dashboard-analyst-spotlight-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr);
    gap: 20px;
    align-items: start;
}
.studio-dashboard-analyst-spotlight-topline {
    margin-bottom: 10px;
}
.studio-dashboard-analyst-badge,
.studio-dashboard-analyst-pricing {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}
.studio-dashboard-analyst-badge {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent);
    margin-left: 4px;
}
.studio-dashboard-analyst-badge.is-hybrid {
    background: color-mix(in srgb, #f59e0b 14%, var(--surface));
    color: #b45309;
}
.studio-dashboard-analyst-pricing {
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
}
.studio-dashboard-analyst-avatar-badge {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 86%, #8cb8ff 14%), color-mix(in srgb, var(--accent) 62%, #183b6b 38%));
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.18);
    flex: 0 0 auto;
}
.studio-dashboard-analyst-spotlight-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.studio-dashboard-analyst-spotlight-summary {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.studio-dashboard-analyst-spotlight-head h3,
.studio-dashboard-analyst-philosophy-card h3,
.studio-dashboard-analyst-equity-card h3,
.studio-dashboard-analyst-predictions-card h3,
.studio-dashboard-analyst-watchlist-card h3,
.studio-dashboard-analyst-sources-card h3,
.studio-dashboard-analyst-tools-card h3,
.studio-dashboard-analyst-news-card h3,
.studio-dashboard-analyst-library-card h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}
.studio-dashboard-analyst-identity {
    display: grid;
    gap: 3px;
    justify-items: start;
    align-content: start;
}
.studio-dashboard-analyst-identity h3 {
    margin: 0;
    font-size: 1.22rem;
    letter-spacing: -0.03em;
}
.studio-dashboard-analyst-identity strong {
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.35;
}
.studio-dashboard-analyst-identity small {
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.studio-dashboard-analyst-identity p,
.studio-dashboard-analyst-spotlight-head p,
.studio-dashboard-analyst-spotlight-copy,
.studio-dashboard-analyst-hub-copy,
.studio-dashboard-analyst-xray-copy,
.studio-dashboard-analyst-philosophy-card p,
.studio-dashboard-analyst-tools-card p {
    margin: 0;
    line-height: 1.45;
}
.studio-dashboard-analyst-spotlight-copy {
    flex: 1;
    min-width: 0;
}
.studio-dashboard-analyst-meta-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.74rem;
    color: var(--muted);
}
.studio-dashboard-analyst-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d9bf0;
    font-size: 0.84rem;
    line-height: 1;
}
.studio-dashboard-analyst-spotlight-metrics,
.studio-dashboard-analyst-vitals-grid,
.studio-dashboard-analyst-streak-grid,
.studio-dashboard-analyst-overview-grid,
.studio-dashboard-analyst-performance-grid,
.studio-dashboard-analyst-setup-grid {
    display: grid;
    gap: 16px;
}
.studio-dashboard-analyst-spotlight-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
}
.studio-dashboard-analyst-spotlight-metrics div,
.studio-dashboard-analyst-vital-card,
.studio-dashboard-analyst-xray-scorecard,
.studio-dashboard-analyst-heatmap-card,
.studio-dashboard-analyst-predictions-card,
.studio-dashboard-analyst-watchlist-card,
.studio-dashboard-analyst-sources-card,
.studio-dashboard-analyst-tools-card,
.studio-dashboard-analyst-news-card,
.studio-dashboard-analyst-library-card,
.studio-dashboard-analyst-philosophy-card,
.studio-dashboard-analyst-equity-card {
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
}
.studio-dashboard-analyst-spotlight-metrics div,
.studio-dashboard-analyst-vital-card,
.studio-dashboard-analyst-xray-scorecard {
    padding: 12px;
}
.studio-dashboard-analyst-spotlight-metrics strong,
.studio-dashboard-analyst-vital-card strong,
.studio-dashboard-analyst-xray-scorecard strong,
.studio-dashboard-analyst-streak-grid strong {
    display: block;
    font-size: 1.02rem;
    margin-top: 6px;
    letter-spacing: -0.03em;
}
.studio-dashboard-analyst-spotlight-metrics span,
.studio-dashboard-analyst-vital-card span,
.studio-dashboard-analyst-xray-scorecard span,
.studio-dashboard-analyst-xray-scorecard small,
.studio-dashboard-analyst-streak-grid span,
.studio-dashboard-analyst-report span,
.studio-dashboard-analyst-news-item span,
.studio-dashboard-analyst-table small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}
.studio-dashboard-analyst-spotlight-actions {
    margin-top: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.studio-dashboard-analyst-spotlight-actions .social-action {
    min-height: 38px;
    justify-content: center;
}
.studio-dashboard-analyst-spotlight-actions .social-action-wide {
    min-width: 142px;
}
.studio-dashboard-analyst-xray {
    gap: 18px;
}
.studio-dashboard-analyst-xray-head {
    align-items: flex-start;
}
.studio-dashboard-analyst-xray-scorecard {
    min-width: 240px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, #eaf2ff 10%), color-mix(in srgb, var(--surface) 96%, #f8fbff 4%));
}
.studio-dashboard-analyst-xray-tabs {
    margin-top: 4px;
}
.studio-dashboard-analyst-xray-tabs.studio-dashboard-settings-tabs {
    gap: 22px;
    flex-wrap: nowrap;
}
.studio-dashboard-analyst-xray-tab.studio-dashboard-settings-tab {
    padding-bottom: 10px;
    border-radius: 0;
    font-weight: 500;
}
.studio-dashboard-analyst-tab-panel {
    display: none;
}
.studio-dashboard-analyst-tab-panel.is-active {
    display: block;
}
.studio-dashboard-analyst-overview-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.studio-dashboard-analyst-vitals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.studio-dashboard-analyst-vital-card.is-highlight strong {
    color: #166534;
}
.studio-dashboard-analyst-philosophy-card,
.studio-dashboard-analyst-equity-card,
.studio-dashboard-analyst-heatmap-card,
.studio-dashboard-analyst-predictions-card,
.studio-dashboard-analyst-watchlist-card,
.studio-dashboard-analyst-sources-card,
.studio-dashboard-analyst-tools-card,
.studio-dashboard-analyst-news-card,
.studio-dashboard-analyst-library-card {
    padding: 18px;
}
.studio-dashboard-analyst-philosophy-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}
.studio-dashboard-analyst-video-stub {
    position: relative;
    min-height: 156px;
    border-radius: 22px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 28%, #071a34), #0f172a 75%);
    overflow: hidden;
}
.studio-dashboard-analyst-video-stub span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.12);
    font-size: 3.4rem;
    font-weight: 900;
}
.studio-dashboard-analyst-video-stub i {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
}
.studio-dashboard-analyst-equity-card {
    grid-column: 1 / -1;
}
.studio-dashboard-analyst-equity-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.studio-dashboard-analyst-equity-chart {
    width: 100%;
    height: 180px;
    margin-top: 10px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 68%, transparent), transparent 76%),
        radial-gradient(circle at top, color-mix(in srgb, var(--accent) 14%, transparent), transparent 58%);
    overflow: hidden;
}
.studio-dashboard-analyst-equity-chart > div {
    display: block;
    width: 100%;
    height: 100%;
}
.studio-dashboard-analyst-performance-grid,
.studio-dashboard-analyst-setup-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.studio-dashboard-analyst-watchlist-card,
.studio-dashboard-analyst-news-card,
.studio-dashboard-analyst-library-card {
    grid-column: 1 / -1;
}

.studio-dashboard-analyst-active-list {
    display: grid;
    gap: 14px;
}
.studio-dashboard-analyst-active-card {
    position: relative;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
    overflow: hidden;
}
.studio-dashboard-analyst-active-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border: 0;
    outline: 0;
    box-shadow: none;
    appearance: none;
    background: transparent;
    color: inherit;
    text-align: left;
}
.studio-dashboard-analyst-active-trigger:focus,
.studio-dashboard-analyst-active-trigger:focus-visible {
    outline: none;
    box-shadow: none;
}
.studio-dashboard-analyst-active-trigger-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}
.studio-dashboard-analyst-active-trigger h3 {
    margin: 0;
    font-size: 1.16rem;
}
.studio-dashboard-analyst-active-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    color: var(--muted);
    transition: transform 0.24s ease, color 0.2s ease, border-color 0.2s ease;
    flex: 0 0 auto;
}
.studio-dashboard-analyst-active-card.is-open .studio-dashboard-analyst-active-chevron {
    transform: rotate(180deg);
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 34%, transparent);
}
.studio-dashboard-analyst-active-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-8px);
    transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, transform 0.38s ease;
}
.studio-dashboard-analyst-active-card.is-open .studio-dashboard-analyst-active-panel {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
}
.studio-dashboard-analyst-active-panel[hidden] {
    display: grid;
}
.studio-dashboard-analyst-active-panel-inner {
    min-height: 0;
    overflow: hidden;
    position: relative;
    padding: 0 18px 18px;
}
.studio-dashboard-analyst-active-card.is-locked .studio-dashboard-analyst-active-grid {
    filter: blur(8px);
    opacity: 0.42;
    pointer-events: none;
    user-select: none;
}
.studio-dashboard-analyst-active-overlay {
    position: absolute;
    inset: 0 18px 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.14), rgba(10, 15, 28, 0.36));
    border-radius: 18px;
}
.studio-dashboard-analyst-active-overlay .social-action {
    min-width: 172px;
    justify-content: center;
}
.studio-dashboard-analyst-active-company {
    margin: 4px 0 0;
    color: var(--muted);
}
.studio-dashboard-analyst-active-position {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    flex: 0 0 auto;
}
.studio-dashboard-analyst-active-position.is-long {
    color: #166534;
    background: rgba(220, 252, 231, 0.82);
}
.studio-dashboard-analyst-active-position.is-short {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.82);
}
.studio-dashboard-analyst-active-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.studio-dashboard-analyst-active-grid div {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
}
.studio-dashboard-analyst-active-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.4;
}
.studio-dashboard-analyst-active-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 0.96rem;
    letter-spacing: -0.02em;
}
.studio-dashboard-analyst-active-grid strong.is-up {
    color: #16a34a;
}
.studio-dashboard-analyst-active-grid strong.is-down {
    color: #ef4444;
}
.studio-dashboard-analyst-heatmap {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
}
.studio-dashboard-analyst-heat {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: color-mix(in srgb, var(--surface-soft) 88%, var(--line));
}
.studio-dashboard-analyst-heat.is-win { background: #16a34a; }
.studio-dashboard-analyst-heat.is-loss { background: #ef4444; }
.studio-dashboard-analyst-heat.is-flat { background: #94a3b8; }
.studio-dashboard-analyst-heat .tooltip-bubble {
    min-width: 220px;
    max-width: 280px;
}
.studio-dashboard-analyst-streak-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}
.studio-dashboard-analyst-watchlist {
    margin-top: 14px;
}
.studio-dashboard-analyst-sources-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.studio-dashboard-analyst-source-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-soft) 86%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
}
.studio-dashboard-analyst-source-pill span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
}
.studio-dashboard-analyst-news-list,
.studio-dashboard-analyst-reports-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.studio-dashboard-analyst-news-item,
.studio-dashboard-analyst-report {
    text-decoration: none;
    color: inherit;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
}
.studio-dashboard-analyst-news-item strong,
.studio-dashboard-analyst-report strong {
    display: block;
    margin-bottom: 4px;
}
.studio-dashboard-analyst-report.is-locked {
    border-style: dashed;
}
.studio-dashboard-analyst-report-action {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}
.studio-dashboard-analyst-cta-bar {
    position: sticky;
    bottom: 12px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    margin-top: 18px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    background: color-mix(in srgb, var(--surface) 94%, #eef5ff 6%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.studio-dashboard-analyst-cta-bar strong {
    display: block;
    margin-bottom: 4px;
}
.studio-dashboard-analyst-cta-bar span {
    color: var(--muted);
    font-size: 0.82rem;
}
.studio-dashboard-analyst-table td strong {
    display: block;
}
@media (max-width: 980px) {
    .studio-dashboard-view-loader.is-global {
        inset: 124px 16px 16px;
    }
    .studio-dashboard-view-loader-blocks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .studio-dashboard-analyst-slide,
    .studio-dashboard-analyst-overview-grid,
    .studio-dashboard-analyst-performance-grid,
    .studio-dashboard-analyst-setup-grid,
    .studio-dashboard-analyst-philosophy-card {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-analyst-spotlight-metrics,
    .studio-dashboard-analyst-streak-grid,
    .studio-dashboard-analyst-vitals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .studio-dashboard-analyst-xray-head,
    .studio-dashboard-analyst-cta-bar {
        flex-direction: column;
        align-items: stretch;
    }
}
@media (max-width: 980px) {
    .studio-dashboard-analyst-active-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .studio-dashboard-analyst-spotlight-metrics,
    .studio-dashboard-analyst-streak-grid,
    .studio-dashboard-analyst-vitals-grid,
    .studio-dashboard-analyst-sources-list {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-analyst-spotlight-actions {
        flex-direction: column;
    }
    .studio-dashboard-analyst-active-grid {
        grid-template-columns: 1fr;
    }
    .studio-dashboard-analyst-heatmap {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}


body.light-mode .profile-green-cta:hover,
body.light-mode .profile-green-cta:focus-visible,
:root[data-theme='light'] .profile-green-cta:hover,
:root[data-theme='light'] .profile-green-cta:focus-visible,
body:not(.theme-dark) .profile-green-cta:hover,
body:not(.theme-dark) .profile-green-cta:focus-visible {
    background: linear-gradient(180deg, #16a34a, #166534) !important;
    border-color: #14532d !important;
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.34) !important;
    filter: saturate(1.08) brightness(0.97);
    transform: translateY(-1px);
}
.lightweight-chart-shell {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}
.lightweight-chart-surface {
    width: 100%;
    min-height: 170px;
}
.chart-card .lightweight-chart-surface {
    min-height: 170px;
}
.studio-dashboard-analyst-equity-chart.lightweight-chart-surface {
    min-height: 180px;
    margin-top: 10px;
}

.studio-dashboard-watchlist-panel,
.studio-dashboard-watchlist-panels,
.studio-dashboard-watchlist-grid,
.studio-dashboard-watchlist-portfolio-grid {
    display: grid;
    gap: 18px;
}
.studio-dashboard-watchlist-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}
.studio-dashboard-watchlist-search {
    position: relative;
}
.studio-dashboard-watchlist-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 6;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
    background: color-mix(in srgb, var(--surface) 98%, var(--surface-soft));
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}
.studio-dashboard-watchlist-result {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 78%, var(--surface));
    cursor: pointer;
}
.studio-dashboard-watchlist-result:hover {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
.studio-dashboard-watchlist-result strong,
.studio-dashboard-watchlist-asset-head strong,
.studio-dashboard-watchlist-portfolio-item strong {
    display: block;
    margin: 0;
    font-size: 1rem;
}
.studio-dashboard-watchlist-result p,
.studio-dashboard-watchlist-asset-head p,
.studio-dashboard-watchlist-portfolio-item span,
.studio-dashboard-watchlist-empty p,
.studio-dashboard-watchlist-portfolio-list p {
    margin: 0;
    color: var(--muted);
}
.studio-dashboard-watchlist-result-meta {
    text-align: right;
    font-size: 0.76rem;
    color: var(--muted);
}
.studio-dashboard-watchlist-tabs {
    margin-top: 4px;
}
.studio-dashboard-watchlist-tab-panel {
    display: none;
}
.studio-dashboard-watchlist-tab-panel.is-active {
    display: block;
}
.studio-dashboard-watchlist-empty,
.studio-dashboard-watchlist-asset-card,
.studio-dashboard-watchlist-portfolio-card,
.studio-dashboard-watchlist-create-form,
.studio-dashboard-watchlist-portfolio-pick {
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
    padding: 18px;
}

.studio-dashboard-alert-categories-panel {
    display: grid;
    gap: 18px;
}

.studio-dashboard-alert-category-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 12px;
}

.studio-dashboard-alert-category-filter {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.studio-dashboard-alert-category-filter.is-muted {
    color: var(--muted);
}

.studio-dashboard-alert-category-list {
    display: grid;
    gap: 12px;
}

.studio-dashboard-alert-category-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto) minmax(220px, 0.7fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.studio-dashboard-alert-category-card:hover,
.studio-dashboard-alert-category-card:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.studio-dashboard-alert-category-card-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.studio-dashboard-alert-category-card-main small,
.studio-dashboard-alert-category-card-main p {
    color: var(--muted);
}

.studio-dashboard-alert-category-card-main p {
    margin: 0;
    line-height: 1.45;
}

.studio-dashboard-alert-category-card-meta,
.studio-dashboard-alert-category-card-scores {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.studio-dashboard-alert-category-card-scores {
    justify-content: flex-end;
}

.studio-dashboard-alert-category-card-scores span {
    display: grid;
    gap: 2px;
    min-width: 76px;
    font-size: 0.72rem;
    color: var(--muted);
}

.studio-dashboard-alert-category-card-scores strong {
    color: var(--text);
    font-size: 0.86rem;
}

@media (max-width: 980px) {
    .studio-dashboard-alert-category-card {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-alert-category-card-scores {
        justify-content: flex-start;
    }
}

@media (max-width: 1100px) {
    .studio-dashboard-watchlist-tab-panel[data-watchlist-tab-panel='categories'] .studio-dashboard-curves-head {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-alert-category-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .studio-dashboard-alert-category-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .studio-dashboard-alert-category-card-scores {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .studio-dashboard-alert-category-filter-grid {
        grid-template-columns: 1fr;
    }
}
.studio-dashboard-watchlist-grid,
.studio-dashboard-watchlist-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.studio-dashboard-watchlist-tab-panel[data-watchlist-tab-panel='watchlist'] .studio-dashboard-watchlist-grid {
    grid-template-columns: 1fr;
}
.studio-dashboard-watchlist-asset-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}
.studio-dashboard-watchlist-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.studio-dashboard-watchlist-asset-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--muted);
}
.studio-dashboard-watchlist-inline-actions {
    justify-content: flex-start;
    margin-top: 12px;
}
.studio-dashboard-watchlist-notes {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
}
.studio-dashboard-watchlist-notes-head {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}
.studio-dashboard-watchlist-notes-head span {
    color: var(--muted);
    font-size: 0.82rem;
}
.studio-dashboard-watchlist-note-form {
    display: grid;
    gap: 10px;
}
.studio-dashboard-watchlist-note-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.studio-dashboard-watchlist-note-item,
.studio-dashboard-watchlist-note-empty {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
}
.studio-dashboard-watchlist-note-item small,
.studio-dashboard-watchlist-note-empty {
    color: var(--muted);
    font-size: 0.76rem;
}
.studio-dashboard-watchlist-note-item p {
    margin: 6px 0 0;
    white-space: pre-wrap;
}
.studio-dashboard-watchlist-portfolio-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.studio-dashboard-watchlist-portfolio-item {
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 86%, var(--surface));
    padding: 12px 14px;
}
@media (max-width: 900px) {
    .studio-dashboard-watchlist-portfolio-controls,
    .studio-dashboard-watchlist-portfolio-default,
    .studio-dashboard-watchlist-toolbar,
    .studio-dashboard-watchlist-grid,
    .studio-dashboard-watchlist-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-watchlist-tab-panel[data-watchlist-tab-panel='portfolios'] .studio-dashboard-watchlist-toolbar {
        justify-content: stretch;
    }

    .studio-dashboard-watchlist-tab-panel[data-watchlist-tab-panel='portfolios'] .studio-dashboard-watchlist-create-trigger {
        width: 100%;
    }
}

.studio-dashboard-watchlist-asset-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.studio-dashboard-watchlist-menu-wrap {
    position: relative;
}
.studio-dashboard-watchlist-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    color: var(--muted);
}
.studio-dashboard-watchlist-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 8;
    min-width: 250px;
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    background: color-mix(in srgb, var(--surface) 98%, var(--surface-soft));
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}
.studio-dashboard-watchlist-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    text-align: left;
}
.studio-dashboard-watchlist-menu-item:hover {
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.studio-dashboard-watchlist-asset-extended {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
}
.studio-dashboard-watchlist-extended-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.studio-dashboard-watchlist-extended-grid div {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
}
.studio-dashboard-watchlist-extended-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
}
.studio-dashboard-watchlist-extended-grid strong {
    display: block;
    margin-top: 6px;
}
@media (max-width: 900px) {
    .studio-dashboard-watchlist-extended-grid {
        grid-template-columns: 1fr;
    }
}

.studio-dashboard-watchlist-results[hidden],
.studio-dashboard-watchlist-menu[hidden],
.studio-dashboard-watchlist-submenu[hidden],
.studio-dashboard-watchlist-asset-extended[hidden],
.studio-dashboard-watchlist-create-form[hidden] {
    display: none !important;
}
.studio-dashboard-watchlist-create-trigger {
    white-space: nowrap;
}
.studio-dashboard-watchlist-portfolio-controls {
    position: relative;
    display: grid;
    gap: 14px;
}
.studio-dashboard-watchlist-portfolio-default,
.studio-dashboard-watchlist-create-form {
    transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease;
}
.studio-dashboard-watchlist-portfolio-default {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    opacity: 1;
    transform: translateY(0);
    max-height: 220px;
}
.studio-dashboard-watchlist-create-form {
    display: grid;
    gap: 14px;
    opacity: 0;
    transform: translateY(8px);
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    pointer-events: none;
}
.studio-dashboard-watchlist-portfolio-controls.is-creating .studio-dashboard-watchlist-portfolio-default {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
}
.studio-dashboard-watchlist-portfolio-controls.is-creating .studio-dashboard-watchlist-create-form {
    opacity: 1;
    transform: translateY(0);
    max-height: 220px;
    padding-top: 18px;
    padding-bottom: 18px;
    border-width: 1px;
    pointer-events: auto;
}
.studio-dashboard-watchlist-tab-panel[data-watchlist-tab-panel='portfolios'] .studio-dashboard-watchlist-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: end;
    padding-bottom: 16px;
}
.studio-dashboard-watchlist-tab-panel[data-watchlist-tab-panel='portfolios'] .studio-dashboard-watchlist-create-trigger {
    width: auto;
    min-width: 182px;
    min-height: 44px;
    padding-inline: 18px;
    gap: 8px;
    font-size: 0.84rem;
}
.studio-dashboard-watchlist-tab-panel[data-watchlist-tab-panel='portfolios'] .studio-dashboard-watchlist-portfolio-pick {
    padding: 16px 18px;
}
.studio-dashboard-watchlist-tab-panel[data-watchlist-tab-panel='portfolios'] .studio-dashboard-watchlist-portfolio-pick .studio-dashboard-settings-field {
    display: grid;
    gap: 8px;
    margin: 0;
}
.studio-dashboard-watchlist-tab-panel[data-watchlist-tab-panel='portfolios'] .studio-dashboard-watchlist-portfolio-pick .studio-dashboard-settings-field span {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.studio-dashboard-watchlist-create-form .studio-dashboard-settings-field {
    margin: 0;
}
.studio-dashboard-watchlist-create-form .studio-dashboard-settings-field span {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.studio-dashboard-watchlist-search {
    position: relative;
}
.studio-dashboard-watchlist-menu-group {
    display: grid;
    gap: 6px;
}
.studio-dashboard-watchlist-menu-item-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.studio-dashboard-watchlist-menu-item--submenu {
    justify-content: space-between;
}
.studio-dashboard-watchlist-submenu {
    display: grid;
    gap: 6px;
    padding: 4px 0 0 14px;
    border-left: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
}
.studio-dashboard-watchlist-menu-item--child {
    font-size: 0.92rem;
}

.studio-dashboard-watchlist-portfolio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.studio-dashboard-watchlist-portfolio-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
    color: var(--muted);
    flex-shrink: 0;
}
.studio-dashboard-watchlist-portfolio-remove:hover {
    color: var(--danger, #dc2626);
    border-color: color-mix(in srgb, var(--danger, #dc2626) 40%, transparent);
    background: color-mix(in srgb, var(--danger, #dc2626) 8%, var(--surface));
}

.studio-dashboard-watchlist-asset-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.studio-dashboard-watchlist-metric {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
}
.studio-dashboard-watchlist-metric span {
    color: var(--muted);
    font-size: 0.74rem;
}
.studio-dashboard-watchlist-metric strong {
    color: var(--text);
    font-size: 0.95rem;
}
.studio-dashboard-watchlist-metric--wide {
    grid-column: 1 / -1;
}
.studio-dashboard-watchlist-change.is-positive {
    color: #16a34a;
}
.studio-dashboard-watchlist-change.is-negative {
    color: #dc2626;
}
.studio-dashboard-watchlist-change.is-neutral {
    color: var(--muted);
}
@media (max-width: 900px) {
    .studio-dashboard-watchlist-asset-meta {
        grid-template-columns: 1fr;
    }
}

.studio-dashboard-watchlist-portfolio-item {
    align-items: flex-start;
}
.studio-dashboard-watchlist-portfolio-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.studio-dashboard-watchlist-portfolio-line span {
    margin: 0;
}
.studio-dashboard-watchlist-portfolio-remove {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #dc2626;
    padding: 0;
}
.studio-dashboard-watchlist-portfolio-remove:hover {
    color: #b91c1c;
    background: transparent;
    border-color: transparent;
}

.studio-dashboard-watchlist-card-panel[hidden] {
    display: none !important;
}
.studio-dashboard-watchlist-card-panel {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.studio-dashboard-watchlist-list {
    display: grid;
    gap: 14px;
}
.studio-dashboard-watchlist-row {
    gap: 0;
    overflow: hidden;
    transition: border-color 240ms ease, box-shadow 240ms ease, background 240ms ease, transform 240ms ease;
}
.studio-dashboard-watchlist-row summary {
    list-style: none;
}
.studio-dashboard-watchlist-row summary::-webkit-details-marker {
    display: none;
}
.studio-dashboard-watchlist-row-summary {
    display: grid;
    grid-template-columns: minmax(220px, 2.2fr) minmax(120px, 0.9fr) minmax(130px, 0.9fr) minmax(130px, 0.9fr) minmax(190px, 1.35fr) 28px;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
}
.studio-dashboard-watchlist-row-company {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.studio-dashboard-watchlist-row-company strong {
    color: var(--text);
    font-size: 1rem;
}
.studio-dashboard-watchlist-row-company small {
    color: var(--muted);
    font-size: 0.82rem;
}
.studio-dashboard-watchlist-row-cell {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.studio-dashboard-watchlist-row-cell small {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.studio-dashboard-watchlist-row-cell strong {
    color: var(--text);
    font-size: 0.95rem;
}
.studio-dashboard-watchlist-row-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: transform 180ms ease, color 180ms ease;
}
.studio-dashboard-watchlist-row[open] .studio-dashboard-watchlist-row-chevron {
    transform: rotate(180deg);
    color: var(--text);
}
.studio-dashboard-watchlist-row[open] {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    background: color-mix(in srgb, var(--surface) 82%, var(--accent) 6%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}
.theme-dark .studio-dashboard-watchlist-row[open] {
    background: color-mix(in srgb, var(--surface) 90%, var(--accent) 10%);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.34);
}
.studio-dashboard-watchlist-row[open] .studio-dashboard-watchlist-row-summary {
    background: color-mix(in srgb, var(--surface-soft) 76%, var(--accent) 10%);
}
.studio-dashboard-watchlist-row:hover {
    border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
    background: color-mix(in srgb, var(--surface) 90%, var(--accent) 3%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.theme-dark .studio-dashboard-watchlist-row:hover {
    background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.2);
}
.studio-dashboard-watchlist-row:hover .studio-dashboard-watchlist-row-summary {
    background: color-mix(in srgb, var(--surface-soft) 84%, var(--accent) 6%);
}
.studio-dashboard-watchlist-row-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 220ms ease;
}
.studio-dashboard-watchlist-row[open] .studio-dashboard-watchlist-row-panel {
    grid-template-rows: 1fr;
}
.studio-dashboard-watchlist-row-panel-inner {
    min-height: 0;
    overflow: hidden;
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
    border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}
.studio-dashboard-watchlist-row-panel-head {
    padding-top: 16px;
}
.studio-dashboard-tracking-card {
    display: grid;
    gap: 14px;
}
.studio-dashboard-tracking-list {
    display: grid;
    gap: 14px;
}
.studio-dashboard-tracking-pagination {
    display: grid;
    gap: 18px;
}
.studio-dashboard-tracking-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.studio-dashboard-tracking-stat {
    width: 100%;
    text-align: left;
}
.studio-dashboard-tracking-stat small {
    color: var(--muted);
    font-size: 0.76rem;
}
.studio-dashboard-tracking-stat.is-positive strong {
    color: #166534;
}
.studio-dashboard-tracking-stat.is-neutral strong {
    color: var(--accent);
}
.studio-dashboard-tracking-stat.is-negative strong {
    color: #b91c1c;
}
.studio-dashboard-tracking-stat.is-average strong {
    color: var(--text);
}
.studio-dashboard-tracking-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.studio-dashboard-tracking-filter-copy {
    color: var(--muted);
    font-size: 0.84rem;
}
.studio-dashboard-tracking-filter-reset {
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    cursor: pointer;
}
.studio-dashboard-tracking-filter-empty {
    margin-top: -4px;
}
.studio-dashboard-tracking-row {
    gap: 0;
    overflow: hidden;
    transition: border-color 240ms ease, box-shadow 240ms ease, background 240ms ease, transform 240ms ease;
}
.studio-dashboard-tracking-row summary {
    list-style: none;
}
.studio-dashboard-tracking-row summary::-webkit-details-marker {
    display: none;
}
.studio-dashboard-tracking-row-summary {
    display: grid;
    grid-template-columns: minmax(220px, 2.2fr) minmax(120px, 1fr) minmax(140px, 1fr) minmax(170px, 1.2fr) minmax(110px, 0.8fr) 28px;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
}
.studio-dashboard-tracking-row-company {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.studio-dashboard-tracking-row-company strong {
    color: var(--text);
    font-size: 1rem;
}
.studio-dashboard-tracking-row-company small {
    color: var(--muted);
    font-size: 0.82rem;
}
.studio-dashboard-tracking-row-cell {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.studio-dashboard-tracking-row-cell small {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.studio-dashboard-tracking-row-cell strong {
    color: var(--text);
    font-size: 0.95rem;
}
.studio-dashboard-tracking-row-cell--thermometer strong {
    font-size: 0.82rem;
    color: var(--muted);
}
.studio-dashboard-tracking-row-meter {
    display: grid;
    gap: 8px;
}
.studio-dashboard-tracking-row-meter-bar {
    display: block;
    position: relative;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 92%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}
.studio-dashboard-tracking-row-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: transform 180ms ease, color 180ms ease;
}
.studio-dashboard-tracking-row[open] .studio-dashboard-tracking-row-chevron {
    transform: rotate(180deg);
    color: var(--text);
}
.studio-dashboard-tracking-row[open] {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    background: color-mix(in srgb, var(--surface) 82%, var(--accent) 6%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}
.theme-dark .studio-dashboard-tracking-row[open] {
    background: color-mix(in srgb, var(--surface) 90%, var(--accent) 10%);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.34);
}
.studio-dashboard-tracking-row[open] .studio-dashboard-tracking-row-summary {
    background: color-mix(in srgb, var(--surface-soft) 76%, var(--accent) 10%);
}
.studio-dashboard-tracking-row:hover {
    border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
    background: color-mix(in srgb, var(--surface) 90%, var(--accent) 3%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.theme-dark .studio-dashboard-tracking-row:hover {
    background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.2);
}
.studio-dashboard-tracking-row:hover .studio-dashboard-tracking-row-summary {
    background: color-mix(in srgb, var(--surface-soft) 84%, var(--accent) 6%);
}
.studio-dashboard-tracking-row-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 220ms ease;
}
.studio-dashboard-tracking-row[open] .studio-dashboard-tracking-row-panel {
    grid-template-rows: 1fr;
}
.studio-dashboard-tracking-row-panel-inner {
    min-height: 0;
    overflow: hidden;
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
    border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}
.studio-dashboard-tracking-row-panel-head {
    padding-top: 16px;
}
.studio-dashboard-portfolio-list {
    display: grid;
    gap: 14px;
}
.studio-dashboard-portfolio-row {
    gap: 0;
    overflow: hidden;
    transition: border-color 240ms ease, box-shadow 240ms ease, background 240ms ease, transform 240ms ease;
}
.studio-dashboard-portfolio-row summary {
    list-style: none;
}
.studio-dashboard-portfolio-row summary::-webkit-details-marker {
    display: none;
}
.studio-dashboard-portfolio-row-summary {
    display: grid;
    grid-template-columns: minmax(240px, 2.1fr) minmax(140px, 1fr) minmax(170px, 1fr) 28px;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
}
.studio-dashboard-portfolio-row-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.studio-dashboard-portfolio-row-main strong {
    color: var(--text);
    font-size: 1rem;
}
.studio-dashboard-portfolio-row-main small {
    color: var(--muted);
    font-size: 0.84rem;
}
.studio-dashboard-portfolio-row-cell {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.studio-dashboard-portfolio-row-cell small {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.studio-dashboard-portfolio-row-cell strong {
    color: var(--text);
    font-size: 0.95rem;
}
.studio-dashboard-portfolio-row-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: transform 180ms ease, color 180ms ease;
}
.studio-dashboard-portfolio-row[open] .studio-dashboard-portfolio-row-chevron {
    transform: rotate(180deg);
    color: var(--text);
}
.studio-dashboard-portfolio-row[open] {
    border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
    background: color-mix(in srgb, var(--surface) 88%, var(--accent) 4%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
.theme-dark .studio-dashboard-portfolio-row[open] {
    background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.3);
}
.studio-dashboard-portfolio-row[open] .studio-dashboard-portfolio-row-summary {
    background: color-mix(in srgb, var(--surface-soft) 82%, var(--accent) 8%);
}
.studio-dashboard-portfolio-row:hover {
    border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
    background: color-mix(in srgb, var(--surface) 92%, var(--accent) 3%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.theme-dark .studio-dashboard-portfolio-row:hover {
    background: color-mix(in srgb, var(--surface) 95%, var(--accent) 6%);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.2);
}
.studio-dashboard-portfolio-row:hover .studio-dashboard-portfolio-row-summary {
    background: color-mix(in srgb, var(--surface-soft) 84%, var(--accent) 5%);
}
.studio-dashboard-portfolio-row-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 220ms ease;
}
.studio-dashboard-portfolio-row[open] .studio-dashboard-portfolio-row-panel {
    grid-template-rows: 1fr;
}
.studio-dashboard-portfolio-row-panel-inner {
    min-height: 0;
    overflow: hidden;
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
    border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}
.studio-dashboard-portfolio-row-panel-head {
    padding-top: 16px;
}
.studio-dashboard-tracking-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 90%, var(--surface));
    color: var(--text);
}
.studio-dashboard-tracking-status.is-positive {
    color: #166534;
    background: color-mix(in srgb, #22c55e 14%, var(--surface));
    border-color: color-mix(in srgb, #22c55e 30%, transparent);
}
.theme-dark .studio-dashboard-tracking-status.is-positive {
    color: #dcfce7;
}
.studio-dashboard-tracking-status.is-negative {
    color: #b91c1c;
    background: color-mix(in srgb, #ef4444 14%, var(--surface));
    border-color: color-mix(in srgb, #ef4444 30%, transparent);
}
.theme-dark .studio-dashboard-tracking-status.is-negative {
    color: #fca5a5;
}
.studio-dashboard-tracking-status.is-neutral {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    border-color: color-mix(in srgb, var(--accent) 24%, transparent);
}
.studio-dashboard-tracking-progress-block {
    display: grid;
    gap: 10px;
}
.studio-dashboard-tracking-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--muted);
}
.studio-dashboard-tracking-progress-head strong {
    color: var(--text);
    font-size: 0.86rem;
}
.studio-dashboard-tracking-progress {
    position: relative;
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 92%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}
.studio-dashboard-tracking-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: color-mix(in srgb, var(--accent) 72%, #94a3b8);
}
.studio-dashboard-tracking-progress-fill.is-positive {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}
.studio-dashboard-tracking-progress-fill.is-negative {
    background: linear-gradient(90deg, #f97316, #dc2626);
}
.studio-dashboard-tracking-progress-fill.is-neutral {
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 65%, #94a3b8), color-mix(in srgb, var(--accent) 85%, #64748b));
}
.studio-dashboard-tracking-details {
    border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    padding-top: 14px;
}
.studio-dashboard-tracking-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--text);
}
.studio-dashboard-tracking-details summary::-webkit-details-marker {
    display: none;
}
.studio-dashboard-tracking-details-body {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}
.studio-dashboard-tracking-meta {
    margin-top: 0;
}
.studio-dashboard-tracking-meta--detail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.studio-dashboard-tracking-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 90%, var(--surface));
}
.studio-dashboard-tracking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}
.studio-dashboard-tracking-table th,
.studio-dashboard-tracking-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 66%, transparent);
    font-size: 0.82rem;
}
.studio-dashboard-tracking-table th {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.studio-dashboard-tracking-table tbody tr:last-child td {
    border-bottom: 0;
}
@media (max-width: 900px) {
    .studio-dashboard-tracking-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .studio-dashboard-watchlist-row-summary,
    .studio-dashboard-tracking-row-summary,
    .studio-dashboard-portfolio-row-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .studio-dashboard-tracking-progress-head,
    .studio-dashboard-tracking-details summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .studio-dashboard-tracking-meta--detail {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .studio-dashboard-tracking-summary {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-watchlist-row-summary .studio-dashboard-watchlist-row-cell {
        display: none;
    }
}


/* Responsive hardening: conservative, desktop-safe overrides */
img,
picture,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

.card,
.table-card,
.market-card,
.feature-stage,
.ranking-panel,
.studio-dashboard-panel,
.studio-dashboard-watchlist-asset-card,
.studio-dashboard-watchlist-portfolio-card,
.studio-dashboard-watchlist-create-form,
.studio-dashboard-watchlist-portfolio-pick,
.studio-dashboard-analyst-card,
.studio-dashboard-analyst-slide,
.studio-dashboard-analyst-xray,
.studio-dashboard-analyst-cta-bar {
    min-width: 0;
}

.topbar,
.topbar-actions,
.site-nav,
.footer-grid,
.studio-dashboard-topbar,
.studio-dashboard-topbar-left,
.studio-dashboard-topbar-actions,
.studio-dashboard-pagebar,
.studio-dashboard-panel-head,
.studio-dashboard-watchlist-toolbar,
.studio-dashboard-watchlist-asset-head,
.studio-dashboard-watchlist-asset-actions,
.studio-dashboard-watchlist-result,
.studio-dashboard-watchlist-portfolio-line,
.studio-dashboard-grid,
.studio-dashboard-summary-grid,
.studio-dashboard-analyst-spotlight,
.studio-dashboard-analyst-spotlight-main,
.studio-dashboard-analyst-spotlight-head,
.studio-dashboard-analyst-spotlight-actions,
.studio-dashboard-analyst-xray-head,
.studio-dashboard-analyst-cta-bar {
    min-width: 0;
}

.searchbar,
.searchbar input,
.studio-dashboard-search,
.studio-dashboard-search input,
.studio-dashboard-settings-field input,
.studio-dashboard-settings-field select,
.studio-dashboard-settings-field textarea,
.auth-field input,
.auth-field select,
.auth-field textarea {
    min-width: 0;
}

.ranking-name,
.ranking-content p,
.comment-item p,
.studio-dashboard-pagebar h1,
.studio-dashboard-watchlist-result strong,
.studio-dashboard-watchlist-result p,
.studio-dashboard-watchlist-asset-head strong,
.studio-dashboard-watchlist-asset-head p,
.studio-dashboard-watchlist-portfolio-line span,
.studio-dashboard-analyst-spotlight-copy p,
.studio-dashboard-analyst-xray-copy p,
.studio-dashboard-analyst-news-item strong,
.studio-dashboard-analyst-report strong {
    overflow-wrap: anywhere;
}

.table-card,
.studio-dashboard-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1199px) {
    .page-shell {
        width: min(calc(100% - 24px), var(--max));
    }

    .topbar {
        flex-wrap: wrap;
        align-items: center;
    }

    .brand {
        min-width: 0;
        flex: 0 1 auto;
    }

    .searchbar {
        min-width: 0;
        width: 100%;
        flex: 1 1 100%;
    }

    .topbar-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .studio-dashboard-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .studio-dashboard-content,
    .studio-dashboard-topbar {
        padding-inline: 20px;
    }

    .studio-dashboard-pagebar {
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .site-header {
        padding-top: 12px;
    }

    .topbar {
        gap: 12px;
    }

    .topbar-actions {
        gap: 8px;
    }

    .topbar-user-chip {
        max-width: 100%;
    }

    .topbar-user-chip span {
        min-width: 0;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-nav {
        padding-top: 10px;
        padding-bottom: 0;
    }

    .studio-dashboard-shell {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-sidebar {
        position: relative;
        top: auto;
        height: auto;
        gap: 14px;
        padding: 14px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .studio-dashboard-nav {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .studio-dashboard-sidebar-footer {
        display: none;
    }

    .studio-dashboard-topbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px;
    }

    .studio-dashboard-market-strip-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .studio-dashboard-topbar-left {
        width: 100%;
        min-width: 0;
    }

    .studio-dashboard-search {
        width: 100%;
        min-width: 0;
    }

    .studio-dashboard-topbar-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .studio-dashboard-content {
        padding: 16px;
    }

    .studio-dashboard-pagebar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .studio-dashboard-pagebar h1 {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }

    .studio-dashboard-panel {
        padding: 18px;
    }

    .studio-dashboard-grid.is-onboarding,
    .studio-dashboard-summary-grid,
    .studio-dashboard-analyst-overview-grid,
    .studio-dashboard-analyst-performance-grid,
    .studio-dashboard-analyst-setup-grid,
    .studio-dashboard-analyst-philosophy-card,
    .studio-dashboard-analyst-xray-head,
    .studio-dashboard-analyst-cta-bar {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-settings-tabs,
    .studio-dashboard-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .studio-dashboard-settings-tab,
    .studio-dashboard-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .studio-dashboard-table {
        min-width: 720px;
    }
}

@media (max-width: 767px) {
    .page-shell {
        width: min(calc(100% - 16px), var(--max));
    }

    .site-header {
        padding-inline: 0;
    }

    .topbar {
        align-items: stretch;
    }

    .brand {
        min-width: 0;
    }

    .brand strong {
        font-size: 0.96rem;
    }

    .brand small {
        font-size: 0.76rem;
    }

    .searchbar {
        min-height: 46px;
        padding-inline: 12px;
    }

    .topbar-actions {
        justify-content: space-between;
        align-items: center;
    }

    .topbar-actions .button,
    .topbar-actions .theme-toggle {
        min-height: 42px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-brand-row,
    .footer-bottom,
    .auth-header,
    .auth-footer {
        gap: 12px;
    }

    .auth-card,
    .auth-card-register,
    .auth-status-card {
        padding: 20px;
    }

    .chart-card-toolbar,
    .carousel-controls,
    .carousel-nav,
    .feature-stage-head,
    .ranking-head,
    .profile-card-cta-row,
    .app-dashboard-modal-actions,
    .studio-dashboard-watchlist-toolbar,
    .studio-dashboard-watchlist-asset-head,
    .studio-dashboard-watchlist-asset-actions,
    .studio-dashboard-watchlist-result,
    .studio-dashboard-watchlist-portfolio-line,
    .studio-dashboard-panel-head,
    .studio-dashboard-topbar-actions,
    .studio-dashboard-analyst-spotlight-head,
    .studio-dashboard-analyst-spotlight-actions,
    .studio-dashboard-analyst-cta-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .studio-dashboard-watchlist-pill,
    .studio-dashboard-watchlist-menu-wrap {
        align-self: flex-start;
    }

    .studio-dashboard-watchlist-result-meta {
        text-align: left;
        width: 100%;
    }

    .studio-dashboard-watchlist-menu {
        left: 0;
        right: auto;
        min-width: min(260px, calc(100vw - 48px));
    }

    .studio-dashboard-watchlist-results {
        left: 0;
        right: 0;
        max-height: min(55vh, 420px);
        overflow-y: auto;
    }

    .studio-dashboard-watchlist-asset-meta,
    .studio-dashboard-watchlist-extended-grid,
    .metric-grid,
    .card-grid,
    .section-grid,
    .insight-grid,
    .target-list,
    .studio-dashboard-analyst-active-grid,
    .studio-dashboard-analyst-streak-grid,
    .studio-dashboard-analyst-vitals-grid,
    .studio-dashboard-analyst-sources-list {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-analyst-heatmap {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .app-dashboard-modal-dialog {
        width: min(100%, calc(100vw - 24px));
        padding: 22px;
    }

    .app-dashboard-modal-actions .button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 479px) {
    .page-shell {
        width: min(calc(100% - 12px), var(--max));
    }

    .card,
    .table-card,
    .feature-stage,
    .ranking-panel,
    .market-card,
    .studio-dashboard-panel,
    .studio-dashboard-watchlist-asset-card,
    .studio-dashboard-watchlist-portfolio-card,
    .studio-dashboard-watchlist-create-form,
    .studio-dashboard-watchlist-portfolio-pick,
    .auth-card,
    .auth-card-register,
    .auth-status-card {
        padding: 16px;
    }

    .site-nav a,
    .market-tabs a,
    .button,
    .studio-dashboard-settings-tab,
    .studio-dashboard-tab {
        padding-inline: 12px;
    }

    .topbar-actions {
        gap: 6px;
    }

    .topbar-actions .button-ghost,
    .topbar-actions .button-primary {
        flex: 1 1 auto;
    }

    .theme-toggle,
    .studio-dashboard-action-button,
    .studio-dashboard-menu-button,
    .studio-dashboard-profile-trigger,
    .studio-dashboard-watchlist-menu-trigger {
        min-width: 38px;
        min-height: 38px;
    }

    .studio-dashboard-topbar,
    .studio-dashboard-content,
    .studio-dashboard-sidebar {
        padding-inline: 12px;
    }

    .studio-dashboard-market-strip {
        padding-inline: 12px;
    }

    .studio-dashboard-market-strip-track {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-market-tile {
        grid-template-columns: minmax(0, 1fr) 96px;
    }

    .studio-dashboard-market-sparkline {
        width: 96px;
    }

    .studio-dashboard-pagebar h1,
    .auth-card-head h1,
    .feature-stage h1 {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }

    .studio-dashboard-watchlist-menu,
    .studio-dashboard-profile-menu {
        width: min(100%, calc(100vw - 24px));
        min-width: 0;
    }

    .studio-dashboard-watchlist-portfolio-item,
    .studio-dashboard-watchlist-metric,
    .studio-dashboard-watchlist-extended-grid div {
        padding: 10px 12px;
    }
}

@media (min-width: 360px) and (max-width: 399px) {
    .brand-mark,
    .studio-dashboard-brandmark-icon,
    .studio-dashboard-avatar {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .searchbar,
    .studio-dashboard-search {
        min-height: 44px;
    }
}

body.page-responsive-lab .site-header,
body.page-responsive-lab .site-footer {
    display: none;
}

body.page-responsive-lab main {
    padding-block: 24px 40px;
}

.responsive-lab-shell {
    display: grid;
    gap: 24px;
}

.responsive-lab-hero,
.responsive-lab-view {
    display: grid;
    gap: 18px;
}

.responsive-lab-hero {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 14%, transparent), transparent 28%),
        var(--surface);
}

.responsive-lab-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.responsive-lab-hero p,
.responsive-lab-view-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.responsive-lab-preset-row,
.responsive-lab-view-head,
.responsive-lab-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.responsive-lab-preset-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-soft) 76%, transparent);
    color: var(--muted);
    font-size: 0.88rem;
}

.responsive-lab-preset-chip strong {
    color: var(--text);
}

.responsive-lab-alert {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.responsive-lab-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.responsive-lab-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft));
}

.responsive-lab-card-head strong,
.responsive-lab-view-head h2 {
    margin: 0;
}

.responsive-lab-card-head span {
    color: var(--muted);
    font-size: 0.85rem;
}

.responsive-lab-stage {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 70%, transparent), transparent),
        #e8edf5;
    padding: 8px;
}

.responsive-lab-frame-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.responsive-lab-frame {
    display: block;
    margin: 0 auto;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

@media (max-width: 767px) {
    .leaderboard {
        min-width: 0;
    }

    .leaderboard thead {
        display: none;
    }

    .leaderboard,
    .leaderboard tbody,
    .leaderboard tr,
    .leaderboard td {
        display: block;
        width: 100%;
    }

    .leaderboard tr {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .leaderboard tr:first-child {
        padding-top: 0;
    }

    .leaderboard tr:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .leaderboard td {
        display: grid;
        gap: 6px;
        padding: 0;
        border: 0;
    }

    .leaderboard td + td {
        margin-top: 12px;
    }

    .leaderboard td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .responsive-lab-grid {
        grid-template-columns: 1fr;
    }
}

.site-header-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.site-header-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.site-header-drawer {
    display: grid;
    gap: 12px;
}

.site-header-drawer-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-header-drawer-top .searchbar {
    flex: 1 1 auto;
}

.site-header-theme-toggle {
    flex: 0 0 auto;
}

.site-header-logout {
    order: 99;
}

@media (max-width: 767px) {
    .site-header {
        position: relative;
    }

    .site-header-menu-toggle {
        display: inline-flex;
        flex-direction: column;
        margin-left: auto;
    }

    .site-header-drawer {
        display: none;
        margin-top: 12px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
        box-shadow: var(--shadow);
    }

    .site-header.is-mobile-open .site-header-drawer {
        display: grid;
    }

    .site-header.is-mobile-open .site-header-menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.is-mobile-open .site-header-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-mobile-open .site-header-menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-header-drawer-top,
    .topbar-actions,
    .site-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header-drawer-top {
        gap: 12px;
    }

    .topbar {
        align-items: center;
    }

    .topbar-actions {
        gap: 10px;
    }

    .topbar-actions .button,
    .topbar-actions .topbar-user-chip,
    .topbar-actions .theme-toggle,
    .searchbar {
        width: 100%;
    }

    .topbar-actions .button,
    .topbar-actions .theme-toggle,
    .topbar-user-chip {
        min-height: 42px;
    }

    .topbar-user-chip {
        justify-content: flex-start;
        padding: 8px 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .site-header-theme-toggle {
        display: inline-flex;
        justify-content: center;
    }

    .site-nav {
        overflow: visible;
        padding: 0;
        gap: 10px;
    }

    .site-nav a {
        display: inline-flex;
    }

    .site-nav a {
        width: 100%;
        justify-content: center;
        padding-block: 11px;
        background: color-mix(in srgb, var(--surface-soft) 74%, transparent);
        border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
        color: var(--text);
    }
}


@media (min-width: 768px) {
    .site-header {
        display: grid;
        grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 14px;
    }

    .site-header > .topbar,
    .site-header > .site-header-drawer,
    .site-header > .site-header-drawer > .site-header-drawer-top {
        display: contents !important;
    }

    .brand {
        grid-column: 1;
    }

    .searchbar {
        grid-column: 2;
    }

    .topbar-actions {
        grid-column: 3;
    }

    .site-nav {
        grid-column: 1 / -1;
    }
}



@media (max-width: 399px) {
    .feature-stage {
        padding: 14px;
    }

    .feature-stage h1 {
        font-size: clamp(1.35rem, 7vw, 1.7rem);
        line-height: 1.08;
    }

    .hero-copy {
        font-size: 0.82rem;
    }

    .carousel-track {
        min-height: 720px;
    }

    .carousel-summary,
    .carousel-visual {
        padding: 14px;
        border-radius: 18px;
    }

    .carousel-title-row,
    .visual-topline {
        align-items: flex-start;
        gap: 10px;
    }

    .carousel-title-row h2 {
        font-size: 0.95rem;
        line-height: 1.22;
        margin-bottom: 4px;
    }

    .carousel-title-row .eyebrow,
    .visual-topline .status,
    .analyst-meta,
    .analyst-meta small {
        font-size: 0.7rem;
    }

    .asset-badge {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 12px;
        font-size: 0.78rem;
    }

    .probability-row {
        gap: 6px;
        margin-bottom: 12px;
    }

    .probability-pill {
        gap: 6px;
        padding: 6px 8px;
        font-size: 0.68rem;
    }

    .target-list {
        margin: 12px 0;
    }

    .target-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
    }

    .target-list span {
        font-size: 0.72rem;
    }

    .target-list strong {
        width: 100%;
        font-size: 0.83rem;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-align: left;
    }

    .position-badge {
        min-width: 0;
        padding: 6px 10px;
        font-size: 0.66rem;
        letter-spacing: 0.09em;
    }

    .comment-marquee {
        height: 96px;
        margin-top: 10px;
    }

    .comment-item strong,
    .comment-item p {
        font-size: 0.75rem;
    }

    .chart-card,
    .chart-axis {
        display: none;
    }

    .insight-grid {
        gap: 8px;
        margin-top: 10px;
    }

    .insight-card {
        min-width: calc(50% - 4px);
        padding: 8px 10px;
        min-height: 52px;
    }

    .insight-label {
        font-size: 0.68rem;
    }

    .insight-value {
        font-size: 0.83rem;
    }

    .highlight-list {
        gap: 6px;
        margin-top: 10px;
    }

    .highlight-chip {
        padding: 6px 10px;
        font-size: 0.7rem;
        white-space: normal;
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .site-header {
        grid-template-columns: max-content minmax(220px, 1fr) minmax(180px, auto);
        row-gap: 10px;
    }

    .searchbar {
        min-width: 0;
    }

    .topbar-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        max-width: 270px;
    }

    .topbar-actions .button-ghost[href="/winrate/?page=dashboard"] {
        order: 1;
    }

    .site-header-logout {
        order: 2;
    }

    .topbar-user-chip {
        order: 3;
        width: 100%;
        justify-content: flex-end;
    }

    .site-header-theme-toggle {
        order: 4;
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .topbar {
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .brand {
        min-width: 0;
        flex: 0 1 auto;
    }

    .brand > span:last-child {
        display: none;
    }

    .site-header-menu-toggle {
        margin-left: 0;
        flex: 0 0 auto;
    }

    .site-header-logout {
        order: 999;
    }
}

@media (max-width: 399px) {
    .community-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .community-card {
        min-width: 0;
        padding: 16px;
        border-radius: 20px;
    }

    .community-card-head,
    .pulse-copy-row,
    .pulse-label-row,
    .consensus-head,
    .consensus-range-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .community-badge,
    .consensus-tag {
        white-space: normal;
    }

    .consensus-price {
        font-size: 1.15rem;
    }
}

@media (max-width: 767px) {
    .topbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
}


.auth-card-wrap,
.auth-status-card,
.auth-status-mail,
.auth-inline-note-status {
    min-width: 0;
}

.auth-status-card {
    overflow-x: clip;
}

.auth-status-icon {
    overflow: hidden;
}

.auth-status-icon svg {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.auth-status-mail strong,
.auth-status-mail span,
.auth-inline-note-status span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 767px) {
    .page-shell-auth {
        grid-template-rows: auto auto auto;
    }

    .auth-header {
        padding: 12px 0 6px;
        gap: 8px;
    }

    .auth-main {
        place-items: start center;
        padding: 8px 0 24px;
    }

    .auth-card-wrap {
        align-items: start;
    }
}

.studio-dashboard-notifications,
.studio-dashboard-briefing {
    position: relative;
}

.studio-dashboard-notifications-trigger,
.studio-dashboard-briefing-trigger {
    position: relative;
}

.studio-dashboard-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px var(--surface);
}

.studio-dashboard-notification-badge.is-briefing {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.studio-dashboard-notification-badge[hidden] {
    display: none !important;
}

.studio-dashboard-notifications-menu[hidden],
.studio-dashboard-briefing-menu[hidden],
.studio-dashboard-notification-panel[hidden],
.studio-dashboard-notification-panel-backdrop[hidden] {
    display: none !important;
}

.studio-dashboard-notifications-menu,
.studio-dashboard-briefing-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    max-height: min(70vh, 680px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    z-index: 60;
    display: grid;
    gap: 12px;
}

.studio-dashboard-notifications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.studio-dashboard-ticker-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    min-width: 0;
    vertical-align: middle;
}

.studio-dashboard-ticker-logo {
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 1.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 78%, transparent);
}

.studio-dashboard-ticker-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.studio-dashboard-ticker-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.44em;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-transform: uppercase;
}

.studio-dashboard-ticker-text {
    min-width: 0;
}

.studio-market-coverage-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid #86efac;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.62rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.studio-market-coverage-badge i {
    font-size: 0.58rem;
    line-height: 1;
}

body.theme-dark .studio-market-coverage-badge,
.theme-dark .studio-market-coverage-badge {
    border-color: rgba(74, 222, 128, 0.46);
    background: rgba(22, 163, 74, 0.18);
    color: #86efac;
}

.studio-dashboard-notifications-close {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.studio-dashboard-notifications-close i {
    font-size: 0.9rem;
    line-height: 1;
    pointer-events: none;
}

.studio-dashboard-notifications-close:hover,
.studio-dashboard-notifications-close:focus-visible {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    transform: scale(1.04);
}

.theme-dark .studio-dashboard-notifications-close {
    color: #f87171;
}

.theme-dark .studio-dashboard-notifications-close:hover,
.theme-dark .studio-dashboard-notifications-close:focus-visible {
    background: rgba(248, 113, 113, 0.14);
    color: #fca5a5;
}

.studio-dashboard-notifications-head strong {
    display: block;
    font-size: 0.96rem;
}

.studio-dashboard-notifications-head span,
.studio-dashboard-notification-item span,
.studio-dashboard-notification-subtitle,
.studio-dashboard-notification-summary,
.studio-dashboard-notification-detail-copy,
.studio-dashboard-notifications-empty,
.studio-dashboard-notification-footer {
    color: var(--muted);
}

.studio-dashboard-notifications-list {
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.studio-dashboard-briefing-list {
    display: grid;
    gap: 8px;
}

.studio-dashboard-briefing-item {
    display: grid;
    gap: 6px;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
    text-decoration: none;
    color: inherit;
}

.studio-dashboard-briefing-item:hover {
    border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
    background: color-mix(in srgb, var(--surface-soft) 60%, var(--brand-soft));
}

.studio-dashboard-briefing-item-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.studio-dashboard-briefing-copy,
.studio-dashboard-briefing-item small {
    color: var(--muted);
}

.studio-dashboard-briefing-copy {
    font-size: 0.88rem;
}

.studio-dashboard-notification-heat {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 86%, transparent);
    overflow: hidden;
}

.studio-dashboard-notification-heatbar {
    display: block;
    width: var(--heat-width, 0%);
    height: 100%;
    border-radius: inherit;
    background: hsl(var(--heat-hue, 0) 88% 48%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.studio-dashboard-notification-distances {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.studio-dashboard-notification-distances span {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
}

.studio-dashboard-notification-item {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
    text-align: left;
    cursor: pointer;
}

.studio-dashboard-notification-item.is-active {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.studio-dashboard-notification-item strong {
    font-size: 0.9rem;
    color: var(--text);
}

.studio-dashboard-notification-item-topline,
.studio-dashboard-notification-meta,
.studio-dashboard-notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.studio-dashboard-notification-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    flex-wrap: nowrap;
}

.studio-dashboard-notification-direction,
.studio-dashboard-notification-confidence,
.studio-dashboard-notification-meta span {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
    font-size: 0.72rem;
    font-weight: 700;
}

.studio-dashboard-notification-direction.is-bullish {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
}

.studio-dashboard-notification-direction.is-bearish {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
}

body.theme-dark .studio-dashboard-notification-direction.is-bearish {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.26);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.studio-dashboard-timing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 90%, var(--surface));
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.studio-dashboard-timing-badge strong,
.studio-dashboard-timing-badge small {
    line-height: 1;
}

.studio-dashboard-timing-badge small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.studio-dashboard-timing-badge.is-early {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.24);
}

.studio-dashboard-timing-badge.is-early small {
    color: #15803d;
}

.studio-dashboard-timing-badge.is-on-time {
    color: #92400e;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.24);
}

.studio-dashboard-timing-badge.is-on-time small {
    color: #b45309;
}

.studio-dashboard-timing-badge.is-late {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.24);
}

.studio-dashboard-timing-badge.is-late small {
    color: #dc2626;
}

.studio-dashboard-timing-badge.is-unknown {
    color: var(--muted);
}

.studio-dashboard-timing-badge.is-alerts {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.24);
}

.studio-dashboard-timing-badge.is-watchlist {
    color: #92400e;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.24);
}

.studio-dashboard-notification-detail {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
}

.studio-dashboard-notification-detail h3 {
    margin: 0;
}

.studio-dashboard-notification-subtitle,
.studio-dashboard-notification-summary,
.studio-dashboard-notification-detail-copy {
    margin: 0;
    line-height: 1.5;
}

.studio-dashboard-trade-plan-card {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
}

.studio-dashboard-trade-plan-card.is-bullish {
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.studio-dashboard-trade-plan-card.is-bearish {
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.studio-dashboard-elliott-card {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
}

.studio-dashboard-elliott-card.is-bullish {
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.studio-dashboard-elliott-card.is-bearish {
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.studio-dashboard-tracking-plan-card {
    margin-top: 0;
}

.studio-dashboard-trade-plan-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.studio-dashboard-trade-plan-head strong {
    display: block;
    margin-bottom: 4px;
}

.studio-dashboard-trade-plan-head p,
.studio-dashboard-trade-plan-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.studio-dashboard-trade-plan-risk {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.studio-dashboard-trade-plan-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.studio-dashboard-elliott-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.studio-dashboard-trade-plan-metric {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
}

.studio-dashboard-trade-plan-metric span {
    color: var(--muted);
    font-size: 0.74rem;
}

.studio-dashboard-trade-plan-metric strong {
    color: var(--text);
    font-size: 0.96rem;
}

.studio-dashboard-trade-plan-change {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.studio-dashboard-trade-plan-change.is-entry {
    color: var(--muted);
}

.studio-dashboard-trade-plan-change.is-gain {
    color: #16a34a;
}

.studio-dashboard-trade-plan-change.is-loss {
    color: #dc2626;
}

.studio-dashboard-trade-plan-metric.is-entry strong {
    color: #2563eb;
}

.studio-dashboard-trade-plan-metric.is-stop strong {
    color: #dc2626;
}

.studio-dashboard-trade-plan-metric.is-target strong {
    color: #16a34a;
}

@media (max-width: 1100px) {
    .studio-dashboard-trade-plan-grid,
    .studio-dashboard-elliott-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .studio-dashboard-trade-plan-head {
        flex-direction: column;
    }

    .studio-dashboard-trade-plan-grid,
    .studio-dashboard-elliott-grid {
        grid-template-columns: 1fr;
    }
}

.studio-dashboard-notifications-empty {
    margin: 0;
    padding: 12px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
}

@media (max-width: 767px) {
    .studio-dashboard-notifications-menu,
    .studio-dashboard-briefing-menu {
        width: min(100vw - 24px, 360px);
        right: 0;
        max-height: calc(100vh - 96px);
    }

    .studio-dashboard-notification-item-topline,
    .studio-dashboard-notification-meta,
    .studio-dashboard-notification-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


.studio-dashboard-signals-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.9fr);
    grid-template-areas: 'detail list';
    gap: 20px;
    align-items: start;
}

.studio-dashboard-signals-drawer-trigger,
.studio-dashboard-signals-drawer-close,
.studio-dashboard-signals-drawer-backdrop {
    display: none;
}

.studio-dashboard-pagebar .studio-dashboard-signals-drawer-trigger {
    margin-left: auto;
    align-self: flex-end;
}

.studio-dashboard-signals-detail,
.studio-dashboard-signals-list {
    display: grid;
    gap: 14px;
}

.studio-dashboard-signals-detail {
    grid-area: detail;
    min-width: 0;
}

.studio-dashboard-signals-list {
    grid-area: list;
    min-width: 0;
}

.studio-dashboard-signals-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.studio-dashboard-signals-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.studio-dashboard-signals-title-row h2 {
    margin: 0;
}

.studio-dashboard-signal-badges {
    display: grid;
    grid-template-columns: minmax(190px, 1.15fr) minmax(150px, 0.95fr) minmax(130px, 0.8fr) minmax(150px, 0.95fr);
    gap: 8px;
    align-items: stretch;
    width: 100%;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-soft) 62%, transparent);
}

.studio-dashboard-trendshift-badge {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 46px;
    padding: 9px 12px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 90%, transparent);
    text-align: left;
}

.studio-dashboard-signal-badges svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
}

.studio-dashboard-signal-badges span span {
    min-width: 0;
}

.studio-dashboard-trendshift-badge strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-dashboard-trendshift-badge small {
    display: block;
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-dashboard-signal-badges .studio-dashboard-timing-badge,
.studio-dashboard-signal-badges .studio-dashboard-notification-direction,
.studio-dashboard-signal-badges .studio-dashboard-backtesting-badge {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: center;
    align-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 9px 12px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    white-space: normal;
}

.studio-dashboard-signal-badges .studio-dashboard-timing-badge span,
.studio-dashboard-signal-badges .studio-dashboard-notification-direction span,
.studio-dashboard-signal-badges .studio-dashboard-backtesting-badge span {
    display: grid;
    gap: 2px;
}

.studio-dashboard-signal-badges .studio-dashboard-notification-direction span {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
}

.studio-dashboard-signal-badges .studio-dashboard-timing-badge strong,
.studio-dashboard-signal-badges .studio-dashboard-backtesting-badge strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-dashboard-signal-badges .studio-dashboard-timing-badge small,
.studio-dashboard-signal-badges .studio-dashboard-backtesting-badge small {
    display: block;
    color: currentColor;
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.15;
    opacity: 0.74;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-dashboard-signal-badges.is-bullish .studio-dashboard-trendshift-badge,
.studio-dashboard-signal-badges .studio-dashboard-notification-direction.is-bullish,
.studio-dashboard-signal-badges .studio-dashboard-timing-badge.is-early {
    color: #166534;
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.12);
}

.studio-dashboard-signal-badges.is-bearish .studio-dashboard-trendshift-badge,
.studio-dashboard-signal-badges .studio-dashboard-notification-direction.is-bearish,
.studio-dashboard-signal-badges .studio-dashboard-timing-badge.is-late {
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.12);
}

.studio-dashboard-signal-badges .studio-dashboard-timing-badge.is-on-time {
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.14);
}

.studio-dashboard-signal-badges .studio-dashboard-timing-badge.is-unknown {
    color: #475569;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.14);
}

.studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-high,
.studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-extreme-high {
    color: #166534;
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.12);
}

.studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-low,
.studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-extreme-low {
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.12);
}

.studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-neutral {
    color: #475569;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.14);
}

.studio-dashboard-trendshift-badge.is-extreme-high {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
}

.studio-dashboard-trendshift-badge.is-high {
    color: #3f6212;
    background: rgba(132, 204, 22, 0.16);
}

.studio-dashboard-trendshift-badge.is-neutral {
    color: #475569;
    background: rgba(148, 163, 184, 0.14);
}

.studio-dashboard-trendshift-badge.is-low {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
}

.studio-dashboard-trendshift-badge.is-extreme-low {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.14);
}

body.theme-dark .studio-dashboard-notification-direction.is-bullish,
body.theme-dark .studio-dashboard-reliability-label.is-high,
body.theme-dark .studio-dashboard-reliability-label.is-extreme-high,
body.theme-dark .studio-dashboard-trendshift-badge.is-high,
body.theme-dark .studio-dashboard-trendshift-badge.is-extreme-high {
    color: #86efac;
}

body.theme-dark .studio-dashboard-reliability-label.is-low,
body.theme-dark .studio-dashboard-reliability-label.is-extreme-low {
    color: #fca5a5;
}

body.theme-dark .studio-dashboard-trendshift-badge {
    border-color: color-mix(in srgb, var(--line) 64%, rgba(255, 255, 255, 0.08));
}

body.theme-dark .studio-dashboard-trendshift-badge strong {
    color: #e8eefb;
}

body.theme-dark .studio-dashboard-trendshift-badge small {
    color: #b9c6dc;
}

body.theme-dark .studio-dashboard-trendshift-badge.is-neutral {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.2);
}

body.theme-dark .studio-dashboard-trendshift-badge.is-high {
    background: rgba(132, 204, 22, 0.2);
}

body.theme-dark .studio-dashboard-trendshift-badge.is-extreme-high {
    background: rgba(34, 197, 94, 0.18);
}

body.theme-dark .studio-dashboard-trendshift-badge.is-low {
    color: #fdba74;
    background: rgba(245, 158, 11, 0.2);
}

body.theme-dark .studio-dashboard-trendshift-badge.is-extreme-low {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.2);
}

body.theme-dark .studio-dashboard-timing-badge {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .studio-dashboard-timing-badge.is-early {
    color: #86efac;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(74, 222, 128, 0.24);
}

body.theme-dark .studio-dashboard-timing-badge.is-early small {
    color: #4ade80;
}

body.theme-dark .studio-dashboard-timing-badge.is-on-time {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.24);
}

body.theme-dark .studio-dashboard-timing-badge.is-on-time small {
    color: #f59e0b;
}

body.theme-dark .studio-dashboard-timing-badge.is-late {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(248, 113, 113, 0.24);
}

body.theme-dark .studio-dashboard-timing-badge.is-late small {
    color: #f87171;
}

body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-timing-badge small,
body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge small {
    opacity: 0.92;
}

body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.26);
}

body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge strong {
    color: #bfdbfe;
}

body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge small {
    color: #dbeafe;
}

body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-high,
body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-extreme-high {
    color: #86efac;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(74, 222, 128, 0.28);
}

body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-high strong,
body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-extreme-high strong,
body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-high small,
body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-extreme-high small {
    color: #bbf7d0;
}

body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-neutral {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.3);
}

body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-neutral strong,
body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-neutral small {
    color: #dbeafe;
}

body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-low,
body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-extreme-low {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(248, 113, 113, 0.28);
}

body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-low strong,
body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-extreme-low strong,
body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-low small,
body.theme-dark .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge.is-extreme-low small {
    color: #fecaca;
}

.studio-dashboard-signals-headline h2 {
    margin: 6px 0 4px;
}

.studio-dashboard-signals-headline p,
.studio-dashboard-signals-list-head span {
    margin: 0;
    color: var(--muted);
}

.studio-dashboard-signals-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.studio-dashboard-notifications-list.is-signals-view {
    max-height: none;
}

.studio-dashboard-notification-heat.is-large {
    height: 10px;
}

@media (max-width: 980px) {
    .studio-dashboard-signals-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            'detail'
            'list';
    }

    .studio-dashboard-signals-headline,
    .studio-dashboard-signals-list-head {
        flex-direction: column;
        align-items: flex-start;
    }
}


.studio-dashboard-reliability-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 95%, var(--surface-soft));
}

.studio-dashboard-reliability-copy strong {
    display: block;
    margin-bottom: 4px;
}

.studio-dashboard-reliability-copy p {
    margin: 0;
    color: var(--muted);
}

.studio-dashboard-reliability-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.studio-dashboard-reliability-bookmark-form {
    flex: 0 0 auto;
    align-self: flex-start;
}

.studio-dashboard-reliability-bookmark {
    flex: 0 0 auto;
    align-self: flex-start;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.studio-dashboard-reliability-bookmark:hover,
.studio-dashboard-reliability-bookmark:focus-visible {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
    color: var(--text);
    transform: translateX(2px);
}


.studio-dashboard-reliability-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 18px;
    align-items: center;
}

.studio-dashboard-reliability-layout > * {
    min-width: 0;
}

.studio-dashboard-reliability-gauge {
    position: relative;
    width: 240px;
    height: 132px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    background: radial-gradient(circle at 50% 68%, color-mix(in srgb, hsl(var(--gauge-hue, 0) 88% 56%) 10%, transparent) 0%, transparent 62%);
    border-radius: 999px 999px 18px 18px;
}

.studio-dashboard-reliability-arc {
    position: absolute;
    inset: 0;
    border-radius: 240px 240px 0 0;
    background:
        radial-gradient(circle at 50% 88%, rgba(255, 255, 255, 0.06) 0 8px, transparent 9px),
        conic-gradient(from 180deg, #7f1d1d 0deg, #dc2626 35deg, #f59e0b 78deg, #84cc16 128deg, #22c55e 180deg);
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 63px, #000 64px);
            mask: radial-gradient(circle at 50% 100%, transparent 0 63px, #000 64px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 22px color-mix(in srgb, hsl(var(--gauge-hue, 0) 88% 56%) 16%, transparent);
}

.studio-dashboard-reliability-arc::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    border: 3px solid rgba(255, 255, 255, 0.08);
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 53px, #000 54px);
            mask: radial-gradient(circle at 50% 100%, transparent 0 53px, #000 54px);
    opacity: 0.58;
}

.studio-dashboard-reliability-needle {
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 3px;
    height: 89px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.22));
    transform-origin: 50% calc(100% - 6px);
    transform: translateX(-50%) rotate(var(--gauge-angle, 0deg));
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.38),
        0 0 28px color-mix(in srgb, hsl(var(--gauge-hue, 0) 90% 64%) 24%, transparent);
    z-index: 2;
    transition: transform 1.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.studio-dashboard-reliability-center {
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid color-mix(in srgb, hsl(var(--gauge-hue, 0) 88% 58%) 86%, transparent);
    box-shadow:
        0 0 18px color-mix(in srgb, hsl(var(--gauge-hue, 0) 96% 64%) 44%, transparent),
        0 0 0 6px color-mix(in srgb, hsl(var(--gauge-hue, 0) 90% 54%) 8%, transparent);
    transform: translateX(-50%);
    z-index: 3;
}

.studio-dashboard-reliability-value {
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    min-width: 64px;
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: #f8fbff;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.24),
        0 0 18px color-mix(in srgb, hsl(var(--gauge-hue, 0) 84% 60%) 18%, transparent);
    z-index: 4;
}

body:not(.theme-dark) .studio-dashboard-reliability-needle {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.46));
    box-shadow:
        0 0 10px rgba(15, 23, 42, 0.14),
        0 0 18px color-mix(in srgb, hsl(var(--gauge-hue, 0) 70% 54%) 12%, transparent);
}

body:not(.theme-dark) .studio-dashboard-reliability-value {
    color: #0f172a;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.45),
        0 0 10px color-mix(in srgb, hsl(var(--gauge-hue, 0) 70% 54%) 10%, transparent);
}

.studio-dashboard-reliability-stats {
    display: grid;
    gap: 12px;
}

.studio-dashboard-reliability-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    width: fit-content;
}

.studio-dashboard-reliability-label.is-extreme-low {
    color: #7f1d1d;
    background: rgba(220, 38, 38, 0.14);
}

.studio-dashboard-reliability-label.is-low {
    color: #b45309;
    background: rgba(245, 158, 11, 0.16);
}

.studio-dashboard-reliability-label.is-neutral {
    color: #475569;
    background: rgba(148, 163, 184, 0.16);
}

.studio-dashboard-reliability-label.is-high {
    color: #3f6212;
    background: rgba(132, 204, 22, 0.18);
}

.studio-dashboard-reliability-label.is-extreme-high {
    color: #166534;
    background: rgba(34, 197, 94, 0.16);
}

body.theme-dark .studio-dashboard-reliability-label.is-neutral {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.22);
}

body.theme-dark .studio-dashboard-reliability-label.is-high {
    color: #d9f99d;
    background: rgba(132, 204, 22, 0.24);
}

body.theme-dark .studio-dashboard-reliability-label.is-extreme-high {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.22);
}

body.theme-dark .studio-dashboard-reliability-label.is-low {
    color: #fdba74;
    background: rgba(245, 158, 11, 0.22);
}

body.theme-dark .studio-dashboard-reliability-label.is-extreme-low {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.22);
}

.studio-dashboard-reliability-history {
    display: grid;
    gap: 10px;
}

.studio-dashboard-reliability-history span {
    color: var(--muted);
}

.studio-dashboard-reliability-history strong {
    color: var(--text);
}

.studio-dashboard-backtest-card {
    display: grid;
    gap: 14px;
    align-self: stretch;
    min-width: 0;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 88%, transparent), color-mix(in srgb, var(--surface) 94%, transparent));
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.studio-dashboard-backtest-copy strong {
    display: block;
    margin-bottom: 4px;
}

.studio-dashboard-backtest-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.studio-dashboard-backtest-meter {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--line) 70%, transparent);
}

.studio-dashboard-backtest-meterbar {
    display: block;
    width: var(--backtest-width, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f97316 0%, #facc15 48%, #22c55e 100%);
}

.studio-dashboard-backtest-meterbar.is-extreme-low {
    background: linear-gradient(90deg, #991b1b 0%, #dc2626 100%);
}

.studio-dashboard-backtest-meterbar.is-low {
    background: linear-gradient(90deg, #b45309 0%, #f59e0b 100%);
}

.studio-dashboard-backtest-meterbar.is-neutral {
    background: linear-gradient(90deg, #64748b 0%, #94a3b8 100%);
}

.studio-dashboard-backtest-meterbar.is-high {
    background: linear-gradient(90deg, #84cc16 0%, #22c55e 100%);
}

.studio-dashboard-backtest-meterbar.is-extreme-high {
    background: linear-gradient(90deg, #16a34a 0%, #15803d 100%);
}

.studio-dashboard-backtest-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.studio-dashboard-backtest-hero strong {
    font-size: 2rem;
    line-height: 1;
}

.studio-dashboard-backtest-grid {
    display: grid;
    gap: 10px;
}

.studio-dashboard-backtest-grid span {
    color: var(--muted);
}

.studio-dashboard-backtest-grid strong {
    color: var(--text);
}

.studio-dashboard-signal-chart {
    margin-top: 18px;
    border-radius: 22px;
}

.studio-dashboard-signal-chart .chart-card-toolbar {
    margin-bottom: 12px;
}

.studio-dashboard-signal-chart .lightweight-chart-shell {
    min-height: 220px;
}

.studio-dashboard-signal-chart .lightweight-chart-surface {
    height: 220px;
}

.lightweight-chart-fallback {
    width: 100%;
    height: 100%;
    color: #2563eb;
}

.lightweight-chart-fallback.is-bearish {
    color: #dc2626;
}

.lightweight-chart-fallback svg {
    display: block;
    width: 100%;
    height: 100%;
}

.lightweight-chart-fallback-grid {
    fill: none;
    stroke: rgba(148, 163, 184, 0.2);
    stroke-width: 1;
    stroke-dasharray: 4 10;
}

.lightweight-chart-fallback-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.studio-dashboard-signal-chart-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.studio-dashboard-signal-chart-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
}

.studio-dashboard-signal-chart-meta strong {
    color: var(--text);
}

.studio-dashboard-prediction-analysis {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
}

.studio-dashboard-prediction-analysis-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.studio-dashboard-prediction-analysis-head strong {
    display: block;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.studio-dashboard-prediction-analysis-head p {
    margin: 4px 0 0;
    color: var(--muted);
}

.studio-dashboard-prediction-analysis-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.studio-dashboard-prediction-analysis-chart {
    position: relative;
    min-height: 316px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, var(--surface-soft)), color-mix(in srgb, var(--surface-soft) 92%, var(--surface)));
    overflow: hidden;
}

.studio-dashboard-prediction-analysis-chart svg {
    display: block;
    width: 100%;
    height: 316px;
}

.studio-dashboard-prediction-analysis-grid {
    stroke: rgba(148, 163, 184, 0.1);
    stroke-width: 1;
}

.studio-dashboard-prediction-analysis-grid.is-strong {
    stroke: rgba(148, 163, 184, 0.16);
}

.studio-dashboard-prediction-analysis-axis {
    stroke: rgba(148, 163, 184, 0.5);
    stroke-width: 1.2;
}

.studio-dashboard-prediction-analysis-history {
    fill: none;
    stroke: #7cb3ff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.studio-dashboard-prediction-analysis-history-hit {
    fill: none;
    stroke: transparent;
    stroke-width: 18;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: stroke;
    cursor: crosshair;
}

.studio-dashboard-prediction-analysis-hover-line {
    stroke: rgba(226, 232, 240, 0.28);
    stroke-width: 1.1;
    stroke-dasharray: 4 6;
}

.studio-dashboard-prediction-analysis-hover-point {
    fill: #dbeafe;
    stroke: #60a5fa;
    stroke-width: 2.2;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.32));
}

.studio-dashboard-prediction-analysis-anchor {
    fill: #e8f1ff;
    stroke: #7cb3ff;
    stroke-width: 2.2;
}

.studio-dashboard-prediction-analysis-window {
    fill: rgba(124, 179, 255, 0.08);
    stroke: rgba(124, 179, 255, 0.28);
    stroke-width: 1.2;
    stroke-dasharray: 6 8;
}

.studio-dashboard-prediction-analysis-fan {
    opacity: 0.86;
}

.studio-dashboard-prediction-analysis-fan.is-risk {
    stroke: rgba(248, 113, 113, 0.88);
}

.studio-dashboard-prediction-analysis-fan.is-target-soft {
    stroke: rgba(125, 211, 252, 0.86);
}

.studio-dashboard-prediction-analysis-fan.is-target {
    stroke: rgba(34, 197, 94, 0.88);
}

.studio-dashboard-prediction-analysis-fan.is-target-strong {
    stroke: rgba(163, 230, 53, 0.88);
}

.studio-dashboard-prediction-analysis-fanline {
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.studio-dashboard-prediction-analysis-label,
.studio-dashboard-prediction-analysis-tick {
    fill: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.studio-dashboard-prediction-analysis-badge {
    font-size: 11px;
    font-weight: 700;
}

.studio-dashboard-prediction-analysis-badge.is-risk {
    fill: #fca5a5;
}

.studio-dashboard-prediction-analysis-badge.is-target-soft {
    fill: #93c5fd;
}

.studio-dashboard-prediction-analysis-badge.is-target {
    fill: #86efac;
}

.studio-dashboard-prediction-analysis-badge.is-target-strong {
    fill: #bef264;
}

.studio-dashboard-prediction-analysis-legend {
    fill: var(--text);
    font-size: 11px;
    font-weight: 600;
}

.studio-dashboard-prediction-analysis-tooltip {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 12px));
    display: grid;
    gap: 2px;
    min-width: 108px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
    pointer-events: none;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.studio-dashboard-prediction-analysis-tooltip strong {
    color: #f8fafc;
    font-size: 0.82rem;
    line-height: 1.1;
}

.studio-dashboard-prediction-analysis-tooltip span {
    color: #cbd5e1;
    font-size: 0.72rem;
    line-height: 1.1;
}


.studio-dashboard-signal-insights {
    display: grid;
    gap: 16px;
    margin-top: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 97%, var(--surface-soft));
}

.studio-dashboard-signal-insights-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.studio-dashboard-signal-insights-head strong {
    display: block;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.studio-dashboard-signal-insights-head p {
    margin: 4px 0 0;
    color: var(--muted);
}

.studio-dashboard-signal-insights-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.studio-dashboard-signal-insights-tab {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
    color: var(--muted);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.studio-dashboard-signal-insights-tab:hover,
.studio-dashboard-signal-insights-tab.is-active {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.studio-dashboard-signal-insights-panels {
    display: grid;
}

.studio-dashboard-signal-insights-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, var(--surface-soft)), color-mix(in srgb, var(--surface-soft) 92%, var(--surface)));
}

.studio-dashboard-signal-insights-panel[hidden] {
    display: none !important;
}

.studio-dashboard-signal-insights-kicker {
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.studio-dashboard-signal-insights-panel h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.studio-dashboard-signal-insights-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.studio-dashboard-elasticity-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.studio-dashboard-elasticity-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.studio-dashboard-elasticity-summary-pill strong {
    color: var(--text);
    font-size: 0.8rem;
}

.studio-dashboard-elasticity-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.studio-dashboard-elasticity-main {
    min-width: 0;
}

.studio-dashboard-elasticity-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 90%, var(--surface));
}

.studio-dashboard-sentiment-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 92%, var(--surface));
}

.studio-dashboard-sentiment-panel-head {
    display: grid;
    gap: 4px;
}

.studio-dashboard-sentiment-panel-head strong {
    font-size: 0.96rem;
    color: var(--text);
}

.studio-dashboard-sentiment-panel-head span {
    color: var(--muted);
    font-size: 0.8rem;
}

.studio-dashboard-sentiment-meter-list {
    display: grid;
    gap: 14px;
}

.studio-dashboard-sentiment-meter-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, var(--surface-soft)), color-mix(in srgb, var(--surface-soft) 92%, var(--surface)));
}

.studio-dashboard-sentiment-meter-copy {
    display: grid;
    gap: 8px;
}

.studio-dashboard-sentiment-meter-copy strong {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.2;
}

.studio-dashboard-sentiment-gauge {
    width: 190px;
    height: 104px;
    margin: 0 auto;
}

.studio-dashboard-sentiment-gauge .studio-dashboard-reliability-arc {
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 49px, #000 50px);
            mask: radial-gradient(circle at 50% 100%, transparent 0 49px, #000 50px);
}

.studio-dashboard-sentiment-gauge .studio-dashboard-reliability-arc::before {
    inset: 8px;
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 41px, #000 42px);
            mask: radial-gradient(circle at 50% 100%, transparent 0 41px, #000 42px);
}

.studio-dashboard-sentiment-gauge .studio-dashboard-reliability-needle {
    bottom: 6px;
    height: 70px;
}

.studio-dashboard-sentiment-gauge .studio-dashboard-reliability-center {
    bottom: 3px;
    width: 12px;
    height: 12px;
}

.studio-dashboard-sentiment-gauge .studio-dashboard-reliability-value {
    bottom: 30px;
    min-width: 48px;
    font-size: 1.72rem;
}

.studio-dashboard-sentiment-meter-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.studio-dashboard-sentiment-meter-meta small,
.studio-dashboard-sentiment-meter-card p {
    color: var(--muted);
    margin: 0;
}

.studio-dashboard-sentiment-meter-card p {
    font-size: 0.82rem;
}

.studio-dashboard-elasticity-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.studio-dashboard-elasticity-table th,
.studio-dashboard-elasticity-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 66%, transparent);
    vertical-align: top;
    font-size: 0.78rem;
}

.studio-dashboard-elasticity-table th {
    color: var(--muted);
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.studio-dashboard-elasticity-table th:nth-child(1),
.studio-dashboard-elasticity-table td:nth-child(1) {
    width: 14%;
}

.studio-dashboard-elasticity-table th:nth-child(2),
.studio-dashboard-elasticity-table td:nth-child(2),
.studio-dashboard-elasticity-table th:nth-child(3),
.studio-dashboard-elasticity-table td:nth-child(3) {
    width: 11%;
}

.studio-dashboard-elasticity-table th:nth-child(4),
.studio-dashboard-elasticity-table td:nth-child(4),
.studio-dashboard-elasticity-table th:nth-child(5),
.studio-dashboard-elasticity-table td:nth-child(5),
.studio-dashboard-elasticity-table th:nth-child(6),
.studio-dashboard-elasticity-table td:nth-child(6),
.studio-dashboard-elasticity-table th:nth-child(7),
.studio-dashboard-elasticity-table td:nth-child(7) {
    width: 7%;
}

.studio-dashboard-elasticity-table th:nth-child(8),
.studio-dashboard-elasticity-table td:nth-child(8) {
    width: 26%;
}

.studio-dashboard-elasticity-table tbody tr:last-child td {
    border-bottom: 0;
}

.studio-dashboard-elasticity-driver {
    display: grid;
    gap: 4px;
}

.studio-dashboard-elasticity-driver strong {
    color: var(--text);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.studio-dashboard-elasticity-driver span,
.studio-dashboard-elasticity-note {
    color: var(--muted);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.studio-dashboard-elasticity-type,
.studio-dashboard-elasticity-direction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 800;
    white-space: nowrap;
}

.studio-dashboard-elasticity-type.is-index {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.18);
}

.studio-dashboard-elasticity-type.is-currency {
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.18);
}

.studio-dashboard-elasticity-type.is-commodity {
    color: #b45309;
    background: rgba(245, 158, 11, 0.18);
}

.studio-dashboard-elasticity-type.is-rate,
.studio-dashboard-elasticity-type.is-equity {
    color: #475569;
    background: rgba(148, 163, 184, 0.18);
}

.studio-dashboard-elasticity-direction.is-positive {
    color: #15803d;
    background: rgba(34, 197, 94, 0.16);
}

.studio-dashboard-elasticity-direction.is-negative {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.16);
}

.studio-dashboard-elasticity-direction.is-neutral {
    color: #475569;
    background: rgba(148, 163, 184, 0.16);
}

body.theme-dark .studio-dashboard-elasticity-type.is-index {
    color: #93c5fd;
}

body.theme-dark .studio-dashboard-elasticity-type.is-currency {
    color: #c4b5fd;
}

body.theme-dark .studio-dashboard-elasticity-type.is-commodity {
    color: #fcd34d;
}

body.theme-dark .studio-dashboard-elasticity-type.is-rate,
body.theme-dark .studio-dashboard-elasticity-type.is-equity {
    color: #cbd5e1;
}

body.theme-dark .studio-dashboard-elasticity-direction.is-positive {
    color: #86efac;
}

body.theme-dark .studio-dashboard-elasticity-direction.is-negative {
    color: #fca5a5;
}

body.theme-dark .studio-dashboard-elasticity-direction.is-neutral {
    color: #e2e8f0;
}

.studio-dashboard-signal-insights-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.studio-dashboard-signal-insights-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-soft, var(--text));
    line-height: 1.55;
}

.studio-dashboard-signal-insights-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 78%, #93c5fd 22%);
}

@media (max-width: 980px) {
    .studio-dashboard-reliability-top {
        flex-direction: column;
        align-items: stretch;
    }


    .studio-dashboard-reliability-layout {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-elasticity-layout {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-sentiment-panel {
        order: -1;
    }

    .studio-dashboard-prediction-analysis-head {
        flex-direction: column;
    }
}


.studio-dashboard-signals-groups {
    display: grid;
    gap: 18px;
}

.studio-dashboard-signals-group {
    display: grid;
    gap: 12px;
}

.studio-dashboard-signals-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.studio-dashboard-signals-group-head span {
    color: var(--muted);
}


.studio-dashboard-signals-groups.is-dropdown {
    gap: 14px;
}

.studio-dashboard-notifications-list.is-dropdown-group {
    max-height: 168px;
    overflow-y: auto;
}


.studio-dashboard-signals-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.studio-dashboard-signals-tabs.is-section-tabs {
    margin-bottom: 8px;
}

.studio-dashboard-signals-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.studio-dashboard-signals-tab span {
    color: var(--text);
}

.studio-dashboard-signals-tab:hover,
.studio-dashboard-signals-tab:focus-visible {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
    color: var(--text);
    transform: translateX(2px);
}

.studio-dashboard-signals-tab.is-active {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.studio-dashboard-signals-group-head.is-tabbed {
    margin-top: 2px;
}

.studio-dashboard-signals-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.studio-dashboard-signals-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.studio-dashboard-signals-page.is-active {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}


/* Dashboard outer breathing room override */
body.page-dashboard {
    padding: 15px !important;
    background: #ffffff !important;
}
body.theme-dark.page-dashboard {
    background: var(--bg) !important;
}
body.page-dashboard > .page-shell-dashboard {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 30px) !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
    overflow: hidden !important;
}
body.page-dashboard .studio-dashboard,
body.page-dashboard .studio-dashboard-shell {
    width: 100% !important;
    min-height: calc(100vh - 30px) !important;
    margin: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
}
@media (max-width: 767px) {
    body.page-dashboard {
        padding: 13px !important;
    }
    body.page-dashboard > .page-shell-dashboard,
    body.page-dashboard .studio-dashboard,
    body.page-dashboard .studio-dashboard-shell {
        min-height: calc(100vh - 26px) !important;
        border-radius: 14px !important;
    }
}

.studio-dashboard-news-view-shell,
.studio-dashboard-news-view {
    display: grid;
    gap: 20px;
    align-content: start;
}

.studio-dashboard-news-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 18px;
    align-items: start;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 97%, var(--bg)), color-mix(in srgb, var(--surface-soft) 94%, var(--surface)));
}

.studio-dashboard-news-hero-copy,
.studio-dashboard-news-hero-meta,
.studio-dashboard-news-section,
.studio-dashboard-news-list,
.studio-dashboard-news-item-copy {
    display: grid;
    gap: 10px;
    align-content: start;
}

.studio-dashboard-news-hero-copy p,
.studio-dashboard-news-section .studio-dashboard-panel-head p,
.studio-dashboard-news-item-copy p,
.studio-dashboard-news-update-card p {
    color: var(--muted);
}

.studio-dashboard-news-source-chips,
.studio-dashboard-news-item-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.studio-dashboard-news-source-chips span,
.studio-dashboard-news-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
}

.studio-dashboard-news-source-chips span,
.studio-dashboard-news-badge.is-muted {
    color: var(--muted);
    background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.studio-dashboard-news-badge.is-primary {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.12);
}

.studio-dashboard-news-badge.is-importance-3 {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.14);
}

.studio-dashboard-news-badge.is-importance-2 {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
}

.studio-dashboard-news-badge.is-importance-1,
.studio-dashboard-news-badge.is-importance-0 {
    color: #475569;
    background: rgba(100, 116, 139, 0.12);
}

.studio-dashboard-news-badge.is-accent {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
}

.studio-dashboard-news-badge.is-muted {
    color: var(--muted);
}

.studio-dashboard-news-badge.is-tone {
    color: var(--text);
}

.studio-dashboard-news-badge.is-tone.is-market-greed,
.studio-dashboard-news-badge.is-tone.is-market-extreme-greed,
.studio-dashboard-news-badge.is-tone.is-market-fear,
.studio-dashboard-news-badge.is-tone.is-market-extreme-fear,
.studio-dashboard-news-badge.is-tone.is-market-neutral {
    color: #2563eb;
    background: rgba(96, 165, 250, 0.16);
}

.studio-dashboard-news-grid,
.studio-dashboard-news-updates-grid {
    display: grid;
    gap: 20px;
}

.studio-dashboard-news-panel-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
}

.studio-dashboard-news-date-form {
    display: grid;
    width: 100%;
    max-width: 280px;
}

.studio-dashboard-news-date-picker {
    display: block;
    width: 100%;
}

.studio-dashboard-news-date-picker input[type="date"] {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.06));
    color: var(--text);
    font: inherit;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.studio-dashboard-news-date-picker input[type="date"]:focus {
    outline: 2px solid rgba(37, 99, 235, 0.18);
    outline-offset: 2px;
    border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
}

.studio-dashboard-news-source-row {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.studio-dashboard-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-dashboard-news-updates-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.studio-dashboard-news-list {
    gap: 14px;
}

.studio-dashboard-news-item,
.studio-dashboard-news-update-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
    text-decoration: none;
    color: inherit;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.studio-dashboard-news-item {
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: start;
}

.studio-dashboard-news-item.is-article {
    grid-template-columns: 1fr;
}

.studio-dashboard-news-item:hover,
.studio-dashboard-news-update-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.studio-dashboard-news-item-date {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-soft) 94%, var(--bg));
    text-align: center;
}

.studio-dashboard-news-item-date strong,
.studio-dashboard-news-update-value {
    font-size: 1.15rem;
    line-height: 1.1;
}

.studio-dashboard-news-item-date span,
.studio-dashboard-news-item-topline small,
.studio-dashboard-news-hero-meta small,
.studio-dashboard-news-update-state {
    color: var(--muted);
}

.studio-dashboard-news-update-card strong {
    font-size: 1rem;
}

.studio-dashboard-news-metadata {
    display: flex;
    align-items: center;
    gap: 10px 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}

.studio-dashboard-news-metadata strong {
    color: var(--text);
}

.studio-dashboard-news-calendar-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.studio-dashboard-news-calendar-stat {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
}

.studio-dashboard-news-calendar-stat small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.studio-dashboard-news-calendar-stat strong {
    color: var(--text);
    font-size: 1.06rem;
}

.studio-dashboard-news-calendar-stat span {
    color: var(--muted);
    font-size: 0.86rem;
}

.studio-dashboard-news-calendar-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.studio-dashboard-news-calendar-day {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.studio-dashboard-news-calendar-day:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.studio-dashboard-news-calendar-day.is-selected {
    border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--surface)) 0%, color-mix(in srgb, var(--accent) 6%, var(--surface-soft)) 100%);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.12);
}

.studio-dashboard-news-calendar-day.is-today {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

.studio-dashboard-news-calendar-day.has-events .studio-dashboard-news-calendar-day-bottom span:last-child {
    color: #166534;
}

.studio-dashboard-news-calendar-day-top,
.studio-dashboard-news-calendar-day-bottom {
    display: grid;
    gap: 4px;
}

.studio-dashboard-news-calendar-day-top small,
.studio-dashboard-news-calendar-day-bottom span:first-child {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.studio-dashboard-news-calendar-day-top strong {
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1;
}

.studio-dashboard-news-calendar-day-bottom span:last-child {
    color: var(--muted);
    font-size: 0.84rem;
}

.studio-dashboard-earnings-slider,
.studio-dashboard-earnings-slider-head,
.studio-dashboard-earnings-card-list {
    display: grid;
    gap: 14px;
}

.studio-dashboard-earnings-slider-head {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px 14px;
}

.studio-dashboard-earnings-slider-head strong {
    color: var(--text);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.studio-dashboard-earnings-slider-head span {
    color: var(--muted);
}

.studio-dashboard-earnings-slider-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.studio-dashboard-earnings-slider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
    color: var(--text);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.studio-dashboard-earnings-slider-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.studio-dashboard-earnings-slider-button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.studio-dashboard-earnings-slider-viewport {
    overflow: hidden;
}

.studio-dashboard-earnings-slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 3);
    gap: 12px;
    transition: transform 320ms ease;
    will-change: transform;
}

.studio-dashboard-earnings-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 98%, var(--surface-soft));
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
}

.studio-dashboard-earnings-card-head strong {
    color: #1d4ed8;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.studio-dashboard-earnings-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.studio-dashboard-earnings-row-main strong {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
}

.studio-dashboard-earnings-row small {
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.studio-dashboard-news-day-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 6px;
    color: var(--muted);
}

.studio-dashboard-news-day-summary strong {
    color: var(--text);
}

.studio-dashboard-live-shell,
.studio-dashboard-live-monitor,
.studio-dashboard-live-marquee-section {
    display: grid;
    gap: 16px;
}

.studio-dashboard-live-shell {
    align-content: start;
}

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

.studio-dashboard-live-section-head strong {
    color: var(--text);
    font-size: 1.18rem;
}

.studio-dashboard-live-section-head span {
    color: var(--muted);
    font-size: 0.88rem;
}

.studio-dashboard-live-monitor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.studio-dashboard-live-market-card {
    min-height: 116px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 10%, transparent), transparent 36%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, var(--bg)), color-mix(in srgb, var(--surface-soft) 94%, var(--surface)));
}

.studio-dashboard-live-market-copy {
    gap: 6px;
}

.studio-dashboard-live-market-category {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    padding: 0 10px;
    align-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.studio-dashboard-live-market-copy strong {
    color: var(--text);
}

.studio-dashboard-live-market-copy span {
    font-size: 1.08rem;
}

.studio-dashboard-live-market-status {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.studio-dashboard-live-market-status.is-stale {
    color: #b45309;
}

.studio-dashboard-live-market-status-meta {
    color: var(--muted);
    font-size: 0.72rem;
}

.studio-dashboard-live-market-card.is-stale {
    border-style: dashed;
    opacity: 0.94;
}

.studio-dashboard-live-marquee {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 54%, var(--surface)), color-mix(in srgb, var(--surface) 98%, var(--bg)));
    padding: 14px 0;
}

.studio-dashboard-live-marquee-track {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: max-content;
    min-width: 100%;
    padding: 0 14px;
    animation: studio-dashboard-live-marquee 72s linear infinite;
}

.studio-dashboard-live-marquee:hover .studio-dashboard-live-marquee-track {
    animation-play-state: paused;
}

.studio-dashboard-live-marquee-item {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 560px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.studio-dashboard-live-marquee-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.studio-dashboard-live-marquee-item span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.12);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.studio-dashboard-live-marquee-item strong {
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.35;
}

.studio-dashboard-live-marquee-item small {
    color: var(--muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

@keyframes studio-dashboard-live-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.studio-dashboard-economic-list {
    display: grid;
    gap: 14px;
}

.studio-dashboard-economic-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
    text-decoration: none;
    color: inherit;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.studio-dashboard-economic-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.studio-dashboard-economic-time {
    display: grid;
    gap: 4px;
    align-content: start;
    padding: 12px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-soft) 94%, var(--bg));
    text-align: center;
}

.studio-dashboard-economic-time span {
    color: var(--muted);
}

.studio-dashboard-economic-copy {
    display: grid;
    gap: 10px;
    align-content: start;
}

body.theme-dark .studio-dashboard-market-tile:hover,
body.theme-dark .studio-dashboard-economic-item:hover {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

body.theme-dark .studio-dashboard-market-tile.is-placeholder .studio-dashboard-market-copy strong,
body.theme-dark .studio-dashboard-market-tile.is-placeholder .studio-dashboard-market-copy span,
body.theme-dark .studio-dashboard-market-tile.is-placeholder .studio-dashboard-market-copy small,
body.theme-dark .studio-dashboard-market-tile.is-placeholder .studio-dashboard-market-sparkline {
    background: linear-gradient(90deg, rgba(71, 85, 105, 0.22), rgba(100, 116, 139, 0.34), rgba(71, 85, 105, 0.22));
}

body.theme-dark .studio-dashboard-news-badge.is-primary {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.18);
}

body.theme-dark .studio-dashboard-news-badge.is-importance-3 {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.18);
}

body.theme-dark .studio-dashboard-news-badge.is-importance-2,
body.theme-dark .studio-dashboard-news-badge.is-accent {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.18);
}

body.theme-dark .studio-dashboard-news-badge.is-importance-1,
body.theme-dark .studio-dashboard-news-badge.is-importance-0 {
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.2);
}

body.theme-dark .studio-dashboard-news-badge.is-tone.is-market-greed,
body.theme-dark .studio-dashboard-news-badge.is-tone.is-market-extreme-greed,
body.theme-dark .studio-dashboard-news-badge.is-tone.is-market-fear,
body.theme-dark .studio-dashboard-news-badge.is-tone.is-market-extreme-fear,
body.theme-dark .studio-dashboard-news-badge.is-tone.is-market-neutral {
    color: #dbeafe;
    background: rgba(96, 165, 250, 0.18);
}

body.theme-dark .studio-dashboard-news-date-picker input[type="date"] {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.14), rgba(30, 41, 59, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-dark .studio-dashboard-news-date-picker input[type="date"]:focus {
    outline-color: rgba(124, 179, 255, 0.28);
}

@media (max-width: 1080px) {
    .studio-dashboard-news-hero,
    .studio-dashboard-news-calendar-overview,
    .studio-dashboard-news-grid,
    .studio-dashboard-news-updates-grid {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-live-monitor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .studio-dashboard-earnings-slider-track {
        grid-auto-columns: calc((100% - 12px) / 2);
    }

    .studio-dashboard-news-panel-meta {
        justify-items: start;
        text-align: left;
    }

    .studio-dashboard-news-date-form {
        max-width: 100%;
    }

    .studio-dashboard-news-source-row {
        justify-items: start;
    }
}

@media (max-width: 680px) {
    .studio-dashboard-earnings-slider-head {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .studio-dashboard-earnings-slider-track {
        grid-auto-columns: 100%;
    }

    .studio-dashboard-news-item,
    .studio-dashboard-economic-item {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-live-monitor-grid {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-live-marquee-item {
        min-width: 86vw;
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.studio-dashboard-summary-grid--panel {
    margin-bottom: 18px;
}

.studio-dashboard-panel-v1 {
    display: grid;
    gap: 18px;
}

.studio-dashboard-panel-v1-split {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.studio-dashboard-panel-sidebar {
    grid-column: span 6;
    display: grid;
    gap: 18px;
    align-content: start;
}

.studio-dashboard-panel-v1-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-dashboard-panel-summary-card.is-high strong,
.studio-dashboard-panel-summary-card.is-extreme-high strong {
    color: #16a34a;
}

.studio-dashboard-panel-summary-card.is-low strong,
.studio-dashboard-panel-summary-card.is-extreme-low strong {
    color: #dc2626;
}

.studio-dashboard-panel-section {
    padding: 22px;
}

.studio-dashboard-panel-section--heatmap {
    grid-column: span 6;
}

@media (min-width: 1280px) {
    .studio-dashboard-panel-section--heatmap {
        grid-column: span 8;
    }

    .studio-dashboard-panel-sidebar {
        grid-column: span 4;
    }
}

.studio-dashboard-panel-section--fear,
.studio-dashboard-panel-section--earnings {
    text-align: right;
}

.studio-dashboard-panel-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.studio-dashboard-panel-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.02);
}

.studio-dashboard-panel-list-item:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.28);
}

.studio-dashboard-panel-section--earnings .studio-dashboard-panel-list-item {
    text-align: left;
}

.studio-dashboard-panel-list-item strong {
    display: block;
    margin-bottom: 4px;
}

.studio-dashboard-panel-list-item small {
    display: block;
    color: var(--dashboard-copy-soft, #64748b);
}

body.theme-dark .studio-dashboard-panel-list-item {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.035);
}

body.theme-dark .studio-dashboard-panel-list-item small,
body.theme-dark .studio-dashboard-panel-list-metric small {
    color: #9fb2d6;
}

body.theme-dark .studio-dashboard-panel-list-item strong,
body.theme-dark .studio-dashboard-panel-list-metric {
    color: #f8fbff;
}

.studio-dashboard-panel-list-metric {
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
    font-weight: 700;
}

.studio-dashboard-panel-sentiment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.studio-dashboard-panel-sentiment-value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1;
}

.studio-dashboard-panel-thermometer-wrap {
    display: grid;
    gap: 18px;
    justify-items: end;
}

.studio-dashboard-panel-thermometer-copy {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.studio-dashboard-panel-thermometer {
    width: min(100%, 420px);
    display: grid;
    gap: 10px;
}

.studio-dashboard-panel-thermometer-scale {
    position: relative;
    height: 18px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dashboard-copy-soft, #64748b);
}

.studio-dashboard-panel-thermometer-scale span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.studio-dashboard-panel-thermometer-scale span:first-child {
    transform: translateX(0);
}

.studio-dashboard-panel-thermometer-scale span:last-child {
    transform: translateX(-100%);
}

.studio-dashboard-panel-thermometer-track {
    position: relative;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #b91c1c 0%, #ef4444 18%, #f59e0b 36%, #facc15 50%, #84cc16 72%, #16a34a 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.studio-dashboard-panel-thermometer-marker {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid rgba(15, 23, 42, 0.72);
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.studio-dashboard-panel-bar-chart {
    display: grid;
    gap: 12px;
    align-items: stretch;
    min-height: 0;
    margin-top: 18px;
}

.studio-dashboard-panel-bar-card {
    display: grid;
    grid-template-columns: minmax(128px, 0.55fr) minmax(180px, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    border-radius: 18px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-soft) 72%, transparent)),
        radial-gradient(circle at 0 50%, rgba(59, 130, 246, 0.08), transparent 34%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    color: inherit;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.studio-dashboard-panel-bar-card:hover,
.studio-dashboard-panel-bar-card:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.studio-dashboard-panel-bar-plot {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.studio-dashboard-panel-bar-track {
    position: relative;
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background:
        repeating-linear-gradient(90deg, transparent 0 19%, rgba(148, 163, 184, 0.16) 19% 20%),
        color-mix(in srgb, var(--surface-soft) 86%, var(--surface));
}

.studio-dashboard-panel-bar-fill {
    height: 100%;
    min-height: 10px;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.92), rgba(37, 99, 235, 0.62));
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.18);
}

.studio-dashboard-panel-bar-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 86%, var(--surface));
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 900;
}

.studio-dashboard-panel-bar-card.is-bullish .studio-dashboard-panel-bar-fill {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.96), rgba(22, 163, 74, 0.62));
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.2);
}

.studio-dashboard-panel-bar-card.is-bearish .studio-dashboard-panel-bar-fill {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.96), rgba(220, 38, 38, 0.62));
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.2);
}

.studio-dashboard-panel-bar-card.is-muted .studio-dashboard-panel-bar-fill {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.9), rgba(100, 116, 139, 0.56));
    box-shadow: 0 0 18px rgba(100, 116, 139, 0.14);
}

.studio-dashboard-panel-bar-card.is-bullish .studio-dashboard-panel-bar-marker {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
}

.studio-dashboard-panel-bar-card.is-bearish .studio-dashboard-panel-bar-marker {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
}

.studio-dashboard-panel-bar-card.is-muted .studio-dashboard-panel-bar-marker {
    color: #475569;
    background: rgba(148, 163, 184, 0.16);
}

.studio-dashboard-panel-bar-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.studio-dashboard-panel-bar-copy span {
    color: var(--dashboard-copy-soft, #64748b);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.studio-dashboard-panel-bar-copy strong {
    font-size: 1.35rem;
    line-height: 1;
}

.studio-dashboard-panel-bar-copy small {
    color: var(--dashboard-copy-soft, #64748b);
    font-size: 0.82rem;
    line-height: 1.35;
}

.studio-dashboard-curves-stats--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-dashboard-table--compact th,
.studio-dashboard-table--compact td {
    padding-top: 12px;
    padding-bottom: 12px;
}

body.theme-dark .studio-dashboard-panel-thermometer-marker {
    background: #0f172a;
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

body.theme-dark .studio-dashboard-panel-bar-plot {
    color: inherit;
}

body.theme-dark .studio-dashboard-panel-bar-card {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.72)),
        radial-gradient(circle at 0 50%, rgba(59, 130, 246, 0.12), transparent 34%);
}

body.theme-dark .studio-dashboard-panel-bar-copy span {
    color: #9fb2d6;
}

body.theme-dark .studio-dashboard-panel-bar-copy small {
    color: #b8c7e6;
}

body.theme-dark .studio-dashboard-panel-bar-copy strong {
    color: #f8fbff;
}

body.theme-dark .studio-dashboard-panel-bar-track {
    border-color: rgba(71, 85, 105, 0.48);
    background:
        repeating-linear-gradient(90deg, transparent 0 19%, rgba(71, 85, 105, 0.28) 19% 20%),
        rgba(15, 23, 42, 0.74);
}

@media (max-width: 980px) {
    .studio-dashboard-panel-v1-split,
    .studio-dashboard-panel-v1-grid {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-panel-section--heatmap,
    .studio-dashboard-panel-sidebar {
        grid-column: span 1;
    }

    .studio-dashboard-panel-section--fear,
    .studio-dashboard-panel-section--earnings {
        text-align: left;
    }

    .studio-dashboard-panel-thermometer-wrap,
    .studio-dashboard-panel-thermometer-copy {
        justify-items: start;
    }
}

@media (max-width: 720px) {
    .studio-dashboard-panel-bar-chart,
    .studio-dashboard-curves-stats--compact {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-panel-bar-card {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-panel-list-item,
    .studio-dashboard-panel-sentiment {
        align-items: flex-start;
        flex-direction: column;
    }

    .studio-dashboard-panel-list-metric {
        justify-items: start;
        text-align: left;
    }

    .studio-dashboard-panel-thermometer {
        width: 100%;
    }
}

/* Production viewport pass: 1024x768 and 800x600 */
.error-page {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f8fafc;
    color: #0f172a;
}

.error-shell {
    width: min(100%, 560px);
    display: grid;
    gap: 16px;
    text-align: center;
    justify-items: center;
}

.error-code {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    color: #2563eb;
}

.error-shell h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
}

.error-shell p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

@media (max-width: 1100px) and (max-height: 820px) {
    .site-header {
        position: relative;
    }

    .hero,
    .wandy-landing-hero {
        min-height: auto;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .studio-dashboard-shell {
        min-height: 100vh;
    }

    .studio-dashboard-main,
    .studio-dashboard-content,
    .studio-dashboard-view {
        min-width: 0;
    }

    .studio-dashboard-topbar,
    .studio-dashboard-pagebar,
    .studio-dashboard-panel-v1,
    .studio-dashboard-panel,
    .studio-dashboard-watchlist-panel {
        padding-left: clamp(14px, 2vw, 22px);
        padding-right: clamp(14px, 2vw, 22px);
    }

    .studio-dashboard-panel-v1-grid,
    .studio-dashboard-panel-v1-split,
    .studio-dashboard-watchlist-grid,
    .studio-dashboard-watchlist-portfolio-grid,
    .studio-dashboard-curves-grid,
    .studio-dashboard-sectorial-grid {
        grid-template-columns: 1fr;
    }

    .studio-dashboard-table-wrap,
    .studio-dashboard-watchlist-list,
    .studio-dashboard-signals-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .studio-dashboard-table,
    .studio-dashboard-watchlist-row-summary {
        min-width: 720px;
    }

    .studio-dashboard-settings-tabs,
    .studio-dashboard-watchlist-tabs,
    .studio-dashboard-signals-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 840px) and (max-height: 640px) {
    body {
        overflow-x: hidden;
    }

    .topbar,
    .site-header-drawer,
    .footer-top,
    .footer-disclaimer,
    .wandy-landing-section,
    .auth-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header-drawer.is-open,
    .site-header[data-open='true'] .site-header-drawer {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .studio-dashboard-shell {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .studio-dashboard-sidebar {
        width: 72px;
    }

    .studio-dashboard-brandmark span:last-child,
    .studio-dashboard-nav-item span:last-child,
    .studio-dashboard-sidebar-footer {
        display: none;
    }

    .studio-dashboard-nav-item {
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        margin-inline: auto;
    }

    .studio-dashboard-pagebar h1,
    .hero h1,
    .wandy-landing-hero h1 {
        font-size: clamp(1.55rem, 5vw, 2.2rem);
        line-height: 1.08;
    }

    .studio-dashboard-pagebar,
    .studio-dashboard-topbar {
        gap: 10px;
    }

    .studio-dashboard-panel-bar-chart {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 0;
    }

    .studio-dashboard-panel-bar-plot {
        height: 110px;
    }

    .studio-dashboard-watchlist-row-summary {
        min-width: 680px;
    }

    .studio-dashboard-signals-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: 'detail';
        gap: 14px;
    }

    body.page-dashboard:has([data-dashboard-view="signals"].is-active) .studio-dashboard-pagebar .studio-dashboard-signals-drawer-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: max-content;
        min-height: 38px;
        margin: 0 0 4px auto;
        padding: 0 12px;
        border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
        border-radius: 999px;
        background: color-mix(in srgb, var(--accent) 10%, var(--surface));
        color: var(--text);
        font: inherit;
        font-size: 0.82rem;
        font-weight: 800;
        cursor: pointer;
    }

    body.page-dashboard:has([data-dashboard-view="signals"].is-active) .studio-dashboard-pagebar .studio-dashboard-signals-drawer-trigger strong {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 24px;
        height: 24px;
        padding: 0 7px;
        border-radius: 999px;
        background: var(--accent);
        color: #fff;
        font-size: 0.72rem;
    }

    .studio-dashboard-signals-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(15, 23, 42, 0.28);
        backdrop-filter: blur(2px);
    }

    .studio-dashboard-signals-drawer-backdrop:not([hidden]) {
        display: block;
    }

    .studio-dashboard-signals-list {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        width: min(360px, calc(100vw - 84px));
        padding: 14px;
        grid-auto-rows: max-content;
        overflow-x: hidden;
        overflow-y: auto;
        transform: translateX(104%);
        transition: transform 180ms ease, box-shadow 180ms ease;
        border-left: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
        background: color-mix(in srgb, var(--surface) 98%, var(--surface-soft));
        box-shadow: -20px 0 40px rgba(15, 23, 42, 0.16);
    }

    .studio-dashboard-signals-list .studio-dashboard-signals-list-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .studio-dashboard-signals-list .studio-dashboard-signals-list-head span {
        grid-column: 1 / -1;
    }

    .studio-dashboard-signals-layout.is-drawer-open .studio-dashboard-signals-list {
        transform: translateX(0);
    }

    .studio-dashboard-signals-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
        border-radius: 999px;
        background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
        color: var(--text);
        cursor: pointer;
    }

    .studio-dashboard-signals-panel,
    .studio-dashboard-reliability-card {
        padding: 12px;
    }

    .studio-dashboard-signals-headline,
    .studio-dashboard-signals-list-head,
    .studio-dashboard-reliability-top,
    .studio-dashboard-backtest-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .studio-dashboard-notifications-list.is-signals-view {
        overflow-x: visible;
        overflow-y: visible;
    }

    .studio-dashboard-notifications-list.is-signals-view .studio-dashboard-notification-item {
        padding: 10px;
        border-radius: 10px;
        gap: 5px;
    }

    .studio-dashboard-notifications-list.is-signals-view .studio-dashboard-notification-item strong,
    .studio-dashboard-notifications-list.is-signals-view .studio-dashboard-notification-summary,
    .studio-dashboard-notifications-list.is-signals-view .studio-dashboard-notification-subtitle {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .studio-dashboard-notifications-list.is-signals-view .studio-dashboard-notification-direction,
    .studio-dashboard-notifications-list.is-signals-view .studio-dashboard-timing-badge {
        padding: 4px 7px;
        font-size: 0.64rem;
    }

    .studio-dashboard-reliability-layout {
        grid-template-columns: 1fr;
    }

    .auth-card,
    .card {
        border-radius: 8px;
    }
}

@media (max-width: 1400px) and (max-height: 700px) {
    .studio-dashboard-signals-view .studio-dashboard-signals-headline {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        align-items: stretch;
    }

    .studio-dashboard-signals-view .studio-dashboard-signal-badges {
        display: grid;
        grid-template-columns: minmax(180px, 1.15fr) minmax(140px, 0.95fr) minmax(112px, 0.8fr) minmax(140px, 0.95fr);
        gap: 8px;
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
        min-width: 0;
        margin-left: 0;
        padding: 6px;
        border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
        border-radius: 16px;
        background: color-mix(in srgb, var(--surface-soft) 62%, transparent);
    }

    .studio-dashboard-signals-view .studio-dashboard-signal-badges .studio-dashboard-timing-badge {
        order: 2;
        justify-content: center;
        width: 100%;
        min-height: 42px;
        border-radius: 12px;
    }

    .studio-dashboard-signals-view .studio-dashboard-signal-badges .studio-dashboard-notification-direction {
        order: 3;
        justify-content: center;
        min-height: 42px;
        border-radius: 12px;
    }

    .studio-dashboard-signals-view .studio-dashboard-signal-badges .studio-dashboard-backtesting-badge {
        order: 4;
        justify-content: center;
        min-height: 42px;
        border-radius: 12px;
    }

    .studio-dashboard-signals-view .studio-dashboard-signal-badges .studio-dashboard-trendshift-badge {
        order: 1;
        width: 100%;
        min-height: 42px;
        justify-content: center;
        border-radius: 12px;
        text-align: left;
        padding: 8px 12px;
    }

    .studio-dashboard-signals-view .studio-dashboard-signal-badges .studio-dashboard-trendshift-badge strong,
    .studio-dashboard-signals-view .studio-dashboard-signal-badges .studio-dashboard-trendshift-badge small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .studio-dashboard-signals-view .studio-dashboard-signal-badges.is-bullish .studio-dashboard-trendshift-badge {
        color: #166534;
        border-color: rgba(34, 197, 94, 0.28);
        background: rgba(34, 197, 94, 0.12);
    }

    .studio-dashboard-signals-view .studio-dashboard-signal-badges.is-bearish .studio-dashboard-trendshift-badge {
        color: #b91c1c;
        border-color: rgba(239, 68, 68, 0.28);
        background: rgba(239, 68, 68, 0.12);
    }

    .studio-dashboard-signals-view .studio-dashboard-signals-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: 'detail';
        gap: 14px;
    }

    body.page-dashboard:has([data-dashboard-view="signals"].is-active) .studio-dashboard-pagebar .studio-dashboard-signals-drawer-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: max-content;
        min-height: 38px;
        margin: 0 0 4px auto;
        padding: 0 12px;
        border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
        border-radius: 999px;
        background: color-mix(in srgb, var(--accent) 10%, var(--surface));
        color: var(--text);
        font: inherit;
        font-size: 0.82rem;
        font-weight: 800;
        cursor: pointer;
    }

    body.page-dashboard:has([data-dashboard-view="signals"].is-active) .studio-dashboard-pagebar .studio-dashboard-signals-drawer-trigger strong {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 24px;
        height: 24px;
        padding: 0 7px;
        border-radius: 999px;
        background: var(--accent);
        color: #fff;
        font-size: 0.72rem;
    }

    .studio-dashboard-signals-view .studio-dashboard-signals-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(15, 23, 42, 0.28);
        backdrop-filter: blur(2px);
    }

    .studio-dashboard-signals-view .studio-dashboard-signals-drawer-backdrop:not([hidden]) {
        display: block;
    }

    .studio-dashboard-signals-view .studio-dashboard-signals-list {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        width: min(380px, calc(100vw - 84px));
        padding: 14px;
        grid-auto-rows: max-content;
        overflow-x: hidden;
        overflow-y: auto;
        transform: translateX(104%);
        transition: transform 180ms ease, box-shadow 180ms ease;
        border-left: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
        background: color-mix(in srgb, var(--surface) 98%, var(--surface-soft));
        box-shadow: -20px 0 40px rgba(15, 23, 42, 0.16);
    }

    .studio-dashboard-signals-view .studio-dashboard-signals-layout.is-drawer-open .studio-dashboard-signals-list {
        transform: translateX(0);
    }

    .studio-dashboard-signals-view .studio-dashboard-signals-list .studio-dashboard-signals-list-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .studio-dashboard-signals-view .studio-dashboard-signals-list .studio-dashboard-signals-list-head span {
        grid-column: 1 / -1;
    }

    .studio-dashboard-signals-view .studio-dashboard-signals-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
        border-radius: 999px;
        background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
        color: var(--text);
        cursor: pointer;
    }
}

@media (max-width: 980px) and (max-height: 700px) {
    .studio-dashboard-signals-view .studio-dashboard-signal-badges {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .studio-dashboard-signals-view .studio-dashboard-signal-badges .studio-dashboard-trendshift-badge {
        grid-column: 1 / -1;
    }
}

/* Wandy blue commercial landing refresh */
.wandy-marketing {
    --wandy-ink: #07152f;
    --wandy-muted: #5d6f8d;
    --wandy-line: #d8e5f7;
    --wandy-blue: #0b63ce;
    --wandy-blue-deep: #064a9f;
    --wandy-blue-soft: #e8f2ff;
    --wandy-green: #12b76a;
    background:
        linear-gradient(180deg, #eaf3ff 0%, #f7fbff 34%, #ffffff 100%);
    color: var(--wandy-ink);
}

.wandy-marketing-nav {
    width: min(100% - 28px, 1200px);
    min-height: 76px;
    margin-top: 14px;
    padding: 0 14px 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    background: rgba(4, 74, 159, 0.94);
    box-shadow: 0 20px 50px rgba(7, 21, 47, 0.16);
}

.wandy-marketing-brand,
.wandy-marketing-links a,
.wandy-marketing-button.is-ghost {
    color: #ffffff;
}

.wandy-marketing-brand small,
.wandy-marketing-links a {
    color: rgba(255, 255, 255, 0.78);
}

.wandy-marketing-brand-mark {
    color: var(--wandy-blue);
    box-shadow: none;
}

.wandy-marketing-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.wandy-marketing-nav .wandy-marketing-button.is-ghost {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

.wandy-marketing-nav .wandy-marketing-button.is-primary {
    color: var(--wandy-blue-deep);
    border-color: #ffffff;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(7, 21, 47, 0.18);
}

.wandy-marketing-hero {
    position: relative;
    width: min(100% - 28px, 1200px);
    min-height: auto;
    margin-top: 18px;
    padding: clamp(48px, 7vw, 82px) clamp(24px, 5vw, 58px);
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.28), transparent 24%),
        radial-gradient(circle at 66% 88%, rgba(18, 183, 106, 0.22), transparent 25%),
        linear-gradient(135deg, #075bbb 0%, #0b63ce 48%, #0a8bdc 100%);
    box-shadow: 0 28px 80px rgba(7, 21, 47, 0.2);
}

.wandy-marketing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    opacity: 0.5;
}

.wandy-marketing-hero > * {
    position: relative;
    z-index: 1;
}

.wandy-marketing-hero-copy {
    align-content: center;
}

.wandy-marketing-hero .wandy-marketing-kicker {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.wandy-marketing-hero h1 {
    max-width: 640px;
    color: #ffffff;
    font-size: clamp(2.6rem, 5.2vw, 5rem);
}

.wandy-marketing-hero p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.84);
}

.wandy-marketing-hero .wandy-marketing-button.is-primary {
    color: var(--wandy-blue-deep);
    border-color: #ffffff;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(7, 21, 47, 0.18);
}

.wandy-marketing-hero .wandy-marketing-button.is-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.wandy-marketing-proof span {
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.wandy-marketing-proof strong {
    color: #ffffff;
}

.wandy-product-demo {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 30px 80px rgba(5, 35, 80, 0.3);
    animation: wandyFloatDemo 6s ease-in-out infinite;
}

.wandy-product-demo-top {
    background: linear-gradient(180deg, #ffffff, #f1f7ff);
}

.wandy-product-demo-grid article {
    border-color: #dbeafe;
    box-shadow: none;
}

.wandy-demo-selected {
    background:
        linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
}

.wandy-demo-score {
    color: #075985;
    background:
        radial-gradient(circle at center, #ffffff 0 36%, transparent 37%),
        conic-gradient(from -110deg, #38bdf8 0 32%, #12b76a 32% 100%);
}

.wandy-demo-chart {
    background:
        linear-gradient(180deg, #f8fbff, #eff6ff);
}

.wandy-marketing-section {
    width: min(100% - 28px, 1200px);
    padding: 70px 0;
}

.wandy-marketing-strip {
    margin-top: 12px;
}

.wandy-section-head {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.wandy-section-head span,
.wandy-demo-selected small {
    color: var(--wandy-blue);
}

.wandy-section-head h2 {
    color: var(--wandy-ink);
    font-size: clamp(2rem, 3.4vw, 3rem);
}

.wandy-simple-steps article,
.wandy-metrics-grid article,
.wandy-testimonial-grid blockquote,
.wandy-story-panels article,
.wandy-pricing-card,
.wandy-faq-grid article {
    border-color: var(--wandy-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(7, 21, 47, 0.08);
}

.wandy-simple-steps article,
.wandy-metrics-grid article {
    min-height: 178px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.wandy-simple-steps i,
.wandy-metrics-grid i {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #0b63ce, #0a8bdc);
    box-shadow: 0 16px 34px rgba(11, 99, 206, 0.26);
    font-size: 1.35rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.wandy-simple-steps article:hover,
.wandy-metrics-grid article:hover {
    transform: translateY(-6px);
    border-color: #0b63ce;
    box-shadow: 0 26px 70px rgba(11, 99, 206, 0.18);
}

.wandy-simple-steps article:hover i,
.wandy-metrics-grid article:hover i {
    transform: rotate(6deg) scale(1.06);
    box-shadow: 0 20px 44px rgba(11, 99, 206, 0.34);
}

.wandy-story-layout {
    padding: 18px;
    border: 1px solid var(--wandy-line);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.wandy-story-tabs a {
    background: #ffffff;
}

.wandy-story-tabs a:hover {
    color: var(--wandy-blue);
    border-color: #a9cdfc;
    background: var(--wandy-blue-soft);
}

.wandy-story-panels article {
    background:
        radial-gradient(circle at right top, rgba(11, 99, 206, 0.1), transparent 32%),
        #ffffff;
}

.wandy-testimonials {
    padding-top: 44px;
}

.wandy-testimonial-grid blockquote {
    position: relative;
    min-height: 168px;
    padding-top: 44px;
}

.wandy-testimonial-grid blockquote::before {
    content: "\201C";
    position: absolute;
    top: 12px;
    left: 22px;
    color: var(--wandy-blue);
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 950;
}

.wandy-testimonial-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 32%);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    padding: 4px 4px 18px;
    scrollbar-color: #9ec5fb transparent;
}

.wandy-testimonial-carousel::-webkit-scrollbar {
    height: 10px;
}

.wandy-testimonial-carousel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #9ec5fb;
}

.wandy-testimonial-card {
    position: relative;
    min-height: 250px;
    display: grid;
    align-content: start;
    gap: 16px;
    margin: 0;
    padding: 24px;
    scroll-snap-align: start;
    border: 1px solid var(--wandy-line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 84% 12%, rgba(11, 99, 206, 0.08), transparent 30%),
        #ffffff;
    box-shadow: 0 20px 55px rgba(7, 21, 47, 0.08);
}

.wandy-testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 18px;
    right: 22px;
    color: rgba(11, 99, 206, 0.18);
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 950;
}

.wandy-testimonial-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #526783;
    font-weight: 800;
    line-height: 1.65;
}

.wandy-testimonial-card cite {
    display: grid;
    gap: 4px;
    color: var(--wandy-ink);
    font-style: normal;
}

.wandy-testimonial-card cite strong {
    font-weight: 950;
}

.wandy-testimonial-card cite span {
    color: var(--wandy-muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.wandy-testimonial-avatar {
    position: relative;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 42%, #ffd7b5 0 28%, transparent 29%),
        radial-gradient(circle at 50% 84%, #0b63ce 0 32%, transparent 33%),
        linear-gradient(135deg, #dbeafe, #bfdbfe);
    box-shadow: 0 12px 26px rgba(7, 21, 47, 0.14);
}

.wandy-testimonial-avatar::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 16px;
    width: 30px;
    height: 18px;
    border-radius: 18px 18px 8px 8px;
    background: #172554;
}

.wandy-testimonial-avatar::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 34px;
    width: 20px;
    height: 9px;
    border-bottom: 2px solid rgba(7, 21, 47, 0.72);
    border-radius: 0 0 18px 18px;
}

.wandy-testimonial-avatar.is-mateo {
    background:
        radial-gradient(circle at 50% 42%, #c98b5a 0 28%, transparent 29%),
        radial-gradient(circle at 50% 84%, #12b76a 0 32%, transparent 33%),
        linear-gradient(135deg, #e0f2fe, #bbf7d0);
}

.wandy-testimonial-avatar.is-mateo::before {
    top: 13px;
    height: 15px;
    background: #1e293b;
}

.wandy-testimonial-avatar.is-valen {
    background:
        radial-gradient(circle at 50% 42%, #f0bf93 0 28%, transparent 29%),
        radial-gradient(circle at 50% 84%, #7c3aed 0 32%, transparent 33%),
        linear-gradient(135deg, #ede9fe, #bfdbfe);
}

.wandy-testimonial-avatar.is-valen::before {
    left: 13px;
    top: 12px;
    width: 36px;
    height: 24px;
    border-radius: 999px 999px 12px 12px;
    background: #3b0764;
}

.wandy-testimonial-avatar.is-nico {
    background:
        radial-gradient(circle at 50% 42%, #e7b98c 0 28%, transparent 29%),
        radial-gradient(circle at 50% 84%, #075985 0 32%, transparent 33%),
        linear-gradient(135deg, #cffafe, #dbeafe);
}

.wandy-testimonial-avatar.is-nico::before {
    background: #111827;
}

.wandy-testimonial-avatar.is-abril {
    background:
        radial-gradient(circle at 50% 42%, #d99b70 0 28%, transparent 29%),
        radial-gradient(circle at 50% 84%, #ef4444 0 32%, transparent 33%),
        linear-gradient(135deg, #fee2e2, #dbeafe);
}

.wandy-testimonial-avatar.is-abril::before {
    left: 12px;
    top: 11px;
    width: 38px;
    height: 25px;
    background: #3f1d0b;
}

.wandy-testimonial-avatar.is-diego {
    background:
        radial-gradient(circle at 50% 42%, #b87952 0 28%, transparent 29%),
        radial-gradient(circle at 50% 84%, #0f172a 0 32%, transparent 33%),
        linear-gradient(135deg, #e2e8f0, #bfdbfe);
}

.wandy-testimonial-avatar.is-diego::before {
    top: 15px;
    background: #020617;
}

.wandy-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wandy-faq-grid article {
    min-height: 156px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 22px;
    border-color: #b9d7ff;
    box-shadow: 0 18px 44px rgba(11, 99, 206, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.wandy-faq-grid article:hover {
    transform: translateY(-4px);
    border-color: #0b63ce;
    box-shadow: 0 24px 65px rgba(11, 99, 206, 0.18);
}

.wandy-faq-grid strong {
    font-size: 1.08rem;
    font-weight: 950;
}

.wandy-faq-grid p {
    margin: 0;
    color: var(--wandy-muted);
    line-height: 1.62;
}

.wandy-pricing {
    padding-top: 36px;
    padding-bottom: 96px;
}

.wandy-pricing-card {
    max-width: 900px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(18, 183, 106, 0.16), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #edf6ff 100%);
}

.wandy-pricing-card .wandy-marketing-kicker {
    color: var(--wandy-blue);
    background: var(--wandy-blue-soft);
}

.wandy-pricing-card ul,
.wandy-pricing-card .wandy-marketing-button {
    grid-column: 1 / -1;
}

.wandy-pricing-card .wandy-marketing-button {
    width: fit-content;
}

.wandy-marketing-footer {
    width: 100%;
    display: grid;
    grid-template-columns:
        minmax(24px, 1fr)
        minmax(260px, 430px)
        minmax(0, 1fr)
        auto
        minmax(24px, 1fr);
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 30px 0 24px;
    border-radius: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #064a9f 0%, #075bbb 48%, #0b63ce 100%);
    box-shadow: 0 28px 70px rgba(7, 21, 47, 0.2);
}

.wandy-footer-brand {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.wandy-footer-brand .wandy-marketing-brand-mark {
    flex: 0 0 auto;
    color: var(--wandy-blue);
}

.wandy-footer-brand strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 950;
}

.wandy-footer-brand p,
.wandy-marketing-footer small {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.5;
}

.wandy-footer-links {
    grid-column: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.wandy-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 850;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.wandy-footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.wandy-footer-actions {
    grid-column: 4;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.wandy-footer-policy-links {
    grid-column: 2 / 5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.wandy-footer-policy-links span {
    width: 100%;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wandy-footer-policy-links a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 780;
    transition: color 160ms ease;
}

a.studio-dashboard-settings-tab {
    text-decoration: none;
}

.studio-dashboard-settings-tab span {
    margin-left: 4px;
    font-weight: 700;
}

.studio-dashboard-signals-section-tabs {
    margin: 2px 0 10px;
}

.wandy-footer-policy-links a:hover {
    color: #ffffff;
}

.wandy-footer-actions a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--wandy-blue-deep);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(7, 21, 47, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.wandy-footer-actions a:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(7, 21, 47, 0.24);
}

.wandy-marketing-footer small {
    grid-column: 2 / 5;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

@keyframes wandyFloatDemo {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 980px) {
    .wandy-marketing-nav {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .wandy-marketing-hero {
        padding-inline: clamp(18px, 4vw, 34px);
    }

    .wandy-faq-grid,
    .wandy-pricing-card {
        grid-template-columns: 1fr;
    }

    .wandy-testimonial-carousel {
        grid-auto-columns: minmax(300px, 82%);
    }

    .wandy-pricing-card .wandy-marketing-button {
        width: 100%;
    }

    .wandy-marketing-footer {
        grid-template-columns: minmax(18px, 1fr) minmax(0, 760px) minmax(18px, 1fr);
        text-align: left;
    }

    .wandy-footer-brand,
    .wandy-footer-links,
    .wandy-footer-actions,
    .wandy-footer-policy-links,
    .wandy-marketing-footer small {
        grid-column: 2;
    }

    .wandy-footer-links,
    .wandy-footer-actions {
        justify-content: flex-start;
    }
}

.legal-page-shell {
    width: min(100% - 32px, 1180px);
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 36px auto 80px;
}

body.page-terms-of-use .page-shell,
body.page-disclaimer .page-shell,
body.page-privacy-policy .page-shell,
body.page-cookies-policy .page-shell,
body.page-accessibility .page-shell,
body.page-security .page-shell,
body.page-bug-bounty .page-shell,
body.page-status .page-shell {
    width: 100%;
    max-width: none;
    padding: 0;
    background:
        linear-gradient(180deg, #eaf3ff 0%, #f7fbff 36%, #ffffff 100%);
}

.wandy-legal-nav {
    width: 100%;
    min-height: 98px;
    margin: 0;
    padding: 0 max(24px, calc((100vw - 1320px) / 2));
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(7, 21, 47, 0.07);
}

.wandy-legal-nav .wandy-marketing-brand,
.wandy-legal-nav .wandy-marketing-links a,
.wandy-legal-nav .wandy-marketing-button.is-ghost {
    color: #07152f;
}

.wandy-legal-nav .wandy-marketing-brand strong {
    color: #0b63ce;
    font-size: 1.45rem;
}

.wandy-legal-nav .wandy-marketing-brand small {
    color: #5d6f8d;
}

.wandy-legal-nav .wandy-marketing-brand-mark {
    color: #0b63ce;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.wandy-legal-nav .wandy-marketing-links {
    align-self: center;
    min-height: 0;
    height: 52px;
    justify-content: center;
    align-items: center;
    gap: 22px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.wandy-legal-nav .wandy-marketing-links a {
    position: relative;
    justify-content: center;
    min-height: 52px;
    padding: 0;
    color: #526783;
    background: transparent;
    transition: color 160ms ease;
}

.wandy-legal-nav .wandy-marketing-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 3px;
    border-radius: 999px;
    background: #0b63ce;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease;
}

.wandy-legal-nav .wandy-marketing-links a:hover {
    color: #0b63ce;
    background: transparent;
}

.wandy-legal-nav .wandy-marketing-links a:hover::after {
    transform: scaleX(1);
}

.wandy-legal-nav .wandy-marketing-button.is-ghost {
    border-color: transparent;
    background: #eef3fa;
}

.wandy-legal-nav .wandy-marketing-button.is-primary {
    color: #ffffff;
    border-color: #0b63ce;
    background: linear-gradient(135deg, #0b63ce, #075bbb);
    box-shadow: 0 14px 34px rgba(11, 99, 206, 0.24);
}

.site-footer.site-footer-legal {
    width: 100%;
    margin-top: 0;
}

body.page-login,
body.page-register,
body.page-forgot-password,
body.page-reset-password {
    background: #f7fbff;
    color: #07152f;
}

body.page-login .page-shell-auth,
body.page-register .page-shell-auth {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
    overflow: visible;
    background:
        linear-gradient(180deg, #eaf3ff 0%, #f7fbff 36%, #ffffff 100%);
}

body.page-forgot-password .page-shell-auth,
body.page-reset-password .page-shell-auth {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
    overflow: visible;
    background:
        linear-gradient(180deg, #eaf3ff 0%, #f7fbff 36%, #ffffff 100%);
}

body.page-login .page-shell-auth::before,
body.page-login .page-shell-auth::after,
body.page-register .page-shell-auth::before,
body.page-register .page-shell-auth::after,
body.page-forgot-password .page-shell-auth::before,
body.page-forgot-password .page-shell-auth::after,
body.page-reset-password .page-shell-auth::before,
body.page-reset-password .page-shell-auth::after {
    content: none;
}

body.page-login .auth-main-register-marketing,
body.page-register .auth-main-register-marketing {
    width: min(100% - 28px, 1200px);
    min-height: auto;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 52px) 0 64px;
}

body.page-forgot-password .auth-main-register-marketing,
body.page-reset-password .auth-main-register-marketing {
    width: min(100% - 28px, 1200px);
    min-height: auto;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 52px) 0 64px;
}

body.page-login .site-footer-register,
body.page-register .site-footer-register {
    width: 100%;
}

body.page-forgot-password .site-footer-register,
body.page-reset-password .site-footer-register {
    width: 100%;
}

body.page-register .auth-role-button.is-disabled,
body.page-register .auth-role-button:disabled {
    cursor: not-allowed;
    color: #8da0bd;
    background: #eef3fa;
    opacity: 0.62;
}

body.page-register .auth-role-button.is-disabled:hover,
body.page-register .auth-role-button:disabled:hover {
    transform: none;
    color: #8da0bd;
    background: #eef3fa;
}

@media (max-width: 1100px) {
    .wandy-legal-nav {
        grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
        min-height: 86px;
    }

    .wandy-legal-nav .wandy-marketing-links {
        gap: 2px;
        height: 46px;
        min-height: 0;
        padding-inline: 0;
    }

    .wandy-legal-nav .wandy-marketing-links a {
        min-height: 46px;
        padding: 0;
        font-size: 0.86rem;
    }

    .wandy-legal-nav .wandy-marketing-links a::after {
        bottom: 4px;
    }

    .wandy-legal-nav .wandy-marketing-button {
        padding-inline: 12px;
    }
}

@media (max-width: 860px) {
    .wandy-legal-nav {
        min-height: 76px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding-inline: 16px;
    }

    .wandy-legal-nav .wandy-marketing-links {
        display: none;
    }

    .wandy-legal-nav .wandy-marketing-actions {
        gap: 8px;
    }

    .wandy-legal-nav .wandy-marketing-actions .wandy-marketing-button.is-ghost {
        display: none;
    }
}

@media (max-width: 640px) {
    .wandy-legal-nav {
        grid-template-columns: 1fr;
        padding-block: 12px;
    }

    .wandy-legal-nav .wandy-marketing-actions {
        justify-content: stretch;
    }
}

.legal-sidebar {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 18px;
    padding: 20px;
    border: 1px solid #d8e5f7;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(7, 21, 47, 0.08);
}

.legal-sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #07152f;
    font-weight: 950;
}

.legal-sidebar nav {
    display: grid;
    gap: 8px;
}

.legal-sidebar nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #5d6f8d;
    font-weight: 820;
    transition: color 160ms ease, background-color 160ms ease;
}

.legal-sidebar nav a:hover,
.legal-sidebar nav a.is-active {
    color: #0b63ce;
    background: #e8f2ff;
}

.legal-document {
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid #d8e5f7;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(7, 21, 47, 0.08);
}

.legal-eyebrow {
    color: #0b63ce;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-document h1 {
    max-width: 850px;
    margin: 12px 0;
    color: #07152f;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.legal-summary {
    max-width: 820px;
    margin: 0;
    color: #5d6f8d;
    font-size: 1.12rem;
    line-height: 1.7;
}

.legal-updated {
    margin: 16px 0 0;
    color: #70819d;
    font-size: 0.92rem;
    font-weight: 780;
}

.legal-warning {
    display: grid;
    gap: 5px;
    margin: 28px 0;
    padding: 16px 18px;
    border: 1px solid #b9d7ff;
    border-radius: 16px;
    color: #07152f;
    background: #eef6ff;
}

.legal-warning span {
    color: #526783;
    line-height: 1.6;
}

.legal-section {
    padding: 28px 0;
    border-top: 1px solid #e6eef9;
}

.legal-section h2 {
    margin: 0 0 12px;
    color: #07152f;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    letter-spacing: 0;
}

.legal-section p {
    margin: 0 0 12px;
    color: #526783;
    line-height: 1.78;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .legal-page-shell {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .legal-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .wandy-marketing-nav {
        width: min(100% - 20px, 1200px);
        padding: 14px;
    }

    .wandy-marketing-hero,
    .wandy-marketing-section {
        width: min(100% - 20px, 1200px);
    }

    .wandy-marketing-hero {
        border-radius: 24px;
    }

    .wandy-marketing-hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.4rem);
    }

    .wandy-marketing-button.is-large {
        width: 100%;
    }

    .wandy-product-demo {
        border-radius: 20px;
    }

    .wandy-marketing-footer {
        width: 100%;
        padding: 24px 0 22px;
        border-radius: 0;
    }
}

/* Full-width LifeSure-inspired home header and market hero */
.wandy-marketing-topbar {
    width: 100%;
    background: #eef3fa;
    border-bottom: 1px solid #d9e5f4;
    color: #526783;
}

.wandy-marketing [data-scroll-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 520ms ease, transform 520ms ease;
    will-change: opacity, transform;
}

.wandy-marketing [data-scroll-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .wandy-marketing [data-scroll-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.wandy-marketing-topbar-inner {
    width: min(100% - 48px, 1320px);
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0 auto;
    font-size: 0.9rem;
    font-weight: 750;
}

.wandy-marketing-topbar-inner span,
.wandy-marketing-topbar-social,
.wandy-marketing-topbar-social a {
    display: inline-flex;
    align-items: center;
}

.wandy-marketing-topbar-inner i {
    color: var(--wandy-blue);
}

.wandy-marketing-topbar-inner span {
    gap: 8px;
}

.wandy-marketing-topbar-social {
    gap: 4px;
    margin-left: auto;
}

.wandy-marketing-topbar-social a {
    width: 32px;
    height: 32px;
    justify-content: center;
    border-radius: 999px;
    color: var(--wandy-blue);
    transition: background-color 160ms ease, transform 160ms ease;
}

.wandy-marketing-topbar-social a:hover {
    background: #dbeafe;
    transform: translateY(-2px);
}

.wandy-marketing .wandy-marketing-nav {
    width: 100%;
    min-height: 98px;
    margin: 0;
    padding: 0 max(24px, calc((100vw - 1320px) / 2));
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(7, 21, 47, 0.07);
}

.wandy-marketing .wandy-marketing-brand,
.wandy-marketing .wandy-marketing-links a,
.wandy-marketing .wandy-marketing-button.is-ghost {
    color: var(--wandy-ink);
}

.wandy-marketing .wandy-marketing-brand strong {
    color: var(--wandy-blue);
    font-size: 1.45rem;
}

.wandy-marketing .wandy-marketing-brand small {
    color: var(--wandy-muted);
}

.wandy-marketing .wandy-marketing-links {
    align-self: stretch;
    min-height: 98px;
    justify-content: center;
    align-items: center;
    gap: 22px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.wandy-marketing .wandy-marketing-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 98px;
    padding: 0 0;
    color: #526783;
    background: transparent;
    transition: color 160ms ease;
}

.wandy-marketing .wandy-marketing-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    height: 3px;
    border-radius: 999px;
    background: var(--wandy-blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease;
}

.wandy-marketing .wandy-marketing-links a:hover {
    color: var(--wandy-blue);
    background: transparent;
}

.wandy-marketing .wandy-marketing-links a:hover::after {
    transform: scaleX(1);
}

.wandy-marketing .wandy-marketing-nav .wandy-marketing-button.is-ghost {
    border-color: transparent;
    background: #eef3fa;
}

.wandy-marketing .wandy-marketing-nav .wandy-marketing-button.is-primary {
    color: #ffffff;
    border-color: var(--wandy-blue);
    background: linear-gradient(135deg, #0b63ce, #075bbb);
    box-shadow: 0 14px 34px rgba(11, 99, 206, 0.24);
}

.wandy-marketing .wandy-marketing-hero {
    width: 100%;
    min-height: 700px;
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    margin: 0;
    padding: clamp(52px, 7vw, 92px) max(28px, calc((100vw - 1320px) / 2));
    border-radius: 0;
    background: #0757ad;
    box-shadow: none;
}

.wandy-marketing .wandy-marketing-hero::before {
    opacity: 0.22;
}

.wandy-market-hero-art {
    display: grid;
    place-items: center;
    min-width: 0;
    animation: wandyFloatDemo 6s ease-in-out infinite;
}

.wandy-market-hero-art svg {
    width: min(100%, 650px);
    height: auto;
    display: block;
}

.wandy-marketing .wandy-marketing-hero-copy {
    justify-items: center;
    text-align: center;
}

.wandy-marketing .wandy-marketing-hero h1 {
    max-width: 720px;
    font-size: clamp(3.2rem, 5.8vw, 5.6rem);
    line-height: 1.06;
}

.wandy-marketing .wandy-marketing-hero p {
    max-width: 680px;
    font-size: clamp(1rem, 1.35vw, 1.28rem);
    font-weight: 750;
}

.wandy-marketing .wandy-marketing-hero-actions,
.wandy-marketing .wandy-marketing-proof {
    justify-content: center;
}

.wandy-platform-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: stretch;
}

.wandy-platform-copy,
.wandy-platform-panel {
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(7, 21, 47, 0.08);
}

.wandy-platform-copy {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(34px, 5vw, 58px);
}

.wandy-platform-copy > span {
    color: var(--wandy-blue);
    font-size: 1.22rem;
    font-weight: 850;
}

.wandy-platform-copy h2 {
    max-width: 560px;
    margin: 0;
    color: var(--wandy-ink);
    font-size: clamp(2.35rem, 4vw, 4.05rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.wandy-platform-copy p {
    max-width: 610px;
    margin: 0;
    color: var(--wandy-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.wandy-platform-copy ul {
    display: grid;
    gap: 14px;
    margin: 4px 0 10px;
    padding: 0;
    list-style: none;
}

.wandy-platform-copy li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--wandy-ink);
    font-weight: 800;
}

.wandy-platform-copy li i {
    margin-top: 3px;
    color: var(--wandy-blue);
}

.wandy-platform-copy .wandy-marketing-button {
    width: fit-content;
}

.wandy-platform-panel {
    display: grid;
    gap: 24px;
    padding: clamp(30px, 4vw, 48px);
}

.wandy-platform-visual {
    display: grid;
    place-items: center;
    min-height: 264px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #f2f6fb, #e8f2ff);
}

.wandy-platform-visual svg {
    width: min(100%, 560px);
    height: auto;
}

.wandy-platform-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.wandy-platform-stats div {
    min-height: 112px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 16px;
    border-radius: 8px;
    background: #f2f6fb;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.wandy-platform-stats div:hover {
    transform: translateY(-4px);
    background: #e8f2ff;
    box-shadow: 0 20px 46px rgba(11, 99, 206, 0.14);
}

.wandy-platform-stats strong {
    color: var(--wandy-blue);
    font-size: clamp(2rem, 3vw, 2.45rem);
    line-height: 1;
    font-weight: 950;
}

.wandy-platform-stats span {
    color: var(--wandy-ink);
    font-size: clamp(1rem, 1.45vw, 1.34rem);
    font-weight: 850;
    line-height: 1.2;
}

@media (max-width: 1100px) {
    .wandy-marketing .wandy-marketing-nav {
        grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
        min-height: 86px;
    }

    .wandy-marketing .wandy-marketing-links {
        gap: 2px;
        min-height: 86px;
        padding-inline: 0;
    }

    .wandy-marketing .wandy-marketing-links a {
        min-height: 86px;
        padding: 0;
        font-size: 0.86rem;
    }

    .wandy-marketing .wandy-marketing-links a::after {
        bottom: 19px;
    }

    .wandy-marketing .wandy-marketing-button {
        padding-inline: 12px;
    }

    .wandy-marketing .wandy-marketing-hero {
        min-height: 560px;
        grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1fr);
        gap: 18px;
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .wandy-market-hero-art svg {
        width: min(100%, 480px);
    }

    .wandy-marketing .wandy-marketing-hero h1 {
        font-size: clamp(2.6rem, 5vw, 4.4rem);
    }
}

@media (max-width: 860px) {
    .wandy-marketing-topbar-inner {
        width: min(100% - 24px, 1320px);
        gap: 12px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .wandy-marketing-topbar-social {
        margin-left: 0;
    }

    .wandy-marketing .wandy-marketing-nav {
        min-height: 76px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding-inline: 16px;
    }

    .wandy-marketing .wandy-marketing-links {
        display: none;
    }

    .wandy-marketing .wandy-marketing-actions {
        gap: 8px;
    }

    .wandy-marketing .wandy-marketing-actions .wandy-marketing-button.is-ghost {
        display: none;
    }

    .wandy-marketing .wandy-marketing-hero {
        min-height: calc(100vh - 116px);
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        padding: 28px 18px;
        gap: 10px;
    }

    .wandy-market-hero-art svg {
        width: min(100%, 340px);
    }

    .wandy-marketing .wandy-marketing-hero h1 {
        font-size: clamp(2.15rem, 5vw, 3rem);
    }

    .wandy-marketing .wandy-marketing-hero p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .wandy-marketing .wandy-marketing-proof span {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .wandy-platform-range {
        gap: 16px;
    }

    .wandy-platform-copy,
    .wandy-platform-panel {
        padding: 24px;
    }

    .wandy-platform-copy h2 {
        font-size: clamp(2rem, 4.4vw, 2.8rem);
    }

    .wandy-platform-copy p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .wandy-platform-copy ul {
        gap: 10px;
    }

    .wandy-platform-stats {
        gap: 12px;
    }

    .wandy-platform-stats div {
        min-height: 92px;
        padding: 12px;
    }

    .wandy-platform-visual {
        min-height: 190px;
    }
}

@media (max-width: 640px) {
    .wandy-marketing .wandy-marketing-nav {
        grid-template-columns: 1fr;
        padding-block: 12px;
    }

    .wandy-marketing .wandy-marketing-actions {
        justify-content: stretch;
    }

    .wandy-marketing .wandy-marketing-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 32px 18px 42px;
    }

    .wandy-market-hero-art {
        order: 2;
    }

    .wandy-marketing .wandy-marketing-hero-copy {
        order: 1;
    }

    .wandy-platform-range {
        grid-template-columns: 1fr;
    }

    .wandy-platform-copy .wandy-marketing-button {
        width: 100%;
    }
}

/* Unified blue footer for public Wandy pages */
.site-footer,
.site-footer.wandy-marketing-footer {
    width: 100%;
    display: block;
    margin: 0;
    padding: 34px max(18px, calc((100vw - 1320px) / 2)) 18px;
    border: 0;
    border-radius: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 9% 0%, rgba(255, 255, 255, 0.18), transparent 26%),
        radial-gradient(circle at 100% 18%, rgba(125, 211, 252, 0.22), transparent 28%),
        linear-gradient(135deg, #052f6f 0%, #075bbb 54%, #0b63ce 100%);
    box-shadow: none;
}

.site-footer .footer-top {
    display: grid;
    gap: 28px;
}

.site-footer .footer-brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.site-footer .footer-brand {
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 950;
}

.site-footer .footer-brand-mark {
    background: #ffffff;
    color: #075bbb;
    box-shadow: 0 12px 30px rgba(4, 38, 88, 0.22);
}

.site-footer .footer-socials a {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.1);
}

.site-footer .footer-socials a:hover {
    color: #075bbb;
    background: #ffffff;
    transform: translateY(-2px);
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(150px, 1fr) minmax(150px, 1fr);
    gap: clamp(22px, 5vw, 86px);
}

.site-footer .footer-grid h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 950;
}

.site-footer .footer-grid ul {
    gap: 10px;
}

.site-footer .footer-grid a {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
    font-weight: 720;
}

.site-footer .footer-grid a:hover {
    color: #ffffff;
}

.site-footer .footer-disclaimer,
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer .footer-disclaimer {
    margin-top: 30px;
    padding-top: 22px;
}

.site-footer .footer-disclaimer p,
.site-footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-disclaimer p {
    max-width: 1120px;
}

.site-footer .footer-bottom {
    margin-top: 22px;
    padding-top: 16px;
}

.site-footer .footer-locale-button {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer .footer-locale-button.is-active,
.site-footer .footer-locale-button:hover {
    color: #ffffff;
}

@media (max-width: 980px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 42px;
    }
}

@media (max-width: 640px) {
    .site-footer,
    .site-footer.wandy-marketing-footer {
        padding-inline: 18px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .site-footer .footer-bottom {
        align-items: flex-start;
    }
}
