:root {
    --doc-bg: #17191f;
    --doc-panel: #1f2229;
    --doc-panel-2: #252932;
    --doc-line: #343943;
    --doc-text: #f5f7fb;
    --doc-muted: #8993a4;
    --doc-blue: #6ba6ff;
    --doc-accent: #3d82f6;
    --doc-paper: #ffffff;
    --doc-ink: #253247;
    --doc-editor-bg: #eef0f4;
}

.ai-document-app [hidden] { display: none !important; }
.ai-document-app { min-height: 100vh; background: var(--doc-bg); color: var(--doc-text); }
.ai-document-app .creation-workspace { background: var(--doc-bg); }
.ai-document-app .portal-sidebar-toggle { display: none !important; }
.ai-document-app .creation-topbar { min-height: 58px; background: var(--doc-bg); border-bottom: 1px solid #292c33; color: #dfe5ef; }
.ai-document-app .creation-topbar-title { color: #f1f4fa; }
.ai-document-app .creation-top-actions { color: #aeb8c8; }
.ai-document-app .creation-top-actions a,
.ai-document-app .creation-top-actions button { color: inherit; }
.ai-document-app .creation-language a { color: #909aaa; }
.ai-document-app .creation-language a.active { color: #f4f7fb; }
.ai-document-app .portal-login { background: #f2f5fa; color: #1d2430 !important; }

.ai-document-main { width: 100%; min-height: calc(100vh - 58px); margin: 0; padding: 0 30px 42px; overflow-y: auto; overflow-x: hidden; background: var(--doc-bg); }
.ai-document-breadcrumb { width: min(1920px, 100%); margin: 0 auto; padding: 15px 8px 0; display: flex; align-items: center; gap: 8px; color: #687282; font-size: 12px; }
.ai-document-breadcrumb a { color: #8995a6; text-decoration: none; }
.ai-document-breadcrumb a:hover { color: var(--doc-blue); }

.ai-document-landing { width: min(1920px, 100%); min-height: calc(100vh - 113px); margin: 0 auto; padding: 34px 8px 20px; display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 30px; align-items: start; }
.ai-document-intro { min-height: 730px; padding: 30px 28px 24px 6px; display: flex; flex-direction: column; border-right: 1px solid #2c3038; }
.ai-document-brandline { display: flex; align-items: center; gap: 8px; color: #aab5c6; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ai-document-brandmark { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #53647f; border-radius: 7px; color: #83b6ff; font-size: 13px; }
.ai-document-live-dot { width: 6px; height: 6px; margin-left: 2px; border-radius: 50%; background: #53d39a; box-shadow: 0 0 0 4px rgba(83, 211, 154, .12); }
.ai-document-intro h1 { max-width: 300px; margin: 37px 0 14px; color: #f9fbff; font-size: clamp(34px, 3vw, 50px); font-weight: 780; line-height: 1.06; letter-spacing: 0; }
.ai-document-intro > p { max-width: 305px; margin: 0; color: #8c97a8; font-size: 13px; line-height: 1.7; }
.ai-document-prompt { width: 100%; min-height: 102px; margin-top: 26px; padding: 13px 12px 12px 15px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid #3a424f; border-radius: 8px; background: #21252d; box-shadow: 0 15px 30px rgba(0, 0, 0, .16); }
.ai-document-prompt:focus-within { border-color: #5f8fcd; box-shadow: 0 0 0 3px rgba(91, 149, 230, .13); }
.ai-document-prompt-icon { display: none !important; }
.ai-document-prompt textarea { min-width: 0; flex: 1; height: 62px; padding: 2px 0; resize: none; overflow-y: auto; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; color: #eef4ff; font: inherit; font-size: 13px; line-height: 1.5; }
.ai-document-prompt textarea::placeholder { color: #697587; }
.ai-document-start-button { width: 32px; height: 32px; flex: 0 0 32px; align-self: flex-end; display: grid; place-items: center; border: 0; border-radius: 7px; background: #377de9; color: white; cursor: pointer; }
.ai-document-start-button svg { width: 18px; height: 18px; }
.ai-document-start-button:hover { background: #4e91fa; }
.ai-document-quick-prompts { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 6px; color: #778396; font-size: 11px; }
.ai-document-quick-prompts > span { width: 100%; margin-bottom: 2px; color: #657083; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ai-document-quick-prompts button { padding: 6px 9px; border: 1px solid #353c48; border-radius: 6px; background: #20242b; color: #a3afc0; font: inherit; cursor: pointer; }
.ai-document-quick-prompts button:hover { border-color: #5e83b4; color: #d8e7ff; background: #273341; }
.ai-document-start-divider { margin: auto 0 14px; display: flex; align-items: center; gap: 8px; color: #626d7c; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.ai-document-start-divider::before, .ai-document-start-divider::after { content: ''; height: 1px; flex: 1; background: #30343c; }
.ai-document-output-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.ai-document-output-formats button { min-height: 62px; padding: 8px; display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 7px; align-items: center; position: relative; border: 1px solid #343b47; border-radius: 7px; background: #20242b; color: #aab4c4; text-align: left; cursor: pointer; }
.ai-document-output-formats button:hover, .ai-document-output-formats button.is-active { border-color: #5d8ed3; background: #253246; }
.ai-document-output-formats button > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.ai-document-output-formats strong { overflow: hidden; color: #e9eef7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ai-document-output-formats small { color: #758398; font-size: 9px; }
.ai-document-output-formats i { position: absolute; top: 5px; right: 6px; display: none; color: #80b3ff; font-size: 10px; font-style: normal; }
.ai-document-output-formats button.is-active i { display: block; }
.format-icon { width: 22px; height: 27px; display: grid; place-items: center; border-radius: 4px; font-size: 12px; font-weight: 800; }
.format-word { background: #2c66b0; color: white; }.format-doc { background: #704dd1; color: white; }.format-pdf { background: #bd5a67; color: white; }
.ai-document-intro-foot { margin-top: 18px; padding-top: 14px; display: flex; align-items: center; gap: 8px; border-top: 1px solid #30343c; color: #778394; font-size: 10px; line-height: 1.35; }
.ai-document-foot-icon, .ai-document-intro-foot kbd { display: none !important; }

.ai-document-library { min-width: 0; min-height: 720px; padding: 25px 25px 27px; border: 1px solid #2d323b; border-radius: 10px; background: #1d2026; }
.ai-document-library-head { min-height: 64px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ai-document-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #7e8a9c; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ai-document-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #6fa8ff; box-shadow: 0 0 0 4px rgba(111, 168, 255, .12); }
.ai-document-library-head h2 { margin: 6px 0 3px; color: #f1f4f9; font-size: 22px; font-weight: 700; letter-spacing: 0; }
.ai-document-library-head p { margin: 0; color: #737e8e; font-size: 11px; }
.ai-document-library-tools { display: flex; align-items: center; gap: 6px; }
.library-tool, .library-sort { height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #343a45; background: #242830; color: #8f9bad; cursor: pointer; }
.library-tool { width: 32px; border-radius: 6px; }.library-tool svg { width: 16px; height: 16px; }.library-tool:hover, .library-tool.is-active { border-color: #5b83b5; color: #d8e6fb; background: #2c3a4e; }
.library-sort { min-width: 115px; padding: 0 9px; gap: 8px; border-radius: 6px; color: #9ca7b6; font: inherit; font-size: 11px; }.library-sort svg { width: 14px; height: 14px; margin-left: auto; }
.ai-document-library-body { margin-top: 25px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
.ai-document-category-panel { padding: 0 14px 0 0; border-right: 1px solid #2f343e; }
.ai-document-section-label { margin: 0 0 11px; color: #687384; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ai-document-category-panel nav { display: grid; gap: 3px; }
.ai-document-category { width: 100%; min-height: 33px; padding: 0 8px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; background: transparent; color: #858f9e; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.ai-document-category:hover { background: #272c34; color: #d6dfec; }.ai-document-category.is-active { background: #2b3d56; color: #a6cbff; font-weight: 700; }.ai-document-category b { width: 4px; height: 4px; margin-left: auto; border-radius: 50%; background: currentColor; opacity: 0; }.ai-document-category.is-active b { opacity: 1; }
.ai-document-category-icon { width: 15px; height: 15px; position: relative; display: grid; place-items: center; color: currentColor; opacity: .82; }.ai-document-category-icon::before { content: ''; width: 10px; height: 12px; border: 1.2px solid currentColor; border-radius: 2px; }.ai-document-category-icon::after { content: ''; width: 5px; height: 1px; position: absolute; top: 6px; background: currentColor; box-shadow: 0 3px 0 currentColor; }
.ai-document-category-note { margin-top: 28px; padding-top: 13px; display: flex; align-items: flex-start; gap: 7px; border-top: 1px solid #30353e; color: #667181; font-size: 10px; line-height: 1.5; }.ai-document-category-note strong { width: 19px; height: 19px; flex: 0 0 19px; display: grid; place-items: center; border-radius: 5px; background: #3b315c; color: #c2aaff; font-size: 9px; }
.ai-document-template-area { min-width: 0; }.ai-document-template-head { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }.ai-document-template-head h3 { margin: 0; color: #e8edf5; font-size: 16px; font-weight: 700; }.ai-document-template-head p { margin: 4px 0 0; color: #6c7788; font-size: 10px; }
.ai-document-search { width: min(220px, 38%); height: 33px; padding: 0 9px; display: flex; align-items: center; gap: 7px; border: 1px solid #343a45; border-radius: 6px; background: #242830; }.ai-document-search:focus-within { border-color: #5d8ac5; }.ai-document-search svg { width: 15px; height: 15px; color: #778596; }.ai-document-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #dfe7f3; font: inherit; font-size: 11px; }.ai-document-search input::placeholder { color: #707b8c; }
.ai-document-template-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }.ai-document-template-grid.is-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }.ai-document-template-grid.is-compact .ai-document-template-card-copy { display: none; }.ai-document-template-grid.is-compact .ai-document-template-open { display: none; }
.ai-document-template-card { min-width: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #333944; border-radius: 7px; background: #252932; color: #dfe6f1; text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }.ai-document-template-card:hover { border-color: #668bbd; box-shadow: 0 14px 28px rgba(0, 0, 0, .22); transform: translateY(-2px); }.ai-document-template-card:focus-visible { outline: 2px solid #77a9f4; outline-offset: 2px; }
.ai-document-template-preview { min-height: 174px; padding: 12px; position: relative; overflow: hidden; display: block; background: #e9eef4; color: #365373; }.ai-document-template-preview::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.14); pointer-events: none; }.preview-sheet { width: 86%; min-height: 151px; padding: 14px 12px 10px; position: relative; z-index: 1; display: block; overflow: hidden; background: #fff; color: #273d5b; box-shadow: 0 6px 12px rgba(29, 42, 58, .18); transform: rotate(-1deg); }.preview-kicker { width: 32px; height: 4px; display: block; margin-bottom: 10px; border-radius: 2px; background: currentColor; opacity: .55; }.preview-sheet strong { display: block; max-width: 98%; color: currentColor; font-size: 13px; line-height: 1.2; }.preview-sheet small { display: block; max-width: 98%; margin-top: 6px; overflow: hidden; color: currentColor; font-size: 7px; line-height: 1.4; opacity: .62; text-overflow: ellipsis; white-space: nowrap; }.preview-sheet > i { width: 78%; height: 3px; display: block; margin-top: 10px; border-radius: 2px; background: currentColor; opacity: .14; }.preview-sheet > i + i { width: 59%; margin-top: 6px; }.preview-blocks { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }.preview-blocks b { height: 24px; display: block; border-radius: 2px; background: currentColor; opacity: .14; }.preview-chip { position: absolute; z-index: 2; right: 10px; bottom: 9px; padding: 3px 5px; border-radius: 3px; background: rgba(28, 42, 59, .72); color: #fff; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.ai-document-template-card[data-tone="navy"] .ai-document-template-preview { background: #dbe5f1; color: #304c70; }.ai-document-template-card[data-tone="teal"] .ai-document-template-preview { background: #cce8e5; color: #276f6c; }.ai-document-template-card[data-tone="indigo"] .ai-document-template-preview { background: #dedff3; color: #50549a; }.ai-document-template-card[data-tone="coral"] .ai-document-template-preview { background: #f4d9d0; color: #9c523f; }.ai-document-template-card[data-tone="purple"] .ai-document-template-preview { background: #e2d8f3; color: #684e99; }.ai-document-template-card[data-tone="rose"] .ai-document-template-preview { background: #f1d9df; color: #9b5367; }.ai-document-template-card[data-tone="slate"] .ai-document-template-preview { background: #dce2e9; color: #506274; }.ai-document-template-card[data-tone="green"] .ai-document-template-preview { background: #d8eadc; color: #387657; }.ai-document-template-card[data-tone="orange"] .ai-document-template-preview { background: #f4dfbb; color: #966529; }
.ai-document-template-card-copy { min-width: 0; padding: 11px 11px 3px; display: grid; gap: 4px; }.ai-document-template-card-copy strong { overflow: hidden; color: #e5ebf4; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }.ai-document-template-card-copy small { min-height: 28px; display: -webkit-box; overflow: hidden; color: #818d9d; font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.ai-document-template-open { align-self: flex-end; margin: 0 10px 8px; color: #798699; font-size: 15px; }.ai-document-template-card:hover .ai-document-template-open { color: #8ab7ff; }
.ai-document-template-empty { min-height: 280px; margin-top: 15px; padding: 35px 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed #3a424f; border-radius: 7px; background: #22262d; }.ai-document-template-empty > span { color: #7aa8e2; font-size: 23px; }.ai-document-template-empty h3 { margin: 11px 0 4px; color: #d3deed; font-size: 15px; }.ai-document-template-empty p { max-width: 320px; margin: 0; color: #7d8999; font-size: 11px; line-height: 1.5; }.ai-document-template-empty button { margin-top: 16px; padding: 8px 13px; border: 1px solid #4d709e; border-radius: 6px; background: #2b4669; color: #cfe2ff; font: inherit; font-size: 11px; cursor: pointer; }

.ai-document-editor-shell { min-height: calc(100vh - 75px); margin: 15px auto 0; overflow: hidden; background: var(--doc-editor-bg); color: var(--doc-ink); border: 1px solid #2f343d; border-radius: 9px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }.ai-document-app.is-editor-fullscreen .ai-document-editor-shell { position: fixed; z-index: 50; inset: 0; width: 100vw; height: 100vh; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }.ai-document-app.is-editor-preview .ai-document-editor-toolbar, .ai-document-app.is-editor-preview .ai-document-outline-panel, .ai-document-app.is-editor-preview .ai-document-ai-panel, .ai-document-app.is-editor-preview .ai-document-editor-statusbar { display: none; }.ai-document-app.is-editor-preview .ai-document-canvas-panel { grid-column: 1 / -1; }.ai-document-app.is-editor-preview .ai-document-canvas-wrap { background: #cfd4dc; }
.ai-document-editor-topbar { min-height: 61px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #20242b; color: #dce4f1; }.ai-document-editor-topbar-left, .ai-document-editor-actions, .ai-document-editor-topbar-center { display: flex; align-items: center; }.ai-document-editor-topbar-left { min-width: 0; gap: 11px; }.ai-document-editor-topbar-center { gap: 8px; color: #8693a5; font-size: 10px; }.ai-document-back-button, .editor-icon-button, .editor-share-button { border: 0; background: transparent; color: #aab6c7; cursor: pointer; }.ai-document-back-button { min-height: 31px; padding: 0 8px 0 3px; display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; font: inherit; font-size: 11px; }.ai-document-back-button svg { width: 17px; height: 17px; }.ai-document-back-button:hover, .editor-icon-button:hover { background: #2a3039; color: #fff; }.editor-topbar-divider { width: 1px; height: 24px; background: #373e49; }.editor-file-icon { width: 22px; height: 25px; display: grid; place-items: center; border-radius: 4px; background: #5e75c4; color: #fff; font-size: 11px; }.ai-document-editor-title { min-width: 0; display: grid; gap: 2px; }.ai-document-editor-title input { width: min(360px, 31vw); padding: 0; overflow: hidden; border: 0; outline: 0; background: transparent; color: #f2f6fb; font: inherit; font-size: 13px; font-weight: 700; text-overflow: ellipsis; }.ai-document-editor-title small { color: #788599; font-size: 9px; }.ai-document-editor-title small.is-saving { color: #7eb2ff; }.ai-document-template-badge { padding: 4px 7px; border: 1px solid #40536d; border-radius: 4px; color: #a8cbfc; font-size: 9px; }.editor-privacy-dot { width: 5px; height: 5px; border-radius: 50%; background: #64d49c; }.ai-document-editor-actions { gap: 4px; }.editor-icon-button { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 5px; }.editor-icon-button svg { width: 17px; height: 17px; }.editor-share-button { height: 31px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #47566c; border-radius: 5px; font: inherit; font-size: 10px; }.editor-share-button svg { width: 14px; height: 14px; }.editor-share-button:hover { border-color: #7ba7df; color: #e8f1ff; }.ai-document-new-button { height: 31px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 5px; background: #427ee0; color: #fff; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }.ai-document-new-button:hover { background: #5793f2; }
.ai-document-editor-toolbar { min-height: 53px; padding: 8px 16px; display: flex; align-items: center; gap: 8px; overflow-x: auto; border-bottom: 1px solid #d9dee6; background: #fff; color: #607087; }.toolbar-group { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }.toolbar-group > button { width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #58687d; font: inherit; font-size: 14px; cursor: pointer; }.toolbar-group > button:hover, .toolbar-group > button.is-active { background: #e8eff9; color: #1e63b5; }.toolbar-group > button b, .toolbar-group > button i, .toolbar-group > button u, .toolbar-group > button s { font-size: 13px; }.toolbar-divider { width: 1px; height: 24px; flex: 0 0 1px; background: #e1e5eb; }.toolbar-select-group { gap: 5px; }.toolbar-select-group select { height: 29px; max-width: 135px; padding: 0 6px; border: 1px solid #d9dfe7; border-radius: 4px; outline: 0; background: #fff; color: #4f6076; font: inherit; font-size: 10px; }.toolbar-select-group select:focus { border-color: #75a4dc; }.toolbar-color { width: 27px; height: 29px; position: relative; display: grid; place-items: center; border-radius: 4px; color: #32435b; font-size: 14px; font-weight: 800; cursor: pointer; }.toolbar-color:hover { background: #e8eff9; }.toolbar-color::after { content: ''; width: 13px; height: 2px; position: absolute; bottom: 3px; border-radius: 1px; background: #243248; }.toolbar-highlight::after { background: #f2c742; }.toolbar-color input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ai-document-editor-body { min-height: calc(100vh - 220px); display: grid; grid-template-columns: 215px minmax(520px, 1fr) 310px; }.ai-document-outline-panel, .ai-document-ai-panel { min-width: 0; background: #f7f8fa; }.ai-document-outline-panel { padding: 18px 13px 12px; border-right: 1px solid #dce1e8; }.editor-panel-heading { padding: 0 7px 12px; display: flex; align-items: center; justify-content: space-between; color: #66758a; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }.panel-add-button { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #d4dce7; border-radius: 4px; background: #fff; color: #5476a4; cursor: pointer; }.panel-add-button:hover { border-color: #8eadd4; background: #ecf3fc; }.ai-document-outline { display: grid; gap: 2px; }.ai-document-outline button { min-height: 30px; padding: 4px 8px; overflow: hidden; border: 0; border-left: 2px solid transparent; border-radius: 3px; background: transparent; color: #6c7a8e; font: inherit; font-size: 11px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }.ai-document-outline button:hover, .ai-document-outline button.is-active { border-left-color: #4388dd; background: #e8f0fb; color: #245b98; }.ai-document-outline button.is-sub { padding-left: 20px; font-size: 10px; }.ai-document-outline-footer { margin-top: 20px; padding-top: 12px; display: grid; gap: 3px; border-top: 1px solid #dce1e8; }.ai-document-outline-footer button { min-height: 31px; padding: 0 7px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 4px; background: transparent; color: #758398; font: inherit; font-size: 10px; text-align: left; cursor: pointer; }.ai-document-outline-footer button:hover { background: #e9eef5; color: #315982; }.ai-document-outline-footer button span:first-child { width: 15px; color: #567ca8; text-align: center; }.ai-document-outline-footer button b { margin-left: auto; color: #a0acba; font-size: 9px; font-weight: 400; }
.ai-document-canvas-panel { min-width: 0; background: #dfe3e9; }.ai-document-canvas-wrap { height: 100%; min-height: 680px; padding: 38px 28px 65px; overflow: auto; display: flex; justify-content: center; background: #dfe3e9; }.ai-document-canvas { width: min(760px, 100%); min-height: 1030px; padding: 78px 86px 100px; outline: 0; background: var(--doc-paper); color: var(--doc-ink); font-family: Arial, "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.7; box-shadow: 0 10px 25px rgba(41, 51, 66, .15); }.ai-document-canvas:focus { box-shadow: 0 0 0 2px #78a8df, 0 10px 25px rgba(41, 51, 66, .15); }.ai-document-canvas h1 { margin: 0 0 20px; color: #16263d; font-size: 34px; line-height: 1.18; }.ai-document-canvas h2 { margin: 31px 0 11px; padding-bottom: 5px; border-bottom: 1px solid #dce3eb; color: #233b5b; font-size: 21px; line-height: 1.28; }.ai-document-canvas h3 { margin: 23px 0 8px; color: #2a496e; font-size: 17px; }.ai-document-canvas p { margin: 0 0 14px; }.ai-document-canvas .doc-lead { color: #60728a; font-size: 13px; }.ai-document-canvas .doc-note { padding: 12px 15px; border-left: 3px solid #76a3d8; background: #f3f7fc; color: #64768c; font-size: 13px; }.ai-document-canvas ul, .ai-document-canvas ol { margin: 0 0 16px; padding-left: 23px; }.ai-document-canvas li { margin: 4px 0; }.ai-document-canvas blockquote { margin: 16px 0; padding: 12px 18px; border-left: 3px solid #7fa6d7; background: #f5f8fc; color: #5e7188; }.ai-document-canvas a { color: #276bb5; text-decoration: underline; }.ai-document-canvas img { max-width: 100%; height: auto; display: block; margin: 14px auto; }.ai-document-canvas hr { margin: 25px 0; border: 0; border-top: 1px solid #d9e0e9; }.ai-document-canvas table { width: 100%; margin: 18px 0 22px; border-collapse: collapse; font-size: 12px; }.ai-document-canvas th, .ai-document-canvas td { padding: 8px 9px; border: 1px solid #cfd8e3; text-align: left; vertical-align: top; }.ai-document-canvas th { background: #edf3f9; color: #2f4867; font-weight: 700; }.ai-document-canvas mark { padding: 1px 3px; background: #fff0a6; }
.ai-document-ai-panel { padding: 0 15px 18px; border-left: 1px solid #dce1e8; }.ai-document-panel-tabs { min-height: 51px; display: flex; align-items: center; gap: 2px; border-bottom: 1px solid #dce1e8; }.ai-document-panel-tabs button { min-height: 31px; padding: 0 8px; display: inline-flex; align-items: center; gap: 5px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #7b889a; font: inherit; font-size: 10px; cursor: pointer; }.ai-document-panel-tabs button:hover, .ai-document-panel-tabs button.is-active { border-bottom-color: #4e8ad5; color: #2c5f98; }.ai-document-panel-view { display: none; padding-top: 18px; }.ai-document-panel-view.is-active { display: block; }.ai-document-ai-panel-head { display: flex; gap: 9px; }.ai-document-ai-mark { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 7px; background: #e7ddfa; color: #7753c2; font-size: 14px; }.ai-document-ai-panel-head h2 { margin: 0; color: #2a3b52; font-size: 14px; }.ai-document-ai-panel-head p { margin: 4px 0 0; color: #7f8c9d; font-size: 10px; line-height: 1.45; }.ai-document-ai-actions { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }.ai-document-ai-actions button { min-height: 30px; padding: 0 5px; border: 1px solid #d4dce7; border-radius: 4px; background: #fff; color: #536880; font: inherit; font-size: 10px; cursor: pointer; }.ai-document-ai-actions button:hover { border-color: #8eb0d9; background: #eef5fd; color: #2c609c; }.ai-document-ai-panel textarea { width: 100%; min-height: 106px; margin-top: 12px; padding: 10px; resize: vertical; border: 1px solid #d6dee8; border-radius: 5px; outline: 0; background: #fff; color: #34475f; font: inherit; font-size: 11px; line-height: 1.5; }.ai-document-ai-panel textarea:focus { border-color: #82a9d5; box-shadow: 0 0 0 3px #e9f2fc; }.ai-document-ai-submit { width: 100%; min-height: 34px; margin-top: 8px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 5px; background: #377bd5; color: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }.ai-document-ai-submit:hover { background: #2d6fc7; }.ai-document-ai-submit:disabled { opacity: .6; cursor: wait; }.ai-document-ai-status { min-height: 17px; margin-top: 9px; color: #718196; font-size: 10px; line-height: 1.4; }.ai-document-ai-status.is-error { color: #c15b66; }.ai-document-ai-status.is-done { color: #2f9871; }.ai-document-ai-status.is-working { color: #417fc2; }.ai-document-ai-tips { margin-top: 13px; display: grid; gap: 6px; }.ai-document-ai-tips strong { color: #748297; font-size: 10px; }.ai-document-ai-tips button { padding: 7px 8px; border: 1px solid #dde3ea; border-radius: 4px; background: #fff; color: #65758a; font: inherit; font-size: 10px; text-align: left; cursor: pointer; }.ai-document-ai-tips button:hover { border-color: #a6bdd9; background: #f2f7fd; color: #2e649d; }.panel-view-title { color: #2d3e55; font-size: 14px; font-weight: 700; }.style-control { margin-top: 20px; }.style-control > label { display: block; margin-bottom: 8px; color: #7b8898; font-size: 10px; }.style-options { display: flex; gap: 5px; }.style-options button { min-height: 29px; padding: 0 9px; border: 1px solid #d4dce7; border-radius: 4px; background: #fff; color: #64758b; font: inherit; font-size: 10px; cursor: pointer; }.style-options button.is-active, .style-options button:hover { border-color: #76a2d3; background: #edf5fd; color: #2d639c; }.style-swatches { display: flex; gap: 8px; }.style-swatches button { width: 23px; height: 23px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #d1d9e4; cursor: pointer; }.style-swatches button.is-active { box-shadow: 0 0 0 2px #4d86c9; }.style-swatches button[data-value="blue"] { background: #4c88d7; }.style-swatches button[data-value="teal"] { background: #2e9b9a; }.style-swatches button[data-value="coral"] { background: #d57668; }.style-swatches button[data-value="violet"] { background: #8065c7; }.style-reset { margin-top: 24px; border: 0; background: transparent; color: #6d89ac; font: inherit; font-size: 10px; cursor: pointer; }.style-reset:hover { color: #2f67a4; }.comments-empty { min-height: 280px; padding: 40px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.comments-empty > span { color: #7da3ce; font-size: 25px; }.comments-empty strong { margin-top: 13px; color: #4d6078; font-size: 12px; }.comments-empty p { margin: 7px 0 0; color: #8995a5; font-size: 10px; line-height: 1.5; }.comments-empty button { margin-top: 17px; padding: 7px 10px; border: 1px solid #cbd8e7; border-radius: 4px; background: #fff; color: #4e78a8; font: inherit; font-size: 10px; cursor: pointer; }
.ai-document-editor-statusbar { min-height: 31px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #d7dde5; background: #fff; color: #8591a0; font-size: 9px; }.ai-document-editor-statusbar > span { display: inline-flex; align-items: center; gap: 6px; }.status-ready-dot { width: 6px; height: 6px; border-radius: 50%; background: #4eb889; }

@media (max-width: 1400px) { .ai-document-landing { grid-template-columns: 300px minmax(0, 1fr); gap: 22px; }.ai-document-intro { padding-right: 20px; }.ai-document-library { padding: 21px 20px; }.ai-document-template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.ai-document-editor-body { grid-template-columns: 180px minmax(450px, 1fr) 280px; }.ai-document-canvas { padding-left: 62px; padding-right: 62px; } }
@media (max-width: 1080px) { .ai-document-main { padding: 0 18px 30px; }.ai-document-landing { grid-template-columns: 1fr; }.ai-document-intro { min-height: 0; padding: 22px 0 25px; border-right: 0; border-bottom: 1px solid #2c3038; }.ai-document-intro h1 { margin-top: 22px; }.ai-document-intro > p { max-width: 650px; }.ai-document-prompt { max-width: 680px; }.ai-document-start-divider { margin-top: 23px; }.ai-document-output-formats { max-width: 420px; }.ai-document-intro-foot { max-width: 420px; }.ai-document-library-body { grid-template-columns: 1fr; }.ai-document-category-panel { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid #30353e; }.ai-document-category-panel nav { display: flex; overflow-x: auto; gap: 4px; }.ai-document-category { width: auto; min-width: max-content; }.ai-document-category-note { display: none; }.ai-document-editor-body { grid-template-columns: 180px minmax(0, 1fr); }.ai-document-ai-panel { display: none; } }
@media (max-width: 760px) { .ai-document-main { padding: 0 12px 22px; }.ai-document-breadcrumb { padding-left: 3px; }.ai-document-library { padding: 17px 13px; }.ai-document-library-head { display: block; }.ai-document-library-tools { margin-top: 14px; }.ai-document-search { width: 100%; }.ai-document-template-head { display: block; }.ai-document-template-head .ai-document-search { margin-top: 11px; }.ai-document-template-grid, .ai-document-template-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.ai-document-template-preview { min-height: 145px; padding: 9px; }.preview-sheet { min-height: 127px; padding: 11px 9px; }.preview-sheet strong { font-size: 11px; }.preview-sheet small { font-size: 6px; }.ai-document-editor-topbar { min-height: 57px; padding: 0 9px; flex-wrap: wrap; }.ai-document-editor-topbar-center { display: none; }.ai-document-editor-actions { margin-left: auto; }.ai-document-back-button span, .editor-share-button span { display: none; }.editor-share-button { width: 31px; padding: 0; justify-content: center; }.ai-document-editor-title input { width: 35vw; }.ai-document-editor-toolbar { padding: 8px 9px; }.ai-document-editor-body { display: block; min-height: 0; }.ai-document-outline-panel { display: none; }.ai-document-canvas-wrap { min-height: 600px; padding: 19px 9px 35px; }.ai-document-canvas { min-height: 760px; padding: 42px 25px 60px; font-size: 13px; }.ai-document-canvas h1 { font-size: 26px; }.ai-document-canvas h2 { font-size: 18px; }.ai-document-editor-statusbar { padding: 0 9px; }.ai-document-editor-statusbar > span:last-child { display: none; } }
@media print { .ai-document-app .creation-topbar, .ai-document-app .ai-document-breadcrumb, .ai-document-editor-topbar, .ai-document-editor-toolbar, .ai-document-outline-panel, .ai-document-ai-panel, .ai-document-editor-statusbar { display: none !important; }.ai-document-main { padding: 0; background: #fff; }.ai-document-editor-shell { margin: 0; border: 0; box-shadow: none; }.ai-document-editor-body { display: block; }.ai-document-canvas-panel, .ai-document-canvas-wrap { background: #fff; }.ai-document-canvas { width: 100%; min-height: 0; padding: 0; box-shadow: none; } }

/* Editor style-panel presets keep the paper dimensions and accent choices visible. */
.ai-document-canvas.is-paper-a4 { width: min(794px, 100%); min-height: 1123px; }
.ai-document-canvas.is-document-compact { width: min(680px, 100%); min-height: 880px; padding: 58px 64px 75px; font-size: 14px; line-height: 1.58; }
.ai-document-canvas[data-document-accent="teal"] h1 { color: #0e5961; }
.ai-document-canvas[data-document-accent="teal"] h2 { color: #16727a; border-color: #b8dfe0; }
.ai-document-canvas[data-document-accent="teal"] .doc-note { border-color: #22a6a8; background: #effafa; }
.ai-document-canvas[data-document-accent="coral"] h1 { color: #8a3c36; }
.ai-document-canvas[data-document-accent="coral"] h2 { color: #a95044; border-color: #efd0cb; }
.ai-document-canvas[data-document-accent="coral"] .doc-note { border-color: #e47763; background: #fff4f1; }
.ai-document-canvas[data-document-accent="violet"] h1 { color: #4d3b78; }
.ai-document-canvas[data-document-accent="violet"] h2 { color: #6752a0; border-color: #d9cff1; }
.ai-document-canvas[data-document-accent="violet"] .doc-note { border-color: #8d72c7; background: #f7f3ff; }
@media print { .ai-document-canvas.is-paper-a4 { width: 100%; } .ai-document-canvas.is-document-compact { width: 100%; padding: 0; } }

/* Wide template wall: categories sit above the cards so the visual previews get the full row. */
.ai-document-library { padding: 28px 30px 34px; }
.ai-document-library-head { min-height: 58px; }
.ai-document-library-head h2 { font-size: 25px; letter-spacing: 0; }
.ai-document-category-panel-top { margin-top: 24px; padding: 13px 0 15px; display: flex; align-items: center; gap: 18px; border-top: 1px solid #303640; border-right: 0; border-bottom: 1px solid #303640; }
.ai-document-category-label { flex: 0 0 auto; display: grid; gap: 3px; }
.ai-document-category-label small { color: #697587; font-size: 9px; white-space: nowrap; }
.ai-document-category-panel-top nav { min-width: 0; flex: 1; display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #465268 transparent; }
.ai-document-category-panel-top nav::-webkit-scrollbar { height: 4px; }
.ai-document-category-panel-top nav::-webkit-scrollbar-thumb { background: #465268; border-radius: 8px; }
.ai-document-category-panel-top .ai-document-category { width: auto; min-width: max-content; min-height: 37px; padding: 0 11px; gap: 7px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; white-space: nowrap; }
.ai-document-category-panel-top .ai-document-category:hover { border-color: #3a485b; background: #252e3b; }
.ai-document-category-panel-top .ai-document-category.is-active { border-color: #6d91bf; background: #344b6d; color: #e1edff; box-shadow: inset 0 0 0 1px rgba(151, 190, 239, .12); }
.ai-document-category-panel-top .ai-document-category-icon { width: 14px; height: 14px; }
.ai-document-category-panel-top .ai-document-category-icon::before { width: 9px; height: 11px; }
.ai-document-category-panel-top .ai-document-category-note { min-width: 150px; max-width: 180px; margin: 0 0 0 auto; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid #303640; font-size: 9px; }
.ai-document-category-panel-top .ai-document-category-note strong { width: 21px; height: 21px; }
.ai-document-template-area { margin-top: 22px; }
.ai-document-template-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ai-document-template-grid.is-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.ai-document-template-card { border-color: #333b48; border-radius: 10px; background: #242933; }
.ai-document-template-card:hover { border-color: #83a9dd; box-shadow: 0 18px 34px rgba(0, 0, 0, .3); transform: translateY(-4px); }
.ai-document-template-preview { min-height: 235px; padding: 14px; background: #dfe7f1; }
.ai-document-template-preview::after { background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,0) 55%); }
.preview-sheet { width: 100%; min-height: 207px; padding: 16px 15px 13px; border-radius: 7px; transform: none; box-shadow: 0 9px 18px rgba(28, 40, 57, .2); }
.preview-image-frame { height: 78px; margin: -16px -15px 13px; display: block; overflow: hidden; position: relative; background: #d9e3ef; }
.preview-image-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 34, 52, .02), rgba(20, 34, 52, .32)); pointer-events: none; }
.preview-image { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.preview-kicker { width: 42px; height: 5px; margin-bottom: 12px; border-radius: 4px; }
.preview-sheet strong { font-size: 16px; line-height: 1.12; }
.preview-sheet small { margin-top: 7px; font-size: 8px; line-height: 1.45; }
.preview-chip { right: 12px; bottom: 12px; padding: 4px 6px; border-radius: 4px; font-size: 7px; }
.preview-corner { position: absolute; z-index: 2; top: 11px; right: 12px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(36, 52, 73, .14); border-radius: 50%; background: rgba(255,255,255,.68); color: #536b89; font-size: 12px; }
.preview-lines { margin-top: 11px; display: grid; gap: 5px; }
.preview-lines b { height: 4px; display: block; border-radius: 3px; background: currentColor; opacity: .17; }
.preview-lines b:nth-child(2) { width: 82%; }.preview-lines b:nth-child(3) { width: 63%; }
.preview-schedule { margin-top: 15px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.preview-schedule i { height: 12px; display: block; border-radius: 2px; background: #6a9bdd; opacity: .75; }.preview-schedule i:nth-child(3n) { background: #f08b65; }.preview-schedule i:nth-child(4n) { background: #61b89b; }.preview-schedule i:nth-child(n+6) { height: 8px; opacity: .28; }
.preview-metrics { margin-top: 13px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }.preview-metrics b { padding: 6px 3px; border-radius: 4px; background: rgba(63, 111, 160, .13); color: currentColor; font-size: 10px; text-align: center; }
.preview-chart { height: 56px; margin-top: 14px; padding: 7px 8px 0; display: flex; align-items: flex-end; gap: 5px; border-bottom: 1px solid rgba(48, 75, 111, .25); }.preview-chart i { flex: 1; min-height: 15px; border-radius: 3px 3px 0 0; background: #568bc8; }.preview-chart i:nth-child(2n) { background: #6cc0ac; }.preview-chart i:nth-child(3n) { background: #f1a365; }.preview-chart i:nth-child(1) { height: 42%; }.preview-chart i:nth-child(2) { height: 68%; }.preview-chart i:nth-child(3) { height: 53%; }.preview-chart i:nth-child(4) { height: 88%; }.preview-chart i:nth-child(5) { height: 72%; }.preview-chart i:nth-child(6) { height: 100%; }
.preview-avatar { width: 47px; height: 47px; margin: 13px auto 8px; display: block; border: 4px solid rgba(255,255,255,.78); border-radius: 50%; background: radial-gradient(circle at 50% 35%, #f0b99a 0 20%, transparent 21%), linear-gradient(145deg, #5d7ba7 0 45%, #eab187 46% 56%, #6e9e8d 57%); box-shadow: 0 3px 6px rgba(34, 50, 73, .2); }
.preview-profile-lines { display: grid; gap: 5px; }.preview-profile-lines i { height: 4px; display: block; border-radius: 3px; background: currentColor; opacity: .21; }.preview-profile-lines i:first-child { width: 78%; }.preview-profile-lines i:nth-child(2) { width: 93%; }.preview-profile-lines i:nth-child(3) { width: 60%; }
.preview-tags { margin-top: 12px; display: flex; gap: 4px; }.preview-tags b { width: 30px; height: 10px; display: block; border-radius: 5px; background: #d27886; opacity: .6; }.preview-tags b:nth-child(2) { background: #6c9fd1; }.preview-tags b:nth-child(3) { background: #e3b85e; }
.preview-form-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }.preview-form-grid i { height: 19px; display: block; border: 1px solid rgba(61, 84, 110, .2); border-radius: 2px; background: rgba(255,255,255,.5); }.preview-form-grid i:nth-child(1), .preview-form-grid i:nth-child(4), .preview-form-grid i:nth-child(7) { grid-column: span 2; }.preview-total { width: 42%; height: 16px; margin: 13px 0 0 auto; display: block; border-radius: 3px; background: #d47a67; opacity: .72; }
.preview-board { margin-top: 15px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }.preview-board b { min-height: 40px; padding: 7px; display: block; border-radius: 4px; background: #80b3d2; opacity: .52; }.preview-board b:nth-child(2) { background: #f1b36d; }.preview-board b:nth-child(3) { background: #88c6a7; }.preview-board b:nth-child(4) { background: #bb91d0; }.preview-board-footer { width: 70%; height: 5px; margin-top: 12px; display: block; border-radius: 4px; background: currentColor; opacity: .2; }
.preview-hero { height: 61px; margin-top: 15px; display: block; border-radius: 5px; background: linear-gradient(135deg, #ed7b63 0 37%, #f6bd67 37% 70%, #6fa9bc 70%); }.preview-hero::after { content: ''; width: 42%; height: 7px; margin: 27px 0 0 12px; display: block; border-radius: 4px; background: rgba(255,255,255,.84); }
.preview-callout { height: 41px; margin-top: 15px; display: block; border-left: 4px solid #df9365; border-radius: 3px; background: #f7e6ce; }.preview-layout-brief .preview-sheet strong { max-width: 77%; }.preview-layout-brief .preview-blocks { margin-top: 13px; }.preview-layout-brief .preview-blocks b:first-child { background: #d8806d; opacity: .55; }.preview-layout-brief .preview-blocks b:nth-child(2) { background: #74a8ca; opacity: .55; }.preview-layout-brief .preview-blocks b:nth-child(3) { background: #7db89e; opacity: .55; }
.ai-document-template-card[data-tone="navy"] .ai-document-template-preview { background: #b9cee8; color: #294b72; }.ai-document-template-card[data-tone="teal"] .ai-document-template-preview { background: #9dd7d0; color: #1d625f; }.ai-document-template-card[data-tone="indigo"] .ai-document-template-preview { background: #bebee4; color: #4c4f8a; }.ai-document-template-card[data-tone="coral"] .ai-document-template-preview { background: #f1b7a5; color: #8d493d; }.ai-document-template-card[data-tone="purple"] .ai-document-template-preview { background: #c7b4e7; color: #5a4389; }.ai-document-template-card[data-tone="rose"] .ai-document-template-preview { background: #e6b3c2; color: #8b4d61; }.ai-document-template-card[data-tone="slate"] .ai-document-template-preview { background: #bac9d8; color: #445d76; }.ai-document-template-card[data-tone="green"] .ai-document-template-preview { background: #afd9b7; color: #337255; }.ai-document-template-card[data-tone="orange"] .ai-document-template-preview { background: #efd09a; color: #8c5d28; }
.ai-document-template-grid.is-compact .ai-document-template-preview { min-height: 180px; padding: 10px; }.ai-document-template-grid.is-compact .preview-sheet { min-height: 160px; padding: 12px; }.ai-document-template-grid.is-compact .preview-image-frame { height: 60px; margin: -12px -12px 10px; }.ai-document-template-grid.is-compact .preview-sheet strong { font-size: 12px; }.ai-document-template-grid.is-compact .preview-sheet small { font-size: 7px; }

@media (max-width: 1400px) { .ai-document-template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.ai-document-template-grid.is-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .ai-document-category-panel-top { align-items: flex-start; flex-wrap: wrap; }.ai-document-category-label { width: 100%; }.ai-document-category-panel-top .ai-document-category-note { display: none; }.ai-document-template-area { margin-top: 18px; } }
@media (max-width: 760px) { .ai-document-library { padding: 17px 13px; }.ai-document-category-panel-top { margin-top: 17px; gap: 9px; padding: 11px 0 12px; }.ai-document-category-panel-top nav { width: 100%; flex-basis: 100%; }.ai-document-category-panel-top .ai-document-category { min-height: 32px; padding: 0 8px; font-size: 10px; }.ai-document-template-grid, .ai-document-template-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.ai-document-template-preview, .ai-document-template-grid.is-compact .ai-document-template-preview { min-height: 170px; padding: 9px; }.preview-sheet, .ai-document-template-grid.is-compact .preview-sheet { min-height: 151px; padding: 11px 9px; }.preview-image-frame, .ai-document-template-grid.is-compact .preview-image-frame { height: 54px; margin: -11px -9px 9px; }.preview-sheet strong, .ai-document-template-grid.is-compact .preview-sheet strong { font-size: 11px; }.preview-sheet small, .ai-document-template-grid.is-compact .preview-sheet small { font-size: 6px; } }

/* The shared desktop shell caps generic feature pages at 1080px. The document
 * library is a wide workspace and should use the complete pane instead. */
@media (min-width: 921px) {
    .ai-document-app .ai-document-main[data-fuuvo-app-scroll="1"] { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
    .ai-document-app .ai-document-breadcrumb,
    .ai-document-app .ai-document-landing { width: 100%; max-width: none; }
}

/* The document library uses a dark-first palette above. Keep the light theme
 * readable without changing the established dark-mode appearance. */
body:not([data-ui-theme="dark"]) .ai-document-app {
    color-scheme: light;
    --doc-bg: #f5f7fb;
    --doc-panel: #ffffff;
    --doc-panel-2: #f7f9fc;
    --doc-line: #dfe6ee;
    --doc-text: #24344b;
    --doc-muted: #718096;
    --doc-blue: #397bc1;
    --doc-accent: #3479dd;
    --doc-editor-bg: #edf1f5;
}

body:not([data-ui-theme="dark"]) .ai-document-app,
body:not([data-ui-theme="dark"]) .ai-document-app .creation-workspace,
body:not([data-ui-theme="dark"]) .ai-document-main { background: var(--doc-bg); color: var(--doc-text); }
body:not([data-ui-theme="dark"]) .ai-document-app .creation-topbar { background: #fff; border-bottom-color: #e1e7ef; color: #56687e; }
body:not([data-ui-theme="dark"]) .ai-document-app .creation-topbar-title { color: #263950; }
body:not([data-ui-theme="dark"]) .ai-document-app .creation-top-actions { color: #63758b; }
body:not([data-ui-theme="dark"]) .ai-document-app .creation-language a { color: #8291a3; }
body:not([data-ui-theme="dark"]) .ai-document-app .creation-language a.active { color: #294d78; }
body:not([data-ui-theme="dark"]) .ai-document-breadcrumb { color: #718198; }
body:not([data-ui-theme="dark"]) .ai-document-breadcrumb a { color: #637c9a; }

body:not([data-ui-theme="dark"]) .ai-document-intro { border-color: #e0e6ee; }
body:not([data-ui-theme="dark"]) .ai-document-brandline { color: #61748c; }
body:not([data-ui-theme="dark"]) .ai-document-brandmark { border-color: #bdd0e5; color: #3977b8; }
body:not([data-ui-theme="dark"]) .ai-document-intro h1 { color: #1d3049; }
body:not([data-ui-theme="dark"]) .ai-document-intro > p { color: #62748a; }
body:not([data-ui-theme="dark"]) .ai-document-prompt { border-color: #d6e0eb; background: #fff; box-shadow: 0 15px 30px rgba(49, 75, 105, .10); }
body:not([data-ui-theme="dark"]) .ai-document-prompt:focus-within { border-color: #6d9fd3; box-shadow: 0 0 0 3px rgba(91, 149, 230, .14); }
body:not([data-ui-theme="dark"]) .ai-document-prompt textarea { color: #263c57; }
body:not([data-ui-theme="dark"]) .ai-document-prompt textarea::placeholder { color: #8a99aa; }
body:not([data-ui-theme="dark"]) .ai-document-quick-prompts { color: #71839a; }
body:not([data-ui-theme="dark"]) .ai-document-quick-prompts > span { color: #73869d; }
body:not([data-ui-theme="dark"]) .ai-document-quick-prompts button { border-color: #d9e2ec; background: #fff; color: #5d718a; }
body:not([data-ui-theme="dark"]) .ai-document-quick-prompts button:hover { border-color: #91b3d8; background: #f1f7fd; color: #2d6399; }
body:not([data-ui-theme="dark"]) .ai-document-start-divider { color: #8291a2; }
body:not([data-ui-theme="dark"]) .ai-document-start-divider::before,
body:not([data-ui-theme="dark"]) .ai-document-start-divider::after { background: #e0e6ee; }
body:not([data-ui-theme="dark"]) .ai-document-output-formats button { border-color: #d9e2ec; background: #fff; color: #5f7188; }
body:not([data-ui-theme="dark"]) .ai-document-output-formats button:hover,
body:not([data-ui-theme="dark"]) .ai-document-output-formats button.is-active { border-color: #83a9d7; background: #eef5fd; }
body:not([data-ui-theme="dark"]) .ai-document-output-formats strong { color: #2d425d; }
body:not([data-ui-theme="dark"]) .ai-document-output-formats small { color: #8090a2; }
body:not([data-ui-theme="dark"]) .ai-document-intro-foot { border-color: #e0e6ee; color: #75869a; }

body:not([data-ui-theme="dark"]) .ai-document-library { border-color: #dfe6ee; background: #fff; box-shadow: 0 12px 30px rgba(51, 77, 108, .06); }
body:not([data-ui-theme="dark"]) .ai-document-eyebrow { color: #71839a; }
body:not([data-ui-theme="dark"]) .ai-document-library-head h2 { color: #263b55; }
body:not([data-ui-theme="dark"]) .ai-document-library-head p,
body:not([data-ui-theme="dark"]) .ai-document-template-head p { color: #78899d; }
body:not([data-ui-theme="dark"]) .library-tool,
body:not([data-ui-theme="dark"]) .library-sort,
body:not([data-ui-theme="dark"]) .ai-document-search { border-color: #d8e1eb; background: #fff; color: #60738b; }
body:not([data-ui-theme="dark"]) .library-tool:hover,
body:not([data-ui-theme="dark"]) .library-tool.is-active { border-color: #8eafd4; background: #eef5fc; color: #356a9e; }
body:not([data-ui-theme="dark"]) .ai-document-search input { color: #304761; }
body:not([data-ui-theme="dark"]) .ai-document-search input::placeholder { color: #8a99aa; }
body:not([data-ui-theme="dark"]) .ai-document-category-panel,
body:not([data-ui-theme="dark"]) .ai-document-category-panel-top { border-color: #e0e6ee; }
body:not([data-ui-theme="dark"]) .ai-document-section-label { color: #708299; }
body:not([data-ui-theme="dark"]) .ai-document-category { color: #63758b; }
body:not([data-ui-theme="dark"]) .ai-document-category:hover { background: #f1f6fb; color: #315c88; }
body:not([data-ui-theme="dark"]) .ai-document-category.is-active { background: #eaf2fb; color: #2c69a3; }
body:not([data-ui-theme="dark"]) .ai-document-category-note { border-color: #e0e6ee; color: #718399; }
body:not([data-ui-theme="dark"]) .ai-document-category-note strong { background: #eee8fb; color: #745bb4; }
body:not([data-ui-theme="dark"]) .ai-document-category-panel-top nav { scrollbar-color: #b7c8da transparent; }
body:not([data-ui-theme="dark"]) .ai-document-category-panel-top nav::-webkit-scrollbar-thumb { background: #b7c8da; }
body:not([data-ui-theme="dark"]) .ai-document-category-panel-top .ai-document-category:hover { border-color: #c7d9eb; background: #f1f6fb; }
body:not([data-ui-theme="dark"]) .ai-document-category-panel-top .ai-document-category.is-active { border-color: #8eafd4; background: #eaf2fb; color: #2c69a3; box-shadow: inset 0 0 0 1px rgba(76, 129, 184, .10); }
body:not([data-ui-theme="dark"]) .ai-document-template-head h3 { color: #2c415b; }
body:not([data-ui-theme="dark"]) .ai-document-template-card { border-color: #dce4ed; background: #fff; color: #314760; }
body:not([data-ui-theme="dark"]) .ai-document-template-card:hover { border-color: #8eafd4; box-shadow: 0 18px 34px rgba(47, 76, 108, .14); }
body:not([data-ui-theme="dark"]) .ai-document-template-card-copy strong { color: #2d425d; }
body:not([data-ui-theme="dark"]) .ai-document-template-card-copy small { color: #78899d; }
body:not([data-ui-theme="dark"]) .ai-document-template-open { color: #71849b; }
body:not([data-ui-theme="dark"]) .ai-document-template-card:hover .ai-document-template-open { color: #3978b9; }
body:not([data-ui-theme="dark"]) .ai-document-template-empty { border-color: #d3dee9; background: #fff; }
body:not([data-ui-theme="dark"]) .ai-document-template-empty h3 { color: #30455f; }
body:not([data-ui-theme="dark"]) .ai-document-template-empty p { color: #7b8da1; }

body:not([data-ui-theme="dark"]) .ai-document-editor-shell { border-color: #dbe3ec; box-shadow: 0 20px 50px rgba(49, 75, 105, .12); }
body:not([data-ui-theme="dark"]) .ai-document-editor-topbar { background: #fff; color: #536a83; border-bottom: 1px solid #e0e6ee; }
body:not([data-ui-theme="dark"]) .ai-document-back-button,
body:not([data-ui-theme="dark"]) .editor-icon-button,
body:not([data-ui-theme="dark"]) .editor-share-button { color: #60758d; }
body:not([data-ui-theme="dark"]) .ai-document-back-button:hover,
body:not([data-ui-theme="dark"]) .editor-icon-button:hover { background: #eef5fb; color: #2f5f8e; }
body:not([data-ui-theme="dark"]) .editor-topbar-divider { background: #dfe6ee; }
body:not([data-ui-theme="dark"]) .ai-document-editor-title input { color: #29415d; }
body:not([data-ui-theme="dark"]) .ai-document-editor-title small { color: #7c8da1; }
body:not([data-ui-theme="dark"]) .ai-document-template-badge { border-color: #cbd9e7; color: #4c78a8; }
body:not([data-ui-theme="dark"]) .editor-share-button { border-color: #c5d3e1; }
/* Keep the draft workflow visible without competing with the document title. */
.editor-draft-hint { color: #708097; font-size: 9px; }
.ai-document-ai-tip-copy { display: block; color: #7d8b9d; font-size: 10px; line-height: 1.5; }
@media (max-width: 1180px) { .editor-draft-hint { display: none; } }
