/* The Family Sh*t Show - look & feel
   Rule: words grow, the frame stays put.
   - One switch: <html data-text="normal|big|biggest"> sets the reading sizes (the --t-* values).
   - Header, tabs, buttons, chips and faces use plain fixed px and never change. */
:root {
  --tomato: #B23E25;
  --tomato-dark: #8f3019;
  --mustard: #F2B83B;
  --mustard-soft: #FBE7B5;
  --coffee: #3B2A20;
  --coffee-soft: #6b5546;
  --cream: #FBF3E4;
  --card: #FFFCF6;
  --line: #EADCC3;
  --garden: #3E6634;
  --tap: 48px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  /* Reading sizes: Normal (the default, like a texting app) */
  --t-body: 16px;     /* messages, paragraphs, typed text */
  --t-name: 15px;     /* names above messages */
  --t-time: 12px;     /* times, counts */
  --t-note: 14px;     /* small lines in the chat ("put a video on the Fun Shelf") */
  --t-small: 14px;    /* helper text */
  --t-title: 22px;    /* page titles inside the page */
  --t-section: 17px;  /* section titles */
}
html[data-text="big"] {
  --t-body: 20px; --t-name: 18px; --t-time: 14px; --t-note: 17px; --t-small: 17px; --t-title: 26px; --t-section: 20px;
}
html[data-text="biggest"] {
  --t-body: 24px; --t-name: 21px; --t-time: 16px; --t-note: 20px; --t-small: 20px; --t-title: 30px; --t-section: 23px;
}

