/* Eric's dashboard (dash.html, assets/dash.js), in the rooms' own system (studio.css): laid out like a room, with what
   needs him in the left column (the bell's rows) and the rooms beside it (each a card with the record's numbers) */
.dash__name{padding-left:0;border-left:0}
.dash__at{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);white-space:nowrap}
.dash__main{display:grid;gap:28px;padding:20px var(--edge) 64px}
.dash__h{display:flex;align-items:baseline;margin:0 0 10px}
.dash__h .count{color:var(--need)}
@media (min-width:901px){
  .dash__main{grid-template-columns:minmax(340px,420px) minmax(0,1fr);gap:32px;align-items:start}
  .dash__side{position:sticky;top:calc(var(--bar) + 20px)}
  .dash__panel{max-height:calc(100dvh - var(--bar) - 40px);overflow:auto;overscroll-behavior:contain}
}

/* what needs him: one row for every kind, its mark, what it is with one quiet line under it, and when */
.dash__panel{padding:14px 8px 8px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.dash__panel .dash__h{padding:0 12px;margin-bottom:6px}
.dash__list{display:grid;gap:2px}
.dash__row{position:relative}
.dash__it{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(44px,auto);column-gap:12px;align-items:start;padding:10px 12px;border-radius:12px;text-decoration:none;color:inherit;transition:background-color .16s}
.dash__it:hover{background:var(--well)}
.dash__it:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.dash__mark{width:28px;height:28px;margin-top:-4px;border-radius:50%;display:grid;place-items:center;background:var(--well);color:var(--ink-2)}
.dash__mark svg{width:16px;height:16px}
.dash__mark--need{background:var(--need-wash);color:var(--need)}
.dash__body{display:grid;gap:3px;min-width:0}
.dash__title{font-size:15px;line-height:1.35;font-weight:620;color:var(--ink);text-wrap:pretty}
.dash__meta{font-size:13.5px;line-height:1.4;color:var(--mute);text-wrap:pretty}
.dash__meta b{font-weight:600;color:var(--ink-2)}
.dash__meta q{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:2px;color:var(--ink-2)}
.dash__end{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:20px}
.dash__when{font-size:12.5px;line-height:20px;color:var(--mute);white-space:nowrap;font-variant-numeric:tabular-nums}
.dash__new{width:8px;height:8px;border-radius:50%;background:var(--need);flex:none}
/* a reply that needs nothing (a thank-you): cleared on this device */
.dash__clear{appearance:none;position:absolute;right:8px;top:36px;padding:2px 4px;border:0;border-radius:6px;background:none;font:inherit;font-size:12.5px;color:var(--faint);cursor:pointer;opacity:0;transition:opacity .16s,color .16s}
.dash__row:hover .dash__clear,.dash__clear:focus-visible{opacity:1}
.dash__clear:hover{color:var(--ink)}
@media (hover:none){.dash__clear{opacity:1}}
.dash__empty{padding:4px 12px 10px;font-size:14.5px;line-height:1.45;color:var(--mute);text-wrap:pretty}
.dash__worker{margin-top:8px;padding-top:12px;border-top:1px solid var(--line)}

/* the rooms */
.dash__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:16px}
.room{display:grid;gap:10px;align-content:start;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.room__top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;text-decoration:none;border-radius:8px}
.room__brand{display:flex;align-items:center;min-width:0}
.room__logo{height:var(--logo-h,26px);width:auto;max-width:210px;object-fit:contain;object-position:left center}
.room__wordmark{font-weight:700;font-stretch:118%;font-size:17px;letter-spacing:-.01em}
.room__worker{display:inline-flex;align-items:center;gap:7px;font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--mute);white-space:nowrap}
.room__worker i{width:8px;height:8px;border-radius:50%;background:var(--faint);flex:none}
.room__worker--on i{background:var(--lime);box-shadow:0 0 0 1px var(--lime-edge)}
.room__worker--off{color:var(--need)}
.room__worker--off i{background:transparent;box-shadow:inset 0 0 0 1.5px var(--need)}
.room__worker--none i{background:transparent;box-shadow:inset 0 0 0 1.5px var(--faint)}
.room__who{font-size:14px;line-height:1.4;color:var(--mute);text-wrap:pretty}
.room__nums{grid-template-columns:repeat(4,minmax(0,1fr))}
.room .num{cursor:default;padding-top:10px;padding-bottom:10px}
.room .num:hover{box-shadow:none}
.room .num:hover span{color:var(--mute)}
.room__num b{font-size:26px}
.room__num--need b{color:var(--need)}
.room__today{font-size:14px;line-height:1.4;color:var(--ink-2)}
.room__last{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;font-size:13.5px;line-height:1.4;color:var(--mute)}
.room__last > span:last-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.room__last b{font-weight:600;color:var(--ink-2)}
.room__last-when{font-variant-numeric:tabular-nums}
.room__last--none{display:block}
.room__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px;padding-top:12px;border-top:1px solid var(--line-2)}
.room__addr{min-width:0;font-family:var(--mono);font-size:11px;color:var(--faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.room__open{flex:none}

.dash__samples{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 8px;margin-top:22px;font-size:14px;color:var(--mute)}
.dash__samples .label{margin-right:4px}
.dash__samples a{color:var(--ink-2);text-underline-offset:3px}

.dash__gate-row{display:flex;gap:8px}
.dash__gate-row .field__input{flex:1}
.gate .dash__gate-say{min-height:24px;font-size:15px;color:#b4232c}

@media (max-width:600px){
  .dash__at{display:none}
  .room{padding:14px 16px}
  .room__num b{font-size:22px}
  .dash__clear{top:auto;bottom:8px}
}

/* phones (audit 12-06: the rooms ran off the right edge and the bar lost its name) */
@media (max-width:900px){
  .dash__main{grid-template-columns:minmax(0,1fr)}   /* one column that never grows past the screen */
  .dash__bar .dash__name{display:inline}             /* the rooms hide their name on phones (their logo stays); here it's all there is */
}
