@charset "UTF-8";
:root{--ink:#203b36;--muted:#74847c;--green:#247b70;--dark:#1b6259;--soft:#edf5f1;--line:#dfe7e2;--paper:#fff;--bg:#f6f8f6;--red:#cc5353;--shadow:0 10px 35px #173c2b07;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.65;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}a{color:var(--green);text-underline-offset:3px}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #80bdb2;outline-offset:3px}button{border:0;background:none}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:650;letter-spacing:.015em}h1{line-height:1.4}svg{display:block}.icon{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:.19em;color:var(--green);font-weight:650}.tag{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:6px;font-size:11px;color:var(--green);background:var(--soft);white-space:nowrap}.tag.amber{background:#fbf4e8;color:#9b7535}.tag.gray{background:#f0f2f0;color:#7d8981}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 17px;border-radius:9px;border:1px solid var(--line);background:#fff;font-weight:550;line-height:1.4;transition:background .15s,color .15s}.btn:hover{background:#f0f5f2}.btn.primary{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 3px 6px #247b7015}.btn.primary:hover{background:var(--dark)}.btn.soft{background:var(--soft);border-color:transparent;color:var(--green)}.btn.text{border-color:transparent;background:none}.btn.danger{color:#b74848}.btn.compact{min-height:34px;padding:7px 11px;font-size:12px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:7px;border:1px solid transparent}.icon-btn:hover{background:var(--soft)}.flex{display:flex;align-items:center;gap:10px}.spacer{flex:1}.skip-link{position:fixed;top:-100px;left:10px;z-index:30;background:var(--green);color:#fff;padding:10px}.skip-link:focus{top:10px}
.app-header{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 max(32px,calc((100% - 1280px)/2));gap:55px}.brand{display:flex;align-items:center;gap:11px;padding:0;white-space:nowrap}.brand img{width:36px;height:36px}.brand-title-line{display:flex;align-items:baseline;gap:8px}.brand-name{font-size:23px;font-weight:750;letter-spacing:.08em;line-height:1.2}.brand-subtitle{display:block;font-size:11px;font-weight:650;line-height:1.5;text-align:left;color:var(--muted)}.brand-english{font-size:9px;letter-spacing:.23em;color:var(--muted);text-align:left;line-height:1.5}.header-nav{display:flex;align-self:stretch;gap:30px}.nav-item{font-size:13px;color:#7a8980;position:relative;padding:0 2px}.nav-item.active{color:var(--green);font-weight:650}.nav-item.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--green);border-radius:4px 4px 0 0}.local-pill{font-size:11px;color:#7b8980;display:flex;gap:7px;align-items:center;white-space:nowrap}.local-pill .icon{width:14px;height:14px}.header-help{font-size:12px;color:#6d8175}.page{max-width:1200px;margin:auto;padding:45px 28px 70px}.section-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}.section-heading h2{font-size:18px}.section-heading .subtle{color:var(--muted);font-size:11px;letter-spacing:.12em}.section-heading a,.section-heading button{margin-left:auto}.site-footer{max-width:1144px;padding:24px 0;margin:0 auto;border-top:1px solid var(--line);display:flex;align-items:center;gap:20px;color:#8a968e;font-size:11px}.site-footer button{font-size:11px;color:#718178}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#59a18a;margin-right:5px}
.hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:325px;margin-bottom:38px;gap:24px}.hero-copy{padding:6px 0 0}.hero h1{font-size:42px;letter-spacing:.01em;line-height:1.55;margin:17px 0 16px}.hero h1 span{color:var(--green)}.hero p{color:#78877e;line-height:1.9;font-size:14px}.hero .btn{margin-top:24px;min-height:48px;padding:12px 23px}.hero-art{position:relative;background:#edf3ee;border:1px solid #e2ebe3;border-radius:24px;height:294px;overflow:hidden}.hero-art:before{content:"";position:absolute;width:220px;height:220px;right:20px;top:27px;background:#e1ece2;border-radius:50%}.hero-art .human-figure{position:relative;max-width:480px;width:100%;height:100%;margin:0 auto;transform:translateY(5px)}.art-badge{position:absolute;left:25px;top:23px;background:#ffffffdf;border:1px solid #fff;border-radius:8px;padding:7px 12px;font-size:10px;letter-spacing:.06em;color:#618071}.art-label{position:absolute;right:24px;bottom:18px;font-size:10px;color:#678170}.art-note{position:absolute;left:22px;bottom:31px;border:1px solid #de6c6c;background:#fff9;display:flex;gap:6px;color:#b84c4c;padding:6px 10px;border-radius:5px;font-size:10px}.art-note:after{content:"";position:absolute;width:45px;border-top:1px solid #d76d6d;left:100%;top:50%;transform:rotate(-24deg);transform-origin:left}
.action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:46px}.action-card{background:white;border:1px solid var(--line);border-radius:13px;padding:23px 22px;text-align:left;position:relative;min-height:165px;transition:transform .15s,border-color .15s;box-shadow:var(--shadow)}.action-card:hover{transform:translateY(-3px);border-color:#94beb1}.action-card .card-icon{width:39px;height:39px;display:flex;align-items:center;justify-content:center;background:var(--soft);color:var(--green);border-radius:10px;margin-bottom:17px}.action-card:first-child{border-color:#b8d3c6}.action-card h2{font-size:16px;margin-bottom:5px}.action-card p{font-size:11px;color:#849087}.action-card>.icon{position:absolute;top:29px;right:21px;width:16px;color:#95a59a}.workflow-hint{display:flex;align-items:center;justify-content:center;gap:24px;padding:18px 25px;background:#eef3ee;border-radius:11px;margin-top:-19px;margin-bottom:39px;color:#819084;font-size:12px}.workflow-hint b{font-weight:550;color:#527568}.workflow-hint .icon{width:14px}.library-teaser{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}.feature-card{border:1px solid var(--line);border-radius:13px;background:#fff;display:flex;align-items:center;overflow:hidden;padding:20px}.feature-card .human-figure{width:235px;height:145px;background:#f7f9f6;border-radius:9px}.feature-card-copy{padding-left:24px;flex:1}.feature-card h3{font-size:18px;margin:10px 0 6px}.feature-card p{font-size:12px;color:var(--muted);margin-bottom:13px}.recent-empty{border:1px dashed #d7e2d9;border-radius:12px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:23px;color:#8b988e;font-size:12px;background:#f3f6f2;text-align:center}.recent-empty .icon{width:26px;height:26px;color:#a3b7a7}.recent-card{padding:20px;background:#fff;border-radius:12px;border:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:9px}
.page-title{font-size:29px;margin:8px 0 9px}.page-lead{color:var(--muted);font-size:13px}.breadcrumbs{display:flex;align-items:center;gap:9px;font-size:12px;color:#8a998d;margin-bottom:25px}.breadcrumbs .icon{width:13px}.breadcrumbs button{padding:0;color:var(--green)}.builder-progress{display:flex;gap:0;margin:27px 0 30px;max-width:720px}.progress-item{display:flex;align-items:center;gap:9px;flex:1;font-size:12px;color:#8a998e;position:relative}.progress-item:after{content:"";height:1px;background:#dbe5dc;flex:1;margin:0 15px}.progress-item:last-child:after{display:none}.progress-item span{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:#eaf1eb;border-radius:50%;font-size:11px;color:#8c9e90}.progress-item.done,.progress-item.active{color:var(--green)}.progress-item.done span,.progress-item.active span{background:var(--green);color:white}.library-controls{background:#fff;border:1px solid var(--line);border-radius:13px;padding:23px;display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:23px 0}.label-text{font-size:12px;font-weight:650;display:block;margin-bottom:9px}.control-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.chip{border:1px solid var(--line);border-radius:7px;font-size:12px;padding:7px 12px;background:white}.chip.active{border-color:#85b5a5;background:var(--soft);color:var(--green);font-weight:650}.chip[aria-disabled=true]{opacity:.6;cursor:help}.help-line{font-size:11px;color:#849286;margin-top:9px}.level-bar{display:flex;align-items:center;margin:28px 0 20px;gap:20px;flex-wrap:wrap}.segmented{display:inline-flex;border:1px solid #dfe7df;background:#eef2ed;border-radius:8px;padding:3px;gap:3px}.segmented button{font-size:12px;color:#738578;border-radius:5px;padding:7px 14px;white-space:nowrap}.segmented button.active{background:#fff;color:var(--green);box-shadow:0 1px 4px #24372a0a;font-weight:600}.stage-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding-bottom:20px}.stage-card{border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;padding:12px;position:relative;overflow:hidden}.stage-card.active{border:2px solid var(--green);padding:11px;background:#fcfefb}.stage-card .human-figure{width:100%;height:139px;background:#f6f8f4;border-radius:7px}.stage-card .stage-number{position:absolute;left:21px;top:20px;font-size:10px;letter-spacing:.06em;color:#8b9b8e}.stage-card .check-circle{position:absolute;right:21px;top:20px;width:20px;height:20px;border:1px solid #c9d7cb;border-radius:50%;background:#fff}.stage-card.active .check-circle{background:var(--green);border-color:var(--green);color:#fff}.check-circle .icon{width:14px;height:14px;margin:2px}.stage-card h3{font-size:13px;margin:13px 2px 3px}.stage-card p{font-size:10px;color:#92a08f;margin-left:2px}.sticky-next{position:sticky;bottom:15px;border:1px solid #d3e1d7;background:#ffffffed;backdrop-filter:blur(10px);box-shadow:0 7px 25px #24392b10;padding:15px 22px;border-radius:12px;display:flex;align-items:center;gap:13px;z-index:3}.sticky-next strong{color:var(--green);font-size:17px}.sticky-next .small{color:var(--muted)}
.editor-shell{max-width:1560px;margin:auto;padding:23px 26px 45px}.editor-top{display:flex;align-items:center;gap:13px;margin-bottom:20px;flex-wrap:wrap}.document-title{border:1px solid transparent;background:transparent;font-size:20px;font-weight:650;width:320px;max-width:100%;border-radius:6px;padding:5px 8px;color:var(--ink)}.document-title:hover,.document-title:focus{border-color:var(--line);background:#fff}.save-state{font-size:10px;color:#839283;min-width:120px}.editor-grid{display:grid;grid-template-columns:200px minmax(400px,1fr) 315px;gap:18px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-heading{display:flex;align-items:center;gap:9px;padding:15px 17px;border-bottom:1px solid var(--line);font-size:12px;font-weight:650}.step-list{max-height:calc(100vh - 340px);min-height:290px;overflow:auto;padding:8px}.step-item{width:100%;display:grid;grid-template-columns:50px 1fr;align-items:center;gap:7px;text-align:left;padding:8px 5px;margin:3px 0;border-radius:7px;border:1px solid transparent;position:relative;font-size:11px;line-height:1.5}.step-item .human-figure{width:50px;height:39px;background:#f6f8f3;border-radius:4px}.step-item.active{background:var(--soft);border-color:#b6d1c1;color:var(--green)}.step-item .step-n{display:block;font-size:9px;color:#8c9b90;margin-bottom:3px}.stage-actions{display:flex;gap:2px;padding:8px;border-top:1px solid var(--line);justify-content:space-around}.stage-actions .icon-btn{width:30px;height:30px}.stage-actions .icon{width:16px;height:16px}.add-stage{width:calc(100% - 16px);margin:2px 8px 10px;font-size:11px}.editor-center{min-width:0}.canvas-panel{overflow:hidden}.canvas-top{padding:16px 19px 12px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}.canvas-top h2{font-size:15px}.canvas-top .small{font-size:10px}.tools{display:flex;align-items:center;gap:4px;padding:10px 13px;border-bottom:1px solid var(--line);flex-wrap:wrap}.tool{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:6px;border:1px solid transparent;font-size:11px;padding:7px 9px;min-height:35px;color:#6e8475}.tool .icon{width:16px;height:16px}.tool.active{border-color:#b7d5c4;background:var(--soft);color:var(--green)}.tool[data-tool=circle] .icon,.tool[data-tool=arrow] .icon,.tool[data-tool=text] .icon{color:#cf6161}.tool-separator{height:23px;width:1px;background:var(--line);margin:0 4px}.canvas-viewport{overflow:auto;background:#f9fbf8;position:relative;min-height:285px}.canvas-viewport .human-figure{width:100%;min-width:300px;touch-action:pan-y;user-select:none}.canvas-viewport.drawing .human-figure{touch-action:none;cursor:crosshair}.canvas-viewport .annotation{cursor:grab;touch-action:none}.canvas-viewport .annotation.selected{filter:drop-shadow(0 0 2px #247b7050)}.canvas-viewport .annotation:active{cursor:grabbing}.canvas-footer{display:flex;align-items:center;gap:10px;padding:10px 16px;border-top:1px solid var(--line);color:#89988c;font-size:10px;flex-wrap:wrap}.canvas-footer .icon{width:14px;height:14px}.zoom-controls{display:flex;align-items:center;margin-left:auto;gap:2px}.zoom-controls button{width:26px;height:26px;border-radius:4px}.zoom-controls button:hover{background:var(--soft)}.zoom-controls .icon{margin:auto}.selection-bar{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding:9px 14px;background:#fff;font-size:11px;flex-wrap:wrap}.selection-bar input[type=range]{width:90px;accent-color:var(--green)}.canvas-settings{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:13px 4px;font-size:11px;color:#6d8472}.canvas-settings label{display:flex;align-items:center;gap:5px}.canvas-settings input{accent-color:var(--green)}.detail-panel{margin-top:15px}.detail-panel summary{padding:14px 18px;cursor:pointer;font-size:12px;font-weight:600}.detail-body{padding:0 18px 18px;display:grid;gap:14px}.detail-body textarea{min-height:72px}.comparison{margin-top:15px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.comparison>div{border:1px solid var(--line);border-radius:9px;background:white;font-size:10px;text-align:center;padding:8px}.comparison .human-figure{width:100%}.notes-panel .panel-heading{padding:16px}.notes-content{padding:17px}.problem-list{display:grid;gap:8px;margin:11px 0 17px}.problem-option{display:flex;align-items:flex-start;gap:7px;font-size:11px;color:#627b6a;cursor:pointer}.problem-option input{margin:3px 0 0;accent-color:var(--green);flex-shrink:0}.problem-option.checked{color:var(--green)}.note-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:650;margin:17px 0 7px}.field{display:block;width:100%;padding:10px 11px;border:1px solid #dce5dc;border-radius:7px;background:#fff;color:var(--ink);font-size:12px;line-height:1.7;resize:vertical}.field::placeholder{color:#a2ada2;font-size:11px}textarea.field{min-height:86px}.field:focus{border-color:#80b3a1;outline:2px solid #d4e8dd;outline-offset:0}.notes-hint{font-size:10px;color:#a18b65;padding:9px 11px;background:#fbf8ef;border-radius:7px;margin-top:15px}.extra-notes{margin-top:15px;border-top:1px solid var(--line);padding-top:12px}.extra-notes summary{font-size:11px;color:var(--green);cursor:pointer}.free-problem{display:flex;gap:5px}.free-problem .field{font-size:11px;padding:7px 9px}.free-problem .btn{padding:7px 9px}.editor-bottom-tip{font-size:10px;color:#96a08f;max-width:700px;margin:23px auto 0;text-align:center}
.saved-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}.saved-item{padding:18px;background:white;border:1px solid var(--line);border-radius:12px}.saved-item .human-figure{background:#f5f8f2;width:100%;height:150px;border-radius:7px}.saved-item h3{font-size:15px;margin:17px 0 4px;overflow-wrap:anywhere}.saved-item p{font-size:11px;color:var(--muted)}.saved-item .flex{margin-top:17px}.template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:21px;margin-top:33px}.template-card{border:1px solid var(--line);background:#fff;border-radius:14px;overflow:hidden;padding:20px}.template-illustration{background:#f2f6ef;border-radius:9px;margin-bottom:20px}.template-illustration .human-figure{width:100%;height:165px}.template-card h2{font-size:17px;margin:12px 0 9px}.template-card p{font-size:12px;color:var(--muted);min-height:56px;margin-bottom:20px}.empty-state{display:flex;align-items:center;flex-direction:column;text-align:center;padding:75px 25px;gap:20px;background:#fff;border:1px dashed var(--line);border-radius:14px;margin-top:30px}.empty-state .icon{width:40px;height:40px;color:#98b5a1}
.preview-layout{display:grid;grid-template-columns:265px 1fr;gap:28px;align-items:start;margin-top:25px}.export-options{padding:22px;position:sticky;top:20px}.export-options .label-text{margin-top:20px}.export-options .label-text:first-child{margin-top:0}.export-options select{width:100%}.export-options .btn{width:100%;margin-top:10px}.export-note{font-size:10px;color:#8b9b8c;margin-top:14px;line-height:1.9}.preview-paper-wrap{min-width:0}.paper{background:white;box-shadow:0 3px 19px #153b2714;border:1px solid #e3e8e1;margin-bottom:25px;overflow:hidden}.paper>svg{display:block;width:100%;height:auto}.page-number{text-align:center;color:var(--muted);font-size:11px;margin-top:-14px;margin-bottom:20px}.preview-info{display:flex;justify-content:space-between;margin-bottom:15px;color:#8a978c;font-size:11px}.privacy-banner{margin-top:30px;display:flex;gap:12px;align-items:flex-start;padding:15px 18px;background:#edf3ec;border:1px solid #e1e9df;border-radius:9px;font-size:11px;color:#7b8c7d}.privacy-banner .icon{width:17px;height:17px;margin-top:1px;color:#6f987f}
dialog{border:1px solid var(--line);border-radius:15px;padding:27px;width:540px;max-width:calc(100% - 30px);box-shadow:0 20px 100px #18352625;color:var(--ink);max-height:86vh}dialog::backdrop{background:#18342665;backdrop-filter:blur(3px)}dialog h2{font-size:20px;margin-bottom:16px}dialog h3{font-size:14px;margin:20px 0 8px}dialog p,dialog li{font-size:12px;color:#708274;line-height:1.9}dialog .modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:25px}dialog .field{margin:15px 0}dialog .modal-stages{max-height:45vh;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:6px}.modal-stages button{text-align:left;border:1px solid var(--line);border-radius:6px;padding:10px;font-size:11px}.modal-stages button:hover{background:var(--soft)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(20px);padding:12px 22px;border-radius:10px;background:#26483e;color:#fff;font-size:12px;box-shadow:0 7px 30px #15382720;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:100;max-width:90vw;text-align:center}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}#toast.error{background:#9b4848}.print-area{display:none}
@media(min-width:1400px){.editor-grid{grid-template-columns:210px minmax(500px,1fr) 345px}.canvas-viewport{min-height:365px}.canvas-top h2{font-size:17px}}
@media(max-width:1100px){.app-header{padding:0 24px;gap:30px}.header-nav{gap:20px}.header-help{display:none}.editor-shell{padding:19px 17px}.editor-grid{grid-template-columns:155px minmax(320px,1fr) 280px;gap:12px}.step-item{grid-template-columns:1fr}.step-item .human-figure{display:none}.hero h1{font-size:36px}.tools{gap:1px;padding:7px}.tool{padding:7px;font-size:10px}.tool .icon{width:15px}.action-card{padding:20px 17px}.action-card h2{font-size:14px}.feature-card .human-figure{width:160px}.feature-card-copy{padding-left:16px}.local-pill{display:none}.stage-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.app-header{height:66px;gap:28px}.brand-name{font-size:20px}.brand img{width:31px;height:31px}.header-nav{gap:19px}.nav-item{font-size:11px}.page{padding:27px 21px 45px}.hero{gap:15px;min-height:270px;margin-bottom:27px}.hero h1{font-size:30px}.hero p{font-size:12px}.hero-art{height:250px}.hero-art .art-note{display:none}.action-grid{grid-template-columns:repeat(2,1fr);margin-bottom:35px;gap:12px}.action-card{min-height:130px}.action-card .card-icon{margin-bottom:9px;width:32px;height:32px}.workflow-hint{gap:13px;padding:17px 12px;font-size:10px}.library-teaser{grid-template-columns:1fr 1fr;gap:15px}.feature-card{flex-direction:column;align-items:flex-start;padding:15px}.feature-card .human-figure{width:100%;height:120px}.feature-card-copy{padding:12px 0 0}.site-footer{margin:0 21px;flex-wrap:wrap;gap:10px}.editor-grid{grid-template-columns:140px minmax(0,1fr)}.notes-panel{grid-column:2}.editor-center{grid-column:2;grid-row:1}.notes-content{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.notes-content>section:first-child{grid-column:1/-1}.extra-notes{grid-column:1/-1}.notes-hint{grid-column:1/-1}.step-list{max-height:65vh}.editor-top .spacer{display:none}.editor-top{gap:8px}.document-title{width:285px}.save-state{margin-right:auto}.editor-top .btn{font-size:11px;min-height:36px;padding:8px 12px}.template-grid{grid-template-columns:1fr}.template-card{display:grid;grid-template-columns:180px 1fr;gap:0 22px}.template-illustration{grid-column:1;grid-row:1/6;margin:0}.template-card p{min-height:0}.template-card .btn{justify-self:start}.preview-layout{grid-template-columns:220px 1fr;gap:17px}.export-options{padding:17px}.saved-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:580px){.app-header{padding:0 16px;gap:16px;flex-wrap:wrap;height:auto;min-height:65px;justify-content:space-between}.brand{padding:12px 0}.brand-title-line{gap:6px}.brand-english{font-size:8px;letter-spacing:.1em}.header-nav{width:100%;order:3;height:40px;justify-content:space-between;gap:10px}.app-header>.spacer{display:none}.header-help{display:block;margin-left:auto;padding:8px}.hero{grid-template-columns:1fr;gap:26px;margin-bottom:23px}.hero-copy{padding-top:5px}.hero .eyebrow{font-size:9px}.hero h1{font-size:32px;margin:13px 0}.hero p{font-size:12px}.hero .btn{margin-top:19px;width:100%}.hero-art{height:227px}.hero-art .human-figure{max-width:380px}.art-badge{top:17px;left:17px;font-size:9px}.page{padding:25px 17px 40px}.action-card{padding:17px 14px;min-height:140px}.action-card h2{font-size:13px}.action-card p{font-size:10px;line-height:1.7}.action-card>.icon{right:14px;top:25px;width:14px}.workflow-hint{gap:7px;font-size:9px;padding:15px 10px}.workflow-hint b{font-weight:600}.workflow-hint .icon{width:12px}.library-teaser{grid-template-columns:1fr}.section-heading h2{font-size:16px}.section-heading .subtle{display:none}.feature-card{flex-direction:row;align-items:center}.feature-card .human-figure{width:150px;height:125px}.feature-card-copy{padding:0 0 0 12px}.feature-card h3{font-size:16px}.recent-empty{padding:20px}.hero-art:before{width:170px;height:170px}.page-title{font-size:25px}.builder-progress{margin:23px 0}.progress-item{font-size:10px;gap:6px}.progress-item span{width:20px;height:20px}.progress-item:after{margin:0 7px}.library-controls{grid-template-columns:1fr;padding:17px;gap:20px}.chip{font-size:11px;padding:7px 9px}.stage-grid{grid-template-columns:repeat(2,1fr);gap:10px}.stage-card .human-figure{height:114px}.stage-card h3{font-size:11px;line-height:1.6}.stage-card p{font-size:9px}.stage-card .stage-number{left:18px;top:17px;font-size:9px}.stage-card .check-circle{right:17px;top:17px;width:17px;height:17px}.check-circle .icon{width:12px;height:12px;margin:1px}.level-bar{gap:11px}.segmented button{font-size:10px;padding:7px 10px}.sticky-next{bottom:8px;padding:12px 14px;gap:9px}.sticky-next .small{font-size:10px}.sticky-next .btn{font-size:11px;padding:10px 12px}.sticky-next strong{font-size:15px}.editor-shell{padding:16px 10px 35px}.editor-top{margin:0 4px 15px;gap:7px}.document-title{font-size:17px;width:calc(100% - 45px)}.editor-top .save-state{margin-left:43px;min-width:120px}.editor-top .btn{font-size:10px;padding:8px 10px}.editor-grid{display:flex;flex-direction:column;gap:13px}.steps-panel{width:100%}.steps-panel .panel-heading{padding:10px 12px;border-bottom:0;font-size:11px}.step-list{display:flex;overflow:auto;min-height:0;max-height:none;padding:0 8px 7px}.step-item{width:auto;min-width:126px;max-width:155px;flex-shrink:0;padding:7px 9px;font-size:10px}.step-item .step-n{font-size:8px}.stage-actions{display:inline-flex;border-top:0;padding:2px 8px 8px}.add-stage{width:auto;margin:0 8px 8px;padding:7px 9px}.editor-center,.notes-panel{width:100%}.canvas-top{padding:13px}.canvas-top h2{font-size:14px}.tools{padding:7px;gap:0}.tool{font-size:10px;padding:7px 6px}.tool .icon{width:15px}.tools .tool-separator{margin:0 3px}.canvas-viewport{min-height:230px}.canvas-viewport .human-figure{min-width:0}.canvas-footer{padding:8px 12px;font-size:9px;gap:7px}.notes-content{display:block;padding:15px}.problem-list{grid-template-columns:1fr 1fr;gap:10px 13px}.problem-option{font-size:10px}.notes-hint{font-size:10px}.canvas-settings{font-size:10px;gap:12px}.selection-bar{font-size:10px}.template-card{display:block;padding:18px}.template-illustration{margin-bottom:18px}.template-card p{margin-bottom:15px}.preview-layout{display:flex;flex-direction:column;gap:20px}.export-options{position:static;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px}.export-options .label-text{margin:0 0 5px;font-size:11px}.export-options .btn{font-size:11px;margin-top:0}.export-note{grid-column:1/-1;margin:0}.preview-paper-wrap{width:100%}.preview-info{font-size:10px}.saved-grid{grid-template-columns:1fr}.saved-item{display:grid;grid-template-columns:105px 1fr;gap:0 15px}.saved-item .human-figure{grid-row:1/4;height:85px;margin-top:5px}.saved-item h3{font-size:13px;margin:0 0 5px}.saved-item .flex{margin-top:11px}.site-footer{font-size:10px;margin:0 17px}.site-footer .spacer{display:none}.privacy-banner{font-size:10px}.breadcrumbs{margin-bottom:20px;font-size:10px}.section-heading .btn{font-size:10px}}
@media(max-width:580px){.field,.free-problem .field{font-size:16px}.field::placeholder{font-size:12px}.problem-option{min-height:38px;align-items:center}.problem-option input{width:17px;height:17px;margin:0}.tool{min-height:40px}.icon-btn{width:38px;height:38px}.btn.primary{min-height:44px}}
.movement-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 24px}.movement-shortcuts .btn{min-height:42px}
.diagram-review-notice{margin:0 0 14px;background:#fff5e2;border-color:#e9d5ad;color:#805f2a;display:block}.diagram-review-notice .btn{margin-top:8px}.saved-thumbnail{grid-row:1/4;min-width:0}.saved-legacy-note{font-size:10px;color:#97743c;margin:4px 0}.saved-thumbnail .human-figure{width:100%}
.saved-heading{flex-wrap:wrap}.saved-filters{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) minmax(0,1fr) auto;gap:14px;align-items:end;padding:18px;margin-top:25px;overflow:visible}.saved-filters label{min-width:0}.saved-filters .label-text{margin-bottom:7px}.saved-filters .btn{min-height:42px}.saved-count{margin-top:20px;font-size:12px;color:var(--muted)}#saved-results>.saved-grid{margin-top:14px}.saved-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:17px}.saved-card-actions .icon-btn{margin-left:auto}.saved-item>*{min-width:0}.saved-no-match{padding:45px 20px;margin-top:14px}.saved-no-match h2{font-size:18px}.condition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.condition-grid label{min-width:0}.condition-grid textarea{min-height:92px}.condition-hint{font-size:12px;color:var(--muted);line-height:1.8}.condition-limit{display:block;margin-top:4px;font-size:10px;color:var(--muted)}
@media(max-width:850px){.saved-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.saved-filters>label:first-child{grid-column:1/-1}.saved-filters>.btn{grid-column:1/-1;justify-self:start}}
@media(max-width:580px){.saved-filters{grid-template-columns:minmax(0,1fr);gap:13px;padding:15px}.saved-filters .field{font-size:16px}.saved-filters>.btn{justify-self:stretch}.condition-grid{grid-template-columns:minmax(0,1fr)}.saved-item{grid-template-columns:minmax(0,105px) minmax(0,1fr)}.saved-card-actions{margin-top:11px;gap:7px}.saved-card-actions .btn{min-height:40px}.saved-card-actions .icon-btn{margin-left:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.report-metadata{display:grid;grid-template-columns:minmax(180px,240px) minmax(180px,300px) minmax(0,1fr);gap:16px;align-items:end;padding:16px 18px;margin-bottom:18px}.report-metadata .label-text{margin-bottom:6px}.report-metadata p{padding-bottom:8px}.compare-page{max-width:1340px}.compare-heading{align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:24px}.compare-controls,.compare-figures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.compare-control{padding:20px;display:grid;align-content:start;gap:12px;min-width:0}.compare-control h2,.compare-figures h2{font-size:15px}.compare-report-title{font-weight:650;overflow-wrap:anywhere}.compare-control .small{overflow-wrap:anywhere}.compare-control .label-text{margin-bottom:7px}.compare-guidance{margin:18px 0}.comparison-warnings{border:1px solid #e7d5aa;border-radius:10px;background:#fff7e6;padding:14px 18px;color:#805f2a;margin-bottom:18px;display:grid;gap:8px}.comparison-warnings p{display:flex;align-items:flex-start;gap:9px;font-size:12px}.comparison-warnings .icon{width:17px;height:17px;margin-top:2px}.compare-figures .panel{min-width:0;padding:16px}.compare-figures .human-figure{width:100%;height:auto;background:#f8faf7;border-radius:8px;margin:13px 0}.compare-figures p{font-size:11px;color:var(--muted)}.compare-records{margin-top:24px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.compare-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.compare-row h3{grid-column:1/-1;font-size:12px;background:var(--soft);padding:10px 18px;border-top:1px solid var(--line)}.compare-row:first-child h3{border-top:0}.compare-cell{padding:16px 18px;min-width:0}.compare-cell+.compare-cell{border-left:1px solid var(--line)}.compare-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.compare-mobile-label{display:none}.compare-bottom-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:22px}.export-task{position:fixed;z-index:15;right:22px;bottom:22px;width:min(460px,calc(100% - 32px));padding:16px 18px;border:1px solid #8db9a6;border-radius:12px;background:#fff;box-shadow:0 7px 30px #203b3630;display:flex;align-items:center;gap:16px}.export-task>div{flex:1;min-width:0}.export-task strong{font-size:13px}.export-task .small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}#export-progress-text{font-size:12px;margin:5px 0}#export-progress{display:block;width:100%;height:9px;accent-color:var(--green)}.export-task .btn{flex-shrink:0}.compare-page .empty-state .flex{justify-content:center;flex-wrap:wrap}
@media(max-width:850px){.report-metadata{grid-template-columns:repeat(2,minmax(0,1fr))}.report-metadata p{grid-column:1/-1;padding-bottom:0}.compare-controls,.compare-figures{gap:14px}.compare-control{padding:16px}.compare-heading>.spacer{display:none}.compare-heading>div{width:100%}}
@media(max-width:580px){.report-metadata{grid-template-columns:minmax(0,1fr);gap:12px;padding:15px}.compare-controls,.compare-figures{grid-template-columns:minmax(0,1fr)}.compare-row{grid-template-columns:minmax(0,1fr)}.compare-cell+.compare-cell{border-left:0;border-top:1px dashed var(--line)}.compare-mobile-label{display:block;font-size:10px;color:var(--green);font-weight:650;margin-bottom:7px}.compare-row h3{padding:10px 15px}.compare-cell{padding:13px 15px}.export-task{right:16px;bottom:16px;padding:13px;gap:10px}.compare-bottom-actions .btn{width:100%}.preview-layout .export-options>div{min-width:0}}
@media print{@page{size:A4 portrait;margin:0}body{background:#fff}#app,#toast,dialog,.skip-link{display:none!important}.print-area{display:block}.print-area .print-page{break-after:page;page-break-after:always;max-width:100%;height:100vh;overflow:hidden}.print-area .print-page:last-child{break-after:auto;page-break-after:auto}.print-page svg{width:100%;height:100%;object-fit:contain}}
.figure-style-batch{padding:12px 14px;margin:12px 0;background:var(--soft);border:1px solid var(--line);border-radius:9px}.figure-style-batch .label-text{font-size:11px;margin:0 0 8px}.figure-style-batch-buttons{display:flex;flex-wrap:wrap;gap:8px}.export-options .figure-style-batch{margin:0;padding:12px}.export-options .figure-style-batch-buttons .btn{margin:0;width:100%}.pose-panel:empty{display:none}.pose-panel{padding:12px 18px;border-top:1px solid var(--line);background:#f3f8f4}.pose-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.pose-controls label{font-size:11px;display:grid;gap:5px}.pose-controls .field{min-width:115px;padding:7px 10px}.pose-angle{font-size:11px}.pose-angle output{font-weight:700;font-variant-numeric:tabular-nums;margin-left:5px}.pose-angle>div{display:flex;gap:6px;margin-top:5px}.pose-angle .btn{padding:7px 10px}.pose-help,.pose-review{font-size:11px;line-height:1.8;margin-top:8px}.pose-help{color:#536b5f}.pose-review{color:#805f2a;background:#fff5df;border-radius:6px;padding:8px 10px}.pose-handle{cursor:grab;touch-action:none}.pose-handle:active{cursor:grabbing}.pose-handle:focus{outline:none}.pose-handle:focus circle{stroke:#8a4219;stroke-width:3}.canvas-viewport .human-figure{touch-action:none}.selection-bar[hidden]{display:none}
@media(max-width:580px){.tools{flex-wrap:wrap}.pose-panel{padding:12px}.pose-controls{gap:10px}.pose-controls label{flex:1;min-width:120px}.pose-controls .field{width:100%;font-size:16px}.pose-controls>.btn{min-height:40px}.figure-style-batch-buttons .btn{flex:1;min-width:140px}.export-options>.figure-style-batch{grid-column:1/-1}}

.paper{position:relative;overflow:visible}.preview-inline-field{cursor:text}.preview-inline-field>rect{fill:#247b70;fill-opacity:0;stroke:none}.preview-inline-field:hover>rect,.preview-inline-field:focus>rect{fill-opacity:.09;stroke:#247b70;stroke-width:1;stroke-dasharray:3 2}.preview-inline-field:focus{outline:none}.preview-inline-field[aria-disabled="true"]{cursor:progress;opacity:.6}.inline-preview-editor{position:absolute;z-index:5;background:#fff;border:2px solid #247b70;border-radius:6px;box-shadow:0 4px 18px #153b2733;padding:8px;box-sizing:border-box;color:#253d39}.inline-preview-editor>label{display:block;font-size:11px;font-weight:600;margin-bottom:4px}.inline-preview-input{display:block;width:100%;box-sizing:border-box;border:0;border-radius:2px;background:#fff;color:#253d39;font:inherit;font-size:16px;line-height:1.6;padding:4px;resize:vertical;min-height:42px;max-height:280px;overflow:auto}.inline-preview-input:focus{outline:1px solid #9ec6b8;outline-offset:1px}.inline-preview-input[aria-invalid="true"]{outline:2px solid #b74436}.inline-preview-editor>[data-inline-error]{font-size:12px;color:#a23629;margin:7px 0}.inline-preview-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:7px}.inline-preview-actions>span{font-size:10px;color:#647b73;flex:1;min-width:130px}.inline-preview-actions .btn{min-height:32px;padding:5px 9px;font-size:11px}.inline-preview-editor .icon{width:14px;height:14px}
@media(max-width:580px){.inline-preview-actions .btn{min-height:40px}.inline-preview-editor{padding:7px}.inline-preview-actions>span{width:100%;flex-basis:100%}}

.pose-part-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.pose-part-buttons .btn[aria-pressed="true"]{background:#247b70;color:#fff;border-color:#247b70}.pose-part-buttons .btn{min-height:38px}.pose-part-buttons .btn:last-child{margin-left:auto}@media(max-width:580px){.pose-part-buttons .btn{flex:1;min-width:110px;min-height:42px}.pose-part-buttons .btn:last-child{margin-left:0}}

.standing-panel .detail-body{display:grid;gap:16px}.standing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px}.standing-range{display:grid;gap:8px;font-size:12px}.standing-range span{display:flex;justify-content:space-between;gap:8px}.standing-range output{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--green)}.standing-range input{width:100%;accent-color:var(--green)}.standing-presets,.standing-display{display:flex;flex-wrap:wrap;gap:12px}.standing-display label{font-size:12px}.standing-com-handle{cursor:move;touch-action:none}.standing-com-handle:focus{outline:none}.standing-com-handle:focus circle{stroke:#bd6949;stroke-dasharray:3 3}
@media(max-width:580px){.standing-grid{grid-template-columns:1fr}.standing-panel .detail-body{gap:12px}}

.posture-choice{padding:20px 24px;margin:22px 0}.posture-choice .label-text{margin-bottom:12px}.posture-choice p{margin-top:12px}.posture-panel .detail-body{display:grid;gap:14px}.posture-grounding{font-size:13px;display:flex;align-items:center;gap:8px}.grounding-request{display:block;color:#8a6325;font-size:11px;margin-top:6px;max-width:250px}

.body-compression-controls{display:grid;gap:12px;padding:16px;background:#fff8ec;border:1px solid #ead7b8;border-radius:10px}.compression-buttons{display:flex;gap:8px;flex-wrap:wrap}.compression-handle{cursor:ns-resize;touch-action:none}.compression-handle:focus{outline:none}.compression-handle:focus rect{stroke:#7f4d20;stroke-width:3}.compression-handle text{pointer-events:none}


.standing-alignment-handle{touch-action:none}.standing-alignment-handle:focus{outline:none}.standing-alignment-handle:focus>circle{stroke:#8a4219;stroke-width:3}.standing-alignment-label{pointer-events:none}.standing-direct-controls{display:grid;gap:10px}.standing-direct-controls .standing-direct-parts{display:flex;flex-wrap:wrap;gap:7px}.standing-direct-controls .btn[aria-pressed="true"]{background:#247b70;color:#fff;border-color:#247b70}.standing-direct-controls .btn{min-height:36px}.standing-direct-value{font-size:12px;color:#536b5f}.standing-direct-value output{font-weight:700;font-variant-numeric:tabular-nums;color:var(--green)}
@media(max-width:580px){.standing-direct-controls .btn{min-height:42px;flex:1;min-width:100px}}

.standing-direct-controls{padding:12px 14px;background:#f2f7f5;border-bottom:1px solid #d8e4de}.standing-direct-controls label{display:flex;align-items:center;gap:6px;font-size:12px}.standing-direct-controls select.field{width:auto;max-width:190px;min-width:0;padding:6px 8px}.standing-direct-controls .standing-direct-parts[aria-label="立位の調整部位"] .btn{flex:0 0 auto;min-width:0;min-height:36px;padding:6px 10px}

.standing-direct-value{display:inline-block;min-width:60px;white-space:nowrap;font-variant-numeric:tabular-nums}.standing-direct-knee-value{display:inline-block;min-width:158px;white-space:nowrap;font-variant-numeric:tabular-nums}

.standing-com-tools{display:grid;gap:7px}.standing-com-tools>.btn{justify-self:start}.standing-com-tools>p{margin:0}

.preview-stage-controls{display:grid;gap:10px;padding-bottom:16px;border-bottom:1px solid var(--line)}.preview-stage-controls>label:not(.label-text){display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.6}.preview-stage-controls input[type=checkbox]{margin-top:3px;accent-color:var(--green)}.preview-support-batch{display:flex;gap:5px;flex-wrap:wrap}.preview-stage-controls .preview-support-batch .btn{width:auto;min-height:36px;margin:0;font-size:11px}

.object-palette-panel h3{font-size:14px;margin:0 0 7px}.object-palette-panel>p{line-height:1.7;margin-bottom:10px}.object-palette-group+.object-palette-group{margin-top:14px}.object-palette{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.object-palette-item{min-width:0;min-height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 3px;background:#f5f9f7;border:1px solid #d9e5df;border-radius:7px;color:#345d55;cursor:grab;font:inherit;font-size:11px;line-height:1.4}.object-palette-item:hover,.object-palette-item:focus-visible{background:#e5f2ec;border-color:#247b70}.object-palette-item:active{cursor:grabbing}.object-palette-item svg{width:40px;height:40px;pointer-events:none}.object-palette-item span{pointer-events:none}.object-palette-item:disabled{opacity:.5;cursor:wait}.diagram-object-handle{cursor:grab;touch-action:none}.diagram-object-handle:focus{outline:none}.diagram-object-handle:focus circle{stroke:#8a4219;stroke-width:3}.object-adjust-buttons{display:flex;flex-wrap:wrap;gap:4px;flex-basis:100%}.object-number-fields{display:flex;flex-wrap:wrap;gap:10px;flex-basis:100%}.object-number-fields label{display:flex;align-items:center;gap:5px;font-size:12px}.object-number-fields input{width:74px;padding:6px;border:1px solid #cfdfd6;border-radius:5px;color:#294e42;font:inherit}.selection-bar:has(.object-adjust-buttons){flex-wrap:wrap}.annotation:has([data-diagram-object]){cursor:move}
@media(max-width:580px){.object-palette{grid-template-columns:repeat(3,minmax(0,1fr))}.object-palette-item{min-height:82px;font-size:12px}.object-adjust-buttons .btn{min-height:40px}.object-number-fields input{font-size:16px}}

.problem-guidance{line-height:1.7;margin:8px 0 12px}.problem-sources{margin:12px 0;font-size:11px;line-height:1.65}.problem-sources summary{cursor:pointer;color:#386e61}.problem-sources p{margin:8px 0}.problem-sources ul{padding-left:17px}.problem-sources li+li{margin-top:8px}.problem-sources a{color:#2c7164;overflow-wrap:anywhere}
/* Dedicated patient viewing mode: no document metadata or editor controls. */
body.showing-mode{overflow:hidden}body.showing-mode #toast{display:none}
.show-mode{position:fixed;inset:0;z-index:2000;height:100vh;height:100dvh;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;padding:12px 20px;padding-top:max(12px,env(safe-area-inset-top));padding-right:max(20px,env(safe-area-inset-right));padding-bottom:max(12px,env(safe-area-inset-bottom));padding-left:max(20px,env(safe-area-inset-left));background:#fff;color:#173d35;overscroll-behavior:none;overflow:hidden}
.show-mode .show-button{min-width:48px;min-height:48px;box-sizing:border-box;border:2px solid #6b897f;border-radius:10px;padding:9px 16px;background:#fff;color:#173d35;font:inherit;font-size:20px;font-weight:650;line-height:1.25;cursor:pointer;touch-action:manipulation}
.show-mode .show-button:focus-visible,.show-mode #show-canvas:focus-visible{outline:3px solid #aa491c;outline-offset:3px}.show-mode .show-button:disabled{color:#78837f;border-color:#ccd5d1;background:#f3f5f4;cursor:default}.show-mode .show-button:active:not(:disabled){background:#e3f2ec}
.show-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.show-counter{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.show-stage{display:flex;flex-direction:column;flex:1;min-height:0;gap:10px;overflow:hidden}.show-stage h1{margin:0;font-size:clamp(20px,2.8vw,32px);line-height:1.35;font-weight:700;overflow-wrap:anywhere;flex-shrink:0}.show-figure-wrap{position:relative;display:flex;flex:1;min-height:0;min-width:0;overflow:hidden;border:1px solid #e2eae6;border-radius:10px;background:#fff}
.show-mode #show-canvas{display:block;width:100%;height:100%;max-width:none;min-width:0;touch-action:none;user-select:none;-webkit-user-select:none}.show-caption{flex-shrink:0;min-height:0;max-height:27vh;max-height:27dvh;overflow:auto;overscroll-behavior:contain;font-size:clamp(20px,2.5vw,28px);line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:#173d35;background:#f2f7f4;border-radius:8px;padding:10px 14px}.show-caption p{margin:0}.show-caption[hidden]{display:none}.show-review{margin:0;flex-shrink:0;font-size:16px;line-height:1.4;color:#794221}
.show-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 18px;flex-shrink:0}.show-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.show-mode .show-nav-button{border-color:#1c6453;background:#1c6453;color:#fff}.show-mode .show-nav-button:active:not(:disabled){background:#104b3d}.show-zoom{display:flex;align-items:center;justify-content:center;gap:8px}.show-zoom-value{min-width:60px;text-align:center;font-size:18px;font-weight:650;font-variant-numeric:tabular-nums}.show-zoom-hint{grid-column:1/-1;margin:0;text-align:center;font-size:15px;line-height:1.35;color:#48655c}
@media(max-width:600px) and (orientation:portrait){.show-mode{gap:8px;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:max(8px,env(safe-area-inset-bottom));padding-left:max(12px,env(safe-area-inset-left))}.show-topbar{gap:8px}.show-topbar .show-button{font-size:17px;padding:9px 10px}.show-counter{font-size:20px}.show-stage{gap:7px}.show-controls{grid-template-columns:minmax(0,1fr);gap:7px}.show-nav{gap:10px}.show-caption{padding:8px 10px;font-size:20px;max-height:25vh;max-height:25dvh}.show-zoom-hint{font-size:14px}}
@media(orientation:landscape) and (max-height:600px){.show-mode{gap:6px;padding:6px 12px;padding-top:max(6px,env(safe-area-inset-top));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:max(6px,env(safe-area-inset-bottom));padding-left:max(12px,env(safe-area-inset-left))}.show-topbar{gap:8px}.show-topbar .show-button{font-size:18px;padding:8px 12px}.show-counter{font-size:20px}.show-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,28%);grid-template-rows:auto minmax(0,1fr);gap:6px 12px}.show-stage h1{grid-column:1/-1;font-size:20px}.show-figure-wrap{grid-column:1;grid-row:2}.show-caption{grid-column:2;grid-row:2;align-self:stretch;max-height:100%;font-size:20px;line-height:1.55;padding:8px 10px}.show-stage:has(.show-caption[hidden]){grid-template-columns:minmax(0,1fr)}.show-review{grid-column:1/-1;font-size:14px}.show-controls{gap:0 12px}.show-zoom-hint{display:none}.show-mode .show-button{padding:8px 12px;font-size:18px}.show-nav{gap:8px}.show-zoom{gap:6px}.show-zoom-value{min-width:52px;font-size:17px}}
@media(prefers-reduced-motion:reduce){.show-mode *{scroll-behavior:auto;transition:none;animation:none}}
@media print{body.showing-mode{overflow:visible}body.showing-mode .print-area{display:none!important}.show-mode{display:none!important}}
/* Home introduction and example launchers. Other screens retain their layout. */
.home-page{padding-top:32px}.home-hero{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);align-items:center;gap:36px;padding:8px 0 28px}.home-hero-copy{min-width:0}.home-hero :is(h1,h2){font-size:clamp(32px,3.8vw,48px);line-height:1.4;letter-spacing:.02em;margin:12px 0 15px}.home-hero :is(h1,h2) span{color:#247b70}.home-hero-lead{font-size:17px;line-height:1.9;color:#48655c}.home-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:25px}.home-path{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:108px;padding:16px 14px;border:1px solid #d5e4dc;border-radius:12px;background:#fff;text-align:left;color:#204a3e}.home-path>span:not(.home-path-icon){min-width:0;flex:1}.home-path strong{display:block;font-size:24px;line-height:1.35}.home-path small{display:block;font-size:13px;line-height:1.6;margin-top:4px;overflow-wrap:anywhere}.home-path>.icon{width:17px;height:17px}.home-path-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:9px;background:#edf5f1}.home-path-create{color:#fff;background:#247b70;border-color:#247b70}.home-path-create .home-path-icon{background:#ffffff20}.home-path-create:hover{background:#1b6259}.home-path-show:hover{background:#edf5f1}.home-path:focus-visible{outline:3px solid #a34a21;outline-offset:4px}
.home-hero-visual{min-width:0;border:1px solid #d9e7df;border-radius:18px;padding:14px;background:#f1f7f3;box-shadow:0 8px 24px #173c2b08}.home-example-label{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px;line-height:1.5;color:#48655c;margin:0 0 8px}.home-example-label span:first-child{font-weight:650;color:#215d4c}.home-hero-figure{aspect-ratio:8/5;overflow:hidden;border-radius:10px;background:#fff}.home-hero-figure .human-figure{width:100%;height:100%;max-width:none;min-width:0}.home-hero-visual>p{font-size:12px;color:#48655c;margin:9px 0 0;line-height:1.6}
.home-resume{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;padding:16px 0 22px;border-bottom:1px solid #dfe7e2}.home-resume-copy{flex:1 1 240px;min-width:0}.home-resume-label{display:block;font-size:13px;color:#48655c}.home-recent-link{display:flex;align-items:center;gap:8px;min-height:48px;padding:5px 0;text-align:left;color:#247b70;font-size:15px;line-height:1.5;overflow-wrap:anywhere;max-width:100%}.home-recent-link .icon{width:16px;height:16px}.home-resume-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.home-page .btn{min-height:48px;font-size:14px}.home-resume-actions .btn{font-size:13px}.home-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:30px 0 17px}.home-section-heading h2,.home-movements h2{font-size:23px;line-height:1.5}.home-section-heading p{font-size:14px;color:#48655c;margin-top:5px}.home-editable-note{font-size:12px;white-space:nowrap;color:#48655c}
.use-case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.use-case-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #dce7e0;border-radius:13px;background:#fff;box-shadow:0 3px 12px #173c2b04}.use-case-card:hover{border-color:#9ebead}.use-case-figure{aspect-ratio:8/5;max-height:205px;min-width:0;overflow:hidden;background:#fff;border-bottom:1px solid #e5ede8}.use-case-figure .human-figure{display:block;width:100%;height:100%;min-width:0;max-width:none}.use-case-content{display:flex;flex-direction:column;flex:1;min-width:0;padding:17px 18px 18px}.use-case-kind{font-size:12px;font-weight:650;color:#247b70;letter-spacing:.06em;margin-bottom:5px}.use-case-content h3{font-size:18px;line-height:1.6;overflow-wrap:anywhere}.use-case-content>p{font-size:14px;line-height:1.8;color:#48655c;margin:8px 0 16px;overflow-wrap:anywhere}.use-case-footer{margin-top:auto}.use-case-footer .btn{width:100%;justify-content:space-between;min-height:48px;font-size:14px}.use-case-footer .icon{width:17px;height:17px}.home-movements{margin-top:32px;padding-top:23px;border-top:1px solid #dfe7e2}.home-movements h2{font-size:18px}.home-page .movement-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}.home-page .privacy-banner{margin-top:25px;font-size:12px;line-height:1.8}
@media(max-width:1000px){.home-hero{gap:22px}.home-path-icon{display:none}.home-paths{gap:9px}.home-path{padding:13px 12px}.home-path strong{font-size:22px}.use-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.home-hero :is(h1,h2){font-size:36px}.home-hero-lead{font-size:16px}}
@media(max-width:760px){.home-hero{grid-template-columns:minmax(0,1fr);gap:20px}.home-hero-visual{max-width:540px;width:100%;justify-self:center}.home-hero :is(h1,h2){font-size:36px}.home-hero-figure{max-height:260px}.home-paths{margin-top:20px}.home-path{min-height:96px}.home-editable-note{white-space:normal;text-align:right}}
@media(max-width:600px){.home-page{padding:20px 16px 35px}.home-hero{padding:0 0 10px;gap:18px}.home-hero :is(h1,h2){font-size:clamp(27px,7.5vw,32px);margin:9px 0 12px}.home-hero-lead{font-size:15px;line-height:1.9}.home-paths{gap:10px;margin-top:19px}.home-path{display:block;min-height:104px;padding:13px 12px}.home-path>.icon{position:absolute;right:12px;top:16px;width:16px;height:16px}.home-path strong{font-size:23px}.home-path small{font-size:13px;line-height:1.6;padding-right:2px}.home-hero-visual{padding:10px;border-radius:13px}.home-example-label{font-size:11px}.home-hero-figure{max-height:218px}.home-hero-visual>p{font-size:11px}.home-resume{gap:10px;padding:16px 0}.home-resume-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:6px}.home-resume-actions .btn{min-width:0;padding:10px 8px;font-size:13px}.home-resume-actions .btn:last-child{grid-column:1/-1}.home-section-heading{display:block;margin:25px 0 14px}.home-section-heading h2{font-size:22px}.home-section-heading p{font-size:14px}.home-editable-note{display:block;text-align:left;margin-top:7px}.use-case-grid{grid-template-columns:minmax(0,1fr);gap:16px}.use-case-figure{max-height:205px}.use-case-content{padding:15px 16px 16px}.use-case-content h3{font-size:18px}.use-case-content>p{font-size:14px;margin-bottom:14px}.home-page .movement-shortcuts .btn{font-size:13px;min-height:48px}.home-page .privacy-banner{align-items:flex-start;padding:14px 12px}}
@media(prefers-reduced-motion:reduce){.home-page *{scroll-behavior:auto;transition:none}}
/* Editing and preview workflow: readable controls, focused primary actions. */
.editor-main-actions{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;min-width:0}.editor-main-actions>.btn,.editor-save-menu>summary{min-height:48px;font-size:14px}.editor-save-menu{position:relative;min-width:0}.editor-save-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;cursor:pointer;padding:11px 15px;border:1px solid #cddbd3;background:#fff;border-radius:9px;line-height:1.5}.editor-save-menu>summary::-webkit-details-marker{display:none}.editor-save-menu>summary:after{content:'▾';margin-left:4px}.editor-save-menu[open]>summary:after{content:'▴'}.editor-save-menu-body{position:absolute;z-index:40;right:0;top:calc(100% + 6px);width:280px;max-width:calc(100vw - 32px);padding:12px;background:#fff;border:1px solid #cddbd3;border-radius:10px;box-shadow:0 10px 30px #173c2b25}.editor-save-menu-body .btn{display:flex;width:100%;min-height:48px;text-align:left;justify-content:flex-start;white-space:normal;font-size:14px}.editor-save-menu-body p{font-size:13px;color:#48655c;margin:0 4px 6px}.editor-save-menu-body hr{border:0;border-top:1px solid #dfe7e2;margin:8px 0}.editor-shell .muted,.editor-shell .canvas-footer,.editor-shell .canvas-settings,.editor-shell .save-state,.preview-page .export-note,.preview-page .preview-info{color:#48655c}.editor-shell .save-state,.editor-shell .small,.editor-shell .canvas-settings,.editor-shell .canvas-footer,.editor-shell .editor-bottom-tip{font-size:13px}.editor-shell .btn.compact,.editor-shell .tool,.editor-shell .note-label,.editor-shell .problem-option,.editor-shell .label-text,.editor-shell .detail-panel summary,.editor-shell .extra-notes summary{font-size:14px}.editor-shell .btn,.editor-shell .tool,.editor-shell .icon-btn,.editor-shell .zoom-controls button{min-height:44px}.editor-shell .icon-btn,.editor-shell .zoom-controls button{min-width:44px}.editor-shell .field{font-size:14px}.editor-shell .field::placeholder{font-size:13px;color:#60766b}.editor-shell .problem-option{min-height:36px;line-height:1.7}.editor-shell .notes-hint,.editor-shell .editor-bottom-tip{color:#61512e;font-size:13px}.editor-shell .detail-panel summary{min-height:48px}.editor-shell .step-item{font-size:13px}.editor-shell .step-item .step-n{font-size:11px}.editor-shell .step-list{max-height:calc(100vh - 300px)}
.object-target-list{display:grid;gap:6px;max-height:45vh;overflow:auto;margin:12px 0;overscroll-behavior:contain}.object-target-list label{display:flex;align-items:center;gap:12px;min-height:48px;padding:9px 12px;border:1px solid #dfe7e2;border-radius:8px;line-height:1.6;font-size:15px}.object-target-list input{width:20px;height:20px;accent-color:#247b70;flex-shrink:0}
.preview-options-heading{display:none}.preview-mobile-bar,.preview-options-backdrop{display:none}.preview-page .export-options{padding:16px;max-height:calc(100vh - 40px);overflow:auto;overscroll-behavior:contain}.preview-page .export-note{font-size:13px;line-height:1.8;margin-top:10px}.preview-page .export-options .btn{min-height:48px;font-size:14px}.preview-page .export-options .label-text,.preview-page .export-options .field{font-size:14px}.preview-control-group{border-top:1px solid #dfe7e2;margin-top:15px}.preview-control-group>summary{cursor:pointer;min-height:48px;padding:13px 0;font-size:15px;font-weight:650}.preview-control-body{display:grid;gap:15px;padding-bottom:12px}.preview-control-body .label-text{margin-top:0}.preview-page .preview-info{font-size:13px;flex-wrap:wrap;gap:6px}.preview-stage-figure{cursor:pointer}.preview-stage-figure[data-preview-selected]>.preview-stage-outline{stroke:#197664;stroke-width:3;stroke-dasharray:8 5}.preview-stage-figure:focus-visible>.preview-stage-outline{stroke:#104b3d;stroke-width:4;stroke-dasharray:none}.preview-stage-figure:focus-visible{outline:none}
.home-extra-use-cases{margin-top:20px;border-top:1px solid #dfe7e2}.home-extra-use-cases>summary{min-height:56px;padding:15px 2px;cursor:pointer;font-size:16px;color:#1b6259;font-weight:650}.home-extra-use-cases .use-case-grid{margin-top:6px}.use-case-common{grid-template-columns:repeat(2,minmax(0,1fr))}.home-path-show strong{font-size:21px;overflow-wrap:anywhere;line-height:1.5}.home-movements{margin-top:16px;padding-top:16px}
.show-topbar{flex-wrap:wrap}.show-use-sample{background:#edf5f1!important;border-color:#8bb6a5!important}.show-sample-label{font-size:14px;line-height:1.5;color:#48655c;flex-shrink:0}.show-sample-error{font-size:16px;line-height:1.6;color:#7e361f;background:#fff1e8;border:1px solid #d7a691;border-radius:8px;padding:8px 12px;max-height:25dvh;overflow:auto;flex-shrink:0}.show-sample-error[hidden]{display:none}
@media(max-width:850px){.editor-main-actions{width:100%}.editor-top .editor-main-actions .btn{font-size:14px;min-height:48px}.editor-shell .tool{font-size:14px;padding:8px}.editor-shell .tools{gap:3px}.preview-page .preview-layout{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:760px){.home-hero-visual{display:none}.preview-page{padding-bottom:105px}.preview-page .preview-layout{display:block;margin-top:18px}.preview-page .export-options{display:none;position:fixed;z-index:510;top:15vh;top:15dvh;bottom:0;left:0;right:0;max-height:none;border-radius:18px 18px 0 0;padding:0 20px max(20px,env(safe-area-inset-bottom));box-shadow:0 -8px 30px #173c2b25}.preview-page .export-options.is-open{display:block}.preview-options-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;background:#fff;padding:12px 0;border-bottom:1px solid #dfe7e2;z-index:1}.preview-options-heading h2{font-size:19px}.preview-page .preview-options-heading .btn{margin:0;width:auto;min-height:48px}.preview-page .preview-options-heading .icon{display:none}.preview-options-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:500;background:#173c2b66;cursor:default}.preview-mobile-bar{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:8px;position:fixed;z-index:480;bottom:0;left:0;right:0;padding:10px 12px max(10px,env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #d7e3da;box-shadow:0 -3px 15px #173c2b10}.preview-mobile-bar .btn{font-size:14px;min-height:48px;padding:10px 7px;min-width:0;line-height:1.5}.preview-mobile-bar .icon{display:none}.preview-page .preview-control-body .field{font-size:16px}.preview-page .page-title{font-size:24px}.preview-page .page-lead{font-size:14px}.home-path-show strong{font-size:20px;padding-right:12px}}
@media(max-width:600px){.editor-main-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:8px}.editor-main-actions>[data-action="show"]{grid-column:1/-1}.editor-main-actions>.btn,.editor-save-menu>summary{width:100%;padding:10px 8px;font-size:14px;min-height:48px}.editor-main-actions>[data-action="preview"] .icon,.editor-save-menu>summary .icon{display:none}.editor-save-menu-body{max-width:calc(100vw - 32px)}.editor-shell .document-title{font-size:18px}.editor-shell .field,.editor-shell .free-problem .field,.editor-shell select{font-size:16px}.editor-shell .step-list{max-height:none}.editor-shell .canvas-top .small{font-size:12px}.editor-shell .canvas-top{flex-wrap:wrap}.editor-shell .canvas-footer{font-size:13px}.editor-shell .tool{min-height:48px;min-width:44px;padding:8px 10px}.editor-shell .tools .spacer{display:none}.editor-shell .step-item{font-size:13px;min-width:140px}.editor-shell .step-item .step-n{font-size:11px}.editor-shell .btn.compact{min-height:44px;font-size:14px}.home-path-show strong{font-size:18px;line-height:1.5;padding-right:0}.home-path-show{padding-top:12px;min-height:132px}.home-path-show>.icon{display:none}.use-case-common{grid-template-columns:minmax(0,1fr)}.show-topbar .show-button{font-size:16px;padding:8px 10px}.show-topbar .show-use-sample{order:4;width:100%;min-height:44px}.show-sample-label{font-size:13px}}
@media print{.preview-mobile-bar,.preview-options-backdrop,.editor-save-menu-body{display:none!important}}
/* Preview: paper setup first, independently scrollable settings and pages. */
.preview-basic{display:grid;gap:12px}.preview-basic .label-text,.export-options .preview-basic .label-text{margin:0 0 5px;font-size:14px}.preview-basic .field{padding:8px 10px}.preview-basic .btn{margin-top:0}.preview-pdf-range>summary{cursor:pointer;min-height:44px;padding:9px 0;font-size:14px}.preview-pdf-range .field{margin-top:5px}.preview-main-actions{margin-top:16px}.preview-page .export-options{overflow-y:scroll;scrollbar-gutter:stable;scrollbar-color:#8ba99b #edf2ef;scrollbar-width:auto}.preview-page .export-options::-webkit-scrollbar{width:12px}.preview-page .export-options::-webkit-scrollbar-track{background:#edf2ef;border-radius:8px}.preview-page .export-options::-webkit-scrollbar-thumb{background:#8ba99b;border:2px solid #edf2ef;border-radius:8px}.preview-hide-target{cursor:pointer}.preview-hide-target[data-preview-hide-selected]>.preview-hide-hit,.preview-hide-target:focus-visible>.preview-hide-hit{stroke:#a34a21;stroke-width:2}.preview-hide-target:focus-visible{outline:none}.preview-delete-toolbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px;margin-bottom:10px;background:#fff6eb;border:1px solid #c7a382;border-radius:8px;color:#67401e;font-size:14px}.preview-delete-toolbar[hidden]{display:none}.preview-delete-toolbar .btn{font-size:14px;min-height:44px;background:#fff}
@media(min-width:761px){body.previewing-mode{height:100vh;height:100dvh;overflow:hidden}body.previewing-mode .site-footer{display:none}.preview-page{height:calc(100vh - 76px);height:calc(100dvh - 76px);display:flex;flex-direction:column;padding:16px 22px 18px;max-width:1440px;overflow:hidden}.preview-page .page-title{font-size:24px;margin:3px 0 5px}.preview-page .page-lead{font-size:13px}.preview-page .preview-layout{flex:1;min-height:0;grid-template-columns:280px minmax(0,1fr);gap:20px;margin-top:16px;overflow:hidden;align-items:stretch}.preview-page .export-options{position:relative;top:auto;height:100%;max-height:100%;min-height:0;overflow-x:hidden;padding:16px}.preview-page .preview-paper-wrap{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:4px 12px 32px 4px}}
@media(min-width:761px) and (max-width:850px){.preview-page{height:calc(100vh - 66px);height:calc(100dvh - 66px)}.preview-page .preview-layout{grid-template-columns:260px minmax(0,1fr);gap:14px}}
@media(max-width:760px){.preview-delete-toolbar{top:6px}.preview-page .export-options{overflow-y:scroll}.preview-page .preview-basic .field{font-size:16px}.preview-page .preview-basic .btn{margin-top:0}}
@media print{.preview-delete-toolbar{display:none!important}body.previewing-mode{height:auto;overflow:visible}}
/* Stage navigation shows the actual saved diagram at every viewport width. */
.editor-shell .step-item{display:flex;flex-direction:column;align-items:stretch;gap:7px;width:100%;max-width:none;min-width:0;padding:9px;border:1px solid #dfe7e2;background:#fff;font-size:13px}.editor-shell .step-item.active{background:#edf5f1;border-color:#6b9f8c;box-shadow:inset 3px 0 #247b70}.editor-shell .step-thumbnail{display:block;width:100%;min-width:0;background:#f8faf8;border-radius:5px;overflow:hidden}.editor-shell .step-thumbnail .human-figure{display:block;width:100%;height:auto;aspect-ratio:8/5;max-width:none;min-width:0;margin:0}.editor-shell .step-caption{display:block;line-height:1.5}.editor-shell .step-caption .step-n{display:inline-block;margin:0 7px 0 0;font-size:12px;font-weight:700;color:#247b70}.compression-batch-toggle{display:flex;align-items:flex-start;gap:9px;min-height:44px;padding:8px 0;font-size:14px;line-height:1.7}.compression-batch-toggle input{width:18px;height:18px;margin-top:3px;accent-color:#247b70;flex-shrink:0}.home-paths{grid-template-columns:minmax(0,1fr)}.home-path-create{max-width:460px}
@media(max-width:600px){.editor-shell .step-item{width:150px;min-width:150px;max-width:150px;padding:8px;flex-shrink:0}.editor-shell .step-thumbnail .human-figure{display:block;height:auto}.editor-main-actions>[data-action="preview"]{grid-column:auto}.home-path-create{max-width:none}}
/* Keep additions beside the text tool and leave the drawing visible. */
.editor-shell .tools{position:relative;overflow:visible}.canvas-object-menu{display:contents}.canvas-object-menu>summary{display:flex;list-style:none;cursor:pointer;white-space:nowrap}.canvas-object-menu>summary::-webkit-details-marker{display:none}.canvas-object-menu>summary:after{content:'▾';font-size:12px;margin-left:3px}.canvas-object-menu[open]>summary{background:#edf5f1;border-color:#88b39e;color:#1b6259}.canvas-object-popover{position:absolute;z-index:35;top:calc(100% + 4px);left:8px;right:8px;max-height:330px;max-height:min(330px,55vh);overflow:auto;overscroll-behavior:contain;padding:14px;background:#fff;border:1px solid #bcd2c5;border-radius:10px;box-shadow:0 8px 25px #173c2b26}.canvas-object-popover .object-palette-panel h3{font-size:15px}.canvas-object-popover .object-palette{grid-template-columns:repeat(5,minmax(0,1fr))}.canvas-object-popover .object-palette-item{font-size:13px;min-height:74px}.canvas-object-popover .object-palette-item svg{width:34px;height:34px}.canvas-object-popover .object-palette-panel>p:last-child{margin:12px 0 0}.text-width-controls{flex-basis:100%;display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:4px 0}.text-width-controls label{display:flex;align-items:center;gap:8px;font-size:14px}.text-width-controls input[type="range"]{width:150px;max-width:40vw;accent-color:#247b70}.text-width-number input{width:78px;min-height:44px;padding:7px;border:1px solid #c9d9ce;border-radius:6px;color:#203b36;font-size:16px}.text-width-warning{flex-basis:100%;font-size:14px;line-height:1.6;color:#805025}.text-width-handle{touch-action:none;cursor:ew-resize}.text-width-handle:focus{outline:none}.text-width-handle:focus circle{stroke:#805025;stroke-width:3}
@media(max-width:600px){.canvas-object-popover{padding:12px}.canvas-object-popover .object-palette{grid-template-columns:repeat(3,minmax(0,1fr))}.canvas-object-popover .object-palette-item{min-height:70px;font-size:13px}.canvas-object-menu>summary.tool{min-height:48px}.text-width-controls{gap:8px}.text-width-controls input[type="range"]{width:140px}.text-width-controls .small{font-size:13px}}
.editor-shell .canvas-panel{overflow:visible}.editor-shell .canvas-top{border-radius:12px 12px 0 0}

/* Compact preview chrome; zoom resizes only the on-screen paper container. */
.preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;min-height:40px}.preview-heading-main{display:flex;align-items:center;gap:12px;min-width:0}.preview-heading h1{font-size:17px;line-height:1.4;margin:0;white-space:nowrap}.preview-heading .btn{min-height:36px;padding:6px 9px;font-size:14px;white-space:nowrap}.preview-page-count{font-size:13px;color:#526b5e;white-space:nowrap}.preview-help{position:relative;flex-shrink:0}.preview-help>summary{cursor:pointer;font-size:13px;min-height:36px;display:flex;align-items:center;color:#32685a}.preview-help>summary:after{content:'▾';margin-left:5px}.preview-help>p{position:absolute;right:0;top:100%;z-index:15;width:300px;max-width:calc(100vw - 36px);margin:4px 0 0;padding:12px 14px;background:white;border:1px solid #c8d9ce;border-radius:8px;box-shadow:0 5px 20px #173c2b20;color:#375849;font-size:14px;line-height:1.7}.preview-document{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.preview-page .preview-document .preview-paper-wrap{flex:1;height:auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px;scrollbar-gutter:stable;background:#e9eeea;border:1px solid #d6e0d8;border-radius:8px 8px 0 0}.preview-document [data-preview-papers]{max-width:none;margin:0 auto}.preview-document .paper{width:100%;max-width:none;position:relative}.preview-document .page-number{margin-bottom:18px}.preview-statusbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;flex-shrink:0;padding:4px 8px;background:#fff;border:1px solid #d6e0d8;border-top:0;border-radius:0 0 8px 8px;font-size:13px}.preview-fit-controls,.preview-zoom-controls{display:flex;align-items:center;gap:3px;min-width:0}.preview-statusbar .btn{min-height:32px;padding:5px 8px;font-size:13px;white-space:nowrap}.preview-statusbar .btn[aria-pressed="true"]{background:#e3f0e8;border-color:#7ba994;color:#185943}.preview-statusbar .icon-btn{width:32px;height:32px;min-width:32px}.preview-statusbar .icon{width:17px;height:17px}.preview-zoom-label{margin-right:3px;white-space:nowrap}.preview-zoom-controls input[type="range"]{width:110px;min-width:60px;accent-color:#247b70}.preview-zoom-percent{display:flex;align-items:center;gap:3px;font-variant-numeric:tabular-nums}.preview-zoom-percent input{width:62px;height:32px;padding:4px;border:1px solid #b9cec0;border-radius:5px;font:inherit;text-align:right;color:#214b3c}.preview-statusbar :focus-visible{outline:2px solid #247b70;outline-offset:2px}
@media(min-width:761px){body.previewing-mode .app-header{height:60px}.preview-page{height:calc(100vh - 60px);height:calc(100dvh - 60px);padding:8px 18px 10px;max-width:none}.preview-page .preview-layout{margin-top:6px;gap:16px}.preview-page .preview-document .preview-paper-wrap{height:auto}}
@media(min-width:761px) and (max-width:1100px){.preview-zoom-label{display:none}.preview-zoom-controls input[type="range"]{width:80px}.preview-statusbar{justify-content:center}}
@media(max-width:760px){.preview-page{padding-top:10px;padding-left:10px;padding-right:10px}.preview-heading{align-items:flex-start;gap:4px}.preview-heading-main{flex-wrap:wrap;gap:4px 8px}.preview-heading h1{font-size:16px}.preview-heading-main .btn{font-size:13px;min-height:40px;padding:6px 4px}.preview-heading-main .icon{display:none}.preview-page-count{font-size:12px}.preview-help>summary{font-size:12px;min-height:40px}.preview-page .preview-layout{margin-top:8px}.preview-document{height:calc(100vh - 205px);height:calc(100dvh - 205px);min-height:380px}.preview-statusbar{order:-1;border:1px solid #d6e0d8;border-bottom:0;border-radius:8px 8px 0 0;justify-content:center;padding:4px}.preview-page .preview-document .preview-paper-wrap{border-radius:0 0 8px 8px}.preview-statusbar .btn,.preview-statusbar .icon-btn{min-height:44px}.preview-statusbar .icon-btn{min-width:44px}.preview-zoom-percent input{height:40px;font-size:16px}.preview-zoom-controls input[type="range"]{width:100px;min-height:40px}.preview-zoom-label{display:none}}
@media print{.preview-heading,.preview-statusbar{display:none!important}}

/* Learning materials and the illustrated manual entry. */
.free-use-label{display:inline-block;margin:0 0 12px;padding:5px 12px;border:1px solid #b5d4c5;border-radius:20px;background:#edf6f0;color:#1c6153;font-size:14px;font-weight:700}.guide-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px}.template-guide{margin:16px 0;border-top:1px solid #dfe7e2}.template-guide summary{cursor:pointer;min-height:48px;padding:12px 0;color:#1b6259;font-weight:650}.template-guide h3{font-size:15px;margin:14px 0 6px}.template-guide ul,.template-guide ol{padding-left:22px;line-height:1.8;font-size:14px}.template-guide li+li{margin-top:7px}.template-guide a{color:#185e52;text-underline-offset:3px;overflow-wrap:anywhere}.template-card{display:flex;flex-direction:column}.template-card>.btn{margin-top:auto;align-self:flex-start}.visit-counter{font-variant-numeric:tabular-nums;font-size:12px;line-height:1.6}@media(max-width:600px){.app-header .guide-link{font-size:12px;padding:8px;max-width:96px;white-space:normal;text-align:center}.template-guide summary{font-size:15px}.template-card>.btn{width:100%}.free-use-label{font-size:13px}}

.template-source-scope{display:block;color:#52645d;font-size:12px;line-height:1.6;margin:4px 0 8px}

/* Concrete use scenes: speech stays above the artwork and never covers faces or paper. */
.home-use-cases .use-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.home-use-cases .use-case-figure{aspect-ratio:auto;max-height:none;overflow:visible;background:#f3f7f2}
.home-use-cases .use-case-figure>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:#faf7f0}
.scene-speech-band{padding:15px 18px 20px;background:#f2f7f3}
.scene-speech{position:relative;display:inline-block;max-width:100%;margin:0;padding:9px 14px;border:1px solid #adc9bb;border-radius:16px;background:#fff;color:#21483c;font-size:16px;font-weight:650;line-height:1.65;overflow-wrap:anywhere}
.scene-speech:after{content:'';position:absolute;left:25px;bottom:-7px;width:12px;height:12px;background:#fff;border-right:1px solid #adc9bb;border-bottom:1px solid #adc9bb;transform:rotate(45deg)}
.home-use-cases .use-case-content>p{font-size:15px}
@media(max-width:700px){.home-use-cases .use-case-grid{grid-template-columns:minmax(0,1fr);gap:18px}.scene-speech-band{padding:13px 16px 19px}.scene-speech{font-size:15px;padding:9px 12px}.home-use-cases .use-case-figure{max-height:none}}

/* Viewing text size applies to every scene without changing the saved sheet. */
.show-mode[data-show-text-size]{overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable}
.show-mode[data-show-text-size] .show-stage{flex:1 0 auto;overflow:visible}
.show-mode[data-show-text-size] .show-figure-wrap{flex:1 0 160px;min-height:160px}
.show-mode[data-show-text-size] .show-caption{overflow:auto;overscroll-behavior-y:auto;scroll-margin-block:12px}
.show-text-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;max-width:100%}
.show-mode .show-text-button{max-width:100%;min-width:48px;min-height:48px;border-color:#1c6453;background:#edf6f0;color:#173d35;white-space:normal;overflow-wrap:anywhere}
.show-text-value{font-size:16px;font-weight:700;line-height:1.4;white-space:nowrap;color:#234f43}
.show-mode[data-show-text-size="large"] .show-stage h1{font-size:clamp(26px,3.5vw,38px);line-height:1.4}
.show-mode[data-show-text-size="large"] .show-caption{font-size:clamp(26px,3.2vw,36px);line-height:1.55;max-height:40vh;max-height:40dvh}
.show-mode[data-show-text-size="extra-large"] .show-stage h1{font-size:clamp(32px,4.2vw,46px);line-height:1.4}
.show-mode[data-show-text-size="extra-large"] .show-caption{font-size:clamp(32px,4vw,44px);line-height:1.55;max-height:40vh;max-height:40dvh}
@media(max-width:600px){.show-mode .show-text-controls{gap:5px 7px}.show-mode .show-text-button{font-size:17px;padding:9px 10px}.show-text-value{font-size:15px}}
@media(orientation:landscape) and (max-height:600px){
 .show-mode[data-show-text-size] .show-stage{min-height:220px}
 .show-mode[data-show-text-size="large"] .show-stage,.show-mode[data-show-text-size="extra-large"] .show-stage{display:flex;flex-direction:column;min-height:0}
 .show-mode[data-show-text-size="large"] .show-caption,.show-mode[data-show-text-size="extra-large"] .show-caption{align-self:stretch;max-height:40vh;max-height:40dvh}
 .show-mode .show-text-button{font-size:17px}
}

.show-mode .show-caption:focus-visible{outline:3px solid #aa491c;outline-offset:2px}

/* A quiet footer entry and readable single-file story dialog. */
.site-footer .footer-story-link{display:inline-flex;align-items:center;min-height:44px;padding:4px 0;color:#526b5d;font-size:13px;text-decoration:none;text-underline-offset:4px}.site-footer .footer-story-link:hover,.site-footer .footer-story-link:focus-visible{text-decoration:underline}.site-footer .footer-story-link:focus-visible{outline:2px solid #247b70;outline-offset:4px}.origin-story-heading{margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid #e1e9e2}.origin-story-kicker{margin:0 0 8px;color:#527762;font-size:13px;letter-spacing:.08em}.origin-story h2{font-size:26px;line-height:1.55;margin:0}.origin-story-byline{margin:10px 0 0;font-size:14px;color:#697d70}.origin-story-body p{font-size:16px;line-height:2.05;margin:0 0 22px;overflow-wrap:anywhere;line-break:strict}.origin-story-signature{font-size:13px;line-height:1.8;color:#607565;text-align:right;margin:26px 0 8px}

dialog:has(.origin-story){overflow-y:auto}.origin-story-body p{color:#29443b}

/* Recovery controls stay reachable on small screens and never hide the draft. */
.output-limit-actions{display:flex;margin-top:16px}
.output-limit-actions,#save-conflict-notice .flex{flex-wrap:wrap;gap:10px}
.output-limit-actions .btn,#save-conflict-notice .btn{min-height:44px;max-width:100%;white-space:normal}
body.previewing-mode:has([data-output-limit]),body.previewing-mode:has(#save-conflict-notice){height:auto;min-height:100vh;min-height:100dvh;overflow:auto}

/* Compact text navigation: diagrams remain in the selected scene list. */
.movement-navigation{position:relative;min-width:0;width:100%;color:var(--ink);overflow:visible}
.movement-navigation [hidden]{display:none!important}
.mnv-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:9px 0 13px;min-width:0}
.mnv-help{font-size:11px;color:#5d756c;line-height:1.5}
.mnv-search{display:flex;align-items:center;gap:8px;min-width:0;flex:0 1 330px;margin-left:auto}
.mnv-search-label{font-size:11px;white-space:nowrap;color:#526b61}
.mnv-search input{display:block;width:100%;min-width:0;min-height:38px;padding:7px 10px;border:1px solid #bfd2c7;border-radius:7px;background:#fff;color:var(--ink);font:inherit;font-size:13px;line-height:1.5}
.mnv-search input::placeholder{color:#73857b;font-size:12px}
.mnv-zone+.mnv-zone{margin-top:13px}
.mnv-zone-label{display:block;margin-bottom:6px;color:#536f62;font-size:11px;font-weight:650}
.mnv-entry-row{display:flex;align-items:stretch;flex-wrap:wrap;gap:7px}
.mnv-entry{display:inline-flex;align-items:stretch;min-width:0;max-width:100%;border:1px solid #c7d9d0;border-radius:7px;background:#fff;transition:background .12s}
.mnv-entry.is-current{border-color:#247b70;background:#edf6f0;box-shadow:inset 0 0 0 1px #247b70}
.mnv-entry-button,.mnv-chevron{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:8px 13px;color:#254d41;font-size:13px;font-weight:600;line-height:1.4;border-radius:6px;white-space:normal;overflow-wrap:anywhere}
.mnv-basic-button{flex:1}
.mnv-entry-button:hover,.mnv-chevron:hover{background:#e6f1eb}
.mnv-chevron{min-width:40px;padding:8px;border-left:1px solid #d5e2db;border-radius:0 6px 6px 0;color:#4b7665}
.mnv-chevron[aria-expanded=true],.mnv-category-button[aria-expanded=true]{background:#dfeee5;color:#184e3f}
.mnv-category-button{min-width:90px}
.mnv-all-entry{margin-left:5px;border-color:#aebfb5}
.mnv-all-button{color:#50685d;font-weight:550}
.mnv-panel{position:absolute;z-index:35;display:flex;flex-direction:column;box-sizing:border-box;max-width:calc(100vw - 24px);border:1px solid #98b9a6;border-radius:10px;background:#fff;box-shadow:0 8px 30px #193d302b;overflow:hidden}
.mnv-panel[data-nav-viewport=true]{z-index:1000}
.mnv-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-bottom:1px solid #dbe7df;background:#f1f7f3;flex-shrink:0}
.mnv-panel-heading h3{font-size:15px;color:#244b3d;margin:0}
.mnv-text-button{min-height:34px;padding:5px 7px;font-size:12px;color:#306f57;border-radius:5px;line-height:1.4;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.mnv-text-button:hover{background:#e5f0e9}
.mnv-panel-content{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:12px 14px 15px;scrollbar-gutter:stable}
.mnv-subsection+.mnv-subsection{margin-top:14px;padding-top:12px;border-top:1px solid #e2eae5}
.mnv-subsection h4{margin:0 0 7px;font-size:12px;color:#546d5d;font-weight:650}
.mnv-related-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.mnv-route{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-height:42px;min-width:0;max-width:100%;padding:9px 11px;border:1px solid #d4e1d9;border-radius:6px;background:#fff;text-align:left;color:#2b5043;line-height:1.5;font-size:13px;overflow-wrap:anywhere}
.mnv-route:hover{background:#edf5ef;border-color:#7baa91}
.mnv-route.is-current{border-color:#247b70;background:#e3f0e8;box-shadow:inset 3px 0 #247b70}
.mnv-route small{font-size:11px;line-height:1.55;font-weight:400;color:#536f5e;overflow-wrap:anywhere}
.mnv-results,.mnv-all{margin-top:13px;border:1px solid #d4e1d8;border-radius:8px;background:#fbfdfb;overflow:hidden}
.mnv-results{margin-bottom:14px}
.mnv-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 12px;background:#eff5f0;border-bottom:1px solid #dde8e0}
.mnv-results-heading p{font-size:12px;font-weight:600;color:#46664f}
.mnv-result-list,.mnv-all-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:370px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:11px}
.mnv-all-list{display:flex;flex-wrap:wrap;align-content:flex-start;max-height:430px;gap:7px}
.mnv-all-route{flex:0 1 auto;min-height:38px;font-size:12px;padding:7px 10px}
.mnv-no-results{padding:18px 13px;color:#546e5f;font-size:13px;line-height:1.7}
.movement-navigation[aria-busy=true] .mnv-route,.movement-navigation[aria-busy=true] .mnv-basic-button{cursor:progress}
.library-controls{grid-template-columns:minmax(0,1fr);gap:20px;overflow:visible}
.home-page .home-movements{margin:22px 0 30px;padding:20px 23px;border:1px solid var(--line);border-radius:12px;background:#fff}
.home-page .home-movements>h2{font-size:18px;margin-bottom:7px}
.home-quickstart{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:25px 0 18px}
.home-quickstart h1{font-size:26px;margin:4px 0 7px;line-height:1.4}
.home-quickstart .free-use-label{margin:0;font-size:12px}
.home-quickstart>div{min-width:0}
.home-quickstart .btn{flex-shrink:0}
.home-introduction{border:1px solid var(--line);border-radius:12px;background:#fff;margin:18px 0 28px;padding:0 20px}
.home-introduction>summary{cursor:pointer;font-weight:600;font-size:14px;color:#416452;padding:15px 3px}
.home-introduction .home-hero{padding-top:15px;margin-bottom:10px}
@media(max-width:700px){
 .mnv-toolbar{gap:8px;flex-wrap:wrap;margin-top:8px}.mnv-help{font-size:11px}.mnv-search{flex-basis:300px}.mnv-entry-button,.mnv-chevron{font-size:13px;min-height:44px;padding:8px 11px}.mnv-chevron{padding:8px;min-width:42px}.mnv-entry-row{gap:7px}.mnv-all-entry{margin-left:0}.home-page .home-movements{padding:16px}.home-quickstart{padding:16px 0 10px;gap:12px}.home-quickstart h1{font-size:24px}.home-introduction{padding:0 14px}
}
@media(max-width:440px){
 .mnv-toolbar{display:block}.mnv-search{margin:9px 0 0;max-width:none}.mnv-search input{font-size:16px;min-height:44px}.mnv-entry-button,.mnv-chevron{font-size:14px;padding:8px 10px}.mnv-chevron{padding:8px;min-width:44px}.mnv-category-button{min-width:82px}.mnv-related-list,.mnv-result-list{grid-template-columns:minmax(0,1fr)}.mnv-panel-content{padding:10px}.mnv-panel-heading{padding:8px 10px}.mnv-route{min-height:44px;font-size:14px}.mnv-all-list{display:grid;grid-template-columns:minmax(0,1fr);max-height:360px;padding:9px}.mnv-all-route{width:100%}.mnv-results-heading{padding:7px 9px}.mnv-results-heading p{font-size:12px}.mnv-text-button{min-height:44px}.home-quickstart{align-items:flex-start;gap:8px}.home-quickstart h1{font-size:22px}.home-quickstart>.btn{width:auto;font-size:13px;padding:10px 12px}.home-introduction>summary{font-size:13px}
}
.movement-navigation button:focus-visible{outline:3px solid #a34a21;outline-offset:2px}
@media(max-width:600px){.home-page .home-resume-actions .btn:last-child{grid-column:auto}}
@media(max-height:360px){.mnv-panel-heading{padding:4px 8px}.mnv-panel .mnv-text-button{min-height:32px;padding:3px 7px}.mnv-panel-content{padding:8px}}
.creation-audience{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin:0 0 22px;padding:16px 20px;border:1px solid #bfd3c8;border-radius:12px;background:#f4f8f5}.creation-audience h2{margin:0;font-size:18px;color:#214f42}.creation-audience p{margin:4px 0 0;font-size:14px;color:#486457}.creation-audience-buttons{display:flex;gap:10px;flex-wrap:wrap}.creation-audience-buttons .btn{min-height:48px;min-width:132px;font-size:16px;font-weight:700;border:2px solid #247b70}.creation-audience-buttons .btn[aria-pressed="true"]{box-shadow:0 2px 5px #1e544329}.creation-audience.is-compact{margin:14px 0;padding:12px 16px}.btn.strong-action{min-height:46px;padding:10px 16px;border:2px solid #175a4c;border-radius:8px;font-size:15px;font-weight:700;box-shadow:0 2px 4px #173f3326;text-decoration:none}.btn.strong-action:hover:not(:disabled){background:#155c4e;box-shadow:0 3px 7px #173f333d}.btn.strong-action:active:not(:disabled){transform:translateY(1px);box-shadow:none}.btn.strong-action:focus-visible,.creation-audience-buttons .btn:focus-visible{outline:3px solid #ad4c1c;outline-offset:3px}.object-batch-callout{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;width:100%;padding:12px;background:#edf6f0;border:1px solid #a7c9b8;border-radius:9px}.object-batch-callout p{flex-basis:100%;margin:0;color:#375f4e}.object-batch-guidance{padding:10px 12px;background:#edf6f0;border:1px solid #a7c9b8;border-radius:7px;font-weight:650}.strong-action:disabled{box-shadow:none}.standing-com-tools>.strong-action{margin:4px 0 8px}
@media(max-width:600px){.creation-audience{padding:14px;gap:10px}.creation-audience-buttons{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.creation-audience-buttons .btn{min-width:0;padding:10px 6px}.object-batch-callout .strong-action{width:100%}.btn.strong-action{white-space:normal;line-height:1.5}}

/* Shared public introduction, before and after the app starts. */
.home-quick-lead{max-width:680px;margin:8px 0 0;font-size:14px;line-height:1.8;color:#486457;overflow-wrap:anywhere}.home-quickstart>div{flex:1 1 440px}.public-home-links{display:flex;flex-wrap:wrap;gap:10px 20px;margin:16px 0}.public-home-links a{text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}.public-home .small{line-height:1.8}@media(max-width:600px){.home-quick-lead{font-size:14px}.public-home-links{display:grid;grid-template-columns:1fr;gap:4px}}

/* Keep startup controls visually stable until initialization completes. */
.startup-home [data-startup-disabled]:disabled{opacity:1;cursor:progress}.startup-home .free-use-label[aria-hidden],.startup-home [data-site-usage-notice][aria-hidden]{min-inline-size:min(19em,100%)}
.page.home-page {max-width:1280px}
.home-sister-sites {
 display:grid;
 grid-template-columns:auto repeat(2,minmax(0,1fr));
 align-items:stretch;
 gap:12px;
 margin-bottom:18px;
}
.home-sister-label {align-self:center;margin-right:6px;color:#456158;font-size:13px;font-weight:700}
.sister-site-card {
 --sister-surface:#fff0f3;
 --sister-border:#e8bac5;
 --sister-ink:#622a3e;
 display:grid;
 grid-template-columns:auto minmax(0,1fr) auto;
 align-items:center;
 gap:12px;
 min-width:0;
 padding:9px 14px 9px 10px;
 border:1px solid var(--sister-border);
 border-radius:15px;
 background:var(--sister-surface);
 color:var(--sister-ink);
 text-decoration:none;
}
.sister-site-card[data-sister-site="kaizyozu"] {--sister-surface:#fff5e3;--sister-border:#ead0a5;--sister-ink:#653d1b}
.sister-site-card:hover {border-color:var(--sister-ink)}
.sister-site-card:focus-visible,.home-create-link:focus-visible {outline:3px solid #b46b30;outline-offset:3px}
.sister-site-card>img {width:50px;height:50px;border-radius:11px;object-fit:contain}
.sister-site-copy {display:grid;gap:2px;line-height:1.35}
.sister-site-copy strong {font-size:18px}
.sister-site-copy>span {font-size:13px}
.sister-site-arrow {display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#ffffffbf}
.sister-site-arrow .icon {width:17px;height:17px}

.home-page .home-quickstart {
 display:grid;
 grid-template-columns:minmax(0,.95fr) minmax(0,1fr);
 align-items:center;
 gap:clamp(24px,4vw,58px);
 padding:clamp(27px,4vw,58px);
 border:1px solid #356758;
 border-radius:24px;
 background:radial-gradient(ellipse at 89% 0%,#326d58 0%,transparent 58%),linear-gradient(125deg,#132f2a,#194739 74%,#214c3c);
 box-shadow:0 18px 44px #183b2b22;
 color:#fff;
}
.home-quickstart #home-quick-heading {margin:0;font-size:clamp(30px,3.1vw,47px);line-height:1.23;letter-spacing:.025em;color:#fff}
.home-quickstart .home-quick-lead {max-width:40em;margin:17px 0 0;color:#deece5;font-size:15px;line-height:1.85}
.home-overview-actions {display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;margin-top:22px}
.home-create-link {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:14px;
 min-height:49px;
 padding:0 18px;
 border-radius:10px;
 background:#e9f4df;
 color:#1a3e30;
 font-size:15px;
 font-weight:800;
 text-decoration:none;
 white-space:nowrap;
}
.home-create-link:hover {background:#fff}
.home-overview-actions .free-use-label {background:transparent;border-color:#78a092;color:#e4f0e9;font-size:11px}
.home-sample-sheet {
 position:relative;
 min-width:0;
 margin:7px 0;
 padding:17px;
 border:1px solid #e3eadf;
 border-radius:18px;
 background:#fffefa;
 box-shadow:5px 7px 0 -2px #a7bdab,9px 12px 0 -3px #7a9a85,0 14px 26px #0b251c63;
 color:#204a3d;
}
.home-sample-sheet figcaption {display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:10px;padding-bottom:9px;border-bottom:1px solid #d8e2d6}
.home-sample-sheet figcaption strong {font-size:18px}
.home-sample-sheet figcaption span {color:#547267;font-size:12px}
.home-sample-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0;padding:0;list-style:none}
.home-sample-steps li {min-width:0;padding:5px 3px 7px;border:1px solid #e0e7df;border-radius:8px;background:#f3f7f2;text-align:center}
.home-sample-steps li>span {display:block;min-height:2.8em;color:#365c4e;font-size:11px;font-weight:700;line-height:1.35}
.home-sample-figure {display:block;width:100%;height:auto;aspect-ratio:16/13;object-fit:contain}

.home-page .home-resume {margin-top:16px;padding:9px 14px;border:1px solid #dae5dd;border-radius:12px;background:#fff}
.home-workspace {margin-top:22px;scroll-margin-top:92px}
.home-workspace:focus {outline:none}
.home-workspace:focus-visible {outline:3px solid #247b70;outline-offset:4px;border-radius:14px}
.home-workspace>.creation-audience {margin-bottom:12px;background:#fff}
.home-workspace>.home-movements {margin-top:0;border-color:#cdded4;border-radius:15px;box-shadow:0 10px 23px #2857440b}
.home-page .home-section-heading {border-bottom:1px solid #dbe7dc;padding-bottom:12px}
.home-page .use-case-card {border-radius:17px;box-shadow:0 9px 22px #2857440a}
.home-page .home-introduction>.small {padding:0 14px 12px}

#modal[open][aria-labelledby="help-dialog-title"] {display:flex;flex-direction:column;overflow:hidden;padding:0}
.help-dialog-heading {display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line);background:#f5f9f6}
.help-dialog-heading h2 {margin:0;font-size:18px}
.help-dialog-heading .btn {flex-shrink:0;min-height:44px}
.help-dialog-content {min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 18px 22px}
.help-dialog-content:focus-visible {outline:2px solid #247b70;outline-offset:-2px}

@media(max-width:820px) {
 .home-page .home-quickstart {grid-template-columns:minmax(0,1fr);gap:21px}
 .home-sample-sheet {width:100%;max-width:580px}
}
@media(max-width:560px) {
 .home-sister-sites {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;margin-bottom:14px}
 .home-sister-label {grid-column:1/-1;font-size:11px}
 .sister-site-card {grid-template-columns:auto minmax(0,1fr);gap:7px;padding:7px;border-radius:11px}
 .sister-site-card>img {width:35px;height:35px;border-radius:8px}
 .sister-site-copy strong {font-size:14px}
 .sister-site-copy>span {font-size:10px}
 .sister-site-arrow {display:none}
 .home-page .home-quickstart {padding:21px 17px;gap:14px;border-radius:18px}
 .home-quickstart #home-quick-heading {font-size:clamp(24px,7.35vw,35px)}
 .home-quickstart .home-quick-lead {margin-top:12px;font-size:13px;line-height:1.75}
 .home-overview-actions {margin-top:14px;gap:8px}
 .home-create-link {min-height:44px;font-size:14px}
 .home-sample-sheet {margin:3px 0 6px;padding:10px;border-radius:12px}
 .home-sample-sheet figcaption {margin-bottom:6px;padding-bottom:6px}
 .home-sample-sheet figcaption strong {font-size:15px}
 .home-sample-steps {gap:4px}
 .home-sample-steps li>span {font-size:10px}
 .home-workspace {scroll-margin-top:130px}
}
