/* Fuuvo AI Slides: a light, focused workspace inspired by Genspark and Manus. */
.office-presentation-app .portal-sidebar-toggle {
    display: none !important;
}

.office-presentation-app {
    --slides-ink: #182132;
    --slides-muted: #6d7788;
    --slides-soft: #f7f8fb;
    --slides-line: #e5e8ef;
    --slides-primary: #5b46ef;
    --slides-primary-dark: #4530ca;
    min-height: 100vh;
    background: #fff !important;
    color: var(--slides-ink);
    color-scheme: light;
}
.office-presentation-app .creation-workspace,
.office-presentation-app .office-tool-main {
    background: #fff !important;
    color: var(--slides-ink);
}
.office-presentation-app .office-tool-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 34px clamp(24px, 3vw, 48px) 72px !important;
    box-sizing: border-box;
}

@media (min-width: 921px) {
    /* Bring the page introduction closer to the shared topbar while giving
       the title and description a clearer breathing area inside it. */
    .office-presentation-app .office-tool-main {
        padding-top: 16px !important;
    }

    .office-presentation-app .slides-page-hero {
        padding: 14px 16px 16px !important;
        box-sizing: border-box;
    }
}

.office-presentation-app .office-breadcrumb { display: none; }
.office-presentation-app .slides-page-hero {
    position: relative;
    width: 100%;
    margin: 0 0 28px;
    padding: 8px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}
