/* Sessions: the overview on hairlines, then every session as a row that opens in place with its graph; People
 * is the list of names the extension offers as chips. No orb and no light here: nothing on this page is live
 * the way the up-next card is. */
.sessions-workspace{max-width:1180px}
.sessions-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 24px;flex-wrap:wrap}
.sessions-heading>div:first-child{min-width:0}
.sessions-views{flex:none;border-bottom:0}
.sessions-views small:empty{display:none}

/* ── Sessions ───────────────────────────────────────────────────────────── */
.sessions-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px 20px;flex-wrap:wrap;min-height:32px;margin:0 0 18px}
.sessions-sync{display:flex;align-items:center;flex-wrap:wrap;gap:2px 4px;margin:0;font-size:12.5px;line-height:1.5;color:var(--gx-muted)}
.sessions-sync .gx-text-button{min-height:28px;margin:-4px 0}
.sessions-filter{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--gx-muted)}
.session-overview{margin:0 0 26px}
.session-table-wrap{overflow:hidden}
/* Fixed columns, so opening a session's detail never moves the rows around it. */
.session-table{table-layout:fixed}
.session-table th:nth-child(1){width:38%}
.session-table th:nth-child(2){width:17%}
.session-table th:nth-child(3){width:12%}
.session-table th:nth-child(4){width:15%}
.session-table th{padding-top:4px}
.session-table :is(th,td):first-child{padding-left:16px}
.session-table :is(th,td):last-child{padding-right:16px}
.session-table tbody tr.session-row:first-child td{border-top:1px solid var(--gx-hair)}
.session-row{cursor:pointer}
.session-row[data-open],.session-row[data-open]:hover{background:var(--gx-soft)}
.session-open{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;min-width:0;text-align:left;border-radius:8px}
.session-name{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;min-width:0}
.session-name b{font-size:13.5px;font-weight:600;overflow-wrap:anywhere}
.session-name .gx-chip{height:20px;padding:0 8px;font-size:11px}
.session-open small,.session-when small{display:block;font-size:12px;color:var(--gx-muted)}
.session-when{white-space:nowrap}
.session-row td[data-num]{white-space:nowrap}
.session-row td[data-label=Result] b{font-weight:600}
.session-detail-row>td{padding:6px 16px 22px;border-top:0;background:var(--gx-soft)}
.session-detail{display:flex;flex-direction:column;gap:18px;padding:16px 18px 14px;border-radius:12px;background:var(--gx-surface);box-shadow:0 0 0 1px var(--gx-stroke)}
.session-graph svg{height:160px}
.session-graph-loading{height:160px;border-radius:10px}
.session-graph-empty{padding:28px 0;text-align:center}
.session-facts{--cols:4}
.session-facts dd{font-size:17px}
.session-facts dd small{display:block;margin:3px 0 0;letter-spacing:0}
.session-detail-foot{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;font-size:13px}
.session-remove{margin-right:-10px}
.session-loading{display:flex;flex-direction:column;gap:10px;padding:16px}
.session-loading .gx-skel{height:46px}
.sessions-none{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px 6px;margin:0;padding:36px 16px;font-size:13px;color:var(--gx-muted);text-align:center}
/* No sessions yet: a faint sketch of the graph a session draws, then the two ways to get one. */
.sessions-first{padding:48px 20px 52px}
.gx-empty>.sessions-ghost{width:min(240px,80%);height:auto;margin:0 0 6px;stroke-width:1.5}
.sessions-ghost-zero{stroke:var(--gx-rule);stroke-dasharray:4 4}
.sessions-ghost-line{stroke:var(--gx-bar);stroke-linecap:round;stroke-linejoin:round}
.sessions-first-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:6px}
.sessions-first-actions :is(a,button){margin:0}
.remove-session-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:6px}
#remove-session-dialog .status{margin:0 0 6px}

