body.feature-mode-powerpoint {
    background: #f5f7fa;
    color: #172033;
    letter-spacing: 0;
}

.ppt-editor-intro {
    padding: 22px 20px 16px;
    background: #fff;
    border-bottom: 1px solid #e1e5eb;
}

.ppt-editor-intro-inner,
.ppt-editor-content-inner {
    width: min(1680px, 100%);
    margin: 0 auto;
}

.ppt-editor-intro-inner {
    display: block;
}

.ppt-editor-copy { max-width: 880px; }

.ppt-editor-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 6px;
    color: #1769e0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ppt-editor-copy h1 {
    margin: 0;
    color: #172033;
    font-size: 29px;
    line-height: 1.16;
    letter-spacing: 0;
}

.ppt-editor-intro-text {
    margin: 8px 0 0;
    color: #606a78;
    font-size: 14px;
    line-height: 1.55;
}

.ppt-editor-replay,
.ppt-editor-full-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 6px;
    padding: 0 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.ppt-editor-replay {
    border: 1px solid #cfd6e1;
    background: #fff;
    color: #263044;
}

.ppt-editor-full-link {
    border: 1px solid #1769e0;
    background: #1769e0;
    color: #fff;
}

.ppt-editor-replay:hover { background: #f1f4f8; }
.ppt-editor-full-link:hover { background: #1259bf; }
.ppt-editor-replay:disabled { opacity: 0.55; cursor: wait; }

@keyframes ppt-editor-spin { to { transform: rotate(360deg); } }

.ppt-simple-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    width: min(1680px, calc(100% - 40px));
    height: clamp(480px, calc(100vh - 238px), 680px);
    min-height: 0;
    margin: 14px auto 34px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.1);
}

.ppt-simple-controls {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-right: 1px solid #e1e5eb;
    background: #fff;
}

.ppt-simple-controls-scroll {
    min-height: 0;
    padding: 14px 16px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ppt-simple-controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding-bottom: 10px;
}

