/* Dashboard (me.troyvixious.com only, js/dashboard.js). Same page as the other tools (inside <main id="home">), so
   every rule is scoped to #home or its dialog. Same look as Radar: glass panels on the void, purple accent.
   Layout: summary strip, area filters, the Active board (3 slots), then Parked/Done (left) and Activity (right). */
#home .wrap{max-width:1180px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
#home .app-view{display:flex;flex-direction:column;gap:18px}
#home .panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-panel);
  -webkit-backdrop-filter:blur(18px) saturate(130%);backdrop-filter:blur(18px) saturate(130%)}
#home header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
#home h1{font-size:24px;font-weight:700;letter-spacing:-.01em;margin:0;line-height:1.1}
#home h2{font-size:13px;font-weight:600;margin:0}
#home h3{font-size:17px;font-weight:700;line-height:1.2;margin:0;overflow-wrap:anywhere}
#home .asof{font-size:12.5px;color:var(--dim);margin-top:4px}
#home .acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#home .btn{padding:8px 14px;font-size:13px}
#home .btn.sm{padding:6px 11px;font-size:12.5px;font-weight:600}
#home .dim{color:var(--dim)}
#home .label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--dim);font-weight:600}
#home .head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
#home .hint{font-size:12.5px;color:var(--dim)}
#home input,#home textarea,#hEdit input,#hEdit select,#hEdit textarea{background-color:var(--panel-2);border:1px solid var(--line);color:var(--fg);border-radius:var(--r);padding:8px 10px;font:inherit;font-size:13px;min-width:0;width:100%}
#home input:focus,#hEdit input:focus,#hEdit select:focus,#hEdit textarea:focus{outline:1px solid var(--accent);outline-offset:-1px}
/* live dot */
#home .live{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--dim);margin-right:4px}
#home .live i{width:7px;height:7px;border-radius:50%;background:var(--faint)}
#home .live.on i{background:var(--early);box-shadow:0 0 0 3px rgba(127,214,164,.2)}
/* summary */
#home .summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
#home .summary > div{padding:14px 18px;display:flex;flex-direction:column;gap:2px}
#home .summary > div + div{border-left:1px solid var(--line)}
#home .summary .num{font-size:28px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.1}
#home .summary .num small{font-size:15px;color:var(--dim);font-weight:500}
#home .summary .num.warn{color:var(--warn)}
/* filters (same segmented control as Radar) */
#home .seg{display:flex;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;flex-wrap:wrap;align-self:flex-start;background:var(--panel)}
#home .seg button{border:0;background:transparent;color:var(--dim);font:inherit;font-size:12.5px;padding:6px 12px;cursor:pointer;white-space:nowrap}
#home .seg button + button{border-left:1px solid var(--line)}
#home .seg button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
/* area chips (Radar's stage colors) */
#home .chip{display:inline-block;font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:999px;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
#home .chip.flyhi{background:var(--rising-bg);color:var(--rising)}
#home .chip.client{background:var(--early-bg);color:var(--early)}
#home .chip.music{background:var(--new-bg);color:var(--new)}
#home .chip.learning{background:var(--cool-bg);color:var(--cool)}
#home .chip.other{background:var(--steady-bg);color:var(--steady)}
#home .age{font-size:11.5px;font-family:var(--font-mono);color:var(--dim);white-space:nowrap}
#home .age.stale{color:var(--warn)}
/* active board */
#home .active{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#home .card{padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
#home .card.stale{border-color:rgba(230,184,106,.55)}
#home .card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
#home .nextup{background:var(--panel-2);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
#home .nextup p{margin:0;font-weight:600;overflow-wrap:anywhere}
#home .nextup p.empty{color:var(--dim);font-weight:400;font-style:italic}
#home .events{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
#home .events li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:8px;font-size:12.5px;align-items:baseline}
#home .t{overflow-wrap:anywhere;min-width:0}
#home .events a,#home .feed a{color:inherit;text-decoration-color:var(--line-2);text-underline-offset:3px}
#home .src{width:8px;height:8px;border-radius:50%;display:inline-block}
#home .src.manual{background:var(--accent-hi)}
#home .src.github{background:var(--fg)}
#home .src.vercel{background:var(--early)}
#home .src.vercel.fail{background:#ef6b62}
#home .log{display:flex;gap:6px}
#home .card-acts{display:flex;gap:2px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:8px}
#home .card-acts .link{text-decoration:none;font-size:12.5px}
#home .slot{border:1px dashed var(--line-2);border-radius:var(--r-panel);padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;color:var(--dim);font-size:14px;min-height:180px}
#home .slot small{font-size:12.5px;color:var(--faint)}
/* lower: parked/done + activity */
#home .lower{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px;align-items:start}
#home .rows{overflow:hidden}
#home .row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:12px 16px;align-items:center}
#home .row + .row{border-top:1px solid var(--line)}
#home .row .name{font-weight:600;overflow-wrap:anywhere}
#home .row .meta{display:flex;gap:10px;align-items:center;margin-top:4px;flex-wrap:wrap;font-size:12.5px}
#home .row .meta .dim{overflow-wrap:anywhere}
#home details summary{cursor:pointer;color:var(--dim);font-size:13px;margin:14px 0 10px}
#home .feed{list-style:none;margin:0;padding:0}
#home .feed li{padding:11px 16px;display:grid;grid-template-columns:12px minmax(0,1fr);gap:10px;font-size:12.5px}
#home .feed li + li{border-top:1px solid var(--line)}
#home .feed .src{margin-top:5px}
/* sign in */
#home .login{max-width:420px;width:100%;margin:12vh auto 0;padding:24px;display:flex;flex-direction:column;gap:12px}
#home .login p{margin:0;color:var(--dim)}
#home .login form{display:flex;flex-direction:column;gap:10px}
/* edit dialog */
#hEdit .hform{display:flex;flex-direction:column;gap:12px;padding-top:14px}
#hEdit .field small{font-size:11.5px;color:var(--faint)}
#hEdit .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#hEdit textarea{resize:vertical;min-height:70px}
#hEdit select{-webkit-appearance:none;appearance:none;padding-right:30px;cursor:pointer;
  background-image:linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position:calc(100% - 16px) 52%, calc(100% - 11px) 52%;background-size:5px 5px;background-repeat:no-repeat}
#hEdit select option{background:#16151d;color:var(--fg)}
#hEdit .mono{font-family:var(--font-mono)}
#hEdit .dlg-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:4px}
#hEdit .dlg-actions span{display:flex;gap:8px}
#hEdit .btn{padding:8px 14px;font-size:13px}
/* toast */
#hToast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(20px + env(safe-area-inset-bottom,0px));background:#14131b;border:1px solid var(--line-2);color:var(--fg);padding:10px 16px;border-radius:var(--r-panel);font-size:13px;z-index:50}
#hToast[hidden]{display:none}
@media (max-width:900px){
  #home .active,#home .lower{grid-template-columns:minmax(0,1fr)}
  #home .summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  #home .summary > div:nth-child(3){border-left:0}
  #home .summary > div:nth-child(n+3){border-top:1px solid var(--line)}
}
@media (max-width:480px){ #hEdit .two{grid-template-columns:minmax(0,1fr)} #home h1{font-size:22px} }
/* Desktop: the tool switch is fixed top right, so start below it (the header's buttons would sit under it). */
@media (min-width:981px){ #home .wrap{padding-top:40px} }
