:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  color: #1f2937;
  background: #eef2ff;
  font-synthesis: none;
  --ink: #22304a;
  --muted: #78849a;
  --line: rgba(111, 126, 158, .15);
  --panel: rgba(255,255,255,.90);
  --accent: #6553e7;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden-file { display: none; }
.eyebrow { margin: 0 0 7px; letter-spacing: .16em; font-size: 10px; font-weight: 900; color: #8a94a8; }
.primary-button { border: 0; border-radius: 14px; padding: 14px 17px; background: linear-gradient(145deg, #715ff2, #5743df); color: white; font-weight: 900; box-shadow: 0 10px 24px rgba(91,71,225,.18); }
.primary-button:hover:not(:disabled) { filter: brightness(1.04); transform: translateY(-1px); }
.primary-button:disabled { opacity: .42; box-shadow: none; }
.secondary-button { border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; background: #fff; color: #667289; font-weight: 800; }
.wide-button { width: 100%; }
.empty-state { color: #929bad; line-height: 1.6; font-size: 13px; }

/* HOME */
.home-page {
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 10% 12%, rgba(132,111,255,.18), transparent 27%),
    radial-gradient(circle at 92% 85%, rgba(86,192,255,.16), transparent 30%),
    linear-gradient(135deg, #f9fbff 0%, #eef2ff 48%, #f7f9ff 100%);
}
.home-shell { width: min(1180px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 30px; background: rgba(255,255,255,.83); box-shadow: 0 30px 100px rgba(55,67,102,.16); backdrop-filter: blur(28px); }
.entry-panel { padding: clamp(34px, 5vw, 70px); }
.rooms-panel { padding: clamp(28px, 4vw, 50px); background: rgba(246,248,255,.78); border-left: 1px solid rgba(120,136,168,.13); }
.home-page h1 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: .98; letter-spacing: -.055em; color: #26324a; }
.lead { margin: 24px 0 0; max-width: 580px; color: #647087; line-height: 1.8; }
.howto { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 30px; }
.howto span { padding: 7px 11px; border: 1px solid rgba(117,133,166,.14); border-radius: 999px; font-size: 12px; color: #69758c; background: rgba(255,255,255,.76); }
.entry-form { display: grid; gap: 18px; }
.entry-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 800; color: #44516a; }
.entry-form label > span { display: flex; align-items: baseline; gap: 8px; }
.entry-form small { font-weight: 500; color: #8a95a8; }
.entry-form input { width: 100%; border: 1px solid rgba(105,122,157,.18); border-radius: 14px; padding: 14px 15px; outline: none; background: rgba(255,255,255,.9); transition: border-color .15s, box-shadow .15s; }
.entry-form input:focus, .message-form input:focus { border-color: rgba(101,83,231,.52); box-shadow: 0 0 0 4px rgba(101,83,231,.09); }
.field-note { display: block; line-height: 1.5; }
.rooms-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rooms-panel h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; color: #2f3b54; }
.rooms-note, .transparency-note { color: #8791a4; line-height: 1.6; font-size: 12px; }
.rooms-note { margin: 14px 0 20px; }
.transparency-note { margin: 18px 0 0; }
.live-status, .connection-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.live-status.online, .connection-status.online { background: #dcfce7; color: #166534; }
.live-status.connecting, .connection-status.connecting { background: #fef3c7; color: #92400e; }
.live-status.offline, .connection-status.offline { background: #fee2e2; color: #991b1b; }
.room-list { display: grid; gap: 10px; }
.room-card { position: relative; width: 100%; text-align: left; border: 1px solid rgba(113,129,161,.13); border-radius: 18px; padding: 15px; background: rgba(255,255,255,.9); color: #344058; transition: transform .15s, border-color .15s, box-shadow .15s; box-shadow: 0 7px 22px rgba(54,65,93,.05); }
.room-card:hover { transform: translateY(-2px); border-color: rgba(101,83,231,.28); box-shadow: 0 13px 30px rgba(54,65,93,.10); }
.room-card-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.room-name { font-size: 16px; }
.room-count { font-size: 12px; font-weight: 900; color: #6e798e; }
.room-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; font-size: 12px; color: #738096; overflow: hidden; }
.preview-who { font-weight: 800; color: #536078; }
.preview-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.room-preview.muted { color: #a1a9b7; }
.room-bot-note { display: inline-block; margin-top: 8px; font-size: 9px; color: #a1a9b7; }
.bot-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 5px; background: #e9edf5; color: #69758b; font-size: 8px; font-weight: 900; letter-spacing: .06em; }

/* CHAT */
.chat-page {
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(111,91,242,.18), transparent 26%),
    radial-gradient(circle at 88% 90%, rgba(66,185,255,.14), transparent 30%),
    linear-gradient(145deg, #eef2fa, #f8faff);
}
.chat-shell { width: min(1040px, 100%); height: calc(100vh - 36px); margin: 0 auto; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto auto; overflow: hidden; border: 1px solid rgba(255,255,255,.88); border-radius: 26px; background: rgba(247,249,255,.90); box-shadow: 0 24px 80px rgba(37,48,78,.18); backdrop-filter: blur(20px); }
.chat-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,.78); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(112,127,157,.14); border-radius: 14px; background: rgba(255,255,255,.78); color: #536078; text-decoration: none; font-size: 20px; font-weight: 800; }
.icon-button:hover { background: #f2f4fb; }
.room-kicker { font-size: 9px; font-weight: 900; letter-spacing: .13em; color: #8d98aa; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.08); }
.chat-title-wrap h1 { margin: 2px 0 0; font-size: 21px; letter-spacing: -.03em; color: #344058; }
.room-subline { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #8b95a8; font-size: 10px; }
.messages { overflow-y: auto; padding: 22px 22px 28px; scroll-behavior: smooth; scrollbar-color: #bbc3d1 transparent; }
.message-row { display: flex; align-items: flex-end; gap: 10px; margin: 0 0 17px; }
.message-row.mine { flex-direction: row-reverse; }
.message-content { min-width: 0; max-width: min(72%, 650px); }
.message-meta { display: flex; align-items: center; gap: 6px; margin: 0 3px 5px; color: #7c879b; font-size: 10px; }
.message-row.mine .message-meta { justify-content: flex-end; }
.message-meta strong { font-size: 12px; color: #536078; }
.message-meta time { color: #a0a9b8; }
.trip { color: #8994a7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(145deg, #fff, #e9eef9); border: 2px solid rgba(255,255,255,.92); box-shadow: 0 8px 22px rgba(43,54,86,.14); color: #2f3950; }
.message-avatar { width: 52px; height: 52px; font-size: 28px; }
.avatar-large { width: 78px; height: 78px; font-size: 40px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar span { line-height: 1; }
.bubble { position: relative; display: inline-block; margin: 0; padding: 11px 16px; border-radius: 20px 20px 20px 6px; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 8px 22px rgba(39,48,71,.08); color: #fff; }
.message-row.mine .bubble { border-radius: 20px 20px 6px 20px; }
.bubble::before { content: ""; position: absolute; left: -7px; bottom: 0; width: 15px; height: 16px; background: inherit; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.message-row.mine .bubble::before { left: auto; right: -7px; transform: scaleX(-1); }
.bubble-ink { background: linear-gradient(145deg, #2f3c52, #222d3f); }
.bubble-violet { background: linear-gradient(145deg, #7c3aed, #5b21e8); }
.bubble-sky { background: linear-gradient(145deg, #4b9ff7, #2776dc); }
.bubble-mint { background: linear-gradient(145deg, #29ad83, #16845e); }
.bubble-rose { background: linear-gradient(145deg, #f36a8c, #df3f68); }
.bubble-amber { background: linear-gradient(145deg, #f5a524, #d98212); }
.bubble-custom { background-color: #334155; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.bot-message .bubble { filter: saturate(.82); }
.media-message, .stamp-message { overflow: hidden; border-radius: 18px; }
.posted-image { display: block; width: auto; max-width: min(430px, 100%); max-height: 420px; border-radius: 18px; object-fit: contain; box-shadow: 0 10px 28px rgba(37,48,78,.15); background: #fff; }
.posted-stamp { display: block; width: min(180px, 46vw); max-height: 180px; object-fit: contain; filter: drop-shadow(0 7px 12px rgba(34,44,67,.10)); }

.composer-wrap { padding: 10px 14px 7px; background: rgba(255,255,255,.76); border-top: 1px solid var(--line); }
.message-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.message-form input { min-width: 0; border: 1px solid rgba(111,126,158,.17); border-radius: 999px; padding: 13px 17px; outline: none; background: rgba(255,255,255,.96); color: #344058; box-shadow: inset 0 1px 2px rgba(34,44,66,.04); }
.send-button { border: 0; border-radius: 15px; padding: 0 20px; background: linear-gradient(145deg, #6d5cf4, #5743df); color: #fff; font-weight: 900; box-shadow: 0 9px 22px rgba(91,71,225,.21); }
.send-button:disabled { opacity: .38; box-shadow: none; }
.media-actions { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.media-action { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 10px; background: #eef1fb; color: #647087; font-size: 10px; font-weight: 900; }
.media-action:hover { background: #e7e8fb; color: #5948db; }
.media-action span { font-size: 15px; line-height: 1; color: #6351e7; }
.stamp-tray { margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(248,250,255,.98); box-shadow: 0 12px 34px rgba(36,47,77,.10); }
.stamp-tray-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #69758b; font-size: 10px; }
.stamp-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 7px; max-height: 210px; overflow-y: auto; }
.stamp-choice { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; padding: 5px; border: 1px solid rgba(116,130,161,.12); border-radius: 14px; background: #fff; }
.stamp-choice:hover { transform: translateY(-1px); border-color: rgba(101,83,231,.28); }
.stamp-choice img { width: 100%; height: 100%; object-fit: contain; }

.bottom-nav { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 7px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.84); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav-item { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 3px; border: 0; border-radius: 13px; background: transparent; color: #69758b; text-decoration: none; font-size: 9px; font-weight: 900; }
.nav-item:hover { background: #eef1fa; color: #4f3fe0; }
.nav-icon { font-size: 20px; line-height: 1; color: #526077; }
.nav-badge { position: absolute; top: 3px; left: calc(50% + 9px); display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ef476f; color: #fff; font-size: 8px; box-shadow: 0 3px 9px rgba(239,71,111,.28); }

/* DRAWERS */
.drawer-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(17,24,39,.25); opacity: 0; backdrop-filter: blur(3px); transition: opacity .18s ease; }
.drawer-backdrop.visible { opacity: 1; }
.drawer { position: fixed; z-index: 21; top: 16px; right: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); padding: 20px; border: 1px solid rgba(255,255,255,.82); border-radius: 28px; background: rgba(249,250,255,.97); box-shadow: 0 30px 90px rgba(28,36,60,.26); transform: translateX(calc(100% + 32px)); transition: transform .22s cubic-bezier(.22,.8,.3,1); overflow-y: auto; backdrop-filter: blur(24px); }
.drawer.open { transform: translateX(0); }
.private-drawer { width: min(620px, calc(100vw - 32px)); display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; overflow: hidden; }
.drawer-grabber { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-head h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; color: #344058; }
.drawer-copy { color: #818ca0; font-size: 12px; line-height: 1.65; margin: 13px 0 18px; }
.drawer-close { font-size: 22px; }
.room-market-list { display: grid; gap: 10px; }
.market-card { width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 13px; border: 1px solid rgba(113,128,158,.14); border-radius: 18px; background: rgba(255,255,255,.9); text-align: left; color: #344058; box-shadow: 0 8px 24px rgba(47,58,86,.05); }
.market-card:hover:not(.current) { transform: translateY(-1px); border-color: rgba(91,71,225,.34); }
.market-card.current { background: linear-gradient(145deg, #f0eeff, #f7f8ff); }
.market-rank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #eef1f7; font-weight: 900; color: #68758c; }
.market-card:nth-child(1) .market-rank { background: #fff2c7; color: #a46600; }
.market-card:nth-child(2) .market-rank { background: #eef1f4; color: #677180; }
.market-card:nth-child(3) .market-rank { background: #f6dfd2; color: #9a5b3d; }
.market-copy { min-width: 0; display: grid; gap: 5px; }
.market-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.market-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-top span { font-size: 10px; font-weight: 900; color: #6e798e; }
.market-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7f899c; font-size: 10px; }
.market-preview.muted { color: #a4adbd; }
.market-arrow { color: #6553e7; font-size: 9px; font-weight: 900; white-space: nowrap; }

.participant-list { display: grid; gap: 8px; padding-bottom: 76px; }
.participant-row { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 11px; border: 1px solid rgba(113,128,158,.13); border-radius: 17px; background: #fff; color: #44516a; text-align: left; }
.participant-row:hover:not(:disabled) { border-color: rgba(101,83,231,.30); background: #fafaff; }
.participant-row.selected { border-color: rgba(101,83,231,.40); background: #f1efff; box-shadow: 0 0 0 3px rgba(101,83,231,.07); }
.participant-row.self { opacity: .72; }
.participant-avatar { width: 44px; height: 44px; font-size: 23px; }
.participant-copy { min-width: 0; display: grid; gap: 3px; }
.participant-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.participant-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #919bad; font-size: 9px; }
.participant-check { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 10px; background: #eef1f8; color: #6553e7; font-weight: 900; }
.participant-row.selected .participant-check { background: #6553e7; color: #fff; }
.sticky-action { position: sticky; bottom: 0; margin-top: -62px; }

.profile-preview-card { display: flex; align-items: center; gap: 15px; margin: 20px 0 24px; padding: 17px; border-radius: 22px; background: linear-gradient(145deg, #eef1ff, #fff); border: 1px solid rgba(102,117,151,.12); }
.profile-preview-card > div:last-child { min-width: 0; flex: 1; }
.profile-preview-card strong { display: block; color: #556078; margin-bottom: 6px; font-size: 12px; }
.preview-bubble { max-width: 100%; font-size: 12px; padding: 9px 13px; }
.setting-section { padding: 18px 0; border-top: 1px solid #e8eaf1; }
.setting-section h3 { margin: 0 0 12px; font-size: 13px; color: #4f5b72; }
.avatar-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.avatar-choice { aspect-ratio: 1; border: 1px solid #e0e4ec; border-radius: 50%; background: white; font-size: 24px; box-shadow: 0 5px 16px rgba(34,44,66,.05); }
.avatar-choice.selected { border-color: #6d5cf4; box-shadow: 0 0 0 3px rgba(109,92,244,.12); }
.upload-avatar-button { display: block; margin-top: 11px; }
.upload-avatar-button input { display: none; }
.upload-avatar-button span { display: block; padding: 11px 13px; border: 1px dashed #b8bfd0; border-radius: 13px; background: #fff; color: #5b6780; text-align: center; font-size: 11px; font-weight: 900; cursor: pointer; }
.setting-note { color: #99a3b4; font-size: 9px; line-height: 1.55; }
.bubble-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bubble-choice { border: 3px solid transparent; border-radius: 14px; padding: 10px 8px; color: #fff; font-size: 9px; font-weight: 900; box-shadow: 0 6px 16px rgba(37,47,70,.08); }
.bubble-choice.selected { outline: 3px solid rgba(98,77,236,.18); border-color: rgba(255,255,255,.9); }
.position-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; }
.position-grid label { display: grid; gap: 5px; color: #798499; font-size: 9px; font-weight: 800; }
.position-grid input[type="range"] { width: 100%; accent-color: #6553e7; }
.setting-section .secondary-button { margin-top: 10px; }

.private-thread-list { display: flex; gap: 7px; overflow-x: auto; padding: 13px 0 11px; border-bottom: 1px solid var(--line); }
.thread-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; max-width: 190px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #69758b; font-size: 10px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-chip.active { background: #6553e7; color: #fff; border-color: #6553e7; }
.thread-chip span { display: grid; place-items: center; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: #ef476f; color: #fff; font-size: 8px; }
.private-empty { margin: 0; color: #929bad; font-size: 10px; }
.private-messages { min-height: 0; overflow-y: auto; padding: 16px 2px; }
.private-placeholder { margin: 30px auto; max-width: 320px; color: #9aa3b4; text-align: center; line-height: 1.7; font-size: 11px; }
.private-composer { padding-top: 10px; border-top: 1px solid var(--line); }
.compact-form input { padding-top: 11px; padding-bottom: 11px; }
.private-media-actions { margin-top: 6px; }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 95px; max-width: min(86vw, 430px); padding: 10px 14px; border-radius: 999px; background: rgba(35,45,63,.94); color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 12px 32px rgba(29,39,61,.24); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  html.otoha-chat-viewport-lock,
  html.otoha-chat-viewport-lock body.chat-page {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }
  html.otoha-chat-viewport-lock body.chat-page {
    position: fixed;
    inset: 0;
    padding: 0;
  }
  html.otoha-chat-viewport-lock .chat-shell {
    position: fixed;
    top: var(--otoha-vv-top, 0px);
    right: 0;
    bottom: auto;
    left: 0;
    margin: 0;
  }
  .home-page { padding: 0; place-items: stretch; }
  .home-shell { min-height: 100vh; grid-template-columns: 1fr; border-radius: 0; border: 0; }
  .rooms-panel { border-left: 0; border-top: 1px solid var(--line); }
  .chat-page { padding: 0; }
  .chat-shell { width: 100%; height: var(--otoha-chat-vh, 100dvh); border: 0; border-radius: 0; box-shadow: none; }
  /* iOS Safari auto-zooms focused controls below 16px. Prevent that zoom,
     which can otherwise leave the chat scaled/compressed after dismissal. */
  .message-form input, .private-composer .message-form input { font-size: 16px; }
  .chat-header { padding: 9px 11px; }
  .icon-button { width: 39px; height: 39px; border-radius: 13px; }
  .chat-title-wrap h1 { font-size: 19px; }
  .messages { padding: 17px 13px 22px; }
  .message-content { max-width: calc(100% - 60px); }
  .message-avatar { width: 47px; height: 47px; font-size: 25px; }
  .message-row { gap: 9px; margin-bottom: 15px; }
  .bubble { padding: 10px 14px; border-radius: 18px 18px 18px 6px; font-size: 13px; }
  .message-row.mine .bubble { border-radius: 18px 18px 6px 18px; }
  .posted-image { max-width: min(76vw, 410px); max-height: 48vh; }
  .composer-wrap { padding: 8px 9px 5px; }
  .message-form input { padding: 12px 15px; }
  .send-button { padding: 0 16px; }
  .stamp-grid { grid-template-columns: repeat(5, minmax(0,1fr)); max-height: 180px; }
  .bottom-nav { padding-left: 4px; padding-right: 4px; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: min(84dvh, 780px); border-radius: 26px 26px 0 0; border-bottom: 0; transform: translateY(calc(100% + 16px)); padding: 12px 15px calc(18px + env(safe-area-inset-bottom)); }
  .drawer.open { transform: translateY(0); }
  .drawer-grabber { display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 999px; background: #c9ced9; }
  .private-drawer { height: 84dvh; max-height: none; }
  .position-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .entry-panel, .rooms-panel { padding: 28px 20px; }
  .room-kicker { display: none; }
  .chat-title-wrap h1 { font-size: 17px; }
  .room-subline { margin-top: 3px; }
  .message-avatar { width: 42px; height: 42px; }
  .message-content { max-width: calc(100% - 52px); }
  .message-meta strong { font-size: 11px; }
  .bubble { font-size: 12.5px; }
  .media-action { padding: 6px 8px; }
  .nav-item { font-size: 8px; }
  .nav-icon { font-size: 18px; }
  .avatar-presets { grid-template-columns: repeat(6, 1fr); }
  .stamp-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* ===== v4: persistent profile / account / titles / voice-video ===== */
.home-topbar{max-width:1240px;margin:0 auto;padding:20px clamp(18px,4vw,42px) 0;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand-mark{display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink,#172033);font-weight:900;letter-spacing:-.02em}.brand-mark>span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:linear-gradient(135deg,#7357ff,#ff76b7);color:#fff;box-shadow:0 8px 24px rgba(112,76,255,.28)}.account-pill{border:1px solid rgba(111,126,160,.2);background:rgba(255,255,255,.7);backdrop-filter:blur(16px);border-radius:999px;padding:10px 15px;font-weight:800;color:#29364f;box-shadow:0 10px 30px rgba(39,53,89,.09);cursor:pointer}.storage-note{font-size:.78rem;color:#77839a;line-height:1.7;margin-top:14px}.account-drawer{width:min(520px,100vw)}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#eef1f8;border-radius:15px;padding:4px;margin-bottom:16px}.auth-tabs button{border:0;background:transparent;border-radius:12px;padding:11px;font-weight:800;color:#7d889c;cursor:pointer}.auth-tabs button.active{background:#fff;color:#2b3350;box-shadow:0 4px 16px rgba(42,53,89,.08)}.auth-form{display:grid;gap:14px}.auth-form[hidden]{display:none!important}.auth-form label{display:grid;gap:7px;font-weight:750;color:#37445d}.auth-form input{border:1px solid #dde3ef;background:#f8faff;border-radius:14px;padding:13px 14px;font:inherit;outline:none}.auth-form input:focus{border-color:#755cff;box-shadow:0 0 0 3px rgba(117,92,255,.12)}.verify-code{text-align:center;font-size:1.5rem;letter-spacing:.35em;font-weight:900}.auth-message,.dev-code-note{min-height:1.4em;font-size:.85rem;color:#7455d9}.dev-code-note{padding:10px 12px;background:#fff6d7;border-radius:12px;color:#8b6500}.account-status-card{display:grid;grid-template-columns:82px 1fr;gap:15px;align-items:center;padding:18px;border-radius:20px;background:linear-gradient(145deg,#171d39,#2a1f5a);color:#fff;box-shadow:0 18px 45px rgba(34,25,80,.2);margin-bottom:20px}.account-status-card h3,.account-status-card p{margin:0 0 5px}.account-status-card>div:nth-child(2){min-width:0}.account-title-badge{width:78px;height:78px;object-fit:cover;border-radius:20px;filter:drop-shadow(0 7px 10px rgba(0,0,0,.28))}.account-actions{grid-column:1/-1;display:flex;gap:9px}.account-actions .subtle-button{flex:1}.subtle-button{border:1px solid rgba(117,92,255,.2);background:#f7f5ff;color:#5d48c5;border-radius:13px;padding:10px 12px;font-weight:800;cursor:pointer}.subtle-button.danger{background:#fff3f4;color:#c24257;border-color:#ffd8df}.title-name{display:block;margin:3px 0 6px}.title-gallery-section{margin-top:24px;border-top:1px solid #e8ecf4;padding-top:18px}.section-title-row{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}.section-title-row h3{margin:0}.section-title-row>span{font-size:.75rem;color:#8992a3}.title-gallery{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:42vh;overflow:auto;padding-right:4px}.title-card{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid #e6eaf3;border-radius:14px;background:#fbfcff}.title-card img{width:42px;height:42px;object-fit:cover;border-radius:12px}.title-card strong,.title-card small{display:block}.title-card strong{font-size:.78rem}.title-card small{font-size:.68rem;color:#8a94a5;margin-top:2px}.title-card.tier-8,.title-card.tier-9,.title-card.tier-10{background:linear-gradient(135deg,#fff9e9,#fff1fc);border-color:#efd7ff}.title-tier-7,.title-tier-8{color:#ffd264!important;text-shadow:0 0 12px rgba(255,196,58,.25)}.title-tier-9{color:#ff8ae0!important;text-shadow:0 0 13px rgba(255,70,192,.25)}.title-tier-10{color:#ffcf62!important;text-shadow:0 0 8px rgba(255,106,44,.35)}

.self-title-chip{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:2px 8px;background:rgba(255,255,255,.66);font-size:.72rem;font-weight:800}.self-title-chip img{width:18px;height:18px;border-radius:6px;object-fit:cover}.message-title{display:inline-flex;align-items:center;gap:3px;font-size:.68rem;font-weight:850;padding:1px 5px;border-radius:999px;background:rgba(255,255,255,.75)}.message-title img{width:16px;height:16px;object-fit:cover;border-radius:5px}.participant-copy strong{display:block}.bottom-nav-wide{grid-template-columns:repeat(6,minmax(72px,1fr));overflow-x:auto;scrollbar-width:none}.bottom-nav-wide::-webkit-scrollbar{display:none}.bottom-nav-wide .nav-item{min-width:72px}.voice-nav{position:relative}.voice-drawer{width:min(560px,100vw)}.voice-self-card{padding:15px;border:1px solid #e4e9f3;border-radius:18px;background:linear-gradient(145deg,#fafbff,#f3f1ff);margin-bottom:14px}.voice-self-card p{margin:4px 0 0;color:#7a8598}.voice-join-actions,.voice-self-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.voice-self-actions .voice-control{flex:1;min-width:120px}.voice-control{border:1px solid #dfe4f1;background:#fff;border-radius:13px;padding:10px 11px;font-weight:800;cursor:pointer}.voice-control:disabled{opacity:.45}.voice-participant-list{display:grid;gap:8px}.voice-person{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #e5eaf3;border-radius:16px;padding:9px;background:#fff}.voice-avatar{width:46px;height:46px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#eff2f8;font-size:1.45rem}.voice-avatar img{width:100%;height:100%;object-fit:cover}.voice-person-copy{min-width:0}.voice-person-copy strong,.voice-person-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.voice-person-copy span{font-size:.72rem;color:#8490a3;margin-top:2px}.voice-person-controls{display:grid;grid-template-columns:auto 92px;gap:7px;align-items:center}.voice-person-controls button{border:0;border-radius:10px;background:#f0edff;color:#6552c7;font-weight:800;padding:7px 9px}.voice-person-controls input{width:92px}.video-panel{position:relative;height:clamp(190px,32vh,360px);min-height:0;overflow:hidden;background:rgba(22,27,47,.96);border-bottom:1px solid rgba(255,255,255,.06);transition:height .2s ease}.video-panel.collapsed{height:44px}.video-panel-toolbar{position:absolute;z-index:3;top:0;left:0;right:0;height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 14px;background:linear-gradient(180deg,rgba(7,10,19,.68),rgba(7,10,19,.12));pointer-events:none}.video-panel-title{display:inline-flex;align-items:center;gap:7px;color:rgba(237,242,255,.82);font-size:10px;font-weight:850;letter-spacing:.07em}.video-panel-dot{width:7px;height:7px;border-radius:50%;background:#77839b;box-shadow:0 0 0 4px rgba(255,255,255,.05)}.video-stage-toggle{pointer-events:auto;display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.14);border-radius:11px;padding:6px 9px;background:rgba(12,17,31,.72);color:#f2f5ff;font:inherit;font-size:10px;font-weight:850;cursor:pointer;backdrop-filter:blur(10px)}.video-stage-toggle:hover{background:rgba(35,43,67,.88)}.video-stage-toggle span:first-child{font-size:15px;line-height:1}.video-stage{height:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;padding:50px 10px 8px;background:rgba(22,27,47,.92);overflow:auto}.video-stage[hidden]{display:none}.video-panel.collapsed .video-stage{display:none!important}.video-panel:not(.collapsed):has(.video-stage[hidden])::after{content:"カメラ・画面共有はここに表示されます";position:absolute;inset:44px 0 0;display:grid;place-items:center;color:rgba(210,218,238,.32);font-size:12px;letter-spacing:.04em;pointer-events:none}.video-tile{position:relative;margin:0;min-height:130px;border-radius:14px;overflow:hidden;background:#05070d}.video-tile video{display:block;width:100%;height:100%;min-height:130px;max-height:260px;object-fit:cover}.video-tile.screen-share video{object-fit:contain;background:#05070d}.video-tile figcaption{position:absolute;left:8px;bottom:7px;padding:4px 7px;border-radius:999px;background:rgba(0,0,0,.62);color:#fff;font-size:.7rem}.media-message .posted-image{max-width:min(520px,75vw)}

@media(max-width:760px){.home-topbar{padding-top:12px}.title-gallery{grid-template-columns:1fr}.account-status-card{grid-template-columns:70px 1fr}.account-title-badge{width:66px;height:66px}.bottom-nav-wide{justify-content:flex-start}.voice-person{grid-template-columns:44px 1fr}.voice-person-controls{grid-column:2;grid-template-columns:auto 1fr}.voice-person-controls input{width:100%}.video-panel{height:clamp(155px,26vh,260px)}.video-stage{grid-template-columns:1fr 1fr}.video-tile video{min-height:110px}.message-title span{display:none}}
.privacy-note{margin-top:10px;padding:11px 13px;border-radius:13px;background:rgba(255,248,226,.7);border:1px solid rgba(226,180,70,.24);font-size:.72rem;line-height:1.65;color:#736547}

/* ===== v4.4: tighter messages / larger avatars / scale controls / centered title badges ===== */
.message-content{display:flex;flex-direction:column;align-items:flex-start}
.message-row.mine .message-content{align-items:flex-end}
.message-row.mine .message-meta{align-self:flex-end}
.message-row:not(.mine) .message-meta{align-self:flex-start}
.message-avatar{width:64px;height:64px;font-size:34px}
.avatar img,.avatar span,.voice-avatar img,.voice-avatar span{transform-origin:center;transition:transform .14s ease}
.position-grid label{position:relative}
.position-grid output{justify-self:end;font-size:.72rem;font-weight:850;color:#6d5cf4;min-width:44px;text-align:right}
.voice-leave-control{border-color:#ffd7de;background:#fff5f6;color:#bf4258}
.account-title-badge,.title-card img,.self-title-chip img,.message-title img{object-fit:contain!important;object-position:center!important}
.account-title-badge{padding:2px;box-sizing:border-box}
.title-card img{padding:1px;box-sizing:border-box}
.self-title-chip img,.message-title img{border-radius:50%}

@media(max-width:760px){
  .message-avatar{width:58px;height:58px;font-size:31px}
  .message-content{max-width:calc(100% - 68px)}
}
@media(max-width:420px){
  .message-avatar{width:52px;height:52px;font-size:28px}
  .message-content{max-width:calc(100% - 61px)}
}

/* v4.5: RGB text color editor */
.text-color-editor { display: grid; gap: 12px; }
.color-swatch-label { display: flex; align-items: center; gap: 11px; color: #667289; font-size: 11px; font-weight: 850; }
.color-swatch-label input[type="color"] { width: 56px; height: 42px; padding: 3px; border: 1px solid rgba(105,122,157,.18); border-radius: 12px; background: #fff; cursor: pointer; }
.rgb-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rgb-fields label, .hex-field { display: grid; gap: 5px; color: #798499; font-size: 9px; font-weight: 850; }
.rgb-fields input, .hex-field input { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid rgba(105,122,157,.18); border-radius: 11px; outline: none; background: #fff; color: #344058; }
.rgb-fields input:focus, .hex-field input:focus { border-color: rgba(101,83,231,.52); box-shadow: 0 0 0 3px rgba(101,83,231,.08); }
@media (max-width: 520px) { .rgb-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* v4.5: home contact */
.home-top-actions { display: flex; align-items: center; gap: 9px; }
.secondary-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(248,250,255,.76); color: #667289; }
.contact-drawer { width: min(520px, 100vw); }
.contact-copy { margin: 4px 0 18px; color: #7b879b; font-size: 13px; line-height: 1.7; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 7px; color: #37445d; font-weight: 750; font-size: 13px; }
.contact-form label small { color: #8b95a8; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #dde3ef; background: #f8faff; border-radius: 14px; padding: 13px 14px; font: inherit; color: #344058; outline: none; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #755cff; box-shadow: 0 0 0 3px rgba(117,92,255,.12); }
.contact-status { min-height: 1.5em; margin: 0; font-size: 12px; color: #6553e7; line-height: 1.5; }
.contact-status.error { color: #c24157; }
.contact-honeypot { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }
@media (max-width: 560px) { .home-top-actions { gap: 6px; } .account-pill { padding: 9px 11px; font-size: 12px; } .secondary-pill .contact-label { display: none; } .secondary-pill .contact-icon { font-size: 15px; } }
.home-legal{display:flex;justify-content:center;gap:18px;padding:12px 24px 28px;color:#7e8da8;font-size:12px}.home-legal a,.privacy-note a{color:inherit;text-underline-offset:3px}.policy-page{min-height:100vh;background:#f5f7fc;color:#28364e}.policy-shell{width:min(860px,calc(100% - 32px));margin:42px auto 80px;background:#fff;border:1px solid #e1e7f1;border-radius:28px;padding:clamp(24px,5vw,54px);box-shadow:0 22px 70px rgba(44,61,95,.08)}.policy-shell h1{font-size:clamp(30px,5vw,46px);margin:8px 0}.policy-shell section{padding:20px 0;border-top:1px solid #edf0f6}.policy-shell section:first-of-type{margin-top:24px}.policy-shell h2{font-size:19px;margin:0 0 10px}.policy-shell p{line-height:1.9;margin:8px 0;color:#52617a}.policy-updated{font-size:12px;color:#8d99ad!important}.policy-back{color:#657594;text-decoration:none}.policy-links{text-align:center;margin-top:26px!important}.policy-links a{color:#5b55d9;text-underline-offset:3px}


/* v4.9: video / drawing / participant mute */
.posted-video{display:block;max-width:min(560px,76vw);max-height:420px;border-radius:20px;background:#090b12;box-shadow:0 12px 32px rgba(15,23,42,.22)}
.video-message{padding:4px;background:transparent}
.media-actions{flex-wrap:wrap}.draw-action{background:linear-gradient(135deg,rgba(126,87,255,.12),rgba(255,108,176,.12))}
.participant-row-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch;margin-bottom:8px}.participant-row-wrap .participant-row{margin:0}.participant-mute{border:1px solid rgba(148,163,184,.28);border-radius:14px;padding:0 12px;background:rgba(255,255,255,.7);font-weight:700;color:#667085;cursor:pointer}.participant-mute.active{background:#fff0f3;color:#c63b5c;border-color:#ffc6d2}.participant-row-wrap.muted{opacity:.78}
.draw-overlay{position:fixed;inset:0;z-index:1200;background:rgba(10,15,30,.56);backdrop-filter:blur(12px);padding:clamp(10px,3vw,34px);overflow:auto}.draw-dialog{width:min(1080px,100%);margin:auto;background:rgba(250,252,255,.98);border:1px solid rgba(255,255,255,.85);border-radius:28px;box-shadow:0 28px 90px rgba(10,20,50,.3);overflow:hidden}.draw-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid rgba(148,163,184,.18)}.draw-head h2{margin:2px 0 0}.draw-toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:14px 18px;background:#f5f7ff;border-bottom:1px solid rgba(148,163,184,.15)}.draw-tools,.draw-history{display:flex;gap:6px;flex-wrap:wrap}.draw-toolbar button{border:1px solid rgba(112,124,160,.2);background:white;border-radius:12px;padding:8px 10px;cursor:pointer}.draw-toolbar button.active{background:#6269eb;color:#fff;border-color:#6269eb}.draw-toolbar label{display:flex;align-items:center;gap:7px;font-size:.86rem;font-weight:700}.draw-toolbar input[type=range]{width:110px}.draw-canvas-wrap{padding:18px;background:repeating-conic-gradient(#edf0f7 0 25%,#f8f9fc 0 50%) 50%/18px 18px;overflow:auto}.draw-canvas-wrap canvas{display:block;width:min(900px,100%);height:auto;aspect-ratio:900/560;margin:auto;background:white;border-radius:12px;box-shadow:0 10px 28px rgba(15,23,42,.16);touch-action:none;cursor:crosshair}.draw-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px}.draw-actions span{font-size:.82rem;color:#667085}.modal-open{overflow:hidden}@media(max-width:640px){.draw-overlay{padding:0}.draw-dialog{min-height:100%;border-radius:0}.draw-actions{align-items:stretch;flex-direction:column}.participant-mute{padding:0 9px;font-size:.75rem}.posted-video{max-width:78vw}}

/* ===== v5.0 media cooldown + voice focus ===== */
.chat-shell{grid-template-rows:auto auto minmax(0,1fr) auto auto auto}
.media-cooldown-note{min-height:20px;padding:2px 8px 0;color:#7d8798;font-size:.72rem;font-weight:700}.media-cooldown-note.cooling{color:#bd5b60}
.media-action.cooldown,.media-action:disabled{opacity:.45;cursor:not-allowed}
.voice-expand-row{padding:6px 10px 10px;background:rgba(247,249,255,.94);border-top:1px solid rgba(148,163,184,.13)}
.voice-expand-row button{width:100%;display:grid;grid-template-columns:32px auto 1fr;gap:8px;align-items:center;border:1px solid rgba(107,92,220,.17);border-radius:14px;padding:8px 12px;background:linear-gradient(135deg,rgba(239,237,255,.96),rgba(236,248,255,.96));color:#5649ae;text-align:left;cursor:pointer}.voice-expand-row button>span{font-size:20px}.voice-expand-row strong{font-size:.82rem}.voice-expand-row small{justify-self:end;color:#7d8798;font-size:.7rem}.voice-focus-launch{width:100%;margin:10px 0 2px;border:1px solid #d9d4ff;background:#f4f1ff;color:#604fc1;border-radius:13px;padding:10px;font-weight:850;cursor:pointer}
.voice-focus{position:fixed;inset:0;z-index:1600;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:radial-gradient(circle at 50% -20%,#27375f 0,#101725 34%,#070b12 78%);color:#f7f9ff}.voice-focus[hidden]{display:none}.voice-focus-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px clamp(16px,3vw,34px);border-bottom:1px solid rgba(255,255,255,.09);background:rgba(8,12,20,.76);backdrop-filter:blur(18px)}.voice-focus-head h2{margin:2px 0;font-size:clamp(20px,2.4vw,32px)}.voice-focus-head p{margin:3px 0;color:#aeb8cc;font-size:.8rem}.voice-focus-close{border:1px solid rgba(255,255,255,.18);border-radius:13px;padding:10px 14px;background:rgba(255,255,255,.08);color:#fff;font-weight:850;cursor:pointer}.voice-focus-stage{display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:center;gap:14px;padding:18px;overflow:auto}.voice-focus-empty{margin:auto;color:#8390a6;text-align:center;padding:40px}.voice-focus-tile{position:relative;flex:0 1 auto;width:560px;max-width:100%;aspect-ratio:16/9;min-height:180px;border:1px solid rgba(255,255,255,.11);border-radius:20px;overflow:hidden;background:#020409;box-shadow:0 20px 60px rgba(0,0,0,.32);transition:width .16s ease,opacity .16s ease}.voice-focus-tile.screen-share{aspect-ratio:auto;min-height:320px}.voice-focus-tile video{width:100%;height:100%;min-height:inherit;object-fit:cover;display:block}.voice-focus-tile.screen-share video{object-fit:contain}.voice-focus-caption{position:absolute;left:12px;bottom:12px;z-index:2;padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.62);font-size:.75rem;font-weight:800}.voice-focus-tools{position:absolute;right:10px;top:10px;z-index:3;display:flex;gap:5px;padding:5px;border-radius:13px;background:rgba(4,8,15,.72);backdrop-filter:blur(12px)}.voice-focus-tools button{border:1px solid rgba(255,255,255,.12);border-radius:9px;min-width:34px;height:30px;padding:0 8px;background:rgba(255,255,255,.08);color:#fff;font-size:.74rem;font-weight:850;cursor:pointer}.voice-focus-tools button:hover{background:rgba(255,255,255,.18)}.voice-focus-scale{min-width:48px!important;cursor:default!important}.voice-focus-minimized{padding:9px 16px 14px;border-top:1px solid rgba(255,255,255,.09);background:rgba(8,12,20,.9)}.voice-focus-minimized>strong{display:block;font-size:.72rem;color:#8997ae;margin-bottom:7px}.voice-focus-minimized-list{display:flex;gap:7px;flex-wrap:wrap}.voice-restore-chip{border:1px solid rgba(255,255,255,.15);border-radius:999px;padding:7px 11px;background:rgba(255,255,255,.08);color:#fff;font-size:.75rem;cursor:pointer}.voice-focus-open{overflow:hidden}
@media(max-width:700px){.voice-expand-row small{display:none}.voice-expand-row button{grid-template-columns:30px 1fr}.voice-focus-head{padding:13px}.voice-focus-head p{display:none}.voice-focus-close{padding:8px 10px;font-size:.76rem}.voice-focus-stage{padding:8px;gap:8px}.voice-focus-tile{width:100%!important;min-height:160px;border-radius:14px}.voice-focus-tile.screen-share{min-height:230px}.voice-focus-tools{right:6px;top:6px}.voice-focus-caption{left:8px;bottom:8px}}

/* v5.1 account / social */
.user-search-strip{max-width:1180px;margin:18px auto 0;padding:0 22px;position:relative;z-index:5}.user-search-form{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(85,99,150,.16);border-radius:22px;background:rgba(255,255,255,.76);box-shadow:0 16px 44px rgba(74,86,138,.08);backdrop-filter:blur(16px)}.user-search-icon{font-size:24px;opacity:.55}.user-search-form input{flex:1;border:0;background:transparent;outline:0;font:inherit;font-size:15px;padding:8px}.user-search-form button{border:0;border-radius:14px;padding:10px 16px;font-weight:800;background:#edf0ff;color:#4854bd;cursor:pointer}.user-search-results{position:absolute;left:22px;right:22px;top:66px;padding:10px;border:1px solid rgba(85,99,150,.15);border-radius:20px;background:rgba(250,251,255,.98);box-shadow:0 24px 70px rgba(41,49,93,.18);max-height:380px;overflow:auto}.user-search-card,.connection-user{width:100%;display:flex;align-items:center;gap:12px;border:0;border-radius:15px;background:transparent;padding:10px;text-align:left;cursor:pointer}.user-search-card:hover,.connection-user:hover{background:#f0f3ff}.user-search-copy,.connection-user>span:last-child{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.user-search-copy span,.connection-user small{font-size:12px;color:#7c849e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.social-avatar{display:grid;place-items:center;width:42px;height:42px;flex:0 0 auto;border-radius:50%;overflow:hidden;background:linear-gradient(145deg,#eff2ff,#fff);font-size:24px;box-shadow:inset 0 0 0 1px rgba(79,91,150,.12)}.social-avatar.large{width:76px;height:76px;font-size:42px}.social-avatar img{width:100%;height:100%;object-fit:cover}.ranking-section{max-width:1180px;margin:24px auto 36px;padding:24px 22px;border:1px solid rgba(89,101,160,.13);border-radius:30px;background:rgba(255,255,255,.72);box-shadow:0 22px 60px rgba(70,82,130,.08)}.ranking-head{display:flex;align-items:end;justify-content:space-between;gap:18px}.ranking-head h2{margin:2px 0 0}.ranking-head>p{margin:0;color:#81889c;font-size:13px}.ranking-tabs{display:flex;gap:8px;margin:18px 0 14px;overflow:auto}.ranking-tabs button{border:1px solid rgba(80,91,147,.12);background:#f7f8ff;color:#656e8d;border-radius:999px;padding:8px 15px;font-weight:800;cursor:pointer}.ranking-tabs button.active{background:#5965e8;color:#fff;box-shadow:0 8px 22px rgba(89,101,232,.25)}.ranking-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ranking-row{display:grid;grid-template-columns:34px 42px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid rgba(82,93,145,.1);border-radius:16px;background:rgba(248,249,255,.82);padding:10px 12px;text-align:left;cursor:pointer}.ranking-row:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(70,82,140,.1)}.ranking-row.rank-1{background:linear-gradient(120deg,#fff9df,#fff)}.ranking-row.rank-2{background:linear-gradient(120deg,#f1f4fa,#fff)}.ranking-row.rank-3{background:linear-gradient(120deg,#fff1e7,#fff)}.ranking-position{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff;font-weight:900;color:#68708a}.ranking-copy{display:flex;min-width:0;flex-direction:column}.ranking-copy span{font-size:11px;color:#8189a1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ranking-score{color:#4e59d5;font-size:13px;white-space:nowrap}.ranking-formula{margin:12px 2px 0;color:#8990a3;font-size:12px}.account-public-id,.user-profile-id{font-weight:800;color:#5964d8}.account-social-counts{font-size:13px;color:#68718c}.user-profile-hero{display:flex;gap:16px;align-items:flex-start;padding:16px;border-radius:22px;background:linear-gradient(145deg,#f3f5ff,#fff)}.user-profile-hero>div{min-width:0}.user-profile-hero h3{margin:2px 0;font-size:22px}.user-profile-title{display:flex;align-items:center;gap:6px;margin:9px 0;font-weight:900}.user-profile-title img{width:30px;height:30px;object-fit:contain}.user-presence{font-size:13px;color:#66708a}.social-count-grid{display:flex;gap:8px;margin-top:10px}.social-count-grid span{display:flex;min-width:86px;flex-direction:column;align-items:center;padding:8px 12px;border-radius:14px;background:#fff}.social-count-grid b{font-size:18px}.social-count-grid small{color:#8a91a5}.user-profile-actions,.connection-tabs{display:flex;gap:8px;margin-top:14px}.connection-tabs button{flex:1;border:0;border-radius:14px;padding:10px;background:#eff1ff;color:#505bc7;font-weight:800;cursor:pointer}.connection-list{margin-top:8px;max-height:380px;overflow:auto}.chat-account-button{align-self:center;max-width:190px;border:1px solid rgba(80,93,150,.14);border-radius:999px;background:rgba(255,255,255,.78);padding:8px 12px;color:#525cbd;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.account-id-label{font-size:11px;font-weight:800;color:#5965d7}.participant-row-wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}.participant-profile-row{width:100%;border:0;text-align:left}.participant-profile-row:disabled{opacity:1;cursor:default}.participant-controls{display:flex;gap:6px;flex-wrap:wrap;padding:0 5px 7px 57px}.participant-controls button{border:1px solid rgba(77,89,142,.12);border-radius:999px;background:#f7f8ff;padding:6px 10px;font-size:11px;font-weight:800;color:#68708e;cursor:pointer}.participant-controls .active{background:#e6e9ff;color:#4b57c9}.participant-block.active{background:#ffe8eb;color:#b64255}.participant-row-wrap.blocked{opacity:.72}.user-profile-drawer{width:min(470px,94vw)}
@media(max-width:760px){.user-search-strip{padding:0 12px}.user-search-results{left:12px;right:12px}.ranking-section{margin:16px 12px 28px;padding:18px 14px}.ranking-head{align-items:flex-start;flex-direction:column}.ranking-list{grid-template-columns:1fr}.ranking-row{grid-template-columns:30px 38px minmax(0,1fr) auto}.chat-account-button{max-width:125px;padding:7px 9px;font-size:11px}.participant-controls{padding-left:48px}.social-avatar.large{width:64px;height:64px}}


/* v5.2 supporter plans / follower / account withdrawal */
.follower-name{color:#2572e6!important;text-shadow:0 1px 0 rgba(255,255,255,.7)}
.supporter-avatar{position:relative;isolation:isolate;transition:filter .2s ease,box-shadow .2s ease}
.supporter-avatar>img,.supporter-avatar>span{border-radius:inherit;overflow:hidden}
.supporter-avatar.supporter-cute{--support-a:#ff79c9;--support-b:#9d7bff;--support-c:#ffd46a;--support-glow:rgba(255,111,196,.42)}
.supporter-avatar.supporter-cool{--support-a:#49d8ff;--support-b:#5468ff;--support-c:#d7f8ff;--support-glow:rgba(53,182,255,.42)}
.supporter-ring-1{box-shadow:0 0 0 2px var(--support-a),0 0 8px var(--support-glow)!important}
.supporter-ring-2{box-shadow:0 0 0 2px var(--support-a),0 0 0 5px color-mix(in srgb,var(--support-b) 55%,transparent),0 0 12px var(--support-glow)!important}
.supporter-ring-3{box-shadow:0 0 0 2px var(--support-c),0 0 0 5px var(--support-a),0 0 18px var(--support-glow)!important;animation:supporterHalo 3.2s ease-in-out infinite}
.supporter-ring-4{box-shadow:0 0 0 2px #fff,0 0 0 5px var(--support-a),0 0 0 8px color-mix(in srgb,var(--support-b) 65%,transparent),0 0 22px var(--support-glow)!important;animation:supporterHalo 2.8s ease-in-out infinite}
.supporter-ring-5{box-shadow:0 0 0 2px var(--support-c),0 0 0 5px var(--support-a),0 0 0 8px var(--support-b),0 0 28px var(--support-glow)!important;animation:supporterHalo 2.25s ease-in-out infinite}
.supporter-ring-6{box-shadow:0 0 0 2px #fff,0 0 0 5px var(--support-c),0 0 0 8px var(--support-a),0 0 0 11px color-mix(in srgb,var(--support-b) 75%,transparent),0 0 38px var(--support-glow)!important;animation:supporterRoyal 1.8s ease-in-out infinite}
@keyframes supporterHalo{50%{filter:brightness(1.14) saturate(1.16);box-shadow:0 0 0 3px var(--support-c),0 0 0 6px var(--support-a),0 0 24px var(--support-glow)}}
@keyframes supporterRoyal{0%,100%{filter:brightness(1)}50%{filter:brightness(1.24) saturate(1.28);transform:translateY(-1px)}}
.supporter-bubble{--support-a:#ff79c9;--support-b:#9d7bff;--support-c:#ffd46a;position:relative}
.supporter-bubble.supporter-cool{--support-a:#38cfff;--support-b:#4e60ff;--support-c:#c7f8ff}
.supporter-bubble-1{box-shadow:0 0 0 2px color-mix(in srgb,var(--support-a) 80%,transparent),0 5px 17px rgba(63,61,120,.18)!important}
.supporter-bubble-2{box-shadow:0 0 0 2px var(--support-a),0 0 0 5px color-mix(in srgb,var(--support-b) 40%,transparent),0 0 20px color-mix(in srgb,var(--support-a) 38%,transparent)!important}
.supporter-bubble-3{box-shadow:0 0 0 2px var(--support-c),0 0 0 5px var(--support-a),0 0 0 8px color-mix(in srgb,var(--support-b) 30%,transparent),0 0 28px color-mix(in srgb,var(--support-a) 42%,transparent)!important;animation:supporterBubbleGlow 2.4s ease-in-out infinite}
.supporter-bubble-4,.supporter-bubble-5,.supporter-bubble-6{box-shadow:0 0 0 2px #fff,0 0 0 5px var(--support-c),0 0 0 8px var(--support-a),0 0 30px color-mix(in srgb,var(--support-b) 50%,transparent)!important;animation:supporterBubbleGlow 1.9s ease-in-out infinite}
@keyframes supporterBubbleGlow{50%{filter:brightness(1.07);box-shadow:0 0 0 2px #fff,0 0 0 6px var(--support-a),0 0 34px color-mix(in srgb,var(--support-b) 58%,transparent)}}
.supporter-title{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:900;line-height:1.1;letter-spacing:.01em;border:1px solid transparent;box-shadow:0 5px 16px rgba(70,76,130,.12)}
.supporter-title.supporter-cute{color:#a42c7a;background:linear-gradient(120deg,#fff1fa,#f5ecff);border-color:#f2b4dc}.supporter-title.supporter-cool{color:#234bc1;background:linear-gradient(120deg,#eafaff,#edf0ff);border-color:#9ccdf8}.supporter-title-tier-3,.supporter-title-tier-4{box-shadow:0 0 0 1px rgba(255,255,255,.8),0 7px 18px rgba(113,79,214,.2)}.supporter-title-tier-5,.supporter-title-tier-6{background-size:200% 100%;animation:supporterTitleShimmer 2.6s linear infinite;box-shadow:0 0 16px rgba(132,88,235,.28)}.supporter-title-tier-5.supporter-cute,.supporter-title-tier-6.supporter-cute{background-image:linear-gradient(100deg,#fff0fa,#ffe8aa,#eee6ff,#fff0fa)}.supporter-title-tier-5.supporter-cool,.supporter-title-tier-6.supporter-cool{background-image:linear-gradient(100deg,#e9fbff,#dce2ff,#effcff,#e9fbff)}
@keyframes supporterTitleShimmer{to{background-position:-200% 0}}
.message-supporter-title{flex-basis:100%;margin-top:2px;margin-bottom:1px}.profile-supporter-title{margin:5px 0}.account-supporter-title{margin-top:8px}.supporter-title-mark{font-size:10px}
.billing-account-panel{grid-column:1/-1;color:#29324e;margin-top:8px;padding:15px;border:1px solid rgba(104,92,210,.12);border-radius:20px;background:linear-gradient(145deg,rgba(249,247,255,.96),rgba(244,251,255,.94))}.billing-account-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.billing-account-head h4{margin:0;font-size:16px}.billing-account-head p,.billing-no-plan{margin:0;color:#7e879e;font-size:11px}.billing-current{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:12px}.billing-current>span:last-child{font-size:11px;color:#68718a}.supporter-style-switch{display:flex;gap:7px;margin-top:10px}.supporter-style-switch button{border:1px solid #d9dcf2;border-radius:999px;background:#fff;padding:7px 11px;color:#5f6886;font-weight:800;cursor:pointer}.supporter-style-switch button.active{background:#5a63de;color:#fff;border-color:#5a63de}.subscription-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:13px}.subscription-plan-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:11px;border:1px solid rgba(95,104,160,.12);border-radius:16px;background:rgba(255,255,255,.88)}.subscription-plan-card.current{border-color:#7a70e8;box-shadow:0 0 0 2px rgba(122,112,232,.12)}.subscription-plan-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.subscription-plan-top b{font-size:11px;color:#5963d6}.subscription-plan-card>p{margin:0;font-size:10px;color:#7f879d;min-height:28px}.subscription-plan-preview{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;gap:6px 9px;align-items:center;padding:7px;border-radius:13px;background:linear-gradient(145deg,#f8f9ff,#fff)}.subscription-preview-avatar{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;font-size:21px;background:#fff}.subscription-preview-bubble{display:inline-flex;width:max-content;max-width:100%;border-radius:11px;padding:5px 8px;background:#4f5b73;color:#fff;font-size:9px}.subscription-plan-preview .supporter-title{font-size:8px;padding:3px 6px}.plan-checkout-button,.plan-coming-soon,.plan-current-label{display:block;margin-top:auto;border-radius:10px;padding:7px 9px;text-align:center;font-size:10px;font-weight:900;text-decoration:none}.plan-checkout-button{background:#5964df;color:#fff}.plan-coming-soon{background:#f0f1f7;color:#8a90a0}.plan-current-label{background:#e9e8ff;color:#554dc4}.account-danger-zone{grid-column:1/-1;margin-top:8px;padding:10px 12px;border:1px solid #f0c9cf;border-radius:16px;background:#fff9fa}.account-danger-zone summary{cursor:pointer;color:#a13f4f;font-weight:900}.account-danger-zone p{font-size:11px;color:#7e6970}.account-danger-zone input{width:100%;box-sizing:border-box;border:1px solid #e6d9de;border-radius:11px;padding:9px;margin-bottom:8px}.account-danger-zone button{width:100%}
@media(max-width:760px){.subscription-plan-grid{grid-template-columns:1fr 1fr}.billing-account-head{align-items:flex-start;flex-direction:column}.supporter-ring-6{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--support-c),0 0 0 7px var(--support-a),0 0 28px var(--support-glow)!important}}
@media(max-width:460px){.subscription-plan-grid{grid-template-columns:1fr}}

.message-meta{flex-wrap:wrap}.message-row.mine .message-supporter-title{margin-left:auto}.message-row:not(.mine) .message-supporter-title{margin-right:auto}

/* SEO / product information (v5.3) */
.seo-info-section,.seo-faq-section{max-width:1180px;margin:34px auto 0;padding:28px 30px;border:1px solid rgba(116,130,170,.16);border-radius:28px;background:rgba(255,255,255,.72);box-shadow:0 20px 60px rgba(55,70,110,.08);backdrop-filter:blur(14px)}
.seo-info-intro{max-width:820px}.seo-info-intro h2,.seo-faq-section h2{margin:5px 0 10px;font-size:clamp(1.45rem,3vw,2.05rem);letter-spacing:-.035em}.seo-info-intro>p:last-child{line-height:1.9;color:#566079}
.seo-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:24px}.seo-feature-grid article{padding:20px;border-radius:20px;background:linear-gradient(145deg,rgba(246,248,255,.95),rgba(255,255,255,.82));border:1px solid rgba(124,137,177,.14)}.seo-feature-grid article>span{font-size:1.65rem}.seo-feature-grid h3{margin:10px 0 6px;font-size:1rem}.seo-feature-grid p{margin:0;color:#667087;line-height:1.75;font-size:.9rem}
.seo-faq-section details{border-top:1px solid rgba(116,130,170,.15);padding:15px 2px}.seo-faq-section details:last-child{border-bottom:1px solid rgba(116,130,170,.15)}.seo-faq-section summary{cursor:pointer;font-weight:750;color:#30384e}.seo-faq-section details p{margin:10px 0 2px;color:#626c83;line-height:1.8}
@media(max-width:880px){.seo-info-section,.seo-faq-section{margin:20px 14px 0;padding:22px 18px;border-radius:22px}.seo-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.seo-feature-grid{grid-template-columns:1fr}.seo-feature-grid article{padding:17px}}

/* v5.5 social / microblog UI */
.social-page{min-height:100vh;background:#f6f8fc;color:#20283a}.social-topbar{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:auto minmax(280px,680px) auto;align-items:center;gap:22px;padding:14px clamp(18px,4vw,44px);border-bottom:1px solid #e7eaf2;background:rgba(255,255,255,.9);backdrop-filter:blur(18px)}.social-search{display:flex;gap:7px}.social-search input{width:100%;border:1px solid #e0e4ef;border-radius:999px;padding:11px 16px;background:#f8faff;font:inherit}.social-search button,.social-top-link{border:0;border-radius:999px;background:#edf0ff;color:#5d57c8;padding:10px 14px;font-weight:900;text-decoration:none;white-space:nowrap}.social-top-actions{display:flex;align-items:center;gap:9px}.social-account-label{font-weight:900;color:#667088}.social-layout{display:grid;grid-template-columns:220px minmax(0,720px) 280px;gap:20px;max-width:1260px;margin:0 auto;padding:24px 20px 60px}.social-sidebar{position:sticky;top:86px;height:max-content;display:grid;gap:7px}.social-nav{position:relative;width:100%;border:0;border-radius:16px;padding:12px 14px;text-align:left;background:transparent;color:#667087;font-weight:900;cursor:pointer}.social-nav:hover,.social-nav.active{background:#fff;color:#4f4bd2;box-shadow:0 8px 24px rgba(54,61,104,.08)}.social-nav b{float:right;min-width:20px;padding:2px 5px;border-radius:999px;background:#ff5c91;color:#fff;text-align:center;font-size:10px}.social-nav-link{text-decoration:none;display:block;box-sizing:border-box}.social-sidebar-note{font-size:10px;line-height:1.75;color:#98a0b2;padding:8px 13px}.social-main{min-width:0}.social-main-head{display:flex;align-items:center;justify-content:space-between;padding:7px 4px 15px}.social-main-head h1{margin:0;font-size:24px}.social-main-head p{margin:0}.social-main-head>button{border:1px solid #e1e5ef;border-radius:999px;background:#fff;padding:8px 12px;color:#657086;font-weight:800}.social-composer{display:grid;grid-template-columns:48px 1fr;gap:12px;margin-bottom:12px;padding:16px;border:1px solid #e5e8f1;border-radius:22px;background:#fff;box-shadow:0 12px 36px rgba(49,60,93,.06)}.social-composer-body textarea{width:100%;box-sizing:border-box;border:0;resize:vertical;outline:0;font:inherit;font-size:16px;line-height:1.65;min-height:82px}.social-composer-actions{display:flex;align-items:center;gap:10px;margin-top:9px}.social-composer-actions>span{margin-left:auto;color:#929aae;font-size:11px}.social-upload-button{cursor:pointer;color:#5d62d8;font-weight:900;font-size:12px;padding:7px 9px;border-radius:10px;background:#f3f4ff}.social-post-image-preview{position:relative;width:min(360px,100%);margin:9px 0}.social-post-image-preview img{display:block;max-width:100%;max-height:260px;border-radius:17px}.social-post-image-preview button{position:absolute;top:7px;right:7px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(16,19,31,.72);color:#fff;font-size:18px}.social-login-note{margin-bottom:12px;padding:12px 15px;border-radius:16px;background:#f2f3ff;color:#686cc0;font-size:12px}.social-feed{display:grid;gap:10px}.social-post{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;padding:17px;border:1px solid #e7eaf1;border-radius:22px;background:#fff;box-shadow:0 10px 30px rgba(55,63,89,.045)}.social-post-body{min-width:0}.social-post-meta{display:flex;align-items:center;gap:5px;color:#9098aa;font-size:11px}.social-user-button{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:none;padding:0;color:#283047;font:inherit;font-weight:900;cursor:pointer}.social-post-delete{margin-left:auto;border:0;background:none;color:#c66b7c;font-size:10px;cursor:pointer}.social-post-text{margin:8px 0 10px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.hashtag-link{border:0;background:none;padding:0;color:#4f64dc;font:inherit;font-weight:800;cursor:pointer}.social-post-image{display:block;width:auto;max-width:100%;max-height:520px;object-fit:contain;border-radius:18px;background:#f6f7fb}.social-post-body>.supporter-title{margin-top:10px}.social-post-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:12px;border-top:1px solid #edf0f5;padding-top:9px}.social-post-actions button{border:0;border-radius:12px;background:transparent;padding:8px 5px;color:#8a92a5;font-weight:900;cursor:pointer}.social-post-actions button:hover{background:#f6f7fc}.social-post-actions button.active{color:#e95084;background:#fff2f7}.social-post-actions button:nth-child(2).active{color:#28a56a;background:#edfff5}.social-post-actions button:nth-child(4).active{color:#5965dc;background:#f0f2ff}.social-comments{display:grid;gap:9px;margin-top:10px;padding-top:10px;border-top:1px dashed #e3e6ee}.social-comment{display:grid;grid-template-columns:34px 1fr;gap:9px}.social-comment .social-avatar{width:32px;height:32px}.social-comment-meta{font-size:10px;color:#9098aa}.social-comment p{margin:3px 0;white-space:pre-wrap}.social-comment-form{display:flex;gap:7px}.social-comment-form input{flex:1;border:1px solid #e0e4ee;border-radius:12px;padding:9px 11px}.social-comment-form button{padding:8px 13px}.social-rightbar{display:grid;align-content:start;gap:12px}.social-rightbar section{padding:16px;border:1px solid #e6e9f1;border-radius:20px;background:#fff}.social-rightbar h2{margin:0 0 10px;font-size:15px}.social-rightbar p{margin:0;color:#7e879a;font-size:11px;line-height:1.8}.social-trend{display:flex;width:100%;align-items:center;justify-content:space-between;border:0;border-radius:12px;background:transparent;padding:8px 7px;text-align:left;cursor:pointer}.social-trend:hover{background:#f6f7fc}.social-trend small{color:#a0a7b8}.social-avatar{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:50%;background:#fff;overflow:hidden;font-size:22px}.social-avatar.large{width:46px;height:46px}.social-avatar img{width:100%;height:100%;object-fit:cover}.social-special-panel{display:block}.social-notification{display:grid;grid-template-columns:40px 1fr;gap:10px;width:100%;margin-bottom:8px;padding:13px;border:1px solid #e7eaf2;border-radius:17px;background:#fff;text-align:left}.social-notification.unread{background:#f4f5ff;border-color:#d8dbff}.social-notification span span,.social-notification span small{display:block;color:#7d8599;font-size:11px;margin-top:3px}.social-dm-panel{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:590px;border:1px solid #e5e8f0;border-radius:22px;overflow:hidden;background:#fff}.social-dm-threads{border-right:1px solid #e8ebf2;background:#fafbfe}.social-dm-new{display:flex;gap:5px;padding:10px;border-bottom:1px solid #e8ebf2}.social-dm-new input{min-width:0;flex:1;border:1px solid #dfe3ed;border-radius:10px;padding:8px}.social-dm-new button{border:0;border-radius:10px;background:#5c61d8;color:#fff;font-weight:900}.social-dm-thread{display:grid;grid-template-columns:38px 1fr auto;gap:8px;align-items:center;width:100%;padding:10px;border:0;border-bottom:1px solid #eceef4;background:transparent;text-align:left}.social-dm-thread.active{background:#eef0ff}.social-dm-thread span strong,.social-dm-thread span small{display:block}.social-dm-thread span small{margin-top:3px;color:#8c94a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:135px}.dm-unread{display:grid;place-items:center;min-width:21px;height:21px;border-radius:999px;background:#ff5e91;color:#fff;font-size:10px}.social-dm-chat{display:grid;grid-template-rows:auto 1fr auto;min-width:0}.social-dm-chat>header{padding:14px 16px;border-bottom:1px solid #e8ebf2;font-weight:900}.social-dm-messages{min-height:0;max-height:520px;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:8px}.social-dm-message{display:flex}.social-dm-message.mine{justify-content:flex-end}.social-dm-message>div{max-width:72%;padding:9px 12px;border-radius:15px 15px 15px 4px;background:#f0f2f7}.social-dm-message.mine>div{background:#5d62d8;color:#fff;border-radius:15px 15px 4px 15px}.social-dm-message p{margin:0;white-space:pre-wrap}.social-dm-message img{display:block;max-width:100%;max-height:280px;border-radius:12px}.social-dm-message small{display:block;margin-top:4px;opacity:.65;font-size:9px}.social-dm-composer{padding:10px;border-top:1px solid #e8ebf2}.social-dm-composer form{display:flex;gap:6px}.social-dm-composer form>input{flex:1;min-width:0;border:1px solid #dfe3ed;border-radius:12px;padding:10px}.social-modal-backdrop{position:fixed;inset:0;z-index:90;background:rgba(25,29,43,.38);backdrop-filter:blur(4px)}.social-profile-modal{position:fixed;z-index:91;top:50%;left:50%;transform:translate(-50%,-50%);width:min(460px,calc(100vw - 28px));padding:22px;border-radius:24px;background:#fff;box-shadow:0 30px 90px rgba(22,29,49,.28)}.social-profile-modal>button{position:absolute;right:14px;top:12px;border:0;background:#f0f2f7;border-radius:50%;width:31px;height:31px}.social-profile-hero{display:grid;grid-template-columns:60px 1fr;gap:14px;align-items:center}.social-profile-hero h2,.social-profile-hero p{margin:0 0 4px}.social-profile-actions{display:flex;gap:8px;margin-top:18px}.social-profile-actions button{flex:1;border:1px solid #dfe3ee;border-radius:12px;padding:10px;font-weight:900}.social-profile-actions .danger{color:#c34a62;background:#fff5f7}.social-topbar .brand-mark{white-space:nowrap}
.stamp-toolbar{display:flex;align-items:center;gap:6px;margin:7px 0 9px;overflow-x:auto}.stamp-toolbar button{border:1px solid #e0e4ef;border-radius:999px;background:#fff;padding:6px 10px;color:#798296;font-size:10px;font-weight:900;white-space:nowrap}.stamp-toolbar button.active{background:#6369dc;color:#fff;border-color:#6369dc}.stamp-pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px}.stamp-pagination button{border:1px solid #e0e4ef;border-radius:10px;background:#fff;padding:5px 9px;color:#687188;font-weight:900}.stamp-pagination span{font-size:10px;color:#9299a9}
@media(max-width:1020px){.social-layout{grid-template-columns:190px minmax(0,1fr)}.social-rightbar{display:none}.social-topbar{grid-template-columns:auto minmax(0,1fr) auto}}
@media(max-width:720px){.social-topbar{grid-template-columns:1fr auto;gap:8px}.social-search{grid-column:1/-1;grid-row:2}.social-layout{display:block;padding:12px 10px 45px}.social-sidebar{position:static;display:flex;overflow-x:auto;margin-bottom:10px}.social-nav{width:auto;white-space:nowrap}.social-sidebar-note{display:none}.social-dm-panel{grid-template-columns:1fr;min-height:0}.social-dm-threads{border-right:0;border-bottom:1px solid #e8ebf2;max-height:210px;overflow:auto}.social-dm-chat{min-height:440px}.social-post{grid-template-columns:40px minmax(0,1fr);padding:13px}.social-post-actions{font-size:12px}.social-post-image{max-height:420px}.social-top-actions .social-account-label{display:none}}
.social-entry-pill{text-decoration:none;display:inline-flex;align-items:center}.chat-social-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dfe4ef;border-radius:999px;padding:8px 11px;background:#fff;color:#5b5fd3;font-size:11px;font-weight:900;text-decoration:none;white-space:nowrap}@media(max-width:620px){.chat-social-link{padding:7px 8px;font-size:10px}.home-top-actions .social-entry-pill{padding:9px 10px}}
.social-profile-posts{margin-top:18px;padding-top:14px;border-top:1px solid #eceef4}.social-profile-posts h3{margin:0 0 8px;font-size:13px}.social-profile-post-mini{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:8px 0;border-top:1px solid #f0f1f5}.social-profile-post-mini p{margin:0;font-size:11px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.social-profile-post-mini img{width:50px;height:50px;border-radius:10px;object-fit:cover}

/* v5.8 social user pages */
.social-title-pill,.social-supporter-pill{display:inline-flex;align-items:center;max-width:180px;padding:2px 7px;border-radius:999px;background:#f0f2ff;color:#5c61c9;font-size:9px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.social-title-pill.title-tier-4,.social-title-pill.title-tier-5,.social-title-pill.title-tier-6{background:linear-gradient(135deg,#fff4cd,#f1ebff);color:#7c55ae}.social-supporter-pill{background:#fff0f6;color:#d84f82}.social-supporter-pill.supporter-cool{background:#edf7ff;color:#3c78bd}.social-profile-full-link{display:block;margin-top:12px;color:#5961d8;font-size:11px;font-weight:900;text-decoration:none}.social-profile-bio{white-space:pre-wrap;color:#727b90;font-size:11px;line-height:1.6}.social-account-label{text-decoration:none;color:inherit}.social-user-page-link{text-decoration:none;color:#283047;font-weight:900}.social-user-layout{display:grid;grid-template-columns:190px minmax(0,720px) 260px;gap:18px;max-width:1210px;margin:0 auto;padding:20px 18px 70px}.social-user-side{display:grid;align-content:start;gap:5px;position:sticky;top:82px;height:max-content}.social-user-main{min-width:0}.social-user-loading{padding:40px;text-align:center;color:#8c94a7}.social-user-hero{overflow:hidden;border:1px solid #e4e8f1;border-radius:24px;background:#fff;box-shadow:0 14px 38px rgba(51,60,90,.06)}.social-user-cover{height:150px;background:radial-gradient(circle at 18% 20%,rgba(255,190,218,.75),transparent 36%),radial-gradient(circle at 82% 35%,rgba(173,205,255,.8),transparent 35%),linear-gradient(135deg,#fff2f8,#eef4ff)}.social-user-identity-row{display:flex;align-items:flex-end;justify-content:space-between;padding:0 20px;margin-top:-48px}.social-user-avatar{display:grid;place-items:center;width:102px;height:102px;border:5px solid #fff;border-radius:50%;background:#fff;box-shadow:0 8px 24px rgba(39,48,78,.15)}.social-user-avatar .social-avatar.profile-xl{width:100%;height:100%;font-size:46px}.social-user-actions{display:flex;gap:7px;margin-bottom:8px}.social-user-actions button,.social-button-link{border:1px solid #dfe3ed;border-radius:999px;background:#fff;padding:9px 13px;color:#535d73;font-weight:900;text-decoration:none}.social-user-actions .primary-button,.social-button-link.primary-button{background:#5d62d8;color:#fff;border-color:#5d62d8}.social-user-actions .danger{color:#c34a62}.social-user-copy{padding:12px 22px 21px}.social-user-copy h1{margin:0;font-size:24px}.social-user-id-row{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:3px;color:#8c94a7}.social-user-bio{margin:14px 0 9px;white-space:pre-wrap;line-height:1.7;color:#41495c}.social-user-meta{font-size:11px;color:#929aac}.social-user-counts{display:flex;gap:18px;margin-top:13px}.social-user-counts button{border:0;background:none;padding:0;color:#767f92;cursor:pointer}.social-user-counts b{color:#2b3348;font-size:14px;margin-right:4px}.social-user-bio-editor{margin-top:12px;padding:15px 17px;border:1px solid #e4e8f1;border-radius:18px;background:#fff}.social-user-bio-editor label{display:block;margin-bottom:7px;font-weight:900}.social-user-bio-editor textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #dfe4ef;border-radius:12px;padding:10px;font:inherit}.social-user-bio-editor>div{display:flex;align-items:center;justify-content:space-between;margin-top:8px;color:#929aac;font-size:10px}.social-user-tabs{display:grid;grid-template-columns:repeat(5,1fr);margin-top:12px;border:1px solid #e4e8f1;border-radius:18px;background:#fff;overflow:hidden}.social-user-tabs button{border:0;border-bottom:3px solid transparent;background:#fff;padding:13px 5px;color:#818a9e;font-weight:900;cursor:pointer}.social-user-tabs button.active{color:#5961d8;border-bottom-color:#5961d8;background:#f8f8ff}.social-user-tab-note{padding:10px 4px 8px;color:#929aac;font-size:10px}.social-user-right{position:sticky;top:82px;height:max-content}.social-connections-dialog{width:min(460px,calc(100vw - 28px));max-height:75vh;border:0;border-radius:22px;padding:0;box-shadow:0 28px 90px rgba(25,32,55,.28)}.social-connections-dialog::backdrop{background:rgba(25,29,43,.4);backdrop-filter:blur(3px)}.social-connections-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eceef4}.social-connections-dialog h2{margin:0;font-size:16px}.social-connections-dialog>header button{border:0;border-radius:50%;width:30px;height:30px;background:#f0f2f7}.social-connections-dialog>div{max-height:60vh;overflow:auto;padding:8px}.social-connection-row{display:grid;grid-template-columns:40px 1fr;gap:10px;align-items:center;padding:10px;border-radius:13px;text-decoration:none;color:#30384d}.social-connection-row:hover{background:#f7f8fc}.social-connection-row span strong,.social-connection-row span small{display:block}.social-connection-row span small{color:#9098aa;margin:2px 0 4px}.social-rightbar #user-page-side-info p+ p{margin-top:12px}.social-rightbar #user-page-side-info strong{color:#31394c}
@media(max-width:1020px){.social-user-layout{grid-template-columns:170px minmax(0,1fr)}.social-user-right{display:none}}@media(max-width:720px){.social-user-layout{display:block;padding:12px 10px 50px}.social-user-side{position:static;display:flex;overflow-x:auto;margin-bottom:10px}.social-user-side .social-nav{width:auto;white-space:nowrap}.social-user-cover{height:110px}.social-user-identity-row{padding:0 14px;margin-top:-39px}.social-user-avatar{width:82px;height:82px}.social-user-copy{padding:10px 15px 17px}.social-user-copy h1{font-size:21px}.social-user-actions{flex-wrap:wrap;justify-content:flex-end}.social-user-actions button,.social-button-link{padding:7px 10px;font-size:10px}.social-user-tabs{grid-template-columns:repeat(5,minmax(70px,1fr));overflow-x:auto}.social-user-tabs button{font-size:10px}.social-user-main .social-post{grid-template-columns:40px minmax(0,1fr)}}
.user-profile-bio{white-space:pre-wrap;color:#697287;line-height:1.65;margin:7px 0}.user-profile-sns-link{display:inline-flex;margin:10px 0;text-decoration:none}

/* v6.3: compact chat header */
.chat-header{grid-template-columns:auto minmax(0,1fr) auto}
.chat-title-wrap{min-width:0}
.chat-title-wrap h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.chat-voice-focus-link,.chat-social-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dfe4ef;border-radius:999px;padding:8px 11px;background:#fff;color:#5b5fd3;font-size:11px;font-weight:900;text-decoration:none;white-space:nowrap;cursor:pointer}
.chat-voice-focus-link{color:#5448b8;background:#f7f6ff;border-color:#ded9ff}
.chat-voice-focus-link:hover,.chat-social-link:hover{background:#f1f2ff}
.voice-focus-label-short{display:none}
.chat-account-button{margin:0;max-width:150px}
@media(max-width:760px){
  .chat-header{gap:8px}
  .chat-header-actions{gap:5px}
  .chat-voice-focus-link,.chat-social-link{padding:7px 8px;font-size:10px}
  .chat-account-button{max-width:92px;padding:7px 8px;font-size:10px}
}
@media(max-width:560px){
  .voice-focus-label-full{display:none}
  .voice-focus-label-short{display:inline}
  .chat-header-actions{gap:4px}
  .chat-account-button{max-width:72px}
}
.policy-content ul,.policy-shell .policy-history-list{color:#52617a;line-height:1.9;padding-left:1.5em;margin:8px 0}.policy-content li,.policy-history-list li{margin:4px 0}

/* ===== v7.3: responsive mobile stamp tray ===== */
.stamp-head-actions{display:flex;align-items:center;gap:8px}.stamp-tray-close{display:none;border:1px solid rgba(111,126,158,.18);background:#fff;color:#5d687c;width:30px;height:30px;border-radius:10px;font-size:20px;line-height:1;font-weight:800;cursor:pointer}.stamp-toolbar{min-width:0;max-width:100%}.stamp-grid{min-width:0;width:100%}.stamp-choice{width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}
@media(max-width:760px){
  .composer-wrap.stamp-mode>.message-form,.composer-wrap.stamp-mode>.media-actions,.composer-wrap.stamp-mode>.media-cooldown-note{display:none!important}
  .private-composer.stamp-mode>.message-form,.private-composer.stamp-mode>.media-actions{display:none!important}
  .composer-wrap.stamp-mode{padding-top:6px}
  .stamp-tray{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;width:100%;max-width:100%;min-width:0;margin-top:0;padding:9px;box-sizing:border-box;overflow:hidden}
  .stamp-tray[hidden]{display:none!important}
  .stamp-tray-head{grid-column:1/-1;margin-bottom:7px;min-width:0}
  .stamp-hint{display:none}
  .stamp-tray-close{display:grid;place-items:center}
  .stamp-toolbar{grid-column:1;display:flex;align-items:center;gap:6px;margin:0 0 8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .stamp-toolbar::-webkit-scrollbar{display:none}
  .stamp-toolbar button{flex:0 0 auto;padding:6px 9px}
  .stamp-pagination{grid-column:2;grid-row:2;align-self:center;display:flex;gap:5px;margin:0 0 8px;white-space:nowrap}
  .stamp-pagination button{width:34px;height:34px;padding:0;display:grid;place-items:center}
  .stamp-pagination span{display:none}
  .stamp-grid{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-height:none;overflow:visible}
  .stamp-choice{aspect-ratio:1;padding:4px;border-radius:12px}
}
@media(max-width:360px){.stamp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stamp-toolbar button{padding-inline:8px}.stamp-pagination button{width:32px;height:32px}}

/* Otoha Social v8.0 */
.social-v8-compose-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0}.social-v8-compose-options select,.social-v8-compose-options input,.social-v8-create input,.social-v8-create textarea,.social-v8-create select{width:100%;box-sizing:border-box;border:1px solid #cfd7ea;border-radius:10px;padding:9px;background:#fff}.social-poll-box{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:8px 0}.social-v8-panel{padding:12px}.social-v8-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px}.social-v8-tabs button{white-space:nowrap}.social-v8-create{padding:14px;border:1px solid #dbe3f4;border-radius:14px;background:#fff;margin-bottom:12px;display:grid;gap:8px}.social-v8-card{border:1px solid #dbe3f4;background:#fff;border-radius:14px;padding:14px;margin-bottom:10px;display:grid;gap:7px}.social-v8-card img,.social-v8-card video{max-width:100%;max-height:420px;border-radius:12px}.social-v8-author small{opacity:.65}.social-v8-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.social-v8-post-info{font-size:12px;opacity:.7;margin:5px 0}.social-v8-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.social-v8-media-grid img,.social-v8-media-grid video{width:100%;max-height:360px;object-fit:cover;border-radius:10px}.social-v8-poll{display:grid;gap:6px;margin:8px 0}.social-v8-poll button{text-align:left}.social-v8-reactions{display:flex;gap:5px;flex-wrap:wrap;margin:5px 0}.social-v8-reactions button.active{background:#e8efff;border-color:#8aa7ff}@media(max-width:760px){.social-v8-compose-options{grid-template-columns:1fr 1fr}.social-v8-grid{grid-template-columns:1fr}.social-poll-box{grid-template-columns:1fr}.social-v8-tabs{margin-inline:-6px}.social-sidebar{overflow-x:auto}.social-nav{white-space:nowrap}}

.social-v8-context-notes{border:1px solid #b9d0c4;background:#f2fbf6;border-radius:12px;padding:10px;margin:8px 0}.social-post-image-preview{display:flex;gap:6px;overflow-x:auto}.social-post-image-preview img,.social-post-image-preview video{max-width:180px;max-height:180px;border-radius:10px;object-fit:cover}

/* v8.4 social cleanup: keep the timeline focused and move DM / auxiliary tools to dedicated pages. */
.social-composer-clean{padding:18px 19px;border-radius:24px}.social-composer-clean .social-composer-actions{padding-top:6px;border-top:1px solid #f0f2f7}.social-secondary-button,.social-compose-detail-actions button{border:0;border-radius:10px;background:#f4f5fa;color:#697188;padding:7px 10px;font-weight:800;cursor:pointer}.social-compose-details{margin-top:10px;padding:12px;border-radius:15px;background:#f8f9fc;border:1px solid #edf0f5}.social-compose-detail-actions{display:flex;gap:7px}.social-rightbar a{color:#5961d8;font-weight:800;text-decoration:none}.social-dm-page-title{font-size:16px;font-weight:900;color:#31394d;text-align:center}.social-tools-shell{width:min(860px,calc(100% - 28px));margin:0 auto;padding:24px 0 70px}.social-tools-shell .social-v8-panel{padding:0}.social-tools-shell .social-v8-tabs{position:sticky;top:74px;z-index:10;padding:10px;background:rgba(246,248,252,.92);backdrop-filter:blur(14px)}.social-tools-shell .social-v8-tabs button{border:1px solid #e2e6f0;border-radius:999px;background:#fff;padding:9px 13px;color:#677086;font-weight:900;cursor:pointer}.social-tools-shell .social-v8-tabs button:hover{background:#f0f1ff;color:#555bd0}.social-tools-shell #social-v8-content{padding-top:8px}

.dm-page-shell{display:grid;grid-template-columns:340px minmax(0,1fr);width:min(1120px,calc(100% - 28px));height:calc(100dvh - 92px);min-height:620px;margin:18px auto 0;border:1px solid #e5e9f1;border-radius:25px;overflow:hidden;background:#fff;box-shadow:0 18px 55px rgba(45,55,87,.07)}.dm-page-sidebar{min-width:0;border-right:1px solid #e8ebf2;background:#fbfcfe;overflow:auto}.dm-page-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:20px 18px 13px}.dm-page-sidebar-head h1{margin:0;font-size:22px}.dm-page-sidebar-head a{color:#69728a;font-size:11px;font-weight:900;text-decoration:none}.dm-new-form{display:flex;gap:7px;padding:0 14px 14px}.dm-new-form input{min-width:0;flex:1;border:1px solid #dfe4ee;border-radius:13px;background:#fff;padding:10px 12px;font:inherit}.dm-new-form button{border:0;border-radius:12px;background:#5d62d8;color:#fff;padding:0 13px;font-weight:900}.dm-thread-list{border-top:1px solid #edf0f5}.dm-thread-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;border:0;border-bottom:1px solid #edf0f5;background:transparent;padding:12px 14px;text-align:left;cursor:pointer}.dm-thread-row:hover{background:#f5f6fb}.dm-thread-row.active{background:#eef0ff}.dm-thread-row .social-avatar{width:44px;height:44px}.dm-thread-row>span{min-width:0}.dm-thread-name{display:flex;align-items:baseline;gap:6px;min-width:0}.dm-thread-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#293147}.dm-thread-name small{flex:0 0 auto;color:#a0a7b7;font-size:9px}.dm-thread-last{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#858ea1;font-size:11px}.dm-page-chat{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0}.dm-chat-header{display:flex;align-items:center;gap:10px;min-height:69px;padding:10px 18px;border-bottom:1px solid #e9ecf2;background:#fff}.dm-chat-header>div{display:grid;gap:2px}.dm-chat-header a{color:#293147;font-weight:900;text-decoration:none}.dm-chat-header small{color:#949caf}.dm-page-messages{min-height:0;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:8px;background:linear-gradient(#fcfdff,#f9faff)}.dm-empty{margin:auto;text-align:center;color:#9aa2b4}.dm-empty span{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 10px;border-radius:50%;background:#f0f2ff;color:#6268d6;font-size:25px}.dm-empty p{margin:0;font-size:12px}.dm-page-composer{padding:12px 14px;border-top:1px solid #e8ebf2;background:#fff}.dm-page-composer form{display:flex;align-items:center;gap:8px}.dm-page-composer form>input{min-width:0;flex:1;border:1px solid #dfe3ed;border-radius:999px;background:#f8f9fc;padding:12px 15px;font:inherit;font-size:16px;outline:0}.dm-page-composer form>input:focus{border-color:#aeb4ec;background:#fff}.dm-attach{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#f0f2ff;color:#5c62d3;font-weight:900;cursor:pointer}.dm-page-composer .primary-button{border-radius:999px;padding:10px 17px}.dm-page-composer .social-post-image-preview{margin:0 0 8px}.social-dm-message>div{box-shadow:0 2px 8px rgba(42,51,78,.04)}

@media(max-width:760px){.social-compose-details{padding:9px}.social-v8-compose-options{grid-template-columns:1fr}.social-composer-clean{padding:14px 13px}.social-composer-actions{gap:6px}.social-composer-actions .social-secondary-button{font-size:11px}.dm-page-shell{display:block;width:100%;height:calc(100dvh - 65px);min-height:0;margin:0;border:0;border-radius:0;box-shadow:none}.social-dm-page .social-topbar{position:relative}.social-dm-page-title{display:none}.dm-page-sidebar{max-height:34%;border-right:0;border-bottom:1px solid #e8ebf2}.dm-page-sidebar-head{padding:12px 14px 8px}.dm-page-sidebar-head h1{font-size:18px}.dm-new-form{padding:0 10px 9px}.dm-thread-row{padding:9px 11px}.dm-page-chat{height:66%;min-height:0}.dm-chat-header{min-height:54px;padding:7px 12px}.dm-page-messages{padding:12px}.dm-page-composer{padding:8px 10px calc(8px + env(safe-area-inset-bottom))}.dm-page-composer .primary-button{padding:9px 13px}.social-tools-shell{width:calc(100% - 20px);padding-top:12px}.social-tools-shell .social-v8-tabs{top:0;margin:0 -4px}}
