/* "Your rooms" (rooms.html), and the room page's host menu and closed
   banner. Layered after theme.css. */
.top-actions { display: flex; align-items: center; gap: 6px; }
.rooms-page { max-width: 52rem; margin: 0 auto; padding: 8px 20px 72px; display: flex; flex-direction: column; gap: 18px; }
.rooms-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.rooms-head h1 { margin: 0 auto 0 0; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.rooms-head .shelves { margin: 0; }
.rooms-head .search { position: relative; flex: 1 1 100%; }
.rooms-head .search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.rooms-head .search .field { padding-left: 42px; border: 2px solid var(--fg); border-radius: 999px; }
.room-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.room-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border: 2px solid var(--fg); border-radius: 22px; background: color-mix(in srgb, var(--c, var(--lime)) 9%, var(--panel)); transition: transform 0.15s, box-shadow 0.15s; }
.room-row:hover, .room-row:focus-within { transform: translate(-2px, -2px); box-shadow: var(--hard); }
.room-row > a { position: absolute; inset: 0; border-radius: 20px; }
.room-row .faces { display: flex; flex: none; }
.room-row .faces img { width: 38px; height: 38px; border-radius: 50%; margin-left: -12px; box-shadow: 0 0 0 2px var(--fg); background: var(--panel); }
.room-row .faces img:first-child { margin-left: 0; }
.room-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.room-row .title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.room-row .title b { font-family: var(--display); font-size: 17px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-row .last { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-row .last em { font-style: normal; font-weight: 700; color: var(--fg); }
.room-row time { flex: none; color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pill-tag { flex: none; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border: 1.5px solid var(--fg); border-radius: 999px; padding: 1px 8px; background: var(--panel); }
.pill-tag.host { background: var(--lime); color: #0e0e0e; }
.pill-tag.closed { background: var(--soft); color: var(--muted); border-color: var(--muted); }
.room-row .acts { position: relative; z-index: 1; display: flex; gap: 2px; flex: none; }
.room-row .acts .icon-btn { width: 38px; height: 38px; }
.icon-btn.danger:hover { background: color-mix(in srgb, var(--hot) 18%, transparent); color: var(--hot); }
.rooms-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 16px; border: 2px dashed var(--muted); border-radius: 26px; }
.rooms-empty h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -0.03em; }
.rooms-empty p { margin: 0 0 10px; color: var(--muted); }
.rooms-empty .beans img { width: 54px; height: 54px; border-radius: 50%; margin-left: -14px; box-shadow: 0 0 0 2px var(--fg); background: var(--panel); }
.rooms-empty .beans img:first-child { margin-left: 0; }
.skeleton { height: 66px; border-radius: 22px; background: linear-gradient(90deg, var(--soft), var(--bg-2), var(--soft)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.dialog .actions.row { flex-direction: row; justify-content: center; }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.danger { background: var(--hot); color: #fff; }
.muted-note { color: var(--muted); margin: 0; }
@media (max-width: 560px) {
  .room-row { gap: 10px; padding: 10px 6px 10px 10px; align-items: flex-start; }
  .room-row .faces img { width: 32px; height: 32px; margin-left: -12px; }
  .room-row .faces img:nth-child(n + 3) { display: none; }
  .room-row .title { flex-wrap: wrap; row-gap: 2px; }
  .room-row .title b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; flex: 1 1 100%; font-size: 16px; line-height: 1.2; }
  .room-row .pill-tag.host { display: none; }
  .room-row time { display: none; }
  .room-row .acts { gap: 0; margin-top: -2px; }
  .room-row .acts .icon-btn { width: 34px; height: 34px; }
  .room-row .acts .icon-btn svg { width: 18px; height: 18px; }
}

/* room page: host menu, closed banner */
.room-menu { position: fixed; z-index: 25; display: flex; flex-direction: column; min-width: 13rem; padding: 6px; border: 2px solid var(--fg); border-radius: 18px; background: var(--panel); box-shadow: var(--hard); }
.room-menu button, .room-menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--fg); font: inherit; font-weight: 600; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.room-menu button:hover, .room-menu a:hover { background: var(--soft); }
.room-menu svg { width: 18px; height: 18px; flex: none; }
.room-menu .danger { color: var(--hot); }
.room-menu hr { border: 0; border-top: 1.5px solid var(--soft); margin: 4px 6px; }
.closed-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 2px dashed var(--muted); border-radius: 22px; color: var(--muted); font-weight: 600; text-align: center; }
.closed-bar svg { width: 18px; height: 18px; }

/* share dialog */
.share-dialog { position: relative; width: min(30rem, 100%); text-align: left; max-height: calc(100dvh - 32px); overflow: auto; }
.share-dialog h2 { text-align: center; }
.share-dialog .close-x { position: absolute; top: 12px; right: 12px; }
.vis { display: flex; flex-direction: column; gap: 8px; }
.vis button { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border: 2px solid var(--soft); border-radius: 18px; background: var(--panel); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.vis button .ic { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); }
.vis button .ic svg, .share-link .ic svg { width: 18px; height: 18px; }
.vis button b { font-size: 15px; }
.vis button small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.vis button[aria-checked="true"] { border-color: var(--fg); box-shadow: var(--hard); }
.vis button[aria-checked="true"] .ic { background: var(--lime); color: #0e0e0e; }
.vis button:disabled { cursor: default; opacity: 0.6; }
.vis button[aria-checked="true"]:disabled { opacity: 1; }
.share-link { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 8px 10px 14px; border: 1.5px solid var(--fg); border-radius: 16px; background: var(--bg); }
.share-link .ic { flex: none; display: grid; place-items: center; }
.share-link .txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.share-link b { font-size: 13px; }
.share-link code { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-pic { margin: 14px 0 0; }
.share-pic img { display: block; width: 100%; aspect-ratio: 1200 / 630; border: 1.5px solid var(--fg); border-radius: 14px; background: var(--soft); }
.share-pic figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); text-align: center; }
#vis-guest { margin-top: 4px; text-align: center; }
#share-btn.on { background: var(--lime); color: #0e0e0e; }

/* share page (read-only) */
.reader .feed { padding-bottom: 12px; }
.reader .member { cursor: default; }
.reader-cta { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border: 2px solid var(--fg); border-radius: 22px; background: var(--panel); box-shadow: var(--hard); }
.reader-cta .beans { display: flex; flex: none; }
.reader-cta .beans img { width: 36px; height: 36px; border-radius: 50%; margin-left: -10px; box-shadow: 0 0 0 2px var(--panel); background: var(--soft); }
.reader-cta .beans img:first-child { margin-left: 0; }
.reader-cta .txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.reader-cta small { color: var(--muted); }
.reader-cta .btn { flex: none; }
@media (max-width: 560px) {
  .reader-cta .beans { display: none; }
  .reader-cta small { display: none; }
}

/* explore */
.explore-page .lede { flex: 1 1 100%; margin: -4px 0 0; color: var(--muted); }
.explore-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 16px; }
.explore-grid .skeleton.tall { height: 260px; }
.explore-card { display: flex; flex-direction: column; height: 100%; border: 2px solid var(--fg); border-radius: 22px; overflow: hidden; background: var(--panel); color: var(--fg); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.explore-card:hover, .explore-card:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--hard); }
.explore-card .pic { aspect-ratio: 1200 / 630; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 30%, var(--panel)); border-bottom: 2px solid var(--fg); }
.explore-card .pic > img { width: 100%; height: 100%; object-fit: cover; }
.explore-card .beans { display: flex; }
.explore-card .beans img { width: 56px; height: 56px; border-radius: 50%; margin-left: -14px; box-shadow: 0 0 0 2.5px var(--panel); background: var(--soft); }
.explore-card .beans img:first-child { margin-left: 0; }
.explore-card .txt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px 14px; }
.explore-card .txt b { font-family: var(--display); font-size: 18px; line-height: 1.2; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.explore-card .verdict-q { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.explore-card small { color: var(--muted); font-size: 12.5px; margin-top: auto; }

/* report dialog, removed messages, age dialog */
.report-dialog { position: relative; width: min(28rem, 100%); text-align: left; }
.report-dialog h2 { text-align: center; }
.report-dialog .close-x { position: absolute; top: 12px; right: 12px; }
.report-dialog .lbl { margin: 10px 0 8px; font-weight: 700; font-size: 14px; }
.report-dialog .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.report-dialog .chips button { padding: 7px 12px; border: 1.5px solid var(--fg); border-radius: 999px; background: var(--panel); color: var(--fg); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.report-dialog .chips button[aria-checked="true"] { background: var(--fg); color: var(--bg); }
.report-dialog textarea { width: 100%; margin-top: 12px; resize: vertical; border: 1.5px solid var(--fg); border-radius: 14px; padding: 10px 12px; font: inherit; background: var(--bg); color: var(--fg); }
.report-dialog .muted-note { margin-top: 8px; font-size: 13px; }
.report-quote { margin: 0 0 4px; padding: 10px 12px; border-left: 4px solid var(--hot); border-radius: 10px; background: var(--soft); display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.report-quote span { color: var(--muted); }
.msg.removed .bubble { font-style: italic; color: var(--muted); background: transparent; border-style: dashed; }
.age-dialog .actions .btn { min-width: 14rem; }

/* message toolbar, reactions, edit, polls */
.msg .body { position: relative; }
.msg-acts { position: absolute; top: -14px; right: 10px; z-index: 3; display: flex; gap: 0; padding: 2px; border: 1.5px solid var(--fg); border-radius: 999px; background: var(--panel); box-shadow: 2px 2px 0 var(--fg); opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.msg.mine .msg-acts { right: auto; left: 10px; }
.msg.first .msg-acts { top: -10px; }
.msg:hover .msg-acts, .msg-acts:focus-within, .msg.acts-on .msg-acts { opacity: 1; pointer-events: auto; }
.msg-acts .icon-btn { width: 30px; height: 30px; border: 0; box-shadow: none; background: none; }
.msg-acts .icon-btn svg { width: 16px; height: 16px; }
.msg-acts .redo-btn, .msg-acts .edit-btn { display: none; }
.msg.agent.last:not(.streaming) .redo-btn, .msg.mine.editable .edit-btn { display: grid; }
.msg.streaming .msg-acts { display: none; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reacts:empty { display: none; }
.msg.mine .reacts { justify-content: flex-end; }
.reacts .react { padding: 2px 8px; border: 1.5px solid var(--soft); border-radius: 999px; background: var(--panel); color: var(--fg); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.reacts .react.on { border-color: var(--fg); background: var(--lime); color: #0e0e0e; }
.react-picker { position: fixed; z-index: 30; display: flex; gap: 2px; padding: 4px; border: 2px solid var(--fg); border-radius: 999px; background: var(--panel); box-shadow: var(--hard); }
.react-picker button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; font-size: 22px; cursor: pointer; }
.react-picker button:hover, .react-picker button:focus-visible { background: var(--soft); transform: scale(1.12); }
.msg .name .edited { color: var(--muted); font-weight: 500; }
.edit-box { display: flex; gap: 6px; align-items: flex-end; min-width: min(28rem, 70vw); }
.edit-box textarea { flex: 1; resize: vertical; border: 2px solid var(--fg); border-radius: 18px; padding: 10px 14px; font: inherit; background: var(--panel); color: var(--fg); }
.poll { display: flex; flex-direction: column; gap: 8px; min-width: min(26rem, 72vw); padding: 14px; border: 2px solid var(--fg); border-radius: 22px; background: var(--panel); color: var(--fg); box-shadow: var(--hard); }
.poll .q { font-family: var(--display); font-size: 17px; }
.poll .q::before { content: var(--poll-label, "POLL"); display: block; font-family: Inter, system-ui, sans-serif; font-size: 11px; letter-spacing: 0.1em; color: var(--hot); margin-bottom: 2px; }
.poll .opt { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1.5px solid var(--fg); border-radius: 14px; background: var(--bg); color: var(--fg); font: inherit; font-weight: 600; text-align: left; overflow: hidden; cursor: pointer; }
.poll .opt .fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: color-mix(in srgb, var(--lime) 70%, transparent); transition: width 0.4s ease; }
.poll .opt > :not(.fill) { position: relative; }
.poll .opt .label { flex: 1; }
.poll .opt .faces { display: flex; }
.poll .opt .faces img { width: 22px; height: 22px; border-radius: 50%; margin-left: -6px; box-shadow: 0 0 0 1.5px var(--panel); background: var(--soft); }
.poll .opt .n { font-weight: 800; min-width: 1.2em; text-align: right; }
.poll .opt.on { box-shadow: inset 0 0 0 2px var(--fg); }
.poll .why { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.poll .why b { color: var(--c, var(--fg)); }
.poll .why .wait { font-style: italic; }
.msg.mine .poll { color: var(--fg); }
.poll-dialog { width: min(26rem, 100%); text-align: left; display: flex; flex-direction: column; gap: 8px; }
.poll-dialog h2 { text-align: center; margin-bottom: 0; }
.poll-dialog .field { width: 100%; border: 2px solid var(--fg); border-radius: 14px; padding: 10px 12px; font: inherit; background: var(--bg); color: var(--fg); }
.poll-opts { display: flex; flex-direction: column; gap: 6px; }
.poll-dialog .btn.small { align-self: flex-start; padding: 6px 14px; font-size: 14px; }
.branched { align-self: center; margin: 4px 0; padding: 6px 12px; border: 1.5px dashed var(--muted); border-radius: 999px; color: var(--muted); font-size: 13px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.branched svg { width: 14px; height: 14px; }
@media (hover: none) { .msg-acts { opacity: 0; } }
.msg:has(.edit-box) .msg-acts { display: none; }

/* your own personas (new page) */
.chip.new-chip { border-style: dashed; opacity: 1; filter: none; }
.chip.new-chip .plus { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--fg); }
.chip.new-chip .plus svg { width: 26px; height: 26px; }
.chip.mine { position: relative; }
.chip .chip-edit { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); box-shadow: var(--shadow-sm); color: var(--fg); }
.chip .chip-edit svg { width: 13px; height: 13px; }
.persona-dialog { position: relative; width: min(28rem, 100%); text-align: left; display: flex; flex-direction: column; gap: 8px; max-height: calc(100dvh - 32px); overflow: auto; }
.persona-dialog .close-x { position: absolute; top: 12px; right: 12px; }
.persona-dialog h2 { text-align: center; margin-bottom: 4px; }
.persona-dialog .p-face { width: 76px; height: 76px; border-radius: 50%; align-self: center; }
.persona-dialog .field { width: 100%; border: 2px solid var(--fg); border-radius: 14px; padding: 10px 12px; font: inherit; background: var(--bg); color: var(--fg); resize: vertical; }
.persona-dialog .p-row { display: flex; gap: 8px; }
.persona-dialog .p-emoji { width: 64px; flex: none; text-align: center; font-size: 20px; padding: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px var(--panel); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--c); }
.p-brain { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p-brain button { border: 2px solid var(--line); border-radius: 14px; padding: 8px 10px; background: var(--bg); color: var(--fg); text-align: left; display: flex; flex-direction: column; gap: 2px; font: inherit; cursor: pointer; }
.p-brain button small { color: var(--muted); font-size: 12px; }
.p-brain button[aria-checked="true"] { border-color: var(--fg); }

/* what the personas remember (memory page) */
.notes-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.notes-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-sm); }
.notes-list img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.notes-list .txt { flex: 1; min-width: 0; }
.notes-list .txt b { display: block; }
.notes-list .txt p { margin: 4px 0 0; white-space: pre-line; color: var(--muted); font-size: 14px; }
.member .agent-mind, .agent-mind { position: static; display: inline-block; width: auto; height: auto; font-style: normal; font-size: 9px; font-weight: 700; line-height: 1.4; padding: 0 6px; border-radius: 999px; background: var(--line); color: var(--muted); box-shadow: none; white-space: nowrap; }

/* read aloud and voice input (public/voice.js) */
#mic.listening { background: var(--accent, #e03131); color: #fff; animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 49, 49, 0.45); } 50% { box-shadow: 0 0 0 8px rgba(224, 49, 49, 0); } }
#read-btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.msg-acts .read-one.on { color: var(--c, var(--fg)); }
@media (prefers-reduced-motion: reduce) { #mic.listening { animation: none; } }

.sponsor-bar { border-style: solid; border-color: var(--line); }
.sponsor-dialog { position: relative; }
.sponsor-amounts { display: flex; gap: 10px; justify-content: center; margin: 14px 0 4px; }
.sponsor-amounts .btn { min-width: 76px; font-size: 18px; font-weight: 800; }

/* persona photos, sharing and Pro packs (new.js, explore.js, persona.js) */
.persona-dialog .p-share-btn { position: absolute; top: 12px; left: 12px; }
.p-face-wrap { position: relative; align-self: center; width: 76px; height: 76px; }
.p-face-wrap .p-face { object-fit: cover; background: var(--soft); }
.p-face-wrap .icon-btn { position: absolute; width: 30px; height: 30px; min-width: 0; padding: 0; border-radius: 50%; background: var(--panel); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.2)); }
.p-face-wrap .icon-btn svg { width: 15px; height: 15px; }
.p-face-wrap .p-photo { right: -8px; bottom: -4px; }
.p-face-wrap .p-unphoto { right: -8px; top: -4px; }
.persona-dialog .p-photo-note { text-align: center; margin: 0; font-size: 13px; }
.chip img { object-fit: cover; }
.pro-pill { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--lime); color: #0e0e0e; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; vertical-align: 2px; }
.pack-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 10px 2px 0; }
.pack-head:first-child { padding-top: 0; }
.pack-head .em { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, var(--panel)); font-size: 18px; }
.pack-head .txt { display: flex; flex-direction: column; min-width: 0; }
.pack-head b { font-size: 15px; }
.pack-head small { color: var(--muted); font-size: 12.5px; }
.chip.locked img { filter: grayscale(0.15); }
.chip.locked::before { content: ""; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e0e' stroke-width='2.6' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 11px no-repeat; }
.mixer .chip.locked { position: relative; opacity: 1; }
.proup-dialog { position: relative; width: min(24rem, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.proup-dialog .close-x { position: absolute; top: 12px; right: 12px; }
.proup-dialog .beans { display: flex; margin-bottom: 4px; }
.proup-dialog .beans .av img { width: 56px; height: 56px; }
.proup-dialog .pro-pill { margin: 0; font-size: 13px; padding: 2px 10px; }

.modes { display: inline-flex; gap: 4px; padding: 4px; border: 2px solid var(--fg); border-radius: 999px; background: var(--panel); }
.modes button { border: 0; background: transparent; color: var(--fg); border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.modes button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.persona-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 16px; }
.persona-grid .skeleton { height: 190px; }
.persona-card { position: relative; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: 1fr auto; column-gap: 12px; row-gap: 8px; height: 100%; padding: 14px; border: 2px solid var(--fg); border-radius: 22px; background: var(--panel); color: var(--fg); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.persona-card:hover, .persona-card:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--hard); }
.persona-card .face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: color-mix(in srgb, var(--c) 25%, var(--panel)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 60%, transparent); }
.persona-card .txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding-right: 30px; }
.persona-card .txt b { font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; }
.persona-card .txt p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.persona-card .meta { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.persona-card .add { position: absolute; top: 10px; right: 10px; }

.persona-page { display: flex; justify-content: center; padding: 24px 16px 48px; }
.persona-hero { width: min(34rem, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px 22px; border: 2px solid var(--fg); border-radius: 28px; background: var(--panel); box-shadow: var(--hard); }
.persona-hero .face { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; background: color-mix(in srgb, var(--c, var(--lime)) 25%, var(--panel)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, var(--lime)) 70%, transparent); }
.persona-hero .who { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.persona-hero h1 { margin: 6px 0 0; font-family: var(--display); font-size: 34px; letter-spacing: -0.03em; }
.persona-hero .voice { margin: 4px 0; font-size: 16px; line-height: 1.55; }
.persona-hero .meta { margin: 0; color: var(--muted); font-size: 13.5px; }
.persona-hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.persona-hero .beans { display: flex; }
.persona-hero .beans img { width: 64px; height: 64px; border-radius: 50%; margin-left: -14px; box-shadow: 0 0 0 3px var(--panel); }
.persona-hero .beans img:first-child { margin-left: 0; }