.ppt-simple-controls-header > div { display: grid; gap: 2px; }
.ppt-simple-controls-header span { color: #1e293b; font-size: 15px; font-weight: 800; }
.ppt-simple-controls-header strong { color: #718096; font-size: 10px; font-weight: 600; }

.ppt-simple-loading {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid #c9d9f3;
    border-top-color: #1769e0;
    border-radius: 50%;
    animation: ppt-editor-spin 0.7s linear infinite;
}

.ppt-simple-shell.is-generating .ppt-simple-loading { display: block; }

.ppt-simple-control-group {
    padding: 11px 0;
    border-top: 1px solid #e7ebf0;
}

.ppt-simple-control-group > label,
.ppt-simple-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #344054;
    font-size: 11px;
    font-weight: 800;
}

.ppt-simple-control-group > label i,
.ppt-simple-label i { width: 14px; color: #1769e0; text-align: center; }

.ppt-simple-select {
    width: 100%;
    height: 38px;
    border: 1px solid #cfd6e1;
    border-radius: 6px;
    padding: 0 10px;
    background: #fff;
    color: #202b3c;
    font: inherit;
    font-size: 13px;
}

.ppt-simple-templates { display: grid; gap: 6px; }

.ppt-simple-template {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 52px;
    border: 1px solid #d8dee7;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
    color: #172033;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ppt-simple-template:hover,
.ppt-simple-template.is-active {
    border-color: #1769e0;
    box-shadow: inset 0 0 0 1px #1769e0;
}

.ppt-simple-template img {
    width: 58px;
    height: 42px;
    object-fit: contain;
    background: #eef1f5;
}

.ppt-simple-template > span { display: grid; min-width: 0; gap: 4px; }
.ppt-simple-template strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ppt-simple-template small { display: flex; align-items: center; gap: 5px; color: #697383; font-size: 9px; }

.ppt-simple-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.ppt-simple-option {
    display: grid;
    place-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 52px;
    border: 1px solid #d8dee7;
    border-radius: 6px;
    padding: 6px 3px;
    background: #fff;
    color: #475467;
    font: inherit;
    font-size: 9px;
    cursor: pointer;
}

.ppt-simple-option:hover,
.ppt-simple-option.is-active {
    border-color: #1769e0;
    background: #edf5ff;
    color: #1458ba;
}

.ppt-simple-option > i { font-size: 14px; }

.ppt-size-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ppt-gradient-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ppt-gradient-option {
    min-height: 68px;
    gap: 8px;
    padding: 8px;
    font-size: 11px;
}

.ppt-gradient-preview {
    display: block;
    width: 100%;
    height: 26px;
    border-radius: 5px;
    background: var(--gradient);
    box-shadow: 0 5px 12px rgba(23, 32, 51, 0.14);
}

.ppt-size-preview {
    display: block;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 2px;
    box-sizing: border-box;
}

.ppt-size-preview-wide { width: 32px; }
.ppt-size-preview-standard { width: 24px; }

.ppt-background-preview {
    display: block;
    width: 20px;
    height: 20px;
    border: 1px solid #cbd2dc;
    border-radius: 3px;
    box-sizing: border-box;
}

.ppt-background-white { background: #fff; }
.ppt-background-dark { background: #111827; border-color: #111827; }
.ppt-background-transparent {
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #cbd2dc 25%, transparent 25%),
        linear-gradient(-45deg, #cbd2dc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #cbd2dc 75%),
        linear-gradient(-45deg, transparent 75%, #cbd2dc 75%);
    background-position: 0 0, 0 5px, 5px -5px, -5px 0;
    background-size: 10px 10px;
}

.ppt-color-swatches { display: flex; gap: 2px; }
.ppt-color-swatches i { width: 11px; height: 11px; border-radius: 2px; background: var(--swatch); }

.ppt-simple-control-actions {
    display: grid;
    gap: 7px;
    padding: 12px 16px 14px;
    border-top: 1px solid #e7ebf0;
    background: #fff;
    box-shadow: 0 -8px 18px rgba(23, 32, 51, 0.06);
}

.ppt-simple-control-actions .ppt-editor-replay,
.ppt-simple-control-actions .ppt-editor-full-link { width: 100%; box-sizing: border-box; }
.ppt-simple-control-actions p { margin: 0; color: #7a8390; font-size: 9px; line-height: 1.4; text-align: center; }

.ppt-simple-controls button:disabled,
.ppt-simple-controls select:disabled { opacity: 0.58; cursor: wait; }

body.feature-mode-powerpoint #animate-btn:disabled {
    opacity: 0.48;
    cursor: wait;
    pointer-events: none;
}

.ppt-simple-stage {
    --ppt-slide-ratio: 16 / 9;
    min-width: 0;
    min-height: 0;
    background: #edf0f4;
}

.ppt-simple-stage[data-ppt-size="standard"] { --ppt-slide-ratio: 4 / 3; }

body.feature-mode-powerpoint .ppt-simple-stage .main-container {
    width: 100% !important;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.feature-mode-powerpoint .content-container {
    height: 100%;
    min-height: 0;
    margin-top: 0;
    gap: 0;
}

body.feature-mode-powerpoint .sidebar-nav,
body.feature-mode-powerpoint .edit-area {
    display: none !important;
}

body.feature-mode-powerpoint .canvas-area {
    flex: 1;
    width: 100%;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
}

body.feature-mode-powerpoint .ppt-simple-stage .visualization-container {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.feature-mode-powerpoint .ppt-simple-stage .visualization-area {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0;
    background: #edf0f4;
}

body.feature-mode-powerpoint .ppt-simple-stage #wordcloud-container {
    width: 84%;
    height: auto !important;
    min-height: 0 !important;
    max-width: none;
    aspect-ratio: var(--ppt-slide-ratio);
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    align-items: stretch;
    background: #fff !important;
    border: 1px solid #d5dbe4 !important;
    box-shadow: 0 14px 34px rgba(23, 32, 51, 0.14) !important;
}

body.feature-mode-powerpoint .ppt-simple-stage[data-ppt-size="standard"] #wordcloud-container {
    width: 66%;
}

body.feature-mode-powerpoint .ppt-simple-stage #wordcloud-container > div {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

body.feature-mode-powerpoint .ppt-simple-stage #wordcloud-image,
body.feature-mode-powerpoint .ppt-simple-stage #wordcloud-svg {
    width: auto !important;
    height: 78% !important;
    max-width: 78% !important;
    max-height: 78% !important;
    margin: 0;
    overflow: hidden !important;
    border-radius: 0;
    box-shadow: none !important;
    object-fit: contain;
    transform: none !important;
    transform-origin: center center !important;
}

body.feature-mode-powerpoint .ppt-simple-stage[data-wordcloud-background="transparent"] #wordcloud-image,
body.feature-mode-powerpoint .ppt-simple-stage[data-wordcloud-background="transparent"] #wordcloud-svg {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.feature-mode-powerpoint .ppt-simple-stage .canvas-control-panel,
body.feature-mode-powerpoint .generate-wordcloud-section,
body.feature-mode-powerpoint #animate-btn,
body.feature-mode-powerpoint #edit-mode-btn,
body.feature-mode-powerpoint #move-btn,
body.feature-mode-powerpoint #zoom-in-btn,
body.feature-mode-powerpoint #zoom-out-btn,
body.feature-mode-powerpoint #fit-btn {
    display: none !important;
}

.ppt-editor-content {
    background: #fff;
}

.ppt-editor-band {
    padding: 64px 22px;
}

.ppt-editor-band + .ppt-editor-band {
    border-top: 1px solid #e1e5eb;
}

.ppt-editor-how { background: #f1f4f7; }

.ppt-editor-band h2 {
    margin: 0;
    color: #172033;
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: 0;
}

.ppt-editor-steps,
.ppt-editor-use-cases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin: 28px 0 0;
    padding: 0;
}

.ppt-editor-steps { list-style: none; }

.ppt-editor-steps li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 13px;
}

.ppt-editor-steps li > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #172033;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.ppt-editor-band h3 {
    margin: 0;
    color: #172033;
    font-size: 16px;
}

.ppt-editor-band p {
    margin: 8px 0 0;
    color: #606a78;
    font-size: 14px;
    line-height: 1.62;
}

.ppt-editor-use-cases article > i {
    margin-bottom: 14px;
    color: #1769e0;
    font-size: 23px;
}

.ppt-editor-export {
    background: #172033;
}

.ppt-editor-export-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 44px;
}

.ppt-editor-export h2,
.ppt-editor-export h3 { color: #fff; }
.ppt-editor-export p { color: #c8d0dc; }
.ppt-editor-export i { margin-bottom: 14px; color: #f0b84b; font-size: 22px; }

.ppt-editor-faq-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.45fr);
    gap: 48px;
}

.ppt-editor-faq-list details { border-top: 1px solid #dce1e8; }
.ppt-editor-faq-list details:last-child { border-bottom: 1px solid #dce1e8; }

.ppt-editor-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.ppt-editor-faq-list summary::-webkit-details-marker { display: none; }
.ppt-editor-faq-list details[open] summary i { transform: rotate(180deg); }
.ppt-editor-faq-list details p { margin: -4px 28px 18px 0; }

.ppt-editor-trademark {
    grid-column: 2;
    margin: 0;
    color: #858e9b;
    font-size: 11px;
}

body.feature-mode-powerpoint .footer { margin-top: 0; }

@media (max-width: 980px) {
    .ppt-simple-shell { grid-template-columns: 290px minmax(0, 1fr); }
}

@media (max-width: 760px) {
    body.feature-mode-powerpoint {
        overflow-x: hidden;
    }

    body.feature-mode-powerpoint .header .header-nav-link,
    body.feature-mode-powerpoint .header .header-more-menu,
    body.feature-mode-powerpoint .header .subscription-btn {
        display: none;
    }

    .ppt-editor-intro { padding-inline: 14px; }
    .ppt-editor-intro-inner,
    .ppt-editor-content-inner {
        width: 100%;
    }
    .ppt-editor-copy {
        max-width: calc(100vw - 28px);
    }
    .ppt-editor-copy h1 {
        max-width: calc(100vw - 28px);
        font-size: 24px;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .ppt-editor-intro-text {
        max-width: calc(100vw - 28px);
    }
    .ppt-simple-shell {
        grid-template-columns: 1fr;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        height: auto;
        min-height: 0;
        margin: 12px 10px 26px;
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    .ppt-simple-controls {
        display: block;
        max-width: calc(100vw - 20px);
        overflow: visible;
        border: 1px solid #dfe4eb;
        border-radius: 8px;
        background: #fff;
    }
    .ppt-simple-controls-scroll {
        padding: 14px 16px 0;
        overflow: visible;
    }
    .ppt-simple-stage {
        height: 430px;
        margin-top: 12px;
        overflow: hidden;
        border: 1px solid #dfe4eb;
        border-radius: 8px;
        box-shadow: 0 10px 24px rgba(23, 32, 51, 0.09);
    }
    body.feature-mode-powerpoint .ppt-simple-stage #wordcloud-container {
        width: calc(100% - 28px);
    }
    body.feature-mode-powerpoint .ppt-simple-stage .canvas-control-panel {
        top: auto;
        right: 50%;
        bottom: 10px;
        flex-direction: row;
        transform: translateX(50%);
    }
    body.feature-mode-powerpoint .ppt-simple-stage .main-container {
        height: 430px;
    }
    body.feature-mode-powerpoint .content-container {
        height: 100%;
        min-height: 0;
        margin-top: 0;
    }
    body.feature-mode-powerpoint .canvas-area {
        width: 100%;
        height: 430px;
        min-height: 0;
    }
    .ppt-editor-steps,
    .ppt-editor-use-cases,
    .ppt-editor-export-grid,
    .ppt-editor-faq-grid { grid-template-columns: 1fr; }
    .ppt-editor-trademark { grid-column: 1; }
    .ppt-editor-band { padding: 48px 16px; }
}
