.visual-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.layout-preview{width:46px;height:46px;fill:none;stroke:var(--study-accent);stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;flex-shrink:0}.layout-choice-fieldset{border:0;padding:0;margin:20px 0}.layout-choice-fieldset>legend{font-size:13px;font-weight:650;margin-bottom:12px}.layout-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.layout-choice{display:flex;gap:10px;align-items:center;position:relative;border:1px solid var(--study-border);border-radius:13px;background:var(--study-surface);padding:16px;cursor:pointer;min-width:0;min-height:130px}.layout-choice>span{min-width:0}.layout-choice strong{font-size:13px;line-height:1.5;display:block;color:var(--study-ink)}.layout-choice small{display:block;font-size:11px;line-height:1.7;color:var(--study-muted);margin-top:5px}.layout-choice input{position:absolute;right:9px;top:9px;width:15px;height:15px;accent-color:var(--study-accent)}.layout-choice:has(input:checked){border-color:var(--study-accent);background:var(--study-soft);box-shadow:inset 0 0 0 1px var(--study-accent)}.layout-choice:focus-within{outline:2px solid var(--study-accent);outline-offset:3px}.structure-create-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.structure-create-intro{font-size:13px;line-height:1.8;color:var(--study-muted)}dialog:has(#f4-structure-new){width:min(1000px,calc(100vw - 32px));max-width:1000px}.structure-empty{padding:26px;border:1px solid var(--study-border);border-radius:16px;background:var(--study-surface)}.structure-empty>p{font-size:13px;line-height:1.8;color:var(--study-muted)}.structure-format-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}.structure-format-gallery article{padding:18px;border:1px solid var(--study-border);border-radius:12px;background:var(--study-wash);min-width:0}.structure-format-gallery h4{font-size:15px;margin:12px 0 8px}.structure-format-gallery p{font-size:12px;line-height:1.7;color:var(--study-muted);margin:0}.structure-library>h3{font-size:14px;margin:0 0 16px}.structure-library .f4-structure-pick{display:flex;gap:10px;align-items:start;min-width:0}.structure-library .layout-preview{width:30px;height:30px}.structure-library .f4-structure-pick>span{min-width:0}.structure-library strong{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.structure-library small{font-size:11px;line-height:1.6}.structure-reader>p{margin-top:16px}.structure-reader .between>div{min-width:0}.structure-reader .between h3{margin:7px 0 0;font-size:23px;line-height:1.4}.structure-view-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--study-border);margin-top:20px;padding:16px 0;font-size:12px}.structure-view-controls label{display:flex;align-items:center;gap:8px}.structure-view-controls select{min-height:36px;padding:7px 10px;border:1px solid var(--study-border);border-radius:8px;background:var(--study-surface);color:var(--study-ink)}.structure-detail-toggle input{width:16px;height:16px;accent-color:var(--study-accent)}.study-copy-layout{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0 20px;padding:14px 18px;border:1px solid var(--study-border);border-radius:12px;background:var(--study-wash)}.study-copy-layout p{font-size:12px;line-height:1.7;color:var(--study-muted);margin:0}.study-copy-layout>.btn{flex-shrink:0;white-space:normal}.visual-reading-note{font-size:12px;line-height:1.8;color:var(--study-muted)}.study-visual{padding:8px;min-width:0;color:var(--study-ink)}.study-visual ol{list-style:none;margin:0;padding:0}.study-visual li{min-width:0;position:relative}.study-visual .visual-node{margin:0 0 14px;padding:16px;border:1px solid var(--study-border);border-radius:13px;background:var(--study-surface);box-shadow:0 3px 12px #302b5006;min-width:0;overflow-wrap:anywhere}.visual-node>header{display:flex;align-items:start;gap:10px}.visual-node h4{font-size:16px;line-height:1.5;margin:0;color:var(--study-ink)}.visual-number{display:inline-grid;place-items:center;flex-shrink:0;font-size:10px;line-height:1.4;min-width:25px;min-height:25px;padding:4px 6px;background:var(--study-soft);color:var(--study-accent);border-radius:7px}.visual-explanation{margin:12px 0 0}.visual-explanation>summary{display:flex;gap:10px;cursor:pointer;list-style:none;font-size:12px;color:var(--study-muted);line-height:1.6}.visual-explanation>summary:after{content:"+";margin-left:auto;color:var(--study-accent);font-size:16px}.visual-explanation[open]>summary:after{content:"−"}.visual-explanation>summary::-webkit-details-marker{display:none}.visual-explanation .f4-markdown{font-size:13px;line-height:1.8;margin-top:12px}.visual-explanation .f4-markdown p:last-child{margin-bottom:0}.visual-node>footer{padding-top:12px}.visual-node .citations{margin:0}.visual-node .citation{white-space:normal;line-height:1.6}.study-visual-root{position:relative;padding:18px 24px;border:1px solid var(--study-accent);border-radius:13px;background:var(--study-soft);max-width:480px;margin:0 auto 30px;text-align:center;overflow-wrap:anywhere}.study-visual-root>strong{display:block;font-size:18px;line-height:1.5;margin-top:7px}.study-visual-root:after{content:"";position:absolute;left:50%;top:100%;height:30px;border-left:2px solid var(--study-border)}.study-visual-map>ol,.study-visual-mindmap>ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;border-top:2px solid var(--study-border);padding-top:20px}.study-visual-map>ol>li:before,.study-visual-mindmap>ol>li:before{content:"";position:absolute;left:50%;bottom:100%;height:20px;border-left:2px solid var(--study-border)}.study-visual-mindmap>ol>li:nth-child(4n+1)>.visual-node{border-top:3px solid var(--study-accent)}.study-visual-mindmap>ol>li:nth-child(4n+2)>.visual-node{border-top:3px solid #6b9a98}.study-visual-mindmap>ol>li:nth-child(4n+3)>.visual-node{border-top:3px solid #bd8b60}.study-visual-mindmap>ol>li:nth-child(4n+4)>.visual-node{border-top:3px solid #a584ab}.study-visual ol ol{margin-left:12px;padding-left:14px;border-left:2px solid var(--study-border)}.study-visual ol ol>li:before{content:"";position:absolute;left:-16px;top:26px;width:14px;border-top:2px solid var(--study-border)}.study-visual-tree>.study-visual-root{text-align:left;margin-left:0}.study-visual-tree>.study-visual-root:after{left:27px}.study-visual-tree>ol{margin-left:26px;padding-left:22px;border-left:2px solid var(--study-border)}.study-visual-tree>ol>li:before{content:"";position:absolute;left:-24px;top:28px;width:22px;border-top:2px solid var(--study-border)}.study-visual-process>ol>li:not(:last-child):after{content:"↓";display:block;text-align:center;font-size:25px;color:var(--study-accent);margin:0 0 14px}.study-visual-table .visual-node{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:12px}.study-visual-table .visual-explanation{margin:0}.study-visual-table .visual-node>footer{grid-column:1/-1;padding-top:0}.study-visual-text ol{padding-left:20px}.study-visual-text .visual-node{margin:16px 0;padding:12px 0;border-bottom:1px solid var(--study-border)}.study-visual-text h4{font-size:16px}.study-visual-text .f4-markdown{font-size:13px;line-height:1.8}.study-visual-text footer{margin:10px 0}.f4-canvas{background:var(--study-wash);scrollbar-color:var(--study-accent) var(--study-wash)}.f4-canvas:focus-visible{outline:2px solid var(--study-accent)}dialog:has(#prepare-form){width:min(1050px,calc(100vw - 32px));max-width:1050px;max-height:90dvh}#prepare-form>.notice{margin-bottom:18px}.prepare-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:22px;align-items:start}.prepare-main{min-width:0}.prepare-layout h3{font-size:20px;line-height:1.4;margin:8px 0 16px}.prepare-operations{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.prepare-operations>label{display:flex;align-items:start;gap:9px;padding:13px;border:1px solid var(--study-border);border-radius:11px;cursor:pointer;background:var(--study-surface);min-width:0}.prepare-operations input{width:15px;height:15px;accent-color:var(--study-accent);flex-shrink:0;margin-top:3px}.prepare-operations strong{display:block;font-size:13px;line-height:1.5;color:var(--study-ink)}.prepare-operations small{display:block;font-size:11px;line-height:1.7;color:var(--study-muted);margin-top:5px}.prepare-operations>label:has(input:checked){border-color:var(--study-accent);background:var(--study-soft);box-shadow:inset 0 0 0 1px var(--study-accent)}.prepare-operations>label:focus-within{outline:2px solid var(--study-accent);outline-offset:2px}.prepare-goal>.small{margin:12px 0 24px;line-height:1.8}.prepare-sources>.between{align-items:start;gap:12px;flex-wrap:wrap}.prepare-sources .source-checks{max-height:330px;overflow:auto;padding:3px;margin-top:12px;scrollbar-color:var(--study-accent) var(--study-wash)}.prepare-sources .source-checks label{padding:12px;align-items:start}.prepare-sources .source-checks small{font-size:11px;line-height:1.6}.prepare-sources .source-checks label:has(input:disabled){opacity:.6;cursor:default}.prepare-select-actions{display:flex;flex-wrap:wrap;gap:14px;font-size:11px}.prepare-summary{padding:20px;border:1px solid var(--study-border);border-radius:14px;background:var(--study-wash);min-width:0}.prepare-summary>p{font-size:12px;line-height:1.8;color:var(--study-muted)}.prepare-output-views{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:18px 0}.prepare-output-views>span{display:grid;justify-items:center;gap:5px;padding:10px 5px;border:1px solid var(--study-border);border-radius:9px;background:var(--study-surface);font-size:10px;color:var(--study-muted);min-width:0}.prepare-output-views .layout-preview{width:28px;height:28px}.prepare-estimate-slot #prepare-estimate{font-size:12px;line-height:1.8;padding:13px;background:var(--study-soft);color:var(--study-ink);margin:14px 0 0}.prepare-estimate-slot .form-error{margin:12px 0 0;line-height:1.7}.prepare-estimate-slot .form-error:empty{display:none}.prepare-processing{border-top:1px solid var(--study-border);padding-top:14px;margin-top:18px;font-size:12px}.prepare-processing summary{cursor:pointer;line-height:1.7;color:var(--study-muted)}.prepare-processing p{font-size:11px;line-height:1.9;margin:12px 0 0;color:var(--study-muted)}#prepare-form>.dialog-actions{margin-top:22px;padding-top:18px;border-top:1px solid var(--study-border)}@media(max-width:1000px){.structure-library{display:flex;flex-wrap:wrap}.structure-library>h3{width:100%}.structure-library .f4-structure-pick{max-width:240px;flex:1 0 200px}.structure-format-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.prepare-layout{grid-template-columns:1fr}.prepare-summary{padding:18px}.prepare-sources .source-checks{max-height:280px}.structure-create-fields{grid-template-columns:1fr}.study-copy-layout{align-items:start;flex-direction:column}.study-copy-layout>.btn{width:100%}.structure-reader .between h3{font-size:21px}.study-visual-map>ol,.study-visual-mindmap>ol{grid-template-columns:1fr;gap:12px}.study-visual-root{padding:16px}.study-visual-root>strong{font-size:16px}.study-visual-table .visual-node{grid-template-columns:1fr}.visual-node h4{font-size:15px}.study-visual .visual-node{padding:13px}.study-visual-tree>ol{margin-left:12px;padding-left:14px}.study-visual-tree>.study-visual-root:after{left:13px}.study-visual-tree>ol>li:before{left:-16px;width:14px}.study-visual ol ol{margin-left:6px;padding-left:10px}.study-visual ol ol>li:before{left:-12px;width:10px}.structure-view-controls{align-items:start;flex-direction:column}.structure-empty{padding:18px}.structure-format-gallery{gap:10px}.structure-format-gallery article{padding:13px}.structure-format-gallery h4{font-size:13px}.structure-format-gallery p{font-size:11px}.layout-choice{padding:14px 10px;min-height:138px;flex-direction:column;align-items:start;gap:7px}.layout-choice small{font-size:10px}.layout-choice .layout-preview{width:34px;height:34px}}@media(max-width:420px){dialog:has(#prepare-form),dialog:has(#f4-structure-new){width:calc(100vw - 20px);padding:18px}.prepare-operations{grid-template-columns:1fr}.prepare-operations label{padding:12px}.prepare-sources .eyebrow,.prepare-goal .eyebrow,.prepare-summary .eyebrow{font-size:10px}.prepare-output-views{gap:6px}.prepare-output-views>span{font-size:10px}.structure-format-gallery{grid-template-columns:1fr 1fr}.layout-choice-grid{gap:9px}.study-visual{padding:0}#prepare-form>.dialog-actions{display:flex;flex-direction:column-reverse;align-items:stretch}#prepare-form>.dialog-actions .btn{width:100%;justify-content:center}}.structure-library{max-height:65vh;overflow:auto}@media(max-width:1000px){.structure-library{max-height:240px;display:block}.structure-library .f4-structure-pick{max-width:100%;width:100%}}.structure-format-start{display:flex;align-items:flex-start;flex-direction:column;gap:10px;text-align:left;padding:20px;border:1px solid var(--study-border);border-radius:12px;background:var(--study-wash);color:var(--study-ink);min-width:0}.structure-format-start:hover{border-color:var(--study-accent);background:var(--study-soft)}.structure-format-start:focus-visible{outline:2px solid var(--study-accent);outline-offset:2px}.structure-format-start>strong{font-size:14px;line-height:1.5}.structure-format-start>span{font-size:12px;line-height:1.8;color:var(--study-muted)}.structure-format-start>small{font-size:11px;line-height:1.6;color:var(--study-accent);margin-top:auto}.prepare-views-heading{font-size:12px;line-height:1.7;margin:18px 0 10px;color:var(--study-ink)}.prepare-output-views{margin-top:10px}dialog:has(#prepare-form)[open]{display:flex;flex-direction:column;overflow:hidden}#prepare-form{display:flex;flex-direction:column;min-height:0}.prepare-layout{overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--study-accent) var(--study-wash);padding:3px;margin:-3px}#prepare-form>.dialog-actions{flex-shrink:0;margin-bottom:0}.prepare-layout .prepare-processing{padding-bottom:3px}@media(max-width:760px){.structure-format-start{padding:14px;gap:8px}.structure-format-start>strong{font-size:13px}.structure-format-start>span{font-size:11px}.structure-format-start>small{font-size:10px}.structure-format-start .layout-preview{width:34px;height:34px}dialog:has(#prepare-form){max-height:94dvh}.prepare-operations{grid-template-columns:repeat(2,minmax(0,1fr))}.prepare-operations>label{padding:10px;gap:7px}.prepare-operations strong{font-size:12px}.prepare-operations small{font-size:10px;line-height:1.6}#prepare-form>.dialog-actions{margin-top:14px;padding-top:12px}.prepare-summary{padding:16px}.prepare-layout h3{font-size:19px}.prepare-goal>.small{font-size:11px}.prepare-select-actions .text-button{min-height:36px}.prepare-sources .source-checks{max-height:220px}}@media(max-width:600px){.structure-format-gallery{grid-template-columns:1fr}.structure-format-start{display:grid;grid-template-columns:32px minmax(0,1fr);gap:5px 12px;padding:14px}.structure-format-start .layout-preview{grid-column:1;grid-row:1/4;width:32px;height:32px}.structure-format-start>strong,.structure-format-start>span,.structure-format-start>small{grid-column:2}.structure-format-start>strong{font-size:14px}.structure-format-start>span{font-size:11px;line-height:1.65}.structure-format-start>small{margin:3px 0 0;font-size:10px}}.sb-scroller{max-width:100%;height:min(65dvh,650px);min-height:350px;overflow:auto;border:1px solid var(--study-border);border-radius:14px;background:var(--study-wash);overscroll-behavior:contain;scrollbar-color:var(--study-accent) var(--study-wash)}.sb-sheet{position:relative}.sb-board{position:absolute;left:0;top:0;transform-origin:0 0;background-image:radial-gradient(var(--study-border) 1px,transparent 1px);background-size:22px 22px}.sb-connections{position:absolute;inset:0;pointer-events:none;overflow:visible}.sb-connections path{fill:none;stroke:var(--study-accent);stroke-width:2;opacity:.65}.sb-node,.sb-root{position:absolute;width:260px;border:1px solid var(--study-border);border-radius:13px;background:var(--study-surface);color:var(--study-ink);box-shadow:0 4px 16px #302b5009;box-sizing:border-box}.sb-node{padding:12px;display:flex;flex-direction:column;gap:10px}.sb-node>header{display:grid;grid-template-columns:30px 20px minmax(0,1fr);gap:5px;align-items:start;min-height:44px}.sb-handle{cursor:grab;touch-action:none;background:var(--study-soft);border:0;color:var(--study-accent);width:30px;min-height:44px;border-radius:7px;font-size:24px;line-height:1;user-select:none}.sb-handle:active{cursor:grabbing}.sb-handle:focus-visible,.sb-title:focus-visible{outline:2px solid var(--study-accent);outline-offset:3px}.sb-number{font-size:10px;color:var(--study-muted);padding-top:8px}.sb-title{border:0;background:none;color:inherit;font:inherit;font-size:13px;line-height:1.5;font-weight:650;padding:3px 0;cursor:pointer;text-align:left;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere}.sb-explanation{font-size:12px;line-height:1.6;color:var(--study-muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;flex:1}.sb-explanation.expanded{display:block;overflow:auto}.sb-explanation p:first-child{margin-top:0}.sb-node>footer{max-height:35px;overflow:auto;flex-shrink:0;font-size:10px;color:var(--study-muted)}.sb-node .citations{margin:0}.sb-node .citation{font-size:10px;padding:4px 7px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sb-root{padding:14px 18px;min-height:82px;background:var(--study-soft);border-color:var(--study-accent)}.sb-root>small{display:block;font-size:10px;color:var(--study-accent);margin-bottom:5px}.sb-root>strong{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere}.sb-node.is-dragging{z-index:3;border-color:var(--study-accent);box-shadow:0 8px 28px #7752ab30}.sb-board.is-saving .sb-handle{pointer-events:none;opacity:.5}.sb-status{margin:15px 0 10px;font-size:12px;line-height:1.7;color:var(--study-muted)}.sb-status.error{color:var(--danger,#b54b39)}.structure-trash-list{display:grid;gap:12px}.structure-trash-row{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:16px;border:1px solid var(--study-border);border-radius:12px;background:var(--study-surface)}.structure-trash-row h3{margin:0 0 5px;font-size:16px}.structure-trash-row p{margin:0;color:var(--study-muted);font-size:12px}.structure-reader>.between{gap:14px;flex-wrap:wrap}.note-panel-heading>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.note-ai-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.note-ai-compare>section{border:1px solid var(--study-border);border-radius:12px;padding:16px;max-height:50dvh;overflow:auto;background:var(--study-surface);min-width:0}.note-ai-compare h3{font-size:14px;margin:0 0 14px}.note-ai-compare article{font-size:13px;line-height:1.75;overflow-wrap:anywhere}.note-polish-form .prepare-output-views,.note-polish-form .prepare-views-heading{display:none}@media(max-width:700px){.sb-scroller{height:58dvh;min-height:330px}.structure-trash-row{align-items:flex-start;flex-wrap:wrap}.structure-view-controls .btn{min-height:44px}.note-ai-compare{grid-template-columns:1fr}.note-ai-compare>section{max-height:35dvh}.note-panel-heading>div:last-child{justify-content:flex-end}.note-panel-heading .btn{white-space:normal;min-height:40px;font-size:11px}}.note-polish-form [hidden]{display:none!important}.sb-board.is-readonly .sb-node>header{grid-template-columns:20px minmax(0,1fr)}.sb-board.is-readonly .sb-title{cursor:default}.sb-root-header{display:flex;align-items:center;gap:10px;min-width:0}.sb-root-header>small{font-size:10px;color:var(--study-accent)}.sb-root>.sb-root-header .sb-handle{flex:none}.sb-board[data-editing=true] .sb-root-header{cursor:grab;touch-action:none}.sb-root.is-dragging{z-index:20;box-shadow:0 8px 28px #7752ab30}.sb-board[data-editing=true] .sb-connections{z-index:2}.sb-link-handle{pointer-events:all;touch-action:none;cursor:crosshair;fill:var(--study-surface);stroke:var(--study-accent);stroke-width:2.5}.sb-link-handle:hover,.sb-link-handle:focus{fill:var(--study-accent);stroke:var(--study-ink);stroke-width:3;outline:none}.sb-connections .sb-link-preview{stroke-width:3;stroke-dasharray:8 5;opacity:1}.sb-link-button{min-height:44px;flex:none;border:1px solid var(--study-border);border-radius:7px;padding:6px 9px;font-size:11px;color:var(--study-accent);background:var(--study-soft);cursor:crosshair}.sb-board[data-editing=true] .sb-node>footer{display:flex;align-items:center;gap:6px;min-height:44px;max-height:66px;overflow:auto}.sb-node>footer>small{font-size:9px}.sb-link-target{outline:2px dashed var(--study-accent);outline-offset:5px;cursor:crosshair}.sb-link-invalid{opacity:.6}.sb-link-hover{outline:4px solid var(--study-accent);outline-offset:5px;box-shadow:0 0 0 9px var(--study-soft)}.sb-board.is-linking .sb-link-target *{cursor:crosshair}.sb-board.is-linking .sb-link-target input,.sb-board.is-linking .sb-link-target select{pointer-events:none}.sb-root:focus-visible,.sb-node:focus-visible{outline:3px solid var(--study-accent);outline-offset:5px}.sb-board.is-saving .sb-link-handle{pointer-events:none}@media(pointer:coarse){.sb-link-handle{r:17px;stroke-width:3}.sb-link-button{min-width:90px}}.sb-board[data-editing=true] .sb-node>footer{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:3px;min-height:74px;max-height:74px;overflow:visible}.sb-block-links{display:flex;align-items:center;gap:7px;flex:none}.sb-block-links .sb-edit-block{min-height:44px;margin:0;flex:1;justify-content:center;font-size:11px}.sb-node-citations{min-width:0;max-height:26px;overflow:auto;font-size:9px;line-height:1.5}.sb-node-citations small{font-size:9px}.sb-block-links:empty{display:none}.sb-node.is-selected>footer{margin-top:auto}.sb-scroller{position:relative}.structure-origin{border:0;padding:0;margin:20px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.structure-origin legend{font-size:13px;font-weight:650;margin-bottom:10px}.structure-origin>label{display:flex;align-items:flex-start;gap:9px;border:1px solid var(--study-border);border-radius:12px;padding:14px;background:var(--study-surface);cursor:pointer}.structure-origin>label:has(input:checked){border-color:var(--study-accent);background:var(--study-soft)}.structure-origin>label:has(input:disabled){opacity:.6;cursor:default}.structure-origin input{margin-top:3px;flex-shrink:0;accent-color:var(--study-accent)}.structure-origin strong{display:block;font-size:13px;line-height:1.5}.structure-origin small{display:block;margin-top:6px;font-size:11px;line-height:1.65;color:var(--study-muted)}.structure-saved-source[hidden]{display:none!important}.structure-create-hint{line-height:1.7}.structure-result-header{padding:20px;border:1px solid var(--study-border);border-radius:14px;background:var(--study-soft)}@media(max-width:700px){.structure-origin{grid-template-columns:1fr}.structure-origin>label{padding:12px}.structure-result-header{display:block}.structure-result-header .btn{width:100%;margin-top:12px;white-space:normal}}dialog[open]:has(#f4-structure-new){display:flex;flex-direction:column;overflow:hidden;max-height:88dvh}dialog:has(#f4-structure-new) .dialog-head{position:static;flex-shrink:0;margin-bottom:16px;padding-top:0}#f4-structure-new{display:flex;flex-direction:column;min-height:0;gap:0;overflow:hidden}#f4-structure-new .structure-create-body{overflow:auto;min-height:0;padding:0 8px 0 2px;overscroll-behavior:contain}#f4-structure-new .layout-choice-fieldset,#f4-structure-new .structure-origin{max-height:none;overflow:visible}#f4-structure-new .layout-choice{min-height:100px;padding:12px;gap:10px}#f4-structure-new .layout-preview{width:34px;height:34px}#f4-structure-new .layout-choice-fieldset{margin:14px 0}#f4-structure-new .structure-origin{margin:16px 0}#f4-structure-new>.dialog-actions{flex-shrink:0;border-top:1px solid var(--study-border);padding-top:15px;margin-top:12px}#f4-structure-new>.form-error:empty{display:none}.structure-prepare-form .prepare-output-views,.structure-prepare-form .prepare-views-heading{display:none}.f4-structure-layout{display:block}.f4-structure-layout .structure-library{display:flex;align-items:center;flex-wrap:nowrap;gap:12px;max-height:none;overflow-x:auto;padding:14px;margin-bottom:16px}.f4-structure-layout .structure-library>h3{width:auto;flex:none;margin:0 8px 0 0;font-size:12px;white-space:nowrap}.f4-structure-layout .structure-library .f4-structure-pick{flex:0 0 220px;min-width:180px;max-width:260px;margin:0;min-height:70px}.structure-library .layout-preview{width:32px;height:32px;flex-shrink:0}.sb-node.is-selected{z-index:10}.sb-node.is-selected.is-dragging{z-index:20}.sb-node.is-selected>footer{max-height:56px;overflow:auto;flex-shrink:0}.sb-zoom .sb-zoom-reset{width:64px;font-size:12px}.sb-zoom-reset output{pointer-events:none}@media(min-width:900px){.sb-toolbar{position:sticky;top:8px;z-index:25}}.structure-reader{min-width:0}.sb-toolbar{display:flex;flex-direction:column;gap:14px;padding:16px;margin:18px 0 12px;border:1px solid var(--study-border);border-radius:14px;background:var(--study-surface)}.sb-edit-actions,.sb-view-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.sb-view-actions{padding-top:12px;border-top:1px solid var(--study-border)}.sb-mode-badge{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:650;color:var(--study-accent);padding:8px 11px;border-radius:8px;background:var(--study-soft);margin-right:4px}.sb-mode-badge .icon{width:15px;height:15px}.sb-zoom,.sb-pan-buttons{display:inline-flex;align-items:center;border:1px solid var(--study-border);border-radius:9px;background:var(--study-surface);overflow:hidden}.sb-zoom button,.sb-pan-buttons button{display:grid;place-items:center;width:42px;height:40px;padding:0;border:0;background:transparent;color:var(--study-ink);font-size:20px;cursor:pointer}.sb-zoom output{min-width:58px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}.sb-pan-buttons{margin-left:auto}.sb-pan-buttons button{width:38px;font-size:18px}.sb-zoom button:hover,.sb-pan-buttons button:hover{background:var(--study-soft)}.sb-zoom button:focus-visible,.sb-pan-buttons button:focus-visible{outline:2px solid var(--study-accent);outline-offset:-3px}.sb-zoom button:disabled{opacity:.35;cursor:default}.sb-scroller{width:100%;min-width:0;height:clamp(360px,65dvh,720px);touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;cursor:grab}.sb-scroller.is-panning{cursor:grabbing;user-select:none}.sb-scroller.is-panning *{cursor:grabbing!important}.sb-node,.sb-root{cursor:default}.sb-board:not([data-editing=true]) .sb-node>header{grid-template-columns:20px minmax(0,1fr)}.sb-board[data-editing=true] .sb-node>header{cursor:grab;touch-action:none}.sb-node.is-selected{border:2px solid var(--study-accent);padding:11px;box-shadow:0 0 0 4px var(--study-soft)}.sb-inline-title,.sb-inline-text,.sb-inline-parent,.sb-root label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:10px;line-height:1.4;font-weight:500;color:var(--study-muted);margin:0}.sb-inline-title input,.sb-root input{font:inherit;font-size:13px;line-height:1.4;width:100%;min-width:0;padding:8px;border:1px solid var(--study-border);border-radius:7px;color:var(--study-ink);background:var(--study-surface);height:38px;box-sizing:border-box;cursor:text;touch-action:auto}.sb-inline-text textarea{font:inherit;font-size:12px;line-height:1.65;width:100%;min-height:84px;height:84px;max-height:84px;resize:none;overflow:auto;padding:8px;border:1px solid var(--study-border);border-radius:7px;background:var(--study-surface);color:var(--study-ink);box-sizing:border-box;cursor:text;touch-action:auto}.sb-inline-parent select{font:inherit;font-size:12px;max-width:100%;height:36px;padding:6px;border:1px solid var(--study-border);border-radius:7px;background:var(--study-surface);color:var(--study-ink)}.sb-node-actions{display:flex;flex-wrap:wrap;gap:7px}.sb-node-actions button,.sb-edit-block{display:inline-flex;align-items:center;gap:5px;padding:6px 7px;background:var(--study-soft);color:var(--study-accent);border:1px solid var(--study-border);border-radius:6px;min-height:32px;font-size:10px;cursor:pointer}.sb-node-actions .icon{width:12px;height:12px}.sb-node footer{flex-wrap:wrap;min-height:18px}.sb-edit-block{margin-left:auto}.sb-node.is-selected>footer{margin-top:auto}.sb-root label{margin-top:7px}.sb-board[data-editing=true] .sb-root{min-height:104px}.sb-board.is-saving input,.sb-board.is-saving textarea,.sb-board.is-saving select{opacity:.65}.structure-view-controls{margin:8px 0 12px!important;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;gap:10px}.sb-status{font-size:12px;line-height:1.8;margin-bottom:12px;overflow-wrap:anywhere}@media(max-width:650px){.sb-toolbar{padding:12px;gap:12px}.sb-edit-actions .sb-mode-badge{width:100%;margin:0 0 3px;justify-content:center}.sb-edit-actions>.btn{flex:1 1 auto;justify-content:center;min-height:42px;font-size:12px}.sb-view-actions{gap:10px}.sb-view-actions>.btn{margin-left:auto;font-size:11px;min-height:40px}.sb-pan-buttons{width:100%;justify-content:space-between;margin-left:0}.sb-pan-buttons button{width:25%;height:42px}.sb-scroller{min-height:360px;height:62dvh}.structure-view-controls{align-items:center!important}.sb-status{font-size:11px}}dialog[open]:has(.structure-prepare-form){display:flex;flex-direction:column;overflow:hidden;max-height:92dvh}dialog:has(.structure-prepare-form) .dialog-head{position:static;flex-shrink:0;margin-bottom:18px}.structure-prepare-form{display:flex;flex-direction:column;min-height:0;gap:0;overflow:hidden}.structure-prepare-form .prepare-layout{overflow:auto;min-height:0;padding-right:8px;overscroll-behavior:contain}.structure-prepare-form .source-checks,.structure-prepare-form .prepare-source-group{max-height:none;overflow:visible}.structure-prepare-form>.dialog-actions{flex-shrink:0;position:static}#prepare-form .prepare-operations{grid-template-columns:minmax(0,1fr)}.prepare-extra-operations{grid-column:1/-1;min-width:0}.prepare-extra-operations>summary,.prepare-views-details>summary{cursor:pointer;min-height:44px;padding:12px 0;color:var(--study-accent);font-size:13px;line-height:1.6}.prepare-extra-operations>div{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0 0 8px}.prepare-extra-operations label{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--study-border);border-radius:11px;background:var(--study-surface);cursor:pointer}.prepare-extra-operations label:has(input:checked){border-color:var(--study-accent);background:var(--study-soft);box-shadow:inset 0 0 0 1px var(--study-accent)}.prepare-extra-operations label:focus-within{outline:2px solid var(--study-accent);outline-offset:2px}.prepare-result-features{list-style:none;padding:0;margin:18px 0;display:grid;gap:14px}.prepare-result-features li{border-left:3px solid var(--study-accent);padding-left:12px;line-height:1.65}.prepare-result-features strong{display:block;font-size:13px;color:var(--study-ink)}.prepare-result-features span{display:block;font-size:12px;color:var(--study-muted);margin-top:2px}.prepare-views-details{border-top:1px solid var(--study-border);border-bottom:1px solid var(--study-border);margin-bottom:16px}.prepare-views-details p{font-size:12px;line-height:1.8;color:var(--study-muted)}.prepare-views-details .prepare-output-views{margin-top:12px}.prepare-main .prepare-operations strong{font-size:14px}.prepare-main .prepare-operations small{font-size:12px;line-height:1.75}.prepare-goal>.small{line-height:1.7}.study-header [data-action=prepare-notes]{max-width:310px;white-space:normal;line-height:1.5;flex-shrink:0}.note-polish-form .prepare-extra-operations>summary,.note-polish-form .prepare-result-features,.note-polish-form .prepare-views-details,.structure-prepare-form .prepare-result-features,.structure-prepare-form .prepare-views-details{display:none}@media(max-width:650px){.prepare-main .prepare-operations strong{font-size:13px}.prepare-main .prepare-operations small{font-size:12px}.prepare-extra-operations>summary,.prepare-views-details>summary{font-size:12px}.study-header [data-action=prepare-notes]{width:100%;max-width:none;min-height:44px}.prepare-sources .between{align-items:flex-start;flex-wrap:wrap;gap:10px}.prepare-result-features{gap:12px}}#prepare-form .prepare-goal>.small{display:none}#prepare-form .prepare-goal:has(.prepare-extra-operations[open])>.small{display:block}#prepare-form .source-checks,#prepare-form .prepare-source-group{max-height:none;overflow:visible}
