/* The Technical Desk: this dashboard's own markup in the Support Desk's design (desk.css, loaded first, is that stylesheet
   as it is). Only names and sizes are translated here; every colour, radius and shadow comes from the desk's tokens. */
:root{
  /* the names the pages' own inline styles use */
  --base:var(--shell); --deep:var(--white); --panel:var(--card);
  --text:var(--ink); --text-70:var(--nav); --text-62:var(--muted); --text-55:var(--muted);
  --border:var(--line); --border-strong:var(--line2); --card-soft:var(--soft); --card-strong:var(--grey-bg);
  --rose:var(--ink); --rose-hover:var(--ink2); --rose-dim:var(--grey-bg);
  --ok-text:var(--green-ink); --ok-dim:var(--green-bg);
  --warn:var(--amber); --warn-text:var(--amber-ink); --warn-dim:var(--amber-bg);
  --err:var(--red); --err-text:var(--red-ink); --err-dim:var(--red-bg);
  --info:var(--blue); --info-text:var(--blue-ink); --info-dim:var(--blue-bg);
  --mute:var(--grey-mark); --mute-text:var(--grey-ink); --mute-dim:var(--grey-bg);
  --sleep:var(--violet); --calm:var(--green); --cycle:var(--violet); --journey:var(--amber);
  --good:var(--green-ink);
}

/* ---------- the menu */
.nav{overflow-y:auto;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.nav .nav-item svg{width:20px;height:20px;stroke-width:1.75;flex:none}
.nav-group summary{list-style:none;cursor:pointer;width:100%}
.nav-group summary::-webkit-details-marker{display:none}
.nav-group summary .chev{margin-left:auto;transition:transform .2s;width:16px;height:16px}
.nav-group:not([open]) summary .chev{transform:rotate(-90deg)}
.nav-group .nav-sub{margin-top:4px}
.tech-foot{margin-top:auto;display:flex;align-items:center;gap:6px;padding:8px 0 0 4px}
.tech-foot .avatar{width:40px;height:40px;border-radius:var(--r-pill);background:var(--ink);color:var(--white);display:grid;place-items:center;font-weight:600;flex:none}
.tech-foot-name{flex:1;min-width:0}
.tech-foot-name strong{display:block;font-weight:600;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tech-foot-name small{display:block;font-size:13px;color:var(--muted);line-height:1.25}
.tech-foot-btn{width:30px;height:30px;border:0;border-radius:var(--r-pill);background:transparent;color:var(--nav);display:inline-grid;place-items:center;flex:none;cursor:pointer}
.tech-foot-btn:hover{background:var(--card);color:var(--ink)}
.tech-foot-btn svg{width:17px;height:17px}
.tech-scrim{display:none}
#nav-open:focus-visible ~ .shell .menu-btn{outline:2px solid var(--ink);outline-offset:2px}
@media (max-width:900px){
  #nav-open:checked ~ .shell .nav{transform:none;box-shadow:24px 0 64px rgba(0,0,0,.14)}
  #nav-open:checked ~ .shell .tech-scrim{display:block;position:fixed;inset:0;z-index:41;background:rgba(0,0,0,.25)}
}
@media (min-width:901px) and (max-width:1359px){
  .tech-foot{flex-direction:column;padding:8px 0 0}
  .tech-foot-name{display:none}
  .nav-group{align-items:center;width:100%}
  .nav-group summary{width:48px}
  .nav-group .nav-sub{width:100%}
}

/* ---------- page */
.tech{gap:20px}
.tech > .menu-btn{align-self:flex-start;cursor:pointer}
.pagehead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;min-height:48px}
.pagehead .eyebrow{display:none}
.pagehead h1{font-size:32px;line-height:40px;font-weight:600;letter-spacing:-.025em}
.pagehead h1 .count{font-size:22px;color:var(--muted);font-weight:500;letter-spacing:-.01em}
.head-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.tech a{color:var(--ink);text-decoration:none}
.tech a:hover{text-decoration:underline;text-underline-offset:2px}
.tech a.btn:hover,.tech a.stat-card:hover{text-decoration:none}
.tech p{margin-bottom:0}
.tech h1,.tech h2,.tech h3{font-weight:600;letter-spacing:-.015em}

/* ---------- cards */
.tech .card{padding:24px 28px}
.tech .card-tight{padding:16px 24px;background:var(--card);border-radius:var(--r-card);box-shadow:var(--shadow)}
.tech .card-flex{display:flex;flex-direction:column;gap:16px}
.tech .card-head{padding:0 0 12px;align-items:flex-start;gap:8px 12px}
.tech .card-flex > .card-head{padding-bottom:0}
.tech .card-head h2{font-size:20px;line-height:1.3}
.tech .card-head .meta,.card-sub{font-size:13px;color:var(--muted)}
.tech .row{display:flex;flex-wrap:wrap;gap:20px;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;cursor:default}
.tech .row:hover{background:transparent;border:0;box-shadow:none}
.tech .row > .col-2{flex:2 1 560px;min-width:0}
.tech .row > .col-1{flex:1 1 320px;min-width:0}
.tech section{min-width:0}

/* ---------- key numbers: the desk's white card holding one grey panel */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));background:var(--soft);border:8px solid var(--card);outline:1px solid #EEEEEE;outline-offset:-8px;border-radius:var(--r-card);box-shadow:var(--shadow)}
.stat-card{display:flex;flex-direction:column;gap:12px;padding:20px 22px;border-radius:var(--r-in);color:var(--ink);text-decoration:none;min-width:0}
a.stat-card:hover{background:rgba(255,255,255,.7);color:var(--ink)}
.stat-grid .stat-card:first-child{background:var(--card);box-shadow:0 1px 2px rgba(0,0,0,.04),0 12px 32px rgba(0,0,0,.08)}
.stat-card .label{font-weight:500;line-height:1.3}
.stat-card .value{font-size:44px;font-weight:600;letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums}
.stat-card .value small{font-size:20px;font-weight:500;color:var(--muted);letter-spacing:-.01em}
.stat-card .delta{font-size:13px;color:var(--muted)}
.stat-card .delta.up{color:var(--green-ink)}
.stat-card .delta.warn{color:var(--amber-ink)}
.segment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));background:var(--soft);border:8px solid var(--card);outline:1px solid #EEEEEE;outline-offset:-8px;border-radius:var(--r-card);box-shadow:var(--shadow)}
.segment{display:flex;flex-direction:column;gap:6px;padding:16px 20px;border-radius:var(--r-in)}
.segment .label{font-size:13px;color:var(--muted)}
.segment .value{font-size:26px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}

