.sidebar{overflow-y:auto}.sidebar .history{flex-shrink:0;min-height:72px}.scenario-modal{width:1000px}.editor-toolbar,.scenario-search,.studio-actions,.studio-entry{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.scenario-search{margin:18px 0}.scenario-search input{flex:1;min-width:0}.studio-entry{margin-bottom:20px;gap:18px}.studio-actions .primary-button{margin:10px 0}.assistant-settings input,.assistant-settings select,.assistant-settings textarea,.editor-ai select,.editor-ai textarea,.editor-title input,.editor-toolbar select,.scenario-form textarea,.scenario-search input,.scenario-search select{padding:10px 12px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;font-size:13px;max-width:100%;min-width:0}.assistant-settings input:focus-visible,.assistant-settings textarea:focus-visible,.editor-content:focus-visible,.editor-title input:focus-visible,.scenario-form textarea:focus-visible,.scenario-search input:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.document-list p,.scenario-panel p{font-size:13px;line-height:1.7}.scenario-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.scenario-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;min-height:178px;padding:17px;border:1px solid var(--border);border-radius:13px;background:var(--surface)}.scenario-card:hover{border-color:var(--primary);background:var(--shade)}.scenario-card small{font-size:10px;color:var(--muted)}.scenario-card strong{font-size:15px;line-height:1.4}.scenario-card span{font-size:12px;line-height:1.6;color:var(--muted)}.scenario-card b{font-size:11px;color:var(--primary);margin-top:auto}.assistant-settings fieldset,.scenario-form{display:flex;flex-direction:column;gap:14px}.scenario-form{margin-top:15px}.assistant-settings label,.editor-ai label,.editor-title,.scenario-form label{display:flex;flex-direction:column;gap:6px;font-size:12px}.assistant-settings textarea,.editor-ai textarea,.scenario-form textarea{resize:vertical;line-height:1.6}.assistant-settings label small,.scenario-form small{font-size:10px;color:var(--muted)}.scenario-form small{align-self:flex-end}.editor-proposal,.scenario-preview{margin-top:15px;padding:16px;background:var(--shade);border:1px solid var(--border);border-radius:12px}.editor-proposal pre,.scenario-preview pre{font:inherit;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto}.assistant-settings{margin:20px 0;padding:15px;border:1px solid var(--border);border-radius:12px;background:var(--shade)}.assistant-settings summary,.editor-ai summary{font-size:14px;font-weight:600;cursor:pointer}.assistant-settings p{font-size:12px;line-height:1.7}.assistant-settings fieldset{border:0;margin:0;padding:0;min-width:0}.assistant-settings .assistant-enabled{flex-direction:row;align-items:center;gap:9px;line-height:1.6}.assistant-enabled input{width:18px;height:18px;flex-shrink:0}.assistant-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.assistant-logo{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--primary)}.assistant-logo img{width:70px;height:70px;object-fit:contain;background:var(--surface);border:1px solid var(--border);border-radius:8px}.document-list article{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--border)}.document-list-open{flex:1;min-width:0;text-align:left}.document-list-open strong{display:block;font-size:14px;overflow-wrap:anywhere}.document-list-open small{display:block;color:var(--muted);font-size:11px;margin-top:7px}.text-editor{width:44vw;min-width:440px;max-width:780px;height:100dvh;overflow-y:auto;flex-shrink:0;padding:22px;background:var(--surface);border-left:1px solid var(--border);color:var(--text);z-index:30}.text-editor>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:15px;border-bottom:1px solid var(--border);margin-bottom:15px}.text-editor>header small{display:block;color:var(--muted);font-size:10px;letter-spacing:1px}.text-editor>header strong{display:block;margin-top:5px;font-size:14px}.editor-toolbar{justify-content:space-between;margin-bottom:14px}.editor-toolbar label{font-size:11px;display:flex;align-items:center;gap:7px;min-width:0}.editor-toolbar select{max-width:280px}.editor-content{display:block;width:100%;min-height:42dvh;margin:12px 0;resize:vertical;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text);font-size:14px;line-height:1.75;padding:15px;white-space:pre-wrap}.editor-ai small,.editor-status{display:block;font-size:11px;color:var(--muted);line-height:1.7}.editor-ai{margin-top:14px;padding-top:15px;border-top:1px solid var(--border)}.editor-ai>p,.editor-footnote{font-size:11px;line-height:1.7;color:var(--muted)}.editor-ai label{margin:12px 0}.editor-ai textarea{width:100%}.editor-proposal>strong{font-size:12px}.editor-proposal>p{font-size:12px;line-height:1.6}.editor-proposal pre{font-size:13px}.editor-suggestions{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:15px 0}.editor-suggestions button{text-align:left;line-height:1.5}.with-editor .welcome-chat .hero-orbit{display:none}.with-editor .welcome{padding-left:24px;padding-right:24px}.with-editor .starter-grid{grid-template-columns:1fr}.with-editor .topbar{padding-left:20px;padding-right:20px}.with-editor .connection{display:none}.with-editor .message-actions{flex-wrap:wrap;gap:12px}.with-editor .conversation{padding:25px 20px}.with-editor .topbar-left>span:first-of-type{display:none}@media(max-width:1200px){.text-editor{position:fixed;right:0;top:0;bottom:0;width:calc(100vw - 258px);min-width:0;max-width:none;box-shadow:-10px 0 40px #0002}}@media(max-width:850px){.text-editor{width:100%;z-index:35}.scenario-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.scenario-grid{grid-template-columns:1fr}.scenario-search{flex-direction:column;align-items:stretch}.assistant-settings input,.assistant-settings select,.assistant-settings textarea,.editor-ai select,.editor-ai textarea,.editor-content,.editor-title input,.editor-toolbar select,.scenario-form textarea,.scenario-search input,.scenario-search select{font-size:16px}.text-editor{padding:16px}.editor-content{min-height:40dvh}.editor-toolbar select{max-width:calc(100vw - 100px)}.assistant-two{grid-template-columns:1fr}.studio-entry{gap:12px}.studio-actions button{min-height:38px}.scenario-card{min-height:140px}.editor-suggestions .text-link{font-size:12px}.editor-title input{width:100%}}.modal-backdrop{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden}.modal{min-width:0;min-height:0;max-width:min(100%,calc(100vw - 20px));max-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;overflow-wrap:anywhere}.modal>header{position:sticky;top:0;z-index:2;gap:12px;background:var(--surface);padding:8px 0}.modal>header>div{min-width:0;flex:1}.modal>header .icon-button{flex-shrink:0;min-width:40px;min-height:40px}.document-list,.scenario-card,.scenario-form,.scenario-panel,.scenario-preview,.scenario-search>*{min-width:0;max-width:100%}.scenario-form textarea,.scenario-search input{width:100%;box-sizing:border-box}@media(max-width:600px){.modal{width:100%;max-width:100%;padding:16px;max-height:100%}.modal h2{font-size:22px;line-height:1.3}.modal>header .icon-button{min-width:44px;min-height:44px}.scenario-search{width:100%}.scenario-search input,.scenario-search select{width:100%;flex:0 0 auto}.scenario-card{padding:14px}.scenario-form textarea{min-height:80px}}.office-modal{width:1120px}.design-controls fieldset,.office-panel,.office-panel fieldset{min-width:0}.design-controls fieldset,.office-panel fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}.image-designer p,.image-designer small,.office-panel p,.office-panel small{font-size:13px;line-height:1.65}.image-designer label,.office-panel label{display:flex;flex-direction:column;gap:6px;font-size:12px;min-width:0}.image-designer input,.image-designer select,.image-designer textarea,.office-panel input,.office-panel select,.office-panel textarea{color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:10px;max-width:100%;min-width:0;font:inherit}.image-designer textarea,.office-panel textarea{resize:vertical}.image-designer input:focus-visible,.image-designer textarea:focus-visible,.office-panel input:focus-visible,.office-panel textarea:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.office-note{color:var(--muted)}.office-saved{margin:18px 0}.office-saved>div{display:flex;gap:16px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--border)}.office-saved button{overflow-wrap:anywhere;text-align:left}.design-layer,.office-slide{border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}.design-layer>div:first-child,.office-slide>div{display:flex;justify-content:space-between;gap:12px;align-items:center}.office-preview img{width:100%;height:auto;border:1px solid var(--border);border-radius:10px}.office-sheet{overflow-x:auto;max-width:100%;min-width:0;border:1px solid var(--border);border-radius:9px}.office-sheet table{border-collapse:collapse;font-size:13px;min-width:100%}.office-sheet td,.office-sheet th{padding:9px;border:1px solid var(--border);vertical-align:top;min-width:100px;max-width:330px;overflow-wrap:anywhere}.office-sheet th{background:var(--shade);text-align:left}.office-sheet input{width:160px;min-width:120px}.office-sheet small{display:block;color:var(--muted)}.office-sheet>p{padding:12px}.office-sheet tr>th:first-child{min-width:40px}.evidence-dialog,.image-designer{position:fixed;inset:0;margin:auto;border:1px solid var(--border);border-radius:18px;background:var(--surface);color:var(--text);padding:22px;max-width:calc(100dvw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;text-align:left}.image-designer{width:1200px}.evidence-dialog::backdrop,.image-designer::backdrop{background:#0e241bb3}.evidence-dialog>header,.image-designer>header{position:sticky;top:-22px;background:var(--surface);z-index:2;display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);margin-bottom:18px}.image-designer h2{font-size:24px;line-height:1.3}.image-designer header p{margin:7px 0;color:var(--muted)}.design-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px}.design-controls,.design-preview{min-width:0}.design-preview>div:first-child{background:var(--shade);min-height:200px;display:grid;place-items:center;border-radius:12px;border:1px solid var(--border);overflow:hidden}.design-preview img{display:block;max-width:100%;max-height:65dvh;width:auto;height:auto;object-fit:contain}.design-preview .studio-actions{margin:12px 0}.design-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.image-designer input[type=checkbox]{width:20px;height:20px}.image-designer input[type=color]{height:42px;width:100%}.image-designer details>summary{cursor:pointer;font-size:13px;margin-bottom:10px}.image-designer footer{border-top:1px solid var(--border);padding-top:14px;margin-top:20px}.image-designer footer small{display:block;margin-top:10px;color:var(--muted)}.image-download .image-designer button{font-size:13px;padding:9px}.document-evidence{margin:16px 0;border-top:1px solid var(--border);padding-top:14px;font-size:12px}.evidence-card{display:flex;flex-direction:column;gap:8px;width:100%;margin:10px 0;padding:13px;text-align:left;border:1px solid var(--border);border-radius:10px;background:var(--shade);color:var(--text);overflow-wrap:anywhere}.evidence-card span{font-weight:600}.evidence-card q{line-height:1.6}.evidence-card small{color:var(--primary)}.document-evidence pre,.evidence-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7}.evidence-dialog{width:750px}.evidence-dialog h3{overflow-wrap:anywhere}.evidence-dialog blockquote{padding:15px;border-left:3px solid var(--primary);margin:15px 0;background:var(--shade);line-height:1.7}.document-quote-note{font-size:12px;color:var(--muted);line-height:1.6;margin:8px 0}.composer-tools{flex-wrap:wrap}@media(max-width:720px){.design-layout{grid-template-columns:minmax(0,1fr)}.evidence-dialog,.image-designer{padding:15px;width:calc(100dvw - 20px);max-width:calc(100dvw - 20px)}.evidence-dialog>header,.image-designer>header{top:-15px}.image-designer h2{font-size:20px}.design-preview img{max-height:40dvh}.image-designer input,.image-designer select,.image-designer textarea,.office-panel input,.office-panel select,.office-panel textarea{font-size:16px}.evidence-card,.image-designer button,.office-panel button{min-height:44px}.design-layer,.office-slide{padding:12px}.office-panel .studio-actions{gap:10px}.office-panel .studio-actions button{flex-grow:1}.office-sheet input{width:140px}.document-quote-note{font-size:11px}.composer-tools .web-toggle{min-height:36px}}.tariff-grid{align-items:stretch;min-width:0}.tariff-card{min-width:0;background:var(--surface);border-color:var(--border);padding:20px;gap:10px}.tariff-card h3{font-size:22px}.tariff-card .tariff-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin:4px 0 0;color:var(--text)}.tariff-price strong{font-size:32px;letter-spacing:-1px;white-space:nowrap}.tariff-period,.tariff-price span{font-size:12px;color:var(--muted)}.tariff-card .tariff-period{margin:0}.tariff-features{margin:10px 0;min-width:0}.tariff-features>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:10px 0;border-bottom:1px solid var(--border);font-size:12px;line-height:1.5}.tariff-features dt{min-width:0;overflow-wrap:anywhere}.tariff-features dd{margin:0;flex-shrink:0;font-weight:700;font-size:14px}.tariff-card .tariff-availability{color:var(--muted);font-size:11px;line-height:1.6;margin-top:auto}.tariff-card button:disabled{opacity:1;background:var(--shade);color:var(--muted);border:1px solid var(--border)}.tariff-notes{color:var(--muted);line-height:1.7}.billing-current h3{font-size:18px}.billing-current li,.billing-current p{font-size:13px;line-height:1.7}.pricing-page{padding:28px 24px 48px;min-height:100dvh}.pricing-container{max-width:1120px;margin:auto;min-width:0}.pricing-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:54px;font-size:13px;flex-wrap:wrap}.pricing-brand{font-size:25px;font-weight:700;letter-spacing:-1px}.pricing-page h1{font-size:clamp(30px,4vw,46px);font-weight:600;letter-spacing:-1.5px;margin:0 0 18px}.pricing-intro{color:var(--muted);line-height:1.7;max-width:650px}.pricing-free,.pricing-page .plan-grid{margin-top:30px}.pricing-free{padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--surface);line-height:1.7}.pricing-free h2{font-size:21px;margin:0}.pricing-free p{max-width:750px;color:var(--muted)}.pricing-free .primary-button{display:inline-flex;margin-top:8px}.modal:has(.billing-section){overflow-x:hidden}.billing-section,.billing-section>*{min-width:0;max-width:100%}@media(max-width:800px){.tariff-grid{grid-template-columns:1fr}.tariff-card{padding:18px}.tariff-price strong{font-size:30px}.pricing-header{margin-bottom:32px}.pricing-page{padding:20px 14px 32px}.pricing-free{padding:18px}}.billing-checkout{border:1px solid var(--border);border-radius:14px;padding:20px;margin:20px 0;background:var(--surface)}.billing-checkout>label:not(.billing-consent){display:flex;flex-direction:column;gap:8px;margin:16px 0;max-width:420px}.billing-checkout input[type=email]{padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text)}.billing-consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6;margin:18px 0}.billing-consent input{margin-top:4px;flex-shrink:0}.billing-consent a,.billing-current a{text-decoration:underline}.payment-history-row{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--border);font-size:13px}.payment-history-row small{flex-basis:100%;color:var(--muted)}.legal-tariff-scroll{max-width:100%;overflow-x:auto}.billing-checkout input[type=email]{min-width:0;width:100%;box-sizing:border-box}