/* Stop phones from boosting text on their own; we size it. */
html { font-size: 16px; -webkit-text-size-adjust: none; text-size-adjust: none; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--cream); color: var(--coffee);
  font-family: 'Nunito', system-ui, sans-serif; font-size: var(--t-body); line-height: 1.4;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
  /* Never break a word in the middle. Only web links may break anywhere. */
  overflow-wrap: normal; word-break: normal; hyphens: none; -webkit-hyphens: none;
}
a.link { overflow-wrap: anywhere; word-break: break-all; }
h1, h2, h3, .fred { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: calc(var(--t-title) + 2px); margin: 0 0 8px; }
h2 { font-size: var(--t-title); margin: 0 0 10px; }
h3 { font-size: var(--t-section); margin: 0 0 6px; }
p { margin: 0 0 10px; }
a { color: var(--tomato); }
button, input, select, textarea { font-family: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--coffee-soft); }
.small { font-size: var(--t-small); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.kicker { color: var(--tomato); font-weight: 800; font-size: 13px; margin-bottom: 4px; letter-spacing: .02em; }

/* ---------- buttons (fixed size) ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
  width: 100%; min-height: var(--tap); padding: 8px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--card); color: var(--coffee);
  font-weight: 800; font-size: 16px; line-height: 1.2; cursor: pointer; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.btn.go { background: var(--garden); border-color: var(--garden); color: #fff; }
.btn.danger { color: var(--tomato); }
.btn[disabled] { opacity: .55; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.linkish { background: none; border: 0; color: var(--tomato); font-weight: 800; font-size: 16px; text-decoration: underline; cursor: pointer; padding: 8px 10px; min-height: var(--tap); }

/* ---------- forms ---------- */
label.field { display: block; font-weight: 800; font-size: var(--t-body); margin: 14px 0 6px; }
.input {
  width: 100%; min-height: var(--tap); padding: 8px 12px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--card); font-size: max(16px, var(--t-body));
}
.input:focus { outline: 3px solid var(--mustard); border-color: var(--mustard); }
.code-input { font-size: 28px; letter-spacing: .4em; text-align: center; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--card); font-weight: 800; font-size: 15px; cursor: pointer;
}
.chip.on { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.sentence { background: var(--mustard-soft); border: 2px solid var(--mustard); border-radius: 14px; padding: 12px 14px; margin-top: 16px; }
.sentence .fred { font-size: calc(var(--t-body) + 2px); }
.error { background: #fde3dc; color: var(--tomato-dark); border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-weight: 700; }

/* ---------- full-screen pages (forms, tutorials, settings, admin) ---------- */
.page { min-height: 100dvh; display: flex; flex-direction: column; padding-top: var(--safe-t); }
.topbar {
  display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 5;
  padding: 4px 8px; border-bottom: 2px solid var(--line); height: 56px; background: var(--cream);
}
.topbar .back { background: none; border: 0; color: var(--tomato); font-weight: 800; font-size: 16px; min-height: 48px; padding: 0 8px; cursor: pointer; white-space: nowrap; }
.topbar .title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.page-body { flex: 1; padding: 16px 16px calc(20px + var(--safe-b)); max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; }
.page-foot { margin-top: auto; padding-top: 16px; }

.welcome-art { width: 100%; border-radius: 18px; box-shadow: 0 8px 24px rgba(59,42,32,.18); display: block; }
.welcome-title { color: var(--tomato); text-align: center; font-size: calc(var(--t-title) + 2px); margin: 16px 0 6px; }

/* ---------- tutorial ---------- */
.os-pill { display: inline-block; padding: 4px 14px; border-radius: 999px; color: #fff; font-weight: 800; font-size: 15px; background: var(--tomato); margin-bottom: 12px; }
.os-pill.android { background: var(--garden); }
.step { display: flex; gap: 12px; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 10px; margin-bottom: 8px; }
.step .pic { flex: 0 0 52px; height: 52px; border-radius: 14px; background: var(--mustard-soft); display: flex; align-items: center; justify-content: center; }
.step .pic svg { width: 36px; height: 36px; stroke: var(--tomato); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step > div:last-child { min-width: 0; }
.step .k { color: var(--tomato); font-weight: 800; font-size: var(--t-time); }
.step .t { font-weight: 800; }
.step .d { color: var(--coffee-soft); font-size: var(--t-small); line-height: 1.3; }

/* ---------- main app shell ---------- */
.shell { height: 100dvh; display: flex; flex-direction: column; }
.header {
  background: var(--tomato); color: #fff; display: flex; align-items: center; gap: 10px;
  padding: var(--safe-t) 10px 0; height: calc(56px + var(--safe-t)); flex: 0 0 auto;
}
.badge-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--mustard); padding: 0; background: var(--mustard); cursor: pointer; flex: 0 0 auto; }
.badge-btn img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.badge-btn .count-bubble {
  position: absolute; top: -4px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--mustard); color: var(--coffee); border: 2px solid var(--tomato);
  font: 800 13px/18px 'Nunito', sans-serif; text-align: center;
}
.header .title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aa-btn { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); background: rgba(0,0,0,.12); color: #fff; font: 600 17px 'Fredoka', sans-serif; cursor: pointer; }
.main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; position: relative; }

.tabs {
  flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card);
  border-top: 1px solid var(--line); padding: 4px 4px var(--safe-b);
}
.tab { background: none; border: 0; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 800; font-size: 12px; color: var(--coffee-soft); cursor: pointer; padding: 0; line-height: 1; white-space: nowrap; min-width: 0; }
.tab .ico { display: flex; align-items: center; justify-content: center; width: 52px; height: 30px; border-radius: 15px; }
.tab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--tomato); }
.tab.on .ico { background: var(--mustard-soft); box-shadow: inset 0 0 0 2px var(--mustard); }

