[data-layout-section][hidden],.dashboard-layout-editor[hidden]{display:none!important}
.dashboard-layout-editor{margin:0 0 18px;padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:14px;order:0}
.dashboard-layout-editor h2{margin:0;font-size:20px}
.dl-editor-top,.dl-editor-actions,.dl-device-tabs,.dl-row,.dl-counts{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dl-editor-top{justify-content:space-between}
.dashboard-layout-editor p{margin:8px 0 12px;color:var(--sub);font-size:13px}
.dashboard-layout-editor button,.dashboard-layout-editor input{font:inherit;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);padding:8px 12px}
.dashboard-layout-editor button{cursor:pointer;font-weight:700}
.dashboard-layout-editor button:disabled{opacity:.45;cursor:not-allowed}
.dashboard-layout-editor button[aria-pressed="true"],.dashboard-layout-editor .dl-save{background:#08786c;color:white;border-color:#08786c}
.dl-list{display:grid;gap:6px;margin:12px 0;padding:0;list-style:none}
.dl-row{padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);min-width:0}
.dl-grip{cursor:grab;color:var(--sub);font-size:19px;touch-action:none}
.dl-name{flex:1;font-weight:700;min-width:110px}
.dl-row.is-hidden .dl-name{color:var(--sub);text-decoration:line-through}
.dl-row.is-drop-target{outline:2px solid var(--mint)}
.dl-row label{display:flex;align-items:center;gap:5px;color:var(--sub);font-size:12px}
.dl-row button{padding:5px 10px;min-width:34px}
.dl-counts{margin:12px 0;gap:14px}
.dl-counts label{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.dl-counts input{width:80px}
.dl-editor-actions{justify-content:flex-end}
.dl-status{min-height:20px;font-size:12px;color:var(--sub)}
.dl-status[data-error="true"]{color:var(--red)}
.dashboard-layout-editor :focus-visible{outline:2px solid var(--mint);outline-offset:2px}
@media(max-width:600px){.dashboard-layout-editor{padding:12px}.dl-counts label{width:100%;justify-content:space-between}.dl-row{gap:6px}.dl-row button{min-width:32px;padding:5px 8px}.dl-editor-actions{justify-content:flex-start}}
