/* household: who-filter chips, owner tags, picker, monthly summary */
.who-bar{display:flex;gap:8px;overflow-x:auto;margin:0 0 14px;padding:2px 1px 4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.who-bar::-webkit-scrollbar{display:none}
.who-bar button{flex:none;display:inline-flex;align-items:center;gap:6px;padding:7px 14px 7px 8px;border-radius:99px;background:var(--surface);border:1px solid var(--line);font-size:13px;font-weight:700;color:var(--muted)}
.who-bar button[data-w="all"]{padding-left:13px}
.who-bar button.on{background:var(--blue-800);border-color:var(--blue-800);color:#fff}
.who-bar .who-sum{padding-left:13px;color:var(--blue-800);background:var(--blue-100);border-color:transparent}
.who-av{width:22px;height:22px;border-radius:50%;display:inline-grid;place-items:center;font-size:11px;font-weight:800;color:#6b4a14;flex:none;overflow:hidden}
.who-av.big{width:42px;height:42px;font-size:18px}
.who-tag{display:inline-block;font-size:10px;font-weight:800;line-height:1.5;padding:0 7px;border-radius:99px;color:#5b4210;margin-right:3px;vertical-align:1px}
.who-field{display:block}
/* first-run picker */
.fam-pick{display:flex;align-items:center;gap:12px;width:100%;padding:11px 14px;margin:0 0 9px;border-radius:16px;background:var(--surface-2);border:1.5px solid var(--line);font-size:16px;font-weight:700;text-align:left;color:var(--ink)}
.fam-pick:active{transform:scale(.985);border-color:var(--blue-600)}
.fam-or{text-align:center;color:var(--muted);font-size:12px;margin:14px 0 10px!important}
/* monthly summary */
.fam-sheet{max-height:92vh;overflow-y:auto}
.fam-nav{display:flex;align-items:center;justify-content:space-between;margin:2px 0 14px}
.fam-nav button{width:38px;height:38px;border-radius:50%;background:var(--surface-2);font-size:20px;color:var(--ink)}
.fam-nav strong{font-size:17px}
.fam-sum{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.fam-sum>div{background:var(--surface-2);border-radius:16px;padding:11px 10px;min-width:0}
.fam-sum small,.fam-stats small{display:block;font-size:11px;color:var(--muted);margin-bottom:3px}
.fam-sum strong{display:block;font-size:14px;overflow-wrap:anywhere}
.fam-money.g{color:var(--green)}.fam-money.r{color:var(--red)}
.fam-card{border:1px solid var(--line);border-radius:18px;padding:13px;margin-bottom:11px;background:var(--surface)}
.fam-top{display:flex;align-items:center;gap:10px;margin-bottom:11px}
.fam-top b{font-size:16px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fam-share{font-size:11px;font-weight:700;color:var(--muted);background:var(--surface-2);padding:3px 9px;border-radius:99px;white-space:nowrap}
.fam-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.fam-stats strong{display:block;font-size:14px;overflow-wrap:anywhere}
.fam-stats em{display:block;font-style:normal;font-size:10px;color:var(--muted);margin-top:2px}
.fam-bar{height:7px;border-radius:9px;background:var(--surface-2);margin-top:12px;overflow:hidden}
.fam-bar i{display:block;height:100%;border-radius:9px}
.fam-h{font-size:14px;margin:18px 0 8px}
.fam-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--muted);margin:-2px 0 10px}
.fam-legend span{display:inline-flex;align-items:center;gap:5px}.fam-legend i{width:10px;height:10px;border-radius:50%;display:inline-block}
.fam-cat{margin-bottom:13px}
.fam-cat-top{display:flex;justify-content:space-between;font-size:13px;margin-bottom:5px;gap:8px}
.fam-track{display:flex;height:11px;border-radius:9px;overflow:hidden;background:var(--surface-2)}
.fam-track i{display:block;height:100%}
.fam-cat small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.fam-note{font-size:11px;color:var(--muted);margin:14px 0 2px}
body.hide-amounts .fam-money,body.hide-amounts .fam-stats strong,body.hide-amounts .fam-sum strong{filter:blur(9px);user-select:none}
.fam-cancel{display:block;margin:12px auto 0;color:var(--muted)}
.prof-switch{display:block;margin:14px auto 0;color:var(--blue-800)}