/* ---------- status: the desk's chips */
.tech .pill{height:26px;padding:0 10px;gap:6px;border-radius:var(--r-pill);border:1px solid #E3E3E3;background:var(--card);color:var(--grey-ink);font-size:13px;font-weight:500;white-space:nowrap;display:inline-flex;align-items:center;cursor:default}
.tech .pill:hover{background:var(--card)}
.tech .pill-dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.tech .pill-ok,.tech .pill-ok:hover{background:var(--green-bg);border-color:var(--green-line);color:var(--green-ink)}
.tech .pill-warn,.tech .pill-warn:hover{background:var(--amber-bg);border-color:var(--amber-line);color:var(--amber-ink)}
.tech .pill-err,.tech .pill-err:hover{background:var(--red-bg);border-color:var(--red-line);color:var(--red-ink)}
.tech .pill-info,.tech .pill-info:hover{background:var(--blue-bg);border-color:var(--blue-line);color:var(--blue-ink)}
.tech .pill-mute,.tech .pill-mute:hover{background:var(--card);border-color:#E3E3E3;color:var(--muted)}
.tech .pill-rose,.tech .pill-rose:hover{background:var(--ink);border-color:var(--ink);color:var(--white)}

/* ---------- buttons */
.tech .btn{background:var(--card);border:1px solid var(--line2);color:var(--ink);text-decoration:none;font-weight:500;cursor:pointer}
.tech .btn:hover{background:var(--soft);color:var(--ink)}
.tech .btn-sm{height:36px;padding:0 14px;font-size:14px}
.tech .btn-xs{height:30px;padding:0 12px;font-size:13px}
.tech .btn-primary{background:var(--ink);border-color:var(--ink);color:var(--white)}
.tech .btn-primary:hover{background:var(--ink2);border-color:var(--ink2);color:var(--white)}
.tech .btn-danger{color:var(--red-ink);border-color:var(--red-line);background:var(--card)}
.tech .btn-danger:hover{background:var(--red-bg);color:var(--red-ink)}
.tech .btn-solid-danger{background:var(--red);border-color:var(--red);color:var(--white)}
.tech .btn-solid-danger:hover{background:var(--red-ink);color:var(--white)}
.tech form{margin:0}
.tech form.inline{display:inline;width:auto}

/* ---------- tables: the desk's .tbl */
.tech table{width:100%;border-collapse:collapse}
.tech th{font-size:13px;font-weight:500;color:var(--muted);text-align:left;padding:0 12px 10px 0;white-space:nowrap}
.tech td{padding:11px 12px 11px 0;border-top:1px solid #F2F2F2;vertical-align:middle;font-size:14px}
.tech td:last-child,.tech th:last-child{padding-right:0}
.tech tbody tr:hover td{background:transparent}
.tech .table-wrap{overflow-x:auto}
.tech .card[style*="padding:0"]{padding-bottom:8px!important}
.tech .card[style*="padding:0"] > .table-wrap{padding:0 24px}
.tech .card[style*="padding:0"] > .card-head{padding:20px 24px 12px}
.user-cell{display:flex;align-items:center;gap:12px}
.user-cell .initial{width:36px;height:36px;border-radius:50%;background:var(--avatar);display:grid;place-items:center;font-weight:600;font-size:14px;flex:none}
.user-cell .name{font-weight:500;color:var(--ink)}
.user-cell .email{font-size:13px;color:var(--muted)}
.tech .kv{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-top:1px solid #F2F2F2;font-size:14px;text-align:left;margin:0}
.tech .kv:last-child{border-bottom:0}
.tech .card-head + .kv{border-top:0}
.kv .k{color:var(--muted)}

/* ---------- fields */
.tech select,.tech input[type=text],.tech input[type=email],.tech input[type=password],.tech input[type=search],.tech input[type=number],.tech input[type=url]{height:44px;padding:0 18px;border-radius:var(--r-pill);border:1px solid var(--line2);background:var(--card);color:var(--ink);outline:0;max-width:100%}
.tech textarea{padding:14px 18px;border-radius:var(--r-in);border:1px solid var(--line2);background:var(--card);color:var(--ink);outline:0;resize:vertical;max-width:100%}
.tech select:focus,.tech input:focus,.tech textarea:focus{border-color:var(--ink)}
.tech input[type=checkbox]{accent-color:var(--ink);width:16px;height:16px}
.search-field{display:flex;align-items:center;gap:10px;height:44px;padding:0 18px;border-radius:var(--r-pill);border:1px solid var(--line2);background:var(--card);color:var(--muted)}
.tech .search-field input{height:auto;padding:0;border:0;background:transparent;flex:1;min-width:0}

/* ---------- small things */
.tech .empty{padding:40px 24px;text-align:center;font-size:14px;color:var(--muted)}
.tech .error{color:var(--red-ink);font-size:14px;font-weight:500;margin-bottom:12px}
.tech .notice{color:var(--green-ink);font-size:14px;font-weight:500;margin-bottom:12px}
.tech .mono{font-family:'Geist Mono',ui-monospace,Menlo,monospace}
.tech .tiny{color:var(--muted);font-size:13px}
.nv-badge{margin-left:auto;font-size:13px;color:var(--muted)}

@media (max-width:640px){
  .tech .card{padding:20px}
  .pagehead h1{font-size:26px;line-height:34px}
  .stat-card{padding:16px 18px}
  .stat-card .value{font-size:34px}
}
