/* === C30.0 · CANONICAL TEMPLATE ENGINE === */
.c3000-template-preview{--c3000-navy:#17253f;--c3000-coral:#f5a999;--c3000-green:#78c3a7;--c3000-gold:#f4dea0;--c3000-blue:#97bae2;--c3000-red:#ef8178;box-sizing:border-box;background:#fff;color:var(--c3000-navy);font-family:Montserrat,Arial,sans-serif;font-weight:300;width:min(100%,420mm);aspect-ratio:1.414/1;min-height:0;padding:12mm 13mm 10mm;border:1px solid #e7e1da;box-shadow:0 12px 38px rgba(23,37,63,.08);display:flex;flex-direction:column;gap:4mm;overflow:hidden}
.c3000-template-preview *{box-sizing:border-box}.c3000-template-preview strong,.c3000-template-preview h1,.c3000-template-preview h2,.c3000-template-preview h3{font-weight:500}.c3000-title{text-align:center;display:flex;flex-direction:column;align-items:center;gap:2mm;flex:0 0 auto}.c3000-title h1{margin:0;font-size:clamp(24px,2.5vw,42px);line-height:1.06;max-width:95%;padding:0 5mm 2mm;border-bottom:3px solid var(--c3000-coral)}.c3000-title p{margin:0;font-size:clamp(10px,1.08vw,16px);letter-spacing:.01em}.c3000-table-head{display:grid;gap:2mm;flex:0 0 auto}.c3000-template-preview.is-agreements .c3000-table-head{grid-template-columns:32mm repeat(4,minmax(0,1fr))}.c3000-template-preview.is-backlog .c3000-table-head{grid-template-columns:32mm 1.7fr 1.05fr .86fr}.c3000-head-cell{min-height:21mm;border:1.6px solid var(--c3000-navy);border-radius:3mm;padding:3mm 2.5mm;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.08;font-size:clamp(9px,.9vw,13px)}.c3000-head-icon{font-size:clamp(17px,1.6vw,26px);line-height:1;margin-bottom:1.5mm}.c3000-directions{display:grid;gap:2.5mm;flex:1 1 auto;min-height:0}.c3000-direction{display:grid;grid-template-columns:32mm 1fr;gap:2mm;min-height:0}.c3000-direction-label{border:1.7px solid var(--c3000-blue);border-radius:3mm;background:rgba(151,186,226,.12);padding:3mm 2mm;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:clamp(11px,1.15vw,17px);line-height:1.05}.c3000-direction-label .c3000-arrow{font-size:clamp(18px,1.7vw,28px);margin-top:2mm}.c3000-direction-rows{display:flex;flex-direction:column;gap:2mm;min-height:0}.c3000-row{display:grid;gap:2mm;min-height:0;flex:var(--c3000-row-weight,1) 1 0}.c3000-template-preview.is-agreements .c3000-row{grid-template-columns:1fr .92fr .92fr 1.2fr}.c3000-template-preview.is-backlog .c3000-row{grid-template-columns:1.7fr 1.05fr .86fr}.c3000-cell{border:1.7px solid;border-radius:2.7mm;padding:3mm 3.3mm;white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden;background:#fff;font-size:clamp(9px,.96vw,14px);line-height:1.14}.c3000-cell.is-primary{border-color:var(--c3000-green)}.c3000-cell.is-help{border-color:#d9ac31}.c3000-cell.is-reminder,.c3000-cell.is-next{border-color:#6c9fda}.c3000-cell.is-consequence,.c3000-cell.is-status{border-color:#da746d}.c3000-row.is-dense .c3000-cell{font-size:clamp(8px,.83vw,12px);line-height:1.08}.c3000-row.is-very-dense .c3000-cell{font-size:clamp(7.4px,.75vw,11px);line-height:1.04}.c3000-status{display:flex;flex-direction:column;justify-content:center;gap:1.5mm}.c3000-status span{display:flex;align-items:center;gap:1.5mm;white-space:nowrap;font-size:.9em}.c3000-status i{width:4.5mm;height:4.5mm;border:1.4px solid var(--c3000-navy);border-radius:1mm;display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-size:3.2mm;flex:0 0 auto}.c3000-status span.active i{background:var(--c3000-gold)}.c3000-common{display:grid;grid-template-columns:40mm 1fr 62mm;gap:2mm;flex:0 0 auto}.c3000-common>div{min-height:17mm;border:1.7px solid var(--c3000-green);border-radius:3mm;padding:2.5mm 3mm;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden}.c3000-common .c3000-common-label{font-size:clamp(11px,1.05vw,16px);gap:2mm}.c3000-common .c3000-common-message{font-size:clamp(12px,1.25vw,19px);font-weight:500}.c3000-common .c3000-review{border-color:var(--c3000-blue);font-size:clamp(10px,.95vw,14px);font-weight:500}.c3000-overflow{position:absolute;right:10px;bottom:10px;padding:6px 9px;border:1px solid #d7a846;border-radius:6px;background:#fff5d5;color:#695200;font:600 11px/1.2 Montserrat,Arial,sans-serif}.c3000-preview-shell{position:relative;display:flex;justify-content:center;overflow:auto;padding:8px}.c3000-preview-dialog{max-width:min(96vw,1500px);width:min(96vw,1500px)}
.c3000-editor{display:grid;gap:16px}.c3000-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.c3000-editor-head h2{margin:.15rem 0 0}.c3000-editor-fields{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:10px}.c3000-editor-fields .c2894-field{margin:0}.c3000-editor-group{border:1px solid #ddd5cd;border-radius:14px;padding:14px;display:grid;gap:10px}.c3000-editor-group header{display:flex;align-items:center;justify-content:space-between;gap:12px}.c3000-editor-group header h3{margin:0}.c3000-editor-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:8px;align-items:end;padding-top:10px;border-top:1px solid #eee9e4}.c3000-editor-row.is-backlog{grid-template-columns:1.6fr 1.05fr .75fr auto}.c3000-editor-row label{display:grid;gap:5px;font-size:12px}.c3000-editor-row textarea{min-height:78px;resize:vertical}.c3000-row-actions{display:flex;gap:4px;align-items:center}.c3000-row-actions button{min-width:31px}.c3000-common-edit{display:grid;grid-template-columns:1fr 240px;gap:10px}.c3000-common-edit label{display:grid;gap:5px;font-size:12px}.c3000-common-edit textarea{min-height:78px}.c3000-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding-top:4px}.c3000-editor-actions .c3000-state{margin-right:auto;font-size:12px}.c3000-editor-actions .is-incomplete{color:#9d2b25;font-weight:600}.c3000-editor-actions .is-complete{color:#276843;font-weight:600}.c3000-master-dialog{width:min(1100px,94vw);max-width:1100px}.c3000-master-grid{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(420px,1.2fr);gap:18px}.c3000-master-controls{display:grid;gap:12px}.c3000-master-section{border:1px solid #ddd5cd;border-radius:14px;padding:14px;display:grid;gap:10px}.c3000-master-section h3{margin:0}.c3000-master-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.c3000-master-fields label{display:grid;gap:5px;font-size:12px}.c3000-master-preview{min-width:0;overflow:auto}.c3000-master-preview .c3000-template-preview{width:100%;min-width:620px}.c3000-master-actions{display:flex;justify-content:flex-end;gap:8px}.c3000-master-note{padding:10px 12px;border-radius:10px;background:#f7f4ef;font-size:12px;line-height:1.45}.c3000-master-badge{display:inline-flex;padding:3px 7px;border-radius:999px;background:#eef3f8;color:#17253f;font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.c3000-project-template-print{white-space:nowrap}
@media(max-width:980px){.c3000-editor-fields{grid-template-columns:repeat(2,minmax(150px,1fr))}.c3000-editor-row,.c3000-editor-row.is-backlog{grid-template-columns:1fr}.c3000-row-actions{justify-content:flex-start}.c3000-common-edit{grid-template-columns:1fr}.c3000-master-grid{grid-template-columns:1fr}.c3000-template-preview{min-width:900px}.c3000-master-preview .c3000-template-preview{min-width:900px}}
@media print{.c3000-template-preview{box-shadow:none;border:0;width:420mm;height:297mm;max-width:none;min-width:0;aspect-ratio:auto;padding:12mm 13mm 10mm}.c3000-overflow{display:none}}
/* === END C30.0 === */

/* === C30.0 Smart Capture + structured master additions === */
.c3000-template-preview.is-portrait{width:min(100%,297mm);aspect-ratio:1/1.414}.c3000-template-preview.is-portrait .c3000-title h1{font-size:clamp(20px,2vw,34px)}.c3000-template-preview.is-portrait .c3000-table-head{grid-template-columns:26mm repeat(4,minmax(0,1fr))}.c3000-template-preview.is-portrait.is-backlog .c3000-table-head{grid-template-columns:26mm 1.55fr 1fr .8fr}.c3000-template-preview.is-portrait .c3000-direction{grid-template-columns:26mm 1fr}.c3000-template-preview.is-portrait .c3000-head-cell,.c3000-template-preview.is-portrait .c3000-cell{padding:2.2mm}.c3000-backlog-meta{display:block;margin-top:1.6mm;padding-top:1.2mm;border-top:1px dashed rgba(23,37,63,.18);font-size:.72em;font-weight:500;color:#607086}.c3000-cell[contenteditable=true],.c3000-common-message[contenteditable=true],.c3000-review span[contenteditable=true]{outline:0;cursor:text}.c3000-cell[contenteditable=true]:hover,.c3000-common-message[contenteditable=true]:hover,.c3000-review span[contenteditable=true]:hover{background:rgba(151,186,226,.09)}.c3000-cell[contenteditable=true]:focus,.c3000-common-message[contenteditable=true]:focus,.c3000-review span[contenteditable=true]:focus{box-shadow:inset 0 0 0 2px rgba(23,37,63,.22);background:#fffdf8}
.c3000-inline-editor{display:grid;gap:9px;border:1px solid #d8e0e8;border-radius:16px;padding:12px;background:#f8fafc}.c3000-inline-editor-head{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;color:#607086}.c3000-inline-editor-head strong{font-size:13px;color:#17253f}.c3000-inline-editor .c3000-preview-shell{max-height:70vh}.c3000-structured-editor{border:1px solid #ddd5cd;border-radius:14px;padding:0 14px 14px}.c3000-structured-editor>summary{cursor:pointer;padding:13px 0;font-weight:600;color:#17253f}.c3000-editor-row.is-backlog-detail{grid-template-columns:1.15fr 1.35fr .7fr .7fr .65fr auto}.c3000-editor-row.is-backlog-detail textarea{min-height:70px}
.c3000-capture-sources,.c3000-review-panel{border:1px solid #d8e0e8;border-radius:16px;padding:14px;display:grid;gap:12px;background:#fbfcfd}.c3000-capture-head,.c3000-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.c3000-capture-head h3,.c3000-review-head h3{margin:2px 0 4px}.c3000-capture-head p,.c3000-review-head p{margin:0;max-width:780px;font-size:12px;line-height:1.45;color:#607086}.c3000-source-list{display:grid;gap:7px}.c3000-source-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e4e9ee;border-radius:11px;padding:10px 12px;background:white}.c3000-source-card>div:first-child{display:grid;gap:2px;min-width:0}.c3000-source-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c3000-source-card span{font-size:11px;color:#74839a}.c3000-source-card>div:last-child{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.c3000-capture-empty,.c3000-review-empty{padding:13px;border-radius:10px;background:#f4f6f8;color:#607086;font-size:12px;line-height:1.45}.c3000-ai-state{display:flex;gap:8px;align-items:center;padding:9px 11px;border-radius:10px;background:#f4f6f8;font-size:11px;color:#607086}.c3000-ai-state strong{color:#17253f}.c3000-ai-state.ready{background:#edf7f1}.c3000-ai-state.offline{background:#fff5e7}.c3000-ai-state button{margin-left:auto}
.c3000-suggestion-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.c3000-suggestion-card{border:1px solid #dde4ea;border-radius:13px;padding:12px;background:#fff;display:grid;gap:10px}.c3000-suggestion-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.c3000-suggestion-card header>div{display:grid;gap:2px}.c3000-suggestion-card header span{font-size:11px;color:#74839a}.c3000-suggestion-card header>span{padding:3px 7px;border-radius:999px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.c3000-suggestion-card header>span.is-safe{background:#e9f6ee;color:#276843}.c3000-suggestion-card header>span.is-review{background:#fff3d9;color:#795a00}.c3000-suggestion-card>label,.c3000-suggestion-fields label{display:grid;gap:5px;font-size:11px;color:#526277}.c3000-suggestion-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.c3000-suggestion-fields textarea{min-height:70px;resize:vertical}.c3000-source-region,.c3000-rationale{margin:0;font-size:11px;line-height:1.4;color:#607086}.c3000-rationale{padding:8px 10px;border-radius:8px;background:#f6f8fa}.c3000-suggestion-card footer{display:flex;justify-content:flex-end;gap:6px}.c3000-master-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.c3000-master-field-list{display:grid;gap:8px}.c3000-master-field{display:grid;grid-template-columns:1.3fr .75fr auto auto;gap:8px;align-items:end;padding:9px;border:1px solid #e7e1da;border-radius:10px;background:#fff}.c3000-master-field label{display:grid;gap:4px;font-size:11px}.c3000-master-field .c3000-check-label{display:flex;align-items:center;gap:5px;padding-bottom:7px}.c3000-master-field>span{font-size:10px;color:#74839a;padding-bottom:8px}
@media(max-width:1200px){.c3000-editor-row.is-backlog-detail{grid-template-columns:1fr 1fr}.c3000-suggestion-list{grid-template-columns:1fr}.c3000-master-field{grid-template-columns:1fr 1fr}.c3000-source-card,.c3000-capture-head,.c3000-review-head{align-items:flex-start;flex-direction:column}.c3000-source-card>div:last-child{justify-content:flex-start}.c3000-ai-state{flex-wrap:wrap}.c3000-ai-state button{margin-left:0}}
@media(max-width:760px){.c3000-suggestion-fields,.c3000-master-field{grid-template-columns:1fr}.c3000-inline-editor .c3000-preview-shell{max-height:55vh}.c3000-template-preview{min-width:900px}}
/* === END C30.0 Smart Capture === */