/* ---------- chat ---------- */
/* Scrolls from the bottom: newest messages sit right above the typing box. */
.chat-scroll { display: flex; flex-direction: column-reverse; height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.chat-list { padding: 4px 10px 10px; display: flex; flex-direction: column; }
.day-group { display: flex; flex-direction: column; gap: 6px; }
.day {
  position: sticky; top: 6px; z-index: 3; align-self: center; margin: 8px 0 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px;
  font-weight: 800; font-size: var(--t-time); white-space: nowrap; box-shadow: 0 2px 8px rgba(59,42,32,.14);
}
.msg { display: flex; gap: 8px; align-items: flex-start; max-width: 100%; }
.msg.cont { margin-top: -2px; }
.msg.mine { justify-content: flex-end; }
.avatar { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--coffee-soft); color: #fff; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg .spacer { flex: 0 0 32px; }
.msg-col { min-width: 0; max-width: calc(100% - 40px); display: flex; flex-direction: column; }
.msg.mine .msg-col { max-width: 85%; align-items: flex-end; }
.who-line { display: flex; align-items: center; gap: 6px; padding: 0 4px 2px; min-width: 0; }
.who-line .avatar { display: none; }
.who-line .nm { color: var(--tomato); font-weight: 800; font-size: var(--t-name); line-height: 1.2; }
.when { font-size: var(--t-time); color: var(--coffee-soft); line-height: 1.2; white-space: nowrap; }
.who-line .when { display: block; }
.who-stack { display: flex; flex-direction: column; min-width: 0; }
.bubble { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 7px 12px; min-width: 0; max-width: 100%; user-select: text; -webkit-user-select: text; }
.msg.mine .bubble { background: var(--mustard-soft); border-color: var(--mustard); }
.bubble .text { white-space: pre-wrap; overflow-wrap: break-word; }  /* only a word longer than the whole line may wrap */
.mine-when { padding: 2px 4px 0; }
.bubble img.ph { display: block; width: auto; height: auto; max-width: 100%; max-height: 300px; border-radius: 12px; margin: 2px 0 4px; cursor: pointer; background: var(--line); }
.bubble .tagline { font-size: var(--t-time); font-weight: 800; color: var(--coffee-soft); }
.tagged { background: var(--mustard); color: var(--coffee); font-weight: 800; border-radius: 6px; padding: 0 3px; }
.tagged.me { background: var(--tomato); color: #fff; }
/* At Biggest the face moves beside the name, so the words get the full width. */
html[data-text="biggest"] .msg > .avatar, html[data-text="biggest"] .msg > .spacer { display: none; }
html[data-text="biggest"] .msg-col { max-width: 100%; }
html[data-text="biggest"] .msg.mine .msg-col { max-width: 92%; }
html[data-text="biggest"] .who-line .avatar { display: flex; flex-basis: 32px; }

.note { align-self: center; background: var(--mustard-soft); border-radius: 14px; padding: 6px 14px; font-weight: 800; font-size: var(--t-note); text-align: center; max-width: 92%; margin: 4px 0; }
.fun-line { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; text-align: left; background: var(--mustard-soft); border: 2px solid var(--mustard); border-radius: 14px; padding: 6px 12px; font-weight: 800; font-size: var(--t-note); color: var(--coffee); cursor: pointer; margin: 4px 0; }
.fun-line .play { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--tomato); display: flex; align-items: center; justify-content: center; }
.fun-line .play svg { width: 14px; height: 14px; fill: var(--tomato); }
.load-more { align-self: center; width: auto; margin: 6px 0; }

.ask-card { background: var(--mustard-soft); border: 2px solid var(--mustard); border-radius: 16px; padding: 12px; margin: 4px 0; width: 100%; }
.ask-card .btn { margin-top: 8px; }

.composer-wrap { position: relative; flex: 0 0 auto; }
.composer {
  display: flex; align-items: flex-end; gap: 8px; padding: 6px 8px;
  background: var(--cream); border-top: 1px solid var(--line);
}
.round-btn { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cam { border: 2px solid var(--mustard); background: var(--mustard-soft); }
.cam svg { width: 22px; height: 22px; stroke: var(--tomato); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.send { border: 0; background: var(--tomato); }
.send svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linejoin: round; }
.composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 40vh; resize: none; padding: 9px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); font-size: max(16px, var(--t-body)); line-height: 1.3; display: block; }
.composer textarea:focus { outline: 2px solid var(--mustard); }
.muted-bar { background: var(--mustard-soft); padding: 12px 16px; text-align: center; font-weight: 800; border-top: 2px solid var(--mustard); }
.uploading { align-self: flex-end; font-weight: 800; color: var(--coffee-soft); font-size: var(--t-small); }

