/* ── Console (staff) and top-bar panels ─────────────────────────────── */

/* Tab strip under the console header, as the prototype draws it. */
.ctabs{display:flex;gap:4px;margin-bottom:16px;border-bottom:1px solid var(--rule);flex-wrap:wrap}
.ctabs a{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:8px 8px 0 0;color:var(--ink-2);font-weight:600;font-size:14px}
.ctabs a:hover{background:var(--surface-2)}
.ctabs a.on{color:var(--accent);box-shadow:inset 0 -2px 0 var(--accent)}
.ctabs a .cnt{font-size:11px;font-family:var(--f-data);padding:1px 7px;border-radius:9px;background:var(--warn-soft);color:var(--warn)}

/* Selectable list rows (plans, loved ones on an account). */
.lrow{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--rule-2);cursor:pointer}
.lrow:hover{background:var(--surface-2)}
.lrow.on{background:var(--accent-soft)}
.lrow .ch{margin-left:auto;color:var(--muted)}

/* Small fact tiles (price, limits). */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;padding:14px 20px}
.tile{padding:10px 12px;border:1px solid var(--rule);border-radius:8px}
.tile .v{font-family:var(--f-data);font-size:18px;margin-top:2px}

/* Check rows in the access drawer. */
.chk{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--rule);border-radius:8px;cursor:pointer;font-size:14px}
.chk.off{opacity:.55;cursor:default}
.chk input{margin:0}
.chk .m{margin-left:auto;font-size:12.5px;color:var(--muted);text-align:right}

/* Popover menu under the top-bar avatar. */
.pop-wrap{position:relative}
.pop{position:absolute;top:calc(100% + 8px);right:0;min-width:240px;background:var(--surface);border:1px solid var(--rule);border-radius:10px;box-shadow:var(--shadow-lg);z-index:45;overflow:hidden}
.pop-h{padding:12px 14px;border-bottom:1px solid var(--rule-2)}
.pop-h b{display:block;font-size:14px}
.pop-h span{font-size:12.5px;color:var(--muted)}
.pop button,.pop a{display:flex;align-items:center;gap:10px;width:100%;padding:9px 14px;border:0;background:transparent;text-align:left;font-size:14px;color:var(--ink);cursor:pointer}
.pop button:hover,.pop a:hover{background:var(--surface-2)}
.pop .sep{height:1px;background:var(--rule-2);margin:4px 0}
.pop .mark{width:7px;height:7px;border-radius:50%;background:var(--crit-dot);margin-left:auto}
.pop-scrim{position:fixed;inset:0;z-index:44}
.avbtn{width:36px;height:36px;border-radius:50%;border:1px solid var(--rule);background:transparent;padding:0;cursor:pointer;display:grid;place-items:center;position:relative}
.avbtn .mark{position:absolute;top:0;right:0;width:9px;height:9px;border-radius:50%;background:var(--crit-dot);border:2px solid var(--surface)}

/* Notification and search rows in their drawers. */
.ntf{display:flex;gap:10px;align-items:flex-start;padding:10px 8px;border-radius:8px;cursor:pointer}
.ntf:hover{background:var(--surface-2)}
.ntf .ic{font-size:18px;flex-shrink:0;margin-top:1px}
.ntf .t{font-size:14px;line-height:1.4}
.ntf .d{font-size:12px;color:var(--muted);margin-top:2px;font-family:var(--f-data)}
.sr{display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:8px;cursor:pointer}
.sr:hover{background:var(--surface-2)}
.sr .n{font-weight:600} .sr .s{font-size:13px;color:var(--muted)}
.sr .go{margin-left:auto;color:var(--muted)}
.sr-h{margin:14px 0 4px}

/* ── Account drawer, summary first ─────────────────────────────────────
   Who they are on one line and a row of chips; Access as two rows whose
   controls open in place; each loved one a card that shows only what was
   changed from its plan, the rest one link away. */
.acct-id{display:flex;align-items:flex-start;gap:10px;margin-bottom:18px}
/* not .who: the sidebar card (app.css) owns that name and made this a padded flex row */
.acct-id .acct-who{flex:1;min-width:0}
.acct-id .sub{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.acct-id .chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.acct-id .pop{min-width:260px;top:calc(100% + 4px)}
.acct-id .pop .hint{display:block;font-size:12px;color:var(--muted);font-weight:400}
.acct-id .pop button{flex-direction:column;align-items:flex-start;gap:1px}
.acct-id .pop button.crit{color:var(--crit)}
.acct-id .pop button:disabled{color:var(--faint);cursor:default;background:transparent}
.btn.icon{width:30px;padding:0;justify-content:center;font-size:17px;line-height:1}
.acct-list{border:1px solid var(--rule);border-radius:10px;overflow:hidden}
.acct-li{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:4px 10px;align-items:center;padding:9px 12px;border-bottom:1px solid var(--rule-2);font-size:14px}
.acct-li:last-child{border-bottom:0}
.acct-li .k{color:var(--muted);font-weight:600}
.acct-li.open{background:var(--surface-2)}
.acct-li .x{grid-column:1/-1;display:flex;flex-direction:column;gap:6px;padding-top:6px}
.acct-sec{margin-top:20px}
.acct-sec>.eyebrow{display:block;margin-bottom:8px}
.acct-lo{border:1px solid var(--rule);border-radius:10px;margin-bottom:10px;overflow:hidden}
.acct-lo-h{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;flex-wrap:wrap}
.acct-lo-h:hover{background:var(--surface-2)}
.acct-lo.on .acct-lo-h{background:var(--accent-soft)}
.acct-lo-h .sum{margin-left:auto;display:flex;gap:6px;align-items:center;font-size:13px;color:var(--muted)}
.acct-lo-b{padding:12px;border-top:1px solid var(--rule-2);display:flex;flex-direction:column;gap:12px}
.acct-gh{font-size:12.5px;font-weight:700;color:var(--muted);margin-bottom:2px}
.acct-fx .f{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px dashed var(--rule-2);font-size:14px}
.acct-fx .f:last-child{border-bottom:0}
.acct-fx .f .l{min-width:0;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.acct-fx .f .acts{font-size:13px;white-space:nowrap}
.acct-rest{font-size:13.5px;color:var(--muted);line-height:1.6}
.acct-lim{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px}
.acct-lim div{background:var(--surface-2);border-radius:8px;padding:7px 9px;min-width:0}
.acct-lim b{display:block;font-family:var(--f-data);font-weight:500;font-size:15px}
.acct-lim span{font-size:11.5px;color:var(--muted);line-height:1.25;display:block}
.acct-lim .hand b{color:var(--accent)}
.acct-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13.5px}
.acct-foot .crit{color:var(--crit)}
.acct-edit{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.acct-edit .full{grid-column:1/-1}
.acct-edit .in{width:100%}
@media (max-width:560px){.acct-edit{grid-template-columns:1fr}.acct-li{grid-template-columns:1fr auto}.acct-li .k{grid-column:1/-1}}
