/* 4.8.0: clean-up. A quieter menu, steady toolbars, simpler cards and a one-line update note.
   Only the theme's own colours (variables) are used, so every theme keeps its look. */

/* menu: group counts show when you point at a group; important pages get a small dot instead of a bar */
#navlist .navgh small{opacity:0;transition:opacity .15s}
#navlist .navgh:hover small,#navlist .navgh:focus-visible small{opacity:.55}
#navlist .navgb button.imp-c::before,#navlist .navgb button.imp-h::before{top:50%;bottom:auto;left:3px;width:5px;height:5px;border-radius:50%;transform:translateY(-50%);opacity:.9}
#navlist .navsub.imp-c,#navlist .navsub.imp-h{background:none}
#navlist .navgh span{letter-spacing:.08em}

/* page header: title, then the tools on the right, evenly spaced */
.ptools{gap:8px}
.ptools h1{letter-spacing:-.01em}

/* Command dashboard: Refresh and Arrange side by side on the right */
.cmd-sub{gap:8px}
.cmd-sub #refresh{margin-left:auto}

/* cards: one header style, the "Open" link quiet until you point at the card */
.card>header,.card .ch{min-height:0}
.bv-w>header .lnk{color:var(--mu);transition:color .15s}
.bv-w:hover>header .lnk,.bv-w>header .lnk:focus-visible{color:var(--x-link-style-button-text,var(--e-link))}
.bv-num{letter-spacing:-.02em}

/* empty states: centred and calm */
.card .note:only-child{color:var(--mu)}

/* the update note: one line at the bottom right, closes by itself */
.f432-new.f480-new{width:auto;max-height:none;overflow:visible;display:flex;align-items:center;gap:12px;padding:9px 10px 9px 14px;border-radius:999px;
  background:var(--surface2,var(--surface));border:1px solid var(--line2,var(--line));color:var(--tx);font-size:13px;box-shadow:var(--shadow);transition:opacity .3s,transform .3s}
.f480-new .f480-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--teal)}
.f480-new a{font-weight:700;text-decoration:none}.f480-new a:hover{text-decoration:underline}
.f480-new [data-x]{height:24px;width:24px;padding:0;border-radius:50%;color:var(--mu)}
.f432-new.f432-out{opacity:0;transform:translateY(8px)}

/* one marker per card title: a status dot replaces the accent bar */
.ch h2:has(.fc-dot)::before{display:none}
/* the breadcrumb already leads back to Settings: no second "‹ Settings" chip beside the title */
.crumbs + .ptools .s46-back{display:none}

/* phones: Back and the page tools on one row; the My view tools in one tidy row; card titles not squeezed by "Open" */
@media (max-width:760px){
  #page:has(> .crumbs + .ptools){flex-direction:row;flex-wrap:wrap;align-items:center;align-content:flex-start}
  #page:has(> .crumbs + .ptools) > *{flex:1 1 100%;min-width:0}
  #page > .crumbs + .ptools{flex:0 0 auto;border-bottom:0;padding-top:0;padding-bottom:0}
  #page > .crumbs:has(+ .ptools){flex:1 1 0}
  #page:has(> .crumbs + .ptools) > .pbody{border-top:1px solid var(--line)}
  .bv .toolrow{gap:8px}
  .bv .toolrow > .mute,.bv .toolrow > .sp{display:none}
  .bv .toolrow > button{flex:1 1 auto}
  .bv-w > header{align-items:flex-start}
  .bv-w > header .lnk{font-size:12px;padding-top:2px}
}

/* 4.8.2: "Your name in Samsara" (static/library/dvirview.js) */
.dsam-who{position:fixed;inset:0;z-index:9800;display:grid;place-items:center;padding:16px;background:color-mix(in srgb,var(--bg) 70%,transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.dsam-who-b{width:min(440px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:20px;border-radius:var(--r,14px);background:var(--surface);border:1px solid var(--line2,var(--line));box-shadow:var(--shadow);color:var(--tx)}
.dsam-who-b h2{margin:0 0 6px;font-size:18px}
.dsam-who-b input{width:100%;margin:8px 0}
.dsam-who-l{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto}
.dsam-who-l button{text-align:left;justify-content:flex-start;width:100%}
.dsam-who-l .bad{color:var(--bad,var(--red))}
.dsam-who-a{display:flex;justify-content:flex-end;margin-top:12px}

/* 4.8.3: Usage and limits › Database (static/library/fm4318.js) */
.f483-db{min-width:170px}.f483-run{font-size:12px;font-weight:600;color:var(--teal)}
.f483-n .lnk{margin-left:4px}
