.home-layout-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin:0 0 16px;min-height:40px;color:#526b84;font-size:14px}
.home-layout-controls button{font:inherit;border:1px solid #cbdbe9;background:#ffffffeb;color:#345779;border-radius:9px;padding:8px 12px;min-height:40px;cursor:pointer}
.home-layout-controls button{display:inline-flex;align-items:center;gap:7px}.home-layout-controls svg{width:18px;height:18px}.home-layout-status{font-size:12px;color:#286e52}
.home-layout-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.home-layout-dialog{padding:0;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 40px);border:1px solid #dce5ee;border-radius:18px;box-shadow:0 24px 90px #19395738;color:#203d5e;background:#fff;font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.home-layout-dialog::backdrop{background:#17314b66;backdrop-filter:blur(3px)}
.home-layout-dialog header{display:flex;align-items:flex-start;justify-content:space-between;padding:24px 24px 18px;gap:18px;border-bottom:1px solid #e4ebf2}
.home-layout-dialog h2{margin:0;font-size:22px;line-height:1.4;letter-spacing:0}.home-layout-dialog header p{margin:6px 0 0;font-size:13px;color:#718397}
.home-layout-dialog button{font:inherit;border:1px solid #d3e0ed;background:#fff;color:#365c82;border-radius:8px;min-height:40px;padding:7px 12px;cursor:pointer}
.home-layout-dialog [data-close]{font-size:25px;line-height:24px;border:0;background:#f3f7fb;min-width:40px;padding:6px;flex:none}
.home-layout-dialog-body{padding:18px 24px;overflow-y:auto;max-height:calc(100dvh - 280px);min-height:170px;overscroll-behavior:contain}
.home-sort-list{list-style:none;padding:0;margin:0;display:grid;gap:7px}.home-sort-list li{display:flex;align-items:center;gap:10px;min-height:56px;padding:6px 9px;border:1px solid #e0e8f1;background:#f8fafd;border-radius:10px;min-width:0}.home-sort-list li.is-dragging{opacity:.45}
.home-sort-position{font-size:12px;font-variant-numeric:tabular-nums;color:#8b9cad;min-width:20px;text-align:center}.home-layout-dialog .home-sort-grip{padding:4px;min-width:30px;border:0;background:transparent;color:#8096ac;cursor:grab;font-size:24px;touch-action:none}.home-sort-name{flex:1;min-width:0;font-weight:500;overflow-wrap:anywhere}.home-sort-moves{display:flex;gap:5px}.home-sort-moves button{min-width:40px;padding:5px;font-size:18px;background:#fff}
.home-layout-dialog button:disabled{opacity:.3;cursor:default}.home-layout-notice,.home-layout-error{font-size:13px;line-height:1.6;margin:14px 0 0}.home-layout-notice{color:#687e94}.home-layout-error{color:#b43a39}.home-layout-error:empty{display:none}
.home-layout-dialog footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;border-top:1px solid #e4ebf2;padding:16px 24px;background:#fafcfe}
.home-layout-reset,.home-layout-save{display:flex;gap:8px;flex-wrap:wrap}.home-layout-dialog .home-layout-reset button{border:0;background:transparent;font-size:13px;padding:6px}.home-layout-dialog .primary{background:#2468a9;border-color:#2468a9;color:#fff;min-width:72px}
.home-layout-dialog :focus-visible,.home-layout-controls :focus-visible{outline:3px solid #85b6e1;outline-offset:2px}
@media(max-width:600px){.home-layout-controls{gap:8px;margin-bottom:12px}.home-layout-controls select,.home-layout-controls button{min-height:44px}.home-layout-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:14px}.home-layout-dialog header{padding:18px}.home-layout-dialog h2{font-size:20px}.home-layout-dialog-body{padding:14px 16px;max-height:calc(100dvh - 300px)}.home-layout-dialog footer{padding:12px 16px;gap:10px}.home-layout-save{margin-left:auto}.home-layout-dialog .home-sort-grip{min-width:24px}.home-sort-position{min-width:15px}.home-sort-list li{gap:6px}.home-sort-moves button{min-width:44px;min-height:44px}}
@media print{.home-layout-controls,.home-layout-dialog{display:none!important}}
