/* Scoped copy of the production Studio styles; keeps the public preview aligned with Studio. */
@scope (.home-studio) {



:scope {
    --studio-bg: #ebe8e3;
    --studio-surface: #ffffff;
    --studio-sidebar: #f7f5f2;
    --studio-border: #ddd8d2;
    --studio-text: #1a1a1a;
    --studio-muted: #6b6560;
    --studio-accent: #1a1a1a;
    --studio-hover: rgba(26, 26, 26, 0.06);
    --studio-active: rgba(26, 26, 26, 0.1);
    --studio-sidebar-w: 268px;
    --studio-sidebar-w-collapsed: 72px;
    --studio-radius: 14px;
    --studio-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--studio-text);
    background: var(--studio-bg);
}


body.studio-page {
    overflow: hidden !important;
}

[v-cloak] { display: none !important; }

#studio-app {
    height: 100%;
}

.studio-app {
    display: flex;
    height: 100vh;
    width: 100%;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 255, 255, 0.85), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(232, 228, 220, 0.9), transparent 50%),
        var(--studio-bg);
}


.studio-sidebar {
    width: var(--studio-sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--studio-sidebar);
    border-right: 1px solid var(--studio-border);
    transition: width 0.22s ease;
    z-index: 40;
    position: relative;
    overflow: hidden;
}


.studio-sidebar.has-user-panel {
    overflow: visible;
}

.studio-app.is-collapsed .studio-sidebar,
.studio-sidebar.is-collapsed {
    width: var(--studio-sidebar-w-collapsed);
}

.studio-app.is-collapsed .studio-sidebar-top,
.studio-sidebar.is-collapsed .studio-sidebar-top {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 0.45rem 0.55rem;
    gap: 0;
}

.studio-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0.9rem 0.85rem;
    gap: 0.5rem;
    min-height: 64px;
}

.studio-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    overflow: hidden;
}

.studio-brand-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 7px;
}

.studio-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
}


.studio-brand-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--studio-text);
    padding: 0;
    flex-shrink: 0;
}

.studio-brand-toggle:hover {
    background: var(--studio-hover);
}

.studio-brand-toggle-logo,
.studio-brand-toggle-expand {
    position: absolute;
    inset: 0;
    margin: auto;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.studio-brand-toggle-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    opacity: 1;
    transform: scale(1);
}

.studio-brand-toggle-logo img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: block;
}

.studio-brand-toggle-expand {
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

.studio-brand-toggle:hover .studio-brand-toggle-logo,
.studio-brand-toggle:focus-visible .studio-brand-toggle-logo {
    opacity: 0;
    transform: scale(0.9);
}

.studio-brand-toggle:hover .studio-brand-toggle-expand,
.studio-brand-toggle:focus-visible .studio-brand-toggle-expand {
    opacity: 1;
    transform: scale(1);
}

.studio-collapse-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--studio-border);
    background: var(--studio-surface);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--studio-muted);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    transition: background 0.15s, color 0.15s;
}

.studio-collapse-btn:hover {
    background: var(--studio-hover);
    color: var(--studio-text);
}

.studio-collapse-btn svg {
    width: 16px;
    height: 16px;
}

.studio-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.35rem 0.65rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.studio-nav-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--studio-muted);
    padding: 0.65rem 0.7rem 0.35rem;
}

.studio-app.is-collapsed .studio-nav-label,
.studio-sidebar.is-collapsed .studio-nav-label {
    display: none;
}

.studio-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    color: var(--studio-text);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    transition: background 0.15s;
    box-sizing: border-box;
}

.studio-nav-item:hover {
    background: var(--studio-hover);
}

.studio-nav-item.is-active {
    background: var(--studio-active);
    font-weight: 600;
}

.studio-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.85;
}

.studio-nav-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-nav-external {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0.45;
}

.studio-nav-item--external:hover .studio-nav-external {
    opacity: 0.75;
}

.studio-app.is-collapsed .studio-nav-text,
.studio-sidebar.is-collapsed .studio-nav-text,
.studio-app.is-collapsed .studio-nav-external,
.studio-sidebar.is-collapsed .studio-nav-external {
    display: none;
}

.studio-app.is-collapsed .studio-nav-item,
.studio-sidebar.is-collapsed .studio-nav-item {
    justify-content: center;
    padding: 0.7rem;
}


.studio-more-wrap {
    position: relative;
}

.studio-flyout {
    position: fixed;
    min-width: 220px;
    background: var(--studio-surface);
    border: 1px solid var(--studio-border);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(26, 26, 26, 0.16);
    padding: 0.5rem;
    z-index: 80;
    animation: studioFlyIn 0.16s ease;
}

.studio-flyout-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--studio-muted);
    padding: 0.4rem 0.75rem 0.3rem;
}

@keyframes studioFlyIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.studio-flyout-item {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    text-align: left;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--studio-text);
}

.studio-flyout-item:hover,
.studio-flyout-item.is-active {
    background: var(--studio-hover);
}

.studio-flyout-item.is-active {
    font-weight: 600;
}


.studio-sidebar-footer {
    border-top: 1px solid var(--studio-border);
    padding: 0.75rem;
    position: relative;
}

.studio-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.55rem 0.5rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    text-align: left;
}

.studio-user-trigger:hover {
    background: var(--studio-hover);
}

.studio-user-avatar,
.studio-user-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.studio-user-avatar {
    object-fit: cover;
}

.studio-user-avatar-fallback {
    background: linear-gradient(135deg, #3d3d3d, #1a1a1a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.studio-user-meta {
    min-width: 0;
    flex: 1;
}

.studio-user-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-user-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--studio-muted);
}

.studio-app.is-collapsed .studio-user-meta,
.studio-app.is-collapsed .studio-user-chevron,
.studio-sidebar.is-collapsed .studio-user-meta,
.studio-sidebar.is-collapsed .studio-user-chevron {
    display: none;
}

.studio-user-chevron {
    width: 16px;
    height: 16px;
    color: var(--studio-muted);
    flex-shrink: 0;
}

.studio-guest-signin {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--studio-border);
    background: var(--studio-surface);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--studio-text);
}

.studio-guest-signin:hover {
    background: var(--studio-hover);
}

.studio-app.is-collapsed .studio-guest-signin,
.studio-sidebar.is-collapsed .studio-guest-signin {
    padding: 0.65rem;
    font-size: 0;
}