/* ── Slots: tiles like Stake's own lobby, art first ─────────────────────── */
.slots-intro{max-width:72ch;margin:0 0 18px;font-size:13px;line-height:1.6;color:var(--gx-ink-2)}
.slots-filters{margin:0 0 18px}
.slots-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:22px 16px;list-style:none;margin:0;padding:0}
.slots-loading .gx-skel{aspect-ratio:180/236;border-radius:var(--gx-r-art)}
.slot-tile{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0}
.slot-link{display:flex;flex-direction:column;gap:8px;min-width:0;color:inherit;text-decoration:none;border-radius:var(--gx-r-art)}
.slot-art{position:relative;display:grid;place-items:center;aspect-ratio:180/236;overflow:hidden;border-radius:var(--gx-r-art);background:var(--gx-soft);box-shadow:0 0 0 1px var(--gx-stroke);transition:transform .25s var(--gx-ease)}
.slot-art img{width:100%;height:100%;object-fit:cover;display:block}
.slot-art-name{padding:14px;font-size:14px;font-weight:600;line-height:1.3;text-align:center;color:var(--gx-ink-2)}
.slot-link:hover .slot-art{transform:translateY(-3px)}
.slot-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.slot-copy b{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.slot-copy small{font-size:12px;color:var(--gx-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.slot-reason{margin:0;font-size:12px;line-height:1.45;color:var(--gx-ink-2)}
.slot-reason[data-reason=payout]{color:var(--gx-profit)}
.slot-notes{margin:-2px 0 0;font-size:11.5px;line-height:1.45;color:var(--gx-faint)}
.slot-remove{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:rgba(10,14,20,.62);color:#fff;opacity:0;transition:opacity .15s ease,background .15s ease}
.slot-remove svg{width:16px;height:16px}
.slot-tile:hover .slot-remove,.slot-remove:focus-visible{opacity:1}
.slot-remove:hover{background:rgba(10,14,20,.82)}
@media (hover:none){.slot-remove{opacity:1}}
.slots-first{padding:48px 20px}
@media (prefers-reduced-motion:reduce){.slot-art{transition:none}.slot-link:hover .slot-art{transform:none}}

/* ── People ─────────────────────────────────────────────────────────────── */
.people-view{max-width:640px}
.people-intro{max-width:62ch;margin:0 0 20px;font-size:13px;line-height:1.6;color:var(--gx-ink-2)}
.person-add{display:flex;align-items:flex-end;gap:10px;margin:0}
.person-add .gx-field{flex:1}
.people-list{list-style:none;margin:6px 0 0;padding:0}
.person-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:8px 8px 8px 16px}
.person-row+.person-row{border-top:1px solid var(--gx-hair)}
.person-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.person-copy b{font-size:13.5px;font-weight:600;overflow-wrap:anywhere}
.person-copy small{font-size:12px;color:var(--gx-muted)}
.person-actions{display:flex;align-items:center;gap:2px;flex:none}
.person-remove{color:var(--gx-loss)}
.person-remove:hover:not(:disabled){background:var(--gx-loss-wash)}
.person-rename{display:flex;align-items:center;gap:6px;width:100%}
.person-rename .gx-input{flex:1;height:36px}
.people-first{margin-top:14px;padding:40px 20px 44px;border-radius:var(--gx-r-group);background:var(--gx-surface);box-shadow:0 0 0 1px var(--gx-stroke)}
.people-first h2{font-size:17px}
/* Three faces, overlapping like chips do. */
.people-ghost{display:flex;margin:0 0 6px}
.people-ghost span{width:34px;height:34px;border-radius:50%;background:var(--gx-soft);box-shadow:0 0 0 3px var(--gx-surface)}
.people-ghost span+span{margin-left:-9px}
.people-ghost span:nth-child(2){background:var(--gx-press)}
.people-ghost span:nth-child(3){background:var(--gx-accent-soft)}

/* ── Phones: each session is a short card of rows ───────────────────────── */
@media (max-width:767px){
 .sessions-toolbar{align-items:flex-start;flex-direction:column}
 .session-table thead{display:none}
 .session-table,.session-table tbody{display:block}
 .session-table tbody tr.session-row:first-child td{border-top:0}
 .session-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:14px 14px 12px;border-top:1px solid var(--gx-hair)}
 .session-row:first-child{border-top:0}
 .session-table .session-row>td{display:block;padding:0;border:0}
 .session-row>td:first-child{grid-column:1/-1}
 .session-row>td[data-label=Time],.session-row>td[data-label='Net vaulted']{display:none}
 .session-row>td[data-label=Result]{align-self:end;text-align:right}
 .session-table .session-row>td.session-when{display:flex;align-items:baseline;gap:6px}
 .session-when small{display:inline}
 .session-detail-row{display:block}
 .session-detail-row>td{display:block;padding:0 10px 14px}
 .session-detail{padding:14px}
 .session-facts{--cols:2}
 .slots-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
 .person-add{flex-direction:column;align-items:stretch}
 .person-row{flex-wrap:wrap}
}