/* @ picker: pops up above the typing box */
.tag-pop { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 4px); background: var(--card); border: 2px solid var(--mustard); border-radius: 16px; box-shadow: 0 8px 24px rgba(59,42,32,.22); max-height: 46vh; overflow-y: auto; z-index: 20; padding: 4px; }
.tag-pop .hint { font-size: 13px; font-weight: 800; color: var(--coffee-soft); padding: 6px 10px 2px; }
.tag-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; background: none; border-radius: 12px; text-align: left; cursor: pointer; font-size: var(--t-body); font-weight: 800; }
.tag-opt:active, .tag-opt:focus { background: var(--mustard-soft); outline: none; }

/* ---------- sheets: words scroll, buttons stay pinned ---------- */
.overlay { position: fixed; inset: 0; background: rgba(59,42,32,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; max-height: 90dvh; display: flex; flex-direction: column; overflow: hidden; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 16px 8px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-body > .btn { margin-top: 10px; }
.sheet-foot { flex: 0 0 auto; padding: 10px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.sheet img.full-art { width: 100%; border-radius: 14px; display: block; margin-bottom: 6px; }
.whoa { background: var(--mustard-soft); }
.whoa .sheet-foot { background: var(--mustard-soft); border-top-color: var(--mustard); }

.size-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; margin-top: 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; text-align: left; }
.size-opt.on { border-color: var(--mustard); background: var(--mustard-soft); }
.size-opt .dot { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 800; }
.size-opt.on .dot { background: var(--tomato); border-color: var(--tomato); }
.size-opt .sample { flex: 1; min-width: 0; line-height: 1.25; }
.size-opt .lbl { color: var(--tomato); font-weight: 800; font-size: 15px; white-space: nowrap; }

.viewer { position: fixed; inset: 0; background: #1d140f; z-index: 60; display: flex; flex-direction: column; padding-top: var(--safe-t); }
.viewer .vbar { display: flex; justify-content: space-between; padding: 4px 10px; }
.viewer .vbar .back { background: none; border: 0; color: var(--mustard); font-weight: 800; font-size: 17px; min-height: 48px; cursor: pointer; }
.viewer .vimg { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; }
.viewer .vimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .vfoot { padding: 12px 16px calc(16px + var(--safe-b)); color: var(--cream); }
.toast { position: fixed; left: 50%; bottom: calc(140px + var(--safe-b)); transform: translateX(-50%); background: var(--coffee); color: #fff; padding: 10px 18px; border-radius: 14px; font-weight: 800; font-size: 15px; z-index: 80; width: max-content; max-width: 90%; text-align: center; }

/* ---------- cards / lists ---------- */
.pad { padding: 14px; max-width: 600px; margin: 0 auto; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.section-title { color: var(--tomato); font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: var(--t-section); margin: 18px 0 8px; }
.seg { display: flex; background: var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-width: 0; min-height: 48px; border: 0; border-radius: 10px; background: none; font-weight: 800; font-size: 15px; cursor: pointer; line-height: 1.15; padding: 4px 6px; }
.seg button.on { background: var(--tomato); color: #fff; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; margin-bottom: 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; text-align: left; font-size: var(--t-body); }
.choice.on { border-color: var(--mustard); background: var(--mustard-soft); }
.choice .dot { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.choice.on .dot { background: var(--tomato); border-color: var(--tomato); }
.choice b { display: block; }
.choice .muted { font-size: var(--t-small); }
.soon { text-align: center; padding: 32px 18px; }
.soon .big-ico { width: 76px; height: 76px; border-radius: 50%; background: var(--mustard-soft); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.soon .big-ico svg { width: 40px; height: 40px; stroke: var(--tomato); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.code-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 800; }
.code-row:last-child { border-bottom: 0; }
.code-row .c { font-size: 22px; letter-spacing: .15em; color: var(--tomato); }
.person-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.person-row:last-child { border-bottom: 0; }
.person-row .nm { flex: 1; min-width: 0; font-weight: 800; }
.person-row .btn { width: auto; flex: 0 0 auto; }
/* Rows with a button on the end: from Big up, the button drops underneath. */
html[data-text="big"] .person-row, html[data-text="biggest"] .person-row { flex-direction: column; align-items: stretch; gap: 8px; }
html[data-text="big"] .person-row .btn, html[data-text="biggest"] .person-row .btn { width: 100%; }
html[data-text="big"] .btn-row.drop, html[data-text="biggest"] .btn-row.drop { flex-direction: column; }
.invite-url { overflow-wrap: anywhere; word-break: break-all; font-weight: 800; background: var(--cream); border-radius: 12px; padding: 10px 12px; border: 2px dashed var(--line); }
.notif-card { background: var(--mustard-soft); border: 2px solid var(--mustard); }

/* ---------- Fun Shelf ---------- */
.fun-intro { font-size: var(--t-small); color: var(--coffee-soft); margin: 0 0 12px; }
.fun-card { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.fun-card .words { font-weight: 800; margin-bottom: 4px; }
.fun-card .by { font-size: var(--t-name); font-weight: 800; color: var(--tomato); }
.fun-card .meta { font-size: var(--t-time); color: var(--coffee-soft); margin-bottom: 8px; }
.fun-card .btn-row .btn { flex: 1; }
.laugh.on { background: var(--mustard-soft); border-color: var(--mustard); }
.empty { text-align: center; padding: 28px 12px; color: var(--coffee-soft); }

/* ---------- Family Dashboard / Who's here ---------- */
.dash-top { margin-bottom: 12px; flex-wrap: wrap; }
.dash-top .btn { min-width: 140px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.stat b { font-family: 'Fredoka', sans-serif; font-size: calc(var(--t-title) + 4px); color: var(--tomato); line-height: 1.1; }
.stat span { font-size: var(--t-small); font-weight: 700; overflow-wrap: anywhere; }
.stat.hot { border-color: var(--tomato); }
.member-list { padding: 4px 12px; }
.member-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
div.member-row { cursor: default; align-items: center; }
.member-row:last-child { border-bottom: 0; }
.member-row .avatar, .member-head .avatar { flex: 0 0 48px; width: 48px; height: 48px; font-size: 20px; }
.mr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mr-name { font-weight: 800; overflow-wrap: anywhere; }
.mr-rel { color: var(--tomato-dark); font-weight: 700; }
.mr-line { color: var(--coffee-soft); font-size: var(--t-small); overflow-wrap: anywhere; }
.mr-go { color: var(--coffee-soft); font-size: calc(var(--t-title) + 4px); align-self: center; }
.role { display: inline-block; font-size: var(--t-time); font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--line); vertical-align: middle; white-space: nowrap; }
.role-owner { background: var(--tomato); color: #fff; }
.role-admin { background: #f2c14e; }
.member-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.member-head .avatar { flex-basis: 64px; width: 64px; height: 64px; font-size: 26px; }
.member-head h2 { margin: 0; overflow-wrap: anywhere; }
.member-head p { margin: 2px 0; }
.btn.danger { background: var(--tomato-dark); border-color: var(--tomato-dark); color: #fff; }

/* guests */
.role-guest { background: #dfe9d8; color: #2c4a24; }
.guest-note { background: #eef4ea; border-color: #b9cfae; }
.slots { font-size: var(--t-section); margin: 4px 0 6px; }
.member-row .small-btn { flex: 0 0 auto; width: auto; min-height: 44px; padding: 6px 14px; }
#e-face .avatar { width: 56px; height: 56px; font-size: 22px; flex: 0 0 56px; }