.studio-app.is-collapsed .studio-guest-signin::after,
.studio-sidebar.is-collapsed .studio-guest-signin::after {
    content: "\2192";
    font-size: 1rem;
}


.studio-user-panel {
    position: absolute;
    left: 0.75rem;
    right: auto;
    bottom: calc(100% + 8px);
    width: min(340px, calc(100vw - 1.5rem));
    background: var(--studio-surface);
    border: 1px solid var(--studio-border);
    border-radius: 14px;
    box-shadow: var(--studio-shadow);
    padding: 0.85rem;
    z-index: 90;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    animation: studioFlyIn 0.16s ease;
}

.studio-app.is-collapsed .studio-user-panel,
.studio-sidebar.is-collapsed .studio-user-panel {
    left: calc(100% + 8px);
    right: auto;
    bottom: 0.75rem;
    width: min(340px, calc(100vw - 1.5rem));
}

.studio-panel-email {
    font-size: 0.82rem;
    color: var(--studio-muted);
    margin-bottom: 0.75rem;
    word-break: break-all;
}

.studio-credits-block {
    background: #faf9f7;
    border: 1px solid var(--studio-border);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.55rem;
}

.studio-credits-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.studio-credits-label {
    font-size: 0.8rem;
    font-weight: 600;
}

.studio-credits-label-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.studio-credit-details-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.68rem;
    font-weight: 500;
    color: #8a847c;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    line-height: 1;
}

.studio-credit-details-btn:hover {
    color: var(--studio-accent, #2563eb);
}

.studio-credit-details-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 60;
    width: min(250px, 72vw);
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    text-align: left;
}

.studio-credit-details-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a847c;
    margin-bottom: 0.45rem;
}

.studio-credit-details-total {
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--studio-text, #1a1a1a);
    margin-bottom: 0.55rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.studio-credit-details-item {
    margin-bottom: 0.45rem;
}

.studio-credit-details-item:last-child {
    margin-bottom: 0;
}

.studio-credit-details-item.inactive {
    opacity: 0.55;
}

.studio-credit-details-item-label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

.studio-credit-details-item-meta {
    font-size: 0.72rem;
    color: var(--studio-muted, #6b7280);
    line-height: 1.35;
    margin-top: 0.1rem;
}

.studio-credits-value {
    font-size: 1.05rem;
    font-weight: 700;
}

.studio-credits-value.is-low {
    color: #c1121f;
}

.studio-credits-expire {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--studio-muted);
}

.studio-credits-expire.is-expired {
    color: #9a3412;
}

.studio-credits-note {
    margin-top: 0.3rem;
    font-size: 0.68rem;
    color: #8a847c;
    line-height: 1.35;
}

.studio-panel-btn {
    width: 100%;
    margin-top: 0.45rem;
    padding: 0.65rem 0.85rem;
    border-radius: 9px;
    border: 1px solid var(--studio-border);
    background: var(--studio-surface);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--studio-text);
}

.studio-panel-btn:hover {
    background: var(--studio-hover);
}

.studio-panel-btn--primary {
    background: var(--studio-accent);
    color: #fff;
    border-color: var(--studio-accent);
}

.studio-panel-btn--primary:hover {
    background: #333;
}

.studio-panel-upgrade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.studio-panel-upgrade-btn .studio-pricing-top-btn__icon {
    width: 0.95rem;
    height: 0.95rem;
    fill: #ff7a1a;
    flex-shrink: 0;
}

.studio-panel-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--studio-border);
}

.studio-panel-actions .studio-panel-btn {
    margin-top: 0;
    flex: 1;
}

.studio-panel-btn--exit {
    background: #f5f3f0;
}


.studio-main {
    flex: 1 1 0%;
    width: auto !important;
    max-width: none;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--studio-surface);
}


.studio-dismiss-overlay {
    position: absolute;
    inset: 0;
    z-index: 35;
    background: transparent;
    cursor: default;
}

.studio-main-header {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    z-index: 25;
}


.studio-main-header.has-title {
    position: relative;
    padding: 1.35rem 1.75rem 0.6rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.07);
    background: var(--studio-surface);
    pointer-events: auto;
}

.studio-main-header-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.studio-main-header.has-title .studio-pricing-top-btn {
    margin-top: 0.15rem;
    flex-shrink: 0;
}


.studio-main-header:not(.has-title) {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: auto;
    padding: 0.85rem 1.25rem;
    pointer-events: none;
    background: transparent;
    border: none;
}

.studio-main-header-spacer {
    display: none;
}

.studio-pricing-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.18);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.studio-pricing-top-btn__icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    fill: #ff7a1a;
}

.studio-pricing-top-btn:hover {
    background: #111;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26, 26, 26, 0.28);
}

.studio-workspace {
    flex: 1;
    min-height: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.studio-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
}

.studio-tool-pane {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: transparent;
}

.studio-tool-pane.is-scroll {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.studio-tool-pane[hidden] {
    display: none !important;
}

.studio-tool-loading {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: color-mix(in srgb, var(--studio-surface) 88%, transparent);
    backdrop-filter: blur(2px);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--studio-muted);
    pointer-events: none;
}

.studio-tool-loading-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2.5px solid rgba(26, 26, 26, 0.12);
    border-top-color: #1a1a1a;
    animation: studioSpin 0.7s linear infinite;
}

@keyframes studioSpin {
    to { transform: rotate(360deg); }
}

.studio-tool-pane--iframe {
    overflow: hidden;
}

.studio-tool-pane--iframe .studio-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

.studio-workspace {
    position: relative;
}

