.layout-block{display:flow-root;margin-block:18px;min-width:0}.layout-block:first-child{margin-top:0}.layout-block>:first-child{margin-top:0}.layout-block>:last-child{margin-bottom:0}.layout-block-hidden{display:none!important}
.layout-empty-page{padding:28px 18px;margin:20px 0;border:1px dashed #d7dfed;border-radius:16px;text-align:center;background:#fff}.layout-empty-page p{font-size:13px;line-height:1.5;color:var(--muted,#67768f)}.layout-empty-page button{margin-top:8px}
.layout-sheet .sheet-head{margin-bottom:12px}.layout-sheet .sheet-head h2{font-size:21px;letter-spacing:-.45px}.layout-context{font-size:14px;font-weight:650;line-height:1.45;margin-bottom:4px}.layout-note{font-size:12px;line-height:1.5;color:var(--muted,#67768f)}
.layout-list{list-style:none;margin:18px 0;padding:0;border:1px solid var(--line,#e7ebf2);border-radius:15px;background:#fff;overflow:visible}.layout-row{display:grid;grid-template-columns:32px minmax(0,1fr) 44px;gap:0 8px;padding:10px 10px 7px;position:relative;border-bottom:1px solid var(--line,#e7ebf2);min-width:0}.layout-row:last-child{border-bottom:0}.layout-row-copy{min-width:0;align-self:center}.layout-row-name{display:block;font-size:14px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}.layout-row-state{display:block;font-size:11px;line-height:1.35;color:var(--muted,#67768f);margin-top:3px}.layout-row-hidden .layout-row-name{color:var(--muted,#67768f)}
.layout-grip{align-self:start;width:32px;min-height:46px;display:flex;align-items:center;justify-content:center;color:#8593a9;border-radius:8px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.layout-grip .icon{width:23px;height:25px;stroke-width:4;stroke-linecap:round}.layout-grip:active{background:#eef3ff;cursor:grabbing;color:var(--blue,#365bff)}
.layout-visibility{position:relative;width:44px;height:46px;display:flex;align-items:center;justify-content:center;align-self:start;cursor:pointer}.layout-visibility input[type=checkbox]{position:absolute!important;inset:0!important;width:44px!important;height:46px!important;opacity:0;margin:0!important;cursor:pointer;z-index:1;min-height:0!important;appearance:none!important;-webkit-appearance:none!important}.layout-visibility>span{width:40px;height:23px;border-radius:14px;background:#c4cede;position:relative;display:block;pointer-events:none}.layout-visibility>span:after{content:'';position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #21385a22}.layout-visibility input:checked+span{background:var(--blue,#365bff)}.layout-visibility input:checked+span:after{left:20px}.layout-visibility input:focus-visible+span{outline:3px solid #93adff;outline-offset:3px}
.layout-row-actions{grid-column:2/4;display:flex;gap:8px}.layout-row-actions button{display:inline-flex;align-items:center;gap:3px;min-height:44px;padding:6px 7px;font-size:12px;font-weight:550;color:var(--blue,#365bff);border-radius:8px}.layout-row-actions button:disabled{color:#9ba7ba;opacity:.7}.layout-row-actions .icon{width:17px;height:17px}.layout-row-actions button:active{background:#eef3ff}.layout-row.layout-dragging{background:#f2f5ff;outline:1px solid #c0ceff;outline-offset:-1px}.layout-drop-before:before,.layout-drop-after:after{content:'';position:absolute;left:8px;right:8px;height:3px;border-radius:3px;background:var(--blue,#365bff);z-index:1}.layout-drop-before:before{top:-2px}.layout-drop-after:after{bottom:-2px}
#layout-reset{font-size:14px;min-height:48px}.layout-drag-help{margin-top:11px;text-align:center}.layout-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:359px){.layout-sheet{padding-left:16px;padding-right:16px}.layout-sheet .sheet-head h2{font-size:20px}.layout-row{padding-left:6px;padding-right:7px;gap:0 6px}.layout-row-name{font-size:13px}.layout-row-actions{gap:4px}}
@media(prefers-reduced-motion:reduce){.layout-row,.layout-visibility>span,.layout-visibility>span:after{animation:none!important;transition:none!important}}

/* Reordering is a single grouped list, with the visibility switch on each row. */
.layout-sheet .layout-context{font-size:16px;line-height:1.4;margin-bottom:4px}
.layout-sheet .layout-note{font-size:12px;line-height:1.5}
.layout-sheet .layout-list{margin:16px 0;border-radius:var(--ui-nested-radius,14px);border-color:var(--line);background:var(--ui-nested,var(--bg))}
html[data-theme=dark] .layout-sheet .layout-list{background:var(--ui-nested,var(--theme-inset))}
.layout-sheet .layout-row{grid-template-columns:28px minmax(0,1fr) 44px;gap:0 8px;padding:8px 10px 6px;border-color:var(--line)}
.layout-sheet .layout-row:first-child{border-radius:var(--ui-nested-radius,14px) var(--ui-nested-radius,14px) 0 0}
.layout-sheet .layout-row:last-child{border-radius:0 0 var(--ui-nested-radius,14px) var(--ui-nested-radius,14px)}
.layout-sheet .layout-row-name{font-size:14px;line-height:1.4;font-weight:600}
.layout-sheet .layout-row-state{display:none}
.layout-sheet .layout-grip{width:28px;min-height:44px;color:var(--muted)}
.layout-sheet .layout-grip .icon{width:20px;height:24px;stroke-width:3.5}
.layout-sheet .layout-visibility{height:44px}
.layout-sheet .layout-row-actions{gap:8px}
.layout-sheet .layout-row-actions button{min-height:44px;padding:8px;font-size:12px;border-radius:10px;gap:4px}
.layout-sheet .layout-row-actions .icon{width:18px;height:18px}
.layout-sheet .layout-grip:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.layout-sheet .layout-grip:active,.layout-sheet .layout-row-actions button:active{background:var(--blue-soft)}
.layout-sheet #layout-reset{font-size:14px;min-height:48px}
@media(max-width:359px){.layout-sheet .layout-row{padding-inline:8px;gap:0 6px}.layout-sheet .layout-row-name{font-size:14px}.layout-sheet .layout-row-actions{gap:4px}}
