:root{font:16px system-ui,sans-serif;color:#193247;background:#f4f7fa}*{box-sizing:border-box}body{margin:0}main{max-width:880px;margin:auto;padding:24px}header{display:flex;align-items:center;gap:16px;flex-wrap:wrap}h1{font-size:clamp(24px,5vw,36px);margin:0 0 20px}h2{font-size:21px}.eyebrow{width:100%;color:#51687d;font-size:13px;text-transform:uppercase;letter-spacing:.08em}form,.record{background:white;border:1px solid #dce5ed;padding:20px;border-radius:14px;margin:16px 0}label{display:block;margin:12px 0;font-weight:600}input,select{width:100%;padding:12px;border:1px solid #a9b9c7;border-radius:8px;font:inherit;margin-top:7px}button{padding:12px 18px;border:0;border-radius:8px;background:#126650;color:white;font:inherit;cursor:pointer;margin:4px 4px 4px 0}.secondary{background:#e6eef4;color:#193247}.summary{display:flex;flex-wrap:wrap;gap:8px}.pill{padding:10px 14px;border-radius:10px;background:#e5eef5}.record p{overflow-wrap:anywhere}.record h3{margin:0}#notice{color:#9d352a;white-space:pre-wrap}[hidden]{display:none!important}input:focus,select:focus,button:focus-visible{outline:3px solid #75b7ee;outline-offset:2px}@media(max-width:500px){main{padding:14px}form,.record{padding:14px}}

#templateNav{display:flex;gap:.5rem;flex-wrap:wrap;margin:0 0 1rem}.nav-item{padding:.45rem .7rem;border:1px solid #d9dee7;border-radius:.45rem;background:#fff}.template-context{margin:0 0 1rem;padding:1rem;border:1px solid #d9dee7;border-radius:.65rem}.template-context h2{margin-top:0}.template-context p{margin:.35rem 0}

/* Stable module mounting zones. FeudFix placement is the reference geometry. */
.assistant-slot{position:fixed;right:1.25rem;bottom:1.25rem;z-index:60}.floating-helper-slot{position:fixed;left:1.5rem;top:5.5rem;z-index:60;width:280px}.sidebar-slot{position:fixed;right:0;top:0;height:100vh;z-index:50}

.module-zone:empty{display:none}.module-card{padding:1rem;margin:.75rem 0;border:1px solid #d9dee7;border-radius:.65rem;background:#fff}.header-actions{display:flex;justify-content:flex-end;gap:.5rem}.dashboard-widgets{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem}.floating-module{position:relative;box-shadow:0 8px 28px rgba(0,0,0,.16)}.module-close{position:absolute;right:.35rem;top:.25rem;padding:.15rem .45rem}
#dashboardGrid{margin:1rem 0}.grid-stack-item-content{background:#fff;border:1px solid #d9dee7;border-radius:.65rem;padding:1rem;overflow:hidden}.grid-stack-item-content strong{display:block;font-size:2rem;margin-top:.5rem}#statusChart{min-height:85px}.status-bar-row{display:grid;grid-template-columns:minmax(70px,auto) 1fr auto;gap:.5rem;align-items:center;margin:.3rem 0}.status-bar-label{font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-bar-track{height:.55rem;background:#e6eef4;border-radius:99px;overflow:hidden}.status-bar-fill{display:block;height:100%;background:#126650;border-radius:99px}.status-bar-count{font-size:.85rem;min-width:1.5rem;text-align:right}#records{margin:1rem 0}
.module-map,.module-workflow{height:320px}.sidebar-slot:not([hidden]){display:block}.assistant-slot:not([hidden]),.floating-helper-slot:not([hidden]){display:block}

/* Mobile presentation variants: same app/data/workflows, phone-specific presentation. */
body[data-presentation="mobile"] main{max-width:none;padding:12px 12px calc(24px + env(safe-area-inset-bottom))}
body[data-presentation="mobile"] header{gap:8px;padding-top:env(safe-area-inset-top)}
body[data-presentation="mobile"] header h1{font-size:1.55rem;margin:0 0 8px;flex:1 1 100%}
body[data-presentation="mobile"] .eyebrow{font-size:11px;margin-bottom:0}
body[data-presentation="mobile"] #templateNav{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:.25rem 0 .65rem;margin:0;gap:.4rem}
body[data-presentation="mobile"] #templateNav::-webkit-scrollbar{display:none}
body[data-presentation="mobile"] .nav-item{flex:0 0 auto;padding:.5rem .7rem;border-radius:999px;font-size:.9rem;white-space:nowrap}
body[data-presentation="mobile"] .nav-item-primary{background:#126650;color:#fff;border-color:#126650}
body[data-presentation="mobile"] .template-context{padding:.7rem .8rem;margin:0 0 .75rem}
body[data-presentation="mobile"] .template-context h2{font-size:1rem;margin:0}
body[data-presentation="mobile"] .mobile-focus{margin:.25rem 0 0;font-size:.86rem;color:#526779}
body[data-presentation="mobile"] #dashboardGrid{display:grid;grid-template-columns:1fr;gap:.6rem;margin:.65rem 0}
body[data-presentation="mobile"] .grid-stack-item{position:static!important;width:auto!important;height:auto!important;transform:none!important}
body[data-presentation="mobile"] .grid-stack-item-content{position:static!important;min-height:auto;padding:.8rem}
body[data-presentation="mobile"] #records{display:block;margin:.65rem 0}
body[data-presentation="mobile"] .record{margin:.65rem 0;padding:14px;border-radius:12px}
body[data-presentation="mobile"] .record dl{grid-template-columns:1fr;gap:.1rem}
body[data-presentation="mobile"] .record dt{margin-top:.45rem}
body[data-presentation="mobile"] form{padding:14px;margin:.75rem 0}
body[data-presentation="mobile"] input,body[data-presentation="mobile"] select{font-size:16px;min-height:48px}
body[data-presentation="mobile"] #editor>button,body[data-presentation="mobile"] .field-action,body[data-presentation="mobile"] .field-controls button{width:100%;min-height:52px}
body[data-presentation="mobile"] .summary{gap:.4rem}
body[data-presentation="mobile"] .pill{padding:.55rem .7rem;font-size:.88rem}
body[data-presentation="mobile"] #statusChart{min-height:0}
body[data-presentation="mobile"] .status-bar-row{grid-template-columns:minmax(64px,auto) 1fr auto}
body[data-presentation="mobile"][data-template="field_service"] .nav-item-primary::before{content:"● ";font-size:.65em}
body[data-presentation="mobile"][data-template="inventory_ops"] .record h3{font-size:1.1rem}
body[data-presentation="mobile"][data-template="customer_portal"] #operationsDashboard{display:none!important}
body[data-presentation="mobile"] .floating-helper-slot{left:.75rem;right:.75rem;top:auto;bottom:.75rem;width:auto;max-width:none}
body[data-presentation="mobile"] .sidebar-slot{left:.5rem;right:.5rem;top:auto;bottom:.5rem;height:auto}

/* Shared Operations desktop layout; dedicated touch-first field workflow. */
.record{min-width:0;overflow-wrap:anywhere}.record dl{display:grid;grid-template-columns:minmax(90px,1fr) 2fr;gap:.25rem .75rem}.record dt{font-weight:700;color:#526779}.record dd{margin:0;overflow-wrap:anywhere}.status-pill{display:inline-block;padding:.5rem .8rem;border-radius:2rem;background:#e2f2e9;color:#17533d;font-weight:700;margin:.4rem 0}.field-controls{display:grid;grid-template-columns:1fr;gap:.5rem;margin:.75rem 0}.field-controls select,.field-action,.field-upload{min-height:56px;font-size:1.05rem}.field-action{width:100%;font-weight:700}.field-upload{display:flex;align-items:center;justify-content:center;border:2px dashed #5c8977;border-radius:12px;padding:12px;cursor:pointer}.field-upload input{margin:0}.field-hint{color:#4d6574}.signature-pad{margin-top:1rem;padding:1rem;border:1px solid #dce5ed;border-radius:12px;background:#f8fbfd}.signature-canvas{display:block;width:100%;height:150px;margin:.5rem 0;border:1px solid #a9b9c7;border-radius:8px;background:white;touch-action:none}.operations-map{height:300px;margin:.75rem 0;border-radius:12px;overflow:hidden}.document-image{display:block;max-width:100%;max-height:480px;object-fit:contain;margin:.75rem 0;border:1px solid #dce5ed}.sync-pending{font-weight:700;color:#80520b}.signature-state{color:#17533d;font-weight:700}#syncState{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.75rem;background:#fff6dc;border-radius:10px}#login select{min-height:48px}button{min-height:44px}#install{margin-left:auto}.template-context{overflow-wrap:anywhere}@media(min-width:800px){main{max-width:1180px}#records{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:.75rem}.field-controls{grid-template-columns:1fr auto}.field-controls .field-action{width:auto}}

/* First-admin setup help: concise at a glance, details on demand. */
.setup-guide{margin:.75rem 0 1rem;padding:.8rem 1rem;border:1px solid #d9dee7;border-radius:.65rem;background:#f8fbfd}
.setup-guide details{margin:.45rem 0;padding:.45rem 0;border-top:1px solid #e5eaf0}
.setup-guide details:first-of-type{border-top:0}
.setup-guide summary{cursor:pointer;font-weight:700}
.setup-guide p{margin:.4rem 0;line-height:1.45}
@media(max-width:700px){.setup-guide{padding:.7rem}.setup-guide details{padding:.55rem 0}}

:root{--app-accent:#24664b;--app-bg:#f5f8f4;--app-ink:#20362e;--app-soft:#e7f0e8}body{background:var(--app-bg);color:var(--app-ink)}button{background:var(--app-accent)}.secondary{background:var(--app-soft);color:var(--app-ink)}.status-bar-fill{background:var(--app-accent)}
.trial-live-banner{position:sticky;top:0;z-index:999;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 18px;background:#fff6d8;border-bottom:1px solid #dfc873;box-shadow:0 2px 8px rgba(0,0,0,.08)}.trial-banner-copy{display:flex;flex-direction:column;gap:2px}.trial-banner-copy span{font-size:13px}.trial-banner-actions{display:flex;gap:8px}.trial-banner-actions a{padding:9px 14px;border-radius:7px;text-decoration:none;font-weight:700}.trial-buy{background:var(--app-accent);color:white}.trial-edit{background:white;color:var(--app-ink);border:1px solid #b9aa72}@media(max-width:650px){.trial-live-banner{align-items:flex-start;flex-direction:column}.trial-banner-actions{width:100%}.trial-banner-actions a{flex:1;text-align:center}}
.trial-role{width:auto;min-width:135px;margin:0;padding:9px 10px;background:white;color:var(--app-ink);border:1px solid #b9aa72}

/* All themes share readable secondary text and visible control boundaries. */
input,select,textarea{background:#fff;color:var(--app-ink);border-color:#66786e}input::placeholder{color:#4e6257;opacity:1}.record,.module-card,.template-context,.grid-stack-item-content,.nav-item{border-color:#6c7d71}.record dt,.eyebrow,.mobile-focus,.field-hint{color:#455b50!important}.nav-item{background:#fff;color:var(--app-ink);margin:0}.nav-item-primary,body[data-presentation="mobile"] .nav-item-primary{background:var(--app-accent);color:#fff;border-color:var(--app-accent)}button:disabled{opacity:1;color:#46574c;background:#e2e9e3;border:1px solid #66786e}.trial-live-banner{color:#343d25;border-color:#887533}.trial-edit,.trial-role{border-color:#887533}.status-pill{background:var(--app-soft);color:var(--app-ink)}input:focus,select:focus,button:focus-visible{outline:3px solid var(--app-ink)}
#dashboardGrid{display:grid;grid-template-columns:1fr 2fr;gap:16px}.grid-stack-item{position:static!important;width:auto!important;height:auto!important;transform:none!important}.grid-stack-item-content{position:static!important;min-height:120px}
.record-table{width:100%;border-collapse:collapse;background:white}.record-table th,.record-table td{text-align:left;padding:12px;border-bottom:1px solid #6c7d71}.record-table th{background:var(--app-soft)}#records:has(.record-table){display:block;overflow-x:auto}.work-lane{min-width:0;padding:12px;border:1px solid #6c7d71;border-radius:12px;background:var(--app-soft)}.work-lane>h3{margin:4px 0 14px}.work-lane .record{margin:8px 0}.sequence-number{font-size:28px;font-weight:800;color:var(--app-accent)}
/* Dispatch: a left rail and numbered agenda, with a compact editor on the right. */
body[data-template="field_service"] #workspace{display:grid;grid-template-columns:180px minmax(0,1fr) 300px;gap:16px}body[data-template="field_service"] #templateNav{grid-column:1;grid-row:1/10;display:flex;flex-direction:column;align-self:start;position:sticky;top:110px}body[data-template="field_service"] #workspace>div,body[data-template="field_service"] #workspace>section,body[data-template="field_service"] #searchLabel{grid-column:2}body[data-template="field_service"] #records{display:block}body[data-template="field_service"] #editor{grid-column:3;grid-row:1/10;align-self:start}body[data-template="field_service"] .record{border-left:6px solid var(--app-accent)}
/* Sales: horizontal pipeline, without a dashboard competing for attention. */
body[data-template="crm_sales"] #operationsDashboard{display:none}body[data-template="crm_sales"] #records{display:grid;grid-template-columns:repeat(3,minmax(210px,1fr));overflow-x:auto}body[data-template="crm_sales"] .template-context{border:0;border-bottom:4px solid var(--app-accent)}
/* Case desk: compact queue with expandable details and a side-by-side editor. */
body[data-template="case_workflow"] #workspace{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}body[data-template="case_workflow"] #workspace>*{grid-column:1/-1}body[data-template="case_workflow"] #records{grid-column:1;display:block}body[data-template="case_workflow"] #editor{grid-column:2;grid-row:7/10;align-self:start}body[data-template="case_workflow"] .record{border-radius:0;margin:0;border-bottom:2px solid var(--app-accent)}body[data-template="case_workflow"] #operationsDashboard{order:10}
/* Inventory: dense operational register and a compact KPI ribbon. */
body[data-template="inventory_ops"] main{max-width:1400px}body[data-template="inventory_ops"] #dashboardGrid{grid-template-columns:220px 1fr}body[data-template="inventory_ops"] .record-table td{padding:7px 12px}body[data-template="inventory_ops"] #fields{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
/* Project studio: roomy task swimlanes and vertical project navigation. */
body[data-template="project_tasks"] #templateNav{border-left:6px solid var(--app-accent);padding:12px}body[data-template="project_tasks"] #records{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr))}body[data-template="project_tasks"] .work-lane{background:white;border-top:6px solid var(--app-accent)}body[data-template="project_tasks"] .record{background:var(--app-soft);border:0;border-radius:2px}body[data-template="project_tasks"] #dashboardGrid{grid-template-columns:1fr}body[data-template="project_tasks"] #statusChart{display:none}
/* Portal: centered welcome, pill tabs and large self-service request cards. */
body[data-template="customer_portal"] main{max-width:820px}body[data-template="customer_portal"] #templateNav{justify-content:center}body[data-template="customer_portal"] .nav-item{border-radius:999px}body[data-template="customer_portal"] .template-context{text-align:center;padding:32px;background:var(--app-soft);border:0}body[data-template="customer_portal"] #operationsDashboard{display:none}body[data-template="customer_portal"] #records{display:block}body[data-template="customer_portal"] .record{padding:28px;border-radius:22px}
/* Reporting: metrics-first wide analytics view and a spacious summary table. */
body[data-template="reporting_records"] main{max-width:1320px}body[data-template="reporting_records"] #dashboardGrid{grid-template-columns:1fr 3fr}body[data-template="reporting_records"] #operationsDashboard{padding:24px;background:var(--app-soft)}body[data-template="reporting_records"] #templateNav{border-bottom:3px solid var(--app-accent);padding-bottom:12px}body[data-template="reporting_records"] .record-table td{padding:18px 12px}
@media(max-width:700px){body[data-template] #workspace{display:block}body[data-template] #templateNav{position:static;display:flex;flex-direction:row;overflow-x:auto}body[data-template] #editor{margin-top:16px}body[data-template] #fields{display:block}body[data-template] #dashboardGrid{grid-template-columns:1fr}body[data-template="crm_sales"] #records,body[data-template="project_tasks"] #records{grid-template-columns:1fr}.record-table{min-width:500px}body[data-template="case_workflow"] .record{padding:14px}}

/* Template compositions: real semantic structures, not color-only variants. */
body[data-template="field_service"] #workspace{grid-template-columns:180px minmax(0,1fr) 300px;align-items:start}
body[data-template="field_service"] #templateNav{display:flex;flex-direction:column;grid-column:1;grid-row:1/span 4;position:sticky;top:16px}
body[data-template="field_service"] #templateContext{grid-row:1}
body[data-template="field_service"] #operationsDashboard{grid-row:2}
body[data-template="field_service"] #searchLabel{grid-row:3}
body[data-template="field_service"] #records{grid-row:4}
body[data-template="field_service"] #editor{grid-column:3;grid-row:1/span 4;align-self:start}
body[data-template="field_service"] .service-agenda{list-style:none;margin:0;padding:0}
body[data-template="field_service"] .service-agenda>li+li{margin-top:10px}
body[data-template="crm_sales"] #records{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));align-items:start;gap:12px;overflow-x:auto}
body[data-template="crm_sales"] .pipeline-stage{min-height:280px;border-top:5px solid var(--app-accent);background:var(--app-soft)}
body[data-template="case_workflow"] #workspace{grid-template-columns:minmax(0,1.4fr) minmax(300px,.9fr);align-items:start}
body[data-template="case_workflow"] #templateNav,body[data-template="case_workflow"] #templateContext,body[data-template="case_workflow"] #operationsDashboard,body[data-template="case_workflow"] #searchLabel{grid-column:1/-1}
body[data-template="case_workflow"] #templateNav{grid-row:1}
body[data-template="case_workflow"] #templateContext{grid-row:2}
body[data-template="case_workflow"] #operationsDashboard{grid-row:3}
body[data-template="case_workflow"] #searchLabel{grid-row:4}
body[data-template="case_workflow"] #records{grid-column:1;grid-row:5;display:block}
body[data-template="case_workflow"] #editor{grid-column:2;grid-row:5;align-self:start}
body[data-template="case_workflow"] .case-detail summary{color:var(--app-ink);cursor:pointer;font-weight:700}
body[data-template="inventory_ops"] main,body[data-template="reporting_records"] main{max-width:1400px}
body[data-template="inventory_ops"] #dashboardGrid,body[data-template="reporting_records"] #dashboardGrid{grid-template-columns:minmax(180px,1fr) 3fr}
body[data-template="inventory_ops"] .record-table td{padding-block:8px}
body[data-template="project_tasks"] #workspace{display:grid;grid-template-columns:210px minmax(0,1fr);gap:16px;align-items:start}
body[data-template="project_tasks"] #templateNav{display:flex;flex-direction:column;grid-column:1;grid-row:1/span 5;border-left:6px solid var(--app-accent);padding:12px}
body[data-template="project_tasks"] #templateContext{grid-row:1}
body[data-template="project_tasks"] #operationsDashboard{grid-row:2}
body[data-template="project_tasks"] #searchLabel{grid-row:3}
body[data-template="project_tasks"] #records{grid-row:4}
body[data-template="project_tasks"] #editor{grid-row:5}
body[data-template="project_tasks"] #dashboardGrid>.grid-stack-item:last-child{display:none}
body[data-template="project_tasks"] #templateContext,body[data-template="project_tasks"] #operationsDashboard,body[data-template="project_tasks"] #searchLabel,body[data-template="project_tasks"] #records,body[data-template="project_tasks"] #editor,body[data-template="project_tasks"] .module-zone{grid-column:2}
body[data-template="project_tasks"] #records{display:grid;grid-template-columns:repeat(3,minmax(210px,1fr));align-items:start;gap:12px}
body[data-template="project_tasks"] .task-status-lane{border-top:6px solid var(--app-accent);background:var(--app-soft)}
body[data-template="customer_portal"] main{max-width:820px}
body[data-template="customer_portal"] #operationsDashboard{display:none}
body[data-template="customer_portal"] .template-context{padding:28px;text-align:center;background:var(--app-soft);border:0}
body[data-template="customer_portal"] #templateNav{justify-content:center}
body[data-template="customer_portal"] .portal-request-card{padding:24px;border-radius:20px}
body[data-template="reporting_records"] #operationsDashboard{padding:22px;background:var(--app-soft);border-radius:12px}
body[data-template="reporting_records"] .record-table td{padding-block:16px}

/* Sample previews prioritize live business data; generated apps keep admin help. */
body[data-sample="true"] #adminSettings{display:none!important}
body[data-sample="true"] main{padding:12px}
/* Empty extension slots must not manufacture blank rows before business data. */
body[data-template] #workspace>div:empty{display:none}
body[data-sample="true"] header h1{display:none}
body[data-sample="true"] header .eyebrow{margin:0;font-size:11px}
body[data-sample="true"] #notice:empty{display:none}
body[data-sample="true"] .template-context{padding:8px;margin:4px 0}
body[data-sample="true"] .template-context h2{display:none}
body[data-sample="true"] .template-context p{margin:4px 0;font-size:14px}
body[data-sample="true"] .grid-stack-item-content{min-height:64px;padding:10px}
body[data-sample="true"] #operationsDashboard{padding:8px}
body[data-sample="true"] #dashboardGrid{margin:4px 0;gap:8px}
body[data-sample="true"] #statusChart{min-height:0}
body[data-sample="true"] #kpiRecords{font-size:24px;margin-top:4px}
body[data-sample="true"] .status-bar-count{display:inline;font-size:13px;margin:0}
body[data-sample="true"] .status-bar-row{margin:2px 0}
body[data-sample="true"] .pill{padding:4px 8px;font-size:13px}
body[data-sample="true"] #searchLabel{margin:6px 0}
body[data-sample="true"] #search{padding:8px;margin-top:4px}
body[data-sample="true"] #workspace{gap:8px}
body[data-sample="true"] #records{margin:8px 0}

/* Readable WCAG AA foregrounds and control boundaries for every theme. */
input,select,textarea{color:var(--app-ink);background:#fff;border-color:#66786e}
input::placeholder,textarea::placeholder{color:#4e6257;opacity:1}
.record,.module-card,.template-context,.grid-stack-item-content,.nav-item{border-color:#6c7d71}
.record dt,.eyebrow,.mobile-focus,.field-hint{color:#455b50}
.nav-item{color:var(--app-ink);background:#fff}
.nav-item-primary{color:#fff;background:var(--app-accent);border-color:var(--app-accent)}
button:disabled{color:#46574c;background:#e2e9e3;border:1px solid #66786e;opacity:1}
.status-pill{color:var(--app-ink);background:var(--app-soft)}
input:focus,select:focus,button:focus-visible{outline:3px solid var(--app-ink);outline-offset:2px}

@media(max-width:700px){
  body[data-template="field_service"] #workspace,body[data-template="project_tasks"] #workspace,body[data-template="case_workflow"] #workspace{display:block}
  body[data-template="field_service"] #templateNav,body[data-template="project_tasks"] #templateNav{position:static;display:flex;flex-direction:row;overflow-x:auto}
  body[data-template="field_service"] #editor,body[data-template="project_tasks"] #editor,body[data-template="case_workflow"] #editor{margin-top:16px}
  body[data-template="crm_sales"] #records,body[data-template="project_tasks"] #records{grid-template-columns:minmax(0,1fr)}
  body[data-template="inventory_ops"] #dashboardGrid,body[data-template="reporting_records"] #dashboardGrid{grid-template-columns:minmax(0,1fr)}
}

.trial-start-guide{padding:18px 22px;background:#fff8e8;border:1px solid #bca476;border-radius:12px;margin-bottom:18px}.trial-start-guide h2{font-size:22px;margin:0 0 8px}.trial-start-guide p{font-size:15px;line-height:1.5}

.help-admin{padding:16px 0;border-top:1px solid #bdc7bb;margin-top:18px}.help-admin input{width:100%}.help-editor-row{padding:12px 0;border-bottom:1px solid #d0d9d0}.help-editor-row textarea{width:100%;min-height:95px}.help-editor-row button{margin:5px}.help-entry-status{font-weight:600}

.help-info{margin-left:8px;border:1px solid #9cae9c;background:#e9f2eb;color:#224d32;border-radius:50%;width:28px;height:28px;cursor:pointer}.help-inline{display:block;white-space:pre-line;background:#f1f7f2;border-radius:6px;padding:8px;margin:5px 0;font-size:13px}.help-inline[hidden]{display:none}

/* Business-first UI: compact density, predictable single document scroll. */
html,body{height:auto!important;overflow-y:auto!important;overflow-x:hidden!important}
body main,body[data-template] main{width:min(100% - 32px,1580px)!important;max-width:1580px!important;margin:0 auto!important;padding:12px 0 32px!important}
body #workspace,body #operationsDashboard,body #roleWorkspace,body #operationsTools,body #records,body .module-zone,body .module-card{height:auto!important;max-height:none!important;overflow-y:visible!important}
body #workspace{min-width:0!important}body #templateNav{position:static!important;min-height:0!important;padding:4px 0!important;margin:0 0 10px!important;gap:6px!important}
body .nav-item{padding:8px 12px!important;min-height:36px!important;border-radius:6px!important}
body #operationsDashboard{padding:0!important;margin:0!important;background:transparent!important}
body #dashboardGrid,body[data-template] #dashboardGrid{display:grid!important;grid-template-columns:180px minmax(0,1fr)!important;gap:10px!important;margin:8px 0!important}
body .grid-stack-item-content{min-height:60px!important;padding:9px 12px!important;border-radius:6px!important}
body .grid-stack-item-content strong{font-size:25px!important;margin:4px 0!important}
body .module-card,body .record,body #editor{padding:12px!important;margin:8px 0!important;border-radius:7px!important}
body .template-context{padding:8px 12px!important;margin:6px 0!important;border-radius:6px!important}
body #records,body[data-template] #records{display:block!important;max-width:100%!important;overflow-x:auto!important;margin:8px 0!important}
body .record-table{width:100%;border-collapse:collapse;min-width:580px}
body .record-table td,body .record-table th,body[data-template] .record-table td{padding:8px 10px!important;white-space:normal;vertical-align:top}
body #editor h2{margin:0 0 10px!important}body #fields,body[data-template] #fields{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))!important;gap:8px 14px!important}
body #editor label{margin:4px 0!important}body #editor input,body #editor select{padding:9px!important;margin-top:4px!important}
body .trial-start-guide{padding:12px 16px!important;margin:8px 0!important}
body .trial-start-guide h2{font-size:19px!important}
@media(max-width:740px){body main,body[data-template] main{width:calc(100% - 24px)!important}body #dashboardGrid,body[data-template] #dashboardGrid{grid-template-columns:1fr!important}body #fields,body[data-template] #fields{grid-template-columns:1fr!important}body #templateNav{overflow-x:auto!important}body .record-table{min-width:540px}}