.studio-doc-root,
.studio-doc-root .page-container,
.studio-doc-root .content-wrapper {
    height: 100%;
    min-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.studio-doc-root .header {
    height: 100%;
    min-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    flex: 1;
    text-align: left;
}

.studio-doc-root .title-container,
.studio-doc-root .hero-product-switch,
.studio-doc-root .header-actions,
.studio-doc-root .user-avatar-container,
.studio-doc-root nav.top-navbar {
    display: none !important;
}

.studio-doc-root .hero-stage,
.studio-doc-root .hero-stage-panel,
.studio-doc-root.homepage-en .hero-stage,
.studio-doc-root.homepage-en .hero-stage-panel {
    flex: 1;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.studio-doc-root .hero-switcher {
    flex: 0 0 auto;
    margin: 0.85rem 1.5rem 0.55rem;
}

.studio-doc-root .main-container,
.studio-doc-root .homepage-doc-main {
    flex: 1 1 0%;
    min-height: 0 !important;
    height: auto;
    max-height: none;
    width: calc(100% - 2.5rem);
    max-width: none;
    margin: 0 1.25rem 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.studio-doc-root .chat-container {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    height: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.studio-doc-root .chat-messages {
    flex: 1 1 auto;
    min-height: 0;
}

.studio-doc-root .upload-container {
    flex-shrink: 0;
    margin-top: auto;
}

.studio-doc-root .homepage-mode-root,
.studio-doc-root .homepage-mode-root > div,
.studio-doc-root .homepage-mode-root .word-converter-workspace,
.studio-doc-root .homepage-mode-shell {
    flex: 1 1 0%;
    min-height: 0 !important;
    height: 100%;
    max-width: none;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.studio-doc-root .tool-panels {
    flex: 1 1 0%;
    min-height: 0;
    height: 100%;
    margin: 0;
    align-items: stretch;
    grid-template-rows: minmax(0, 1fr);
}

.studio-doc-root .tool-panel,
.studio-doc-root .preview-panel {
    min-height: 0 !important;
    max-height: none !important;
    height: 100%;
    overflow: hidden;
}

.studio-doc-root .tool-panels.is-height-locked .tool-panel,
.studio-doc-root .tool-panels.is-height-locked .preview-panel {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
}

.studio-doc-root .upload-dropzone,
.studio-doc-root .result-viewport,
.studio-doc-root .homepage-mode-shell-dropzone,
.studio-doc-root .homepage-mode-shell-result {
    flex: 1 1 0%;
    min-height: 0 !important;
}

.studio-doc-root .upload-placeholder,
.studio-doc-root .homepage-mode-shell-placeholder {
    min-height: 0;
}

.studio-format-workspace,
.studio-format-workspace .word-converter-workspace {
    flex: 1;
    min-height: 0;
    height: 100%;
}

.studio-pane-source .checker-card,
.studio-citation-checker .checker-card,
.studio-source-finder .checker-card {
    margin: 1rem auto 2rem;
    max-width: 1120px;
}

.studio-tool-inner {
    min-height: 100%;
}


.studio-mode-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 1.25rem 0.75rem;
}

.studio-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--studio-border);
    background: transparent;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--studio-muted);
}

.studio-chip:hover {
    background: var(--studio-hover);
    color: var(--studio-text);
}

.studio-chip.is-active {
    background: var(--studio-accent);
    border-color: var(--studio-accent);
    color: #fff;
}


.studio-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.45);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: studioFade 0.18s ease;
}

@keyframes studioFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.studio-pricing-modal {
    background: var(--studio-surface);
    border-radius: 18px;
    width: min(960px, 100%);
    max-height: min(90vh, 820px);
    overflow: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    padding: 1.75rem 1.75rem 1.25rem;
    position: relative;
}

.studio-pricing-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f3f0;
    border-radius: 50%;
    font-size: 1.35rem;
    cursor: pointer;
    line-height: 1;
    color: var(--studio-muted);
}

.studio-pricing-close:hover {
    background: #ebe8e3;
    color: var(--studio-text);
}

.studio-pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-right: 1.5rem;
}

.studio-pricing-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    margin: 0 0 0.4rem;
}

.studio-pricing-header p {
    margin: 0;
    color: var(--studio-muted);
    font-size: 0.95rem;
}

.studio-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.studio-lite-plan-row {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 0.8rem 1.1rem;
    border: 1px dashed var(--studio-border);
    border-radius: 12px;
    background: rgba(250, 249, 247, 0.8);
}

.studio-lite-plan-main {
    min-width: 0;
}

.studio-lite-plan-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--studio-text);
    line-height: 1.3;
    white-space: nowrap;
}

.studio-lite-plan-price {
    margin-top: 0.15rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--studio-text);
    white-space: nowrap;
}

.studio-lite-plan-price span {
    margin-left: 0.15rem;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--studio-muted);
}

.studio-lite-plan-price em {
    margin-left: 0.55rem;
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--studio-muted);
}

.studio-lite-plan-note {
    margin-top: 0.15rem;
    font-size: 0.74rem;
    color: var(--studio-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-lite-plan-buy {
    box-sizing: border-box;
    width: max-content;
    min-width: 8.5rem;
    max-width: 100%;
    justify-self: end;
    padding: 0.55rem 1rem;
    border-radius: 9px;
    border: 1px solid var(--studio-border);
    background: #f7f5f2;
    color: var(--studio-text);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.studio-lite-plan-buy:hover:not(:disabled) {
    background: #efece7;
    border-color: #cfc8bc;
}

.studio-lite-plan-buy:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 840px) {
    .studio-pricing-grid {
        grid-template-columns: 1fr;
    }

    .studio-lite-plan-row {
        grid-template-columns: 1fr;
    }

    .studio-lite-plan-title,
    .studio-lite-plan-price,
    .studio-lite-plan-note {
        white-space: normal;
    }

    .studio-lite-plan-buy {
        width: 100%;
        justify-self: stretch;
    }
}

.studio-plan-card {
    border: 1px solid var(--studio-border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    background: #faf9f7;
    position: relative;
}

.studio-plan-card.is-featured {
    background: #fff;
    border-color: #1a1a1a;
    box-shadow: 0 8px 28px rgba(26, 26, 26, 0.08);
}

.studio-plan-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #1a1a1a;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.studio-plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.studio-plan-price {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem 0.45rem;
}

.studio-plan-price-suffix {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--studio-muted);
}

.studio-plan-original-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #9a948c;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: #9a948c;
}

.studio-plan-discount {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #3d8b6e;
}

