/* Dashboard compositions inherit the locked host tokens. All selectors stay inside the content component. */
.dashboard-layout { min-width:0; color:var(--ink); }
.dashboard-layout [hidden] { display:none!important; }
.dashboard-layout-toolbar,.dashboard-layout-actions { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; }
.dashboard-layout-toolbar { justify-content:space-between; margin-bottom:1.4rem; }
.dashboard-layout-toolbar [role=status] { font-size:.8rem; color:var(--muted); }
.dashboard-layout-browser { padding:1rem; border:1px solid var(--line); border-radius:.8rem; background:var(--surface); margin-bottom:1.5rem; }
.dashboard-layout-browser > p { font-size:.85rem; margin:0 0 1rem; }
.dashboard-layout-choices { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem; margin-bottom:1rem; }
.dashboard-layout-choices button { display:flex; flex-direction:column; gap:.6rem; min-width:0; padding:.8rem; text-align:left; border:1px solid var(--line); border-radius:.6rem; background:var(--workspace); color:var(--ink); cursor:pointer; font:inherit; }
.dashboard-layout-choices button[aria-pressed=true] { outline:2px solid var(--ink); outline-offset:1px; }
.dashboard-layout-choices button > span:last-child { font-size:.75rem; line-height:1.5; color:var(--muted); }
.dashboard-layout-mini { display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:12px 25px 25px; gap:4px; width:100%; }
.dashboard-layout-mini i { background:color-mix(in srgb,var(--ink) 12%,var(--surface)); border:1px solid var(--line); border-radius:3px; }
.dashboard-layout-mini i:first-child { grid-column:1/-1; }
.dashboard-layout-mini.mini-1 i:nth-child(4),.dashboard-layout-mini.mini-3 i:nth-child(4) { grid-column:3; grid-row:2/4; }
.dashboard-layout-mini.mini-2 { grid-template-columns:repeat(2,1fr); }
.dashboard-layout-mini.mini-4 { grid-template-columns:repeat(2,1fr); grid-template-rows:30px 20px 20px; }
.dashboard-layout-mini.mini-4 i:first-child { grid-column:auto; }
.dashboard-greeting { margin:1.5rem 0; }
.dashboard-greeting > p:first-child { font-size:.8rem; color:var(--muted); margin:0 0 .4rem; }
.dashboard-greeting h2 { margin:0; font-size:1.75rem; letter-spacing:-.035em; }
.dashboard-greeting > p:last-child { margin:.6rem 0 0; font-size:.9rem; }
.dashboard-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid var(--line); background:var(--sidebar); border-radius:.8rem; margin-bottom:1.5rem; }
.dashboard-summary > div { padding:1rem 1.25rem; display:flex; flex-direction:column; gap:.35rem; }
.dashboard-summary > div + div { border-left:1px solid var(--line); }
.dashboard-summary span { color:var(--muted); font-size:.75rem; }
.dashboard-summary strong { font-size:1.3rem; }
.dashboard-layout-body { display:grid; grid-template-columns:minmax(0,1fr) minmax(12rem,25%); gap:1.25rem; align-items:start; }
.dashboard-layout h3 { font-size:.95rem; margin:0 0 .8rem; }
.dashboard-section-hub { min-width:0; }
.dashboard-focus,.dashboard-activity { border:1px solid var(--line); border-radius:.8rem; background:var(--surface); padding:1.1rem; }
.dashboard-focus p,.dashboard-activity p { font-size:.8rem; line-height:1.6; }
.dashboard-focus ul { list-style:none; margin:1rem 0 0; padding:0; }
.dashboard-focus li + li { border-top:1px solid var(--line); }
.dashboard-focus a { display:flex; justify-content:space-between; gap:.7rem; padding:.75rem 0; color:var(--ink); font-size:.85rem; text-decoration:none; }
.dashboard-activity { grid-column:1/-1; }
.dashboard-layout[data-layout="2"] .dashboard-layout-body { grid-template-columns:1fr; }
.dashboard-layout[data-layout="2"] .theme-section-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.dashboard-layout[data-layout="2"] .dashboard-detail-card { min-height:11rem; }
.dashboard-layout[data-layout="2"] .dashboard-focus ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 2rem; }
.dashboard-layout[data-layout="3"] .theme-section-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.dashboard-layout[data-layout="3"] .dashboard-detail-card { padding:1rem; min-height:9rem; }
.dashboard-layout[data-layout="3"] .theme-card-heading { align-items:flex-start; }
.dashboard-layout[data-layout="3"] .theme-card-statuses { gap:.35rem; }
.dashboard-layout[data-layout="4"] .dashboard-summary,.dashboard-layout[data-layout="4"] .dashboard-focus,.dashboard-layout[data-layout="4"] .dashboard-activity { display:none; }
.dashboard-layout[data-layout="4"] .dashboard-layout-body { display:block; }
.dashboard-layout[data-layout="4"] .theme-section-grid { grid-template-columns:repeat(2,minmax(0,1fr)); counter-reset:tile; }
.dashboard-layout[data-layout="4"] .dashboard-detail-card { min-height:12rem; position:relative; padding:1.4rem; }
.dashboard-layout[data-layout="4"] .dashboard-detail-card::before { counter-increment:tile; content:counter(tile,decimal-prospecting-zero); display:block; color:var(--muted); font-size:.8rem; margin-bottom:1.5rem; }
.dashboard-layout[data-layout="4"] .dashboard-detail-card:nth-child(-n+2) { min-height:15rem; background:var(--sidebar); }
@media(max-width:1100px) { .dashboard-layout[data-layout="3"] .theme-section-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:850px) { .dashboard-layout-body { grid-template-columns:1fr; } .dashboard-layout-choices { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { .dashboard-layout .theme-section-grid { grid-template-columns:1fr!important; } .dashboard-summary > div { padding:.7rem; } .dashboard-summary strong { font-size:1rem; } .dashboard-layout[data-layout="2"] .dashboard-focus ul { grid-template-columns:1fr; } }

.dashboard-layout-mini.mini-3 { grid-template-columns:repeat(4,1fr); }
.dashboard-layout-mini.mini-3 i:nth-child(4) { grid-column:4; }

/* Detailed source compositions, neutral host palette. */
.dashboard-detail-tools{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin:1.25rem 0}
.dashboard-detail-tools label{display:flex;flex:1;flex-direction:column;gap:.4rem;font-size:.8rem;min-width:10rem}
.dashboard-detail-tools input{width:100%;min-width:0;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:.5rem;padding:.65rem;font:inherit}
.dashboard-create{position:relative;font-size:.85rem}.dashboard-create summary{padding:.65rem;border:1px solid var(--line);border-radius:.5rem;cursor:pointer;background:var(--surface)}
.dashboard-create>div{position:absolute;right:0;top:100%;z-index:15;width:15rem;padding:.6rem;background:var(--surface);border:1px solid var(--line);border-radius:.6rem;box-shadow:0 8px 25px #0002}
.dashboard-create :is(button,a){display:block;width:100%;padding:.65rem;border:0;background:transparent;text-align:left;color:var(--ink);text-decoration:none;font:inherit;cursor:pointer}
.dashboard-sample-label{font-size:.75rem;color:var(--muted);line-height:1.5}
.dashboard-pulse{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;border:1px solid var(--line);border-radius:.8rem;background:var(--sidebar);padding:1.2rem;margin:1.25rem 0 1.5rem}
.dashboard-pulse>div{display:flex;flex-direction:column;gap:.4rem}.dashboard-pulse small{font-size:.7rem;color:var(--muted)}.dashboard-pulse strong{font-size:1.4rem}.dashboard-pulse>div:first-child strong{font-size:1rem}
.dashboard-pulse .dashboard-trend{display:flex;flex-direction:row;align-items:end;height:4rem;gap:4px}.dashboard-trend i{display:block;width:6px;background:var(--muted);border-radius:2px}
.dashboard-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:1rem}.dashboard-detail-heading h3{margin:0}.dashboard-detail-heading button{border:0;background:transparent;color:var(--ink);font:inherit;font-size:.75rem;cursor:pointer}.dashboard-detail-heading details{position:relative}.dashboard-detail-heading summary{cursor:pointer}.dashboard-detail-heading details button{position:absolute;right:0;min-width:10rem;background:var(--surface);border:1px solid var(--line);padding:.6rem;z-index:2}
.dashboard-detail-card{min-width:0;border:1px solid var(--line);border-radius:.8rem;padding:1.1rem;background:var(--surface);counter-increment:detail-card;display:flex;flex-direction:column;gap:.7rem}
.dashboard-card-top{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.dashboard-card-symbol{display:grid;place-items:center;width:2.5rem;height:2.5rem;background:var(--sidebar);border:1px solid var(--line);border-radius:.6rem;flex:none;font-size:.75rem}.dashboard-card-symbol .icon{width:1.15rem;height:1.15rem}
.dashboard-card-badge{display:inline-block;border:1px solid var(--line);border-radius:1rem;padding:.2rem .5rem;font-size:.65rem;color:var(--muted);width:fit-content}
.dashboard-card-title{display:flex;justify-content:space-between;color:var(--ink);font-weight:650;font-size:1rem;text-decoration:none;gap:.5rem}.dashboard-detail-card p{margin:0;font-size:.8rem;line-height:1.5;color:var(--muted)}
.dashboard-detail-card .dashboard-card-message{color:var(--ink);font-weight:550}.dashboard-card-inventory{border-block:1px solid var(--line);padding:.8rem 0}.dashboard-card-inventory>small{font-size:.65rem;color:var(--muted)}
.dashboard-detail-card dl{margin:0}.dashboard-card-inventory dl,.dashboard-card-readouts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;padding-top:.6rem}.dashboard-detail-card dd{margin:0;font-size:1.25rem;font-weight:600}.dashboard-detail-card dt{font-size:.65rem;color:var(--muted)}
.dashboard-detail-card footer{margin-top:auto;border-top:1px solid var(--line);padding-top:.6rem;display:flex;flex-direction:column;gap:.3rem;font-size:.65rem;color:var(--muted)}
.dashboard-focus-row{display:flex;gap:.7rem;padding:.9rem 0;border-top:1px solid var(--line)}.dashboard-focus-row time{font-size:.75rem;color:var(--muted);min-width:2.7rem}.dashboard-focus-row>div{border-left:2px solid var(--line);padding-left:.6rem;display:flex;flex-direction:column;gap:.4rem}.dashboard-focus-row strong{font-size:.8rem}.dashboard-focus-row small{font-size:.7rem;color:var(--muted)}
.dashboard-tip{border:1px solid var(--line);border-radius:.6rem;padding:.8rem;margin-top:1rem;background:var(--sidebar);font-size:.8rem}
.dashboard-activity-row{display:flex;align-items:center;gap:.8rem;padding:.85rem 0;border-top:1px solid var(--line)}.dashboard-activity-row>div{flex:1}.dashboard-activity-row strong{font-size:.85rem}.dashboard-activity-row small{display:block;color:var(--muted);font-size:.75rem;margin-top:.3rem}
.dashboard-layout[data-layout="1"] .dashboard-card-inventory,.dashboard-layout[data-layout="1"] .dashboard-card-readouts,.dashboard-layout[data-layout="3"] .dashboard-card-inventory,.dashboard-layout[data-layout="3"] .dashboard-card-readouts{display:none}
.dashboard-layout[data-layout="2"] .dashboard-card-readouts{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-layout[data-layout="2"] .dashboard-focus{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.dashboard-layout[data-layout="2"] .dashboard-focus>.dashboard-detail-heading,.dashboard-layout[data-layout="2"] .dashboard-tip{grid-column:1/-1}
.dashboard-layout[data-layout="3"] .dashboard-card-top{margin-bottom:.3rem}.dashboard-layout[data-layout="3"] .dashboard-card-message,.dashboard-layout[data-layout="3"] .dashboard-real-status{display:none}
.dashboard-layout[data-layout="4"] .dashboard-pulse,.dashboard-layout[data-layout="4"] .dashboard-card-top,.dashboard-layout[data-layout="4"] .dashboard-card-inventory,.dashboard-layout[data-layout="4"] .dashboard-card-readouts,.dashboard-layout[data-layout="4"] .dashboard-card-message,.dashboard-layout[data-layout="4"] .dashboard-real-status{display:none}.dashboard-layout[data-layout="4"] .dashboard-card-title{font-size:1.5rem;line-height:1.3}.dashboard-layout[data-layout="4"] .dashboard-detail-card:nth-child(-n+2) .dashboard-card-title{font-size:1.8rem}
.dashboard-gallery-footer{display:none}.dashboard-layout[data-layout="4"] .dashboard-gallery-footer{display:flex;justify-content:space-between;align-items:center;margin-top:1rem;font-size:.8rem}
.dashboard-toast{position:fixed;right:1rem;bottom:1rem;width:min(23rem,calc(100vw - 5.75rem));max-height:55vh;overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:.8rem;box-shadow:0 .4rem 2rem #0002;z-index:45}
.dashboard-toast header,.dashboard-toast footer{display:flex;align-items:center;gap:.6rem;padding:.8rem 1rem}.dashboard-toast header{border-bottom:1px solid var(--line)}.dashboard-toast header strong{font-size:.8rem}.dashboard-toast small{font-size:.7rem;color:var(--muted)}.dashboard-toast header button{margin-left:auto}.dashboard-toast button{border:0;background:transparent;color:var(--ink);cursor:pointer;font:inherit}.dashboard-toast-message{display:flex;gap:.8rem;padding:1rem}.dashboard-toast-message>span{border:1px solid var(--line);border-radius:.5rem;width:1.8rem;height:1.8rem;display:grid;place-items:center;flex:none}.dashboard-toast-message strong{font-size:.85rem;line-height:1.5;display:block}.dashboard-toast-message small,.dashboard-toast-list small{display:block;margin-top:.35rem}.dashboard-toast footer{justify-content:space-between;border-top:1px solid var(--line);font-size:.75rem}.dashboard-toast-dots{display:flex;gap:.5rem}.dashboard-toast-dots button{padding:0;width:.5rem;height:.5rem;border-radius:50%;background:var(--line)}.dashboard-toast-dots button[aria-pressed=true]{background:var(--ink)}.dashboard-toast-list{padding:0 1rem 1rem}.dashboard-toast-list p{padding:.7rem 0;border-bottom:1px solid var(--line);font-size:.8rem}
@media(max-width:600px){.dashboard-layout[data-layout="2"] .dashboard-focus{display:block}.dashboard-activity-row{flex-wrap:wrap}.dashboard-pulse{gap:1rem 1.8rem}.dashboard-card-readouts{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dashboard-toast{bottom:.5rem;right:.5rem}.dashboard-layout[data-layout="4"] .dashboard-card-title{font-size:1.25rem}}

.dashboard-layout .dashboard-toast-restore{position:fixed;right:1rem;bottom:1rem;z-index:45;display:flex;align-items:center;gap:.65rem;box-shadow:0 .3rem 1rem #0002;background:var(--surface);color:var(--ink);border:1px solid var(--line);max-width:calc(100vw - 5.75rem)}
.dashboard-toast-restore span{border:1px solid var(--line);border-radius:1rem;padding:.1rem .45rem;font-size:.75rem}
@media(max-width:600px){.dashboard-layout .dashboard-toast-restore{right:.5rem;bottom:.5rem}}

.dashboard-layout .dashboard-toast{width:min(var(--toast-width,368px),calc(100vw - 5.75rem));border-radius:var(--toast-radius,13px);background:var(--toast-bg,var(--surface));font-size:var(--toast-font,14px)}
.dashboard-layout .dashboard-toast-message strong{font-size:var(--toast-font,14px)}
.dashboard-layout[data-toast-position=left] :is(.dashboard-toast,.dashboard-toast-restore){left:calc(var(--theme-rail-width,60px) + .75rem);right:auto}
.dashboard-layout[data-toast-position=center] :is(.dashboard-toast,.dashboard-toast-restore){left:calc(50% + 1.75rem);right:auto;transform:translateX(-50%)}
.dashboard-layout[data-toast-shadow=false] .dashboard-toast{box-shadow:none}
.dashboard-layout[data-toast-border=dashed] .dashboard-toast{border-style:dashed}.dashboard-layout[data-toast-border=dotted] .dashboard-toast{border-style:dotted}.dashboard-layout[data-toast-border=none] .dashboard-toast{border:0}
.dashboard-layout[data-card-size=compact] .dashboard-detail-card{padding:.65rem;gap:.4rem;min-height:0}.dashboard-layout[data-card-size=large] .dashboard-detail-card{padding:1.7rem;gap:1rem;min-height:16rem}
.dashboard-preferences-editor label{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;font-size:.85rem;margin:.55rem 0}
.dashboard-preferences-editor select,.dashboard-preferences-editor input[type=number]{max-width:100%;padding:.4rem;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:.4rem}
.dashboard-editor-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}.dashboard-preferences-editor button{padding:.45rem .6rem;border:1px solid var(--line);border-radius:.4rem;background:var(--surface);color:var(--ink);cursor:pointer;font:inherit;font-size:.8rem}
.dashboard-editor-workspace{display:grid;grid-template-columns:minmax(14rem,30%) minmax(0,1fr);gap:1rem;height:650px;max-height:80vh}.dashboard-editor-controls{overflow:auto;padding:.5rem}.dashboard-editor-preview{width:100%;height:100%;border:1px solid var(--line);border-radius:.6rem;background:var(--workspace)}
.dashboard-editor-controls fieldset{border:1px solid var(--line);border-radius:.5rem;margin:.8rem 0;padding:.65rem}.dashboard-editor-controls legend{font-size:.85rem;font-weight:600}
@media(max-width:850px){.dashboard-editor-workspace{grid-template-columns:1fr;height:auto;max-height:none}.dashboard-editor-controls{max-height:400px}.dashboard-editor-preview{height:600px}}

/* Designer sources 05–15, adapted within the approved shell. */
.dashboard-layout-browser{max-height:65vh;overflow:auto;overscroll-behavior:contain}
.dashboard-layout-choices{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
.dashboard-layout-mini:is(.mini-7,.mini-10,.mini-13){position:relative;display:block;border:1px solid var(--line);border-radius:50%;height:75px}
.dashboard-layout-mini:is(.mini-7,.mini-10,.mini-13) i{position:absolute;width:23%;height:24%;border-radius:50%;left:38%;top:38%}
.dashboard-layout-mini:is(.mini-7,.mini-10,.mini-13) i:nth-child(2){top:0}.dashboard-layout-mini:is(.mini-7,.mini-10,.mini-13) i:nth-child(3){left:73%;top:20%}.dashboard-layout-mini:is(.mini-7,.mini-10,.mini-13) i:nth-child(4){left:70%;top:65%}.dashboard-layout-mini:is(.mini-7,.mini-10,.mini-13) i:nth-child(5){left:5%;top:65%}.dashboard-layout-mini:is(.mini-7,.mini-10,.mini-13) i:nth-child(6){left:3%;top:20%}
.dashboard-layout-mini:is(.mini-6,.mini-8,.mini-15){grid-template-columns:1fr;grid-template-rows:repeat(6,9px)}
.dashboard-layout-mini.mini-9{grid-template-columns:repeat(3,1fr)}.dashboard-layout-mini.mini-9 i:nth-child(2){grid-row:2/4}
.dashboard-layout-mini.mini-11 i:nth-child(even){transform:translateY(5px);border-radius:12px}
.dashboard-layout-mini.mini-12 i{transform:skewY(-8deg)}.dashboard-layout-mini.mini-14{grid-template-columns:repeat(2,1fr)}.dashboard-layout-mini.mini-14 i:first-child{grid-column:1}
.dashboard-layout[data-layout="5"] .dashboard-pulse{border-radius:0;border-block:2px solid var(--ink)}
.dashboard-layout[data-layout="5"] .dashboard-layout-body{grid-template-columns:minmax(0,2fr) minmax(13rem,1fr)}
.dashboard-layout[data-layout="5"] .dashboard-detail-card{border-radius:.25rem;border-left:3px solid var(--ink)}
.dashboard-layout[data-layout="5"] .theme-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-layout[data-layout="6"] .dashboard-greeting{padding:1.5rem 0;border-block:1px solid var(--ink)}
.dashboard-layout[data-layout="6"] .dashboard-greeting h2{font-size:2.7rem}
.dashboard-layout[data-layout="6"] .dashboard-layout-body{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-layout[data-layout="6"] .dashboard-section-hub{grid-column:1/-1}
.dashboard-layout[data-layout="6"] .theme-section-grid{grid-template-columns:1fr}
.dashboard-layout[data-layout="6"] .dashboard-detail-card{display:grid;grid-template-columns:3rem minmax(0,1fr) minmax(8rem,25%);border-radius:0;border-width:0 0 1px;padding:1.1rem 0}
.dashboard-layout[data-layout="6"] .dashboard-card-top{grid-row:1/4;align-self:start}.dashboard-layout[data-layout="6"] .dashboard-card-badge{display:none}
.dashboard-layout[data-layout="6"] .dashboard-card-title{grid-column:2;align-self:center}.dashboard-layout[data-layout="6"] .dashboard-card-description{grid-column:2}.dashboard-layout[data-layout="6"] .dashboard-detail-card footer{grid-column:3;grid-row:1/4;align-self:center;border:0}
.dashboard-layout[data-layout="6"] :is(.dashboard-card-inventory,.dashboard-card-readouts,.dashboard-real-status,.dashboard-card-message){display:none}
.dashboard-layout[data-layout="6"] .dashboard-activity{grid-column:auto}
.dashboard-orbit-grid{position:relative;display:block!important;aspect-ratio:1;min-height:500px;counter-reset:none;border:1px solid var(--line);border-radius:50%;background:radial-gradient(circle,transparent 0 26%,var(--line) 26% 26.3%,transparent 26.4% 57%,var(--line) 57% 57.3%,transparent 57.4%)}
.dashboard-orbit-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:27%;height:27%;border:1px solid var(--line);border-radius:50%;background:var(--sidebar);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:1rem;gap:.5rem}
.dashboard-orbit-center strong{font-size:1rem}.dashboard-orbit-center small{font-size:.7rem;color:var(--muted)}
.dashboard-orbit-grid .dashboard-node{position:absolute;left:var(--node-x);top:var(--node-y);transform:translate(-50%,-50%);width:27%;min-height:0!important;padding:1rem;box-shadow:0 4px 16px #0001;gap:.4rem}
.dashboard-orbit-grid .dashboard-node :is(.dashboard-card-message,.dashboard-card-readouts,.dashboard-card-inventory,.dashboard-real-status,footer){display:none}
.dashboard-orbit-grid .dashboard-node .dashboard-card-title{font-size:.85rem}.dashboard-orbit-grid .dashboard-node .dashboard-card-description{font-size:.7rem}
.dashboard-layout[data-layout="7"] .dashboard-node{border-radius:1rem}
.dashboard-layout[data-layout="10"] .dashboard-layout-body{grid-template-columns:1fr}
.dashboard-layout[data-layout="10"] .dashboard-orbit-grid{max-width:800px;margin:auto;border:2px solid var(--line)}
.dashboard-layout[data-layout="10"] .dashboard-node{border-radius:50%;aspect-ratio:1;justify-content:center;align-items:center;text-align:center}
.dashboard-layout[data-layout="10"] .dashboard-node .dashboard-card-top{display:none}

.dashboard-layout[data-layout="8"] .dashboard-layout-body{grid-template-columns:minmax(0,1.5fr) minmax(12rem,1fr)}
.dashboard-layout[data-layout="8"] .theme-section-grid{grid-template-columns:1fr;border-left:2px solid var(--line);padding-left:1.5rem}
.dashboard-layout[data-layout="8"] .dashboard-detail-card{position:relative;border-radius:.5rem}
.dashboard-layout[data-layout="8"] .dashboard-detail-card::before{content:"";position:absolute;width:10px;height:10px;background:var(--ink);border:3px solid var(--workspace);border-radius:50%;left:-2rem;top:1.5rem}
.dashboard-layout[data-layout="8"] :is(.dashboard-card-inventory,.dashboard-card-readouts){display:none}
.dashboard-layout[data-layout="9"] .dashboard-layout-body{grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.dashboard-layout[data-layout="9"] .dashboard-section-hub{grid-column:1/3}.dashboard-layout[data-layout="9"] .dashboard-focus{grid-column:3;grid-row:1/3}.dashboard-layout[data-layout="9"] .dashboard-activity{grid-column:1/3}
.dashboard-layout[data-layout="9"] .theme-section-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:dense}
.dashboard-layout[data-layout="9"] .dashboard-detail-card:first-child{grid-column:1/-1;background:var(--sidebar);min-height:15rem}
.dashboard-layout[data-layout="9"] .dashboard-detail-card:nth-child(3n){min-height:14rem}
.dashboard-layout[data-layout="9"] :is(.dashboard-card-inventory,.dashboard-card-readouts){display:none}
.dashboard-layout[data-layout="11"] .dashboard-layout-body{grid-template-columns:1fr}
.dashboard-layout[data-layout="11"] .theme-section-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem;padding:1.5rem .5rem 3rem}
.dashboard-layout[data-layout="11"] .dashboard-detail-card{border-radius:2rem;box-shadow:0 14px 30px #0001;border-bottom:4px solid var(--line)}
.dashboard-layout[data-layout="11"] .dashboard-detail-card:nth-child(3n+2){transform:translateY(2rem)}
.dashboard-layout[data-layout="11"] .dashboard-detail-card:first-child{grid-column:span 2;background:var(--sidebar)}
.dashboard-layout[data-layout="11"] :is(.dashboard-card-inventory,.dashboard-card-readouts){display:none}
.dashboard-layout[data-layout="12"] .dashboard-greeting{border-left:5px solid var(--ink);padding:1rem 1.5rem;background:var(--sidebar)}
.dashboard-layout[data-layout="12"] .dashboard-layout-body{grid-template-columns:1fr}
.dashboard-layout[data-layout="12"] .theme-section-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:1rem 0}
.dashboard-layout[data-layout="12"] .dashboard-detail-card{border-radius:0;border-bottom:5px solid var(--line);transform:skewY(-4deg);padding:1.5rem;min-height:16rem;box-shadow:8px 8px 0 var(--line)}
.dashboard-layout[data-layout="12"] .dashboard-detail-card>*{transform:skewY(4deg)}
.dashboard-layout[data-layout="12"] .dashboard-detail-card:nth-child(even){background:var(--sidebar);transform:skewY(4deg)}
.dashboard-layout[data-layout="12"] .dashboard-detail-card:nth-child(even)>*{transform:skewY(-4deg)}
.dashboard-layout[data-layout="12"] :is(.dashboard-card-inventory,.dashboard-card-readouts){display:none}
.dashboard-layout[data-layout="13"] .dashboard-layout-body{grid-template-columns:1fr}
.dashboard-layout[data-layout="13"] .dashboard-orbit-grid{border-radius:.8rem;background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0deg 59.7deg,var(--line) 59.8deg 60deg)}
.dashboard-layout[data-layout="13"] .dashboard-node{border-radius:.5rem;border-top:3px solid var(--ink)}
.dashboard-layout[data-layout="14"] .dashboard-layout-body{grid-template-columns:1fr}
.dashboard-layout[data-layout="14"] .theme-section-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.dashboard-layout[data-layout="14"] .dashboard-detail-card{border-radius:2rem .5rem .5rem 2rem;border-left:4px solid var(--ink)}
.dashboard-layout[data-layout="14"] .dashboard-detail-card:nth-child(even){border-radius:.5rem 2rem 2rem .5rem;border-left:1px solid var(--line);border-right:4px solid var(--ink);background:var(--sidebar)}
.dashboard-layout[data-layout="14"] .dashboard-focus{border-radius:2rem;text-align:center}
.dashboard-layout[data-layout="15"] .dashboard-layout-body{grid-template-columns:1fr}
.dashboard-layout[data-layout="15"] .theme-section-grid{grid-template-columns:1fr;gap:1.2rem}
.dashboard-layout[data-layout="15"] .dashboard-detail-card{display:grid;grid-template-columns:3rem minmax(0,1fr) minmax(7rem,20%);border-radius:3rem .7rem 3rem .7rem;padding:1.2rem 2rem;border-left:5px solid var(--ink)}
.dashboard-layout[data-layout="15"] .dashboard-detail-card:nth-child(even){border-radius:.7rem 3rem .7rem 3rem;background:var(--sidebar);margin-left:2rem}
.dashboard-layout[data-layout="15"] .dashboard-card-top{grid-row:1/4;flex-direction:column;justify-content:center;align-items:center}.dashboard-layout[data-layout="15"] .dashboard-card-badge{max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;padding:.15rem .25rem}.dashboard-layout[data-layout="15"] .dashboard-card-title,.dashboard-layout[data-layout="15"] .dashboard-card-description{grid-column:2}
.dashboard-layout[data-layout="15"] .dashboard-detail-card footer{grid-column:3;grid-row:1/4;border:0;align-self:center}
.dashboard-layout[data-layout="15"] :is(.dashboard-card-inventory,.dashboard-card-readouts,.dashboard-real-status,.dashboard-card-message){display:none}
.dashboard-layout[data-layout="15"] .dashboard-narrow-card{display:flex;flex-direction:column;gap:.5rem;}
.dashboard-layout[data-layout="15"] .dashboard-narrow-card .dashboard-card-top{flex-direction:row;justify-content:space-between;}
.dashboard-many-nodes{display:grid!important;aspect-ratio:auto;border-radius:.8rem;min-height:0;background:none;grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-many-nodes .dashboard-node{position:static;transform:none;width:auto;border-radius:.8rem;aspect-ratio:auto}.dashboard-many-nodes .dashboard-orbit-center{display:none}
@media(max-width:1100px){.dashboard-layout:is([data-layout="5"],[data-layout="7"],[data-layout="8"]) .dashboard-layout-body{grid-template-columns:1fr}.dashboard-layout[data-layout="9"] .dashboard-layout-body{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-layout[data-layout="9"] .dashboard-section-hub,.dashboard-layout[data-layout="9"] .dashboard-activity{grid-column:1/-1}.dashboard-layout[data-layout="9"] .dashboard-focus{grid-column:1/-1;grid-row:auto}}
@media(max-width:600px){.dashboard-orbit-grid{display:grid!important;aspect-ratio:auto;min-height:0;border-radius:.8rem;background:none;gap:.75rem}.dashboard-orbit-center{position:static;transform:none;width:auto;height:auto;border-radius:.8rem}.dashboard-orbit-grid .dashboard-node{position:static;transform:none;width:auto;aspect-ratio:auto;border-radius:.8rem;align-items:stretch;text-align:left}.dashboard-layout[data-layout="11"] .theme-section-grid{padding:0}.dashboard-layout[data-layout="11"] .dashboard-detail-card{transform:none!important;grid-column:auto!important}.dashboard-layout[data-layout="12"] .dashboard-detail-card,.dashboard-layout[data-layout="12"] .dashboard-detail-card>*{transform:none!important;box-shadow:none}.dashboard-layout:is([data-layout="6"],[data-layout="15"]) .dashboard-detail-card{display:flex;padding:1rem;border-radius:.8rem;margin:0!important}.dashboard-layout[data-layout="6"] .dashboard-layout-body{grid-template-columns:1fr}.dashboard-layout[data-layout="6"] .dashboard-activity{grid-column:1/-1}.dashboard-layout[data-layout="6"] .dashboard-greeting h2{font-size:1.8rem}}

/* Floating chooser keeps the live dashboard in place while browsing. */
.dashboard-layout-browser{position:fixed;z-index:80;right:16px;top:85px;width:310px;max-width:calc(100vw - 24px);max-height:calc(100vh - 100px);display:flex;flex-direction:column;margin:0;padding:.8rem;box-shadow:0 12px 40px #0003;overflow:hidden}
.dashboard-browser-heading{display:flex;align-items:center;gap:.5rem;cursor:move;touch-action:none;padding-bottom:.65rem;border-bottom:1px solid var(--line)}
.dashboard-browser-heading strong{flex:1}.dashboard-browser-heading button,.dashboard-browser-pager button{background:var(--workspace);color:var(--ink);border:1px solid var(--line);border-radius:.35rem;padding:.4rem .65rem;cursor:pointer}
.dashboard-browser-pager{display:flex;align-items:center;justify-content:space-between;padding:.7rem 0}.dashboard-browser-pager strong{font-size:.85rem}
.dashboard-layout-browser>p{font-size:.75rem;margin:0 0 .7rem}.dashboard-layout-browser .dashboard-layout-choices{grid-template-columns:repeat(2,minmax(0,1fr));overflow:auto;min-height:0;padding:3px;gap:.65rem}
.dashboard-layout-browser .dashboard-layout-choices button{padding:.5rem;gap:.3rem}.dashboard-layout-browser .dashboard-layout-choices button>span:last-child{font-size:.65rem;line-height:1.3}.dashboard-layout-actions{flex-shrink:0;padding-top:.4rem}
.dashboard-theme-thumbnail{width:100%;height:auto;aspect-ratio:5/3;background:var(--surface);border:1px solid var(--line);border-radius:.25rem}
.thumbnail-card{fill:var(--workspace);stroke:var(--muted);stroke-width:1}.thumbnail-summary{fill:var(--sidebar);stroke:var(--ink);stroke-width:1.5}.thumbnail-focus{fill:var(--sidebar);stroke:var(--muted);stroke-width:1;stroke-dasharray:3 2}.thumbnail-ring{fill:none;stroke:var(--line);stroke-width:1.5}.thumbnail-line{stroke:var(--muted);stroke-width:1}
.dashboard-layout-browser.is-minimized .dashboard-layout-choices,.dashboard-layout-browser.is-minimized>p{display:none}
@media(max-width:600px){.dashboard-layout-browser{top:auto!important;left:auto!important;right:8px!important;bottom:8px;width:calc(100vw - 16px);max-width:none;max-height:45vh}.dashboard-layout-browser .dashboard-layout-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-browser-heading{cursor:default}.dashboard-layout-browser>p{display:none}}

/* Sizing controls preserve readable text; overflowing details stay scrollable. */
.dashboard-detail-card{max-width:100%;box-sizing:border-box}.dashboard-custom-sized{min-height:0!important;overflow:auto}
[data-section-expand]{background:var(--surface);border:1px solid var(--line);color:var(--ink);border-radius:.35rem;padding:.4rem .6rem;font:inherit;cursor:pointer;align-self:start;grid-column:1/-1}
.dashboard-layout[data-compact-details="true"] .dashboard-detail-card:not([data-expanded="true"]) :is(.dashboard-card-message,.dashboard-card-inventory,.dashboard-card-readouts,footer){display:none!important}
.dashboard-layout[data-compact-details="true"] .dashboard-detail-card[data-expanded="true"] :is(.dashboard-card-message,.dashboard-card-inventory,.dashboard-card-readouts,footer):not([hidden]){display:block!important}
.dashboard-layout[data-fit-pane="true"] .dashboard-layout-body{height:var(--dashboard-fit-height,400px);max-height:var(--dashboard-fit-height,400px);min-height:180px;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}
.dashboard-layout[data-fit-pane="true"] .dashboard-section-hub{min-height:0;height:100%;overflow:hidden;display:flex;flex-direction:column}
.dashboard-layout[data-fit-pane="true"] .theme-section-grid{min-height:0;flex:1;overflow:auto;align-items:stretch;grid-auto-rows:minmax(90px,1fr);padding:4px!important}
.dashboard-layout[data-fit-pane="true"] .dashboard-detail-card{min-height:0!important;max-height:100%;overflow:auto;transform:none!important;box-shadow:none;margin:0!important;padding:.65rem!important}
.dashboard-layout[data-fit-pane="true"] .dashboard-detail-card>*{transform:none!important}
.dashboard-layout[data-fit-pane="true"] .dashboard-focus{max-height:100%;min-height:0;overflow:auto;grid-row:1}
.dashboard-layout[data-fit-pane="true"] .dashboard-activity{max-height:90px;overflow:auto;grid-row:2}
.dashboard-layout[data-fit-pane="true"] .dashboard-card-symbol{width:28px;height:28px}
@media(max-width:600px){.dashboard-layout[data-fit-pane="true"] .dashboard-layout-body{grid-template-columns:1fr!important}.dashboard-layout[data-fit-pane="true"] .dashboard-focus{grid-row:auto;max-height:80px}.dashboard-layout[data-fit-pane="true"] .dashboard-activity{display:none}.dashboard-layout[data-fit-pane="true"] .dashboard-section-hub{grid-row:1;grid-column:1}}
