/* OpenMotion reference: keep all additions inside the existing editing section. */
.om-section{font-size:1rem;line-height:1.85;min-width:0}
.om-section .section-kicker{font-size:.875rem}
.om-section p,.om-section dd,.om-section li{font-size:1rem}
.om-section h3{font-size:1.2rem;line-height:1.55;margin:0 0 12px}
.om-section h4{font-size:1.15rem;line-height:1.6;margin:0 0 10px}
.om-section a{overflow-wrap:anywhere;text-underline-offset:4px}
.om-section button:focus-visible,.om-section a:focus-visible,.om-section summary:focus-visible,.om-section pre:focus-visible{outline:3px solid #6b452b;outline-offset:4px}
.om-overview{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:26px 0}
.om-use-cases,.om-budget{padding:24px;border:1px solid var(--line);border-radius:13px;background:var(--surface);min-width:0}
.om-use-cases p,.om-budget p{margin:0 0 15px;color:var(--muted)}
.om-budget{background:var(--accent-soft);border-color:#d7c8b6}
.om-budget h3{margin-top:9px;color:#563c2a}
.om-budget p{color:#665344}
.om-budget p:last-child{margin-bottom:0}
.om-label{display:block;font-size:.875rem;line-height:1.65;font-weight:650;color:var(--accent)}
.om-section .om-small{font-size:.875rem;line-height:1.8}
.om-source-links{display:flex;gap:9px 19px;flex-wrap:wrap;align-items:baseline;font-size:.875rem;line-height:1.8}
.om-source-links a{font-size:.875rem}
.om-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;list-style:none;padding:0;margin:27px 0 30px}
.om-steps li{display:flex;align-items:flex-start;gap:12px;min-width:0}
.om-step-number{font:1rem/1.6 var(--mono);color:var(--accent);border-bottom:2px solid #c8ad92;padding-bottom:4px;flex-shrink:0}
.om-steps strong{font-size:1rem;line-height:1.6}
.om-steps p{margin:5px 0 0;color:var(--muted);font-size:1rem;line-height:1.7}
.om-evidence{padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin:0 0 25px;overflow:hidden}
.om-evidence summary{font-size:1rem;font-weight:650;cursor:pointer;padding:19px 23px;line-height:1.7}
.om-evidence[open] summary{border-bottom:1px solid var(--line)}
.om-facts{margin:0;padding:0 23px}
.om-facts>div{display:grid;grid-template-columns:minmax(180px,.8fr) 2fr;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}
.om-facts>div:last-child{border-bottom:0}
.om-facts dt{font-size:1rem;font-weight:650;line-height:1.8;color:var(--ink)}
.om-facts dd{margin:0;color:var(--muted);min-width:0}
.om-facts dd a{font-size:.875rem;display:inline-block;margin-left:7px}
.om-routes{display:grid;grid-template-columns:1fr 1fr;gap:19px;margin:26px 0 17px}
.om-route{padding:23px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
.om-route h3{margin-top:11px}
.om-route p{color:var(--muted);margin:0 0 12px}
.om-route>a{font-size:.875rem}
.om-compatibility{padding:16px 20px;margin:0 0 32px;background:#eeeae0;border-left:3px solid var(--accent);font-size:1rem;color:#5d574c}
.om-template-workbench{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--surface);min-width:0}
.om-template-heading{padding:26px 27px 22px}
.om-template-heading h3{font-size:1.4rem;margin:9px 0}
.om-template-heading p{margin:0;color:var(--muted)}
.om-template-tabs{display:flex;flex-wrap:wrap;gap:7px;padding:10px;background:#ebe9e0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.om-template-tabs button{flex:1 1 195px;min-width:0;min-height:49px;padding:11px 13px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:.875rem;line-height:1.6;text-align:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.om-template-tabs button:hover{color:var(--ink);background:#f3f1e9}
.om-template-tabs button[aria-pressed=true]{background:var(--surface);border-color:#bbaa99;color:#6b452b;font-weight:700}
.om-template-panel{padding:25px 27px;min-width:0}
.om-template-meta{display:flex;gap:9px 15px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 15px}
.om-filename{font:.875rem/1.7 var(--mono);border:1px solid var(--line);border-radius:5px;padding:4px 9px;background:var(--paper);color:var(--muted);overflow-wrap:anywhere;max-width:100%}
#om-template-description{color:var(--muted);margin:0 0 17px}
.om-template-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 19px}
.om-template-actions .button{font-size:.875rem;min-height:46px;white-space:normal;overflow-wrap:anywhere}
#om-template-output{font:1rem/1.9 var(--font);white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;tab-size:2;max-height:530px;overflow:auto;padding:22px;margin:0;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);scrollbar-gutter:stable}
.om-template-status{color:var(--muted);margin:14px 0 0;min-height:1.8em}
.om-source-note{border-top:1px solid var(--line);margin-top:25px;padding-top:18px;color:var(--muted)}
.om-source-note p{margin:0 0 10px;font-size:.875rem}
@media(max-width:1050px){.om-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px}.om-template-tabs button{flex-basis:calc(50% - 7px)}}
@media(max-width:700px){.om-overview,.om-routes{grid-template-columns:1fr}.om-overview{gap:16px;margin-top:22px}.om-use-cases,.om-budget,.om-route{padding:21px}.om-facts>div{grid-template-columns:1fr;gap:6px}.om-evidence summary{padding:18px 20px}.om-facts{padding:0 20px}.om-template-heading{padding:23px 20px 20px}.om-template-panel{padding:23px 20px}.om-template-meta{align-items:flex-start;flex-direction:column}.om-template-tabs{gap:6px;padding:8px}.om-template-tabs button{padding:11px 8px;flex-basis:calc(50% - 6px)}#om-template-output{max-height:440px;padding:17px}.om-compatibility{padding:16px 18px}.om-routes{gap:16px}.om-template-heading h3{font-size:1.3rem}}
@media(max-width:420px){.om-steps{grid-template-columns:1fr;gap:17px;margin:24px 0}.om-template-panel{padding:21px 15px}.om-template-heading{padding:22px 17px 19px}.om-template-actions .button{flex:1 1 150px}.om-template-tabs button{flex-basis:100%;min-height:45px}.om-use-cases,.om-budget,.om-route{padding:19px}#om-template-output{padding:15px;font-size:1rem}.om-facts{padding:0 18px}}