.studio-plan-credits {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.studio-plan-note {
    font-size: 0.78rem;
    color: var(--studio-muted);
    margin-bottom: 0.75rem;
}

.studio-plan-note strong {
    font-weight: 700;
    color: var(--studio-text);
}

.studio-plan-features {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    flex: 1;
}

.studio-plan-features li {
    font-size: 0.82rem;
    padding: 0.3rem 0;
    color: #3d3d3d;
    padding-left: 0;
    position: relative;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.studio-plan-features li::before {
    content: none;
}

.studio-plan-features li.studio-plan-feature-group {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.studio-plan-feature-parent {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.studio-plan-feature-parent:hover .studio-plan-feature-label {
    color: #1a1a1a;
}

.studio-plan-feature-label {
    flex: 1 1 auto;
    min-width: 0;
}

.studio-plan-feature-caret {
    width: 0.7rem;
    height: 0.7rem;
    flex-shrink: 0;
    margin-left: 0.15rem;
    color: #8a847c;
    transition: transform 0.16s ease;
}

.studio-plan-feature-parent.is-open .studio-plan-feature-caret {
    transform: rotate(180deg);
}

.studio-plan-feature-children {
    list-style: none;
    margin: 0.15rem 0 0.2rem;
    padding: 0 0 0 1.35rem;
}

.studio-plan-feature-children li {
    padding: 0.18rem 0;
    color: #5a554e;
    font-size: 0.78rem;
    font-weight: 500;
}

.studio-plan-feature-children li.is-emphasis {
    font-weight: 600;
    color: #3d3d3d;
}

.studio-plan-child-mark {
    flex: 0 0 auto;
    color: #8a847c;
    line-height: 1.4;
}

.studio-plan-check {
    flex: 0 0 auto;
    color: #2d6a4f;
    font-weight: 700;
    line-height: 1.4;
}

.studio-plan-buy {
    width: 100%;
    padding: 0.7rem;
    border-radius: 9px;
    border: none;
    background: #1a1a1a;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.studio-plan-buy:hover:not(:disabled) {
    background: #333;
}

.studio-plan-buy:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.studio-plan-buy.is-upgrade {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.studio-plan-buy.is-upgrade:hover:not(:disabled) {
    background: linear-gradient(135deg, #43a047, #1b5e20);
}

.studio-pricing-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--studio-border);
    font-size: 0.82rem;
    color: var(--studio-muted);
}

.studio-pricing-footer a {
    color: var(--studio-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}


.studio-login-modal {
    background: var(--studio-surface);
    border-radius: 16px;
    width: min(400px, 100%);
    padding: 1.75rem;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.studio-login-modal h2 {
    font-family: 'Playfair Display', Georgia, serif;
    margin: 0 0 1.25rem;
    font-size: 1.4rem;
    text-align: center;
}

.studio-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--studio-border);
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.studio-google-btn:hover {
    background: #faf9f7;
}

.studio-google-btn svg {
    width: 20px;
    height: 20px;
}

.studio-login-error {
    margin-top: 0.75rem;
    color: #c1121f;
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 720px) {
    .studio-sidebar {
        position: absolute;
        height: 100%;
        z-index: 50;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
    }
    .studio-app.is-collapsed .studio-sidebar,
    .studio-sidebar.is-collapsed {
        width: 0;
        border: none;
        overflow: hidden;
        padding: 0;
    }
    .studio-main-header:not(.has-title) {
        padding-left: 3.5rem;
    }
    .studio-mobile-toggle {
        position: absolute;
        left: 0.75rem;
        top: 0.85rem;
        z-index: 45;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        border: 1px solid var(--studio-border);
        background: var(--studio-surface);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
}

@media (min-width: 721px) {
    .studio-mobile-toggle {
        display: none;
    }
}


.studio-doc-root .hero-switcher {
    margin: 1rem 1.5rem 0.75rem;
    justify-content: flex-start;
    gap: 0.45rem 0.65rem;
}

.studio-doc-root.homepage-en .hero-switcher-prefix {
    font-size: 1.55rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--studio-muted);
}

.studio-doc-root.homepage-en .hero-dropdown-trigger {
    font-size: 1.95rem;
}

.studio-doc-root.homepage-en .hero-switcher-connector {
    font-size: 1.65rem;
}

.studio-doc-root.homepage-en .hero-switcher-suffix {
    font-size: 1.52rem;
    color: var(--studio-muted);
}


.studio-inner-header {
    padding: 1.35rem 1.75rem 0.6rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.07);
    margin-bottom: 0;
    background: transparent;
}


.studio-source-finder > .studio-inner-header,
.studio-citation-checker > .studio-inner-header {
    display: none;
}

.studio-inner-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--studio-text);
    margin: 0 0 0.15rem;
    line-height: 1.2;
}

.studio-inner-subtitle {
    font-size: 0.88rem;
    color: var(--studio-muted);
    margin: 0;
    line-height: 1.5;
}


#studio-pane-word-to-latex,
#studio-pane-latex-to-word {
    overflow: hidden;
}

#studio-pane-word-to-latex > div,
#studio-pane-latex-to-word > div {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.studio-format-tool {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.studio-format-tool > .studio-inner-header {
    flex-shrink: 0;
}

.studio-format-tool > .studio-format-workspace {
    flex: 1 1 auto;
    min-height: 0;
}

.studio-format-workspace .word-converter-workspace,
.studio-format-workspace.word-converter-workspace,
.studio-format-workspace .tool-panels {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: row;
}

.studio-format-workspace .tool-panel,
.studio-format-workspace .preview-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto;
}


.studio-source-finder,
.studio-citation-checker {
    display: block;
    height: auto;
    min-height: 100%;
    overflow: visible;
}

.studio-source-finder .citation-auth,
.studio-citation-checker .citation-auth {
    display: none !important;
}

.studio-source-finder .checker-card,
.studio-citation-checker .checker-card {
    margin: 1rem auto 2rem;
    max-width: 1120px;
    width: calc(100% - 2rem);
    padding: 1.25rem 1.75rem;
    overflow: visible;
    height: auto;
    flex-shrink: 0;
}

.studio-welcome-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(520px, 90vw);
    padding: 14px 44px 14px 20px;
    border-radius: 10px;
    background: rgba(26, 26, 26, 0.95);
    color: #f5f3f0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    animation: studioWelcomeToastIn 0.3s ease;
}

.studio-welcome-toast-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #f5f3f0;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.studio-welcome-toast-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

@keyframes studioWelcomeToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}


.studio-user-panel.has-settings-open {
    overflow: visible;
}

.studio-settings-wrap {
    position: relative;
    margin-top: 0.45rem;
}

.studio-settings-wrap .studio-panel-btn {
    margin-top: 0;
}

.studio-settings-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.studio-settings-trigger.is-active {
    background: var(--studio-active);
}

.studio-settings-chevron {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.studio-settings-trigger > .studio-settings-chevron {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
}

.studio-settings-flyout {
    position: absolute;
    left: calc(100% + 10px);
    top: 0;
    width: 196px;
    padding: 0.4rem;
    border-radius: 12px;
    border: 1px solid var(--studio-border);
    background: var(--studio-surface);
    box-shadow: var(--studio-shadow);
    z-index: 120;
    animation: studioFlyIn 0.14s ease;
}

.studio-settings-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.7rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--studio-text);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.studio-settings-item:hover,
.studio-settings-item.is-active {
    background: var(--studio-hover);
}

