#tmplan-wp{background:#f4f7f5;color:#2f3e46;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.6}
#tmplan,#tmplan *{box-sizing:border-box}#tmplan{--teal:#295e57;--ink:#2f3e46;--pale:#eef5f2;--orange:#b84c32;--line:#d7e3dc;max-width:1220px;margin:auto;padding:24px 28px 40px}
#tmplan [hidden],.tmplan-modal[hidden]{display:none!important}#tmplan h1,#tmplan h2,#tmplan h3{line-height:1.22;color:var(--ink);margin:0 0 12px}#tmplan h1{font-size:clamp(28px,4vw,42px);letter-spacing:-.035em;max-width:800px}#tmplan h2{font-size:23px;letter-spacing:-.02em}#tmplan h3{font-size:17px}#tmplan p{margin:0 0 14px}#tmplan small,#tmplan .tmplan-help{font-size:13px;line-height:1.55;color:#4d6259}#tmplan small{display:block;margin-top:5px}
#tmplan button,#tmplan input,#tmplan select,.tmplan-modal button{font:inherit}#tmplan button,#tmplan select,.tmplan-modal button{min-height:46px}#tmplan button,.tmplan-modal button{cursor:pointer;border:1px solid #70897d;border-radius:9px;background:white;color:#295e57;font-size:14px;font-weight:650;line-height:1.35;padding:11px 14px;max-width:100%;white-space:normal}#tmplan button:hover,.tmplan-modal button:hover{background:#e7f0eb}#tmplan button:disabled{cursor:default;color:#5a6b63;background:#edf1ee;border-color:#c7d2cb;opacity:.8}#tmplan input,#tmplan select{width:100%;max-width:100%;min-width:0;border:1px solid #70897d;border-radius:8px;background:#fff;color:#2f3e46;padding:10px 11px;min-height:46px;font-size:16px}#tmplan input[type=checkbox]{width:20px;min-height:20px;height:20px;accent-color:#295e57;flex:none}#tmplan label,#tmplan .tmplan-field-label{display:block;font-size:14px;font-weight:650;margin-bottom:5px}#tmplan button:focus-visible,#tmplan input:focus-visible,#tmplan select:focus-visible,#tmplan summary:focus-visible,.tmplan-modal button:focus-visible{outline:3px solid #1d4943;outline-offset:3px}#tmplan .tmplan-primary,.tmplan-modal .tmplan-primary{background:#b84c32;border-color:#b84c32;color:#fff}#tmplan .tmplan-primary:hover,.tmplan-modal .tmplan-primary:hover{background:#9d3f28}#tmplan .tmplan-link-button{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;padding:7px 0;text-align:left}#tmplan button[aria-pressed=true]{background:#dcece6;border-color:#295e57;box-shadow:inset 0 0 0 1px #295e57}
#tmplan .tmplan-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 30px}#tmplan .tmplan-brand{font-weight:850;font-size:23px;color:#295e57;letter-spacing:-1px}#tmplan .tmplan-brand span{color:#568b78}#tmplan .tmplan-badge{display:inline-block;background:#eef5f2;border:1px solid #d4e1d8;color:#3b5a4b;font-size:11px;line-height:1.5;font-weight:700;border-radius:30px;padding:5px 10px}#tmplan .tmplan-eyebrow{font-size:11px;font-weight:750;letter-spacing:.11em;color:#526b5f;margin-bottom:10px}#tmplan .tmplan-intro{margin-bottom:24px}#tmplan .tmplan-intro>p:not(.tmplan-eyebrow){max-width:860px}#tmplan .tmplan-proto-note{font-size:13px;padding:12px 16px;border-left:3px solid #b84c32;background:#fff6f1;color:#643c2e;border-radius:0 8px 8px 0}
#tmplan .tmplan-panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:24px;margin:0 0 22px;min-width:0}#tmplan .tmplan-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}#tmplan .tmplan-section-heading h2{margin:0}#tmplan .tmplan-section-heading .tmplan-eyebrow{margin:0 0 7px}#tmplan .tmplan-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}#tmplan .tmplan-main-fields{grid-template-columns:repeat(4,minmax(0,1fr))}#tmplan .tmplan-field{min-width:0;margin:0 0 10px}#tmplan .tmplan-field .tmplan-with-unit{display:flex;align-items:center;gap:9px}#tmplan .tmplan-field .tmplan-with-unit span{font-size:14px;color:#50655a}#tmplan .tmplan-unit{display:flex;align-items:center;gap:8px;white-space:nowrap}#tmplan .tmplan-unit select{width:auto;font-size:13px;min-height:38px;padding:6px}#tmplan .tmplan-value{font-size:19px;font-weight:750;color:#295e57;min-height:36px;display:flex;align-items:center}#tmplan .tmplan-inset{padding:18px;background:#f4f8f5;border:1px solid #dce7df;border-radius:10px;margin:16px 0 0}#tmplan .tmplan-inset p{font-size:14px}#tmplan .tmplan-field-error{color:#9c2f22;font-size:12px;min-height:0;margin-top:5px}#tmplan input[aria-invalid=true]{border:2px solid #aa3526;background:#fff6f4}#tmplan .tmplan-error-summary{padding:12px;border-left:4px solid #a93525;background:#fff1ee;color:#87291e;font-size:14px;margin:14px 0 0}#tmplan .tmplan-warning{padding:12px 14px;background:#fff5e8;border-left:3px solid #9a5c17;border-radius:0 7px 7px 0;color:#70400e;font-size:14px}
#tmplan .tmplan-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}#tmplan .tmplan-visual-column,#tmplan .tmplan-tools-column{min-width:0}#tmplan .tmplan-tools-column details{border-top:1px solid #dce7df;padding-top:14px;margin-top:14px}#tmplan details>summary{font-size:15px;font-weight:700;color:#295e57;cursor:pointer;min-height:46px;padding:9px 3px;line-height:1.5;overflow-wrap:anywhere}#tmplan details[open]>summary{margin-bottom:14px}#tmplan details>summary:focus-visible{outline-offset:0}#tmplan .tmplan-tools-column h2{font-size:21px}#tmplan .tmplan-tools-column p{font-size:14px}#tmplan .tmplan-tools-column .tmplan-fields{gap:10px}#tmplan .tmplan-shape-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:6px 0 16px}#tmplan .tmplan-shape-options button{padding:10px 4px;font-size:11px;min-height:78px}#tmplan .tmplan-shape-options span{display:block;font-size:27px;line-height:1.1;margin-bottom:6px}#tmplan .tmplan-stack-buttons{display:grid;gap:8px}#tmplan .tmplan-object-card{padding:12px;border:1px solid #dce7df;border-radius:9px;margin:12px 0}#tmplan .tmplan-object-card p{font-size:12px;margin-bottom:5px}#tmplan .tmplan-object-card .tmplan-toolbar{gap:8px;margin-top:7px}#tmplan .tmplan-object-card button{min-height:44px;font-size:12px;padding:8px}#tmplan .tmplan-object-editor{background:#f4f8f5;padding:14px;border:1px solid #baccc0;border-radius:10px;margin-top:14px}#tmplan .tmplan-object-editor .tmplan-field{margin-bottom:12px}#tmplan .tmplan-object-editor .tmplan-inline{flex-wrap:wrap}#tmplan .tmplan-method-mini{background:#eef5f2}
#tmplan .tmplan-plan-wrap{background:#f6f9f7;border:1px solid #dde7e0;border-radius:12px;overflow:hidden}#tmplan #tmplan-plan{width:100%;display:block;aspect-ratio:1;max-height:540px;touch-action:pan-y}#tmplan #tmplan-plan [data-drag=bed]{cursor:pointer;touch-action:pan-y}#tmplan #tmplan-plan[data-move-mode=true] [data-drag=bed]{touch-action:none;cursor:grab}#tmplan #tmplan-plan[data-dragging=true]{touch-action:none;cursor:grabbing}#tmplan #tmplan-plan [data-drag=bed]:focus{outline:none}#tmplan #tmplan-plan [data-drag=bed]:focus .tmplan-bed-outline{stroke:#b84c32;stroke-width:22}#tmplan .tmplan-size-label{font-size:15px;font-weight:750;color:#295e57;white-space:nowrap}#tmplan .tmplan-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 0}#tmplan .tmplan-toolbar button{flex:1;min-width:100px}#tmplan .tmplan-history{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;border-top:1px solid #dce7df;padding-top:16px}#tmplan .tmplan-history>button{font-size:12px}#tmplan .tmplan-step-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px}#tmplan .tmplan-step-row select{max-width:110px}#tmplan .tmplan-direction-pad{display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:48px 48px;justify-content:center;gap:7px;margin:16px 0}#tmplan .tmplan-direction-pad button{font-size:24px;padding:0;min-width:48px;min-height:48px}#tmplan [data-nudge=up]{grid-column:2}#tmplan [data-nudge=left]{grid-column:1;grid-row:2}#tmplan [data-nudge=down]{grid-column:2;grid-row:2}#tmplan [data-nudge=right]{grid-column:3;grid-row:2}#tmplan .tmplan-inline{display:flex;align-items:center;gap:8px}#tmplan .tmplan-inline select{flex:1;min-width:0}#tmplan .tmplan-inline button{flex:none}
#tmplan .tmplan-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px}#tmplan .tmplan-metrics>div{background:#eef5f2;border-radius:10px;padding:15px 10px;text-align:center}#tmplan .tmplan-metrics dt{font-size:12px;color:#486555}#tmplan .tmplan-metrics dd{margin:5px 0 0;font-size:24px;font-weight:800;color:#295e57;line-height:1.3}#tmplan .tmplan-metrics dd span{font-size:13px;font-weight:500}#tmplan .tmplan-diagnostics{display:grid;gap:9px}#tmplan .tmplan-diagnostic{border:1px solid #dce7df;border-left:4px solid #5b7f6a;border-radius:8px;padding:13px}#tmplan .tmplan-diagnostic h3{font-size:13px;margin-bottom:5px}#tmplan .tmplan-diagnostic p{font-size:14px;margin:0}#tmplan .tmplan-diagnostic[data-tone=warning]{background:#fff4ed;border-left-color:#ad4a2d}#tmplan .tmplan-diagnostic[data-tone=unknown]{background:#f4f6f7;border-left-color:#687a82}#tmplan #tmplan-section svg{width:100%;display:block;max-height:340px}#tmplan #tmplan-section-panel{margin-top:22px}
#tmplan .tmplan-compare-section .tmplan-primary{width:100%;min-height:52px;font-size:16px}#tmplan .tmplan-check{display:flex;align-items:center;gap:10px;min-height:46px;font-size:13px;font-weight:500;margin:10px 0}#tmplan .tmplan-assumptions{font-size:13px;padding:12px;background:#eef5f2;border-radius:8px;margin-top:20px}#tmplan .tmplan-comparison-switch{display:flex;gap:8px;margin:18px 0}#tmplan .tmplan-comparison-switch button{flex:1;min-height:48px}#tmplan .tmplan-compare-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#tmplan .tmplan-comparison-card{min-width:0;border:1px solid #d4e0d7;border-radius:11px;padding:12px}#tmplan .tmplan-comparison-card.active{border:2px solid #295e57;padding:11px}#tmplan .tmplan-comparison-card h3{font-size:16px;text-align:center}#tmplan .tmplan-comparison-card svg{width:100%;display:block;aspect-ratio:1}#tmplan .tmplan-comparison-card p{font-size:12px;margin:8px 0 0;text-align:center}#tmplan .tmplan-compare-summary{display:grid;gap:8px;margin-top:16px}#tmplan .tmplan-summary-row{display:grid;grid-template-columns:82px 1fr;gap:10px;border:1px solid #dce7df;border-radius:8px;padding:12px;min-width:0}#tmplan .tmplan-summary-row strong{font-size:14px}#tmplan .tmplan-summary-row p{font-size:12px;margin:0;overflow-wrap:anywhere}#tmplan .tmplan-example-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}#tmplan .tmplan-example-cards article{border:1px solid #d5e2d8;background:#fff;border-radius:13px;padding:22px;display:flex;flex-direction:column;min-width:0}#tmplan .tmplan-example-cards h3{margin-top:10px}#tmplan .tmplan-example-cards p{font-size:14px}#tmplan .tmplan-example-cards button{margin-top:auto}#tmplan .tmplan-example-number{font-size:14px;font-weight:800;color:#a8462f}#tmplan .tmplan-examples{margin:38px 0 24px}#tmplan .tmplan-demo-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}#tmplan .tmplan-demo-plans figure{margin:0;min-width:0}#tmplan .tmplan-demo-plans svg{width:100%;display:block}#tmplan .tmplan-demo-plans figcaption{font-size:13px}#tmplan .tmplan-review-tools p{font-size:13px}#tmplan .tmplan-footer{padding:20px 0 0;border-top:1px solid #d5e2d8;margin-top:38px;color:#476355}#tmplan .tmplan-footer p{font-size:12px}
.tmplan-modal{position:fixed;inset:0;z-index:1000;background:rgba(24,43,35,.55);display:flex;align-items:center;justify-content:center;padding:20px;font:16px/1.6 system-ui,sans-serif;color:#2f3e46}.tmplan-modal-card{background:#fff;border-radius:15px;padding:25px;max-width:460px;width:100%;box-shadow:0 20px 60px #132c2833}.tmplan-modal h2{font-size:22px;line-height:1.3;margin:0 0 14px}.tmplan-modal .tmplan-toolbar{display:flex;gap:12px;margin-top:20px}.tmplan-modal button{flex:1}.tmplan-sr-only,.tmplan-skip{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tmplan-skip:focus{position:fixed;top:10px;left:10px;width:auto;height:auto;padding:12px;clip:auto;background:#fff;z-index:2000}
@media(max-width:1000px){#tmplan .tmplan-workspace{grid-template-columns:minmax(0,1fr) 285px;gap:18px}#tmplan .tmplan-panel{padding:20px}#tmplan .tmplan-main-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#tmplan .tmplan-compare-cards{grid-template-columns:1fr}#tmplan .tmplan-comparison-card svg{max-height:340px}#tmplan .tmplan-example-cards{gap:12px}}
@media(max-width:760px){#tmplan{padding:18px 16px 30px}#tmplan .tmplan-workspace{grid-template-columns:1fr}#tmplan .tmplan-tools-column{margin-top:0}#tmplan .tmplan-header{margin-bottom:24px;align-items:flex-start}#tmplan .tmplan-brand{font-size:21px}#tmplan .tmplan-header .tmplan-badge{max-width:145px;font-size:10px}#tmplan h2{font-size:21px}#tmplan .tmplan-panel{padding:18px;margin-bottom:18px}#tmplan .tmplan-criteria .tmplan-section-heading{align-items:flex-start;flex-wrap:wrap}#tmplan .tmplan-criteria h2{font-size:20px}#tmplan .tmplan-metrics dd{font-size:23px}#tmplan .tmplan-example-cards{grid-template-columns:1fr}#tmplan .tmplan-example-cards article{padding:20px}#tmplan .tmplan-example-cards button{min-height:50px}#tmplan .tmplan-demo-plans{grid-template-columns:1fr}#tmplan .tmplan-toolbar button{min-height:50px}#tmplan .tmplan-compare-section .tmplan-primary{font-size:15px}#tmplan .tmplan-comparison-switch button{min-height:50px}#tmplan .tmplan-summary-row{grid-template-columns:78px 1fr}#tmplan #tmplan-plan{max-height:430px}}
@media(max-width:380px){#tmplan{padding:15px 12px}#tmplan .tmplan-panel{padding:15px;border-radius:12px}#tmplan .tmplan-main-fields{column-gap:10px}#tmplan .tmplan-main-fields .tmplan-field>label{font-size:12px}#tmplan .tmplan-fields{column-gap:10px}#tmplan .tmplan-toolbar{gap:8px}#tmplan .tmplan-toolbar button{min-width:110px}#tmplan .tmplan-metrics{gap:6px}#tmplan .tmplan-metrics>div{padding:12px 5px}#tmplan .tmplan-metrics dd{font-size:21px}#tmplan .tmplan-size-label{font-size:13px}#tmplan .tmplan-section-heading{gap:8px}#tmplan .tmplan-inline{flex-wrap:wrap}#tmplan .tmplan-inline button{width:100%}#tmplan .tmplan-history{display:grid;grid-template-columns:1fr}#tmplan .tmplan-shape-options button{font-size:12px}#tmplan .tmplan-comparison-switch button{padding:10px 6px;font-size:14px}}
@media(prefers-reduced-motion:reduce){#tmplan *,#tmplan *::before,#tmplan *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* v0.3.1: same layout, contextual manipulation and scene annotations. */
#tmplan .tmplan-object-editor{border:2px solid #295e57;border-top:5px solid #b84c32;background:#f4f8f5;padding:18px;border-radius:10px;scroll-margin-block:20px}
#tmplan .tmplan-pending-label{font-size:13px;font-weight:700;border-left:3px dashed #b84c32;padding-left:10px}
#tmplan .tmplan-plan-object{cursor:pointer;touch-action:pan-y}
#tmplan .tmplan-plan-object.selected>polygon,#tmplan .tmplan-plan-object.selected>path:first-child{stroke-width:24;stroke-dasharray:35 15}
#tmplan .tmplan-plan-object:focus>polygon,#tmplan .tmplan-plan-object:focus>path:first-child,#tmplan .tmplan-plan-object.highlighted>polygon,#tmplan .tmplan-plan-object.highlighted>path:first-child{stroke:#b84c32;stroke-width:30;stroke-dasharray:20 15}
#tmplan #tmplan-plan[data-move-mode=true] .tmplan-plan-object{touch-action:none;cursor:grab}
#tmplan :is(#tmplan-object-controls,#tmplan-window-context) .tmplan-toolbar button{min-width:140px}
#tmplan .tmplan-summary-row{grid-template-columns:80px minmax(0,1fr)}
#tmplan .tmplan-summary-row p{font-size:14px;line-height:1.6}
#tmplan .tmplan-dimension{user-select:none}
#tmplan [id$="editor-title"],#tmplan #tmplan-plan-panel{scroll-margin-block:18px}
#tmplan .tmplan-direction-pad [data-object-nudge=up]{grid-column:2}
#tmplan .tmplan-direction-pad [data-object-nudge=left]{grid-column:1;grid-row:2}
#tmplan .tmplan-direction-pad [data-object-nudge=down]{grid-column:2;grid-row:2}
#tmplan .tmplan-direction-pad [data-object-nudge=right]{grid-column:3;grid-row:2}
@media(max-width:760px){#tmplan .tmplan-summary-row{grid-template-columns:1fr;gap:6px}#tmplan .tmplan-object-editor{padding:14px}#tmplan :is(#tmplan-object-controls,#tmplan-window-context) .tmplan-toolbar button{min-width:110px}}
/* v0.3.3: direct desktop gestures, contextual controls and parameter illustrations. */
#tmplan #tmplan-plan [data-drag=bed],#tmplan .tmplan-plan-object{cursor:grab}

#tmplan .tmplan-resize-handle{touch-action:none;cursor:nwse-resize}
#tmplan .tmplan-resize-handle:focus rect{stroke:#295e57;stroke-width:30}
#tmplan #tmplan-plan[data-dragging=true] [data-object-id],#tmplan #tmplan-plan[data-dragging=true] [data-drag=bed]{cursor:grabbing}
#tmplan .tmplan-height-diagrams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#tmplan .tmplan-height-diagrams figure,#tmplan .tmplan-height-help{margin:10px 0;min-width:0}
#tmplan .tmplan-height-diagrams svg,#tmplan .tmplan-height-help svg{display:block;width:100%;height:auto;max-height:280px}
#tmplan .tmplan-height-diagrams figcaption{font-size:14px;line-height:1.6}
#tmplan #tmplan-section svg{max-height:280px}
#tmplan #tmplan-placement-note{font-size:14px;overflow-wrap:anywhere}
#tmplan .tmplan-overlap-details{padding:6px 12px;font-size:14px;overflow-wrap:anywhere}
#tmplan .tmplan-overlap-details>summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-height:44px;margin:0;padding:4px 0;list-style:none;cursor:pointer;color:inherit}
#tmplan .tmplan-overlap-details>summary::-webkit-details-marker{display:none}
#tmplan .tmplan-overlap-details>summary::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex:none;margin:0 3px 4px 0}
#tmplan .tmplan-overlap-details[open]>summary::after{transform:rotate(225deg);margin-bottom:0}
#tmplan .tmplan-overlap-details>summary:focus-visible{outline:3px solid #b84c32;outline-offset:3px;border-radius:4px}
#tmplan #tmplan-overlap-toggle-label{margin-left:auto;text-decoration:underline;font-weight:500}
#tmplan #tmplan-overlap-list{margin:6px 0 4px;padding-left:20px}
#tmplan #tmplan-overlap-list>li{margin:3px 0;line-height:1.45}
@media(max-width:760px){#tmplan .tmplan-height-diagrams{grid-template-columns:1fr}#tmplan :is(#tmplan-object-controls,#tmplan-window-context) .tmplan-toolbar button{min-width:115px}}

/* v0.3.5: aligned radius inputs, fixed cm unit independent of room unit. */
#tmplan .tmplan-radius-field{display:grid;grid-template-rows:minmax(2.8em,auto) 46px auto;align-content:start;row-gap:5px}
#tmplan .tmplan-radius-field>label{display:flex;align-items:flex-end;line-height:1.35;margin:0;min-width:0}
#tmplan .tmplan-radius-field .tmplan-with-unit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}
#tmplan .tmplan-radius-field input{height:46px;width:100%;min-width:0}
#tmplan .tmplan-radius-field .tmplan-field-error{margin-top:0;overflow-wrap:anywhere}

#tmplan .tmplan-shape-options{grid-template-columns:repeat(2,minmax(0,1fr))}
#tmplan .tmplan-round-option{margin-top:18px;padding-top:16px;border-top:1px solid #dce7df}
#tmplan .tmplan-round-option .tmplan-check{display:flex;align-items:center;gap:9px;line-height:1.4;font-size:14px}

#tmplan .tmplan-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:500px){#tmplan .tmplan-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

#tmplan .tmplan-room-area{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 14px;margin:12px 0 0;border-radius:9px;background:#eef5f2}
#tmplan .tmplan-room-area output{font-weight:800;font-size:20px;color:#295e57;white-space:nowrap}
#tmplan .tmplan-room-area small{flex:1;min-width:180px;margin:0}
#tmplan .tmplan-height-zone-legend{display:flex;align-items:flex-start;gap:10px;margin:12px 0;padding:12px;background:#fff5e8;border-radius:9px}
#tmplan .tmplan-height-zone-legend p{margin:0;font-size:13px;color:#70400e}
#tmplan .tmplan-height-zone-swatch{display:block;width:30px;height:26px;flex:none;border:1px solid #b84c32;background:repeating-linear-gradient(45deg,#fff2df 0 6px,#d1814b 6px 8px)}

#tmplan .tmplan-vertical-results{padding-left:20px;margin:6px 0 12px;font-size:14px}#tmplan .tmplan-vertical-results li{margin-bottom:12px;overflow-wrap:anywhere}

#tmplan .tmplan-arrow-controls,#tmplan #tmplan-height-limits{margin-top:14px;padding-top:8px;border-top:1px solid #dce7df}

/* Secondary move control; touch target retained even when visually discreet. */
#tmplan .tmplan-toolbar .tmplan-move-toggle{flex:0 1 auto;min-width:0;min-height:44px;padding:8px 10px;border-color:transparent;background:transparent;box-shadow:none;color:#4d6259;font-size:13px;font-weight:550;text-decoration:underline;text-underline-offset:3px}
#tmplan .tmplan-toolbar .tmplan-move-toggle[aria-pressed=true]{border-color:#70897d;background:#e7f0eb;color:#295e57;text-decoration:none}

#tmplan .tmplan-share-controls{margin-top:18px;padding-top:14px;border-top:1px solid #dce7df}#tmplan #tmplan-share-status{font-size:14px;overflow-wrap:anywhere}#tmplan #tmplan-share-url{font-size:16px;min-height:46px}#tmplan #tmplan-share-panel .tmplan-toolbar button{flex:0 1 auto}

/* C.1: secondary actions and optional precision, without changing plan gestures. */
#tmplan .tmplan-share-controls{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px;margin-top:18px;padding-top:18px}
#tmplan .tmplan-share-controls>button{flex:0 1 auto;min-height:48px;margin:0}
#tmplan .tmplan-history{justify-content:flex-start;gap:12px 24px}
#tmplan .tmplan-history>button{min-height:44px;font-size:13px}
#tmplan .tmplan-precision-controls{margin-top:10px}
#tmplan .tmplan-precision-controls .tmplan-arrow-controls{margin-top:0;padding-top:0;border-top:0}
#tmplan .tmplan-precision-controls summary{font-size:13px;font-weight:550;color:#4d6259}
@media(max-width:760px){#tmplan .tmplan-share-controls>button{flex:1 1 200px;min-height:50px}#tmplan .tmplan-history{align-items:flex-start}}
/* v0.4.2: quiet Undo, contextual editing, bounded desktop preview. */
#tmplan .tmplan-plan-actions{display:flex;justify-content:flex-start;margin-top:7px}
#tmplan .tmplan-undo{display:inline-flex;align-items:center;gap:7px;min-width:44px;min-height:44px;padding:8px 10px;border-color:transparent;background:transparent;box-shadow:none;font-size:13px;font-weight:550}
#tmplan .tmplan-undo:hover:enabled{background:#e7f0eb;border-color:#c9d8ce}
#tmplan .tmplan-undo:disabled{background:transparent;border-color:transparent;color:#687a71;opacity:1}
#tmplan .tmplan-undo svg{flex:none;display:block}
#tmplan .tmplan-history{margin-top:10px;padding-top:10px;border-top:0}
#tmplan #tmplan-object-editor{border:2px solid #295e57;border-top:5px solid #b84c32;box-shadow:0 3px 12px #295e5710;scroll-margin-block:20px}
#tmplan .tmplan-editor-heading{background:#f4f8f5;padding:4px 0 14px;margin-bottom:14px;border-bottom:1px solid #b6cbbc;scroll-margin-block:18px}
#tmplan .tmplan-editor-heading h3{font-size:19px}
#tmplan .tmplan-editor-actions{display:flex;gap:9px;flex-wrap:wrap}
#tmplan .tmplan-editor-actions>button{flex:1 1 180px;min-height:48px;font-size:14px}
#tmplan .tmplan-editor-bottom-actions{padding-top:14px;border-top:1px solid #c9d9ce}
#tmplan .tmplan-editor-bottom-actions>button{flex:1 1 170px}
#tmplan .tmplan-object-card.is-editing{border-left:4px solid #b84c32;background:#fff7f1}
#tmplan .tmplan-editing-label{font-weight:700;color:#91391f}
#tmplan .tmplan-editor-preview-host{position:sticky;top:16px;height:0;z-index:4}
#tmplan .tmplan-editor-live-preview{position:absolute;top:0;left:0;width:100%;background:#fff;border:2px solid #295e57;border-radius:12px;padding:14px;box-shadow:0 4px 18px #183c3520}
#tmplan .tmplan-editor-live-preview>p:first-child{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin-bottom:6px;flex-wrap:wrap}
#tmplan .tmplan-editor-live-preview>p:first-child span{font-size:12px;color:#91391f}
#tmplan .tmplan-editor-mini-plan svg{display:block;width:100%;height:clamp(180px,31vh,290px)}
#tmplan .tmplan-editor-live-preview .tmplan-help{margin:5px 0;font-size:12px}
#tmplan #tmplan-live-main-plan{min-height:44px;font-size:13px;padding:8px 10px}
.tmplan-preview-modal[hidden]{display:none!important}
.tmplan-preview-modal{position:fixed;inset:0;z-index:1500;background:#182b23a8;display:flex;align-items:center;justify-content:center;padding:16px;font:16px/1.5 system-ui,sans-serif;color:#29463b;overscroll-behavior:contain}
.tmplan-preview-card{width:min(820px,100%);max-height:90vh;max-height:90dvh;overflow:auto;overscroll-behavior:contain;border-radius:14px;padding:18px;background:#fff;box-shadow:0 4px 30px #102b2650}
.tmplan-preview-card .tmplan-section-heading{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;position:sticky;top:-18px;background:#fff;padding:10px 0;z-index:1}
.tmplan-preview-card h2{margin:0;font-size:21px;line-height:1.25}
.tmplan-preview-card button{font:600 14px/1.4 system-ui,sans-serif;min-height:48px;padding:10px 14px;background:#fff;color:#295e57;border:1px solid #70897d;border-radius:8px;cursor:pointer}
.tmplan-preview-card button:focus-visible{outline:3px solid #295e57;outline-offset:3px}
.tmplan-preview-card svg{display:block;width:100%;height:min(52vh,440px);height:min(52dvh,440px)}
.tmplan-preview-card p{margin:12px 0;font-size:14px;overflow-wrap:anywhere}
@media(min-width:1180px) and (min-height:760px) and (hover:hover) and (pointer:fine){#tmplan.tmplan-editing-object .tmplan-visual-column{align-self:stretch}#tmplan.tmplan-sticky-editor-heading .tmplan-editor-heading{position:sticky;top:12px;z-index:6}}
#tmplan #tmplan-object-editor input,#tmplan #tmplan-object-editor select{scroll-margin-block-start:var(--tmplan-editor-head-offset,20px)}
@media(max-width:1179px),(max-height:759px){#tmplan .tmplan-editor-preview-host{display:none}#tmplan .tmplan-editor-heading{position:static}}

/* The editing overview is intentionally read-only; direct gestures stay on the main plan. */
.tmplan-editor-mini-plan svg{pointer-events:none}
/* v0.4.3: a single editing workspace, with one form and the real interactive plan. */
#tmplan .tmplan-edit-sheet[hidden]{display:none!important}
#tmplan .tmplan-edit-sheet{position:fixed;left:0;right:0;top:var(--tmplan-edit-top,0);height:var(--tmplan-edit-height,100dvh);z-index:900;display:flex;align-items:center;justify-content:center;padding:16px;background:#182b23a8;overscroll-behavior:contain}
#tmplan .tmplan-edit-workspace{width:min(1180px,100%);height:100%;max-height:960px;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;border:1px solid #a9c0b2;border-radius:14px;box-shadow:0 6px 28px #182b2340;overflow:hidden}
#tmplan #tmplan-edit-sheet-heading{padding:14px 20px;border-bottom:1px solid #d7e3dc}
#tmplan .tmplan-edit-sheet .tmplan-editor-heading{position:static;margin:0;padding:0;background:transparent;border:0}
#tmplan .tmplan-edit-sheet .tmplan-editor-heading h3{font-size:22px;margin:0 0 4px}
#tmplan .tmplan-edit-sheet .tmplan-pending-label{margin:0;font-size:13px}
#tmplan .tmplan-edit-split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);min-height:0}
#tmplan .tmplan-edit-plan-area{min-height:0;padding:16px;display:flex;flex-direction:column;gap:8px;background:#f2f6f3}
#tmplan #tmplan-edit-sheet-plan{flex:1;min-height:0;display:flex}
#tmplan .tmplan-edit-sheet .tmplan-plan-wrap{width:100%;min-height:0;display:flex}
#tmplan .tmplan-edit-sheet #tmplan-plan{height:100%;max-height:none;aspect-ratio:auto;min-height:0}
#tmplan .tmplan-edit-sheet .tmplan-toolbar{margin:0;gap:10px;align-items:center}
#tmplan .tmplan-edit-sheet .tmplan-toolbar>button{flex:0 1 auto;min-width:0;min-height:44px;font-size:13px}
#tmplan .tmplan-edit-plan-area>.tmplan-help{margin:0;font-size:12px}
#tmplan .tmplan-edit-fields{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:16px 18px;scroll-padding-block:16px}
#tmplan .tmplan-edit-sheet #tmplan-object-editor{margin:0;padding:0;border:0;box-shadow:none;background:transparent}
#tmplan .tmplan-edit-checks{margin:0 0 14px;padding:0 0 10px;border-bottom:1px solid #d7e3dc}
#tmplan .tmplan-edit-checks summary{font-size:13px;min-height:44px}
#tmplan #tmplan-edit-sheet-status{font-size:13px;margin:0;overflow-wrap:anywhere}
#tmplan #tmplan-edit-sheet-actions{padding:12px 18px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #d7e3dc;background:#fff}
#tmplan .tmplan-edit-sheet .tmplan-editor-bottom-actions{display:contents;border:0;padding:0;margin:0}
#tmplan #tmplan-edit-sheet-actions button{min-height:46px;font-size:14px;flex:0 1 auto}
#tmplan #tmplan-edit-sheet-actions .tmplan-undo{margin-left:auto;font-size:12px}
@media(max-width:900px){#tmplan .tmplan-edit-sheet{padding:0}#tmplan .tmplan-edit-workspace{border:0;border-radius:0;max-height:none}#tmplan #tmplan-edit-sheet-heading{padding:10px 14px}#tmplan .tmplan-edit-sheet .tmplan-editor-heading h3{font-size:18px}#tmplan .tmplan-edit-plan-area{padding:6px 12px;gap:4px}#tmplan .tmplan-edit-plan-area>.tmplan-help{display:none}#tmplan .tmplan-edit-sheet .tmplan-toolbar>button{font-size:12px;padding:6px 8px;min-height:44px}#tmplan .tmplan-edit-fields{padding:10px 14px}#tmplan #tmplan-edit-sheet-actions{padding:8px 12px;gap:6px 10px}#tmplan #tmplan-edit-sheet-actions button{font-size:13px;padding:9px 10px}#tmplan #tmplan-edit-sheet-actions .tmplan-undo{font-size:12px;min-height:44px}#tmplan .tmplan-edit-sheet .tmplan-edit-checks{margin-bottom:8px;padding-bottom:6px}}
@media(max-height:520px){#tmplan .tmplan-edit-sheet{padding:0}#tmplan #tmplan-edit-sheet-heading{padding:6px 12px}#tmplan .tmplan-edit-sheet .tmplan-editor-heading h3{font-size:16px}#tmplan .tmplan-edit-sheet .tmplan-pending-label{font-size:11px}#tmplan .tmplan-edit-plan-area>.tmplan-help{display:none}#tmplan #tmplan-edit-sheet-actions{padding:5px 10px}#tmplan .tmplan-edit-sheet #tmplan-undo{max-width:190px}#tmplan .tmplan-edit-split{grid-template-columns:minmax(120px,.85fr) minmax(170px,1.15fr);grid-template-rows:minmax(0,1fr)}}

/* C3: technical actions green; orange remains the brand/marketing accent. */
#tmplan #tmplan-object-save,#tmplan #tmplan-export{background:#295e57;border-color:#295e57;color:#fff}
#tmplan #tmplan-object-save:hover:enabled,#tmplan #tmplan-export:hover:enabled{background:#214c46;border-color:#214c46;color:#fff}
#tmplan #tmplan-object-save:disabled,#tmplan #tmplan-export:disabled{background:#e1e8e3;border-color:#8a9c91;color:#4d6259;opacity:1}
#tmplan .tmplan-share-controls{gap:12px}
#tmplan .tmplan-share-controls>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;font-size:14px;padding:10px 14px}
#tmplan #tmplan-share-show{background:#fff;color:#295e57;border-color:#295e57}
#tmplan #tmplan-share-show:hover:enabled{background:#edf3ef;color:#214c46;border-color:#214c46}
#tmplan .tmplan-share-controls>button svg{flex:none}
#tmplan .tmplan-edit-sheet .tmplan-pending-label{color:#4d6259;font-weight:400;border:0;padding:0}
#tmplan #tmplan-object-save:focus-visible,#tmplan #tmplan-export:focus-visible,#tmplan #tmplan-share-show:focus-visible{outline:3px solid #295e57;outline-offset:3px;box-shadow:0 0 0 3px #fff}
@media(max-width:760px){#tmplan .tmplan-share-controls>button{min-height:48px;flex:1 1 190px}}

/* v0.4.4: save actions follow inputs in the independently scrolling field pane. */
#tmplan .tmplan-edit-workspace{grid-template-rows:auto minmax(0,1fr)}
#tmplan #tmplan-edit-sheet-actions{margin:16px 0;padding:14px 0 0;gap:12px;position:static}
#tmplan #tmplan-edit-sheet-actions .tmplan-undo{margin-left:0}
#tmplan #tmplan-object-save{background:#b84c32;border-color:#b84c32;color:#fff}
#tmplan #tmplan-object-save:hover:enabled{background:#9d3f28;border-color:#9d3f28;color:#fff}
#tmplan #tmplan-object-save:disabled{background:#e1e8e3;border-color:#8a9c91;color:#4d6259}

/* v0.4.5: direct close control, same draft abandonment as existing Cancel. */
#tmplan #tmplan-edit-sheet-heading{position:relative;padding-right:70px}
#tmplan #tmplan-edit-sheet-close{position:absolute;right:10px;top:8px;display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;background:#fff;color:#295e57;border:1px solid #70897d;border-radius:8px}
#tmplan #tmplan-edit-sheet-close:hover{background:#e7f0eb}
#tmplan #tmplan-edit-sheet-close svg{display:block;flex:none}

/* v0.5.3: responsive options and one shared editor with two views. */
#tmplan .tmplan-touch-help{display:none;margin:8px 0 0;font-size:13px;line-height:1.5}
#tmplan .tmplan-move-toggle svg{flex:none;vertical-align:middle;margin-right:7px}
#tmplan .tmplan-advanced-compact{margin:0 0 24px}
#tmplan #tmplan-advanced-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:52px;padding:2px 0}
#tmplan #tmplan-advanced-summary::-webkit-details-marker{display:none}
#tmplan #tmplan-advanced-summary::after{content:'';width:10px;height:10px;flex:0 0 10px;border-right:2px solid #295e57;border-bottom:2px solid #295e57;transform:rotate(45deg);margin:0 5px 5px 0}
#tmplan #tmplan-advanced-accordion[open]>summary::after{transform:rotate(225deg);margin-bottom:-5px}
#tmplan #tmplan-advanced-summary h2{margin:0;font-size:21px}
#tmplan #tmplan-advanced-accordion>summary:focus-visible{outline:3px solid #295e57;outline-offset:4px}
#tmplan .tmplan-editor-tabs{display:flex;gap:8px;padding:8px 12px;border-bottom:1px solid #d7e3dc;background:#eef5f2}
#tmplan .tmplan-editor-tabs button{flex:1;min-height:48px;min-width:0;padding:8px;font-size:14px;border:2px solid #70897d;background:#fff;color:#295e57}
#tmplan .tmplan-editor-tabs button[aria-selected=true]{background:#295e57;border-color:#295e57;color:#fff}
#tmplan .tmplan-editor-compact .tmplan-edit-workspace{grid-template-rows:auto auto minmax(0,1fr) auto}
#tmplan .tmplan-editor-compact .tmplan-edit-split,
#tmplan .tmplan-editor-compact .tmplan-edit-fields,
#tmplan .tmplan-editor-compact #tmplan-edit-sheet-fields,
#tmplan .tmplan-editor-compact #tmplan-object-editor{display:contents}
#tmplan .tmplan-editor-compact #tmplan-editor-plan-view{grid-row:3;grid-column:1;min-height:0;overflow:hidden;padding:8px 12px;gap:6px}
#tmplan .tmplan-editor-compact #tmplan-editor-parameters-view{grid-row:3;grid-column:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px;scroll-padding-block:14px}
#tmplan .tmplan-editor-compact #tmplan-edit-sheet-actions{grid-row:4;grid-column:1;margin:0;padding:8px 12px;min-width:0}
#tmplan .tmplan-editor-compact .tmplan-edit-plan-area>.tmplan-help{display:none}
#tmplan .tmplan-editor-compact .tmplan-touch-help{display:block;font-size:12px;margin:0}
#tmplan .tmplan-editor-compact #tmplan-edit-sheet-plan{flex:1 1 0;min-height:0;min-width:0}
#tmplan .tmplan-editor-compact #tmplan-plan{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto}
#tmplan .tmplan-editor-compact #tmplan-edit-sheet-plan-tools{flex:none;gap:6px}
#tmplan .tmplan-editor-compact #tmplan-object-move{flex:1 1 100%;width:100%;min-height:48px;font-size:14px}
#tmplan .tmplan-editor-compact #tmplan-edit-sheet-actions .tmplan-undo{min-height:44px;margin-left:0;font-size:12px}
@media(max-width:1023px),(pointer:coarse){
 #tmplan .tmplan-toolbar .tmplan-move-toggle{display:inline-flex;align-items:center;justify-content:center;gap:0;min-height:48px;padding:12px 16px;border:2px solid #B84C32;background:#B84C32;color:#fff;font-size:15px;font-weight:700;text-decoration:none}
 #tmplan .tmplan-toolbar .tmplan-move-toggle[aria-pressed=true]{background:#295E57;border-color:#295E57;color:#fff;box-shadow:0 0 0 2px #fff,0 0 0 4px #295E57}
 #tmplan .tmplan-toolbar .tmplan-move-toggle:focus-visible{outline:3px solid #295E57;outline-offset:4px}
 #tmplan .tmplan-touch-help{display:block}
}
#tmplan .tmplan-editor-compact.tmplan-editor-short #tmplan-edit-sheet-heading{padding:6px 12px;min-height:44px}
#tmplan .tmplan-editor-compact.tmplan-editor-short .tmplan-pending-label{display:none}
#tmplan .tmplan-editor-compact.tmplan-editor-short .tmplan-editor-heading h3{font-size:16px;padding-right:32px;margin:0}
#tmplan .tmplan-editor-compact.tmplan-editor-short .tmplan-editor-tabs{padding:4px 8px;gap:6px}
#tmplan .tmplan-editor-compact.tmplan-editor-short .tmplan-editor-tabs button{min-height:44px;padding:4px;font-size:13px}
#tmplan .tmplan-editor-compact.tmplan-editor-short #tmplan-edit-sheet-actions{padding:4px 8px;gap:4px 8px}
#tmplan .tmplan-editor-compact.tmplan-editor-short #tmplan-edit-sheet-actions button{min-height:44px;padding:6px 8px;font-size:12px}

/* v0.5.5: desktop options disclosure; mobile accordion remains unchanged. */
#tmplan .tmplan-customize-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;margin:0 0 18px}
#tmplan #tmplan-customize-toggle{display:inline-flex;align-items:center;gap:10px;min-height:46px;text-align:left}
#tmplan #tmplan-customize-toggle svg{flex:none}#tmplan #tmplan-customize-summary{margin:0}
@media(min-width:1024px){#tmplan .tmplan-workspace.tmplan-options-collapsed{grid-template-columns:minmax(0,1fr)}}

/* E.2: compact desktop introduction; size limits apply only to main plan panel. */
@media(min-width:1024px){
 #tmplan{padding-top:14px;padding-bottom:24px}
 #tmplan .tmplan-header{display:none}
 #tmplan .tmplan-intro{margin-bottom:14px}
 #tmplan .tmplan-intro h1{font-size:32px;margin-bottom:8px}
 #tmplan .tmplan-intro p{margin-bottom:6px}
 #tmplan .tmplan-intro .tmplan-eyebrow{margin-bottom:5px}
 #tmplan .tmplan-proto-note{padding:6px 12px;font-size:12px;line-height:1.45}
 #tmplan #tmplan-plan-panel #tmplan-plan-wrap{max-width:980px;margin-inline:auto}
 #tmplan #tmplan-plan-panel #tmplan-plan{height:600px;max-height:600px;aspect-ratio:auto}
}

/* v0.5.7: visible instruction and compact criteria, without smaller touch targets. */
#tmplan #tmplan-plan-help{font-size:14px;line-height:1.5;color:#234c46;background:#eef5f2;border-left:3px solid #295e57;border-radius:0 8px 8px 0;padding:9px 12px;margin:0 0 12px}
#tmplan #tmplan-plan-size{white-space:normal;text-align:right;max-width:48%;font-size:14px}
#tmplan #tmplan-criteria{padding:16px 20px;margin-bottom:14px}
#tmplan #tmplan-criteria>.tmplan-section-heading{margin-bottom:10px}
#tmplan #tmplan-criteria .tmplan-main-fields{row-gap:8px}
#tmplan #tmplan-criteria .tmplan-main-fields>.tmplan-field{margin-bottom:4px}
#tmplan #tmplan-roomWidth,#tmplan #tmplan-roomDepth{max-width:132px}
#tmplan #tmplan-room-help{margin-bottom:6px;font-size:12px;line-height:1.45}
#tmplan #tmplan-criteria .tmplan-room-area{padding:6px 10px;margin-top:6px;gap:6px 12px}
@media(max-width:380px){#tmplan #tmplan-criteria{padding:14px}#tmplan #tmplan-plan-size{font-size:12px}}


/* v0.7.4 — concise entry hierarchy; main inputs before secondary refinements. */
#tmplan #tmplan-criteria{border-color:#cbded6;border-top:3px solid #295e57;box-shadow:0 5px 20px rgba(41,94,87,.05)}
#tmplan .tmplan-entry-title{display:flex;align-items:center;min-width:0}
#tmplan .tmplan-entry-title h2{margin:0;color:#295e57;font-size:21px}
#tmplan #tmplan-criteria .tmplan-main-fields{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:22px;margin-top:10px}
#tmplan .tmplan-entry-group{min-width:0;margin:0;padding:8px 0 0;border:0;border-radius:0;background:transparent}
#tmplan .tmplan-entry-group legend{width:auto;float:none;margin:0;padding:0;font-size:13px;line-height:1.4;font-weight:700;color:#48665a}
#tmplan .tmplan-entry-bed{border-left:1px solid #dce7df;padding-left:22px}
#tmplan .tmplan-entry-fields{display:grid;grid-template-columns:repeat(2,minmax(0,132px));gap:16px;align-items:start}
#tmplan .tmplan-entry-bed .tmplan-entry-fields{grid-template-columns:minmax(0,1fr);gap:0}
#tmplan .tmplan-entry-fields .tmplan-field{min-width:0;margin-bottom:0}
#tmplan .tmplan-entry-fields label,#tmplan .tmplan-entry-fields .tmplan-field-label{font-size:12px;line-height:1.4}
#tmplan .tmplan-entry-room input{font-size:20px;font-weight:650;color:#295e57}
#tmplan .tmplan-entry-fields small{font-size:12px;line-height:1.4}
#tmplan .tmplan-entry-bed .tmplan-frame-line{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin-top:8px;padding-top:7px;border-top:1px solid #e2eae5}
#tmplan .tmplan-frame-line .tmplan-field-label{margin:0;font-weight:500;color:#586a61}
#tmplan .tmplan-frame-line .tmplan-value{font-size:16px;line-height:1.4;margin:0;min-height:0}
#tmplan .tmplan-frame-line .tmplan-link-button{font-size:12px;padding:8px 0;margin-left:auto;min-height:44px}
#tmplan .tmplan-area-details{margin-top:10px;max-width:280px;border-top:1px solid #e2eae5}
#tmplan .tmplan-area-details>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:38px;margin:0;padding:6px 0;font-size:12px;font-weight:500;color:#52695c}
#tmplan .tmplan-area-details>summary::-webkit-details-marker{display:none}
#tmplan .tmplan-area-details>summary::after{content:'';display:block;flex:none;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-left:3px;margin-top:-3px}
#tmplan .tmplan-area-details[open]>summary::after{transform:rotate(225deg);margin-top:3px}
#tmplan .tmplan-area-details #tmplan-room-area{font-size:16px;font-weight:750;color:#295e57;white-space:nowrap;margin-left:auto}
#tmplan .tmplan-area-details p{margin:0 0 6px}
#tmplan .tmplan-area-details #tmplan-room-area-caption{font-size:11px;line-height:1.45;margin:0}
@media(max-width:767px){
 #tmplan #tmplan-criteria .tmplan-main-fields{grid-template-columns:minmax(0,1fr);gap:14px}
 #tmplan .tmplan-entry-title h2{font-size:20px}
 #tmplan #tmplan-criteria>.tmplan-section-heading{align-items:center;flex-wrap:wrap;gap:8px}
 #tmplan .tmplan-entry-bed{border-left:0;border-top:1px solid #dce7df;padding-left:0;padding-top:10px}
 #tmplan .tmplan-entry-fields{gap:12px}
 #tmplan .tmplan-entry-fields select{padding-inline:7px;font-size:16px}
}
/* Unit selector: one decorative chevron, vertically centered and inset. */
#tmplan .tmplan-unit-select,#tmplan .tmplan-bed-select{position:relative;display:inline-flex;align-items:center;max-width:100%}
#tmplan .tmplan-unit-select #tmplan-unit,#tmplan .tmplan-bed-select #tmplan-size{appearance:none;-webkit-appearance:none;background-image:none;padding-right:38px}
#tmplan .tmplan-unit-select>svg,#tmplan .tmplan-bed-select>svg{position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:#295e57}

/* Compact editorial hero, all viewports; no artificial minimum height. */
#tmplan .tmplan-intro{margin:0 0 16px;padding:0;min-height:0}
#tmplan .tmplan-intro .tmplan-eyebrow{margin:0 0 5px}
#tmplan .tmplan-intro h1{font-size:clamp(26px,3vw,32px);line-height:1.2;margin:0 0 8px}
#tmplan .tmplan-intro>p:last-child{margin:0;line-height:1.5;max-width:850px}

/* v0.6.1 — presentation only; alerts, dimensions and interaction states retained. */
#tmplan .tmplan-bed-select{display:flex;width:100%}
#tmplan .tmplan-panel{box-shadow:0 4px 18px rgba(41,94,87,.045)}
#tmplan .tmplan-panel>.tmplan-section-heading h2{color:#295e57}
#tmplan .tmplan-intro h1{color:#295e57;letter-spacing:-.025em}
#tmplan #tmplan-plan-panel{border-color:#bed3c9}
#tmplan #tmplan-plan-wrap{border-radius:12px;background:#f7faf8}
#tmplan #tmplan-plan-size{background:#edf5f0;border:1px solid #d5e5dc;border-radius:9px;padding:6px 10px;color:#295e57;line-height:1.4}
#tmplan .tmplan-metrics>div{border-radius:12px}
#tmplan .tmplan-metrics dd{font-variant-numeric:tabular-nums;letter-spacing:-.025em}
#tmplan .tmplan-comparison-card{box-shadow:0 3px 12px rgba(41,94,87,.035)}
#tmplan .tmplan-comparison-card.active{box-shadow:0 4px 16px rgba(41,94,87,.09)}
#tmplan .tmplan-example-cards article{border-radius:15px;box-shadow:0 4px 16px rgba(41,94,87,.045)}
#tmplan .tmplan-example-cards h3{color:#295e57}
#tmplan input:focus-visible,#tmplan select:focus-visible{box-shadow:0 0 0 5px rgba(41,94,87,.09)}
#tmplan #tmplan-customize-toggle{border-color:#295e57;background:#f4f8f5}
#tmplan #tmplan-customize-toggle:hover{background:#e7f0eb}
#tmplan #tmplan-customize-toggle[aria-expanded=true]{background:#295e57;color:#fff}
#tmplan #tmplan-customize-toggle[aria-expanded=true] svg{color:inherit}

/* One inset chevron for native selects without a dedicated decorative SVG. */
#tmplan select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23295e57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px;padding-right:38px}
#tmplan #tmplan-precise-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 1 auto;min-height:44px;padding:8px 10px;border-color:transparent;background:transparent;font-size:13px;text-decoration:underline;text-underline-offset:3px;box-shadow:none}
#tmplan #tmplan-precise-toggle:hover{background:#edf5f0}
#tmplan #tmplan-precise-toggle::after{content:'';width:7px;height:7px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);margin-top:-4px;flex:none}
#tmplan #tmplan-precise-toggle[aria-expanded=true]::after{transform:rotate(225deg);margin-top:4px}

/* Plan commands: compact adjustments, quiet history, optional keyboard controls. */
#tmplan #tmplan-bed-context,#tmplan #tmplan-plan-panel>.tmplan-history,#tmplan #tmplan-plan-panel>.tmplan-precision-controls{max-width:760px;margin-left:auto;margin-right:auto}
#tmplan #tmplan-bed-context{margin-top:16px}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0;padding:12px;border:1px solid #d9e5de;border-radius:12px;background:#f7faf8}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>button{flex:0 1 auto;width:auto;min-width:0;margin:0}
#tmplan #tmplan-rotate{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 13px;border-color:#295e57;background:#fff;font-size:13px}
#tmplan #tmplan-rotate:hover{background:#e7f0eb}
#tmplan #tmplan-rotate svg{flex:none}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-move{margin-left:auto}
#tmplan #tmplan-plan-panel>.tmplan-history{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 18px;margin-top:10px;padding-top:0;border:0}
#tmplan #tmplan-plan-panel>.tmplan-history>button{flex:0 1 auto;width:auto;min-height:44px;margin:0;font-size:12px;line-height:1.4}
#tmplan #tmplan-plan-panel>.tmplan-history>#tmplan-reset{color:#596c63;font-weight:500}
#tmplan #tmplan-plan-panel>.tmplan-precision-controls{margin-top:10px;border-top:1px solid #e0e9e3;padding-top:8px}
#tmplan #tmplan-plan-panel>.tmplan-precision-controls summary{min-height:44px;padding:10px 4px;font-size:13px;color:#4d6259}
#tmplan #tmplan-plan-panel>.tmplan-share-controls{max-width:760px;margin-left:auto;margin-right:auto;gap:12px;padding-top:18px;margin-top:14px}
@media(max-width:760px){
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar{gap:10px;padding:10px}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-move{flex:1 1 100%;margin-left:0}
 #tmplan #tmplan-rotate{min-height:46px}
 #tmplan #tmplan-plan-panel>.tmplan-history{gap:2px 12px}
 #tmplan #tmplan-plan-panel>.tmplan-history>button{font-size:12px;text-align:left}
}

/* In-place comparison disclosure, with explicit location and expanded state. */
#tmplan #tmplan-compare-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;min-height:70px;padding:14px 18px;border:1px solid #adc6b9;border-radius:11px;background:#eef5f0;color:#295e57}
#tmplan #tmplan-compare-toggle .tmplan-compare-toggle-copy{display:block;min-width:0}
#tmplan #tmplan-compare-label{display:block;font-size:16px;font-weight:750;line-height:1.4}
#tmplan #tmplan-compare-toggle>svg{flex:none}
#tmplan #tmplan-compare-toggle:hover{background:#e3eee7;border-color:#295e57}
#tmplan #tmplan-compare-toggle[aria-expanded=true]{background:#295e57;color:#fff;border-color:#295e57}
#tmplan #tmplan-compare-toggle[aria-expanded=true]>svg{transform:rotate(180deg)}
#tmplan #tmplan-compare-toggle[aria-expanded=true]:hover{background:#234f49}
@media(max-width:380px){#tmplan #tmplan-compare-toggle{padding:12px;gap:10px}#tmplan #tmplan-compare-label{font-size:15px}}

/* Reading the plan: explicit selection, bed legend, oriented distances and statuses. */
#tmplan .tmplan-reading-key{max-width:760px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin:10px auto 0;color:#4d6259;font-size:12px}
#tmplan .tmplan-reading-key p{margin:0;font-size:12px}
#tmplan .tmplan-selection-caption{font-weight:700;color:#365f85}
#tmplan .tmplan-bed-legend{display:flex;flex-wrap:wrap;gap:8px 14px;list-style:none;padding:0;margin:0}
#tmplan .tmplan-bed-legend li{display:inline-flex;align-items:center;gap:6px;margin:0}
#tmplan .tmplan-bed-legend li>span{width:17px;height:12px;border-radius:2px;display:inline-block;flex:none}
#tmplan .tmplan-frame-swatch{background:#dcece6;border:2px solid #295e57}
#tmplan .tmplan-mattress-swatch{background:#f5f9f6;border:1px solid #7c9d8c}
#tmplan .tmplan-distance-direction{display:block;font-size:11px;line-height:1.45;margin-top:3px;font-weight:500}
#tmplan .tmplan-diagnostic-summary{font-size:13px;font-weight:650;color:#4d6259;margin-bottom:10px}
#tmplan .tmplan-diagnostic-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px 14px;flex-wrap:wrap;margin-bottom:6px}
#tmplan .tmplan-diagnostic-heading h3{margin:0;font-size:14px}
#tmplan .tmplan-diagnostic-status{font-size:11px;font-weight:700;color:#486057}
#tmplan [data-tone=warning] .tmplan-diagnostic-status{color:#984224}
#tmplan [data-tone=unknown] .tmplan-diagnostic-status{color:#586a73}
#tmplan .tmplan-diagnostic-limits{margin-top:8px}
#tmplan .tmplan-diagnostic-limits>summary{font-size:12px;min-height:44px;font-weight:500;padding:8px 0}
#tmplan .tmplan-compare-section{border-top:3px solid #295e57;background:linear-gradient(135deg,#fff 65%,#f2f7f3)}
#tmplan .tmplan-compare-section>h2{color:#295e57;max-width:720px}
#tmplan .tmplan-compare-section>p:not(.tmplan-eyebrow){max-width:780px;line-height:1.55;margin-bottom:20px}

#tmplan .tmplan-plan-object.selected>[data-selection-ring]{stroke-width:2;stroke-dasharray:6 4}

/* Shared clearance markers and action-first diagnostic presentation. */
#tmplan .tmplan-distance-code{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #a8bdd0;border-radius:5px;color:#365f85;background:#fff;font-size:11px;font-weight:750;margin-right:5px}
#tmplan .tmplan-diagnostic-lead p{font-weight:650;margin:6px 0}
#tmplan .tmplan-diagnostic-issues{margin:4px 0;min-width:0;overflow-wrap:anywhere}
#tmplan .tmplan-diagnostic-issues>summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-height:44px;padding:4px 0;list-style:none;cursor:pointer}
#tmplan .tmplan-diagnostic-issues>summary::-webkit-details-marker{display:none}
#tmplan .tmplan-diagnostic-issues>summary::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex:none;margin:0 3px 4px 0}
#tmplan .tmplan-diagnostic-issues[open]>summary::after{transform:rotate(225deg);margin-bottom:0}
#tmplan .tmplan-diagnostic-issues>summary:focus-visible{outline:3px solid #b84c32;outline-offset:3px;border-radius:4px}
#tmplan .tmplan-diagnostic-issues>summary>span{margin-left:auto;text-decoration:underline;font-weight:500}
#tmplan .tmplan-diagnostic-issues:not([open]) .tmplan-diagnostic-less,#tmplan .tmplan-diagnostic-issues[open] .tmplan-diagnostic-more{display:none}
#tmplan .tmplan-diagnostic-issues>ul{margin:6px 0 8px;padding-left:20px}
#tmplan .tmplan-diagnostic-issues>ul>li{margin:4px 0;line-height:1.45;font-weight:500}
#tmplan .tmplan-diagnostic-action{margin-top:8px!important;font-size:13px!important;color:#42574d}
#tmplan .tmplan-diagnostic-technical{margin-top:6px}
#tmplan .tmplan-diagnostic-technical>summary{min-height:44px;font-size:12px;font-weight:500;padding:8px 0;color:#52665b}
#tmplan .tmplan-diagnostic[data-unconfigured=true]{background:#f4f6f7;border-left-color:#687a82}
#tmplan .tmplan-diagnostic[data-unconfigured=true] .tmplan-diagnostic-status{color:#586a73}

/* Priority of useful actions: customization next to its plan; strong comparison; quiet measurements. */
#tmplan #tmplan-plan-panel>.tmplan-section-heading{flex-wrap:wrap;align-items:center;gap:8px 16px}
#tmplan .tmplan-workspace>.tmplan-customize-controls{display:flex;flex-direction:column;align-items:flex-end;gap:3px;margin:0;max-width:100%;grid-column:1/-1;justify-self:end}
#tmplan .tmplan-workspace>.tmplan-customize-controls #tmplan-customize-toggle{min-height:46px;background:#fff;border:1px solid #295e57;color:#295e57;font-size:14px;font-weight:700;flex:0 1 auto}
#tmplan .tmplan-workspace>.tmplan-customize-controls #tmplan-customize-toggle:hover{background:#e7f0eb}
#tmplan .tmplan-workspace>.tmplan-customize-controls #tmplan-customize-toggle[aria-expanded=true]{background:#295e57;color:#fff}
#tmplan .tmplan-customize-copy p{margin:0;font-size:12px;color:#4d6259}
#tmplan .tmplan-customize-copy #tmplan-customize-summary{font-size:11px;margin-top:2px}
#tmplan #tmplan-compare-toggle{min-height:76px;padding:17px 20px;background:#B84C32;border-color:#B84C32;color:#fff;box-shadow:0 3px 10px rgba(115,43,24,.12)}
#tmplan #tmplan-compare-toggle #tmplan-compare-label{font-size:17px;font-weight:800}
#tmplan #tmplan-compare-toggle:hover{background:#9D3F28;border-color:#9D3F28}
#tmplan #tmplan-compare-toggle[aria-expanded=true]{background:#295E57;border-color:#295E57}
#tmplan #tmplan-compare-toggle[aria-expanded=true]:hover{background:#234f49}
#tmplan .tmplan-measurements-panel{padding:16px 20px}
#tmplan .tmplan-measurements-panel>.tmplan-section-heading{margin-bottom:8px}
#tmplan .tmplan-measurements-panel #tmplan-results-title{font-size:19px}
#tmplan .tmplan-measurements-panel>.tmplan-help{font-size:12px;margin-bottom:10px}
#tmplan .tmplan-measurements-panel .tmplan-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}
#tmplan .tmplan-measurements-panel .tmplan-metrics>div{padding:8px 9px;border:1px solid #e0e9e3;border-radius:8px;background:#f7faf8}
#tmplan .tmplan-measurements-panel .tmplan-metrics dt{font-size:11px;line-height:1.4}
#tmplan .tmplan-measurements-panel .tmplan-metrics dd{font-size:19px;font-weight:700;margin-top:4px}
#tmplan .tmplan-measurements-panel .tmplan-metrics dd span{font-size:11px}
#tmplan .tmplan-measurements-panel .tmplan-distance-code{width:18px;height:18px;font-size:10px;margin-right:4px}
#tmplan .tmplan-measurements-panel .tmplan-distance-direction{font-size:10px;margin-top:2px}
#tmplan .tmplan-plan-guidance{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:12px 14px;border:1px solid #c6dcd0;border-left:4px solid #295e57;border-radius:0 10px 10px 0;background:#eaf4ed;color:#295e57}
#tmplan .tmplan-plan-guidance #tmplan-plan-help{margin:0;padding:0;border:0;border-radius:0;background:transparent;font-size:14px;color:#234c46}
#tmplan .tmplan-mouse-symbol{display:block;flex:none}
#tmplan[data-input-mode=touch] .tmplan-mouse-symbol,#tmplan[data-input-mode=keyboard] .tmplan-mouse-symbol,#tmplan[data-input-mode=pen] .tmplan-mouse-symbol{display:none}
@media(hover:hover) and (pointer:fine){#tmplan #tmplan-plan [data-drag=bed]{cursor:grab}#tmplan #tmplan-plan [data-drag=bed]:hover .tmplan-bed-outline{stroke-width:3;vector-effect:non-scaling-stroke}#tmplan #tmplan-plan[data-dragging=true] [data-drag=bed]{cursor:grabbing}}
@media(max-width:767px){#tmplan .tmplan-measurements-panel{padding:14px}#tmplan .tmplan-measurements-panel .tmplan-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#tmplan #tmplan-compare-toggle{padding:14px;gap:12px}#tmplan #tmplan-compare-toggle #tmplan-compare-label{font-size:16px}#tmplan .tmplan-plan-guidance{padding:10px 12px;gap:9px}}


/* v0.7.6 — consistent results hierarchy; independent verdicts in full-width rows. */
#tmplan .tmplan-entry-bed .tmplan-bed-select{width:100%;max-width:300px}
#tmplan .tmplan-customize-copy{text-align:right}
#tmplan .tmplan-customize-copy>p:first-child{display:none}
#tmplan .tmplan-measurements-panel{padding:20px}
#tmplan .tmplan-measurements-panel .tmplan-metrics{gap:10px;margin:14px 0 20px}
#tmplan .tmplan-measurements-panel .tmplan-metrics>div{display:block;min-width:0;padding:12px 10px;background:#f4f8f5;border:1px solid #dce7df;border-radius:9px;text-align:center}
#tmplan .tmplan-measurements-panel .tmplan-metrics dt{font-size:12px;line-height:1.5;color:#486057}
#tmplan .tmplan-measurements-panel .tmplan-metrics dd{margin:8px 0 0;font-size:22px;font-weight:750;line-height:1.3}
#tmplan .tmplan-measurements-panel .tmplan-metrics dd span{font-size:12px}
#tmplan .tmplan-measurements-panel .tmplan-distance-direction{display:block;margin-top:4px;font-size:11px;font-weight:400;color:#52685e}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic-summary{margin:0 0 12px;font-size:13px;font-weight:600}
#tmplan .tmplan-measurements-panel .tmplan-diagnostics{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic{padding:14px 16px;border:1px solid #dce7df;border-left:3px solid #5b7f6a;border-radius:9px;min-width:0;background:#fff}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic[data-tone=warning]{background:#fff4ed;border-left-color:#ad4a2d}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic[data-tone=unknown],#tmplan .tmplan-measurements-panel .tmplan-diagnostic[data-unconfigured=true]{background:#f7f9fa;border-left-color:#687a82}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic-heading{align-items:center;gap:8px 16px;margin:0 0 6px}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic-heading h3{font-size:15px;line-height:1.4}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic-status{display:inline-block;max-width:100%;padding:3px 8px;border-radius:5px;background:#edf4ef;font-size:11px;line-height:1.5;color:#295e57}
#tmplan .tmplan-measurements-panel [data-tone=unknown] .tmplan-diagnostic-status,#tmplan .tmplan-measurements-panel [data-unconfigured=true] .tmplan-diagnostic-status{color:#4c606b;background:#e9eef1}
#tmplan .tmplan-measurements-panel [data-tone=warning] .tmplan-diagnostic-status{color:#8d391f;background:#fce3d5}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic p{font-size:13px;line-height:1.55}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic-lead p{margin:6px 0;font-weight:650}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic-action{margin-top:4px!important;font-size:13px!important;font-weight:400}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic-technical{margin-top:4px}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic-technical>summary{padding:10px 0;min-height:44px;margin-bottom:0}
#tmplan .tmplan-measurements-panel .tmplan-diagnostic-technical[open]>summary{margin-bottom:6px}
#tmplan .tmplan-measurements-panel #tmplan-section-hint{margin-top:4px;text-align:left}
#tmplan .tmplan-measurements-panel #tmplan-configure-ceiling{min-height:44px;padding:8px 0;font-size:13px}
@media(max-width:767px){#tmplan .tmplan-measurements-panel{padding:16px}#tmplan .tmplan-measurements-panel .tmplan-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#tmplan .tmplan-measurements-panel .tmplan-diagnostic{padding:12px}#tmplan .tmplan-measurements-panel .tmplan-diagnostic-heading{align-items:flex-start}}

/* v0.7.7 — controls above the options column and quiet result disclosure. */
@media(min-width:1024px){#tmplan .tmplan-workspace{row-gap:12px}#tmplan .tmplan-workspace>.tmplan-visual-column{grid-column:1;grid-row:2}#tmplan .tmplan-workspace>.tmplan-tools-column{grid-column:2;grid-row:2}}
#tmplan .tmplan-editor-subtitle{font-size:14px;line-height:1.5;font-weight:600;color:#295e57;margin:4px 0 14px}
#tmplan .tmplan-wall-swatch{display:inline-block;width:20px;height:12px;border:2px solid #295e57;background:#fff}
#tmplan #tmplan-results-panel{padding:0}
#tmplan #tmplan-results-panel>.tmplan-results-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:16px 20px;min-height:60px;margin:0;list-style:none}
#tmplan #tmplan-results-panel>.tmplan-results-summary::-webkit-details-marker{display:none}
#tmplan #tmplan-results-panel>.tmplan-results-summary::after{content:'';width:8px;height:8px;border-right:2px solid #295e57;border-bottom:2px solid #295e57;transform:rotate(45deg);margin-left:auto;flex:none}
#tmplan #tmplan-results-panel[open]>.tmplan-results-summary::after{transform:rotate(225deg)}
#tmplan #tmplan-results-panel #tmplan-results-title{margin:0;font-size:19px}
#tmplan #tmplan-results-panel #tmplan-diagnostic-summary{margin:0;font-size:12px;font-weight:500;color:#52665b}
#tmplan #tmplan-results-panel .tmplan-results-content{padding:0 20px 20px}
#tmplan #tmplan-results-panel>.tmplan-results-summary:focus-visible{outline:3px solid #b84c32;outline-offset:2px;border-radius:10px}
@media(max-width:767px){#tmplan #tmplan-results-panel>.tmplan-results-summary{padding:16px;gap:6px 12px}#tmplan #tmplan-results-panel #tmplan-diagnostic-summary{flex-basis:calc(100% - 24px);order:2}#tmplan #tmplan-results-panel>.tmplan-results-summary::after{order:1}#tmplan #tmplan-results-panel .tmplan-results-content{padding:0 16px 16px}}

/* v0.7.8 — focused comparison, settings separated from visual evidence. */
#tmplan .tmplan-compare-heading{max-width:740px;margin-bottom:18px}
#tmplan .tmplan-compare-heading .tmplan-eyebrow{color:#7d4532;margin-bottom:6px}
#tmplan .tmplan-compare-heading h2{color:#295e57;font-size:25px;line-height:1.25;margin-bottom:10px}
#tmplan .tmplan-compare-heading p:last-child{font-size:14px;line-height:1.6;margin-bottom:0}
#tmplan #tmplan-comparison{padding-top:20px}
#tmplan .tmplan-compare-settings{display:grid;grid-template-columns:minmax(200px,.9fr) minmax(0,1.1fr);align-items:start;gap:16px 24px;padding:16px;background:#f0f5f2;border:1px solid #dce7df;border-radius:10px}
#tmplan .tmplan-compare-settings .tmplan-field{margin:0}
#tmplan .tmplan-compare-settings .tmplan-check{margin:0;min-height:44px;font-size:12px;line-height:1.5}
#tmplan .tmplan-compare-preferences{min-width:0}
#tmplan .tmplan-comparison-switch{margin:20px 0 12px}
#tmplan .tmplan-comparison-card{background:#fff;border-radius:12px;padding:16px 12px}
#tmplan .tmplan-comparison-card.active{padding:15px 11px}
#tmplan .tmplan-comparison-card h3{font-size:15px;margin-bottom:8px}
#tmplan .tmplan-compare-benefit{text-align:center;min-height:46px;color:#295e57}
#tmplan .tmplan-compare-benefit strong{font-size:27px;line-height:1.25;font-variant-numeric:tabular-nums}
#tmplan .tmplan-compare-benefit span{display:block;font-size:11px;font-weight:500;margin-top:2px}
#tmplan .tmplan-comparison-card svg{max-height:300px;margin:8px auto}
#tmplan .tmplan-comparison-card p{line-height:1.5;color:#4d6259}
#tmplan .tmplan-compare-detail{margin-top:20px;border-top:1px solid #dce7df;padding-top:6px}
#tmplan .tmplan-compare-detail>summary{font-size:13px;min-height:46px}
#tmplan .tmplan-compare-detail .tmplan-assumptions{margin-top:0;font-size:12px}
.tmplan-save-prompt .tmplan-modal-card{max-width:540px}
.tmplan-save-prompt .tmplan-toolbar{display:flex;flex-wrap:wrap;gap:10px}
.tmplan-save-prompt #tmplan-modal-confirm{flex-basis:100%;order:-1}
.tmplan-save-prompt #tmplan-modal-cancel,.tmplan-save-prompt #tmplan-modal-discard{font-size:13px}
@media(max-width:767px){#tmplan .tmplan-compare-heading h2{font-size:22px}#tmplan .tmplan-compare-settings{grid-template-columns:minmax(0,1fr);gap:10px;padding:12px}.tmplan-save-prompt .tmplan-toolbar{flex-direction:column}.tmplan-save-prompt button{width:100%}}

#tmplan .tmplan-comparison-card .tmplan-compare-card-status{font-size:11px;margin:10px 0 0;min-height:18px;color:#536770}
#tmplan .tmplan-comparison-card .tmplan-compare-card-status[data-tone=warning]{color:#963d23;font-weight:700;background:#fff0e7;border-radius:5px;padding:5px 8px}

#tmplan #tmplan-compare-toggle[aria-expanded=true]{min-height:52px;padding:12px 16px;background:#f0f5f2;border-color:#9ab9ac;color:#295e57;box-shadow:none}
#tmplan #tmplan-compare-toggle[aria-expanded=true]:hover{background:#e4eee8}
#tmplan #tmplan-compare-toggle[aria-expanded=true] #tmplan-compare-label{font-size:14px;font-weight:700}

/* WordPress-only page shell; never targets other pages. */
.tmplan-wp-page{width:100%;max-width:1280px;margin:0 auto;padding:24px 16px;min-width:0}.tmplan-wp-page .tmplan-wp-heading{max-width:1164px;margin:0 auto 18px}.tmplan-wp-page .tmplan-wp-heading h1{color:#295E57;font-size:clamp(28px,4vw,42px);line-height:1.2}.tmplan-wp-page #tmplan-wp{width:100%;min-width:0}.tmplan-wp-page #tmplan{width:100%}#tmplan-wp button{text-transform:none;letter-spacing:normal}#tmplan-wp figure{margin:0}#tmplan-wp svg{vertical-align:middle}#tmplan-wp form{margin:0}#tmplan-wp .tmplan-modal{z-index:100001}#tmplan-wp #tmplan-edit-sheet{z-index:100000}

@media(min-width:1024px){.tmplan-wp-page{padding-top:12px}.tmplan-wp-page .tmplan-wp-heading{margin-bottom:8px}.tmplan-wp-page .tmplan-wp-heading h1{font-size:32px;margin:0 0 8px}.tmplan-wp-page>p{max-width:1164px;margin:0 auto 10px}}

.tmplan-wp-page .tmplan-wp-heading{margin:0 auto 16px;padding:0;min-height:0}.tmplan-wp-page .tmplan-wp-heading h1{color:#295e57;letter-spacing:-.025em;font-size:clamp(26px,3vw,32px);line-height:1.2;margin:0 0 8px}.tmplan-wp-page .tmplan-wp-heading .tmplan-eyebrow{color:#295e57;font-size:12px;font-weight:700;letter-spacing:.08em;margin:0 0 5px}.tmplan-wp-page .tmplan-wp-heading>p:last-child{margin:0;line-height:1.5;max-width:850px}
/* WordPress integration: keep editorial !important spacing out of the tool.
   Scoped to the component. No fixed heights; open content remains intrinsic. */
#tmplan-wp #tmplan h2,
#tmplan-wp #tmplan h3 {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.3 !important;
}
#tmplan-wp #tmplan .tmplan-section-heading h2,
#tmplan-wp #tmplan .tmplan-entry-title h2,
#tmplan-wp #tmplan .tmplan-results-summary h2 {
  margin-bottom: 0 !important;
}
#tmplan-wp #tmplan .tmplan-diagnostic h3 {
  margin-bottom: 5px !important;
}
#tmplan-wp #tmplan details {
  margin: 12px 0 !important;
  padding: 0 !important;
}
#tmplan-wp #tmplan details > summary {
  min-height: 44px;
}
#tmplan-wp #tmplan details[open] > summary {
  margin-bottom: 12px;
}
#tmplan-wp #tmplan .tmplan-tools-column details {
  margin: 12px 0 0 !important;
  padding: 10px 0 0 !important;
}
#tmplan-wp #tmplan .tmplan-area-details {
  margin: 8px 0 0 !important;
}
#tmplan-wp #tmplan .tmplan-arrow-controls {
  margin: 8px 0 0 !important;
  padding: 6px 0 0 !important;
}
#tmplan-wp #tmplan details.tmplan-panel {
  margin: 0 0 20px !important;
  padding: 20px !important;
}
#tmplan-wp #tmplan #tmplan-results-panel {
  padding: 0 !important;
}
#tmplan-wp #tmplan .tmplan-panel {
  margin-bottom: 20px;
}
#tmplan-wp #tmplan #tmplan-criteria {
  margin-bottom: 14px;
}
@media (max-width: 767px) {
  #tmplan-wp #tmplan details.tmplan-panel {
    margin-bottom: 16px !important;
    padding: 16px !important;
  }
  #tmplan-wp #tmplan #tmplan-results-panel {
    padding: 0 !important;
  }
  #tmplan-wp #tmplan .tmplan-panel {
    margin-bottom: 16px;
  }
}

/* 0.3.1: touch activation adjacent to the instruction, same control and state. */
#tmplan #tmplan-touch-bar{margin:0 0 12px;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
#tmplan #tmplan-touch-bar #tmplan-touch-help{display:block;flex:1 1 220px;margin:0;font-size:12px;line-height:1.45}

/* Compact mobile badge: one full-width row, no truncated dimensions. */
@media(max-width:767px){
 #tmplan #tmplan-plan-panel>.tmplan-section-heading{flex-wrap:wrap;gap:8px}
 #tmplan #tmplan-plan-size{flex:0 0 100%;max-width:100%;width:100%;white-space:nowrap;text-align:left;font-size:13px;padding:5px 8px;line-height:1.4}
 #tmplan #tmplan-plan-size .tmplan-size-detail{display:none}
}

/* 0.3.3: mobile main plan gains usable width; editor dimensions unchanged. */
@media(max-width:767px){
 #tmplan{padding-inline:8px}
 #tmplan #tmplan-plan-panel{padding-inline:12px}
 #tmplan #tmplan-plan-panel #tmplan-plan-wrap{margin-inline:-8px;width:calc(100% + 16px);max-width:none}
 #tmplan #tmplan-advanced-summary h2{font-size:18px;line-height:1.3}
}

/* 0.3.5: adjacent mobile rotation/undo controls, original nodes and tab order. */
@media(max-width:767px){
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:8px}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-rotate,
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo{width:100%;min-width:0;min-height:48px;padding:8px 5px;font-size:12px;line-height:1.35;gap:5px;white-space:normal;justify-content:center;text-align:left;align-self:stretch}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-precise-toggle,
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-move{grid-column:1/-1}
}

/* 0.3.6: remove bed directional panel from mobile presentation only. */
@media(max-width:767px){
 #tmplan #tmplan-bed-arrows{display:none!important}
 #tmplan #tmplan-plan-panel>.tmplan-precision-controls:has(>#tmplan-bed-arrows:not([hidden])){display:none}
}

/* 0.3.8: consistent mobile selection controls below the shared plan. */
@media(max-width:767px){
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context){padding:12px;margin:12px 0;border:1px solid #d9e5de;border-radius:12px;background:#f7faf8}
 #tmplan-wp #tmplan #tmplan-bed-context #tmplan-bed-selected-title,
#tmplan-wp #tmplan :is(#tmplan-object-controls,#tmplan-window-context) :is(#tmplan-selected-title,#tmplan-window-selected-title){font-size:17px!important;line-height:1.3!important;margin:0 0 6px!important}
 #tmplan #tmplan-bed-context #tmplan-bed-selected-status,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context) :is(#tmplan-selected-status,#tmplan-window-selected-status){font-size:13px;line-height:1.45;margin:0 0 10px}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>button{min-width:0;width:100%;min-height:48px;padding:8px;font-size:13px;line-height:1.35;margin:0}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>#tmplan-object-touch-help{display:none}
}

/* 0.3.9: more usable mobile canvas width, stronger desktop Undo hierarchy. */
@media(max-width:767px){
 #tmplan{padding-inline:0}
 #tmplan #tmplan-plan-panel{padding-inline:8px}
 #tmplan #tmplan-plan-panel #tmplan-plan-wrap{margin-inline:-8px;width:calc(100% + 16px);border-radius:8px}
 #tmplan #tmplan-plan-panel #tmplan-plan{height:var(--tmplan-mobile-plan-height,clamp(380px,110vw,620px));max-height:620px;aspect-ratio:auto}
}
@media(min-width:768px){
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar{gap:10px 12px;padding:12px;background:#f7faf8}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 13px;border:1px solid #295e57;border-radius:9px;background:#e7f0eb;color:#295e57;font-size:13px;font-weight:650;line-height:1.4;gap:8px}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo:hover:enabled{background:#dbe9e1}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo:disabled{background:#f2f5f3;border-color:#ced9d3;color:#687a71;opacity:1;cursor:default}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-precise-toggle{margin-left:auto;font-size:13px;font-weight:500;min-height:44px;padding:8px}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-move{margin-left:0;font-size:12px;font-weight:500;min-height:44px;padding:8px;color:#526a60}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-move svg{width:18px;height:18px}
 #tmplan #tmplan-plan-panel>.tmplan-history{justify-content:flex-end;margin-top:8px}
}

/* 0.3.10: compact mobile disclosure, including Astra editorial spacing isolation. */
@media(max-width:767px){
 #tmplan-wp #tmplan #tmplan-advanced-panel{padding:4px 12px;margin-bottom:14px}
 #tmplan-wp #tmplan #tmplan-advanced-accordion{margin:0!important;padding:0!important}
 #tmplan-wp #tmplan #tmplan-advanced-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin:0;padding:0;list-style:none}
 #tmplan-wp #tmplan #tmplan-advanced-summary #tmplan-advanced-title{margin:0!important;padding:0;font-size:17px;line-height:1.3!important;flex:1;min-width:0}
 #tmplan-wp #tmplan #tmplan-advanced-summary::after{margin:0 3px 0 0;align-self:center;transform:translateY(-2px) rotate(45deg)}
 #tmplan-wp #tmplan #tmplan-advanced-accordion[open]>#tmplan-advanced-summary::after{transform:translateY(2px) rotate(225deg)}
 #tmplan-wp #tmplan #tmplan-advanced-accordion[open]>#tmplan-advanced-summary{margin-bottom:8px}
 #tmplan-wp #tmplan #tmplan-advanced-accordion[open]>#tmplan-advanced-content{padding-bottom:8px}
}

/* 0.3.12: grouped reset/Undo and direct object deletion, same controls. */
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-reset,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-reset{margin-left:auto;padding:8px;font-size:12px;font-weight:400;min-height:44px;width:auto;color:#596c63;background:transparent;border-color:transparent;text-decoration:underline}
#tmplan #tmplan-selected-delete{color:#9d3f28;background:#fff;border:1px solid #d6aaa0;font-size:13px;min-height:44px}
#tmplan #tmplan-selected-delete:hover{background:#fbefeb}
@media(max-width:767px){
 #tmplan #tmplan-touch-bar #tmplan-touch-help,
 #tmplan #tmplan-object-arrows,
 #tmplan #tmplan-plan-panel>.tmplan-precision-controls{display:none!important}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-reset,
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-reset{grid-column:1/-1;justify-self:end;margin-left:0}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo,
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-undo{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:48px;width:100%;padding:8px 5px;font-size:12px;line-height:1.35;font-weight:550;text-align:left;white-space:normal;background:#e7f0eb;border:1px solid #295e57;border-radius:9px;color:#295e57}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo:disabled,
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-undo:disabled{background:#f2f5f3;border-color:#ced9d3;color:#687a71}
}

/* 0.3.13: both secondary bed actions share the second mobile row. */
@media(max-width:767px){
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-precise-toggle{grid-column:1;grid-row:2}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-reset{grid-column:2;grid-row:2}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-precise-toggle,
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-reset{align-self:stretch;justify-self:stretch;width:100%;min-width:0;min-height:44px;margin:0;padding:8px 4px;font-size:12px;line-height:1.35;white-space:normal;text-align:center;justify-content:center}
}

/* 0.3.14: consistent desktop selection actions and capability-aware touch UI. */
@media(min-width:768px){
 #tmplan[data-touch-capable="false"] .tmplan-move-toggle,
 #tmplan[data-touch-capable="false"] .tmplan-touch-help,
 #tmplan[data-touch-capable="false"] #tmplan-touch-bar{display:none!important}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar,
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar{padding:10px}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context){padding:12px;border:1px solid #d9e5de;border-radius:12px;background:#f7faf8}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>button,
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 1 auto;width:auto;min-width:0;min-height:44px;margin:0;padding:8px 12px;border-radius:9px;font-size:14px;line-height:1.4;font-weight:600;white-space:normal;word-break:normal;overflow-wrap:normal;text-align:center}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-undo,
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo{min-height:44px;padding:8px 12px;font-size:14px;font-weight:600;background:#e7f0eb;border:1px solid #295e57;color:#295e57}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-undo:hover:enabled,
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo:hover:enabled{background:#dbe9e1}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-undo:disabled,
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo:disabled{background:#f2f5f3;border-color:#ced9d3;color:#687a71;opacity:1}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-reset,
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-reset{grid-column:1/-1;justify-self:end;width:auto;margin:2px 0 0;min-height:44px;padding:8px;font-size:12px;font-weight:400}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-precise-toggle{margin:0;font-size:13px;font-weight:500}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-object-move,
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-move{margin:0;font-size:13px;font-weight:500}
}

#tmplan #tmplan-save-feedback{margin:8px 0;padding:6px 10px;border-left:3px solid #295e57;color:#295e57;background:#eef5f2;font-size:13px;line-height:1.4}

/* 0.3.16: compact mobile actions, finger targets retained. */
@media(max-width:767px){
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar{gap:6px 8px;padding:6px}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context){padding:8px}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar{gap:6px 8px}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>button,
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>button,
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo,
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-undo{min-height:44px;padding:6px;font-size:12px;line-height:1.3;gap:5px}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>button svg,
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>button svg{width:18px;height:18px;flex-shrink:0}
}

/* 0.3.17: mouse hit area follows the visible handle; generous touch target retained. */
#tmplan .tmplan-resize-handle .tmplan-handle-touch-target{pointer-events:none}
#tmplan .tmplan-resize-handle>rect{pointer-events:all}
@media(pointer:coarse){
 #tmplan .tmplan-resize-handle .tmplan-handle-touch-target{pointer-events:all}
}
@media(max-width:767px){
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-undo{grid-column:1}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-selected-delete{grid-column:2}
}

/* 0.3.21: same buttons and events, compact accessible touch switch. */
#tmplan #tmplan-move[role=switch],
#tmplan #tmplan-object-move[role=switch]{
 display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;
 flex:0 1 auto;width:auto;max-width:100%;min-width:0;min-height:44px;
 margin:0;padding:6px 4px;background:transparent;border:1px solid transparent;
 border-radius:7px;box-shadow:none;color:#295e57;font-size:13px;font-weight:500;
 line-height:1.3;text-decoration:none;text-align:left;
}
#tmplan #tmplan-move[role=switch]:hover,
#tmplan #tmplan-object-move[role=switch]:hover{background:#eef5f2}
#tmplan .tmplan-switch-track{display:inline-flex;align-items:center;flex:0 0 34px;width:34px;height:20px;border-radius:12px;padding:3px;background:#63736c}
#tmplan .tmplan-switch-track>span{width:14px;height:14px;border-radius:50%;background:#fff}
#tmplan [role=switch][aria-checked=true] .tmplan-switch-track{background:#295e57}
#tmplan [role=switch][aria-checked=true] .tmplan-switch-track>span{transform:translateX(14px)}
#tmplan .tmplan-switch-state{font-size:12px;color:#52675d;font-weight:400}
#tmplan #tmplan-touch-bar{margin-bottom:6px}

/* Comparison cards offer an explicit application, without highlight-only controls. */
#tmplan .tmplan-comparison-card{display:flex;flex-direction:column}
#tmplan .tmplan-comparison-card>.tmplan-apply-format{margin-top:auto;width:100%;min-height:44px;padding:10px 12px;border-color:#295e57;color:#295e57;background:#fff;font-size:13px}
#tmplan .tmplan-comparison-card>.tmplan-apply-format:hover:enabled{background:#e7f0eb}
#tmplan .tmplan-comparison-card>.tmplan-apply-format:disabled{background:#eef5f2;color:#52675d;border-color:#d7e3dc}

/* 0.3.23: all comparison cards remain accessible on mobile. */
#tmplan #tmplan-compare-cards{margin-top:16px}
@media(max-width:1000px){#tmplan #tmplan-compare-cards{gap:16px}}

/* 0.3.24: single fading highlight after applying a comparison format. */
#tmplan #tmplan-save-feedback.tmplan-feedback-highlight{
 font-weight:650;border-radius:0 6px 6px 0;border-left-color:#b84c32;
 background-color:#fff3e8;color:#633b2b;outline:none;
 animation:tmplan-feedback-reveal 1800ms ease-out 1;
}
@keyframes tmplan-feedback-reveal{
 0%{background-color:#ffdbb9;box-shadow:0 0 0 3px rgba(184,76,50,.45)}
 100%{background-color:#fff3e8;box-shadow:0 0 0 8px rgba(184,76,50,0)}
}
@media(prefers-reduced-motion:reduce){
 #tmplan #tmplan-save-feedback.tmplan-feedback-highlight{animation:none;background-color:#fff3e8}
}


/* v0.3.38: direct, touch-sized controls on the plan. */
#tmplan #tmplan-plan-wrap{position:relative;isolation:isolate}
#tmplan .tmplan-plan-add-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:60px;padding:8px 10px;border-bottom:1px solid #dde7e0;background:#f1f6f3}
#tmplan .tmplan-plan-add-label{margin-right:auto;font-size:12px;font-weight:600;color:#536a60}
#tmplan .tmplan-plan-add-actions button,#tmplan .tmplan-plan-selection-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;width:auto;margin:0;padding:8px 10px;border:1px solid #b6cbc0;border-radius:9px;background:#fff;color:#295e57;font-size:13px;line-height:1.2;font-weight:650;text-decoration:none;touch-action:manipulation;cursor:pointer;box-shadow:none}
#tmplan .tmplan-plan-add-actions button svg,#tmplan .tmplan-plan-selection-actions button svg{flex:0 0 auto;pointer-events:none}
#tmplan .tmplan-plan-selection-actions{position:absolute;display:flex;align-items:center;gap:2px;max-width:calc(100% - 16px);padding:3px;border:1px solid #8cafa0;border-radius:12px;background:#fff;box-shadow:0 3px 12px #234b3930;z-index:3}
#tmplan .tmplan-plan-selection-name{padding:0 6px;font-size:12px;line-height:1.2;color:#526b60;font-weight:650;white-space:nowrap}
#tmplan .tmplan-plan-selection-actions button{border:0;background:#eaf3ed;padding:8px;white-space:nowrap}
#tmplan .tmplan-plan-selection-actions button+button{border-left:1px solid #c9dbd0;border-radius:0 8px 8px 0}
#tmplan .tmplan-plan-add-actions button:hover,#tmplan .tmplan-plan-selection-actions button:hover{background:#dcece1;border-color:#295e57;color:#1d4b42}
#tmplan .tmplan-plan-add-actions button:focus-visible,#tmplan .tmplan-plan-selection-actions button:focus-visible{outline:3px solid #b84c32;outline-offset:3px}
#tmplan .tmplan-plan-add-actions button:disabled,#tmplan .tmplan-plan-selection-actions button:disabled{opacity:.45;cursor:not-allowed}
#tmplan .tmplan-plan-add-actions[hidden],#tmplan .tmplan-plan-selection-actions[hidden],#tmplan .tmplan-plan-selection-actions button[hidden]{display:none!important}
#tmplan .tmplan-edit-sheet #tmplan-plan-wrap{flex-direction:column}
@media(max-width:480px){#tmplan .tmplan-plan-add-actions{padding:6px 8px;gap:6px;min-height:56px}#tmplan .tmplan-plan-add-label{font-size:11px}#tmplan .tmplan-plan-add-actions button{padding:8px;font-size:12px}#tmplan .tmplan-plan-selection-name{font-size:11px;padding:0 4px}#tmplan .tmplan-plan-selection-actions button{font-size:12px;gap:4px;padding:8px 6px}}

/* v0.3.39: selection actions live on the plan; legacy command adapters stay hidden. */
#tmplan #tmplan-rotate,#tmplan #tmplan-object-rotate,#tmplan #tmplan-door-hinge,#tmplan #tmplan-door-opening{display:none!important}
#tmplan #tmplan-plan-wardrobe-doors[aria-pressed=true]{background:#295e57;border-color:#295e57;color:#fff}
#tmplan .tmplan-plan-selection-actions{flex-wrap:wrap}
#tmplan .tmplan-plan-selection-actions button{white-space:nowrap}

/* The footer belongs to the bounded workspace, outside both scrolling panes. */
#tmplan .tmplan-edit-workspace{grid-template-rows:auto minmax(0,1fr) auto}
#tmplan .tmplan-edit-workspace>#tmplan-edit-sheet-actions{grid-row:3;grid-column:1;margin:0;padding:12px 18px;border-top:1px solid #d7e3dc;box-shadow:0 -4px 14px #182b230a;z-index:2;flex-shrink:0}
#tmplan .tmplan-editor-compact .tmplan-edit-workspace{grid-template-rows:auto auto minmax(0,1fr) auto}
#tmplan .tmplan-editor-compact .tmplan-edit-workspace>#tmplan-edit-sheet-actions{grid-row:4;padding:8px 12px}
#tmplan .tmplan-edit-split{overflow:hidden}

/* Clear arrival cue after jumping from the height summary. */
#tmplan .tmplan-ceiling-entry-hint{color:#81402d;font-size:14px;font-weight:700;margin:10px 0}
#tmplan .tmplan-ceiling-target{background:#fff3e8;border-left:4px solid #b84c32;border-radius:6px;padding:12px;margin-block:10px 16px;scroll-margin-block:100px}
#tmplan .tmplan-ceiling-target::before{content:'À renseigner';display:block;color:#81402d;font-size:12px;font-weight:700;margin-bottom:6px}
#tmplan .tmplan-ceiling-target label{font-weight:700}
#tmplan .tmplan-ceiling-target :is(input,select):focus{outline:3px solid #b84c32!important;outline-offset:3px;box-shadow:0 0 0 6px #fff!important}
@media(max-width:480px){#tmplan #tmplan-plan-wardrobe-doors{font-size:11px;padding-inline:7px}}

#tmplan #tmplan-selected-delete{display:none!important}
#tmplan #tmplan-plan-delete{color:#9d3f28}
#tmplan #tmplan-plan-delete:hover:enabled{background:#fff0e9;border-color:#b84c32}

/* 0.3.40: consistent hierarchy and compact labels below the plan. */
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:0}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar{padding:12px}
#tmplan :is(#tmplan-object-controls,#tmplan-window-context){max-width:760px;margin:16px auto 0;padding:12px;background:#f7faf8;border:1px solid #d9e5de;border-radius:12px}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>.tmplan-selection-summary{flex:1 0 100%;min-width:0;margin:0;column-gap:8px}
#tmplan :is(#tmplan-bed-selected-status,#tmplan-selected-status,#tmplan-window-selected-status){display:contents}
#tmplan .tmplan-selection-summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0 0 8px}
#tmplan-wp #tmplan #tmplan-bed-context #tmplan-bed-selected-title,
#tmplan-wp #tmplan :is(#tmplan-object-controls,#tmplan-window-context) :is(#tmplan-selected-title,#tmplan-window-selected-title){font-size:15px!important;line-height:1.4!important;margin:0!important}
#tmplan #tmplan-bed-context #tmplan-bed-selected-status,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context) :is(#tmplan-selected-status,#tmplan-window-selected-status){font-size:13px;line-height:1.4;margin:0;color:#52675d}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>button,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:0;width:auto;flex:0 1 auto;padding:10px 14px;border-radius:8px;font-size:13px;line-height:1.35;grid-row:auto;grid-column:auto;white-space:normal;text-decoration:none;box-shadow:none}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-precise-toggle,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-object-edit{background:#295e57;border:1px solid #295e57;color:#fff;font-weight:650;padding:10px 16px;text-decoration:none}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-precise-toggle:hover,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-object-edit:hover{background:#214c46;border-color:#214c46;color:#fff}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-undo{flex:0 0 auto;width:auto;min-height:44px;padding:10px 13px;background:#fff;border:1px solid #a6bcb0;color:#295e57;font-size:13px;font-weight:600}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo:hover:enabled,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-undo:hover:enabled{background:#edf4ef;border-color:#295e57}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-undo:disabled,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-undo:disabled{background:#f1f4f2;border-color:#d6dfd9;color:#738178;opacity:1}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-reset,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-reset{margin:0 0 0 auto;width:auto;padding:10px;min-height:44px;justify-self:auto;align-self:auto;background:transparent;border:1px solid transparent;color:#52675d;font-size:12px;font-weight:500;text-decoration:none}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-reset:hover,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-reset:hover{background:#edf2ee;border-color:#d9e5de;color:#295e57}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>button:focus-visible,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>button:focus-visible{outline:3px solid #b84c32;outline-offset:3px}
#tmplan #tmplan-precise-toggle::after{border-color:currentColor}
#tmplan .tmplan-touch-gesture{flex:none;color:#52675d}
#tmplan [role=switch][aria-checked=true] .tmplan-touch-gesture{color:#b84c32}
@media(max-width:899px){
 #tmplan .tmplan-plan-wrap{display:flex;flex-direction:column}
 #tmplan #tmplan-plan-add-actions{order:0;flex:none}
 #tmplan #tmplan-plan{order:1;flex:none}
 #tmplan #tmplan-plan-selection-actions{position:static;order:2;flex:none;left:auto;top:auto;visibility:visible;width:100%;max-width:none;margin:0;padding:8px;gap:6px;border:0;border-top:1px solid #d1dfd6;border-radius:0 0 8px 8px;box-shadow:none;background:#f4f8f5;justify-content:flex-start}
 #tmplan .tmplan-plan-selection-name{margin-right:auto}
 #tmplan .tmplan-plan-selection-actions button{min-height:44px;border:1px solid #c9dbd0;border-radius:8px;padding:8px 10px}
 #tmplan .tmplan-plan-selection-actions button+button{border:1px solid #c9dbd0;border-radius:8px}
 #tmplan .tmplan-editor-compact #tmplan-plan{flex:1 1 0;height:auto;min-height:0}
 #tmplan .tmplan-plan-guidance{display:none}
 #tmplan[data-input-mode=keyboard] .tmplan-plan-guidance{display:flex}
 #tmplan #tmplan-touch-bar{margin:4px 0 10px}
 #tmplan #tmplan-touch-bar .tmplan-touch-help{display:none!important}
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-object-edit,
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-precise-toggle{flex:1 1 160px}
 #tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-reset,
 #tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-reset{flex:0 1 auto;margin-left:auto}
 #tmplan #tmplan-plan[data-move-mode=true] .tmplan-plan-object.selected>polygon,
 #tmplan #tmplan-plan[data-move-mode=true] .tmplan-plan-object.selected>path:first-child,
 #tmplan #tmplan-plan[data-move-mode=true] #tmplan-bed-node .tmplan-bed-outline{stroke:#b84c32}
}
@media(max-width:380px){
 #tmplan .tmplan-plan-selection-name{flex-basis:100%;font-size:12px;text-align:left;padding:0 2px}
 #tmplan .tmplan-plan-selection-actions button{font-size:12px;padding-inline:7px}
 #tmplan #tmplan-plan-wardrobe-doors{font-size:12px}
}

/* 0.3.41: compact floating controls with a collision-free reserved fallback. */
@media(max-width:899px){
 #tmplan #tmplan-plan-selection-actions{position:absolute;order:2;width:max-content;max-width:calc(100% - 16px);margin:0;padding:4px;gap:3px;border:1px solid #a9c4b4;border-radius:12px;box-shadow:0 3px 12px #182b2326;background:#fff}
 #tmplan .tmplan-plan-selection-name{margin:0;padding:0 5px;font-size:11px;flex-basis:auto}
 #tmplan .tmplan-plan-selection-actions button{padding:8px 6px;font-size:12px;min-height:44px;border:0;border-radius:8px}
 #tmplan .tmplan-plan-selection-actions button+button{border:0;border-left:1px solid #d6e2da;border-radius:8px}
 #tmplan #tmplan-plan-wardrobe-doors{font-size:11px}
}

/* 0.3.43: direct wall selection with a native touch/keyboard control. */
#tmplan .tmplan-plan-wall-field{display:flex;align-items:center;margin:0;min-width:0}
#tmplan .tmplan-plan-wall-field[hidden]{display:none!important}
#tmplan #tmplan-plan-door-wall{width:100px;max-width:100%;min-width:0;min-height:44px;margin:0;padding:8px 28px 8px 8px;border:1px solid #c9dbd0;border-radius:8px;background-color:#eaf3ed;color:#295e57;font-size:12px;font-weight:600}
#tmplan #tmplan-plan-door-wall:focus-visible{outline:3px solid #b84c32;outline-offset:3px}
#tmplan #tmplan-plan-door-wall:disabled{opacity:.45;cursor:not-allowed}

/* 0.3.44: quiet outlined utilities below the plan. */
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-precise-toggle,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-object-edit,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-editor-return{background:#fff;border:1px solid #b5c8bd;color:#295e57;font-weight:600;box-shadow:none}
#tmplan #tmplan-bed-context>.tmplan-implantation-toolbar>#tmplan-precise-toggle:hover,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-object-edit:hover,
#tmplan :is(#tmplan-object-controls,#tmplan-window-context)>.tmplan-toolbar>#tmplan-editor-return:hover{background:#f3f5f4;border-color:#708d7d;color:#295e57}
#tmplan #tmplan-object-edit>svg,#tmplan #tmplan-editor-return>svg,#tmplan #tmplan-precise-toggle>svg{flex:none;width:18px;height:18px}

/* 0.3.45: no directional button panels; hint only during keyboard navigation. */
#tmplan #tmplan-editor-keyboard-help{display:none}
#tmplan[data-input-mode=keyboard] .tmplan-edit-sheet #tmplan-editor-keyboard-help{display:block!important;font-size:12px;line-height:1.4;margin:2px 0 0}

/* 0.3.50: compact room settings, never a column or disclosure before the plan. */
#tmplan .tmplan-workspace{grid-template-columns:minmax(0,1fr)!important}
#tmplan #tmplan-options-column[hidden]{display:none!important}
#tmplan .tmplan-room-extra-row{display:flex;align-items:flex-start;flex-wrap:wrap;gap:4px 10px;border-top:1px solid #e2eae5;margin-top:10px}
#tmplan .tmplan-room-extra-row>.tmplan-area-details{flex:1 1 105px;min-width:105px;max-width:none;margin:0;border:0}
#tmplan .tmplan-room-extra-row>.tmplan-area-details>summary{min-height:44px;gap:6px}
#tmplan #tmplan-customize-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-height:44px;margin:0;padding:7px 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:#295e57;font-size:12px;font-weight:600;line-height:1.35;text-decoration:none}
#tmplan #tmplan-customize-toggle:hover{background:#f3f5f4;border-color:#d2ded7}
#tmplan #tmplan-customize-toggle svg{flex:none}
#tmplan .tmplan-room-settings[hidden]{display:none!important}
#tmplan .tmplan-room-settings{position:fixed;left:0;right:0;top:var(--tmplan-settings-top,0);height:var(--tmplan-settings-height,100dvh);z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px;background:#182b2380;overscroll-behavior:contain}
#tmplan .tmplan-room-settings-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(720px,100%);max-height:min(800px,100%);min-height:0;background:#fff;border-radius:14px;border:1px solid #b9cec1;box-shadow:0 12px 40px #182b2333;overflow:hidden}
#tmplan .tmplan-room-settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #dce7df}
#tmplan .tmplan-room-settings-head h2{margin:0;font-size:23px;color:#295e57}
#tmplan #tmplan-room-settings-note{margin:5px 0 0;font-size:13px;color:#52675d}
#tmplan #tmplan-room-settings-close{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;padding:8px;background:#fff;border:1px solid #b5c8bd;border-radius:8px;color:#295e57}
#tmplan .tmplan-room-settings-content{overflow:auto;overscroll-behavior:contain;min-height:0;padding:18px 22px;scroll-padding-block:20px}
#tmplan .tmplan-room-settings-content>details{border:1px solid #d9e5de;border-radius:10px;padding:10px 14px;margin:0 0 14px}
#tmplan .tmplan-room-settings-content>details:last-child{margin-bottom:0}
#tmplan .tmplan-room-settings-content>details>summary{font-size:16px;min-height:44px}
#tmplan .tmplan-room-settings-content .tmplan-shape-options{grid-template-columns:repeat(2,minmax(0,1fr))}
#tmplan .tmplan-room-settings-footer{display:flex;justify-content:flex-end;padding:12px 22px;border-top:1px solid #dce7df;background:#fff}
#tmplan #tmplan-room-settings-done{min-height:44px;padding:10px 18px;background:#fff;border:1px solid #708d7d;border-radius:8px;color:#295e57;font-size:14px;font-weight:600}
#tmplan #tmplan-customize-toggle:focus-visible,#tmplan .tmplan-room-settings button:focus-visible,#tmplan .tmplan-room-settings summary:focus-visible{outline:3px solid #b84c32;outline-offset:3px}
@media(max-width:760px){
 #tmplan .tmplan-room-settings{padding:0}
 #tmplan .tmplan-room-settings-card{width:100%;height:100%;max-height:100%;border:0;border-radius:0}
 #tmplan .tmplan-room-settings-head{padding:12px 14px}
 #tmplan .tmplan-room-settings-head h2{font-size:20px}
 #tmplan .tmplan-room-settings-content{padding:14px}
 #tmplan .tmplan-room-settings-content>details{padding:8px 10px}
 #tmplan .tmplan-room-settings-footer{padding:10px 14px}
}
@media(max-width:380px){#tmplan #tmplan-customize-toggle{font-size:11px;padding-inline:5px}#tmplan .tmplan-room-extra-row{gap:4px 6px}}

/* 0.3.51: surface/value kept together, compact settings action on the same baseline. */
#tmplan-wp #tmplan .tmplan-room-extra-row{align-items:flex-start;padding-top:4px;gap:4px 12px}
#tmplan-wp #tmplan .tmplan-room-extra-row>.tmplan-area-details{margin:0!important;padding:0;border:0}
#tmplan-wp #tmplan .tmplan-room-extra-row>.tmplan-area-details>summary{justify-content:flex-start;align-items:center;min-height:44px;padding:0;gap:7px;line-height:1.35}
#tmplan-wp #tmplan .tmplan-room-extra-row .tmplan-area-details #tmplan-room-area{margin-left:3px;font-size:16px;font-weight:700}
#tmplan-wp #tmplan .tmplan-room-extra-row>.tmplan-area-details[open]>summary{margin-bottom:4px}
#tmplan-wp #tmplan .tmplan-room-extra-row>#tmplan-customize-toggle{align-self:flex-start;margin:0;min-height:44px;padding-block:0}

/* Neutral dividers replace green outlines inside the settings window. */
#tmplan-wp #tmplan .tmplan-room-settings-card{border:1px solid #e0e5e2}
#tmplan-wp #tmplan .tmplan-room-settings-head{border-bottom-color:#e6e9e7}
#tmplan-wp #tmplan .tmplan-room-settings-head h2{color:#2f3e46;font-size:21px;line-height:1.3}
#tmplan-wp #tmplan #tmplan-room-settings-note{color:#64716a;font-size:12px;line-height:1.45}
#tmplan-wp #tmplan .tmplan-room-settings-content>details{border:0;border-radius:0;box-shadow:none;background:transparent;margin:0!important;padding:0!important}
#tmplan-wp #tmplan .tmplan-room-settings-content>details+details{border-top:1px solid #e6e9e7;margin-top:14px!important;padding-top:10px!important}
#tmplan-wp #tmplan .tmplan-room-settings-content>details>summary{display:flex;align-items:center;gap:10px;min-height:48px;margin:0!important;padding:10px 0;list-style:none;font-size:15px;font-weight:650;line-height:1.4;color:#2f3e46}
#tmplan-wp #tmplan .tmplan-room-settings-content>details>summary::-webkit-details-marker{display:none}
#tmplan-wp #tmplan .tmplan-room-settings-content>details>summary::marker{content:''}
#tmplan-wp #tmplan .tmplan-room-settings-content>details>summary>svg{flex:none;color:#647b6f}
#tmplan-wp #tmplan .tmplan-room-settings-content>details>summary>span{flex:1;min-width:0}
#tmplan-wp #tmplan .tmplan-room-settings-content>details>summary::after{content:'';flex:none;width:7px;height:7px;margin-right:3px;border-right:1.7px solid #708078;border-bottom:1.7px solid #708078;transform:rotate(45deg) translateY(-2px)}
#tmplan-wp #tmplan .tmplan-room-settings-content>details[open]>summary{margin-bottom:12px!important}
#tmplan-wp #tmplan .tmplan-room-settings-content>details[open]>summary::after{transform:rotate(225deg) translate(-1px,-1px)}
#tmplan-wp #tmplan .tmplan-room-settings-content h3{font-size:15px;color:#2f3e46;line-height:1.4}
#tmplan-wp #tmplan .tmplan-room-settings-content p{font-size:13px;line-height:1.5}
#tmplan-wp #tmplan .tmplan-room-settings-footer{border-top-color:#e6e9e7;background:#fafbfa}
#tmplan-wp #tmplan #tmplan-room-settings-close,#tmplan-wp #tmplan #tmplan-room-settings-done{border-color:#c7d2cb;box-shadow:none}
@media(max-width:760px){#tmplan-wp #tmplan .tmplan-room-settings-card{border:0}#tmplan-wp #tmplan .tmplan-room-settings-head h2{font-size:20px}}
@media(max-width:380px){#tmplan-wp #tmplan .tmplan-room-extra-row{gap:4px 6px}}

/* 0.3.52: compact settings rhythm and contextual L-room preview. */
#tmplan-wp #tmplan .tmplan-room-settings-content .tmplan-field{margin:0 0 8px}
#tmplan-wp #tmplan .tmplan-room-settings-content .tmplan-fields{gap:8px 16px;align-items:start}
#tmplan-wp #tmplan .tmplan-room-settings-content .tmplan-fields>.tmplan-field{margin:0}
#tmplan-wp #tmplan .tmplan-room-settings-content p{margin:0 0 10px}
#tmplan-wp #tmplan .tmplan-room-settings-content h3{margin:10px 0 8px}
#tmplan-wp #tmplan .tmplan-room-settings-content .tmplan-round-option{margin-top:12px;padding-top:10px}
#tmplan-wp #tmplan .tmplan-round-option h3{margin-top:0}
#tmplan-wp #tmplan .tmplan-round-option .tmplan-check{margin:4px 0;min-height:44px}
#tmplan-wp #tmplan .tmplan-room-settings-content>details+details{margin-top:10px!important;padding-top:6px!important}
#tmplan-wp #tmplan .tmplan-room-settings-content>details[open]>summary{margin-bottom:8px!important}
#tmplan-wp #tmplan .tmplan-room-settings-content details details{margin-top:10px;padding-top:6px}
#tmplan-wp #tmplan .tmplan-room-settings-content details details[open]>summary{margin-bottom:8px}
#tmplan-wp #tmplan .tmplan-room-settings-content .tmplan-radius-field{grid-template-rows:auto 46px auto;row-gap:4px}
#tmplan-wp #tmplan .tmplan-room-settings-content .tmplan-radius-field>label{min-height:1.35em}
#tmplan-wp #tmplan .tmplan-room-settings-content .tmplan-height-help{margin:4px 0 10px}
#tmplan-wp #tmplan .tmplan-height-help svg{width:min(100%,360px);max-height:none;height:auto;margin:0 auto}
#tmplan-wp #tmplan #tmplan-corner-field{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:4px 12px;align-items:center}
#tmplan-wp #tmplan #tmplan-corner-field>label{grid-column:1/-1;margin:0}
#tmplan-wp #tmplan #tmplan-corner{min-width:0;margin:0;width:100%}
#tmplan-wp #tmplan #tmplan-notch-preview{display:block;width:96px;height:72px;max-width:100%;margin:0}
/* Align the input row even if a desktop label wraps. */
#tmplan-wp #tmplan #tmplan-l-fields>.tmplan-fields>.tmplan-field{display:grid;grid-template-rows:minmax(2.7em,auto) auto auto;align-content:start}
#tmplan-wp #tmplan #tmplan-l-fields label{display:flex;align-items:flex-end;margin-bottom:5px;line-height:1.35}
@media(max-width:760px){
 #tmplan-wp #tmplan #tmplan-l-fields>.tmplan-fields{grid-template-columns:minmax(0,1fr);gap:10px}
 #tmplan-wp #tmplan #tmplan-l-fields>.tmplan-fields>.tmplan-field{grid-template-rows:auto auto auto}
 #tmplan-wp #tmplan .tmplan-room-settings-content{padding-top:10px;padding-bottom:10px}
 #tmplan-wp #tmplan .tmplan-room-settings-content .tmplan-shape-options{margin-bottom:12px}
}
@media(max-width:360px){
 #tmplan-wp #tmplan #tmplan-corner-field{grid-template-columns:minmax(0,1fr) 76px;gap:4px 8px}
 #tmplan-wp #tmplan #tmplan-notch-preview{width:76px;height:58px}
}

/* 0.3.53: real rounded-room outline with matching corner badges. */
#tmplan-wp #tmplan .tmplan-room-settings-content .tmplan-round-preview{margin:6px 0 10px;min-width:0;text-align:center}
#tmplan-wp #tmplan #tmplan-round-preview-svg{display:block;width:210px;max-width:100%;height:auto;margin:0 auto;overflow:visible}
#tmplan-wp #tmplan #tmplan-round-preview-svg circle{fill:#fff;stroke:#778e82;stroke-width:1}
#tmplan-wp #tmplan #tmplan-round-preview-svg text{fill:#3c5447;font:600 9px system-ui,sans-serif}
#tmplan-wp #tmplan #tmplan-round-preview-svg .is-active circle{fill:#b84c32;stroke:#b84c32;stroke-width:2}
#tmplan-wp #tmplan #tmplan-round-preview-svg .is-active text{fill:#fff}
#tmplan-wp #tmplan #tmplan-round-preview-caption{font-size:11px;color:#64716a;line-height:1.4;margin:4px 0 0}

/* 0.3.54: align frame/overhang inputs by sharing each pair's label row. */
#tmplan-wp #tmplan #tmplan-frame-fields .tmplan-fields>.tmplan-field{display:grid;grid-template-rows:minmax(2.7em,auto) auto auto;align-content:start}
#tmplan-wp #tmplan #tmplan-frame-fields .tmplan-field>label{align-self:end}
#tmplan-wp #tmplan #tmplan-frame-fields .tmplan-field>input{align-self:start}
@supports(grid-template-rows:subgrid){
 #tmplan-wp #tmplan #tmplan-frame-fields .tmplan-fields{row-gap:0}
 #tmplan-wp #tmplan #tmplan-frame-fields .tmplan-fields>.tmplan-field{grid-template-rows:subgrid;grid-row:span 3;row-gap:0}
 #tmplan-wp #tmplan #tmplan-frame-fields .tmplan-fields>.tmplan-field:nth-child(n+3){margin-top:14px}
}

/* 0.3.56: familiar title, explanation and two-action layout. */
#tmplan-wp #tmplan-modal.tmplan-reset-prompt{padding:20px;overscroll-behavior:contain}
#tmplan-wp #tmplan-modal.tmplan-reset-prompt [hidden]{display:none!important}
#tmplan-wp .tmplan-reset-prompt .tmplan-modal-card{display:block;width:100%;max-width:460px;max-height:calc(100dvh - 40px);overflow:auto;padding:25px;border-radius:15px}
#tmplan-wp .tmplan-reset-prompt #tmplan-modal-title{margin:0 0 12px;padding:0;font-size:22px;line-height:1.3;font-weight:700;color:#2f3e46;letter-spacing:-.02em}
#tmplan-wp .tmplan-reset-prompt #tmplan-modal-desc{margin:0;padding:0;font-size:15px;line-height:1.6;color:#2f3e46}
#tmplan-wp .tmplan-reset-prompt .tmplan-toolbar{display:flex;flex-direction:row;gap:12px;margin:20px 0 0;padding:0}
#tmplan-wp .tmplan-reset-prompt .tmplan-toolbar button{flex:1;min-width:0;min-height:46px;font-size:14px;line-height:1.35;padding:11px 12px}
@media(max-width:480px){
 #tmplan-wp #tmplan-modal.tmplan-reset-prompt{padding:16px}
 #tmplan-wp .tmplan-reset-prompt .tmplan-modal-card{padding:22px;max-height:calc(100dvh - 32px)}
 #tmplan-wp .tmplan-reset-prompt #tmplan-modal-title{font-size:20px}
}

/* 0.3.57: explicit top spacing, protected against WordPress heading margins. */
#tmplan-wp #tmplan-modal.tmplan-reset-prompt .tmplan-modal-card{padding-top:20px!important}
#tmplan-wp #tmplan-modal.tmplan-reset-prompt #tmplan-modal-title{margin-top:0!important;margin-block-start:0!important;padding-top:0!important;min-height:0}
@media(max-width:480px){#tmplan-wp #tmplan-modal.tmplan-reset-prompt .tmplan-modal-card{padding-top:18px!important}}

/* 0.3.58: frame disclosure chevron follows the existing accessible state. */
#tmplan-wp #tmplan #tmplan-frame-toggle{display:inline-flex;align-items:center;gap:8px}
#tmplan-wp #tmplan #tmplan-frame-toggle::after{content:'';display:block;flex:none;width:7px;height:7px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(45deg) translateY(-2px)}
#tmplan-wp #tmplan #tmplan-frame-toggle[aria-expanded="true"]::after{transform:rotate(225deg) translate(-1px,-1px)}

/* 0.3.59: desktop movement guidance distinct from green plan surfaces. */
@media(min-width:900px){
 #tmplan-wp #tmplan .tmplan-plan-guidance{background:#fff4ed;border-color:#edcdbd;border-left-color:#b84c32;color:#b84c32}
 #tmplan-wp #tmplan .tmplan-plan-guidance #tmplan-plan-help{color:#2f3e46}
 #tmplan-wp #tmplan .tmplan-plan-guidance .tmplan-mouse-symbol{color:#b84c32}
}

/* Compact directional measurements, without duplicate labels or letter codes. */
#tmplan #tmplan-distances>div{padding:10px 12px;min-height:0;display:flex;flex-direction:column;gap:5px}
#tmplan #tmplan-distances dt{margin:0;line-height:1.3;font-size:12px}
#tmplan #tmplan-distances .tmplan-distance-direction{display:block;margin:0;font-size:12px;color:#52645c;font-weight:600}
#tmplan #tmplan-distances dd{margin:0;font-size:25px;line-height:1.1;letter-spacing:-.5px}
#tmplan #tmplan-distances dd span{font-size:12px;letter-spacing:0;font-weight:500}
#tmplan #tmplan-plan-add-actions{gap:6px;flex-wrap:wrap}
#tmplan #tmplan-plan-add-actions button{min-width:44px;min-height:44px}
#tmplan [data-window]{cursor:grab;touch-action:none;outline:none}
#tmplan [data-window]:focus-visible>path:nth-child(2){stroke:#b84c32;stroke-width:16}
#tmplan #tmplan-window-actions{position:absolute;z-index:8;display:flex;align-items:center;gap:5px;padding:5px;background:#fff;border:1px solid #bfd4ca;border-radius:10px;box-shadow:0 3px 12px #29463b20;max-width:calc(100% - 8px);box-sizing:border-box}
#tmplan #tmplan-window-actions[hidden]{display:none!important}
#tmplan #tmplan-window-actions label{margin:0;min-width:0}
#tmplan #tmplan-window-actions select{width:112px;max-width:100%;min-height:44px;font-size:12px;padding:6px 22px 6px 7px;border:1px solid #ccd8d0;border-radius:6px}
#tmplan #tmplan-window-actions .tmplan-window-width{display:flex;align-items:center;gap:3px;font-size:12px}
#tmplan #tmplan-window-width{width:64px;min-height:44px;padding:6px;font-size:14px;border:1px solid #ccd8d0;border-radius:6px}
#tmplan #tmplan-window-delete{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:6px;color:#295e57;background:#eef4ef;border:1px solid #bfd4ca;border-radius:6px}
@media(max-width:600px){#tmplan #tmplan-plan-add-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px 4px;gap:4px}#tmplan .tmplan-plan-add-label{display:none}#tmplan #tmplan-plan-add-actions button{padding:6px 3px;gap:3px;font-size:12px;white-space:nowrap}#tmplan #tmplan-plan-add-actions button svg{width:18px;height:18px}#tmplan #tmplan-distances>div{padding:9px 10px}#tmplan #tmplan-window-actions{gap:3px;padding:4px}#tmplan #tmplan-window-actions select{width:100px}}
@media(max-width:290px){#tmplan #tmplan-plan-add-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 0.3.61: one visual treatment for all contextual object controls. */
#tmplan-wp #tmplan .tmplan-object-actions{position:absolute;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:5px;width:max-content;max-width:calc(100% - 8px);margin:0;padding:5px;background:#fff;border:1px solid #bfd4ca;border-radius:10px;box-shadow:0 3px 12px #29463b20;box-sizing:border-box;z-index:8}
#tmplan-wp #tmplan .tmplan-object-actions[hidden]{display:none!important}
#tmplan-wp #tmplan .tmplan-object-actions .tmplan-plan-selection-name{flex:0 0 auto;margin:0;padding:0 5px;font-size:12px;line-height:1.3;font-weight:650;color:#526b60;white-space:nowrap}
#tmplan-wp #tmplan .tmplan-object-actions label{display:flex;align-items:center;min-width:0;margin:0}
#tmplan-wp #tmplan .tmplan-object-actions button{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;width:auto;margin:0;padding:7px 8px;border:1px solid #ccd8d0;border-radius:6px;background:#fff;color:#295e57;font-size:12px;line-height:1.2;font-weight:650;box-shadow:none;text-decoration:none;white-space:nowrap;touch-action:manipulation}
#tmplan-wp #tmplan .tmplan-object-actions button+button{border:1px solid #ccd8d0;border-radius:6px}
#tmplan-wp #tmplan .tmplan-object-actions :is(input,select){min-width:0;min-height:44px;margin:0;border:1px solid #ccd8d0;border-radius:6px;background-color:#fff;color:#29463b;box-sizing:border-box;font-size:13px;font-weight:600;line-height:1.3}
#tmplan-wp #tmplan .tmplan-object-actions select{width:100px;max-width:100%;padding:6px 25px 6px 7px}
#tmplan-wp #tmplan .tmplan-object-actions #tmplan-window-width{width:68px;padding:6px;font-size:14px}
#tmplan-wp #tmplan .tmplan-object-actions .tmplan-window-width{gap:4px;font-size:12px}
#tmplan-wp #tmplan .tmplan-object-actions :is(#tmplan-plan-delete,#tmplan-window-delete){color:#b84c32;background:#fff4ed;border-color:#edcdbd}
/* 0.3.65: same soft green hover as Undo; native touch has no sticky hover. */
@media(hover:hover){
 #tmplan-wp #tmplan .tmplan-object-actions button:hover:enabled{background:#edf4ef;border-color:#295e57;color:#295e57}
 #tmplan-wp #tmplan .tmplan-object-actions button[aria-pressed=true]:hover:enabled{background:#dcece6;border-color:#295e57;color:#295e57}
}
#tmplan-wp #tmplan .tmplan-object-actions :is(#tmplan-plan-delete,#tmplan-window-delete):hover:enabled{color:#91391f;background:#fce5db;border-color:#d68d74}
#tmplan-wp #tmplan .tmplan-object-actions :is(button,input,select):focus-visible{outline:3px solid #b84c32;outline-offset:2px}
#tmplan-wp #tmplan .tmplan-object-actions input[aria-invalid=true]{border-color:#b84c32;outline-color:#b84c32}
#tmplan-wp #tmplan .tmplan-object-actions :is(button,label)[hidden]{display:none!important}
#tmplan #tmplan-plan-add-actions button svg{width:28px;height:24px;flex:0 0 auto;overflow:visible}
#tmplan #tmplan-plan-add-actions button svg .tmplan-add-plus{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
@media(max-width:480px){
 #tmplan-wp #tmplan .tmplan-object-actions{gap:4px;padding:4px}
 #tmplan-wp #tmplan .tmplan-object-actions .tmplan-plan-selection-name{flex:0 0 100%;padding:1px 3px;font-size:11px;line-height:1.25}
 #tmplan-wp #tmplan .tmplan-object-actions button{padding:6px;font-size:11px}
 #tmplan-wp #tmplan .tmplan-object-actions select{width:96px;font-size:12px}
 #tmplan #tmplan-plan-add-actions button svg{width:26px;height:23px}
 #tmplan #tmplan-plan-add-actions button{gap:3px;padding-inline:3px}
}

/* Native mobile fields stay readable without automatic focus zoom. */
@media(max-width:899px){#tmplan-wp #tmplan .tmplan-object-actions :is(input,select),#tmplan-wp #tmplan .tmplan-object-actions #tmplan-window-width{font-size:16px}}

/* 0.3.62: the existing touch switch also governs window dragging. */
#tmplan #tmplan-plan[data-move-mode=false] [data-window]{touch-action:pan-y;cursor:pointer}
#tmplan #tmplan-plan[data-move-mode=true] [data-window]{touch-action:none;cursor:grab}

/* 0.3.65: persistent pale green for active toggle commands on desktop and mobile. */
#tmplan-wp #tmplan .tmplan-object-actions button[aria-pressed=true]{background:#dcece6;color:#295e57;border-color:#295e57;box-shadow:inset 0 0 0 1px #295e57}

/* 0.3.68: discoverable objects; decorative, hover-capable fine pointers only. */
#tmplan #tmplan-plan .tmplan-hover-hint,
#tmplan #tmplan-plan .tmplan-window-hover-halo{display:none;pointer-events:none}
#tmplan #tmplan-plan .tmplan-hover-halo{stroke:#c2dbcd;stroke-opacity:.8;stroke-width:9;stroke-linejoin:round}
#tmplan #tmplan-plan .tmplan-hover-edge{stroke:#295e57;stroke-width:3;stroke-linejoin:round}
#tmplan #tmplan-plan .tmplan-window-hover-halo{stroke:#a6cbb6;stroke-opacity:.85;stroke-width:20;stroke-linecap:round}
@media(hover:hover) and (pointer:fine){
 #tmplan #tmplan-plan :is([data-drag=bed],[data-object-id],[data-window]){cursor:grab}
 #tmplan #tmplan-plan:not([data-dragging=true]) :is([data-drag=bed],[data-object-id]):hover>.tmplan-hover-hint,
 #tmplan #tmplan-plan:not([data-dragging=true]) [data-window]:hover>.tmplan-window-hover-halo{display:inline}
 #tmplan #tmplan-plan[data-dragging=true] :is([data-drag=bed],[data-object-id],[data-window]){cursor:grabbing}
}

/* Initial bed discovery: three clear pulses, once per page, no layout movement. */
#tmplan #tmplan-plan[data-bed-discovery=true] [data-drag=bed]>.tmplan-hover-hint{display:inline;animation:tmplan-bed-discovery 6s ease-in-out 1}
#tmplan #tmplan-plan[data-bed-discovery=true] [data-drag=bed]>.tmplan-hover-hint>.tmplan-hover-halo{stroke:#b84c32;stroke-opacity:.8;stroke-width:12;filter:url(#tmplan-bed-discovery-glow)}
#tmplan #tmplan-plan[data-bed-discovery=true] [data-drag=bed]>.tmplan-hover-hint>.tmplan-hover-edge{stroke:#b84c32;stroke-width:2.5}
@keyframes tmplan-bed-discovery{0%,100%{opacity:0}12%,45%,78%{opacity:.95}28%,61%,92%{opacity:.4}}
@media(prefers-reduced-motion:reduce){
 #tmplan #tmplan-plan[data-bed-discovery=true] [data-drag=bed]>.tmplan-hover-hint{animation:none;display:none}
}

/* Transient movement cue, decorative only; follows discovery timing on every viewport. */
#tmplan #tmplan-plan .tmplan-bed-discovery-icon{display:none;pointer-events:none}
#tmplan #tmplan-plan[data-bed-discovery=true] .tmplan-bed-discovery-icon{display:inline;animation:tmplan-bed-discovery-icon 6s ease-in-out 1}
@keyframes tmplan-bed-discovery-icon{0%,100%{opacity:0}6%,92%{opacity:1}}
@media(prefers-reduced-motion:reduce){
 #tmplan #tmplan-plan[data-bed-discovery=true] .tmplan-bed-discovery-icon{display:none;animation:none}
}

/* Compact comparison remains the primary action; editorial links follow quietly. */
#tmplan .tmplan-compare-section{padding:20px}
#tmplan .tmplan-compare-heading{margin-bottom:12px}
#tmplan .tmplan-compare-heading h2{font-size:22px;line-height:1.3;margin-bottom:6px}
#tmplan #tmplan-compare-toggle,
#tmplan #tmplan-compare-toggle[aria-expanded=true]{min-height:52px;padding:12px 16px;background:#295e57;border-color:#295e57;color:#fff;box-shadow:none;gap:10px}
#tmplan #tmplan-compare-toggle #tmplan-compare-label,
#tmplan #tmplan-compare-toggle[aria-expanded=true] #tmplan-compare-label{font-size:15px;font-weight:700;line-height:1.45;white-space:normal;overflow-wrap:break-word}
#tmplan #tmplan-compare-toggle .tmplan-compare-toggle-copy{min-width:0}
#tmplan #tmplan-compare-toggle>svg{flex-shrink:0}
@media(hover:hover){#tmplan #tmplan-compare-toggle:hover,#tmplan #tmplan-compare-toggle[aria-expanded=true]:hover{background:#214c46;border-color:#214c46;color:#fff}}
#tmplan .tmplan-format-guides{margin:0 0 24px;padding:16px 0 0;border:0;border-top:1px solid #d7e3dc;border-radius:0;background:transparent;box-shadow:none;min-width:0}
#tmplan .tmplan-format-guides .tmplan-guide-title{font-size:15px;line-height:1.45;margin:0 0 4px}
#tmplan .tmplan-format-guides .tmplan-guide-description{font-size:14px;line-height:1.5;max-width:76ch;margin:0}
#tmplan .tmplan-format-guides :is(.tmplan-guide-primary,.tmplan-guide-pillar){display:inline-block;color:#295e57;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;white-space:normal;overflow-wrap:break-word;min-height:44px;padding:9px 0;max-width:100%;line-height:1.5;vertical-align:middle}
#tmplan .tmplan-format-guides .tmplan-guide-primary{font-size:14px;font-weight:650}
#tmplan .tmplan-format-guides .tmplan-guide-other{font-size:13px;line-height:1.5;margin:0}
#tmplan .tmplan-format-guides .tmplan-guide-pillar{font-size:13px;font-weight:400}
#tmplan .tmplan-format-guides .tmplan-guide-external{white-space:nowrap}
#tmplan .tmplan-format-guides .tmplan-guide-note{font-size:12px;line-height:1.5;font-style:italic;color:#4d6259;margin:2px 0 0}
#tmplan .tmplan-format-guides a:focus-visible{outline:3px solid #b84c32;outline-offset:3px;border-radius:2px}
@media(hover:hover){#tmplan .tmplan-format-guides a:hover{color:#214c46;text-decoration-thickness:2px}}
@media(max-width:767px){#tmplan .tmplan-compare-section{padding:16px}#tmplan .tmplan-compare-heading h2{font-size:20px}#tmplan .tmplan-format-guides{padding:14px 0 0;margin-bottom:20px}}

/* Rename reuses the name slot; width stays stable as the label changes. */
#tmplan-wp #tmplan #tmplan-plan-rename{flex:0 0 128px;width:128px;max-width:128px;min-height:44px;justify-content:flex-start;padding:7px 8px;background:#fff}
#tmplan-wp #tmplan #tmplan-plan-rename[hidden],#tmplan-modal-name-field[hidden]{display:none!important}
#tmplan-wp #tmplan #tmplan-plan-rename .tmplan-plan-selection-name{flex:1 1 auto;min-width:0;width:auto;max-width:100%;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tmplan-wp #tmplan #tmplan-plan-rename>svg{flex:0 0 14px}
#tmplan-wp #tmplan #tmplan-plan-rename:focus-visible{outline:3px solid #b84c32;outline-offset:2px}
/* Mobile furniture actions: one 54px row, four separate 44px touch targets.
   The existing geometry-aware anchor measures this smaller box unchanged. */
@media(max-width:480px){
 #tmplan-wp #tmplan #tmplan-plan-selection-actions[data-kind=wardrobe]{display:grid;grid-template-columns:minmax(44px,1fr) 54px 70px 44px;gap:3px;padding:4px;width:288px;max-width:calc(100% - 16px);align-items:center}
 #tmplan-wp #tmplan #tmplan-plan-selection-actions[data-kind=wardrobe]>button{width:100%;min-width:44px;min-height:44px;height:44px;margin:0;padding:4px;gap:3px;box-sizing:border-box}
 #tmplan-wp #tmplan #tmplan-plan-selection-actions[data-kind=wardrobe] #tmplan-plan-rename{min-width:44px;width:100%;max-width:100%;padding-inline:5px}
 #tmplan-wp #tmplan #tmplan-plan-rename .tmplan-plan-selection-name{min-width:0;max-width:100%;flex:1 1 auto;padding:0}
 #tmplan-wp #tmplan #tmplan-plan-selection-actions[data-kind=wardrobe] #tmplan-plan-wardrobe-doors>svg{width:16px;height:16px;flex:0 0 16px}
 #tmplan-wp #tmplan #tmplan-plan-selection-actions[data-kind=wardrobe] .tmplan-wardrobe-doors-detail{display:none}
}
/* Same accessible modal; only the rename variant follows the visible mobile viewport. */
#tmplan-wp #tmplan-modal.tmplan-rename-prompt{inset:auto 0;top:var(--tmplan-rename-top,0px);height:var(--tmplan-rename-height,100dvh);max-height:var(--tmplan-rename-height,100dvh);overflow:auto;padding:12px;box-sizing:border-box}
#tmplan-wp .tmplan-rename-prompt .tmplan-modal-card{max-height:100%;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
#tmplan-modal-name-field label{display:block;font-size:14px;font-weight:650;margin-bottom:6px}
#tmplan-modal-name{display:block;width:100%;max-width:100%;box-sizing:border-box;min-height:46px;font:16px/1.4 'DM Sans',sans-serif;padding:10px 11px;border:1px solid #70897d;border-radius:8px;color:#2f3e46;background:#fff}
#tmplan-modal-name:focus-visible{outline:3px solid #295e57;outline-offset:3px}
#tmplan-modal-name-help{font-size:13px;line-height:1.5;color:#4d6259;margin:6px 0 0}
#tmplan-modal-name-error{font-size:13px;line-height:1.5;color:#9c2f22;margin:5px 0 0}
#tmplan-modal-name[aria-invalid=true]{border-color:#9c2f22}
#tmplan .tmplan-name-field{grid-column:1/-1}
/* Reading text matches the site's existing DM Sans / 1rem body style.
   Buttons, fields, technical labels, SVG dimensions and action typography stay unchanged. */
#tmplan{--tmplan-reading-font:'DM Sans',sans-serif;--tmplan-reading-size:1rem;--tmplan-reading-line:var(--ast-body-line-height,1.6em)}
#tmplan :is(.tmplan-compare-heading>p:last-child,.tmplan-guide-description,.tmplan-guide-primary,.tmplan-guide-pillar,.tmplan-guide-title,.tmplan-example-cards>article>p,.tmplan-method-mini>p,#tmplan-method>p,#tmplan-demo-content>p,#tmplan-advanced-content>p){font-family:var(--tmplan-reading-font);font-size:var(--tmplan-reading-size);line-height:var(--tmplan-reading-line)}
#tmplan .tmplan-format-guides .tmplan-guide-primary{display:block;width:fit-content;font-size:var(--tmplan-reading-size);font-weight:600;padding-block:7px;min-height:44px}
#tmplan .tmplan-format-guides .tmplan-guide-pillar{display:block;width:fit-content;font-size:var(--tmplan-reading-size);font-weight:400;padding-block:7px;min-height:44px}
#tmplan .tmplan-format-guides .tmplan-guide-title,#tmplan .tmplan-format-guides .tmplan-guide-description{font-size:var(--tmplan-reading-size);line-height:var(--tmplan-reading-line)}
#tmplan .tmplan-format-guides .tmplan-guide-other{margin:0;line-height:1.4}
#tmplan .tmplan-format-guides .tmplan-guide-note{font-family:var(--tmplan-reading-font);font-size:.875rem;font-style:normal;line-height:1.5;color:#4d6259;margin:0}

/* PNG feedback: one compact, persistent inline message; existing CTA styles stay intact. */
#tmplan .tmplan-export-feedback{display:flex;align-items:flex-start;gap:10px;width:fit-content;max-width:100%;box-sizing:border-box;margin:10px 0 0;padding:10px 12px;border:1px solid #dce7e3;border-radius:8px;background:#f7f9f8;color:#295e57;text-align:left}
#tmplan .tmplan-export-feedback[hidden]{display:none}
#tmplan .tmplan-export-feedback-icon{flex:0 0 20px;margin-top:3px}
#tmplan #tmplan-export-status{flex:0 1 auto;min-width:0;margin:0;font-family:var(--tmplan-reading-font,'DM Sans',sans-serif);font-size:var(--tmplan-reading-size,1rem);line-height:1.5;color:#2f3e46;overflow-wrap:anywhere}
#tmplan #tmplan-export-title{display:block;font-weight:600}
#tmplan #tmplan-export-detail{display:block;color:#4d6259}
#tmplan #tmplan-export-detail:empty{display:none}
#tmplan #tmplan-export-dismiss{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-height:44px;margin:-6px -6px -6px 0;padding:0;border:0;border-radius:6px;background:transparent;color:#4d6259;box-shadow:none;cursor:pointer}
#tmplan #tmplan-export-dismiss[hidden]{display:none}
#tmplan #tmplan-export-dismiss:hover{background:#eaf0ed;color:#295e57}
#tmplan #tmplan-export-dismiss:focus-visible{outline:2px solid #295e57;outline-offset:2px}
#tmplan .tmplan-export-feedback[data-state="error"]{color:#9c2f22}

/* Bed toolbar only: retain Lit | current format | rotation on one row at every width. */
#tmplan-wp #tmplan #tmplan-plan-selection-actions[data-kind=bed]{flex-wrap:nowrap}
#tmplan-wp #tmplan #tmplan-plan-selection-actions[data-kind=bed] #tmplan-plan-static-name{flex:0 0 auto}
#tmplan-wp #tmplan #tmplan-plan-bed-size-field{flex:0 1 auto;min-width:0}
#tmplan-wp #tmplan #tmplan-plan-bed-size{width:112px;max-width:100%;touch-action:manipulation}
html[lang|=en] #tmplan-wp #tmplan #tmplan-plan-bed-size{width:128px}

/* 0.3.95.3: localized language, imperial pair and guidance presentation. */
#tmplan-wp #tmplan .tmplan-entry-title{flex:1;gap:16px;justify-content:space-between}
#tmplan-wp #tmplan .tmplan-language-switch{padding:0!important;margin:0!important;min-height:0;width:auto;box-shadow:none;display:inline-flex;flex:0 0 auto;align-items:center;border:1px solid #ccd8d0;border-radius:8px;overflow:hidden;background:#fff}
#tmplan-wp #tmplan .tmplan-language-switch a{margin:0;border-radius:0;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:40px;padding:6px 10px;box-sizing:border-box;font-size:13px;line-height:1.2;font-weight:650;color:#295e57;text-decoration:none}
#tmplan-wp #tmplan .tmplan-language-switch a+a{border-left:1px solid #ccd8d0}
#tmplan-wp #tmplan .tmplan-language-switch a[aria-current=page]{background:#e5eee8;color:#234c46}
#tmplan-wp #tmplan .tmplan-language-switch a:focus-visible{outline:3px solid #295e57;outline-offset:-3px}
#tmplan-wp #tmplan .tmplan-dimension-title{display:block;margin-bottom:6px;font-size:12px;font-weight:650;line-height:1.4;color:#29463b}
#tmplan-wp #tmplan .tmplan-dimension-pair{min-width:0}
#tmplan-wp #tmplan .tmplan-dimension-pair.tmplan-is-imperial{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:start}
#tmplan-wp #tmplan .tmplan-dimension-pair label{display:block;margin:0 0 5px;font-size:11px;white-space:nowrap}
#tmplan-wp #tmplan .tmplan-dimension-pair input{display:block;height:48px;line-height:1.3;margin:5px 0 0;padding-block:10px;width:100%;min-width:0;min-height:44px;padding-inline:7px;box-sizing:border-box}
#tmplan-wp #tmplan .tmplan-dimension-pair.tmplan-is-imperial input{font-size:18px}
#tmplan-wp #tmplan.tmplan-app .tmplan-plan-guidance{background:transparent;border:0;border-radius:0;padding:0;gap:10px;color:#52695c}
#tmplan-wp #tmplan.tmplan-app .tmplan-plan-guidance #tmplan-plan-help{color:#52695c;background:transparent;border:0;font-size:14px}
#tmplan-wp #tmplan.tmplan-app .tmplan-plan-guidance .tmplan-mouse-symbol{color:#52695c}
@media(max-width:767px){
 #tmplan-wp #tmplan .tmplan-section-heading{flex-wrap:wrap}
 #tmplan-wp #tmplan .tmplan-entry-title{flex-basis:100%;gap:10px;flex-wrap:wrap}
 #tmplan-wp #tmplan .tmplan-language-switch a{min-height:44px}
 #tmplan-wp #tmplan .tmplan-dimension-pair.tmplan-is-imperial input{font-size:16px;padding-inline:5px}
}

/* 0.3.95.6: room units beside dimensions; language at the far end of the title. */
#tmplan-wp #tmplan #tmplan-criteria>.tmplan-section-heading{display:block}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-title{display:flex;width:100%;gap:14px;justify-content:space-between;flex-wrap:nowrap}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-title>div{flex:0 1 auto;min-width:0}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-room>.tmplan-unit{display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:280px;margin:0 0 14px;padding:0;font-size:12px;line-height:1.4;white-space:normal}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-room>.tmplan-unit .tmplan-unit-select{flex:0 1 auto;min-width:0}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-room>.tmplan-unit select{max-width:100%;min-height:44px}
#tmplan-wp #tmplan.tmplan-app .tmplan-plan-guidance .tmplan-mouse-symbol{color:var(--tm-orange-primary,#b84c32)!important}
#tmplan-wp #tmplan.tmplan-app .tmplan-plan-guidance #tmplan-plan-help{color:#52695c!important}
@media(max-width:767px){
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-title{gap:10px;flex-wrap:wrap}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-title>div{flex:0 0 auto;max-width:100%}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-language-switch{margin-left:auto!important}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-title h2{font-size:clamp(18px,4.6vw,20px);letter-spacing:-.35px;line-height:1.35;white-space:nowrap}
}

/* Keep the French title and language links together on common phone widths. */
@media(max-width:767px){
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-title{gap:6px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-language-switch a{min-width:40px;min-height:44px;padding-inline:8px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-title h2{letter-spacing:-.55px}
}
@media(max-width:300px){#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-title h2{white-space:normal}}

/* 0.3.95.8: compact group headings and shared lower baseline. */
#tmplan-wp #tmplan #tmplan-criteria .tmplan-main-fields{align-items:stretch;margin-top:14px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-group{display:flex;flex-direction:column;padding-top:0}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-group>legend{display:flex;align-items:center;min-height:44px;margin:0 0 12px;padding:0;font-size:14px;font-weight:650;line-height:1.4;color:#48665a}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-group>.tmplan-room-heading{width:100%;justify-content:space-between;flex-wrap:wrap;gap:6px 10px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-heading>.tmplan-unit{display:inline-flex;align-items:center;flex:0 1 auto;gap:0;max-width:100%;margin:0;padding:0;font-size:13px;line-height:1.4}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-heading .tmplan-unit-select{min-width:0;max-width:100%}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-heading #tmplan-unit{width:auto;max-width:100%;min-height:44px;padding:8px 32px 8px 10px;font-size:13px;line-height:1.3}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-fields label,#tmplan-wp #tmplan #tmplan-criteria .tmplan-dimension-title{font-size:12px;line-height:1.4}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-dimension-pair.tmplan-is-imperial label{font-size:12px;font-weight:500;color:#586a61}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed>.tmplan-entry-fields{display:flex;flex-direction:column;flex:1;gap:0}
#tmplan-wp #tmplan #tmplan-criteria #tmplan-size{min-height:48px;height:48px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-extra-row{min-height:56px;margin-top:auto;padding-top:10px;box-sizing:border-box;align-items:center}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-room>.tmplan-entry-fields{margin-bottom:14px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed .tmplan-frame-line{min-height:56px;margin-top:auto;padding-top:10px;box-sizing:border-box;align-content:center;align-items:center;gap:4px 10px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed .tmplan-entry-fields>.tmplan-field:first-child{margin-bottom:14px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-frame-line .tmplan-field-label{font-size:12px;line-height:1.4;color:#586a61}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-frame-line .tmplan-value{font-size:16px;line-height:1.4;font-weight:650}
@media(max-width:767px){
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-group>legend{margin-bottom:10px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-room-heading #tmplan-unit{font-size:12px;padding-left:8px;padding-right:30px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed .tmplan-frame-line{margin-top:0}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-room-extra-row{margin-top:0}
}

#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed>.tmplan-entry-fields{align-items:stretch}

/* 0.3.96: approved variant B, natural groups and discrete room action. */
#tmplan-wp #tmplan #tmplan-criteria{padding:14px 26px 22px}
#tmplan-wp #tmplan #tmplan-criteria>.tmplan-section-heading{margin:0 0 6px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-main-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;margin-top:0;align-items:start}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-group{display:block;padding-top:0;min-width:0}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-group>legend{width:100%;min-height:36px;margin:0 0 14px;font-size:14px;line-height:1.4}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed{padding-left:24px;border-left:1px solid #dce7df}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-heading{gap:6px 8px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-heading #tmplan-unit{field-sizing:content;width:auto;max-width:100%;height:36px;min-height:36px;padding:5px 28px 5px 7px;border-color:transparent;background:transparent;font-size:13px;font-weight:500;line-height:1.4;color:#586a61}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-heading #tmplan-unit:hover{background:#eef5f2;border-color:#ccd8d0}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-heading .tmplan-unit-select>svg{right:8px;width:13px;color:#586a61}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-room>.tmplan-entry-fields{margin-bottom:0;gap:18px;grid-template-columns:repeat(2,minmax(0,132px))}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed>.tmplan-entry-fields{display:block}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed .tmplan-entry-fields>.tmplan-field:first-child{margin-bottom:0}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-bed-select{display:flex;max-width:100%;width:100%}
#tmplan-wp #tmplan #tmplan-criteria #tmplan-size{width:100%;max-width:100%;height:48px;font-size:17px;line-height:1.35}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-help{margin:8px 0 0;font-size:13px;line-height:1.5;color:#586a61}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-extra-row,#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed .tmplan-frame-line{min-height:0;margin-top:18px;padding-top:12px;align-items:center;align-content:start;gap:4px 10px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-frame-line .tmplan-field-label{font-size:12px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-frame-line .tmplan-value{font-size:16px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-frame-line .tmplan-link-button{margin-left:0;min-height:44px;font-size:12px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-extra-row>#tmplan-customize-toggle{margin-left:auto;min-height:44px;font-size:12px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-main-fields{gap:48px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed{border-left:0;padding-left:0}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-extra-row,#tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed .tmplan-frame-line{border-top:0;margin-top:10px;padding-top:0}
/* Keep this tertiary action beside its room summary, with no button surface. */
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-extra-row{justify-content:flex-start;column-gap:12px}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-extra-row>.tmplan-area-details{flex:0 1 auto;min-width:0}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-extra-row>.tmplan-area-details[open]{flex-basis:100%}
#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-extra-row>#tmplan-customize-toggle{margin-left:0;padding-inline:0;border-color:transparent;background:transparent;font-weight:500}
#tmplan-wp #tmplan #tmplan-criteria #tmplan-customize-toggle:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:820px){
 #tmplan-wp #tmplan #tmplan-criteria{padding:14px 20px 20px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-main-fields{grid-template-columns:minmax(0,1fr);gap:28px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed{border-left:0;border-top:0;padding:0}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-group>legend{margin-bottom:14px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed>legend{min-height:20px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-title{flex-wrap:wrap}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-main-fields{gap:28px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed{border-top:0;padding-top:0}
}
@media(max-width:480px){
 #tmplan-wp #tmplan #tmplan-criteria{padding:12px 16px 18px}
 #tmplan-wp #tmplan #tmplan-criteria>.tmplan-section-heading{margin-bottom:6px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-title h2{font-size:18px;line-height:1.35}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-group>legend{min-height:44px;margin-bottom:12px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-room-heading #tmplan-unit{height:44px;min-height:44px;font-size:13px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-bed>legend{min-height:20px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-room>.tmplan-entry-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-dimension-pair.tmplan-is-imperial{gap:8px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-room-extra-row>#tmplan-customize-toggle{margin-left:0}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-frame-line{gap:0 9px}
 #tmplan-wp #tmplan #tmplan-criteria .tmplan-frame-line .tmplan-link-button{flex-basis:100%}
}
/* Long French imperial labels reflow on the narrowest phones. */
@media(max-width:360px){html[lang|=fr] #tmplan-wp #tmplan #tmplan-criteria .tmplan-entry-room:has(.tmplan-is-imperial)>.tmplan-entry-fields{grid-template-columns:minmax(0,1fr)}}
@media(pointer:coarse){#tmplan-wp #tmplan #tmplan-criteria .tmplan-room-heading #tmplan-unit{height:44px;min-height:44px}}
/* 0.3.96.2: match the imperial unit-label row when the desktop columns share a baseline. */
@media(min-width:821px){
 html[lang|=en] #tmplan-wp #tmplan #tmplan-criteria:has(.tmplan-entry-room .tmplan-is-imperial) .tmplan-entry-bed label[for=tmplan-size]{margin-bottom:calc(1.4em + 11px)}
}
