:root{color-scheme:dark;--bg:#101521;--surface:#171e2c;--raised:#1d2738;--line:#344054;--text:#eef2f8;--muted:#aebbd0;--accent:#4386e7;--accent-hover:#65a0f3;--ink:#071424;--danger:#ffb1af;--success:#a3dec5;--radius:12px;font-family:"Segoe UI",system-ui,sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-underline-offset:4px}button{border:0}button:disabled{cursor:default;opacity:.45}button:not(:disabled),a,summary{transition:background-color .16s ease-out,color .16s ease-out}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--accent-hover);outline-offset:3px}::selection{background:#315a99;color:#fff}input,textarea{caret-color:var(--accent-hover)}[hidden]{display:none!important}h1,h2,p{margin:0}h1{font-size:1.875rem;line-height:1.25;letter-spacing:-.025em;font-weight:650;text-wrap:balance}h2{font-size:1.0625rem;font-weight:600;line-height:1.4}p{max-width:72ch}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.muted,.field-help,.save-note{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip{position:fixed;left:16px;top:-100px;z-index:10;background:var(--accent);color:var(--ink);padding:12px}.skip:focus{top:16px}.brand{font-size:2rem;font-weight:750;letter-spacing:-.035em;text-decoration:none;width:fit-content}.brand span{color:var(--accent)}.app-shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;padding:28px 20px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:32px}.company-block label{margin:0 0 8px;font-size:.75rem;color:var(--muted)}.company-block select{width:100%;font-weight:600;background:var(--raised)}nav{display:grid;gap:6px}.nav-item{display:flex;gap:12px;align-items:center;text-align:left;background:transparent;color:var(--muted);border-radius:8px;padding:12px;font-size:.875rem;min-height:48px}.nav-item:hover{background:var(--raised);color:var(--text)}.nav-item[aria-current=page]{background:#243c60;color:#d8e9ff}.sidebar-note{margin-top:auto;font-size:.8125rem;color:var(--muted);line-height:1.6}.sidebar-note strong{color:var(--text);font-weight:600}.sidebar-note p{margin-top:8px}.account{border-top:1px solid var(--line);padding-top:16px;display:flex;flex-direction:column;align-items:flex-start;font-size:.8125rem;gap:4px}.account .text-button{padding:8px 0}main{min-width:0;padding:0 40px 24px;max-width:1680px;width:100%}.workspace-header{height:80px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);font-size:.875rem;font-weight:600}.environment{color:var(--muted);font-size:.75rem;font-weight:400}.environment.demo{color:#f2d490}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:36px 0 28px}.page-heading p{margin-top:10px;color:var(--muted);font-size:.9375rem}.state{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;font-size:.8125rem;color:var(--success);margin-top:6px}.state::before{content:"";width:6px;height:6px;background:currentColor;border-radius:50%}.state.dirty{color:#f2d490}.page-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.button-group,.form-actions{display:flex;align-items:center;gap:8px}.form-actions{justify-content:flex-end;margin-top:24px}.primary,.secondary,.text-button,.icon-button{border-radius:8px;min-height:44px;padding:10px 16px;font-size:.875rem;font-weight:600;text-decoration:none}.primary{background:var(--accent);color:var(--ink)}.primary:not(:disabled):hover{background:var(--accent-hover)}.secondary{background:var(--raised);border:1px solid var(--line);color:var(--text)}.secondary:not(:disabled):hover{background:#2a374e}.text-button,.icon-button{background:transparent;color:var(--muted)}.text-button:not(:disabled):hover,.icon-button:not(:disabled):hover{background:var(--raised);color:var(--text)}.icon-button{padding:9px;display:inline-flex;align-items:center;justify-content:center}.danger{color:var(--danger)}.wide{width:100%}.save-note{font-size:.8125rem;margin:12px 0 24px}.prompt-layout{display:grid;grid-template-columns:230px minmax(0,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);min-height:470px}.section-index{padding:24px 20px 24px 0;border-right:1px solid var(--line)}.list-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.list-heading span{color:var(--muted);font-size:.8125rem;font-variant-numeric:tabular-nums}.section-index ol{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:6px}.section-index li button{width:100%;text-align:left;border-radius:8px;padding:12px;background:transparent;color:var(--muted);font-size:.875rem;overflow-wrap:anywhere}.section-index li button:hover{background:var(--raised)}.section-index li button[aria-current=true]{background:var(--raised);color:var(--text)}.section-index .section-number{display:block;font-size:.75rem;color:var(--muted);margin-bottom:4px;font-variant-numeric:tabular-nums}.section-editor{padding:24px 0 24px 28px;min-width:0}.editor-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:24px}.editor-heading h2{overflow-wrap:anywhere}fieldset{margin:0;padding:0;border:0;min-width:0}label{display:block;font-size:.875rem;font-weight:500;margin:20px 0 8px}input:not([type=checkbox]),textarea,select{display:block;width:100%;border:1px solid var(--line);background:var(--surface);border-radius:8px;color:var(--text);padding:11px 12px;min-height:44px}input::placeholder,textarea::placeholder{color:#94a4bd}textarea{resize:vertical;line-height:1.7;font-size:.9375rem}#section-content{min-height:300px;margin-top:12px}#faq-answer{min-height:180px}.field-help{font-size:.8125rem;margin:8px 0 0}.editor-footer{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:.75rem;margin-top:10px;font-variant-numeric:tabular-nums}.preview{border-top:1px solid var(--line);padding:28px 0}.preview p{margin-top:8px}.preview pre{font:inherit;font-size:.9375rem;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;max-width:80ch;margin:28px 0}.faq-toolbar{display:flex;align-items:flex-end;gap:20px;margin:0 0 24px}.faq-toolbar label{margin-top:0}.search-field{flex:1;max-width:480px}.faq-toolbar>span{padding-bottom:12px;font-size:.8125rem}.faq-layout{display:grid;grid-template-columns:minmax(0,1fr);border-top:1px solid var(--line)}.faq-layout.editing{grid-template-columns:minmax(250px,1fr) minmax(300px,440px)}.faq-row{padding:22px 0;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.faq-row h2{font-size:.9375rem;overflow-wrap:anywhere}.faq-row p{font-size:.875rem;color:var(--muted);margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.faq-row .badge{font-size:.75rem;color:var(--muted);margin-top:10px;display:block}.faq-row.selected h2{color:#a6ccff}.faq-row .text-button{flex-shrink:0}.faq-editor{padding:24px 0 24px 28px;margin-left:28px;border-left:1px solid var(--line)}.faq-editor details{margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.faq-editor summary{font-size:.875rem;color:var(--muted);cursor:pointer;padding:8px 0}.check-label{display:flex;align-items:center;gap:10px;min-height:44px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.empty{padding:52px 24px;text-align:center;color:var(--muted)}.empty h2{color:var(--text);margin-bottom:10px}.empty p{margin:0 auto}.empty button{margin-top:24px}#prompt-empty{grid-column:2}#notice{padding:16px 20px;border-radius:8px;margin-top:20px;background:#203c36;color:#ceefe1;font-size:.875rem;overflow-wrap:anywhere}#notice.error{background:#422729;color:#ffd5d3}#notice button{margin-left:12px}.load-error{padding:40px 0}.load-error p{color:var(--muted);margin:12px 0 20px}.loading{padding:48px 0;display:grid;gap:20px}.loading span{height:48px;background:var(--raised);border-radius:8px;width:70%}.loading span:nth-child(2){width:95%;height:200px}.loading span:nth-child(3){width:40%}.workspace-footer{margin-top:48px;color:var(--muted);font-size:.75rem}.change-row{display:grid;grid-template-columns:1fr 160px 190px;gap:16px;border-bottom:1px solid var(--line);padding:18px 0;font-size:.875rem}.change-row time{color:var(--muted);font-variant-numeric:tabular-nums}.change-row small{display:block;color:var(--muted)}.login-view{max-width:1100px;margin:0 auto;min-height:100dvh;display:grid;grid-template-columns:1fr 380px;align-items:center;gap:120px;padding:60px 32px}.login-intro h1{font-size:2.75rem;margin:40px 0 20px;max-width:16ch;line-height:1.2}.login-intro p{color:var(--muted);max-width:36ch}.login-form{padding-top:40px}.login-form h2{font-size:1.5rem}.login-form>p{margin-top:10px}.login-form label{margin-top:24px}.login-form .primary{width:100%;margin-top:20px}.error{color:var(--danger);font-size:.875rem}.login-form .error:empty{display:none}dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:var(--radius);padding:28px;max-width:480px;width:calc(100% - 32px)}dialog::backdrop{background:#050a14b3}dialog h2{font-size:1.25rem}dialog p{margin-top:12px;color:var(--muted)}
@media(min-width:1500px){main{padding-left:56px;padding-right:56px}.prompt-layout{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:1100px){.app-shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:24px 12px}.nav-item{gap:8px;padding:10px;font-size:.8125rem}main{padding-left:24px;padding-right:24px}.prompt-layout{grid-template-columns:180px minmax(0,1fr)}.section-editor{padding-left:20px}.faq-layout.editing{grid-template-columns:1fr}.faq-editor{margin:0;padding:24px 0;border-left:0;border-top:1px solid var(--line)}.faq-layout.editing .faq-list{max-height:300px;overflow:auto}.change-row{grid-template-columns:1fr 150px}.change-row time{grid-column:1/-1}.login-view{gap:60px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:static;height:auto;display:grid;grid-template-columns:1fr 1fr;padding:16px;gap:16px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{font-size:1.75rem;align-self:center}.company-block label{display:none}.sidebar nav{grid-column:1/-1;display:flex;gap:4px;overflow:auto}.nav-item{white-space:nowrap;flex:1;justify-content:center;padding:10px 8px;min-height:44px}.nav-item svg{display:none}.sidebar-note,.account{display:none}main{padding:0 20px 24px}.workspace-header{height:60px}.workspace-header::after{content:none}.environment{max-width:170px;text-align:right}.page-heading{margin:28px 0 24px;gap:16px;flex-wrap:wrap}h1{font-size:1.5rem}.page-heading p{font-size:.875rem}.page-actions{flex-wrap:wrap}.page-actions>.primary{width:100%;order:2}.prompt-layout{display:block}.section-index{border-right:0;border-bottom:1px solid var(--line);padding:20px 0}.section-index ol{display:flex;overflow:auto;gap:8px;margin-bottom:16px}.section-index li{flex:0 0 180px}.section-index li button{height:100%}.section-editor{padding:24px 0}.editor-heading{gap:8px}.editor-heading .button-group{gap:0}#section-content{min-height:320px}.editor-footer{flex-direction:column;gap:4px}.faq-toolbar{flex-wrap:wrap;gap:12px}.search-field{flex-basis:100%;max-width:none}.faq-toolbar>span{margin-left:auto}.faq-row{gap:10px}.faq-row .text-button{padding-left:10px;padding-right:10px}.form-actions{flex-wrap:wrap}.change-row{grid-template-columns:1fr;gap:8px}.login-view{display:block;padding:32px 24px;max-width:440px;min-height:auto}.login-intro h1{font-size:2rem;margin-top:28px;max-width:20ch}.login-form{padding-top:40px}.login-intro p{font-size:.875rem}.workspace-footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.mobile-logout{display:block}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Compact task controls keep the first editor visible on small screens. */
.mobile-section-label,.mobile-section-controls,.mobile-save-bar{display:none}
@media(max-width:760px){
 .sidebar{padding:12px 16px;gap:12px}
 .sidebar nav{display:grid;grid-template-columns:1fr 1.4fr .8fr;overflow:visible}
 .nav-item{white-space:normal;line-height:1.25;padding:10px 6px;font-size:.78125rem;min-width:0}
 .workspace-header{height:52px}
 .page-heading{margin:20px 0 16px;gap:8px}
 .page-heading p{margin-top:8px}
 .state{margin-top:0}
 .save-note{margin:8px 0 16px}
 .section-index{padding:16px 0}
 .section-index .list-heading,.section-index ol,.section-index>#add-section{display:none}
 .mobile-section-label{display:block;margin:0 0 8px;color:var(--muted);font-size:.8125rem}
 .mobile-section-controls{display:flex;gap:8px}
 .mobile-section-controls select{flex:1;min-width:0}
 .mobile-section-controls button{flex-shrink:0}
 .section-editor{padding-top:16px}
 .editor-heading{margin-bottom:16px}
 .section-editor label{margin-top:16px}
 .mobile-save-bar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:5;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:var(--surface);border-top:1px solid var(--line);font-size:.8125rem;color:#f2d490}
 .has-prompt-changes{padding-bottom:88px}
}

.tools-availability{padding:16px 18px;margin:0 0 20px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font-size:.875rem;line-height:1.55}
.tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tool-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;align-content:start;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
.tool-card h2{margin-top:4px}
.tool-card p:not(.tool-category){margin-top:10px;color:var(--muted);font-size:.875rem;line-height:1.6}
.tool-card .tool-category{color:var(--accent-hover);font-size:.72rem;font-weight:650;letter-spacing:.07em;text-transform:uppercase}
.tool-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#243c60;color:#b9d7ff;font-size:1.35rem;font-weight:650}
.tool-action{grid-column:2;display:inline-flex;align-items:center;justify-content:center;width:fit-content;min-height:42px;padding:9px 13px;border:1px solid var(--line);border-radius:8px;color:var(--text);font-size:.8125rem;font-weight:600;text-decoration:none}
.tool-action:not(.locked):hover{background:var(--raised);border-color:var(--accent-hover)}
.tool-action.locked{color:var(--muted);cursor:default;opacity:.75}
.tool-security .field-help{margin-top:8px}
@media(min-width:761px){.sidebar{overflow-y:auto;scrollbar-gutter:stable}}
@media(max-width:760px){.sidebar{overflow-y:visible}.tools-grid{grid-template-columns:1fr}.tool-card{padding:20px}}