.studio-settings-item-value {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--studio-muted);
}

.studio-theme-submenu {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    width: 148px;
    padding: 0.4rem;
    border-radius: 12px;
    border: 1px solid var(--studio-border);
    background: var(--studio-surface);
    box-shadow: var(--studio-shadow);
    z-index: 121;
    animation: studioFlyIn 0.14s ease;
}

.studio-theme-option {
    width: 100%;
    display: block;
    padding: 0.62rem 0.75rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--studio-text);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.studio-theme-option:hover {
    background: var(--studio-hover);
}

.studio-theme-option.is-selected {
    background: var(--studio-active);
}


html[data-theme="dark"] {
    color-scheme: dark;
    --studio-bg: #141311;
    --studio-surface: #1c1a18;
    --studio-sidebar: #181614;
    --studio-border: #35312c;
    --studio-text: #f0ebe3;
    --studio-muted: #9b958c;
    --studio-accent: #ebe6de;
    --studio-hover: rgba(255, 255, 255, 0.06);
    --studio-active: rgba(255, 255, 255, 0.1);
    --studio-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    --ink: #f0ebe3;
    --ink-soft: #b7b1a8;
    --muted: #9b958c;
    --paper: #22201d;
    --canvas: #141311;
    --line: #3a3631;
    --line-strong: #4a453e;
    --green: #d4a84b;
    --green-deep: #e0b85c;
    --green-soft: #2a2418;
    --verified: #6fad97;
    --verified-soft: #1d2c27;
    --amber: #d4a84b;
    --amber-soft: #2a2418;
    --red: #e08996;
    --red-soft: #2c1c20;
    --blue: #d4a84b;
    --pink: #e0b85c;
}

html[data-theme="dark"] body.studio-page,
html[data-theme="dark"] body {
    background: var(--studio-bg);
    color: var(--studio-text);
}

html[data-theme="dark"] .studio-app {
    background:
        radial-gradient(1000px 520px at 8% -12%, rgba(212, 168, 75, 0.08), transparent 55%),
        radial-gradient(800px 480px at 100% 0%, rgba(255, 255, 255, 0.03), transparent 50%),
        var(--studio-bg);
}

html[data-theme="dark"] .studio-credits-block {
    background: #24221f;
}