.office-presentation-app .slides-page-hero .slides-hero-copy {
    min-width: 0;
    display: flex;
    align-items: flex-start;
}
.office-presentation-app .slides-page-hero .office-tool-icon { display: none; }
.office-presentation-app .slides-page-hero .slides-hero-copy > div:last-child > span {
    display: inline-flex;
    margin-bottom: 13px;
    color: var(--slides-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}
.office-presentation-app .slides-page-hero h1 {
    margin: 0;
    color: var(--slides-ink);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 760;
    letter-spacing: -.045em;
    line-height: 1.08;
}
.office-presentation-app .slides-page-hero p {
    max-width: 820px;
    margin: 15px 0 0;
    color: var(--slides-muted);
    font-size: 15px;
    line-height: 1.65;
}
.office-presentation-app .slides-history-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    margin-top: 2px;
    padding: 0 12px;
    border: 1px solid var(--slides-line);
    border-radius: 10px;
    background: #fff;
    color: var(--slides-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.office-presentation-app .slides-history-link:hover,
.office-presentation-app .slides-history-link:focus-visible {
    border-color: #b9b0f9;
    background: #faf9ff;
    color: var(--slides-primary-dark);
    outline: 0;
}
.office-presentation-app .office-tool-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin-top: 0;
}
.office-presentation-app .office-tool-form-card,
.office-presentation-app .office-result-card {
    width: auto;
    max-width: none;
    margin: 0;
    border: 1px solid var(--slides-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(38, 43, 74, .065);
}
.office-presentation-app .office-tool-form-card {
    height: auto;
    align-self: start;
    padding: 30px 34px 25px;
}
.office-presentation-app .slides-builder-heading { margin-bottom: 21px; }
.office-presentation-app .slides-builder-heading-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.office-presentation-app .slides-reset-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #8992a3;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.office-presentation-app .slides-reset-button span { font-size: 15px; line-height: 1; }
.office-presentation-app .slides-reset-button:hover,
.office-presentation-app .slides-reset-button:focus-visible {
    border-color: #dedaf8;
    background: #faf9ff;
    color: var(--slides-primary-dark);
    outline: 0;
}
.office-presentation-app .slides-eyebrow,
.office-presentation-app .presentation-library-kicker {
    color: var(--slides-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}
.office-presentation-app .slides-builder-heading h2 {
    margin: 7px 0 5px;
    color: var(--slides-ink);
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -.025em;
}
.office-presentation-app .slides-builder-heading p {
    margin: 0;
    color: var(--slides-muted);
    font-size: 13px;
    line-height: 1.6;
}
.office-presentation-app .office-field { gap: 8px; margin-bottom: 17px; }
.office-presentation-app .office-field > span {
    color: #455065;
    font-size: 12px;
    font-weight: 750;
}
.office-presentation-app .office-field :is(input, textarea, select) {
    border: 1px solid #dfe3eb;
    border-radius: 12px;
    background: #fff;
    color: var(--slides-ink);
    box-shadow: none;
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.office-presentation-app .office-field :is(input, textarea, select):focus {
    border-color: #9b8ff6;
    box-shadow: 0 0 0 3px rgba(91, 70, 239, .12);
    outline: 0;
}
.office-presentation-app .office-field input { min-height: 48px; padding: 0 14px; }
.office-presentation-app .office-field textarea { min-height: 142px; padding: 13px 14px; resize: vertical; line-height: 1.6; }
.office-presentation-app .office-field :is(input, textarea)::placeholder { color: #a1a8b7; }
.office-presentation-app .office-field-grid {
    display: grid;
    /* The prompt rail is intentionally narrow, so four controls leave
       native select values unreadable. Two columns keep labels and choices
       visible while preserving the existing desktop workspace. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 15px;
    border: 1px solid #edf0f5;
    border-radius: 15px;
    background: #fafbfc;
}
.office-presentation-app .office-field-grid .office-field { margin-bottom: 0; }
.office-presentation-app .office-field-grid .office-field > span {
    min-height: 2.5em;
    color: #455065;
    font-size: 11px;
    line-height: 1.25;
    display: flex;
    align-items: flex-start;
}
.office-presentation-app .office-field-grid select { min-height: 40px; padding: 0 10px; font-size: 12px; }
.office-presentation-app .slides-sample-prompts { margin: 2px 0 18px; }
.office-presentation-app .slides-section-label { margin-bottom: 9px; color: #455065; font-size: 12px; font-weight: 750; }
.office-presentation-app .slides-sample-prompt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.office-presentation-app .slides-sample-prompt-list button {
    min-height: 33px;
    padding: 0 12px;
    border: 1px solid #e0e3ed;
    border-radius: 999px;
    background: #fff;
    color: #59647a;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.office-presentation-app .slides-sample-prompt-list button:hover,
.office-presentation-app .slides-sample-prompt-list button:focus-visible {
    border-color: #afa5fa;
    background: #f7f5ff;
    color: var(--slides-primary-dark);
    outline: 0;
    transform: translateY(-1px);
}
.office-presentation-app .slides-upload-box {
    margin-top: 17px;
    padding: 12px 14px;
    border: 1px dashed #d8dce8;
    border-radius: 13px;
    background: #fcfcfe;
}
.office-presentation-app .slides-upload-box strong { color: #4e586c; font-size: 12px; }
.office-presentation-app .slides-upload-box small { color: #929aab; font-size: 11px; }
.office-presentation-app .slides-upload-box button {
    min-height: 36px;
    border: 1px solid #dad6fb;
    border-radius: 9px;
    background: #f7f5ff;
    color: var(--slides-primary-dark);
    font-size: 12px;
}
.office-presentation-app .slides-form-footnote {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 13px 0 0;
    color: #8790a1;
    font-size: 11px;
}
.office-presentation-app .slides-checkmark {
    display: inline-grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: #e8f8f0;
    color: #1f9b65;
    font-size: 11px;
    font-weight: 800;
}
.office-presentation-app .office-generate-button {
    width: 100%;
    min-height: 50px;
    margin-top: 21px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #6b58f5, #4b35d2);
    box-shadow: 0 12px 25px rgba(91, 70, 239, .2);
    font-size: 13px;
}
.office-presentation-app .office-tool-features { display: none; }
.office-presentation-app .office-result-card {
    min-height: 760px;
    margin-top: 0;
    padding: 28px 30px 33px;
    overflow: visible;
}
.office-presentation-app:not(.has-presentation-result) .office-result-head,
.office-presentation-app:not(.has-presentation-result) .office-result-empty { display: none; }
@media (min-width: 921px) {
    .office-presentation-app.has-presentation-result :is(.presentation-template-library, .presentation-editor) { display: none; }
    .office-presentation-app.is-presentation-generating .office-result-loading {
        min-height: 420px;
        margin-top: 18px;
        border: 1px dashed var(--slides-line);
        border-radius: 16px;
        background: var(--slides-soft);
    }
}
.office-presentation-app .presentation-template-library { min-width: 0; }
.office-presentation-app .presentation-library-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}
.office-presentation-app .presentation-library-head h2 {
    margin: 6px 0 6px;
    color: var(--slides-ink);
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -.035em;
}
.office-presentation-app .presentation-library-head p { margin: 0; color: var(--slides-muted); font-size: 12px; line-height: 1.55; }
.office-presentation-app .presentation-library-tools { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; }
.office-presentation-app .presentation-library-tools label { display: inline-flex; align-items: center; gap: 8px; color: #727b8d; font-size: 11px; font-weight: 700; }
.office-presentation-app .presentation-library-tools select { min-height: 36px; padding: 0 9px; border: 1px solid #dfe3eb; border-radius: 9px; background: #fff; color: #455065; font: inherit; font-size: 12px; }
.office-presentation-app .presentation-import-template { min-height: 36px; padding: 0 12px; border: 1px solid #dedaf8; border-radius: 9px; background: #faf9ff; color: var(--slides-primary-dark); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.office-presentation-app .presentation-import-template:hover { border-color: #a69bf4; background: #f3f0ff; }
.office-presentation-app .presentation-template-categories { margin: 0 0 18px; gap: 6px; border-bottom: 1px solid #eceef3; }
.office-presentation-app .presentation-template-categories button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 8px 8px 0 0; color: #8a92a1; font-size: 11px; }
.office-presentation-app .presentation-template-categories button:hover { background: #f6f7fa; color: #4e586c; }
.office-presentation-app .presentation-template-categories button.is-active { border-bottom: 2px solid var(--slides-primary); background: transparent; color: var(--slides-primary-dark); }
.office-presentation-app .presentation-template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.office-presentation-app .presentation-template-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    border: 1px solid #e2e5eb;
    border-radius: 13px;
    background: #fff;
    color: var(--slides-ink);
    box-shadow: 0 4px 14px rgba(37, 44, 74, .035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.office-presentation-app .presentation-template-card:hover,
.office-presentation-app .presentation-template-card:focus-visible,
.office-presentation-app .presentation-template-card.is-selected {
    border-color: #9588f2;
    box-shadow: 0 12px 25px rgba(91, 70, 239, .13);
    outline: 0;
    transform: translateY(-3px);
}
.office-presentation-app .presentation-template-card.is-selected { box-shadow: 0 0 0 2px rgba(91, 70, 239, .14), 0 12px 25px rgba(91, 70, 239, .12); }
.office-presentation-app .presentation-template-card > img {
    display: block;
    width: 100%;
    height: 128px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    background: #eef1f6;
}
.office-presentation-app .presentation-template-card-copy { min-width: 0; display: grid; padding: 10px 11px 5px; gap: 3px; }
.office-presentation-app .presentation-template-card-copy strong { color: #343c4f; font-size: 12px; }
.office-presentation-app .presentation-template-card-copy small { min-height: 27px; color: #8b93a3; font-size: 10px; line-height: 1.4; }
.office-presentation-app .presentation-template-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 11px 11px; color: #a0a6b3; font-size: 10px; }
.office-presentation-app .presentation-template-card-meta b { width: 8px; height: 8px; }
.office-presentation-app .presentation-template-card-preview {
    position: absolute;
    inset: 0 0 auto 0;
    height: 128px;
    display: grid;
    place-items: center;
    border-radius: 12px 12px 0 0;
    background: rgba(23, 27, 44, .48);
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    opacity: 0;
    transition: opacity .18s ease;
}
.office-presentation-app .presentation-template-card:hover .presentation-template-card-preview,
.office-presentation-app .presentation-template-card:focus-visible .presentation-template-card-preview { opacity: 1; }
.office-presentation-app .presentation-template-card-selected {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    display: none;
    padding: 4px 7px;
    border-radius: 999px;
    background: #fff;
    color: var(--slides-primary-dark);
    box-shadow: 0 3px 10px rgba(25, 31, 68, .18);
    font-size: 10px;
    font-weight: 800;
}
.office-presentation-app .presentation-template-card.is-selected .presentation-template-card-selected { display: inline-flex; }
.office-presentation-app .presentation-library-browse {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px;
}
.office-presentation-app .presentation-template-search {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #e2e5ed;
    border-radius: 10px;
    background: #fafbfc;
    color: #9ba2af;
}
.office-presentation-app .presentation-template-search:focus-within {
    border-color: #a69bf4;
    box-shadow: 0 0 0 3px rgba(91, 70, 239, .08);
    background: #fff;
}
.office-presentation-app .presentation-template-search > img { width: 16px; height: 16px; opacity: .58; }
.office-presentation-app .presentation-template-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--slides-ink);
    font: inherit;
    font-size: 12px;
}
.office-presentation-app .presentation-template-search input::placeholder { color: #9ba2af; }
.office-presentation-app .presentation-template-search-clear {
    display: inline-grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #8d8a9d;
    cursor: pointer;
}
.office-presentation-app .presentation-template-search-clear[hidden] {
    display: none;
}
.office-presentation-app .presentation-template-search-clear:hover,
.office-presentation-app .presentation-template-search-clear:focus-visible {
    background: #efedf7;
    color: #63549d;
    outline: 0;
}
.office-presentation-app .presentation-template-search-clear svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.office-presentation-app .presentation-template-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 12px;
    padding-top: 14px;
    border-top: 1px solid #eceef3;
    color: #626d7d;
    font-size: 11px;
    font-weight: 700;
}
.office-presentation-app .presentation-template-results label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #9aa1ad;
    font-size: 10px;
    font-weight: 400;
}
.office-presentation-app .presentation-template-results select {
    max-width: 132px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: #687284;
    font: inherit;
    font-size: 10px;
}
.office-presentation-app .presentation-template-load-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    margin: 26px 0 2px;
}
.office-presentation-app .presentation-template-load-more {
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #dedaf8;
    border-radius: 9px;
    background: #fff;
    color: var(--slides-primary-dark);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.office-presentation-app .presentation-template-load-more:hover { border-color: #a69bf4; background: #faf9ff; }
.office-presentation-app #presentation-template-showing { color: #9ba2af; font-size: 10px; }
@media (min-width: 921px) {
    .office-presentation-app .presentation-template-card > img {
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
    .office-presentation-app .presentation-template-card-preview {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
.office-presentation-app .presentation-desktop-only { display: block; }
.office-presentation-app .presentation-editor { margin-top: 20px; }
.office-presentation-app .presentation-cover-slide {
    min-height: 100%;
    margin: -44px -48px;
    overflow: hidden;
    border-radius: 7px;
    background: #172033;
    color: #fff;
}
.office-presentation-app .presentation-cover-slide > img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
}
.office-presentation-app .presentation-cover-copy {
    padding: 28px 48px 34px;
    background: linear-gradient(145deg, rgba(24, 32, 50, .98), rgba(48, 55, 87, .95));
}
.office-presentation-app .presentation-cover-copy > span {
    display: block;
    margin-bottom: 11px;
    color: #b8c6ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}
.office-presentation-app .presentation-cover-copy h1 {
    max-width: 100%;
    margin: 0 0 12px;
    color: #fff;
}
.office-presentation-app .presentation-cover-copy p,
.office-presentation-app .presentation-cover-copy strong { color: #d9e1f2; }
.office-presentation-app .presentation-cover-copy strong { display: block; margin-top: 18px; font-size: 13px; }
.office-presentation-app .presentation-slide-thumb img {
    display: block;
    width: 100%;
    height: 29px;
    margin-bottom: 4px;
    border-radius: 3px;
    object-fit: cover;
}
.office-presentation-app .presentation-slide-thumb img + small { margin-top: 0; }
.office-presentation-app .office-result-view-switch,
.office-presentation-app .office-version-history,
.office-presentation-app .office-presentation-preview { border-color: var(--slides-line); background: #fff; }
.office-presentation-app .office-result-content { color: #4d576a; }

@media (max-width: 1100px) {
    .office-presentation-app .office-tool-main { width: 100% !important; padding-left: 24px !important; padding-right: 24px !important; }
    .office-presentation-app .office-tool-layout { grid-template-columns: minmax(320px, .46fr) minmax(0, 1fr); gap: 18px; }
    .office-presentation-app .presentation-template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .office-presentation-app .office-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .office-presentation-app .office-tool-main { width: 100% !important; padding: 22px 12px 45px !important; }
    .office-presentation-app .office-tool-layout { display: block; }
    .office-presentation-app .slides-page-hero { margin-bottom: 22px; }
    .office-presentation-app .slides-page-hero p { max-width: none; }
    .office-presentation-app .slides-page-hero h1 { font-size: 30px; }
    .office-presentation-app .office-tool-form-card,
    .office-presentation-app .office-result-card { border-radius: 18px; padding: 22px 17px; }
    .office-presentation-app .slides-page-hero { gap: 12px; }
    .office-presentation-app .slides-history-link { margin-top: 0; padding: 0 9px; font-size: 11px; }
    .office-presentation-app .presentation-library-head { display: block; }
    .office-presentation-app .presentation-library-tools { margin-top: 15px; flex-wrap: wrap; }
    .office-presentation-app .presentation-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .office-presentation-app .presentation-template-card > img,
    .office-presentation-app .presentation-template-card-preview { height: 105px; }
    .office-presentation-app .presentation-cover-slide { margin: -30px -24px; }
    .office-presentation-app .presentation-cover-slide > img { height: 190px; }
    .office-presentation-app .presentation-cover-copy { padding: 22px 24px 28px; }
    .office-presentation-app .office-field-grid { grid-template-columns: 1fr; }
    .office-presentation-app .office-field-grid .office-field > span { min-height: 0; }
}
@media (max-width: 920px) {
    .office-presentation-app .presentation-desktop-only { display: none !important; }
}
@media (max-width: 430px) {
    .office-presentation-app .slides-page-hero { display: block; }
    .office-presentation-app .slides-history-link { margin-top: 15px; }
    .office-presentation-app .presentation-template-grid { grid-template-columns: 1fr; }
    .office-presentation-app .slides-sample-prompt-list { display: grid; grid-template-columns: 1fr; }
    .office-presentation-app .slides-sample-prompt-list button { text-align: left; }
}

/* Keep the slide parameters available while the template/editor area grows.
 * This mirrors the creation studio's fixed control rail without changing the
 * existing form markup or generation handlers. */
@media (min-width: 761px) {
    .office-presentation-app .office-tool-form-card {
        position: sticky;
        top: 12px;
        display: flex;
        flex-direction: column;
        /* The card starts below the shared topbar and the page introduction.
           Size it to the remaining viewport so its own scrollbar can reach
           the generate action without scrolling the whole page. */
        height: clamp(420px, calc(100dvh - 240px), 960px);
        max-height: clamp(420px, calc(100dvh - 240px), 960px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: #b8c2d1 transparent;
    }

    /* Keep the primary action reachable while the longer prompt rail is
       scrolled. The button remains part of the form and follows the card's
       own scroll container instead of disappearing below the viewport. */
    .office-presentation-app .office-tool-form-card #office-tool-form {
        min-height: 0;
    }

    .office-presentation-app .office-tool-form-card .slides-form-footnote {
        /* Reserve the sticky action's footprint so the note is never covered
           when the left form reaches the bottom of its scroll range. */
        padding-bottom: 72px;
    }

    .office-presentation-app .office-tool-form-card .office-generate-button {
        position: sticky;
        bottom: 0;
        z-index: 2;
        flex: 0 0 auto;
        box-shadow: 0 -12px 18px rgba(29, 34, 43, .72), 0 10px 22px rgba(7, 108, 244, .20);
    }
}

/* Keep the complete slides workspace dark when the shared shell switches theme.
 * This comes after the wide-layout rules so the product-specific light defaults
 * cannot leak into the dark workspace. */
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app {
    --slides-ink: #edf3fb;
    --slides-muted: #9eacc0;
    --slides-soft: #111923;
    --slides-line: #2d3a4d;
    --slides-primary: #82b3ff;
    --slides-primary-dark: #b7d3ff;
    background: #0d131d !important;
    color: var(--slides-ink);
    color-scheme: dark;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .creation-workspace,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-tool-main,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-main {
    background: #0d131d !important;
    color: var(--slides-ink);
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-page-hero h1,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-builder-heading h2,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-library-head h2 {
    color: #f2f6fc;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-page-hero p,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-builder-heading p,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-library-head p {
    color: #aebdd0;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-tool-form-card,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-result-card {
    border-color: #2d3a4d;
    background: #151d29;
    color: #edf3fb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-history-link {
    border-color: #355277;
    background: #17263a;
    color: #c6daf5;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-history-link:hover,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-history-link:focus-visible {
    border-color: #5d99e7;
    background: #1c304a;
    color: #e2efff;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-field > span,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-section-label,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-library-tools label {
    color: #dce8f7;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-field :is(input, textarea, select),
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-library-tools select {
    border-color: #33445a;
    background: #101722;
    color: #edf3fb;
    color-scheme: dark;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-field :is(input, textarea, select):focus,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-library-tools select:focus {
    border-color: #4d8fe8;
    box-shadow: 0 0 0 3px rgba(77, 143, 232, .18);
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-field :is(input, textarea)::placeholder {
    color: #8192a8;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-field-grid {
    border-color: #2d3a4d;
    background: #111923;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-sample-prompt-list button {
    border-color: #355277;
    background: #182b44;
    color: #b7d3ff;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-sample-prompt-list button:hover,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-sample-prompt-list button:focus-visible {
    border-color: #5d99e7;
    background: #1c304a;
    color: #dcecff;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-upload-box {
    border-color: #355277;
    background: #111923;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-upload-box strong {
    color: #dce8f7;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-upload-box small,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-form-footnote {
    color: #9eafc3;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-upload-box button {
    border-color: #4d8fe8;
    background: #182b44;
    color: #a8ccff;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-checkmark {
    background: #17372d;
    color: #7ee0b0;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-library-tools select,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-import-template {
    border-color: #355277;
    background: #182b44;
    color: #b7d3ff;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-import-template:hover {
    border-color: #5d99e7;
    background: #1c304a;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-categories {
    border-bottom-color: #2d3a4d;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-categories button {
    color: #8192a8;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-categories button:hover {
    background: #1c2735;
    color: #dce8f7;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-categories button.is-active {
    border-bottom-color: #6fa8f4;
    background: #1c304a;
    color: #b7d3ff;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card {
    border-color: #344254;
    background: #242b35;
    color: #edf3fb;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card:hover,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card:focus-visible,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card.is-selected {
    border-color: #78aaf0;
    box-shadow: 0 15px 28px rgba(0, 0, 0, .28);
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card-copy strong {
    color: #f1f5fb;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card-copy small {
    color: #9eafc3;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card-meta {
    color: #8192a8;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card-preview {
    background: rgba(7, 12, 20, .72);
    color: #f4f7fb;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card-selected {
    background: #1c304a;
    color: #b7d3ff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-result-view-switch,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-version-history,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-presentation-preview {
    border-color: #2d3a4d;
    background: #111923;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-result-view-switch button {
    color: #9eafc3;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-result-view-switch button.is-active {
    border-color: #365a82;
    background: #172a40;
    color: #9ac5ff;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-version-history-head strong,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-version-label {
    color: #e5effb;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-version-history-head small,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-version-history-head > span,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-version-detail {
    color: #9cacc0;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-version-item {
    background: #17202c;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-version-item.is-active {
    border-color: #365a82;
    background: #172a40;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-presentation-preview iframe {
    background: #0d131d;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-result-content {
    color: #d1dbe8;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-tool-footer-actions a {
    color: #8bbcff;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-editor-head,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-design-panel {
    border-color: #2d3a4d;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-editor-back,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-editor-actions button,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-design-panel > button {
    border-color: #3c4a5c;
    background: #252d39;
    color: #b8c7da;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-editor-head strong,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-design-head strong {
    color: #f4f7fc;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-editor-head small,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-design-head small,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-design-panel label {
    color: #9cacc0;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-slide-thumb {
    border-color: #3c4858;
    background: #2b323d;
    color: #8e9db1;
}

/* Feature pages use the same compact rail as the home workspace. Keep the
 * supplied static mark visible until the optional hover animation is loaded,
 * so opening a drawer never makes the brand disappear. */
.office-presentation-app nav[data-fuuvo-workspace-rail="1"] .home-rail-logo.is-chinese > .home-rail-logo-wordmark-static {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.office-presentation-app nav[data-fuuvo-workspace-rail="1"] .home-rail-logo.is-chinese > .home-rail-logo-wordmark-hover {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

@media (min-width: 921px) {
    /* More is the shared Recent drawer on desktop; the grouped capability
     * catalogue belongs to the New chat drawer and is intentionally mobile-only
     * inside the expanded sidebar. */
    .office-presentation-app #workspace-more-drawer {
        width: 320px !important;
        min-width: 320px !important;
    }
    .office-presentation-app #workspace-more-drawer .sidebar-brand-row {
        height: 48px !important;
        min-height: 48px !important;
    }
    .office-presentation-app #workspace-more-drawer .portal-search {
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 10px !important;
    }
    .office-presentation-app #workspace-more-drawer .fuuvo-mobile-tool-groups {
        display: none !important;
    }
}
.office-presentation-app .office-result-head > div:first-child > span:empty { display: none !important; }

/* Desktop AI Slides catalogue matches the supplied design preview while the
   shared workspace shell, navigation and result generation stay unchanged. */
@media (min-width: 921px) {
    .office-presentation-app {
        --slides-reference-accent: #5b43de;
        --slides-reference-accent-dark: #4531bc;
        --slides-reference-line: #e8e8ef;
        --slides-reference-muted: #777d8f;
    }

    .office-presentation-app .office-tool-layout {
        grid-template-columns: 306px minmax(0, 1fr);
        gap: 24px;
    }

    .office-presentation-app .slides-composer {
        position: sticky;
        top: 18px;
        max-height: calc(100dvh - 36px);
        min-height: 490px;
        padding: 23px 22px 18px;
        overflow: auto;
        border-color: var(--slides-reference-line);
        border-radius: 18px;
        box-shadow: 0 8px 32px rgba(48, 48, 90, .03);
        scrollbar-width: thin;
        scrollbar-color: #e5e3f0 transparent;
    }
    .office-presentation-app .slides-builder-heading { margin-bottom: 14px; }
    .office-presentation-app .slides-builder-heading h2 { margin: 0; font-size: 23px; }
    .office-presentation-app .slides-builder-heading p { margin: 9px 0 19px; font-size: 12px; }
    .office-presentation-app .slides-composer .office-field { margin-bottom: 8px; }
    .office-presentation-app .slides-composer .office-field > span { color: #555c6e; font-size: 11px; font-weight: 650; }
    .office-presentation-app .slides-composer .office-field :is(input, textarea, select) { border-radius: 10px; }
    .office-presentation-app .slides-composer .office-field input { min-height: 43px; padding: 12px; font-size: 12px; }
    .office-presentation-app .slides-composer .office-field textarea { min-height: 96px; padding: 12px; font-size: 12px; }
    .office-presentation-app .slides-composer .slides-sample-prompt-list { gap: 5px; }
    .office-presentation-app .slides-composer .slides-sample-prompt-list button { min-height: 27px; padding: 6px 7px; border-radius: 6px; background: #faf9fe; font-size: 9px; }
    .office-presentation-app .slides-output-grid,
    .office-presentation-app .slides-advanced-options .office-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0;
        border: 0;
        background: transparent;
    }
    .office-presentation-app .slides-advanced-options { margin: 12px 0 14px; }
    .office-presentation-app .slides-advanced-info { display: none; }
    .office-presentation-app .slides-advanced-options summary {
        display: flex; align-items: center; justify-content: space-between; gap: 8px;
        min-height: 34px; color: #6a6f80; font-size: 11px; font-weight: 650; cursor: pointer;
    }
    .office-presentation-app .slides-advanced-options summary::-webkit-details-marker { display: none; }
    .office-presentation-app .slides-advanced-options[open] summary span:last-child { transform: rotate(180deg); }
    .office-presentation-app .slides-advanced-options summary span:last-child { transition: transform .18s ease; }
    .office-presentation-app .slides-attachment {
        width: 100%; min-height: 43px; margin: 0; padding: 0 12px;
        display: flex; align-items: center; gap: 8px;
        border: 1px solid #e3e4ed; border-radius: 10px; background: #fff;
        color: #4b5163; font-size: 12px; font-weight: 600;
    }
    .office-presentation-app .slides-attachment img { width: 16px; height: 16px; }
    .office-presentation-app .slides-attachment small { margin-left: auto; color: #9299aa; font-size: 10px; font-weight: 400; }
    .office-presentation-app .slides-file-help { margin: 7px 0 15px; color: #818697; font-size: 10px; }
    .office-presentation-app .slides-compose-end { margin: 14px -22px -18px; padding: 2px 22px 10px; background: #fff; box-shadow: 0 -10px 16px rgba(255,255,255,.92); }
    .office-presentation-app .slides-selected-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
    .office-presentation-app .slides-selected-label label { color: #555c6e; font-size: 11px; font-weight: 650; }
    .office-presentation-app .slides-selected-label button { min-height: 24px; padding: 0; border: 0; background: transparent; color: #8a8c9a; font-size: 11px; }
    .office-presentation-app .slides-selected-template {
        width: 100%; min-height: 78px; padding: 8px; display: grid;
        grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 9px;
        border: 1px solid #e5e2f0; border-radius: 10px; background: #fff; text-align: left;
    }
    .office-presentation-app .slides-selected-template img { width: 84px; aspect-ratio: 16 / 9; height: auto; border-radius: 5px; object-fit: cover; }
    .office-presentation-app .slides-selected-template span { min-width: 0; display: grid; gap: 3px; }
    .office-presentation-app .slides-selected-template strong { overflow: hidden; color: #303445; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
    .office-presentation-app .slides-selected-template small { color: #79728d; font-size: 9px; }
    .office-presentation-app .slides-compose-footer { padding-top: 10px; }
    .office-presentation-app .slides-compose-footer .office-generate-button { min-height: 45px; margin-top: 8px; border-radius: 10px; background: var(--slides-reference-accent); box-shadow: none; font-size: 12px; }
    .office-presentation-app .slides-compose-footer .slides-form-footnote { justify-content: center; margin: 7px 0 0; font-size: 9px; }

    .office-presentation-app .presentation-template-library {
        padding: 25px; border-color: var(--slides-reference-line); border-radius: 18px;
        background: #fff; box-shadow: 0 8px 32px rgba(48, 48, 90, .03);
    }
    .office-presentation-app .presentation-library-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .office-presentation-app .presentation-library-head h2 { margin: 7px 0; font-size: 24px; letter-spacing: -.025em; }
    .office-presentation-app .presentation-library-head p { color: var(--slides-reference-muted); font-size: 11px; }
    .office-presentation-app .presentation-import-template {
        align-self: flex-start; min-height: 38px; margin-top: 21px; padding: 10px 13px;
        border-color: #e0dcf3; border-radius: 9px; background: #fff; color: #655294; font-size: 11px;
    }
    .office-presentation-app .presentation-library-browse { margin-top: 23px; }
    .office-presentation-app .presentation-template-search { min-height: 44px; padding: 0 12px; border-color: #e8e8f0; border-radius: 10px; background: #fafafd; }
    .office-presentation-app .presentation-template-search:focus-within { border-color: #ad9eef; box-shadow: 0 0 0 2px #f0ebff; }
    .office-presentation-app .presentation-template-search input { padding: 12px 0; font-size: 12px; }
    .office-presentation-app .presentation-template-search kbd { min-width: 20px; padding: 2px 5px; border: 1px solid #e3e2eb; border-radius: 4px; color: #b1afbd; font-size: 10px; text-align: center; }
    .office-presentation-app .presentation-template-categories { flex-wrap: wrap; gap: 6px; margin: 15px 0 18px; border: 0; }
    .office-presentation-app .presentation-template-categories button {
        min-height: 32px; padding: 8px 10px; gap: 5px; border-radius: 7px;
        background: #f8f8fb; color: #666d7e; font-size: 10px;
    }
    .office-presentation-app .presentation-template-categories button b { color: #a4a7b4; font-size: 9px; font-weight: 500; }
    .office-presentation-app .presentation-template-categories button.is-active { border-color: #ded5ff; background: #efebff; color: var(--slides-reference-accent); }
    .office-presentation-app .presentation-template-results { margin-bottom: 7px; padding-top: 16px; border-color: #f0f0f6; color: #303445; font-size: 11px; }
    .office-presentation-app .presentation-language-note { display: flex; align-items: center; gap: 5px; margin: 0 0 15px; color: #a0a0ae; font-size: 9px; }
    .office-presentation-app .presentation-language-note::before { content: ""; width: 12px; height: 12px; flex: 0 0 12px; border: 1.5px solid currentColor; border-radius: 50%; }
    .office-presentation-app .presentation-template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 15px; }
    .office-presentation-app .presentation-template-card {
        position: relative; overflow: hidden; border-color: #ecebf2; border-radius: 12px;
        background: #fff; box-shadow: none; text-align: left; cursor: pointer;
        transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
    }
    .office-presentation-app .presentation-template-card:hover,
    .office-presentation-app .presentation-template-card:focus-visible { border-color: #c4b6ef; box-shadow: 0 8px 22px rgba(52,48,81,.075); transform: translateY(-2px); }
    .office-presentation-app .presentation-template-cover { position: relative; }
    .office-presentation-app .presentation-template-cover > img { width: 100%; aspect-ratio: 16 / 9; height: auto; display: block; object-fit: cover; }
    .office-presentation-app .presentation-template-slide-badge { position: absolute; right: 7px; bottom: 7px; padding: 4px 6px; border-radius: 5px; background: rgba(255,255,255,.94); color: #535368; box-shadow: 0 1px 4px rgba(0,0,0,.04); font-size: 9px; }
    .office-presentation-app .presentation-template-selected-badge { position: absolute; top: 7px; left: 7px; display: none; padding: 4px 7px; border-radius: 999px; background: #fff; color: var(--slides-reference-accent); box-shadow: 0 2px 8px rgba(0,0,0,.08); font-size: 9px; font-weight: 750; }
    .office-presentation-app .presentation-template-card.is-selected .presentation-template-selected-badge { display: inline-flex; }
    .office-presentation-app .presentation-template-card-body { min-width: 0; display: grid; gap: 9px; padding: 10px 11px 12px; }
    .office-presentation-app .presentation-template-card-title { overflow: hidden; color: #262b3b; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
    .office-presentation-app .presentation-template-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #767b8c; font-size: 10px; }
    .office-presentation-app .presentation-template-card-meta::after { content: "→"; color: #a49cc4; }
    .office-presentation-app .presentation-empty-state { display: grid; place-items: center; gap: 8px; padding: 45px 20px; color: #777d8f; text-align: center; }
    .office-presentation-app .presentation-empty-state strong { color: #303445; font-size: 16px; }
    .office-presentation-app .presentation-empty-state p { margin: 0; font-size: 12px; }
    .office-presentation-app .presentation-empty-state button { min-height: 34px; padding: 0 13px; border: 1px solid #e0dcf3; border-radius: 8px; background: #fff; color: #655294; font-size: 11px; }
    .office-presentation-app .presentation-template-load-wrap { gap: 10px; margin: 27px 0 3px; }
    .office-presentation-app .presentation-template-load-more { min-height: 38px; padding: 10px 13px; border-color: #e0dcf3; border-radius: 9px; background: #fff; color: #655294; font-size: 11px; font-weight: 550; }
    .office-presentation-app .presentation-template-load-more:hover { border-color: #b5a7ed; background: #f9f7ff; }
    .office-presentation-app #presentation-template-showing { color: var(--slides-reference-muted); font-size: 11px; }

    #presentation-preview-dialog {
        width: min(1180px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px));
        margin: auto; padding: 0; border: 0; border-radius: 16px; background: #fff; color: #202333;
    }
    #presentation-preview-dialog::backdrop { background: rgba(32,35,51,.42); backdrop-filter: blur(3px); }
    .presentation-dialog-top { height: 62px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f0f6; }
    .presentation-dialog-top > span { color: var(--slides-reference-accent); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
    .presentation-dialog-top button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: #f7f6fb; color: #555c6e; font-size: 20px; line-height: 1; cursor: pointer; }
    #presentation-preview-dialog .presentation-icon-button { display: inline-grid; place-items: center; }
    #presentation-preview-dialog .presentation-icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
    .presentation-preview-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; height: calc(100% - 62px); }
    .presentation-preview-stage { min-width: 0; padding: 24px; background: #f8f7fb; overflow: auto; }
    .presentation-slide-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #e8e4ed; border-radius: 9px; background: #fff; }
    .presentation-slide-frame > img { width: 100%; height: 100%; display: block; object-fit: contain; }
    .presentation-slide-frame > button { position: absolute; top: calc(50% - 17px); width: 32px; height: 34px; display: grid; place-items: center; border: 1px solid #e4e0eb; border-radius: 8px; background: rgba(255,255,255,.94); color: #555c6e; box-shadow: 0 3px 10px rgba(51,51,51,.07); font-size: 20px; cursor: pointer; }
    #presentation-preview-previous { left: 12px; }
    #presentation-preview-next { right: 12px; }
    .presentation-slide-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 13px 0; color: #68677a; font-size: 11px; }
    .presentation-slide-caption > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #presentation-preview-thumbnails { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
    #presentation-preview-thumbnails button { position: relative !important; display: block !important; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; padding: 0 !important; overflow: hidden; border: 2px solid transparent !important; border-radius: 5px; background: #fff; cursor: pointer; }
    #presentation-preview-thumbnails button.is-active { border-color: #8b77ef; }
    #presentation-preview-thumbnails img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; display: block; object-fit: cover; }
    #presentation-preview-thumbnails .presentation-thumb-title { position: absolute; right: 0; bottom: 0; left: 0; padding: 16px 6px 4px; overflow: hidden; background: linear-gradient(transparent, rgba(10,14,24,.82)); color: #fff; font-size: 9px; line-height: 1.2; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
    #presentation-preview-thumbnails .presentation-thumb-index { position: absolute; right: 3px; bottom: 3px; min-width: 14px; padding: 1px 3px; border-radius: 3px; background: rgba(255,255,255,.9); color: #4f5261; font-size: 8px; text-align: center; }
    .presentation-preview-info { min-width: 0; display: flex; flex-direction: column; padding: 28px 23px; border-left: 1px solid #eceaf2; overflow: auto; }
    .presentation-preview-info > span:first-child { margin-bottom: 10px; color: var(--slides-reference-accent); font-size: 10px; font-weight: 700; }
    .presentation-preview-info h2 { margin: 0 0 13px; font-size: 25px; line-height: 1.2; }
    .presentation-preview-info > p { margin: 0; color: #71768a; font-size: 12px; line-height: 1.7; }
    .presentation-preview-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
    .presentation-preview-pills span { padding: 6px 8px; border-radius: 5px; background: #f6f5fa; color: #858094; font-size: 9px; }
    .presentation-preview-language { margin-top: 12px; color: #8d879d; font-size: 10px; }
    .presentation-preview-palette { display: flex; gap: 7px; margin: 20px 0 25px; }
    .presentation-preview-palette button,
    .presentation-preview-palette span {
        width: 22px;
        height: 22px;
        padding: 0;
        border: 2px solid #fff;
        border-radius: 50%;
        outline: 1px solid rgba(0,0,0,.08);
        box-shadow: 0 1px 3px rgba(25,28,45,.08);
        cursor: pointer;
    }
    .presentation-preview-palette button:hover { transform: scale(1.08); }
    .presentation-preview-palette button.is-active {
        outline: 2px solid var(--slides-reference-accent, #6c5bd8);
        outline-offset: 2px;
    }
    .presentation-preview-actions { margin-top: auto; }
    .presentation-preview-actions > button { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: var(--slides-reference-accent, #6c5bd8); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
    .presentation-preview-actions > button:hover,
    .presentation-preview-actions > button:focus-visible { background: var(--slides-reference-accent-dark, #5947c4); outline: 0; }
    .presentation-preview-actions > p { margin: 7px 0 0; color: #777387; font-size: 9px; text-align: center; }
}

@media (min-width: 921px) and (max-width: 1400px) {
    .office-presentation-app .presentation-template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1401px) {
    .office-presentation-app .presentation-template-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 921px) and (max-width: 1179px) {
    .office-presentation-app .slides-composer,
    .office-presentation-app .presentation-template-library { padding: 20px 17px; }
    .office-presentation-app .presentation-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .presentation-preview-layout { grid-template-columns: minmax(0, 1fr) 240px; }
    .presentation-preview-info { padding: 22px 18px; }
}

/* The reference catalogue keeps explicit dark controls while its preview modal
   follows the supplied light dialog design. */
.office-presentation-app .presentation-template-load-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}
.office-presentation-app .presentation-icon-button {
    display: grid;
    place-items: center;
    padding: 0;
}
.office-presentation-app .presentation-icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.office-presentation-app .presentation-slide-arrow { width: 32px; height: 34px; }
#presentation-preview-previous { left: 9px; }
#presentation-preview-next { right: 9px; }
.presentation-slide-frame > button {
    z-index: 3;
}
#presentation-preview-edit {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: auto;
    height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 8px;
    background: rgba(20,24,37,.72);
    color: #fff;
    box-shadow: 0 5px 15px rgba(13,18,32,.2);
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}
#presentation-preview-edit:hover,
#presentation-preview-edit:focus-visible {
    background: var(--slides-reference-accent, #6c5bd8);
    outline: 0;
}
.presentation-slide-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--presentation-theme-color, transparent);
    mix-blend-mode: soft-light;
    opacity: .26;
    pointer-events: none;
}
.presentation-slide-frame > img {
    position: relative;
    z-index: 0;
}

@media (min-width: 921px) {
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-composer,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-library {
        border-color: #2d3a4d;
        background: #151d29;
        box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    }
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-composer .office-field > span,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-advanced-options summary,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-selected-label label,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-library-head p,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-results,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card-title,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card-meta {
        color: #edf3fb;
    }
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-field :is(input, textarea, select),
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-attachment,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-selected-template,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-search,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-categories button,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-empty-state button,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-load-more {
        border-color: #33445a;
        background: #101722;
        color: #edf3fb;
    }
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-field :is(input, textarea)::placeholder,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-attachment small,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-file-help,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-selected-template small,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-selected-label button,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-search input,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-search input::placeholder,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-search kbd,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-search-clear,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-categories button b,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-language-note,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card-meta,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app #presentation-template-showing {
        color: #9eafc3;
    }
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-search-clear:hover,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-search-clear:focus-visible {
        background: #22344b;
        color: #dceaff;
    }
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-attachment img,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-search > img {
        filter: invert(1) opacity(.72);
    }
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-attachment:hover,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-attachment:focus-visible,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-search:focus-within,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-categories button:hover,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card:hover,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-card:focus-visible,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-load-more:hover {
        border-color: #5d99e7;
        background: #162332;
    }
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-search:focus-within {
        box-shadow: 0 0 0 2px rgba(93, 153, 231, .18);
    }
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-categories button.is-active {
        border-color: #356294;
        background: #172a40;
        color: #b7d3ff;
    }
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-compose-end {
        background: #151d29;
        box-shadow: 0 -10px 16px rgba(21, 29, 41, .92);
    }
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-empty-state {
        color: #9eafc3;
    }
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-empty-state strong {
        color: #edf3fb;
    }
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-slide-badge,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-selected-badge {
        background: rgba(13, 19, 29, .92);
        color: #dcecff;
    }

    #presentation-preview-dialog {
        width: min(1080px, calc(100vw - 64px));
        height: auto;
        max-height: calc(100dvh - 64px);
        overflow: auto;
        border: 1px solid #e6e2f1;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 26px 100px rgba(25, 19, 51, .21);
    }
    .presentation-dialog-top { padding: 17px 22px; }
    .presentation-dialog-top button { background: #f6f5f9; color: #555c6e; }
    .presentation-dialog-top button:hover { background: #eeeaf7; }
    .presentation-slide-caption { font-size: 11px; }
    .presentation-preview-info h2 { font-size: 25px; }
}

/* Desktop composer uses a scrolling form and a fixed action dock. */
@media (min-width: 921px) {
    .office-presentation-app .slides-composer {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 23px 0 0;
    }
    .office-presentation-app .slides-composer .slides-builder-heading {
        flex: 0 0 auto;
        margin: 0;
        padding: 0 22px;
    }
    .office-presentation-app .slides-composer > form {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 0 22px;
        scrollbar-width: thin;
        scrollbar-color: #d9d7e8 transparent;
    }
    .office-presentation-app .slides-compose-end {
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
        padding: 12px 22px 14px;
        border-top: 1px solid #ecebf2;
        background: #fff;
        box-shadow: none;
    }
    .office-presentation-app .presentation-template-load-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        row-gap: 10px;
        margin-top: 28px;
        text-align: center;
    }
    .office-presentation-app .presentation-template-load-more {
        max-width: 260px;
        width: 100%;
    }
    .office-presentation-app #presentation-template-showing {
        display: block;
        width: 100%;
        overflow-wrap: anywhere;
    }

    .presentation-editable-slide {
        position: absolute;
        inset: 0;
        z-index: 1;
        overflow: auto;
        outline: none;
    }
    .presentation-editable-slide:focus-visible {
        box-shadow: inset 0 0 0 2px rgba(91, 67, 222, .28);
    }
    .presentation-editable-content {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: clamp(12px, 2vw, 24px);
        padding: clamp(20px, 4vw, 56px);
        background: linear-gradient(135deg, #f7f5ff 0%, #ffffff 58%, #f2f7ff 100%);
        color: #24283a;
        line-height: 1.55;
    }
    .presentation-editable-content[data-presentation-tone="education"] { background: linear-gradient(135deg, #f0fbf4, #fff); color: #1d4436; }
    .presentation-editable-content[data-presentation-tone="business"] { background: linear-gradient(135deg, #eff5ff, #fff); color: #1d3250; }
    .presentation-editable-content[data-presentation-tone="data"] { background: linear-gradient(135deg, #f4f1ff, #fff); color: #2f2758; }
    .presentation-editable-content header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #6a7086;
        font-size: clamp(10px, 1vw, 13px);
        font-weight: 750;
    }
    .presentation-editable-content h1 {
        margin: 0;
        color: inherit;
        font-size: clamp(22px, 4vw, 54px);
        letter-spacing: -.035em;
        line-height: 1.08;
    }
    .presentation-editable-content p {
        margin: 0;
        max-width: min(64ch, 88%);
        color: #5e6579;
        font-size: clamp(12px, 1.5vw, 20px);
    }
    .presentation-editable-content footer {
        margin-top: auto;
        padding-top: clamp(12px, 2vw, 20px);
        border-top: 1px solid rgba(96, 103, 121, .18);
        color: #767d91;
        font-size: clamp(9px, 1vw, 12px);
    }
    .presentation-slide-canvas {
        position: relative;
    }
    .presentation-canvas-slide {
        position: relative;
        min-height: 440px;
        margin: -44px -48px;
        overflow: hidden;
        border-radius: 7px;
        background: #f7f5fb;
    }
    .presentation-editable-image-block {
        position: absolute;
        inset: 0;
        overflow: hidden;
        outline: 0 solid transparent;
        transition: outline-color .16s ease, box-shadow .16s ease;
        cursor: pointer;
    }
    .presentation-editable-image-block:hover,
    .presentation-editable-image-block:focus-visible,
    .presentation-editable-image-block.is-selected {
        outline: 3px solid var(--presentation-theme-color, #6b58f5);
        outline-offset: -3px;
        box-shadow: inset 0 0 0 7px rgba(255,255,255,.36);
    }
    .presentation-editable-image-block img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }
    .presentation-image-block-label {
        position: absolute;
        top: 13px;
        left: 13px;
        padding: 5px 8px;
        border: 1px solid rgba(255,255,255,.62);
        border-radius: 7px;
        background: rgba(20,24,37,.68);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        opacity: 0;
        transition: opacity .16s ease;
    }
    .presentation-editable-image-block:hover .presentation-image-block-label,
    .presentation-editable-image-block:focus-visible .presentation-image-block-label,
    .presentation-editable-image-block.is-selected .presentation-image-block-label {
        opacity: 1;
    }
    .presentation-editable-overlay {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-height: 42%;
        padding: 24px 42px 28px;
        border-top: 3px solid var(--presentation-theme-color, #6b58f5);
        background:
            linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.97) 36%),
            var(--presentation-theme-color, #6b58f5);
        color: #252a3b;
        line-height: 1.5;
        cursor: text;
    }
    .presentation-editable-overlay header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--presentation-theme-color, #6b58f5);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .08em;
    }
    .presentation-editable-overlay h1 {
        max-width: 92%;
        margin: 0;
        color: #1d2133;
        font-size: clamp(26px, 3.6vw, 48px);
        line-height: 1.08;
    }
    .presentation-editable-overlay p {
        max-width: 76%;
        margin: 0;
        color: #62697d;
        font-size: 14px;
    }
    .presentation-editable-overlay footer {
        margin-top: auto;
        color: #898fa2;
        font-size: 9px;
    }
    .presentation-swatches button.is-active {
        border-color: #fff;
        outline: 2px solid var(--presentation-theme-color, #6b58f5);
        outline-offset: 2px;
    }
    #presentation-preview-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    #presentation-preview-thumbnails button {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        align-items: center;
        gap: 6px;
        min-height: 46px;
        padding: 7px 8px;
        text-align: left;
    }
    #presentation-preview-thumbnails strong { color: #7b8093; font-size: 10px; }
    #presentation-preview-thumbnails span {
        position: static;
        overflow: hidden;
        color: #4d5263;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Keep every catalogue surface on the dark workspace; the modal intentionally
   follows the supplied light reference design. */
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-tool-main,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-composer,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-compose-end,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .office-result-card,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-library {
    background: #151d29 !important;
    color: #edf3fb;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-composer > form {
    scrollbar-color: #3b4c62 transparent;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app :is(.slides-compose-end, .slides-selected-template, .slides-attachment, .office-field :is(input, textarea, select), .presentation-template-search, .presentation-template-categories button, .presentation-template-card, .presentation-empty-state button, .presentation-template-load-more) {
    border-color: #33445a !important;
    background: #101722 !important;
    color: #edf3fb !important;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app :is(.slides-selected-label label, .slides-composer .office-field > span, .slides-advanced-options summary, .presentation-template-results, .presentation-template-card-title, .presentation-library-head h2) {
    color: #edf3fb !important;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app :is(.slides-selected-template small, .slides-file-help, .slides-attachment small, .slides-selected-label button, .presentation-library-head p, .presentation-template-search input, .presentation-template-search input::placeholder, .presentation-template-search kbd, .presentation-template-categories button b, .presentation-template-card-meta, #presentation-template-showing, .presentation-empty-state p) {
    color: #9eafc3 !important;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-compose-end {
    border-top-color: #2d3a4d !important;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-search kbd {
    border-color: #41536a !important;
    background: #182231 !important;
}

/* The desktop prompt rail uses a narrow column. Keep both fields at a
 * readable size and force a flat fill so inherited gradients cannot clip or
 * fade the lower half of Chinese glyphs. */
@media (min-width: 921px) {
    .office-presentation-app .slides-composer .slides-prompt-field input {
        height: 50px;
        min-height: 50px;
        padding: 0 14px;
        background-color: #fff !important;
        background-image: none !important;
        color: #26344a !important;
        font-size: 15px;
        line-height: normal;
        -webkit-text-fill-color: #26344a;
    }

    .office-presentation-app .slides-composer .slides-prompt-field textarea {
        min-height: 108px;
        padding: 13px 14px;
        background-color: #fff !important;
        background-image: none !important;
        color: #26344a !important;
        font-size: 14px;
        line-height: 1.65;
        -webkit-text-fill-color: #26344a;
    }

    .office-presentation-app .slides-composer .slides-prompt-field :is(input, textarea)::placeholder {
        color: #8b97aa;
        opacity: 1;
        -webkit-text-fill-color: #8b97aa;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-composer .slides-prompt-field input,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-composer .slides-prompt-field textarea {
        border-color: #3d516b !important;
        background-color: #101722 !important;
        background-image: none !important;
        color: #f2f6fc !important;
        -webkit-text-fill-color: #f2f6fc !important;
        caret-color: #8ec5ff;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-composer .slides-prompt-field :is(input, textarea)::placeholder {
        color: #9aabc0 !important;
        -webkit-text-fill-color: #9aabc0 !important;
    }
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .slides-attachment img,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-search > img {
    filter: invert(1) opacity(.72);
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app :is(.slides-attachment, .slides-selected-template, .presentation-template-search, .presentation-template-categories button, .presentation-template-card, .presentation-empty-state button, .presentation-template-load-more):hover,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app :is(.slides-attachment, .slides-selected-template, .presentation-template-search, .presentation-template-categories button, .presentation-template-card, .presentation-empty-state button, .presentation-template-load-more):focus-visible {
    border-color: #5d99e7 !important;
    background: #162332 !important;
}
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .office-presentation-app .presentation-template-categories button.is-active {
    border-color: #356294 !important;
    background: #172a40 !important;
    color: #b7d3ff !important;
}
