@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=IBM+Plex+Mono:wght@400;450;500;600&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#25352e;background:#f6f7f3;font-synthesis:none;--green:#244f3d;--border:#dce2d8}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #89ad69;outline-offset:4px}header{height:90px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 5.5%;gap:20px}.brand{display:flex;align-items:center;text-decoration:none;color:inherit;font-size:30px;font-weight:700;letter-spacing:-1px}.brand-icon{display:inline-grid;place-items:center;width:34px;height:34px;margin-right:10px;background:var(--green);color:#d8e8bc;border-radius:8px;font-size:26px}.brand-dot{color:#8ca770}.header-caption,.eyebrow,.workspace-head,.local-badge,.saved{font-size:11px;letter-spacing:1.4px;font-weight:600}.header-caption{color:#859081}.local-badge{letter-spacing:0;background:#e9eee3;color:#52664d;padding:9px 13px;border-radius:20px}main{max-width:1320px;margin:auto;padding:60px 5% 0}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:42px}.eyebrow{color:#738267;margin:0 0 19px}h1{font-size:clamp(38px,4.4vw,60px);line-height:1.06;letter-spacing:-2.6px;font-weight:500;margin:0 0 22px}.subtitle{font-size:15px;color:#768074;margin:0;line-height:1.6}.intro-note{display:flex;flex-direction:column;gap:15px;font:11px 'IBM Plex Mono',monospace;color:#82907c;border-left:1px solid #cdd6c4;padding-left:24px}.workspace{background:#fff;border:1px solid var(--border);border-radius:15px;box-shadow:0 6px 24px #28352004;overflow:hidden}.workspace-head{display:flex;justify-content:space-between;align-items:center;padding:22px 30px;border-bottom:1px solid #edf0e8;color:#718068;gap:15px}.live-dot{display:inline-block;width:6px;height:6px;background:#8aa86a;border-radius:50%;margin-right:8px}.text-button{border:0;background:transparent;color:#64765e;font-size:12px;padding:6px}.input-label{display:block;font-size:12px;font-weight:600;margin:25px 30px 9px}#serial-input{width:calc(100% - 60px);margin:0 30px;border:1px solid #d9e0d4;border-radius:7px;background:#fafbf8;padding:13px 15px;font:15px 'IBM Plex Mono',monospace;color:#324632}input:focus{outline:2px solid #87a775;outline-offset:1px}.help{font-size:11px;color:#899182;margin:10px 30px 0}.diagram-scroll{overflow-x:auto;padding:0 30px}#diagram{position:relative;min-width:100%;width:max-content;min-height:260px;padding:47px 20px 0}#serial{display:flex;justify-content:center;position:relative;z-index:2;white-space:pre;user-select:text;width:max-content;min-width:100%;font:500 clamp(28px,3.3vw,44px)/1.6 'IBM Plex Mono',monospace;letter-spacing:0;touch-action:pan-x}.char{display:inline-block;text-align:center;width:1.02em;flex-shrink:0;border-radius:4px;position:relative}.char.assigned{background:color-mix(in srgb,var(--color) 11%,white);color:var(--color);box-shadow:inset 0 -2px var(--color)}.char::selection{background:#c9dbbc;color:#233627}#lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}#labels{position:relative;min-height:120px}.diagram-label{position:absolute;max-width:280px;padding:14px 18px;font-size:22px;font-weight:600;line-height:1.3;background:white;border:2px solid color-mix(in srgb,var(--color) 65%,white);border-radius:6px;color:var(--color);text-align:center;overflow-wrap:anywhere;cursor:pointer;z-index:2}.workspace-footer{padding:15px 30px;background:#fafbf7;border-top:1px solid #edf0e8;display:flex;justify-content:space-between;gap:20px;color:#8b9586;font-size:11px}#coverage{font-family:'IBM Plex Mono',monospace;white-space:nowrap}.details{margin:40px 0 50px}.details-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.details-heading .eyebrow{font-size:10px;margin-bottom:10px}h2{font-size:21px;font-weight:500;letter-spacing:-.5px;margin:0}#count{display:inline-block;font:11px 'IBM Plex Mono',monospace;background:#e7ecdf;padding:4px 8px;border-radius:5px;vertical-align:middle;margin-left:8px}.saved{color:#89977e;letter-spacing:0;font-weight:400;font-size:11px}.section-row{display:grid;grid-template-columns:30px minmax(0,1.3fr) minmax(0,1fr) 115px 65px;gap:15px;align-items:center;padding:18px 10px;border-bottom:1px solid var(--border)}.swatch{width:9px;height:9px;border-radius:3px}.section-name{font-size:13px;font-weight:550;overflow-wrap:anywhere}.section-value{font:14px 'IBM Plex Mono',monospace;overflow-wrap:anywhere}.position{font:10px 'IBM Plex Mono',monospace;color:#8b9586}.row-actions{display:flex;gap:8px}.icon-button{border:0;background:transparent;font-size:19px;color:#89927f;padding:3px 7px}.icon-button:hover{background:#e9eee4;border-radius:5px}.empty{padding:24px;text-align:center;border:1px dashed #d1dac9;border-radius:8px;color:#829077;font-size:13px;line-height:1.7}footer{border-top:1px solid var(--border);padding:22px 0;display:flex;justify-content:space-between;gap:16px;font-size:10px;color:#98a08f}#selection-menu{position:fixed;z-index:10;background:#253d30;color:white;padding:7px;border-radius:9px;box-shadow:0 5px 22px #20331d30;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 16px)}#selection-menu[hidden]{display:none}#selected-preview{font:12px 'IBM Plex Mono',monospace;padding-left:6px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#assign{border:0;background:#e0ebd3;color:#29452e;padding:10px 13px;border-radius:5px;white-space:nowrap;font-size:12px}dialog{width:440px;max-width:calc(100% - 32px);padding:28px;border:1px solid var(--border);border-radius:14px;color:#293e30;box-shadow:0 25px 100px #18371e20}dialog::backdrop{background:#27372d60;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head .eyebrow{margin:0}dialog h2{margin:20px 0}dialog label{display:block;font-size:12px;margin:23px 0 10px}#range-preview{padding:14px;background:#f2f5ed;border-radius:6px;font:20px 'IBM Plex Mono',monospace;overflow-wrap:anywhere}#field-name{width:100%;padding:12px;border:1px solid #cfd9c7;border-radius:6px}#palette{display:flex;gap:12px;flex-wrap:wrap}.color-choice{width:27px;height:27px;border:4px solid white;border-radius:50%;outline:1px solid transparent}.color-choice.active{outline-color:var(--color)}.dialog-actions{display:flex;justify-content:space-between;margin-top:24px}.primary{border:0;border-radius:6px;padding:12px 17px;background:#2e523c;color:white;font-size:12px}#form-error{color:#b14a42;font-size:12px;margin:10px 0 0}
@media(max-width:650px){header{height:70px;padding:0 20px}.header-caption,.intro-note{display:none}main{padding:36px 18px 0}.intro{margin-bottom:28px}h1{letter-spacing:-1.5px}.subtitle{font-size:13px}.workspace-head{padding:17px;font-size:9px;letter-spacing:1px}.input-label{margin-left:17px;margin-right:17px}#serial-input{margin:0 17px;width:calc(100% - 34px)}.help{margin-left:17px;margin-right:17px;line-height:1.6}.diagram-scroll{padding:0 15px}#diagram{padding:35px 5px 0}#serial{font-size:28px}.workspace-footer{padding:14px 17px;flex-direction:column;gap:7px}.saved{max-width:110px;text-align:right;line-height:1.6}.section-row{grid-template-columns:15px minmax(0,1fr) 65px;gap:10px}.section-value{grid-column:2;grid-row:auto}.position{grid-column:2}.row-actions{grid-column:3;grid-row:1 / 4}footer span{display:none}}

/* Proposal navigation stays outside the editing card on wide presentation screens. */
.canvas-carousel{position:relative}
.workspace{display:flex;flex-direction:column}
.workspace-footer{margin-top:auto}
#canvas-position{font-size:12px;letter-spacing:0;color:#64765e;white-space:nowrap}
.canvas-nav{position:absolute;top:55%;z-index:3;width:56px;height:56px;display:grid;place-items:center;border:1px solid #c9d5c0;border-radius:50%;background:#fff;color:var(--green);box-shadow:0 3px 12px #28352008;transition:background .15s,border-color .15s}
.canvas-nav:hover:not(:disabled){background:#e9eee3;border-color:#89a875}
.canvas-nav:disabled{opacity:.3;cursor:default}
.canvas-nav svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.canvas-previous{left:clamp(-204px,calc((100% - 100vw)/2 + 56px),-24px);transform:translate(-50%,-50%)}
.canvas-next{right:clamp(-204px,calc((100% - 100vw)/2 + 56px),-24px);transform:translate(50%,-50%)}
.workspace.enter-next{animation:enter-next .18s ease-out}
.workspace.enter-previous{animation:enter-previous .18s ease-out}
@keyframes enter-next{from{opacity:.7;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}
@keyframes enter-previous{from{opacity:.7;transform:translateX(-18px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:1100px){.canvas-carousel{padding-bottom:65px}.canvas-nav{top:auto;bottom:0;transform:none;width:48px;height:48px}.canvas-previous{left:calc(50% - 60px)}.canvas-next{right:calc(50% - 60px)}}
@media(max-width:650px){.workspace-head{flex-wrap:wrap}#canvas-position{order:3;flex-basis:100%;text-align:center;font-size:11px}}
@media(prefers-reduced-motion:reduce){.workspace.enter-next,.workspace.enter-previous{animation:none}.canvas-nav{transition:none}}

.delete-section{display:block;width:100%;min-height:44px;margin-top:18px;border:1px solid #dec0bb;border-radius:6px;background:#fff8f6;color:#a34336;font-size:13px;font-weight:600}
.delete-section:hover{background:#faeae5;border-color:#b77b71}
.delete-section[hidden]{display:none}
dialog{max-height:calc(100dvh - 32px);overflow-y:auto}

#field-name{font:inherit;min-height:80px;max-height:180px;resize:vertical;line-height:1.5}
.field-help{font-size:11px;line-height:1.6;color:#768074;margin:8px 0 0}
.field-help code{font-family:'IBM Plex Mono',monospace;font-size:10px}
.diagram-label,.section-name{white-space:pre-wrap}
.diagram-label strong,.section-name strong{font-weight:700}
.diagram-label em,.section-name em{font-style:italic;font-synthesis:style}
.diagram-label code,.section-name code{font-family:'IBM Plex Mono',monospace;font-size:.9em;background:color-mix(in srgb,currentColor 9%,transparent);padding:1px 4px;border-radius:4px}