html[data-theme="dark"] .studio-credit-details-popover {
    background: #2a2825;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .studio-credit-details-title,
html[data-theme="dark"] .studio-credit-details-btn {
    color: #8f8980;
}

html[data-theme="dark"] .studio-credit-details-total {
    color: #f3eee6;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .studio-credit-details-btn:hover {
    color: #93c5fd;
}

html[data-theme="dark"] .studio-credits-note {
    color: #8f8980;
}

html[data-theme="dark"] .studio-credits-value.is-low {
    color: #f07178;
}

html[data-theme="dark"] .studio-credits-expire.is-expired {
    color: #e0a070;
}

html[data-theme="dark"] .studio-panel-btn--primary {
    background: #ebe6de;
    color: #1a1816;
    border-color: #ebe6de;
}

html[data-theme="dark"] .studio-panel-btn--primary:hover {
    background: #f5f1ea;
}

html[data-theme="dark"] .studio-panel-btn--exit {
    background: #2a2723;
}

html[data-theme="dark"] .studio-frame {
    background: #1a1816;
}

html[data-theme="dark"] .studio-tool-loading {
    background: rgba(20, 19, 17, 0.82);
}

html[data-theme="dark"] .studio-tool-loading-spinner {
    border-color: rgba(240, 235, 227, 0.14);
    border-top-color: #ebe6de;
}

html[data-theme="dark"] .studio-plan-card {
    background: #22201d;
}

html[data-theme="dark"] .studio-plan-card.is-featured {
    background: #26231f;
    border-color: #ebe6de;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .studio-lite-plan-row {
    background: rgba(34, 32, 29, 0.9);
    border-color: rgba(235, 230, 222, 0.22);
}

html[data-theme="dark"] .studio-lite-plan-buy {
    background: #2a2723;
    border-color: rgba(235, 230, 222, 0.22);
    color: #ebe6de;
}

html[data-theme="dark"] .studio-lite-plan-buy:hover:not(:disabled) {
    background: #34312c;
    border-color: rgba(235, 230, 222, 0.35);
}

html[data-theme="dark"] .studio-plan-badge {
    background: #ebe6de;
    color: #1a1816;
}

html[data-theme="dark"] .studio-plan-features li {
    color: #c8c2b8;
}

html[data-theme="dark"] .studio-plan-feature-parent:hover .studio-plan-feature-label {
    color: #f0ebe3;
}

html[data-theme="dark"] .studio-plan-feature-caret {
    color: #9b958c;
}

html[data-theme="dark"] .studio-plan-feature-children li {
    color: #a8a198;
}

html[data-theme="dark"] .studio-plan-feature-children li.is-emphasis {
    color: #e6e0d6;
}

html[data-theme="dark"] .studio-plan-child-mark {
    color: #7a746c;
}

html[data-theme="dark"] .studio-plan-features li::before,
html[data-theme="dark"] .studio-plan-check {
    color: #6fad97;
}

html[data-theme="dark"] .studio-plan-buy {
    background: #ebe6de;
    color: #1a1816;
}

html[data-theme="dark"] .studio-plan-buy:hover:not(:disabled) {
    background: #f5f1ea;
}

html[data-theme="dark"] .studio-plan-discount {
    color: #7dcea0;
}

html[data-theme="dark"] .studio-plan-original-price {
    color: #7a746c;
    text-decoration-color: #7a746c;
}

html[data-theme="dark"] .studio-pricing-modal,
html[data-theme="dark"] .studio-login-modal {
    background: #1c1a18;
    color: var(--studio-text);
    border-color: var(--studio-border);
}

html[data-theme="dark"] .studio-modal-backdrop {
    background: rgba(0, 0, 0, 0.62);
}

html[data-theme="dark"] .studio-nav-item.is-active {
    background: var(--studio-active);
}

html[data-theme="dark"] .studio-flyout {
    background: var(--studio-surface);
}


html[data-theme="dark"] .studio-main .tool-panel,
html[data-theme="dark"] .studio-main .preview-panel,
html[data-theme="dark"] .studio-main .upload-dropzone,
html[data-theme="dark"] .studio-main .checker-card,
html[data-theme="dark"] .studio-main .finder-card,
html[data-theme="dark"] .studio-main .sf-card,
html[data-theme="dark"] .studio-doc-root .hero-stage-panel {
    background: #22201d !important;
    border-color: var(--studio-border) !important;
    color: var(--studio-text);
}

html[data-theme="dark"] .studio-main .panel-title,
html[data-theme="dark"] .studio-main .studio-inner-title,
html[data-theme="dark"] .studio-shell-title {
    color: var(--studio-text);
}

html[data-theme="dark"] .studio-main .studio-inner-subtitle,
html[data-theme="dark"] .studio-shell-subtitle,
html[data-theme="dark"] .studio-main .upload-credit-cost,
html[data-theme="dark"] .studio-main .upload-placeholder p {
    color: var(--studio-muted);
}

html[data-theme="dark"] .studio-main .action-button,
html[data-theme="dark"] .studio-main .panel-header-action {
    background: #ebe6de;
    color: #1a1816;
    border-color: #ebe6de;
}

html[data-theme="dark"] .studio-main .preview-nav-action,
html[data-theme="dark"] .studio-main .preview-side-arrow {
    background: #2a2723;
    color: var(--studio-text);
    border-color: var(--studio-border);
}

html[data-theme="dark"] .studio-main .markdown-body,
html[data-theme="dark"] .studio-main .result-content,
html[data-theme="dark"] .studio-main textarea,
html[data-theme="dark"] .studio-main input,
html[data-theme="dark"] .studio-main select {
    background: #1a1816;
    color: var(--studio-text);
    border-color: var(--studio-border);
}

html[data-theme="dark"] .studio-pricing-top-btn {
    background: #ebe6de;
    color: #1a1816;
    border-color: #ebe6de;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .studio-pricing-top-btn:hover {
    background: #f5f1ea;
}

html[data-theme="dark"] .studio-google-btn {
    background: #24221f;
    color: var(--studio-text);
}

html[data-theme="dark"] .studio-google-btn:hover {
    background: #2e2b27;
}

html[data-theme="dark"] .studio-mode-chips button,
html[data-theme="dark"] .studio-mode-chip {
    background: #24221f;
    color: var(--studio-text);
    border-color: var(--studio-border);
}

html[data-theme="dark"] .studio-dismiss-overlay {
    background: transparent;
}


html[data-theme="dark"] {
    --primary-color: #f0ebe3;
    --secondary-color: #2a2723;
    --text-color: #f0ebe3;
    --text-secondary: #c8c2b8;
    --border-color: #3a3530;
    --accent-color: #ebe6de;
    --shadow-color: rgba(0, 0, 0, 0.35);
    --bg-main: #141311;
    --bg-card: #22201d;
}


html[data-theme="dark"] .studio-doc-root .hero-switcher,
html[data-theme="dark"] .studio-doc-root .hero-switcher-prefix,
html[data-theme="dark"] .studio-doc-root .hero-switcher-suffix,
html[data-theme="dark"] .studio-doc-root .hero-switcher-connector,
html[data-theme="dark"] .studio-doc-root .hero-dropdown-trigger,
html[data-theme="dark"] .studio-doc-root .hero-dropdown-label {
    color: #f0ebe3 !important;
}

html[data-theme="dark"] .studio-doc-root.homepage-en .hero-switcher-prefix,
html[data-theme="dark"] .studio-doc-root.homepage-en .hero-switcher-suffix {
    color: #d2cbc0 !important;
}

html[data-theme="dark"] .studio-doc-root .hero-dropdown-trigger:hover,
html[data-theme="dark"] .studio-doc-root .hero-dropdown.is-open .hero-dropdown-trigger {
    color: #ffffff !important;
}

html[data-theme="dark"] .studio-doc-root .hero-dropdown-menu {
    background: #24221f;
    border-color: #3a3530;
    color: #f0ebe3;
}

html[data-theme="dark"] .studio-doc-root .hero-dropdown-option:hover,
html[data-theme="dark"] .studio-doc-root .hero-dropdown-option.is-active {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .studio-doc-root.homepage-en .hero-dropdown-label::after,
html[data-theme="dark"] .studio-doc-root.homepage-en .hero-dropdown-trigger:hover .hero-dropdown-label::after,
html[data-theme="dark"] .studio-doc-root.homepage-en .hero-dropdown.is-open .hero-dropdown-label::after {
    background: linear-gradient(90deg, rgba(240, 235, 227, 0.12), rgba(240, 235, 227, 0.42), rgba(240, 235, 227, 0.12));
}


html[data-theme="dark"] .studio-doc-root .chat-container,
html[data-theme="dark"] .studio-main .chat-container {
    background: #22201d !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .studio-doc-root .upload-container {
    background: #1c1a18 !important;
    border-top-color: #3a3530 !important;
}

html[data-theme="dark"] .studio-doc-root .upload-area {
    background: #24221f !important;
    border-color: #4a453e !important;
    color: #c8c2b8;
}

html[data-theme="dark"] .studio-doc-root .upload-text {
    color: #b7b1a8 !important;
}

html[data-theme="dark"] .studio-doc-root .message-content,
html[data-theme="dark"] .studio-doc-root .robot-message .message-content {
    background-color: #2a2723 !important;
    color: #f0ebe3 !important;
    box-shadow: none;
}

html[data-theme="dark"] .studio-doc-root .chat-bottom-note {
    background: rgba(255, 255, 255, 0.06);
    border-color: #3a3530;
}

html[data-theme="dark"] .studio-doc-root .chat-bottom-note .note-text {
    color: #c8c2b8;
}

html[data-theme="dark"] .studio-doc-root .send-btn,
html[data-theme="dark"] .studio-doc-root .action-btn.send-btn {
    background: #3a3530;
    color: #f0ebe3;
    border-color: #3a3530;
}

html[data-theme="dark"] .studio-doc-root .export-btn {
    background: #24221f;
    color: #f0ebe3;
    border-color: #4a453e;
}

html[data-theme="dark"] .studio-doc-root .export-btn:hover {
    background: #ebe6de;
    color: #1a1816;
}

html[data-theme="dark"] .studio-doc-root .chat-messages {
    background: transparent;
}

html[data-theme="dark"] .studio-doc-root .homepage-doc-panel,
html[data-theme="dark"] .studio-main .homepage-doc-panel {
    background: #22201d !important;
    border-color: #3a3530 !important;
}

html[data-theme="dark"] .studio-doc-root .homepage-doc-dropzone,
html[data-theme="dark"] .studio-doc-root .homepage-doc-result {
    background: #1c1a18 !important;
    border-color: #4a453e !important;
}


html[data-theme="dark"] .studio-main .checker-card {
    background: #1f1d1a !important;
    border-color: #3a3530 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    color: var(--ink);
}

html[data-theme="dark"] .studio-main .check-guide {
    background: linear-gradient(160deg, #2a2621, #221f1c) !important;
    border-color: #3a3530 !important;
    color: #f0ebe3;
}

html[data-theme="dark"] .studio-main .guide-head strong,
html[data-theme="dark"] .studio-main .check-guide li strong {
    color: #f0ebe3 !important;
}

html[data-theme="dark"] .studio-main .guide-head div span,
html[data-theme="dark"] .studio-main .check-guide li small {
    color: #b7b1a8 !important;
}

html[data-theme="dark"] .studio-main .editor-wrap {
    background: #1c1a18 !important;
    border-color: #3a3530 !important;
}

html[data-theme="dark"] .studio-main .editor-topline,
html[data-theme="dark"] .studio-main .editor-footer {
    background: #2a2723 !important;
    border-color: #3a3530 !important;
    color: #c8c2b8;
}

html[data-theme="dark"] .studio-main .editor-label,
html[data-theme="dark"] .studio-main .editor-credit-hint {
    color: #b7b1a8 !important;
}

html[data-theme="dark"] .studio-main .editor-wrap textarea {
    background: #1c1a18 !important;
    color: #f0ebe3 !important;
}

html[data-theme="dark"] .studio-main .editor-wrap textarea::placeholder {
    color: #8a847c !important;
}

html[data-theme="dark"] .studio-main .example-free-hint {
    background: #1c1a18 !important;
    color: #9b958c !important;
}

html[data-theme="dark"] .studio-main .drop-message {
    background: rgba(28, 26, 24, 0.97) !important;
    color: var(--green-deep);
}

html[data-theme="dark"] .studio-main .file-button {
    color: #e0b85c !important;
}

html[data-theme="dark"] .studio-main .score-card,
html[data-theme="dark"] .studio-main .cited-draft,
html[data-theme="dark"] .studio-main .results-list article {
    background: #24221f;
    border-color: #3a3530;
    color: #f0ebe3;
}

html[data-theme="dark"] .studio-nav-item {
    color: #c8c2b8;
}

html[data-theme="dark"] .studio-nav-item.is-active {
    color: #f0ebe3;
}


.studio-sidebar-top,.studio-user-panel{
  scrollbar-width:thin;
  scrollbar-color:#c5c5c5 transparent;
  scrollbar-gutter:stable;
}
.studio-sidebar-top::-webkit-scrollbar,.studio-user-panel::-webkit-scrollbar{width:6px;height:6px}
.studio-sidebar-top::-webkit-scrollbar-track,.studio-user-panel::-webkit-scrollbar-track{background:transparent}
.studio-sidebar-top::-webkit-scrollbar-thumb,.studio-user-panel::-webkit-scrollbar-thumb{background:#c5c5c5;border:1px solid transparent;background-clip:padding-box;border-radius:999px}
.studio-sidebar-top::-webkit-scrollbar-thumb:hover,.studio-user-panel::-webkit-scrollbar-thumb:hover{background:#a3a3a3}
html[data-theme=dark] .studio-sidebar-top,html[data-theme=dark] .studio-user-panel{scrollbar-color:#555 transparent}
html[data-theme=dark] .studio-sidebar-top::-webkit-scrollbar-thumb,html[data-theme=dark] .studio-user-panel::-webkit-scrollbar-thumb{background:#555}
html[data-theme=dark] .studio-sidebar-top::-webkit-scrollbar-thumb:hover,html[data-theme=dark] .studio-user-panel::-webkit-scrollbar-thumb:hover{background:#777}
.studio-main-header.has-title{align-items:center}
.studio-main-header.has-title .studio-pricing-top-btn{margin-top:0}
@media(forced-colors:active){.studio-sidebar-top,.studio-user-panel{scrollbar-color:auto}}

.studio-sidebar,.studio-nav,.studio-sidebar-top,.studio-user-panel{scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:stable}
.studio-sidebar::-webkit-scrollbar,.studio-nav::-webkit-scrollbar,.studio-sidebar-top::-webkit-scrollbar,.studio-user-panel::-webkit-scrollbar{width:5px;height:5px}
.studio-sidebar::-webkit-scrollbar-track,.studio-nav::-webkit-scrollbar-track{background:transparent}
.studio-sidebar::-webkit-scrollbar-thumb,.studio-nav::-webkit-scrollbar-thumb,.studio-sidebar-top::-webkit-scrollbar-thumb,.studio-user-panel::-webkit-scrollbar-thumb{background:transparent;border-radius:999px;border:0}
.studio-sidebar:is(:hover,:focus-within),.studio-sidebar :is(.studio-nav,.studio-sidebar-top,.studio-user-panel):is(:hover,:focus-within){scrollbar-color:#b7b7b7 transparent}
.studio-sidebar:is(:hover,:focus-within)::-webkit-scrollbar-thumb,.studio-sidebar :is(.studio-nav,.studio-sidebar-top,.studio-user-panel):is(:hover,:focus-within)::-webkit-scrollbar-thumb{background:#b7b7b7}
html[data-theme=dark] :is(.studio-sidebar,.studio-nav,.studio-sidebar-top,.studio-user-panel){scrollbar-color:transparent transparent}
html[data-theme=dark] :is(.studio-sidebar,.studio-nav,.studio-sidebar-top,.studio-user-panel)::-webkit-scrollbar-thumb{background:transparent}
html[data-theme=dark] :is(.studio-sidebar,.studio-nav,.studio-sidebar-top,.studio-user-panel):is(:hover,:focus-within){scrollbar-color:#606060 transparent}
html[data-theme=dark] :is(.studio-sidebar,.studio-nav,.studio-sidebar-top,.studio-user-panel):is(:hover,:focus-within)::-webkit-scrollbar-thumb{background:#606060}
@media(forced-colors:active){.studio-sidebar,.studio-sidebar :is(.studio-nav,.studio-sidebar-top,.studio-user-panel){scrollbar-color:auto}}

.studio-sidebar,.studio-sidebar-top{scrollbar-gutter:auto}
.studio-nav{scrollbar-gutter:stable both-edges}
.studio-app.is-collapsed .studio-nav,
.studio-sidebar.is-collapsed .studio-nav{padding-inline:6px}
.studio-app.is-collapsed .studio-nav-item,
.studio-sidebar.is-collapsed .studio-nav-item{justify-content:center;gap:0;padding-inline:0}
.studio-app.is-collapsed .studio-user-trigger,
.studio-sidebar.is-collapsed .studio-user-trigger{justify-content:center;gap:0;padding-inline:0}

}
.homepage-en .home-studio.studio-app{display:flex;width:100%;height:620px;min-height:0;background:#fff;border:1px solid #ddd8d2;border-radius:12px;overflow:hidden;--studio-bg:#ebe8e3;--studio-surface:#fff;--studio-sidebar:#f7f5f2;--studio-border:#ddd8d2;--studio-text:#1a1a1a;--studio-muted:#6b6560;--studio-accent:#1a1a1a;--studio-hover:rgba(26,26,26,.06);--studio-active:rgba(26,26,26,.1);--studio-sidebar-w:268px;--studio-sidebar-w-collapsed:72px}.home-studio .preview-studio-content{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.home-studio .preview-nav-svg{display:flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0}.home-studio .preview-nav-svg svg{width:20px;height:20px}.home-studio .preview-studio-signin{display:flex;align-items:center;gap:10px;padding:14px 18px;border:0;background:transparent;color:#1a1a1a;text-align:left;font:500 14px 'Outfit',sans-serif;cursor:pointer}.home-studio .preview-studio-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#e5e1dc}.preview-studio-avatar svg{width:20px;height:20px}.preview-account-copy small{display:block;color:#6b6560;font-size:11px;margin-top:3px}.home-studio.is-collapsed .preview-account-copy{display:none}.home-studio.is-collapsed .preview-studio-signin{padding-inline:20px}.home-studio .studio-doc-root .hero-switcher{font-size:clamp(22px,2.4vw,34px);margin:.85rem 1.5rem .55rem}.home-studio .studio-doc-root .chat-container{height:auto;min-height:0}.home-studio .home-tool-demo{width:calc(100% - 48px);margin:25px auto;overflow:auto}.studio-embed .home-studio.studio-app{height:100vh;border:0;border-radius:0}.studio-embed .home-studio>.studio-sidebar{display:none!important}@media(max-width:680px){.homepage-en .home-studio.studio-app{height:600px}.home-studio>.studio-sidebar{width:60px!important}.home-studio .studio-brand,.home-studio .studio-nav-label,.home-studio .studio-nav-text,.home-studio .preview-account-copy{display:none}.home-studio .studio-sidebar-top{padding:12px;min-height:48px;justify-content:center}.home-studio .studio-nav{padding-inline:5px;scrollbar-gutter:auto}.home-studio .studio-nav-item{justify-content:center;padding:12px 8px}.home-studio .preview-studio-signin{padding:12px 14px}.home-studio .studio-doc-root .hero-switcher{font-size:18px;margin:12px 8px}.home-studio .studio-doc-root .main-container{width:calc(100% - 16px);margin:0 8px 10px}.home-studio .home-tool-demo{width:calc(100% - 20px);margin:18px auto}.home-studio .home-tool-demo h2{font-size:23px}}
/* Native Studio tool previews use the same documents and styles as the tools. */
.home-native-preview{position:relative;display:flex;flex:1;min-height:0;height:100%;overflow:hidden;background:#fff}.home-native-frame{display:block;width:100%;height:100%;min-height:0;flex:1;border:0;background:white}.home-native-loading{position:absolute;inset:0;z-index:1;display:grid;place-items:center;background:#fff;color:#6b6560;font-size:13px;pointer-events:none}.home-studio .studio-doc-root .hero-dropdown-trigger,.home-studio .studio-doc-root .hero-dropdown-label{font-weight:400!important;font-size:.9em!important;color:#6b6560!important}.home-studio .studio-doc-root .hero-dropdown-label{font-size:1em!important}.home-product-positioning{text-align:center;max-width:1000px;margin:0 auto 64px}.home-product-positioning h2{font-family:'Playfair Display',Georgia,serif;font-size:clamp(30px,3.6vw,46px);font-weight:500;line-height:1.3;letter-spacing:-.025em;color:#302b26;margin:18px auto 24px}.home-product-positioning h2 em{font-weight:400;color:#8c7a63}.home-positioning-lead{font-size:15px;line-height:1.8;color:#7b7268}.home-product-names{display:flex;flex-wrap:wrap;justify-content:center;gap:0;margin:24px auto 28px}.home-product-names span{padding:5px 22px;font-size:clamp(17px,1.7vw,22px);font-weight:500;color:#554a3e;border-right:1px solid #dcd3c7;line-height:1.2}.home-product-names span:last-child{border:0}.home-positioning-detail{max-width:850px;margin:0 auto;font-size:16px;line-height:2;color:#7b7268}.home-positioning-detail strong{font-weight:500;color:#4d4439}.home-product-positioning small{display:block;font-size:11px;color:#a49b90;margin-top:18px}@media(max-width:680px){.home-product-names{gap:12px 0}.home-product-names span{padding:4px 12px;font-size:17px}.home-positioning-detail{font-size:14px;line-height:1.9}.home-positioning-lead{font-size:13px}.home-product-positioning{margin-bottom:40px}}
/* Preview sidebar uses the same expanded/collapsed brand treatment as Studio. */
.home-studio>.studio-sidebar{width:268px;flex-shrink:0}.home-studio.is-collapsed>.studio-sidebar{width:72px!important;min-width:72px}.home-studio.is-collapsed .studio-sidebar-top{justify-content:center;align-items:center;min-height:64px;padding:12px 6px}.home-studio.is-collapsed .studio-nav-text,.home-studio.is-collapsed .studio-nav-label{display:none!important}.home-studio.is-collapsed .studio-nav{padding-inline:6px;scrollbar-gutter:auto}.home-studio.is-collapsed .studio-nav-item{width:100%;justify-content:center;gap:0;padding:11px 0}.home-studio.is-collapsed .preview-studio-signin{padding:14px 0;justify-content:center}.homepage-en>.page-container{padding-bottom:64px}@media(max-width:680px){.home-studio>.studio-sidebar,.home-studio.is-collapsed>.studio-sidebar{width:60px!important;min-width:60px}.homepage-en>.page-container{padding-bottom:40px}}
