@charset "UTF-8";

/* Phone-first: the same compact, single-column experience is used on desktop. */
:root {
  --ink: #233e35;
  --muted: #677765;
  --forest: #173c32;
  --paper: #f7f8f3;
  --line: #e0e6d9;
  font-family: "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #769c4f; outline-offset: 3px; }
input:focus, textarea:focus { outline: 2px solid #8fae70; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 25px; line-height: 1.5; letter-spacing: .02em; }
h2 { font-size: 19px; line-height: 1.5; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { color: #607957; font-size: 11px; font-weight: 700; letter-spacing: .12em; margin-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 23px; font-weight: 750; letter-spacing: -1px; white-space: nowrap; min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.brand-dot { color: #9fbd63; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 11px 16px; border: 1px solid transparent; border-radius: 11px; font-size: 15px; font-weight: 650; text-align: center; white-space: normal; }
.primary { background: var(--forest); color: white; }
.secondary { background: white; border-color: var(--line); }
.wide { width: 100%; }
.compact { min-height: 48px; padding: 10px 14px; font-size: 14px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 0; border: 0; background: transparent; color: var(--forest); font-size: 14px; font-weight: 650; text-align: left; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #566b50; font-size: 23px; }
.badge { display: inline-block; padding: 5px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.live { color: #3b6c43; background: #eaf3df; }
.paused { color: #776a5d; background: #edeae4; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 27px; padding: 0 8px; margin-left: 7px; border-radius: 8px; background: #e6edd9; color: #4e6b3d; font-size: 13px; vertical-align: middle; }
.mini-badge { display: inline-block; padding: 4px 8px; border: 1px solid #b8c9a0; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; z-index: 100; width: max-content; max-width: calc(100vw - 32px); padding: 13px 18px; border-radius: 11px; background: var(--forest); color: white; font-size: 14px; box-shadow: 0 8px 30px #173c3233; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.error-box, .success-box { padding: 13px 15px; margin: 14px 0; border: 1px solid; border-radius: 9px; font-size: 14px; }
.error-box { color: #924330; background: #fff1ec; border-color: #edccc0; }
.success-box { color: #496334; background: #edf5e3; border-color: #d6e4c3; }
[hidden] { display: none !important; }

/* One phone-width workspace, with a header instead of a desktop sidebar. */
.workspace, .participant-page, .wall-page { width: 100%; max-width: 520px; min-height: 100vh; min-height: 100dvh; margin-inline: auto; background: var(--paper); }
.sidebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; border-bottom: 1px solid var(--line); background: white; }
.nav-label, .sidebar-tip, .nav-item, .top-note { display: none; }
.account { display: flex; align-items: center; gap: 4px; min-width: 0; }
.account .avatar { display: none; }
.account-details { min-width: 0; text-align: left; }
.account strong { display: block; max-width: 95px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.account small { display: block; color: var(--muted); font-size: 11px; }
.account form { flex-shrink: 0; }
.main-content, .public-main { width: 100%; min-height: 100dvh; margin: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 57px; padding: 6px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar > a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb { color: var(--muted); margin-left: 6px; }
.page-content { width: 100%; padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.page-heading { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.page-heading > div { min-width: 0; flex: 1 1 100%; }
.page-heading .muted { margin-top: 8px; font-size: 14px; }
.page-heading > .button { width: 100%; }
.welcome-banner { padding: 20px; border: 1px solid #dce5cd; border-radius: 14px; background: #eaf0dc; }
.welcome-banner h2 { margin-top: 10px; font-size: 21px; }
.welcome-banner p { margin-top: 10px; color: #596e49; font-size: 13px; }
.welcome-banner .text-button { margin-top: 8px; }
.banner-art { display: none; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 15px; }
.section-heading h2 { font-size: 17px; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.room-card { min-width: 0; padding: 20px 20px 0; border: 1px solid var(--line); border-radius: 13px; background: white; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.room-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #eef3e4; color: #6e8755; font-size: 25px; }
.room-card h3 a { display: inline-block; padding-block: 4px; }
.room-description { margin-top: 6px; color: var(--muted); font-size: 14px; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 18px 0 13px; color: var(--muted); font-size: 12px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.card-footer > a { display: flex; align-items: center; justify-content: space-between; flex: 1; min-height: 48px; font-size: 14px; font-weight: 600; }
.empty-state { padding: 32px 16px; text-align: center; color: var(--muted); }
.empty-symbol { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 16px; background: #edf2e4; color: #738c53; font-size: 27px; }
.empty-state h3 { font-size: 17px; }
.empty-state p { margin-top: 10px; font-size: 14px; }
.empty-state .button { margin-top: 20px; width: 100%; }
.dashboard-empty, .feed-section .empty-state { border: 1px dashed #d3ddc7; border-radius: 13px; background: white; }
.page-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 20px; margin-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.page-footer > span { font-size: 13px; font-weight: 750; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; font-size: 13px; }

/* No horizontal form controls or small text inputs on phones (including iOS). */
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack label { display: block; font-size: 14px; font-weight: 600; }
.stack label > .small { margin-left: 7px; font-weight: 400; }
input, textarea { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #cfdac5; border-radius: 10px; background: white; color: var(--ink); font-size: 16px; }
input { min-height: 48px; }
input::placeholder, textarea::placeholder { color: #7d8973; font-size: 14px; }
.stack label > input, .stack label > textarea { display: block; margin-top: 8px; }
textarea { resize: vertical; min-height: 110px; }
.required { margin-left: 5px; color: #66784f; font-size: 12px; font-weight: 400; }
code { font-size: 13px; }
.create-dialog { width: calc(100% - 24px); max-width: 480px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); box-shadow: 0 20px 80px #173c3222; }
.create-dialog::backdrop { background: #142e2866; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dialog-heading h2 { font-size: 20px; }
.dialog-heading .icon-button { flex-shrink: 0; }
.create-dialog > .muted { font-size: 14px; }
.create-dialog .stack { margin-top: 24px; }

/* Compact sign-in: the form is the primary action, rather than a desktop hero. */
.login-page { min-height: 100dvh; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.login-shell { width: 100%; max-width: 520px; margin-inline: auto; }
.login-story { padding: 20px 24px; background: #e9efdb; }
.login-story .eyebrow, .sample-bubbles, .story-footer, .story-copy { display: none; }
.login-story h1 { margin-top: 16px; font-size: 23px; line-height: 1.45; }
.login-story h1 br { display: none; }
.login-form { padding: 28px 24px; background: white; }
.login-form h2 { margin: 16px 0 8px; font-size: 24px; }
.login-form > .muted { margin-bottom: 25px; font-size: 14px; }
.login-form:has(.login-password-notice) > .muted { margin-bottom: 10px; }
.login-password-notice { margin-bottom: 24px; padding: 10px 12px; border-radius: 8px; background: #fff6e6; color: #865c26; font-size: 13px; line-height: 1.8; }
.login-form .stack { gap: 22px; }
.login-note { padding-top: 22px; margin-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.login-contact { margin-top: 26px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.login-contact a { color: #078bd3; text-decoration: underline; text-underline-offset: 3px; }
.local-note { margin-top: 18px; color: var(--muted); font-size: 13px; }
.local-note summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.local-note p { margin-top: 8px; }

/* Room sharing and moderation use the same stacked phone layout. */
.header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.connection { font-size: 11px; color: #527344; white-space: nowrap; }
.connection.offline { color: #9c693d; }
.room-content .page-heading > .badge { margin-top: -3px; }
.room-intro { white-space: pre-wrap; }
.share-panel { display: flex; flex-direction: column; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.share-panel > div { min-width: 0; width: 100%; }
.share-panel h2 { margin: 4px 0 8px; font-size: 18px; }
.share-link { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.share-link input { font-size: 16px; background: #fafbf6; }
.share-actions { display: flex; flex-direction: column; gap: 10px; }
.share-actions .button { width: 100%; }
.stop-button { color: #7a6546; background: #f5f1e8; border-color: #e1d8c8; }
.participant-grid { display: flex; flex-direction: column; gap: 26px; }
.compose-panel { width: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.compose-icon { display: none; }
.compose-panel h2 { margin-bottom: 8px; font-size: 19px; }
.compose-panel .stack { margin-top: 22px; gap: 18px; }
.compose-panel textarea { min-height: 126px; }
.compose-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: -8px; color: var(--muted); font-size: 12px; }
.feed-section { width: 100%; min-width: 0; }
.participant-grid .section-heading { margin-top: 0; }
.feed-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.feed-controls > .small { font-size: 12px; }
.check-label { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); font-size: 14px; }
.check-label input { width: 24px; min-height: 24px; height: 24px; accent-color: var(--forest); }
.comments-list { display: flex; flex-direction: column; gap: 14px; min-height: 180px; }
.comment-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.comment-head { display: flex; align-items: center; gap: 9px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #edf2e1; color: #60744c; font-size: 13px; font-weight: 700; }
.comment-head > div { min-width: 0; flex: 1; }
.comment-author { display: block; font-size: 14px; }
.comment-head time { display: block; color: var(--muted); font-size: 12px; }
.comment-body { margin-top: 13px; font-size: 16px; line-height: 1.8; white-space: pre-wrap; }
.moderate-button { min-height: 44px; flex-shrink: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #5d6e50; font-size: 13px; }
.is-hidden { border-style: dashed; background: #eeefe9; }
.is-hidden .comment-body { color: #6e7766; }
.hidden-note { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; }
.feed-footnote { margin-top: 18px; text-align: center; font-size: 12px; }
.wall-page { background: #eaf0e2; }
.wall-page .comment-body { font-size: 20px; }

/* On a PC the phone layout remains centered; no separate desktop dashboard. */
@media (min-width: 600px) {
  body.workspace, body.participant-page, body.wall-page, .login-shell { border-inline: 1px solid var(--line); }
  .login-page { padding-top: 24px; padding-bottom: 24px; }
  .login-shell { border-block: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
}
@media (max-width: 359px) {
  .sidebar { padding-inline: 12px; }
  .brand { font-size: 21px; gap: 6px; }
  .account strong { max-width: 68px; }
  .page-content { padding-inline: 12px; }
  .share-panel, .compose-panel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Compact live-room UI. Original artwork and branding, familiar broadcast layout. */
:root { --ink: #263747; --muted: #6c7987; --forest: #078bd3; --paper: #f4f6f8; --line: #e4e8ed; }
.brand-dot { color: #078bd3; }
.welcome-banner, .login-story { background: #eaf6ff; border-color: #d5eafa; }
.welcome-banner p, .eyebrow { color: #527b95; }
.mini-badge { border-color: #b4d8ef; }
.room-symbol, .empty-symbol { color: #258bc8; background: #edf7ff; }
.count-pill { background: #e8f4fc; color: #217bac; }
.live { color: #087ebc; background: #e5f5ff; }
.live-page { background: white; }
.live-shell { min-height: 100dvh; padding-bottom: 16px; }
.participant-page.live-page .live-shell { padding-bottom: calc(var(--composer-height, 115px) + 16px); }
.cast-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(5px + env(safe-area-inset-top, 0px)) 14px 5px; min-height: 56px; border-bottom: 1px solid var(--line); background: white; }
.cast-header .brand { font-size: 22px; }
.cast-header .brand img { width: 28px; height: 28px; }
.cast-header .header-actions { gap: 7px; }
.connection { color: #4595b8; font-size: 10px; }
.live-label { padding: 3px 6px; border-radius: 4px; color: #85929f; background: #f0f3f6; font-size: 8px; letter-spacing: .04em; }
.stream-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #29343a; }
.stream-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #172128; }
.stream-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #f9eee2; background: radial-gradient(ellipse at 50% 25%, #756150, #302e30 75%); }
.stream-placeholder > span { font-size: clamp(44px, 15vw, 70px); line-height: 1.2; }
.stream-placeholder strong { font-size: 16px; font-weight: 500; letter-spacing: .12em; }
.stream-placeholder small { color: #e1c7a9; font-size: 10px; letter-spacing: .15em; }
.stage-status { position: absolute; top: 10px; left: 10px; padding: 3px 7px; border-radius: 4px; color: white; background: #f34a67; font-size: 10px; font-weight: 700; }
.stage-status.paused { color: white; background: #59636dcc; }
.stream-telop { position: absolute; bottom: 0; left: 0; right: 0; max-height: 50%; overflow-y: auto; padding: 9px 14px; color: white; background: #101820b8; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.stream-details { padding: 14px; border-bottom: 1px solid var(--line); }
.streamer-row { display: flex; align-items: center; gap: 10px; }
.streamer-avatar { width: 42px; height: 42px; font-size: 28px; background: #f0f7fc; }
.avatar img, #my-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.streamer-copy { flex: 1; min-width: 0; }
.streamer-copy h1 { white-space: normal; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; font-weight: 700; }
.streamer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; font-size: 12px; }
.streamer-meta strong { font-weight: 500; }
.streamer-meta a { color: #078bd3; min-height: 32px; display: inline-flex; align-items: center; margin-block: -5px; }
.settings-trigger { flex-shrink: 0; color: #6b7e8e; }
.cast-tabs { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fcfdfe; }
.cast-tabs h2 { display: flex; align-items: center; gap: 7px; padding: 13px 0 10px; border-bottom: 3px solid #078bd3; color: #078bd3; font-size: 14px; }
.cast-tabs h2 span { color: #8799a8; font-size: 12px; font-weight: 400; }
.cast-tabs > span { color: #8998a4; font-size: 10px; }
.cast-feed .comments-list { gap: 0; min-height: 180px; }
.cast-feed .comment-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 0; border-bottom: 1px solid #edf0f3; border-radius: 0; background: white; }
.cast-feed .comment-avatar { width: 35px; height: 35px; margin-top: 2px; background: #f0f7fc; font-size: 25px; }
.comment-content { flex: 1; min-width: 0; }
.cast-feed .comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.cast-feed .comment-author { color: #687e90; font-size: 12px; font-weight: 600; }
.cast-feed .comment-head time { margin-left: auto; color: #9ba7b1; font-size: 10px; }
.cast-feed .comment-body { margin-top: 3px; font-size: 15px; line-height: 1.65; }
.cast-feed .comment-card.is-hidden { background: #f3f5f7; }
.cast-feed .moderate-button { padding-inline: 6px; font-size: 11px; min-width: 44px; }
.cast-feed .empty-state { padding: 35px 15px; border: 0; }
.cast-feed .empty-state h3 { font-size: 15px; }
.cast-feed .empty-state p { color: #8a98a4; font-size: 12px; }
.cast-feed .feed-footnote { margin: 16px 14px; font-size: 11px; }
.cast-feed .error-box { margin-inline: 12px; }
.hidden-filter { margin: 6px 14px; }
.owner-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f6f9fc; }
.owner-toolbar .text-button { min-height: 38px; font-size: 12px; }
.wall-fullscreen { display: flex; margin: 10px 14px; }
.bottom-composer { position: fixed; z-index: 20; bottom: 0; left: 50%; width: 100%; max-width: 520px; padding: 7px 10px calc(9px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); border-top: 1px solid #dce3e9; background: #fff; box-shadow: 0 -3px 12px #173c3207; }
.bottom-composer.keyboard-open { padding-bottom: 7px; }
.send-identity { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; margin: 0 6px 4px; font-size: 11px; color: #8292a0; }
.send-identity > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anonymous-toggle { display: flex; align-items: center; gap: 6px; min-height: 32px; white-space: nowrap; font-size: 12px; color: #6b7c8c; }
.anonymous-toggle input { width: 20px; min-height: 20px; height: 20px; accent-color: #078bd3; }
#comment-form { display: flex; align-items: flex-end; gap: 7px; }
.profile-trigger { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 3px; border: 0; border-radius: 50%; background: transparent; }
#my-avatar { display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border: 1px solid #e2e9ef; border-radius: 50%; background: #f1f7fb; font-size: 27px; }
.comment-input-wrap { position: relative; min-width: 0; flex: 1; padding: 9px 11px; border: 1px solid #dfe6ec; border-radius: 19px; background: #f4f7f9; }
#comment-body { display: block; width: 100%; height: 26px; min-height: 26px; max-height: 144px; margin: 0; padding: 0 18px 0 0; resize: none; overflow-y: auto; border: 0; border-radius: 0; outline: 0; background: transparent; font-size: 16px; line-height: 26px; }
#comment-body:focus { outline: 0; }
.comment-input-wrap:focus-within { border-color: #078bd3; box-shadow: 0 0 0 1px #078bd3; }
#comment-body::placeholder { color: #9aa8b4; font-size: 15px; }
.remaining-count { position: absolute; bottom: 10px; right: 8px; color: #8193a1; font-size: 11px; line-height: 24px; }
.remaining-count.over-limit { color: #df364a; font-weight: 700; }
.send-triangle { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; color: #078bd3; }
.send-triangle svg { width: 26px; height: 26px; fill: currentColor; }
.send-triangle:disabled { color: #aebfcb; opacity: 1; }
.composer-status { color: #bd3c4e; font-size: 12px; margin: 3px 4px 0; }
.composer-status:empty { display: none; }
.live-page .toast { bottom: calc(var(--composer-height, 100px) + 14px); background: #253a4b; }
.profile-dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: 520px; max-height: 88dvh; margin: auto auto 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #dde5ec; border-radius: 20px 20px 0 0; color: var(--ink); background: white; }
.profile-dialog::backdrop { background: #15243180; }
.profile-dialog .stack { gap: 18px; margin-top: 16px; }
.profile-dialog .dialog-heading { margin: 0 0 10px; }
.profile-dialog .dialog-heading h2 { font-size: 19px; }
.settings-help { color: #7a8c9b; font-size: 12px; line-height: 1.7; }
.avatar-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.avatar-picker legend { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.emoji-category + .emoji-category { margin-top: 18px; }
.emoji-category h3 { margin-bottom: 9px; font-size: 12px; color: #708593; font-weight: 600; }
.emoji-preview-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.emoji-selected-preview { display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: #e8f4fd; font-size: 40px; }
.color-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.color-picker legend { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.color-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; margin-bottom: 12px; }
.color-grid label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-block: 4px; cursor: pointer; }
.color-grid input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.color-swatch { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid #c3ccd244; border-radius: 50%; }
.color-grid small { font-size: 10px; color: #738392; font-weight: 400; }
.color-grid input:checked + .color-swatch { border-color: #078bd3; box-shadow: 0 0 0 2px white inset; }
.color-grid input:checked + .color-swatch::after { content: '✓'; color: #42657c; font-size: 20px; }
.color-grid input:focus-visible + .color-swatch { outline: 2px solid #078bd3; outline-offset: 3px; }
.pastel-0 { background: #e8f4fd; }.pastel-1 { background: #fcebf1; }.pastel-2 { background: #fff0e2; }.pastel-3 { background: #e8f5ed; }
.pastel-4 { background: #f0ebfa; }.pastel-5 { background: #fff8da; }.pastel-6 { background: #eef0f3; }.pastel-7 { background: #eee7e1; }
.emoji-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.emoji-grid label { position: relative; min-width: 0; }
.emoji-grid input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.emoji-grid span { display: grid; place-items: center; min-height: 46px; border: 2px solid transparent; border-radius: 10px; background: #f5f8fa; font-size: 26px; cursor: pointer; }
.emoji-grid input:checked + span { border-color: #078bd3; background: #e9f6ff; }
.emoji-grid input:focus-visible + span { outline: 2px solid #078bd3; outline-offset: 2px; }
.profile-dialog input[type=file] { padding: 10px; font-size: 13px; min-height: 48px; }
.profile-dialog .check-label { font-size: 13px; }
.image-preview-row { display: flex; align-items: center; gap: 12px; }
.avatar-preview { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.stream-preview { display: block; width: 100%; max-height: 200px; object-fit: contain; border-radius: 10px; background: #edf1f4; }
.stream-image-row { position: relative; }
.stream-image-row:has(> img[hidden]) { display: none; }
.stream-image-trash { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #f0dce0; border-radius: 10px; background: #fffffff0; color: #b96772; box-shadow: 0 2px 8px #233e3520; }
.stream-image-trash svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inline-error { color: #c1394e; font-size: 13px; }
.inline-error:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 359px) { .cast-header { padding-inline: 10px; } .cast-header .brand { font-size: 20px; } .live-label { display: none; } .emoji-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .profile-dialog { padding-inline: 15px; } }

/* Fixed viewing area: only the comment history scrolls. */
body.live-page { height: 100dvh; min-height: 0; overflow: hidden; }
.live-shell { display: flex; flex-direction: column; height: 100dvh; min-height: 0; overflow: hidden; padding-bottom: 0; }
.participant-page.live-page .live-shell { padding-bottom: 0; }
.live-shell > .cast-header, .live-shell > .stream-details, .live-shell > .owner-toolbar, .wall-fullscreen { flex-shrink: 0; }
.live-page:not(.workspace) .cast-header { display: none; }
.live-page:not(.workspace) .stream-details { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.stream-stage { flex: 0 1 auto; min-height: 48px; max-height: 34%; }
.stream-details { padding-block: 11px; }
.stream-telop { text-align: center; }
.cast-feed { position: relative; display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; overflow: hidden; }
.cast-tabs, .hidden-filter { flex-shrink: 0; }
.comment-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; overflow-anchor: none; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cast-feed .comments-list { min-height: 0; }
.bottom-composer { position: static; flex: 0 0 auto; width: 100%; max-width: none; transform: none; }
.live-shell.keyboard-open .stream-stage { max-height: 20%; }
.new-comments { position: absolute; bottom: 16px; left: 50%; z-index: 5; min-height: 44px; padding: 10px 16px; transform: translateX(-50%); border: 1px solid #afd8f0; border-radius: 24px; box-shadow: 0 3px 12px #1a719422; background: #fff; color: #078bd3; font-size: 13px; white-space: nowrap; }
.new-comment { animation: comment-arrive .28s ease-out; }
@keyframes comment-arrive { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.sidebar .brand { font-size: 21px; }
.sidebar .brand img { width: 28px; height: 28px; }
.sidebar .account strong { max-width: 70px; }
@media (prefers-reduced-motion: reduce) { .new-comment { animation: none; } }

/* The form alone scrolls; cancel/save stay at the bottom of the settings sheet. */
.profile-dialog[open] { display: flex; flex-direction: column; height: min(88dvh, 760px); padding: 0; overflow: hidden; }
.profile-dialog > .dialog-heading { flex-shrink: 0; margin: 0; padding: 14px 20px 8px; }
.profile-dialog > .settings-help { flex-shrink: 0; padding: 0 20px 12px; }
.profile-dialog > form.stack { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 10px 20px 22px; }
.dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex-shrink: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: white; }
.dialog-actions .button { min-height: 48px; gap: 8px; }
.dialog-actions svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.anonymous-smile { display: block; width: 100%; height: 100%; }

/* A quiet composer and a compact profile sheet; icon choices open on demand. */
.bottom-composer { padding-top: 9px; }
.compact-profile[open] { height: min(74dvh, 620px); }
.profile-intro { display: flex; align-items: center; flex-direction: column; padding: 8px 0 6px; }
.profile-intro > strong { margin-top: 12px; font-size: 14px; }
.profile-intro > p { margin-top: 4px; color: #8b9aa7; font-size: 12px; }
.profile-avatar-control { position: relative; }
#edit-profile-avatar, .profile-avatar-trigger { position: relative; display: block; width: 88px; height: 88px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
#profile-avatar, .profile-avatar-preview { display: grid; place-items: center; width: 88px; height: 88px; overflow: hidden; border: 3px solid white; border-radius: 50%; box-shadow: 0 3px 18px #29597518; font-size: 52px; }
#profile-avatar img, .profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit-badge { position: absolute; bottom: 0; right: 0; display: grid; place-items: center; width: 28px; height: 28px; border: 3px solid white; border-radius: 50%; background: #078bd3; color: white; font-size: 16px; }
.avatar-menu { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 4; width: 220px; overflow: hidden; padding: 5px; border: 1px solid #e0e8ef; border-radius: 13px; box-shadow: 0 8px 26px #244f7326; background: white; transform: translateX(-50%); }
.avatar-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 8px; background: white; color: #3c5264; font-size: 14px; text-align: left; }
.avatar-menu button:hover, .avatar-menu button:focus-visible { background: #eef7ff; }
.avatar-menu button span { color: #078bd3; font-size: 22px; }
.anonymous-setting { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.anonymous-setting strong { font-size: 14px; }
.anonymous-setting p { margin-top: 4px; color: #8796a3; font-size: 11px; }
.switch-control { position: relative; display: grid !important; place-items: center; width: 52px; min-height: 44px; flex-shrink: 0; }
.switch-control input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.switch-control > span { position: relative; width: 46px; height: 27px; border-radius: 16px; background: #d8e0e7; transition: background .18s; }
.switch-control > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #20406022; transition: transform .18s; }
.switch-control input:checked + span { background: #078bd3; }
.switch-control input:checked + span::after { transform: translateX(19px); }
.switch-control input:disabled + span { opacity: .45; }
.switch-control input:focus-visible + span { outline: 3px solid #8fcbed; outline-offset: 3px; }
[data-avatar-options] { padding-top: 8px; }
[data-avatar-options] .color-picker { margin-top: 22px; }
.compact-profile #profile-image-preview { display: none; }
.icon-source-preview { display: none; }
.anonymous-name { color: #8b97a1; border-color: #e0e5e9; background: #eef1f4; }
#edit-profile-avatar:disabled { opacity: 1; cursor: default; }
#edit-profile-avatar:disabled .avatar-edit-badge { display: none; }
.icon-flow-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.icon-flow-heading h3 { font-size: 17px; }
[data-avatar-emoji-stage] .avatar-picker > legend, [data-avatar-emoji-stage] .emoji-preview-row { display: none; }
[data-avatar-color-stage] .color-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; }
[data-avatar-color-stage] .color-swatch { width: 64px; height: 64px; font-size: 38px; }
[data-avatar-color-stage] .color-grid input:checked + .color-swatch::after { content: none; }
[data-avatar-color-stage] .color-grid input:checked + .color-swatch { box-shadow: 0 0 0 3px white inset, 0 0 0 1px #078bd3; }
[data-avatar-color-stage] .button { margin-top: 20px; }
.owner-name-note { font-size: 10px; color: #8596a3; }
.initial-name-dialog[open] { height: auto; }
.initial-name-row { display: flex; align-items: center; gap: 10px; }
.initial-name-row input { flex: 1; min-width: 0; }
.initial-name-row .button { flex-shrink: 0; min-height: 48px; }
.audience-badge { position: absolute; top: 10px; right: 10px; z-index: 3; padding: 3px 9px; border-radius: 20px; color: white; background: #203746b8; font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; }
.comment-attach-button { flex-shrink: 0; width: 32px; height: 44px; padding: 0; border: 0; background: transparent; color: #078bd3; font-size: 28px; }
.comment-attachment-draft { position: relative; width: 96px; min-height: 76px; margin: 0 0 5px 51px; border-radius: 10px; background: #edf2f6; }
.viewer-composer .comment-attachment-draft { margin-left: 40px; }
.comment-attachment-draft[hidden], #comment-attachment-preview[hidden], .attachment-loading[hidden] { display: none; }
#comment-attachment-preview { display: block; width: 96px; height: 76px; border-radius: 10px; object-fit: contain; }
.attachment-loading { display: grid; place-items: center; height: 76px; color: #7890a1; font-size: 24px; }
.comment-attachment-draft > .icon-button { position: absolute; top: 2px; right: 2px; width: 30px; height: 30px; border: 1px solid #ffffff88; border-radius: 50%; background: #203443cc; color: #fff; font-size: 22px; line-height: 1; }
.comment-image-button { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; color: #078bd3; background: transparent; font-size: inherit; line-height: inherit; vertical-align: baseline; }
.comment-image-dialog[open] { height: auto; max-height: 90dvh; }
.comment-image-content { overflow: auto; padding: 0 16px 20px; }
#comment-image-display { display: block; max-width: 100%; max-height: 66dvh; margin: 0 auto 12px; object-fit: contain; }
#attachment-delete-ng > p { margin-bottom: 8px; font-size: 12px; }
.stage-image-button { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: white; }
.stage-image-button > span, .image-change-label { position: absolute; top: 9px; right: 10px; padding: 4px 8px; border-radius: 6px; background: #15212e88; color: white; font-size: 11px; }
.stage-status { z-index: 2; pointer-events: none; }
.stream-telop { z-index: 2; display: flex; align-items: center; justify-content: center; min-height: 44px; max-height: none; padding: 8px 46px; overflow: hidden; pointer-events: none; }
#stream-telop-text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#my-room-telop-text {display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
:is(#stream-telop-text,#my-room-telop-text).is-telop-marquee {overflow:visible;text-overflow:clip;text-align:left;}
.telop-marquee-track {display:inline-flex;width:max-content;max-width:none;gap:48px;animation:telop-marquee var(--telop-duration) linear infinite;will-change:transform;}
.telop-marquee-copy {flex:none;white-space:pre;}
@keyframes telop-marquee {from{transform:translateX(0)}to{transform:translateX(calc(-1 * var(--telop-distance)))}}
@media(prefers-reduced-motion:reduce){.telop-marquee-track{animation:none;transform:none;}}
.telop-pencil { position: absolute; right: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 11px; border: 0; background: transparent; color: white; pointer-events: auto; }
.telop-pencil svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.crop-dialog[open] { height: auto; }
.crop-preview { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #18242c; }
#crop-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#crop-canvas:active { cursor: grabbing; }
.crop-preview > span { position: absolute; top: 8px; right: 8px; padding: 2px 6px; border-radius: 4px; background: #17253299; color: white; font-size: 11px; pointer-events: none; }
.crop-preview::after { content: ''; position: absolute; inset: 33.333%; border: 1px solid #ffffff55; pointer-events: none; }
#crop-zoom { width: 100%; min-height: 44px; padding: 0; accent-color: #078bd3; }
.crop-dialog[data-busy="1"] canvas { pointer-events: none; }
.stage-status.ended { background: #536881e6; color: white; }
.room-card .badge.ended { background: #e9edf3; color: #66788d; }
.ended-reception { position: absolute; top: 38px; left: 10px; z-index: 2; padding: 2px 7px; border-radius: 4px; background: #1e3045aa; color: #e3edf4; font-size: 10px; pointer-events: none; }
.owner-toolbar .toggle-ended { grid-column: 1 / -1; }
.management-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 12px; margin-bottom: 20px; background: #172128; }
.management-help { margin: 12px 0 26px; }
.management-share { margin-top: 25px; }
.rollover-panel { padding: 22px 18px; margin-top: 24px; border: 1px solid #d7e5ee; border-radius: 12px; background: #edf6fc; }
.rollover-panel h2 { font-size: 17px; }
.rollover-panel p { margin: 10px 0 18px; font-size: 13px; color: #627c91; }
.archive-notice { padding: 10px 14px; color: #687b8e; background: #edf1f6; border-bottom: 1px solid #dce4ed; font-size: 12px; flex-shrink: 0; }
.archive-notice a { color: #078bd3; margin-left: 8px; }
.screen-controls { display: flex; align-items: center; gap: 9px; }
.screen-live-button { min-height: 36px; padding: 7px 10px; border: 1px solid #dbe6ee; border-radius: 7px; background: white; color: #387997; font-size: 11px; }
.screen-reception { display: flex; align-items: center; gap: 5px; min-height: 44px; font-size: 11px; white-space: nowrap; }
.screen-reception input { width: 19px; min-height: 19px; height: 19px; accent-color: #d5767f; }
.cast-feed .comment-card.streamer-comment { background: #fff9df; }
.cast-feed .comment-card.shadowed .comment-content, .cast-feed .comment-card.shadowed .comment-avatar { opacity: .38; }
.comment-card[role="button"] { cursor: pointer; }
.comment-card[role="button"]:focus-visible { outline: 2px solid #078bd3; outline-offset: -2px; }
.comment-actions-dialog[open] { height: auto; }
.comment-actions-body { overflow-y: auto; padding: 0 20px 24px; }
#action-author { font-size: 13px; font-weight: 650; }
#action-body { margin: 8px 0 15px; padding: 12px; border-radius: 10px; background: #f3f6f9; font-size: 14px; white-space: pre-wrap; }
.comment-action-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.comment-action-grid button { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #e1e7ee; border-radius: 9px; color: #45637c; background: white; font-size: 14px; }
#action-delete { color: #b96772; }
#participant-ng-actions > p { margin: 12px 0 8px; font-size: 12px; color: #8494a1; }
.ng-duration-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.ng-list-section { padding-top: 17px; border-top: 1px solid var(--line); }
.ng-list-section h3 { margin-bottom: 9px; font-size: 14px; }
.ng-list { margin-top: 10px; }
.ng-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.ng-list-row > div { min-width: 0; }
.ng-list-row strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.ng-list-row small { display: block; color: #8394a1; font-size: 10px; }
.ng-list-row .button { min-height: 40px; flex-shrink: 0; font-size: 12px; }
.profile-settings-link { margin: 12px 0 8px; }
.stream-telop { padding-inline: 12px; }
.telop-content { position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.telop-content.editable { max-width: calc(100% - 88px); }
.telop-content .telop-pencil { position: absolute; left: 100%; right: auto; top: 50%; transform: translateY(-50%); }
.reception-disabled .comment-input-wrap { border-color: #e0e4e8; background: #e9edf0; box-shadow: none; }
#comment-body:disabled { color: #8d9aa4; cursor: not-allowed; opacity: 1; }
.live-page .stream-details { padding-top: calc(11px + env(safe-area-inset-top, 0px)); }
.profile-name-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px; align-items: start; gap: 14px; }
.profile-name-row > label { min-width: 0; }
.profile-anonymous-field > label:first-child { text-align: center; }
.profile-anonymous-field .switch-control { width: 60px; min-height: 48px; margin-top: 8px; }
.profile-trigger { padding: 0; line-height: 1; }
#my-avatar { display: flex; align-items: center; justify-content: center; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 26px; line-height: 1; letter-spacing: 0; text-align: center; }
.history-loader { padding: 14px; text-align: center; }
.history-loader .feed-footnote { margin: 8px 0; }
.admin-page { padding-bottom: 32px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.admin-stats > div { padding: 14px 6px; border-radius: 12px; background: #edf6fc; text-align: center; }
.admin-stats strong, .admin-stats span { display: block; }
.admin-stats strong { font-size: 24px; color: #078bd3; }
.admin-stats span { font-size: 11px; }
.admin-section { margin: 20px 0; padding: 16px; border: 1px solid #e1e9ef; border-radius: 14px; background: white; }
.admin-section > h2 { margin-bottom: 14px; }
.admin-account { padding: 16px 0; border-bottom: 1px solid #edf1f5; }
.admin-account h3 { font-size: 16px; }
.admin-account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-account > .button { margin-top: 10px; }
.compact-admin .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 10px 0; }
.compact-admin .admin-stats > div { padding: 9px 6px; }
.compact-admin .admin-stats strong { font-size: 21px; }
.compact-admin .admin-section { margin: 12px 0; padding: 12px; }
.compact-admin .admin-section > h2 { margin-bottom: 4px; font-size: 16px; }
.compact-admin .section-heading { margin: 0 0 4px; }
.compact-admin .section-heading h2 { font-size: 16px; }
.compact-admin .admin-account { padding: 10px 0; }
.admin-account-identity { display: flex; align-items: center; gap: 9px; }
.admin-account-identity > div { min-width: 0; }
.admin-account-identity h3 { font-size: 14px; line-height: 1.4; }
.admin-account-identity .small { font-size: 11px; }
.admin-account-avatar { width: 36px; height: 36px; flex-shrink: 0; font-size: 24px; }
.compact-admin .admin-account-actions { gap: 6px; margin-top: 6px; }
.compact-admin .button.compact { min-height: 40px; padding: 6px 9px; font-size: 11px; border-radius: 8px; }
.admin-page .button.secondary { color: #31566f; background: #fff; border-color: #cddde8; }
.admin-page .button.secondary:hover { color: #174365; background: #edf6fc; }
.admin-history-card { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.admin-history-card > div { flex: 1; min-width: 0; }
.admin-history-card > .button { flex-shrink: 0; }
.admin-history-card h3 { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.admin-history-card .small, .admin-history-counts { font-size: 11px; line-height: 1.5; }
.admin-history-counts { display: flex; flex-wrap: wrap; gap: 3px 10px; color: #63778a; }
.admin-create > summary { cursor: pointer; font-size: 14px; font-weight: 600; min-height: 32px; }
.admin-password-dialog[open] { height: auto; }
.admin-password-body { padding: 0 20px 20px; }
#admin-generated-password { width: 100%; font-family: monospace; font-size: 16px; }
.compact-admin .admin-section > .admin-create { margin-top: 8px; padding-top: 9px; border-top: 1px solid #edf1f5; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.item-simulator-page > .settings-help { margin: 10px 0; }
.item-simulator-stage { position: relative; height: min(56dvh, 480px); min-height: 300px; margin: 14px 0 10px; overflow: hidden; border: 1px solid #dce6ee; border-radius: 16px; background: #fff; }
.simulation-heading { padding: 8px 12px; color: #5c6f7d; font-size: 12px; font-weight: 600; }
.simulation-image { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.simulation-picture { position: relative; overflow: hidden; }
.simulation-comments p { padding: 10px 12px; border-bottom: 1px solid #edf1f5; color: #71828f; font-size: 12px; }
.simulation-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.simulation-controls label { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.simulation-controls input { width: 18px; height: 18px; accent-color: #078bd3; }
.item-simulator-page #simulation-status { min-height: 24px; }
.room-effect.reduced-motion .room-effect-particle { top: 48%; animation: room-effect-label 1.2s ease both; transform: translateX(-50%); }
.room-effect.reduced-motion { background: none !important; }
.bottom-composer.viewer-composer { padding: 5px 7px calc(5px + env(safe-area-inset-bottom, 0px)); }
.viewer-composer.keyboard-open { padding-bottom: 4px; }
.viewer-composer #comment-form { gap: 4px; align-items: flex-end; }
.viewer-composer .profile-trigger { width: 36px; height: 40px; padding: 0; }
.viewer-composer .compact-comment-input { display: flex; align-items: flex-end; padding: 0 2px; gap: 0; border-radius: 18px; }
.viewer-composer #comment-body { flex: 1; min-width: 0; width: 0; min-height: 38px; padding: 6px 0; line-height: 26px; }
.viewer-composer .has-typed #comment-body { padding-left: 9px; }
.viewer-composer .comment-attach-button { width: 30px; height: 38px; font-size: 24px; }
.viewer-composer .comment-attach-button[hidden] { display: none; }
.viewer-composer .send-triangle { width: 32px; min-width: 32px; height: 38px; padding: 6px; }
.viewer-composer .send-triangle svg { width: 22px; height: 22px; }
.viewer-composer .remaining-count { right: 35px; bottom: 7px; padding-left: 3px; background: #f4f7f9; font-size: 10px; line-height: 22px; }
.viewer-composer #comment-body:has(+ .remaining-count:not([hidden])) { padding-right: 24px; }
.room-item-tray { display: flex; align-items: center; gap: 7px; padding-top: 5px; min-width: 0; }
.room-item-tray[hidden] { display: none; }
.tray-wallet { flex-shrink: 0; text-align: center; padding: 0 2px; font-size: 9px; line-height: 1.4; color: #8b682e; }
.tray-wallet span, .tray-wallet strong { display: block; }
.tray-wallet strong { font-size: 12px; white-space: nowrap; }
.tray-item-list { display: flex; flex: 1; min-width: 0; gap: 5px; overflow-x: auto; overscroll-behavior-x: contain; touch-action: pan-x; scrollbar-width: none; }
.tray-item-list::-webkit-scrollbar { display: none; }
.tray-item { flex-shrink: 0; display: flex; align-items: center; gap: 5px; min-height: 42px; padding: 3px 8px; border: 1px solid #f0e2c6; border-radius: 10px; background: #fffaf0; color: #745426; text-align: left; }
.tray-item-icon { font-size: 23px; line-height: 1.2; }
.tray-item strong, .tray-item small { display: block; white-space: nowrap; line-height: 1.4; }
.tray-item strong { font-size: 10px; font-weight: 600; }
.tray-item small { font-size: 10px; color: #9a762e; }
.browser-open-notice { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 2px 7px 2px 10px; min-height: 34px; color: #4f6a7d; background: #edf6fc; font-size: 10px; }
.browser-open-notice[hidden] { display: none; }
.browser-guide-trigger { flex: 1; min-height: 30px; padding: 4px 0; border: 0; background: transparent; color: #078bd3; font-size: 11px; font-weight: 600; text-align: right; }
.browser-open-notice .icon-button { width: 30px; height: 30px; font-size: 20px; color: #6f8798; }
.browser-open-dialog[open] { height: auto; max-height: calc(100dvh - 24px); }
.browser-guide-body { min-height: 0; overflow-y: auto; padding: 0 14px 14px; font-size: 12px; }
.browser-guide-body #browser-room-url { width: 100%; min-height: 34px; margin: 6px 0 0; padding: 5px 8px; font-size: 16px; }
.browser-guide-diagram { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 4px; align-items: center; }
.browser-guide-step > strong { display: flex; align-items: center; gap: 4px; margin-bottom: 7px; font-size: 11px; white-space: nowrap; }
.browser-guide-step > strong b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #078bd3; color: white; font-size: 11px; flex-shrink: 0; }
.browser-phone-example { position: relative; height: 126px; overflow: hidden; border: 1px solid #d5e1e9; border-radius: 13px; background: #f6f9fb; }
.example-x-bar { display: flex; justify-content: space-between; padding: 4px 9px; border-bottom: 1px solid #e0e8ee; background: white; color: #7c8d99; font-size: 12px; }
.example-x-bar > span { font-weight: 700; color: #223541; }
.example-page-lines { padding: 12px 10px; }
.example-page-lines i { display: block; height: 5px; margin-bottom: 6px; border-radius: 5px; background: #dfe8ee; }
.example-page-lines i:nth-child(2) { width: 75%; }
.example-bottom-bar { position: absolute; bottom: 0; width: 100%; height: 39px; padding: 4px; border-top: 1px solid #e0e8ee; background: white; }
.example-url-target { display: block; padding: 2px 0; border: 2px solid #078bd3; border-radius: 7px; color: #1674a5; text-align: center; white-space: nowrap; font-size: 10px; font-weight: 600; }
.example-tap { position: absolute; right: 15px; bottom: -3px; color: #078bd3; font-size: 22px; line-height: 1; }
.browser-diagram-arrow { margin-top: 20px; color: #078bd3; text-align: center; font-size: 20px; }
.example-menu { display: flex; flex-direction: column; justify-content: center; padding: 8px; gap: 8px; }
.example-menu-line { padding: 3px 0; color: #8798a4; text-align: center; font-size: 10px; }
.example-open-target { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 32px; border: 2px solid #078bd3; border-radius: 8px; background: #eaf6ff; color: #086d9e; font-size: 11px; font-weight: 700; white-space: nowrap; }
.example-open-target > span { font-size: 17px; }
.example-menu > small { color: #7c8d99; text-align: center; font-size: 9px; }
.browser-diagram-note { margin: 7px 0 9px; color: #8193a1; font-size: 10px; text-align: center; }
.browser-copy-flow { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 9px; border-top: 1px solid #e7edf2; font-size: 11px; line-height: 1.35; }
.browser-copy-flow .button { min-height: 36px; padding: 6px 10px; font-size: 12px; }
.browser-copy-flow > span:first-of-type { color: #078bd3; font-size: 18px; }
.browser-copy-flow small { color: #8193a1; font-size: 10px; }
.point-grant-dialog[open] { height: auto; }
.point-grant-recipient { font-size: 14px; overflow-wrap: anywhere; }
.point-grant-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; border: 0; }
.point-grant-amounts legend { margin-bottom: 9px; font-size: 12px; color: var(--muted); }
.point-grant-amounts label { position: relative; }
.point-grant-amounts input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.point-grant-amounts label span { display: grid; place-items: center; min-height: 48px; border: 1px solid #d5e2ec; border-radius: 10px; background: #f6faff; color: #397291; font-size: 15px; font-weight: 600; }
.point-grant-amounts input:checked + span { border-color: #078bd3; background: #e7f5ff; color: #078bd3; }
.point-grant-amounts input:focus-visible + span { outline: 2px solid #078bd3; outline-offset: 2px; }
.active-audience-list .audience-person { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.audience-person > span { min-width: 0; overflow-wrap: anywhere; }
.audience-person .button { flex-shrink: 0; min-height: 36px; padding: 5px 8px; font-size: 11px; color: #26729c; }
.screen-controls .point-grant-trigger { padding-inline: 7px; font-weight: 700; }
.stream-stage.image-fold-enabled { height: var(--stream-expanded-height); aspect-ratio: auto; flex: 0 0 auto; min-height: 44px; max-height: none; touch-action: pan-x pinch-zoom; transition: height .25s ease; }
.live-shell.keyboard-open .stream-stage.image-fold-enabled { max-height: none; }
.stream-stage.image-fold-enabled .stream-telop { padding-inline: 36px; pointer-events: auto; touch-action: pan-x pinch-zoom; user-select: none; }
.stream-stage.is-image-folded { height: 44px; }
.stream-stage.is-image-folded .stream-placeholder, .stream-stage.is-image-folded .stage-image-button { visibility: hidden; pointer-events: none; }
.stream-stage.is-image-folded .stage-status, .stream-stage.is-image-folded .ended-reception, .stream-stage.is-image-folded > .audience-badge { display: none; }
.stream-stage.is-image-folded .stream-telop { min-height: 44px; background: #10182066; backdrop-filter: blur(2px); }
.stream-image-toggle { position: absolute; z-index: 4; right: 5px; top: 50%; bottom: auto; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; color: white; background: #263b4980; font-size: 0; line-height: 0; }
.stream-stage .stream-telop.telop-empty { background: transparent; }
.stream-image-toggle::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; width: 13px; height: 8px; background: currentColor; clip-path: polygon(0 75%, 50% 0, 100% 75%, 85% 100%, 50% 48%, 15% 100%); }
.stream-image-toggle[aria-expanded="false"]::before { transform: translate(-50%, -50%) rotate(180deg); }
.cast-feed .system-comment { background: #fff9ec; border-left: 3px solid #e6ba63; }
.system-comment .comment-author { color: #9b722b; font-size: 11px; }
.system-comment .comment-body { color: #775727; }
.twicome-brand { display: inline-flex; width: 160px; max-width: 100%; }
.brand.twicome-brand img, .sidebar .brand.twicome-brand img { width: 160px; height: 42px; max-width: 100%; object-fit: contain; }
.viewer-composer .compact-comment-input { flex: 1; min-width: 0; }
.composer-gift-button { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 38px; padding: 6px; border: 0; background: transparent; color: #147cff; }
.composer-gift-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.live-shell.comment-image-collapsed .stream-stage.image-fold-enabled, .live-shell.comment-image-collapsed .stream-stage { height: 44px; min-height: 44px; max-height: 44px; opacity: 1; transform: none; overflow: hidden; pointer-events: none; transition: height .22s ease; }
.live-shell.comment-image-collapsed .stream-placeholder, .live-shell.comment-image-collapsed .stage-image-button { visibility: hidden; pointer-events: none; }
.live-shell.comment-image-collapsed .stream-stage .stage-status, .live-shell.comment-image-collapsed .stream-stage > .audience-badge, .live-shell.comment-image-collapsed .stream-image-toggle, .live-shell.comment-image-collapsed .telop-pencil, .live-shell.comment-image-collapsed .room-effects { display: none; }
.live-shell.comment-image-collapsed .stream-telop { min-height: 44px; background: #10182066; backdrop-filter: blur(2px); opacity: 1; }
.live-shell.comment-focused .cast-feed::after { content: ""; position: absolute; inset: 0; z-index: 12; background: #18324b10; pointer-events: none; }
.live-shell.comment-focused .stream-details { max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; opacity: 0; pointer-events: none; transition: max-height .22s ease, padding .22s ease, opacity .18s ease; }
.live-shell.comment-focused .browser-open-notice { min-height: 0; max-height: 0; padding-block: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.stream-stage.image-fold-enabled { transition: height .22s ease, opacity .18s ease, transform .22s ease; }
.cast-feed .comment-card { gap: 6px; padding: 5px 8px; }
.cast-feed .comment-avatar { width: 27px; height: 27px; margin-top: 0; font-size: 20px; flex: 0 0 27px; }
.cast-feed .comment-head { gap: 4px; line-height: 1.2; }
.cast-feed .comment-author { font-size: max(10px, calc(var(--comment-font-size, 14px) - 2px)); }
.cast-feed .comment-body { margin-top: 1px; font-size: var(--comment-font-size, 14px); line-height: 1.35; }
.cast-feed .system-comment { padding: 4px 8px; border-left-width: 2px; }
.cast-feed .system-comment .comment-head { display: none; }
.cast-feed .system-comment .comment-body { margin: 0; font-size: max(11px, calc(var(--comment-font-size, 14px) - 1px)); }
.cast-tabs { padding-inline: 8px; }
.cast-tabs h2 { padding-block: 6px 4px; }
.comment-font-settings { padding-top: 10px; border-top: 1px solid #e4ebf2; }
.comment-font-settings label { font-size: 13px; }
.comment-font-settings output { float: right; color: #147cff; font-variant-numeric: tabular-nums; }
.comment-font-settings input[type="range"] { display: block; width: 100%; height: 32px; padding: 0; border: 0; accent-color: #147cff; }
.font-size-extents { display: flex; justify-content: space-between; color: #8294a7; font-size: 11px; }
.archive-notice { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; }
.archive-notice[hidden] { display: none; }
.archive-notice a { margin: 0; font-size: 12px; }
.archive-notice > span { margin-left: auto; font-size: 10px; }
.archive-view .stage-status { display: none; }
.archive-total-audience { position: static; display: inline-flex; gap: 4px; font-size: 11px; background: #eaf5fc; color: #457999; }
.stream-brand { display: flex; flex: 0 0 84px; width: 84px; align-self: center; }
.stream-brand img { display: block; width: 84px; height: 28px; object-fit: contain; }
.service-logo { display: inline-block; max-width: 100%; height: auto; object-fit: contain; }
.empty-service-logo { display: block; width: 110px; height: 34px; margin: 0 auto 12px; }
.empty-symbol:has(.service-logo) { width: 110px; height: 40px; border-radius: 0; background: transparent; }
.profile-trigger .service-logo, #profile-avatar .service-logo, .profile-avatar-preview .service-logo { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.stream-placeholder { color: #45728c; background: #f4f8ff; }
.tray-item-icon, .room-item-icon { position: relative; }
.gift-quantity { position: absolute; right: -7px; bottom: -2px; padding: 1px 3px; border-radius: 5px; background: #e8f3ff; color: #286ead; font-size: 9px; line-height: 1.3; font-weight: 700; }
.gift-quantity[hidden] { display: none; }
.cast-feed .comment-card.system-comment { background: #eef6ff; border-left-color: #9dc8f3; }
.cast-feed .system-comment .comment-body { color: #3a6d9b; }
.cast-feed .comment-card.gift-notice-leaving { min-height: 0; overflow: hidden; box-sizing: border-box; pointer-events: none; }
.cast-feed .comment-card.thread-reply { margin-left: calc(var(--reply-depth, 1) * 12px); border-left: 2px solid #c5ddf5; }
.cast-feed .comment-card.reply-context { padding-block: 4px; background: #f3f7fb; color: #788b9d; }
.reply-context .comment-body { max-height: 2.7em; overflow: hidden; opacity: .8; }
.comment-reply-form { flex: 0 0 auto; padding: 10px 20px; border-bottom: 1px solid #e2eaf2; }
.comment-reply-form[hidden] { display: none; }
.comment-reply-row { display: flex; align-items: flex-end; gap: 6px; }
.comment-reply-row textarea { flex: 1; min-width: 0; min-height: 38px; max-height: 144px; resize: none; font-size: 16px; }
.comment-reply-row .button { flex-shrink: 0; min-height: 38px; padding: 7px 12px; }
.reply-counter-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8193a4; }
#reply-char-count.over-limit { color: #c1394e; }
.live-shell[data-mode="join"] .stream-brand, .live-shell[data-mode="archive"] .stream-brand { margin-right: auto; }
.live-shell[data-mode="join"] .streamer-copy, .live-shell[data-mode="archive"] .streamer-copy { flex: 0 1 auto; text-align: right; }
.live-shell[data-mode="join"] .streamer-meta, .live-shell[data-mode="archive"] .streamer-meta { justify-content: flex-end; }
.live-shell[data-mode="join"] .stream-brand { flex-basis: 116px; width: 116px; }
.live-shell[data-mode="join"] .stream-brand img { width: 116px; height: 36px; }
.feed-tab-list { display: flex; align-items: stretch; gap: 8px; }
.feed-tab-list > button { min-height: 36px; padding: 5px 1px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #8c9ba9; font-size: 13px; font-weight: 600; white-space: nowrap; }
.feed-tab-list > button[aria-selected="true"] { color: #147cff; border-bottom-color: #147cff; }
.feed-tab-list > button > span { font-size: 10px; font-weight: 400; }
.gift-history-row { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-bottom: 1px solid #dceafb; background: #eef6ff; }
.gift-history-icon { flex: 0 0 25px; font-size: 23px; }
.gift-history-copy { flex: 1; min-width: 0; }
.gift-history-copy p { color: #3a6d9b; font-size: var(--comment-font-size, 14px); line-height: 1.35; overflow-wrap: anywhere; }
.gift-history-copy time { display: block; margin-top: 2px; color: #8a9cac; font-size: 10px; }
.gift-history-empty { padding: 22px 12px; color: #8497a7; font-size: 13px; text-align: center; }
.gift-history-panel .feed-footnote { padding: 4px 10px; }
.gift-history-panel > .button { display: block; margin: 8px auto; }
.live-shell.comment-image-collapsed .stream-stage.image-fold-enabled .stream-telop { opacity: 1; }
.cast-feed:has(#gift-history-panel:not([hidden])) > #new-comments { display: none; }
@media (max-width: 359px) { .live-shell[data-mode="join"] .stream-brand { flex-basis: 104px; width: 104px; } .live-shell[data-mode="join"] .stream-brand img { width: 104px; height: 33px; } }
@media (prefers-reduced-motion: reduce) { .live-shell.comment-image-collapsed .stream-stage, .stream-stage.image-fold-enabled { transition: none; } }
@media (prefers-reduced-motion: reduce) { .stream-stage.image-fold-enabled { transition: none; } }
.admin-notice { padding: 12px; border-radius: 10px; background: #e8f5ed; }
.admin-screen-back { font-size: 12px; color: #078bd3; }
.admin-screen-back span { margin-left: 5px; color: #718795; }
.my-room-actions { display: grid; gap: 12px; margin-top: 18px; }
.my-room-page { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
.space-service-note {padding:12px 14px;border-radius:10px;background:#eaf3fc;color:#315b7b;font-size:13px;line-height:1.8;}
.home-hero .space-service-note {max-width:540px;margin:18px auto;}
.my-room-bottom-actions:has(.my-room-start-help) {flex-wrap:wrap;}
.my-room-start-help {flex-basis:100%;margin:0 0 2px;font-size:12px;line-height:1.6;color:var(--ink);}
.my-room-page:has(.my-room-start-help) {padding-bottom:calc(160px + env(safe-area-inset-bottom, 0px));}
html[data-theme="dark"] .space-service-note {background:#243c53;color:#d5e8fa;}
.my-room-bottom-actions { position: fixed; z-index: 15; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; width: 100%; max-width: 520px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e0e8ef; background: #ffffffed; backdrop-filter: blur(10px); }
.my-room-bottom-actions > form, .my-room-bottom-actions > .button { flex: 1; min-width: 0; }
.my-room-settings-trigger { flex: 0 0 40px; width: 40px; height: 44px; color: #638196; }
.my-room-settings-trigger svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.my-room-page #management-save-status { min-height: 20px; margin: 0; }
.my-room-page .page-heading { flex-wrap: wrap; gap: 8px; }
.archive-room-card { margin: 18px 0; padding: 18px; border: 1px solid #e1e9ef; border-radius: 14px; background: white; }
.archive-room-card .button { margin-top: 12px; }
.stream-actions { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.stream-actions .settings-trigger { margin-left: 0; }
.screen-copy-button { flex-shrink: 0; color: #078bd3; }
.screen-controls .screen-notice-button { padding-inline: 16px; font-size: 13px; font-weight: 700; color: #fff; background: #078bd3; border-color: #078bd3; box-shadow: 0 2px 5px #078bd330; }
#share-viewer-open { margin-bottom: 20px; }
.share-preview-dialog[open] { height: auto; max-height: 90dvh; }
.share-preview-content { overflow: auto; padding: 0 18px 22px; }
.share-card { overflow: hidden; border: 1px solid #dce3e8; border-radius: 16px; background: white; }
.share-card-image { display: block; width: 100%; aspect-ratio: 1.91; object-fit: cover; }
.share-card-text { padding: 12px; }
.share-card-text small { color: #74838e; font-size: 12px; }
.share-card-text h3 { margin: 3px 0 5px; font-size: 15px; }
.share-card-text p { color: #657887; font-size: 13px; }
.share-preview-content > .settings-help { margin: 14px 0; }
.share-post-label { display: grid; gap: 8px; font-size: 14px; }
#share-post-text { width: 100%; min-height: 160px; font-size: 16px; resize: vertical; }
.share-post-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
.share-post-actions > button { flex-shrink: 0; }
.live-page .stream-details { max-height: var(--stream-header-height, 160px); overflow: hidden; transition: max-height .55s ease, padding-top .55s ease, padding-bottom .55s ease, border-bottom-width .55s ease, opacity .4s ease; }
.live-page .stream-details.header-collapsed { max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; opacity: 0; pointer-events: none; }
.my-room-image { margin-top: 16px; }
.my-room-title-row { display: flex; align-items: center; gap: 10px; }
.my-room-title-row h1 { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 24px; }
.my-room-title-row input { flex: 1; min-width: 0; font-size: 22px; }
.my-room-title-row .button { flex-shrink: 0; }
.my-room-image { position: relative; }
.my-room-image .my-room-telop { bottom: 10px; left: 0; right: 0; border-radius: 0 0 12px 12px; }
.cast-comment-heading { display: flex; align-items: center; gap: 6px; min-width: 0; }
.audience-count-button { position: static; min-height: 32px; pointer-events: auto; border: 0; background: #eaf5fc; color: #078bd3; font-size: 11px; white-space: nowrap; }
.audience-dialog[open] { height: min(70dvh, 600px); }
.audience-dialog-content { overflow: auto; padding: 0 20px 20px; }
.sidebar-header { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.sidebar-header .brand { flex: 1; min-width: 0; }
.sidebar-header .brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.navigation-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-name-link { color: inherit; text-decoration: none; }
.account-name-link:hover { color: #078bd3; text-decoration: underline; }
.toast[data-position="top"] { top: calc(16px + env(safe-area-inset-top, 0px)); bottom: auto; }
.my-room-archives { margin-top: 14px; border: 1px solid #dce6ee; border-radius: 12px; background: white; }
.my-room-archives > summary { cursor: pointer; padding: 14px 16px; min-height: 48px; font-weight: 600; }
.my-room-archives > summary span { color: #8799a8; margin-left: 8px; font-size: 12px; }
.my-room-archives-body { padding: 0 16px 16px; }
.my-room-archives h2 { white-space: normal; overflow-wrap: anywhere; }
.archive-room-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.archive-room-stats dt { font-size: 11px; color: var(--muted); }
.archive-room-stats dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.composer-policy-note { margin: 0; padding: 6px 12px; font-size: 11px; color: #9b4c24; background: #fff6e9; }
.room-items-trigger { display: flex; flex-shrink: 0; flex-direction: column; align-items: center; justify-content: center; width: 40px; min-height: 42px; padding: 2px; border: 0; border-radius: 10px; background: #fff4dc; color: #875615; font-size: 21px; }
.room-items-trigger small { max-width: 48px; font-size: 9px; line-height: 1.2; white-space: nowrap; }
.room-items-trigger:disabled { opacity: .5; }
.room-items-body { flex: 1; min-height: 0; overflow: auto; padding: 0 16px 16px; }
.room-items-dialog .dialog-actions { grid-template-columns: 1fr; }
.room-wallet { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 14px; margin: 0 0 16px; border-radius: 14px; background: #fff4dc; color: #77551f; font-size: 13px; }
.room-wallet strong { font-size: 24px; }
.room-item-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.room-item-card { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 14px 4px; border: 2px solid #ecedf0; border-radius: 15px; background: white; }
.room-item-card[aria-pressed="true"] { border-color: #dc9b35; background: #fff9ee; }
.room-item-card:disabled { opacity: .45; }
.room-item-card strong { font-size: 12px; }
.room-item-card small { color: #805b24; }
.room-item-icon { font-size: 35px; line-height: 1.3; }
.room-effects { position: absolute; inset: 0 auto 0 50%; width: 100%; max-width: 520px; transform: translateX(-50%); z-index: 40; overflow: hidden; pointer-events: none; contain: layout paint; }
.stream-stage > .room-effects { z-index: 2; }
.stream-stage.is-image-folded > .room-effects { visibility: hidden; }
.stream-stage .stream-telop { transition: opacity .18s ease; }
.stream-stage:not(.is-image-folded):has(> .room-effects > .room-effect) .stream-telop { opacity: .04; }
.room-effect { position: absolute; inset: 0; overflow: hidden; }
.room-effect-label { position: absolute; bottom: 12px; left: 50%; max-width: 90%; width: max-content; transform: translateX(-50%); padding: 6px 12px; border-radius: 24px; color: #6d491a; background: #fff9e9ed; box-shadow: 0 3px 18px #78501a20; font-size: 12px; text-align: center; animation: room-effect-label var(--effect-duration) ease both; }
.room-effect-particle { position: absolute; top: 0; left: 0; display: grid; place-items: center; font-size: 36px; line-height: 1; will-change: transform; }
.room-effect.reduced-motion .room-effect-particle { left: 50%; }
.room-effect.level-1 .room-effect-particle { font-size: 54px; }
.room-effect.level-5 { background: radial-gradient(ellipse at center, #ffefb333, transparent 75%); }
.room-effect.level-6 { background: radial-gradient(ellipse at center, #ffdfa470, #ffe3f040 65%, transparent); }
.room-effect.level-6 .room-effect-label { font-size: 16px; font-weight: 700; border: 2px solid #eab755; }
.room-comment-permissions { padding-top: 14px; border-top: 1px solid #e9edf1; }
.room-comment-permissions .switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.room-comment-permissions input[type="checkbox"] { width: 20px; height: 20px; accent-color: #078bd3; }
@keyframes room-effect-label { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .room-effect-particle { top: 48%; animation: room-effect-label 1.2s ease both; transform: translateX(-50%); }
  .room-effect { background: none !important; }
}
.active-audience-list { margin: 8px 0; padding: 0; list-style: none; }
.active-audience-list li { padding: 12px 0; border-bottom: 1px solid #edf1f5; font-size: 14px; }
.my-room-image h2 { margin-bottom: 8px; font-size: 14px; }
.my-room-image-row { position: relative; margin-bottom: 10px; }
.my-room-image-edit { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid #e1e9ef; border-radius: 12px; background: #f1f8fd; }
.my-room-image-row > .stream-image-trash { left: 8px; right: auto; }
.my-room-image-edit img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.stream-stage.is-image-folded #stream-image, .live-shell.comment-image-collapsed #stream-image { visibility: visible; object-fit: cover; object-position: center; }
.stream-stage.is-image-folded .stream-telop, .live-shell.comment-image-collapsed .stream-telop { text-shadow: 0 1px 3px #000a; }
.cast-tabs { max-height: 100px; overflow: hidden; transition: max-height .22s ease, opacity .18s ease; }
.browser-open-notice { max-height: 80px; transition: max-height .22s ease, min-height .22s ease, padding .22s ease, opacity .18s ease; }
.profile-dialog.gift-picker-dialog[open] { height: auto; max-height: 80dvh; }
.gift-picker-dialog::backdrop { background: #15243140; }
.gift-picker-dialog > .dialog-heading { padding: 10px 12px 4px; }
.gift-picker-dialog .dialog-heading h2 { font-size: 16px; }
.gift-picker-body { min-height: 0; overflow-y: auto; padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.gift-picker-dialog .tray-wallet { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 8px; text-align: left; font-size: 12px; }
.gift-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gift-picker-grid .tray-item { flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 76px; padding: 7px 3px; gap: 3px; }
.gift-picker-grid .tray-item-icon { font-size: 26px; }
.gift-picker-grid .tray-item > span:last-child { display: flex; flex-direction: column; align-items: center; }
.gift-picker-grid .tray-item strong { font-size: 12px; line-height: 1.35; }
.gift-picker-grid .tray-item small:not(.gift-quantity) { font-size: 10px; line-height: 1.4; }
.gift-picker-grid .tray-item>span:last-child{max-width:100%;min-width:0}.gift-picker-grid .gift-item-description{white-space:normal;overflow-wrap:anywhere;text-align:center}.gift-item-description[hidden]{display:none}
.comment-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}.reaction-pill{display:inline-flex;align-items:center;gap:4px;min-height:24px;border:1px solid #d9e4ed;border-radius:99px;background:#f0f5f9;color:#476277;padding:1px 7px;cursor:pointer;font:inherit;font-size:13px;line-height:1.4}.reaction-count{font-size:11px;font-variant-numeric:tabular-nums}.reaction-pill.is-mine{border-color:#078bd3;background:#e0f2ff;color:#076ba4}.reaction-pill:disabled{opacity:1;cursor:default}.reaction-controls{display:flex;gap:4px;align-items:stretch;padding:4px 12px 10px;flex-shrink:0}.reaction-controls[hidden]{display:none}.reaction-quick{flex:1;min-width:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}.reaction-emoji{display:grid;place-items:center;min-width:0;min-height:36px;padding:3px 0;border:0;border-radius:7px;background:transparent;font-size:25px;line-height:1;cursor:pointer;font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif}.reaction-emoji:hover,.reaction-emoji.is-mine{background:#d9ebf8}.reaction-more{width:32px;min-width:32px;border:0;border-radius:8px;background:#eef3f7;color:#30516c;font-size:25px;cursor:pointer}.reaction-controls[aria-busy=true] button{opacity:.5;pointer-events:none}.reaction-picker[open]{height:auto;max-height:75dvh;width:min(400px,calc(100vw - 24px))}.reaction-picker>.dialog-heading{padding:10px 12px 4px}.reaction-search{display:block;padding:4px 12px 8px;margin:0;flex-shrink:0}.reaction-search input{margin:0;width:100%;min-height:38px;font-size:16px}.reaction-picker-content{overflow-y:auto;min-height:0;padding:0 10px 12px;overscroll-behavior:contain}.reaction-category h3{font-size:13px;margin:10px 2px 6px}.reaction-emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px}.reaction-pill:focus-visible,.reaction-emoji:focus-visible,.reaction-more:focus-visible{outline:2px solid #078bd3;outline-offset:1px}html[data-theme=dark] .reaction-pill{background:#24394a;color:#c5d9ea;border-color:#3d5870}html[data-theme=dark] .reaction-pill.is-mine{background:#174f76;border-color:#4db5f4;color:#e0f4ff}html[data-theme=dark] .reaction-more,html[data-theme=dark] .reaction-emoji:hover,html[data-theme=dark] .reaction-emoji.is-mine{background:#2c4760;color:#e1eaf4}
.gift-picker-body .inline-error { margin-top: 5px; }
.profile-dialog.avatar-crop-dialog[open] { height: auto; max-height: 90dvh; }
.avatar-crop-dialog .avatar-crop-preview { flex: 0 0 auto; width: min(68vw, 280px, max(120px, calc(90dvh - 280px))); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 50%; border: 2px solid #dce9f6; background: repeating-conic-gradient(#e7edf4 0% 25%, #fff 0% 50%) 0 0 / 18px 18px; }
.avatar-crop-preview canvas { display: block; width: 100%; height: 100%; border-radius: 50%; touch-action: none; cursor: grab; }
.avatar-crop-preview canvas:active { cursor: grabbing; }
.avatar-crop-dialog input[type="range"] { padding-inline: 0; border: 0; accent-color: #147cff; }
@media (prefers-reduced-motion: reduce) { .live-shell.comment-focused .stream-details, .cast-tabs, .browser-open-notice { transition: none; } }

#action-shadow small { display: block; margin-top: 3px; color: #8394a1; font-size: 11px; line-height: 1.4; }
.security-audit-record { padding: 10px 0; border-bottom: 1px solid #e2eaf2; overflow-wrap: anywhere; }
.security-audit-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 13px; }
.security-audit-heading time { color: #8193a4; font-size: 11px; }
.security-audit-record dl { margin: 6px 0 0; font-size: 11px; }
.security-audit-record dl > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 5px; }
.security-audit-record dt { color: #8193a4; }.security-audit-record dd { margin: 0; }
.guide-page { background: #f4f8ff; }
.broadcaster-guide { display: flex; flex-direction: column; max-width: 520px; min-height: 100dvh; margin: auto; padding: env(safe-area-inset-top, 0px) 20px 0; background: #fff; }
.guide-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.guide-header img { object-fit: contain; }.guide-header .text-button { font-size: 12px; color: #8193a4; }
.guide-progress { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; color: #8193a4; font-size: 12px; }
.guide-progress progress { width: 100%; height: 5px; accent-color: #147cff; }
.guide-step { flex: 1; padding: 24px 0; }.guide-step h1 { margin: 4px 0 15px; font-size: 25px; line-height: 1.4; }
.guide-illustration { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 156px; margin-bottom: 24px; padding: 18px; border-radius: 20px; background: #f0f6ff; color: #2e6cae; }
.guide-symbol { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #dfedff; font-size: 44px; line-height: 1; }
.guide-image { width: 100%; max-height: 180px; aspect-ratio: 16/9; object-fit: contain; }.guide-illustration > strong { overflow-wrap: anywhere; text-align: center; }
.guide-step-label { color: #147cff; font-size: 12px; font-weight: 700; letter-spacing: .08em; }.guide-explanation { font-size: 16px; line-height: 1.85; }
.guide-step .settings-help { margin-top: 18px; }.guide-start { padding: 8px 20px; border-radius: 9px; background: #147cff; color: white; font-size: 14px; }
.guide-telop { padding: 10px; border-radius: 8px; background: #315c8b; color: #fff; font-size: 14px; }.guide-example-comment, .guide-example-reply { align-self: stretch; padding: 8px; border-radius: 8px; background: white; font-size: 13px; }.guide-example-reply { margin-left: 20px; border-left: 2px solid #9dc8f3; }
.guide-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e2eaf2; background: #fff; }.guide-actions .button { min-height: 46px; }.guide-actions button:disabled { opacity: .4; }
.guide-resume { margin-top: 20px; font-size: 13px; text-align: center; }
.account-maintenance-page { max-width: 520px; margin: auto; padding: 20px 16px; }.account-maintenance-page h1 { margin: 20px 0 12px; font-size: 24px; }
.maintenance-warning { margin: 18px 0; padding: 14px; border: 1px solid #ecc4ca; border-radius: 12px; background: #fff5f6; color: #954752; font-size: 13px; line-height: 1.65; }.maintenance-warning p { margin-top: 8px; }
.maintenance-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }.maintenance-accept { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }.maintenance-accept input { flex: 0 0 18px; margin-top: 3px; }
.button.maintenance-danger { background: #b94859; color: #fff; border-color: #b94859; }.button.maintenance-link-danger { color: #b94859; border-color: #e3bac1; }
.impersonation-banner { position: fixed; inset: 0 0 auto; z-index: 90; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 10px; background: #e9f2ff; border-bottom: 1px solid #bfd6ef; color: #38628e; font-size: 12px; }.impersonation-banner > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.impersonation-banner form { flex-shrink: 0; }.impersonation-banner .button { min-height: 32px; padding: 5px 9px; font-size: 12px; }
body.is-impersonating { padding-top: 42px; }body.is-impersonating .live-shell { height: calc(100dvh - 42px); }body.is-impersonating .broadcaster-guide { min-height: calc(100dvh - 42px); }
.admin-account.is-broadcasting { background: #edf5ff; border-color: #c4dcf7; }.admin-account-actions button:disabled { background: #eef0f3; border-color: #e2e5e9; color: #a2aab4; opacity: 1; cursor: not-allowed; }
.guide-preview { margin-bottom: 16px; padding: 12px; border-radius: 10px; background: #f0f6ff; font-size: 13px; }.guide-preview-jump { display: flex; align-items: center; gap: 6px; margin-top: 8px; }.guide-preview-jump select { min-width: 0; flex: 1; font-size: 14px; }.guide-preview-jump .button { flex-shrink: 0; }
.home-page { background: #f5f9ff; }.home-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1000px; margin: auto; padding: 18px 20px; }.home-header img { display: block; object-fit: contain; }
.home-main { max-width: 1000px; margin: auto; padding: 0 20px; }.home-hero { padding: 44px 0 54px; text-align: center; }.home-tag { display: inline-block; padding: 6px 12px; border-radius: 20px; background: #e3efff; color: #2a70bb; font-size: 12px; }.home-hero h1 { margin: 20px 0; font-size: clamp(32px, 6vw, 56px); line-height: 1.35; color: #20538d; }.home-hero > p { line-height: 1.8; color: #617b96; }.home-browser-note { margin: 18px auto 26px; font-size: 13px; }.home-streamer-link { display: block; margin-top: 16px; font-size: 13px; }
.home-section { scroll-margin-top: 15px; padding: 30px 20px; margin-bottom: 22px; border: 1px solid #dfebf8; border-radius: 22px; background: #fff; }.home-section h2 { margin: 5px 0 16px; font-size: 25px; }.home-section > p { line-height: 1.8; }.home-kicker { color: #3c82ca; font-size: 11px; font-weight: 700; letter-spacing: .1em; }.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }.home-features article { padding: 16px; border-radius: 14px; background: #f5f9ff; }.home-features article > span { font-size: 26px; }.home-features h3 { margin: 10px 0 8px; font-size: 15px; }.home-features p { font-size: 13px; line-height: 1.7; color: #71869c; }.home-callout { border-radius: 12px; background: #eaf3ff; padding: 14px; color: #3f6f9f; font-size: 13px; line-height: 1.7; }.home-contact { margin-top: 15px; font-size: 12px; color: #71869c; }.home-footer { padding: 20px 16px 34px; text-align: center; color: #8196ac; font-size: 12px; }
.context-guide { flex: 0 0 auto; padding: 12px; margin: 8px 0 14px; border: 1px solid #c5dcf6; border-radius: 12px; background: #eef6ff; color: #426b95; font-size: 13px; line-height: 1.65; }.context-guide[hidden] { display: none; }.context-guide p { margin: 4px 0 8px; }.context-guide .button { min-height: 34px; font-size: 12px; }.room-field-label { display: block; margin-bottom: 5px; color: #6c8198; font-size: 13px; font-weight: 600; }.tutorial-simulator { max-width: 580px; margin: auto; }.tutorial-simulator h1 { margin: 20px 0 10px; font-size: 24px; }.tutorial-simulator > .guide-preview-jump { margin: 18px 0; }.tutorial-simulator > label { display: block; margin-top: 16px; margin-bottom: 6px; font-size: 13px; }.tutorial-simulator .my-room-image-edit img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; }.context-guide-complete { margin-top: 15px; color: #3c799b; font-size: 13px; }.context-guide-complete[hidden] { display: none; }.login-home-link { position: absolute; top: 12px; left: 16px; z-index: 2; font-size: 12px; }
@media (max-width: 600px) { .home-features { grid-template-columns: 1fr; }.home-hero { padding-top: 28px; }.home-section { padding: 24px 16px; }.home-main { padding: 0 14px; } }
/* Public introduction: two real stream-screen samples. */
.home-hero { padding-bottom: 24px; }
.home-hero h1 { font-size: clamp(27px, 5.8vw, 49px); }
.home-lead { font-weight: 700; }
.home-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; max-width: 820px; margin: 0 auto; }
.home-samples figure { margin: 0; min-width: 0; text-align: center; }
.home-samples h2 { margin: 0 0 8px; color: #20538d; font-size: clamp(16px, 2.2vw, 20px); }
.home-samples figcaption p { margin: 0 0 20px; color: #617b96; font-size: 13px; }
.home-samples img { display: block; width: 100%; max-width: 376px; height: auto; margin: auto; border: 1px solid #dce5ef; border-radius: 14px; box-shadow: 0 12px 32px #24486616; }
.home-sample-note { margin: 20px 0; text-align: center; color: #8196ac; font-size: 11px; }
.home-join { padding: 22px 0; text-align: center; font-size: 13px; line-height: 1.8; }
.home-join > .button { margin: 12px 0; }
@media (max-width: 600px) { .home-samples { grid-template-columns: 1fr; gap: 36px; max-width: 350px; }.home-hero > p { font-size: 13px; }.home-samples img { max-width: 330px; } }
/* Keep each first-use instruction visibly attached to the field it explains. */
.guide-field { min-width: 0; }
[data-guide-step="0"] .guide-field-title,
[data-guide-step="1"] .guide-field-image { padding: 14px; border: 2px solid #92bff0; border-radius: 14px; background: #f1f7ff; box-shadow: 0 3px 12px #3b82c410; }
.guide-field > .context-guide { padding: 0 0 12px; margin: 0 0 12px; border: 0; border-bottom: 1px solid #c5dcf6; border-radius: 0; background: transparent; }
.guide-field > .context-guide[hidden] { display: none; }
.guide-field .my-room-title-row { margin: 0; }
.my-room-telop-label { margin-top: 12px; }
@media (max-width: 600px) { [data-guide-step="0"] .guide-field-title, [data-guide-step="1"] .guide-field-image { padding: 12px; } }
.my-room-profile { display: flex; align-items: center; gap: 14px; padding: 4px 0 16px; }
.my-room-profile-button { position: relative; display: block; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.my-room-profile-button > .avatar { width: 64px; height: 64px; font-size: 34px; }
.my-room-profile-button .avatar-edit-badge { right: -2px; bottom: -2px; }
.my-room-profile > div { min-width: 0; }
.my-room-profile strong { display: block; overflow-wrap: anywhere; font-size: 16px; }
.my-room-profile p { margin: 4px 0 0; font-size: 12px; color: #71869c; line-height: 1.6; }
.my-room-profile p.my-room-profile-guide { color: #2a70bb; font-weight: 700; }
[data-guide-step="2"] .my-room-inline-profile { padding: 14px; border: 2px solid #92bff0; border-radius: 14px; background: #f1f7ff; box-shadow: 0 3px 12px #3b82c410; }
.my-room-inline-profile { margin-bottom: 18px; }
.my-room-inline-profile .my-room-profile { padding-bottom: 0; }
.my-room-inline-profile .avatar-menu {left:0;transform:none;max-width:calc(100vw - 32px);}
.my-room-inline-profile .inline-profile-save { justify-self: start; }
.my-room-inline-profile [hidden] { display: none !important; }
.browser-notice-copy { flex: 1; min-width: 0; line-height: 1.5; }
.browser-notice-copy strong { display: block; font-size: 10px; }
.browser-open-notice .browser-guide-trigger { flex: 0 0 auto; }
.browser-listening-tip { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: #edf6fc; color: #4f6a7d; font-size: 13px; line-height: 1.7; }
.image-guide-save { margin-top: 12px; }
.image-guide-save[hidden] { display: none; }
.my-room-image-row > .my-room-telop { bottom: 0; }
[data-use-default-image] { width: 100%; }
#participant-name .dialog-heading h2 { font-size: 18px; line-height: 1.5; }
.initial-name-steps { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; color: #8193a4; font-size: 12px; }
.initial-name-steps li:first-child { padding: 7px 10px; border-radius: 8px; background: #e8f4fd; color: #087abb; font-weight: 700; }
#initial-name-help { margin: 0; font-size: 13px; line-height: 1.8; color: #526c80; }
.initial-name-field { padding: 12px; border: 1px solid #c8e0f3; border-radius: 12px; background: #f5faff; }
.initial-name-field > label { display: block; margin-bottom: 8px; color: #315b7b; font-size: 13px; font-weight: 700; }
#participant-name .initial-name-row { gap: 8px; }
#participant-name .initial-name-row .button { padding-inline: 12px; font-size: 13px; }
.home-demo-link { margin: 0 auto 34px; text-align: center; }
.home-demo-link p { margin-top: 10px; color: #71869c; font-size: 12px; }
.home-hero h1 { margin: 8px auto 24px; font-size: clamp(29px, 5.8vw, 54px); font-weight: 850; letter-spacing: -.045em; line-height: 1.4; }
.home-hero h1 > span { display: block; }
.home-hero h1 .home-title-accent { color: #078bd3; }
.home-hero .home-lead { margin-bottom: 28px; font-size: clamp(14px, 2vw, 18px); letter-spacing: .035em; }
.home-hero .home-description { margin-bottom: 20px; }
.home-hero .home-anonymous-note { color: #315e88; font-weight: 600; }
.home-hero .home-browser-note { display: inline-block; padding: 12px 20px; border-radius: 16px; background: #eaf4fc; color: #3a718f; }
.home-mobile-break { display: none; }
.broadcaster-application { border-top: 1px solid #e1eaf4; padding-top: 22px; margin-top: 24px; }
.broadcaster-application > summary { cursor: pointer; list-style: none; }
.broadcaster-application > summary::-webkit-details-marker { display: none; }
.broadcaster-application > form { padding-top: 20px; }
.application-success { padding: 12px 16px; background: #e8f5ed; color: #23754d; border-radius: 12px; }
.admin-application { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e8eef5; }
.admin-application > div { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.admin-application a,.admin-application time { font-size: 12px; }
.admin-application time { color: #71869c; white-space: nowrap; }
.admin-application[data-application-row] { display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:8px 0; }
.admin-application > .admin-application-heading {display:flex;align-items:center;flex:1;flex-wrap:wrap;gap:4px 8px;min-width:180px;}
.admin-application-heading strong {font-size:13px;}
.admin-application-heading > div { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.admin-application-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.admin-application-actions .button { font-size: 12px; }
.admin-application > .admin-application-actions { display:flex;align-items:center;gap:6px;margin-top:0; }
.admin-application-actions form { display: flex; margin: 0; }
.admin-application-actions .button {min-height:30px;padding:5px 9px;white-space:nowrap;}
.admin-application .admin-application-actions [data-application-reject] { margin-top: 0; }
.admin-heading-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-feedback-summary { padding: 12px 0; border-bottom: 1px solid #e8eef5; }
.admin-feedback-summary p { margin: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.admin-feedback-summary > a { font-size: 12px; color: #078bd3; }
.admin-application-result {flex-basis:100%;margin:0;}
.admin-application [data-application-reject] { margin-top: 8px; }
.application-reject-button { color: #ac4350; border-color: #e8cbd0; }
.application-pagination > .button { width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; }
.application-pagination svg { display: block; width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.application-reply-body { padding: 18px; }
.application-reply-body > label { display: block; margin-bottom: 10px; font-size: 13px; }
#application-reply-text { width: 100%; resize: vertical; min-height: 260px; max-height: 55dvh; font-size: 14px; line-height: 1.7; }
.feedback-dialog #feedback-form { padding: 16px 20px; }
.feedback-trigger { min-height: 48px; font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px #078bd32b; }
.feedback-trigger svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feedback-dialog textarea { min-height: 130px; max-height: 35dvh; resize: vertical; }
.feedback-preview { display: flex; align-items: center; gap: 12px; }
.feedback-preview img { width: 110px; height: 100px; object-fit: contain; background: #f1f5fa; border-radius: 8px; }
.feedback-preview[hidden] { display: none; }
.feedback-report-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.client-update-notice { position: fixed; top: max(12px,env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 10000; width: min(94vw,560px); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid #9cc9ee; border-radius: 14px; background: #f0f8ff; color: #315f89; box-shadow: 0 6px 24px #1d53852b; font-size: 13px; }
.client-update-notice .text-button { font-size: 12px; }
.registration-page { min-height: 100dvh; background: #f3f8fe; }
.registration-shell { width: min(100%, 500px); margin: auto; padding: 28px 18px 40px; }
.registration-brand { display: block; width: fit-content; margin: 0 auto 28px; }
.registration-brand img { display: block; max-width: 100%; }
.registration-card { padding: 28px 24px; border: 1px solid #e0eaf5; border-radius: 22px; background: #fff; box-shadow: 0 12px 40px #20538d09; }
.registration-card h1 { margin: 6px 0 26px; font-size: clamp(21px, 5.5vw, 27px); letter-spacing: -.025em; }
.registration-kicker { margin: 0; color: #4388ba; font-size: 12px; letter-spacing: .07em; }
.registration-antispam { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.registration-footer { margin-top: 24px; text-align: center; font-size: 12px; color: #71869c; }
.login-back-link { display: inline-block; margin: 0 0 22px; font-size: 13px; }
.login-terms-link { margin: 20px 0 0; text-align: center; font-size: 12px; }
.registration-guide { margin: -8px 0 26px; color: #57728d; font-size: 13px; line-height: 1.85; }
.registration-guide > p { margin: 0 0 18px; }
.registration-guide strong { color: #315f89; }
.registration-guide ol { list-style: none; padding: 0; margin: 20px 0; counter-reset: registration-step; }
.registration-guide li { counter-increment: registration-step; position: relative; padding: 0 0 18px 36px; }
.registration-guide li::before { content: counter(registration-step); position: absolute; left: 0; top: 2px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #eaf4fc; color: #078bd3; font-weight: 700; }
.registration-guide li strong,.registration-guide li span { display: block; }
.registration-guide .registration-dm-note { border-top: 1px solid #e7eef5; padding-top: 14px; font-size: 12px; }
.stack .registration-terms-check { display: flex; flex-direction: row; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.7; }
.registration-terms-check input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; flex: 0 0 auto; }
.registration-terms-check a { text-decoration: underline; text-underline-offset: 3px; }
.service-notice { display: flex; gap: 14px; align-items: flex-start; margin: 32px 0; padding: 24px; border: 2px solid #edc478; border-radius: 18px; background: #fff8e9; color: #765321; }
.service-notice-mark { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border: 2px solid #ba873c; border-radius: 50%; font-size: 18px; font-weight: 800; }
.service-notice h2 { margin: 0 0 10px; font-size: clamp(16px, 2.5vw, 21px); line-height: 1.5; }
.service-notice p { margin: 0; font-size: clamp(15px, 2vw, 18px); line-height: 1.85; }
.service-notice .service-notice-detail { margin-top: 12px; font-size: 12px; color: #90764f; }
.home-footer p { margin: 0 0 12px; }
.terms-page { background: #f3f8fe; }
.terms-shell { max-width: 840px; margin: auto; padding: 24px 18px 40px; }
.terms-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.terms-header img { display: block; max-width: 100%; }
.terms-header > a:last-child { flex: 0 0 auto; font-size: 12px; }
.terms-card { padding: clamp(20px, 5vw, 40px); background: #fff; border: 1px solid #e0eaf5; border-radius: 22px; }
.terms-date { color: #8194a7; font-size: 12px; }
.terms-card h1 { margin: 8px 0 22px; font-size: 30px; }
.terms-card section { margin-top: 30px; }
.terms-card section h2 { font-size: 17px; color: #315f89; }
.terms-card p,.terms-card li { line-height: 1.95; font-size: 14px; }
.terms-card ul { padding-left: 20px; }
.terms-card a { overflow-wrap: anywhere; }
.terms-footer { display: flex; justify-content: center; gap: 24px; padding-top: 28px; font-size: 12px; }
@media(max-width: 420px) { .service-notice { padding: 18px 14px; gap: 10px; }.service-notice-mark { flex-basis: 24px; height: 24px; }.terms-card .service-notice { display: block; }.terms-card .service-notice-mark { width: 24px; margin-bottom: 10px; } }
@media (max-width: 420px) { .home-mobile-break { display: initial; }.home-header .button { font-size: 12px; padding-inline: 12px; } }

.admin-metrics { display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px;margin-bottom:14px; }
.admin-metrics > div { display:grid;gap:4px;padding:12px;background:#fff;border:1px solid #dce7f1;border-radius:10px; }
.admin-metrics span {font-size:12px;color:#71869c;}
.admin-metrics strong {font-size:22px;color:#2376b2;}
.home-sanpo-preview {margin:26px 0;text-align:left;min-width:0;}
.home-sanpo-preview[hidden] {display:none;}
.home-sanpo-preview h2 {margin:0 0 6px;font-size:22px;line-height:1.5;}
.home-sanpo-caption {margin:0 0 12px;font-size:14px;line-height:1.7;text-wrap:balance;}
.home-sanpo-track {display:flex;gap:12px;align-items:stretch;overflow-x:auto;padding:2px 1px 12px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;}
.home-sanpo-card {flex:0 0 184px;min-width:0;overflow:hidden;border:1px solid #dce6ef;border-radius:12px;background:#fff;color:#263d50;text-decoration:none;scroll-snap-align:start;}
.home-sanpo-card img {display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;}
.home-sanpo-room {display:block;color:inherit;text-decoration:none;}
.home-sanpo-space,.sanpo-space-link {display:block;padding:6px 10px;background:#e5f3ff;border-top:1px solid #cfe5f7;color:#116ca8;font-size:12px;font-weight:600;text-align:center;text-decoration:none;}
html[data-theme="dark"] .home-sanpo-space,html[data-theme="dark"] .sanpo-space-link {background:#23455f;border-color:#355873;color:#bce2ff;}
.home-sanpo-content {display:flex;flex-direction:column;gap:5px;padding:10px;}
.home-sanpo-name {font-size:15px;line-height:1.5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.home-sanpo-title {font-size:12px;line-height:1.6;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.home-sanpo-counts {font-size:11px;line-height:1.6;color:#5a7488;white-space:nowrap;}
.home-sanpo-more {flex:0 0 136px;min-height:176px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;scroll-snap-align:start;background:#eaf5ff;border:1px dashed #afd6f2;border-radius:12px;color:#0879b9;text-decoration:none;font-size:15px;font-weight:700;}
.home-sanpo-more>span:last-child {font-size:24px;}
.home-sanpo-more[hidden] {display:none;}
.home-sanpo-status {flex:1;min-width:140px;align-self:center;font-size:14px;line-height:1.8;}
html[data-theme="dark"] .home-sanpo-card {background:#192b3b;border-color:#35495b;color:#e1eaf3;}
html[data-theme="dark"] .home-sanpo-counts {color:#a3b8ca;}
html[data-theme="dark"] .home-sanpo-more {background:#203c54;color:#a8dcff;border-color:#3e6b8c;}
.sanpo-page {min-height:100dvh;background:#f3f7fb;color:#263d50;}
.sanpo-main {max-width:960px;margin:auto;padding:24px 16px 40px;}
.sanpo-intro {margin-bottom:22px;}
.sanpo-intro h1 {font-size:26px;margin:0 0 8px;letter-spacing:.04em;}
.sanpo-intro p {font-size:15px;line-height:1.8;margin:0;text-wrap:balance;}
.sanpo-explanation {display:block;margin:5px 0 12px;font-size:12px;font-weight:400;line-height:1.7;letter-spacing:normal;text-wrap:balance;color:#607c91;}
html[data-theme="dark"] .sanpo-explanation {color:#a5b9cd;}
.sanpo-list {display:grid;gap:14px;}
.sanpo-card {min-width:0;overflow:hidden;border:1px solid #dce6ef;border-radius:14px;background:#fff;box-shadow:0 3px 12px #2b506308;}
.sanpo-image-link {position:relative;display:block;min-width:0;background:#eaf0f6;color:#fff;text-decoration:none;}
.sanpo-image-link img {display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;}
.sanpo-card-content {position:absolute;inset:0;min-width:0;padding:14px;color:#fff;background:linear-gradient(90deg,#081626d9,#08162699 65%,#08162644);text-shadow:0 1px 3px #0008;}
.sanpo-card h2 {margin:0;font-size:18px;line-height:1.5;overflow-wrap:anywhere;}
.sanpo-card h2 {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#fff;}
.sanpo-name {font-size:14px;margin:5px 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sanpo-metrics {display:flex;flex-wrap:wrap;gap:4px 12px;color:#f0f6ff;font-size:12px;line-height:1.6;}
.sanpo-metrics>span {white-space:nowrap;}
.is-compact .sanpo-card {border-radius:10px;}
.is-compact .sanpo-image-link img {aspect-ratio:5/2;min-height:138px;}
.is-compact .sanpo-card-content {padding:12px;}
.is-compact .sanpo-card h2 {font-size:15px;line-height:1.4;}
.is-compact .sanpo-name {font-size:12px;margin:3px 0 4px;}
.is-compact .sanpo-metrics {font-size:11px;gap:2px 8px;}
.sanpo-home {font-size:14px;white-space:nowrap;}
.sanpo-more {min-height:38px;display:flex;align-items:center;justify-content:center;gap:12px;margin-top:20px;font-size:13px;}
.sanpo-empty {padding:48px 12px;text-align:center;grid-column:1/-1;line-height:1.8;}
html[data-theme="dark"] .sanpo-page {background:#101e2b;color:#e1eaf3;}
html[data-theme="dark"] .sanpo-card {background:#192b3b;border-color:#35495b;}
html[data-theme="dark"] .sanpo-metrics {color:#f0f6ff;}
@media(min-width:700px){.sanpo-list.is-spacious:has(.sanpo-card:nth-child(2)),.sanpo-list.is-compact {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:359px){.sanpo-main {padding:20px 10px;}.sanpo-intro h1 {font-size:24px;}}
.room-timer-row {position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;text-align:left;padding:2px 10px;background:#f4f9fe;line-height:18px;}
.room-timer[role=button]{cursor:pointer;touch-action:manipulation}.room-timer[role=button]:focus-visible{outline:2px solid #078bd3;outline-offset:3px;border-radius:3px}
.extension-hint {position:absolute;z-index:8;left:10px;top:calc(100% + 6px);padding:7px 11px;border-radius:10px;background:#fff3e9;color:#ac3d34;font-size:12px;font-weight:700;line-height:1.5;box-shadow:0 3px 12px #243e5330;pointer-events:none;animation:extension-hint-in .2s ease-out;}
.extension-hint::after {content:'';position:absolute;left:16px;bottom:100%;border:6px solid transparent;border-bottom-color:#fff3e9;}
.extension-hint[hidden] {display:none;}
@keyframes extension-hint-in {from {opacity:0;transform:translateY(4px);}to {opacity:1;transform:translateY(0);}}
html[data-theme="dark"] .extension-hint {background:#513332;color:#ffd8c9;}
html[data-theme="dark"] .extension-hint::after {border-bottom-color:#513332;}
.room-timer-row:has(.room-timer[hidden]):not(:has(.space-open-link:not([hidden]))):not(:has([data-space-edit])) {display:none;}
.space-open-group {display:flex;align-items:stretch;margin-left:auto;flex:none;}
.space-open-link {display:inline-flex;align-items:center;min-height:26px;padding:2px 8px;border-radius:16px;background:#147ccc;color:#fff;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap;}
.space-open-group:has(.space-url-edit) .space-open-link {border-radius:8px 0 0 8px;}
.space-url-edit {display:flex;align-items:center;justify-content:center;width:30px;min-height:26px;padding:4px;border:0;border-radius:0 8px 8px 0;background:#fff;color:#147ccc;border-left:1px solid #cde1f1;cursor:pointer;}
.room-timer-row .audience-count-button {min-height:26px;padding:2px 7px;font-size:11px;}
.space-open-group:has(.space-open-link[hidden]) .space-url-edit {border-radius:8px;border-left:0;}
.space-url-edit svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;}
.space-url-dialog[open] {height:auto;max-height:85dvh;padding:18px;overflow-y:auto;}
.space-url-dialog .space-url-settings {border-top:0;margin:0;padding-top:8px;}
.space-url-remove {margin-top:12px;}
.space-url-remove[hidden] {display:none;}
.space-url-nudge {flex:none;display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:10px 12px;margin:8px 0;border:1px solid #bbd8ed;border-radius:10px;background:#eef7ff;color:#305c7e;}
.space-url-nudge[hidden] {display:none;}
.space-url-nudge p {flex:1 1 200px;margin:0;font-size:12px;line-height:1.6;}
.space-url-nudge strong,.space-url-nudge p span {display:block;}
.space-url-nudge strong {font-size:13px;}
.space-url-nudge>div {display:flex;gap:6px;flex:none;}
html[data-theme="dark"] .space-url-nudge {background:#203a50;border-color:#40627c;color:#c0dff5;}
.space-open-link[hidden] {display:none;}
.space-url-settings {margin:14px 0;padding-top:14px;border-top:1px solid var(--line);}
.space-url-settings label {display:block;font-size:14px;font-weight:600;}
.space-url-settings input {margin-top:6px;font-size:14px;}
.space-url-actions {display:flex;justify-content:flex-end;gap:8px;margin-top:8px;}
.space-url-input-group {display:flex;align-items:stretch;min-width:0;margin-top:6px;}
.space-url-settings .space-url-input-group input {flex:1;width:0;min-width:0;margin:0;border-radius:9px 0 0 9px;font-size:16px;}
.space-url-input-group .button {flex:none;margin:0;min-height:44px;padding:8px 10px;font-size:12px;border-radius:0;white-space:nowrap;}
.space-url-input-group .button:last-child {border-radius:0 9px 9px 0;}
.space-url-input-group .button.secondary {border-left:0;border-right:0;}
.archive-sort {display:flex;align-items:center;gap:8px;margin:10px 0 14px;font-size:13px;}
.archive-sort label {flex:none;}
.archive-sort select {min-width:0;flex:1;width:0;max-width:260px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:inherit;font:inherit;min-height:40px;}
.archive-card-heading {display:flex;align-items:flex-start;gap:8px;}
.archive-card-heading h2 {flex:1;min-width:0;overflow-wrap:anywhere;}
.archive-card-heading form {flex:none;}
.archive-list-remove {width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#edf2f6;color:#64798c;font-size:23px;line-height:1;cursor:pointer;}
.archive-list-remove:disabled {opacity:.4;cursor:default;}
.archive-space-status {font-size:12px;color:#7a8894;margin:8px 0;}
.archive-space-status.has-space {color:#2875a8;}
.archive-room-card .archive-comments-link {background:#e5f3ff;color:#126ca5;border-color:#cfe7fb;}
html[data-theme="dark"] .archive-sort select {background:#203244;}
html[data-theme="dark"] .archive-list-remove {background:#2a4054;color:#b7cadb;}
html[data-theme="dark"] body .archive-room-card {background:#1c2e3f;border-color:#354b60;color:#e1eaf3;}
html[data-theme="dark"] body .archive-room-card .button.archive-comments-link {background:#234765;color:#b8e1ff;border-color:#325b7c;}
html[data-theme="dark"] .archive-space-status.has-space {color:#91c9ed;}
.space-copy-guide {margin-top:8px;font-size:14px;}
.space-copy-guide summary {cursor:pointer;color:#078bd3;}
.space-copy-guide ol {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:0;list-style:none;}
.space-copy-guide li {min-width:0;padding:12px;text-align:left;background:#eaf3fc;border-radius:10px;line-height:1.7;}
.space-copy-guide li>span {display:block;font-weight:800;margin-bottom:4px;}
.space-copy-steps h3{display:flex;align-items:flex-start;gap:7px;font-size:15px;line-height:1.6;margin:0 0 8px}.space-copy-steps h3>span{display:inline-grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;background:#078bd3;color:#fff;font-size:13px}.space-copy-steps p{margin:7px 0;overflow-wrap:anywhere}.space-copy-shot{display:block;width:100%;height:auto;border:1px solid #d8e2ec;border-radius:8px;overflow:hidden;background:#fff}.space-copy-menu-shot{width:min(100%,280px);margin-inline:auto}.space-copy-steps .space-copy-tip{font-size:12px;line-height:1.7;margin-bottom:0}.space-copy-input-example{display:flex;align-items:stretch;min-width:0;border:1px solid #adc7da;border-radius:8px;overflow:hidden;background:#fff;color:#38617e;font-size:12px}.space-copy-example-url{flex:1;min-width:0;padding:10px 5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.space-copy-input-example strong{flex:none;display:grid;place-items:center;padding:8px 7px;border-left:1px solid #adc7da;background:#edf5fc}.space-copy-input-example strong:last-child{background:#078bd3;color:#fff}
html[data-theme="dark"] .space-copy-guide li {background:#243c53;}
html[data-theme="dark"] .space-copy-guide summary {color:#8bcfff;}
.room-timer {font-size:11px;font-variant-numeric:tabular-nums;color:#3277a2;font-weight:600;}
.room-timer.ending-soon {color:#d32f46;}
.theme-setting { display:grid;gap:7px;font-size:13px; }
.theme-setting select { width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#f5f8fb;color:inherit;font:inherit; }
/* Shared theme across the app; avatars, photos and gift colors stay intact. */
html[data-theme="dark"] { --ink:#e1eaf4;--muted:#a0afc1;--paper:#111a26;--line:#2d3e51;color-scheme:dark;background:#111a26;color:var(--ink); }
html[data-theme="dark"] body :is(.live-shell,.stream-details,.cast-feed,.cast-tabs,.bottom-composer,.profile-dialog,.dialog-heading,.dialog-actions,.avatar-menu,.avatar-menu button) { background:#162231;color:#e1eaf4;border-color:#2d3e51; }
html[data-theme="dark"] body :is(.comment-card,.comment-input-wrap,.comment-reply-form,.comment-actions-body,.profile-dialog section,.ng-list-section) { border-color:#2d3e51; }
html[data-theme="dark"] body .cast-feed .comment-card { background:#162231;border-color:#2d3e51;color:#e1eaf4; }
html[data-theme="dark"] body .cast-feed .streamer-comment { background:#383321; }
html[data-theme="dark"] body .cast-feed .system-comment { background:#183550;border-left-color:#4c88b8; }
html[data-theme="dark"] body .cast-feed .system-comment .comment-body { color:#b6d8fa; }
html[data-theme="dark"] body :is(.comment-body,.comment-author,.comment-content,.profile-dialog label,.dialog-heading h2) { color:inherit; }
html[data-theme="dark"] body :is(.comment-head time,.settings-help,.muted,.small.owner-name,.emoji-category h3,.profile-intro p) { color:#a0afc1; }
html[data-theme="dark"] body :is(.comment-input-wrap,.theme-setting select,.profile-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),.profile-dialog textarea,.browser-open-notice,.archive-notice) { background:#202f40;color:#e1eaf4;border-color:#3d536c; }
html[data-theme="dark"] body :is(#comment-body,#comment-reply-body) { background:transparent;color:#e1eaf4; }
html[data-theme="dark"] body :is(input,textarea)::placeholder { color:#99adc3; }
html[data-theme="dark"] body :is(input,textarea):disabled { background:#1c2837;color:#8b9db1; }
html[data-theme="dark"] body :is(.button.secondary,.screen-live-button,.comment-action-grid button,.avatar-menu button:hover,.avatar-menu button:focus-visible) { background:#22364b;border-color:#3e5871;color:#c5e3ff; }
html[data-theme="dark"] body .screen-controls button.screen-notice-button { background:#078bd3;color:#fff;border-color:#078bd3; }
html[data-theme="dark"] body :is(.icon-button,.feed-tab-list button,.streamer-meta a,.text-button,.comment-image-button) { color:#85c6ff; }
html[data-theme="dark"] body .feed-tab-list button[aria-selected="true"] { color:#85c6ff;border-bottom-color:#85c6ff; }
html[data-theme="dark"] body .emoji-grid span { background:#25374b; }
html[data-theme="dark"] body .emoji-grid input:checked + span { background:#19476a;border-color:#68b7fb; }
html[data-theme="dark"] body .tray-item { background:#21364b;border-color:#3e5871;color:#e1eaf4; }
html[data-theme="dark"] body .tray-item small { color:#b2cbe4; }
html[data-theme="dark"] body .room-timer-row { background:#142638; }
html[data-theme="dark"] body .room-timer { color:#a7cdea; }
html[data-theme="dark"] body .room-timer.ending-soon { color:#ff8898; }
html[data-theme="dark"] body :is(.inline-error,.composer-status) { color:#ffabb7; }
html[data-theme="dark"] body .stream-brand img { filter:brightness(1.5); }
html[data-theme="dark"] body .client-update-notice { background:#20364c;border-color:#527da1;color:#d3e9ff; }
html[data-theme="dark"] body .comment-card.reply-context { background:#1c2d40; }

html[data-theme="dark"] body .audience-count-button { background:#22364b;color:#a7d4ff;border-color:#3e5871; }

html[data-theme="dark"] body { background:#111a26;color:#e1eaf4; }
html[data-theme="dark"] body :is(.sidebar,.topbar,.room-card,.share-panel,.admin-section,.admin-metrics > div,.login-story,.login-form,.home-section,.registration-card,.terms-card,.my-room-archives,.my-room-bottom-actions,.broadcaster-guide,.guide-actions,.guide-example-comment,.guide-example-reply,.create-dialog) { background:#162231;color:#e1eaf4;border-color:#2d3e51; }
html[data-theme="dark"] body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),textarea,select) { background:#202f40;color:#e1eaf4;border-color:#3d536c; }
html[data-theme="dark"] body :is(input,textarea):disabled { background:#1c2837;color:#8b9db1; }
html[data-theme="dark"] body :is(.home-hero h1,.home-samples h2,.terms-card section h2,.registration-guide strong,.my-room-profile-guide) { color:#c2def9; }
html[data-theme="dark"] body .home-hero h1 .home-title-accent { color:#72baff; }
html[data-theme="dark"] body :is(.home-hero > p,.home-samples figcaption p,.home-demo-link p,.home-sample-note,.home-footer,.registration-guide,.registration-footer,.terms-date,.admin-application time,.admin-history-counts,.my-room-profile p,.room-field-label,.security-audit-record dt,.security-audit-heading time) { color:#a5b9cd; }
html[data-theme="dark"] body :is(.home-tag,.home-hero .home-browser-note,.context-guide,.guide-illustration,.count-pill,.rollover-panel) { background:#1c334b;color:#c0def9;border-color:#3e668d; }
html[data-theme="dark"] body :is(.guide-field .context-guide) { background:transparent; }
html[data-theme="dark"] body :is(.service-notice,.login-password-notice) { background:#392f20;color:#efd5ac;border-color:#9b7847; }
html[data-theme="dark"] body .service-notice .service-notice-detail { color:#cbb68d; }
html[data-theme="dark"] body :is(.maintenance-warning,.error-box) { background:#3a2531;color:#ffc2cf;border-color:#825369; }
html[data-theme="dark"] body :is(.admin-notice,.success-box) { background:#1e3a32;color:#bce5cf;border-color:#3e705f; }
html[data-theme="dark"] body .admin-account.is-broadcasting { background:#1d344e;border-color:#456c96; }
html[data-theme="dark"] body .admin-account-actions button:disabled { background:#1c2837;color:#8394a7;border-color:#35475b; }
html[data-theme="dark"] body :is(.admin-account,.admin-application,.admin-history-card,.admin-feedback-summary,.security-audit-record,.card-actions,.registration-dm-note) { border-color:#2d3e51; }
html[data-theme="dark"] body .admin-metrics span { color:#a5b9cd; }
html[data-theme="dark"] body :is(.admin-metrics strong,.admin-application a,.admin-feedback-summary > a,.account-name-link) { color:#85c6ff; }
html[data-theme="dark"] body :is(.my-room-image-edit,.stream-preview,.simulation-comments,.empty-state) { background:#1c2d40;color:#c7d9ed;border-color:#344b63; }
html[data-theme="dark"] body :is(.home-header img,.login-story img,.sidebar .brand img,.registration-brand img,.terms-header img) { filter:brightness(1.5); }

html[data-theme="dark"] body [data-guide-step="0"] .guide-field-title, html[data-theme="dark"] body [data-guide-step="1"] .guide-field-image { background:#1c334b;border-color:#3e668d; }
html[data-theme="dark"] body .registration-guide li::before { background:#1c334b;color:#85c6ff; }

html[data-theme="dark"] body .item-simulator-stage { background:#162231;border-color:#2d3e51; }
html[data-theme="dark"] body :is(.simulation-heading,.simulation-comments p) { color:#a5b9cd;border-color:#2d3e51; }

.home-stats { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:660px;margin:0 auto 28px;padding:0; }
.home-stats > div { display:grid;align-content:center;gap:5px;padding:18px 7px;border:1px solid #dce8f5;border-radius:14px;background:#fff;text-align:center;min-width:0; }
.home-stats strong { color:#2376b2;font-size:clamp(22px,4.5vw,36px);line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.home-stats span { font-size:12px;color:#617b96; }
.home-stats-note { text-align:center;font-size:10px;color:#71869c;margin:12px auto 32px; }
html[data-theme="dark"] .home-stats > div { background:#162231;border-color:#2d3e51; }
html[data-theme="dark"] .home-stats strong { color:#85c6ff; }
html[data-theme="dark"] :is(.home-stats span,.home-stats-note) { color:#a5b9cd; }

.registration-dm-check { padding:16px;border:1px solid #e8c887;border-radius:12px;background:#fff8e9;color:#765321; }
.registration-dm-check h2 {margin:0 0 9px;font-size:15px;line-height:1.6;}
.registration-guide .registration-dm-check p {margin:0 0 12px;}
.registration-dm-check .registration-rejection-count {font-size:12px;}
.registration-rejection-count strong {font-size:22px;margin-inline:4px;font-variant-numeric:tabular-nums;}
.registration-guide .registration-dm-check .registration-stats-note {margin:0;font-size:10px;opacity:.85;}
html[data-theme="dark"] .registration-dm-check {background:#392f20;color:#efd5ac;border-color:#9b7847;}
html[data-theme="dark"] .registration-dm-check strong {color:#efd5ac;}

.comment-language-text.is-converted,.comment-language-preview.is-converted {font-style:italic;}
.comment-translation-badge {flex:0 1 auto;display:inline-flex;align-items:center;gap:4px;font-size:9px;line-height:1.3;padding:1px 3px;border-radius:3px;background:#e9f3fc;color:#6689aa;font-style:normal;}
.comment-translation-badge[hidden] {display:none;}
.comment-original-button {border:0;padding:1px 2px;background:transparent;color:inherit;font:inherit;text-decoration:underline;cursor:pointer;}
.comment-url {color:#087db8;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere;}
html[data-theme="dark"] .comment-url {color:#83cfff;}
.comment-pin {flex-shrink:0;margin:4px 8px;border:1px solid #a9d4f5;border-left:4px solid #078acd;border-radius:8px;background:#eaf6ff;color:#17496b;font-size:var(--comment-font-size,14px);overflow:hidden;}
.comment-pin summary {display:flex;align-items:center;gap:8px;padding:7px 10px;cursor:pointer;list-style:none;min-width:0;}
.comment-pin summary::-webkit-details-marker {display:none;}
.comment-pin [data-pin-summary] {flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.comment-pin summary::after {content:'⌄';flex-shrink:0;font-size:18px;line-height:1;}
.comment-pin[open] summary::after {content:'⌃';}
.comment-pin-content {border-top:1px solid #b9d9ed;padding:9px 10px;max-height:30dvh;overflow-y:auto;}
.comment-pin-body {margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere;}
.comment-pin [data-pin-clear] {margin-top:8px;}
html[data-theme="dark"] .comment-pin {background:#173b56;border-color:#376785;border-left-color:#70c6ff;color:#e1f2ff;}
html[data-theme="dark"] .comment-pin-content {border-top-color:#376785;}
#action-body,#demo-reply-context {margin:8px 0 15px;padding:12px;border-radius:10px;background:#e3edf7;color:#233e57;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;}
html[data-theme="dark"] :is(#action-body,#demo-reply-context) {background:#263c53;color:#eef6ff;}
.comment-translation {padding:10px 0;margin:8px 0 12px;border-block:1px solid var(--line);}
.comment-translation h3 {font-size:12px;margin-bottom:7px;}
.comment-language-controls {display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;}
.comment-translation .comment-translation-toggle {display:flex;align-items:center;gap:8px;font-size:13px;margin:0 0 12px;min-height:28px;cursor:pointer;}
.comment-translation .comment-translation-toggle > input {display:block;width:18px;min-height:18px;height:18px;padding:0;margin:0;flex:0 0 auto;accent-color:#078bd3;}
.screen-awake-setting {padding-top:12px;border-top:1px solid var(--line);}
.stack .screen-awake-toggle {display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.6;cursor:pointer;}
.stack .screen-awake-toggle > input {display:block;width:18px;min-height:18px;height:18px;padding:0;margin:0;flex:0 0 auto;accent-color:#078bd3;}
.screen-awake-setting .settings-help {margin:6px 0 0;font-size:11px;line-height:1.6;}
.comment-language-controls label {display:grid;gap:4px;flex:1;min-width:100px;font-size:11px;}
.comment-language-controls select {width:100%;min-height:36px;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:#f5f8fb;color:inherit;font:inherit;}
.comment-language-controls .button {min-height:36px;font-size:11px;}
.translation-disclaimer {margin-top:8px;font-size:10px;line-height:1.5;color:var(--muted);}
.comment-language-viewer[open] {height:auto;}
#comment-language-preview {font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;}
html[data-theme="dark"] .comment-translation-badge {background:#243c53;color:#aac8e6;}

.feedback-report-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;}
.feedback-report-heading form {margin:0;font-size:12px;}
.feedback-report-heading label {display:flex;align-items:center;gap:6px;}
.home-page .home-hero > p {font-size:16px;line-height:1.9;}
.home-page .home-hero .home-lead {font-size:18px;}
.home-copy-part {display:inline-block;max-width:100%;vertical-align:top;}
.home-page :is(.home-hero > p,.home-demo-link p,.home-join p,.home-samples figcaption,.home-sample-note,.home-footer p) {text-wrap:balance;line-break:strict;}
.home-page .home-hero .space-service-note {text-align:center;line-height:1.9;font-size:clamp(14px,4vw,16px);}
.home-service-line {display:block;white-space:nowrap;}
.home-page .home-hero strong {font-weight:800;color:#1d659d;}
.home-service-line strong {font-size:1.04em;}
.home-page .home-browser-note strong {font-size:1.08em;}
html[data-theme="dark"] .home-page .home-hero strong {color:#a8d9ff;}
.home-page .home-lead .home-copy-part {line-height:1.7;}
.home-page .home-stats span {font-size:clamp(12px,3.3vw,14px);white-space:nowrap;}
.home-service-audio {display:block;margin-top:4px;}
.home-page :is(.home-demo-link p,.home-join,.home-samples figcaption p,.service-notice p) {font-size:16px;line-height:1.8;}
.home-page :is(.home-sample-note,.home-footer,.home-stats span) {font-size:14px;line-height:1.7;}
.home-page .home-samples {display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(84vw,360px);justify-content:start;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;max-width:820px;padding:4px 4px 24px;margin:0 auto;}
.home-page .home-samples figure {scroll-snap-align:center;}
.home-page .home-samples figcaption {min-height:96px;}
.home-page .home-samples img {max-width:100%;}
.home-thanks {margin:28px 0;padding:20px 16px;border:1px solid var(--line);border-radius:16px;}
.home-thanks h2 {margin:0 0 16px;font-size:22px;}
.home-thanks article {display:flex;align-items:center;gap:12px;margin-top:16px;}
.home-thanks img {width:48px;height:48px;object-fit:cover;border-radius:50%;flex:0 0 auto;}
.home-thanks p {margin:0;font-size:16px;line-height:1.8;overflow-wrap:anywhere;}
.home-thanks a {color:var(--blue,#078bd3);}
.home-operation-notice {margin:28px 0;padding:20px 16px;border:1px solid #c6ddef;border-radius:16px;background:#eaf3fc;}
.home-operation-notice h2 {margin:0 0 14px;font-size:18px;line-height:1.6;}
.home-operation-notice p {margin:10px 0 0;font-size:16px;line-height:1.9;overflow-wrap:anywhere;}
.home-operation-notice strong {font-weight:800;}
html[data-theme="dark"] .home-operation-notice {background:#1c334b;border-color:#3e668d;}
.home-updates {margin:28px 0;padding:20px 16px;border:1px solid var(--line);border-radius:16px;}
.home-updates h2 {margin:0 0 14px;font-size:22px;}
.home-updates-preview {margin:0;font-size:15px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.home-updates time {font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;}
.home-updates-more summary {padding-top:12px;color:#078bd3;font-weight:700;cursor:pointer;font-size:14px;}
.home-updates .updates-show-less,.home-updates-more[open] .updates-show-more {display:none;}
.home-updates-more[open] .updates-show-less {display:inline;}
.home-updates:has(.home-updates-more[open]) .home-updates-preview {display:none;}
.home-updates-entries article {padding-top:16px;}
.home-updates-entries article+article {margin-top:20px;border-top:1px solid var(--line);}
.home-updates-entries h3 {display:grid;gap:6px;margin:0 0 12px;font-size:16px;line-height:1.7;}
.home-updates-entries p {font-size:16px;line-height:1.9;margin:10px 0;overflow-wrap:anywhere;}
html[data-theme="dark"] .home-updates-more summary {color:#8bcfff;}
.five-second-badge {display:inline-block;border-radius:4px;padding:1px 4px;font-size:10px;line-height:1.3;color:#79521a;background:#fff0cc;white-space:nowrap;font-style:normal;}
html[data-theme="dark"] .five-second-badge {background:#574325;color:#ffe3ae;}
.toast[data-position="composer"] {font-size:13px;padding:9px 12px;}
@media(max-width:420px){.home-header img {width:118px;height:auto;}.home-header .button {font-size:13px;padding-inline:10px;}}
.feedback-report-heading input {width:18px;height:18px;min-height:18px;accent-color:#2f9360;}
.feedback-state {font-size:11px;border-radius:6px;padding:4px 8px;background:#edf2f7;color:#60768b;}
.feedback-report.is-completed {background:#f0faf4;border-left:4px solid #46a46d;}
.feedback-report.is-completed .feedback-state {background:#d9f0e2;color:#25764a;}
html[data-theme="dark"] body .feedback-report.is-completed {background:#183329;border-left-color:#4eaa76;}
html[data-theme="dark"] .feedback-state {background:#23364a;color:#b4c7da;}
html[data-theme="dark"] .feedback-report.is-completed .feedback-state {background:#24513a;color:#bce5ce;}

.audience-count-button:disabled {opacity:1;cursor:default;}
.auto-coin-setting {display:flex;align-items:flex-start;gap:8px;font-size:14px;}
.auto-coin-setting input {flex:none;width:17px;height:17px;margin:3px 0 0;}
.auto-coin-setting small {display:block;margin-top:4px;color:#71869c;font-size:11px;line-height:1.7;}
html[data-theme="dark"] .auto-coin-setting small {color:#a5b9cd;}
.admin-view-switch {flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 12px;background:#eef5fb;border-bottom:1px solid #d4e3ef;font-size:12px;line-height:1.6;color:#4c6980;}
.admin-view-switch a {padding:3px 9px;border:1px solid #a9d0ea;border-radius:14px;background:#fff;color:#1175b0;text-decoration:none;white-space:nowrap;}
html[data-theme="dark"] .admin-view-switch {background:#182c3e;border-color:#354b60;color:#b7cbdc;}
html[data-theme="dark"] .admin-view-switch a {background:#23455f;border-color:#457191;color:#c3e7ff;}
.application-search {display:flex;gap:8px;margin:12px 0;}
.application-search input {flex:1;min-width:0;font-size:16px;}
.application-search button {flex:none;}
.application-search-status {margin:4px 0 10px;}
[data-application-results][aria-busy="true"] {opacity:.6;}
.admin-application[data-application-created="1"] {position:relative;padding-right:36px;}
.application-dismiss {position:absolute;top:5px;right:5px;width:26px;height:26px;border:0;border-radius:50%;background:#eaf2f8;color:#506a80;font-size:21px;line-height:1;cursor:pointer;}
.application-dismiss[hidden] {display:none;}
html[data-theme="dark"] .application-dismiss {background:#294156;color:#c1d8ea;}

.operator-reply{margin-top:16px;border-top:1px solid var(--border,#cbd5e1);padding-top:12px}.operator-message{padding:12px;border:1px solid var(--border,#cbd5e1);border-radius:10px;margin-top:8px}.operator-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.operator-message small{opacity:.75}

.room-effect-particle.room-effect-avatar{border-radius:50%;overflow:hidden;box-shadow:0 1px 4px #0003}.room-effect-avatar img{width:100%;height:100%;object-fit:cover;display:block}


.room-effect-particle.room-effect-letter{font-weight:900;color:#145b9d;text-shadow:-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,1px 1px 0 #fff,0 2px 5px #fff;z-index:2}#gift-message-dialog form{padding-bottom:0}#gift-message-dialog .dialog-actions{position:sticky;bottom:0}


.room-effect.reduced-motion.has-message .room-effect-label{animation:none;opacity:1}.gift-history-message{white-space:pre-wrap;overflow-wrap:anywhere}


.room-game-open{white-space:nowrap;padding:3px 8px;min-height:28px}.room-game-open.is-active{background:#078bd3;color:#fff}.room-game-status{padding:4px 9px;background:#e8f4fd;color:#185a87;font-size:12px;flex-shrink:0;overflow-wrap:anywhere}.room-game-status[hidden]{display:none}.game-result{font-size:11px;font-weight:700;white-space:nowrap;border-radius:4px;padding:1px 4px;background:#eef0f3;color:#66757f}.game-result-close{background:#fff3d6;color:#955c05}.game-result-correct{background:#dcf6e5;color:#18713b}.room-game-switch{display:flex;align-items:center;gap:8px}.room-game-switch input{width:18px;height:18px}html[data-theme="dark"] .room-game-status{background:#183550;color:#c1e4ff}html[data-theme="dark"] .game-result{background:#263748;color:#c3d0da}html[data-theme="dark"] .game-result-close{background:#4b3a19;color:#ffdc8a}html[data-theme="dark"] .game-result-correct{background:#164b32;color:#b3f2cd}


.room-game-toggle{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px;cursor:pointer}.room-game-toggle span{display:flex;flex-direction:column;line-height:1.15}.room-game-toggle small{font-size:10px;opacity:.75}.room-game-toggle input{appearance:none;width:31px;height:18px;min-height:18px;min-width:31px;flex:0 0 31px;border:0;border-radius:12px;background:#aab7c3;padding:2px;margin:0;cursor:pointer}.room-game-toggle input:before{content:"";display:block;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .15s}.room-game-toggle input:checked{background:#078bd3}.room-game-toggle input:checked:before{transform:translateX(13px)}.room-game-toggle input:disabled{opacity:.5;cursor:not-allowed}.room-game-toggle input:focus-visible{outline:2px solid #078bd3;outline-offset:2px}.comment-body .game-result{display:inline-block;margin-left:6px;vertical-align:baseline}


.space-open-link[aria-disabled="true"]{background:#e3e8ee;color:#7a8998;cursor:not-allowed;box-shadow:none;opacity:.75}html[data-theme="dark"] .space-open-link[aria-disabled="true"]{background:#29394a;color:#a9b6c3}
#gift-message-dialog[open]{height:auto;max-height:80dvh;width:min(420px,calc(100vw - 24px))}#gift-message-dialog>.dialog-heading{padding:10px 14px 4px}#gift-message-dialog>form.stack{flex:0 1 auto;gap:6px;padding:6px 14px 0}#gift-message-dialog .dialog-actions{gap:8px;padding:8px 0 calc(8px + env(safe-area-inset-bottom,0px));margin:2px 0 0}#gift-message-dialog .dialog-actions .button{min-height:40px}#gift-message-dialog [data-gift-send-count][hidden],#gift-message-dialog [data-gift-message-error]:empty{display:none}
.room-game-status-line{display:flex;align-items:center;flex-shrink:0;background:#e8f4fd}.room-game-status-line .room-game-status{flex:1;min-width:0}.room-game-restore{font:inherit;font-size:11px;white-space:nowrap;min-height:28px;padding:3px 8px;border:1px solid #a8d4ed;border-radius:5px;background:#fff;color:#185a87;margin:2px 5px}.room-game-restore[hidden]{display:none}html[data-theme="dark"] .room-game-status-line{background:#183550}html[data-theme="dark"] .room-game-restore{background:#263748;color:#c1e4ff;border-color:#45637a}


/* Full-screen gift presentation. */
.rebirth-overlay{position:fixed;inset:0;overflow:hidden;z-index:1000;background:radial-gradient(ellipse at 50% 36%,#1b2245,#02040b 70%);isolation:isolate;perspective:1100px}.rebirth-fragments{position:absolute;inset:0;perspective:1100px;transform-style:preserve-3d}.rebirth-shard{position:absolute;inset:0;will-change:transform,opacity;backface-visibility:visible;pointer-events:none;transform-style:preserve-3d}.rebirth-shard>.rebirth-snapshot{position:absolute;inset:0;width:var(--screen-w);height:var(--screen-h);margin:0;pointer-events:none;user-select:none}.rebirth-shard.repairing{filter:drop-shadow(0 0 7px #95e8ff80)}.rebirth-lightning{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}.rebirth-glow{position:absolute;inset:-40%;opacity:0;background:radial-gradient(ellipse at 50% 45%,#fff6cb,#b2e7ff55 16%,#6dbefb18 35%,transparent 57%);mix-blend-mode:screen;pointer-events:none;z-index:4}.rebirth-message{position:absolute;inset:10% 4%;display:flex;align-items:center;justify-content:center;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:900;font-size:clamp(34px,10vw,128px);line-height:1.25;letter-spacing:.03em;color:#fff9e6;text-shadow:0 0 12px #fff4,0 0 35px #7bbdff,0 4px 12px #09152dcc;opacity:0;transform:scale(.86);z-index:6;pointer-events:none;text-wrap:balance}.rebirth-skip{position:absolute;right:12px;bottom:max(14px,env(safe-area-inset-bottom));z-index:9;background:#17263ca8;color:#c3d2e2;border:1px solid #8198ae44;border-radius:20px;font-size:11px;padding:7px 12px;backdrop-filter:blur(8px)}
.rebirth-shard>.rebirth-snapshot{position:absolute;inset:0;contain:layout paint;transform:translateZ(0);background:var(--paper,#fff);pointer-events:none;user-select:none}.rebirth-overlay{z-index:2147480000}.rebirth-snapshot .rebirth-overlay{display:none}

.rebirth-overlay{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;color:inherit}.rebirth-overlay::backdrop{background:transparent}

/* Bound fragment compositing surfaces, especially on high-DPI phones. */
.rebirth-shard>.rebirth-snapshot{transform:none}.rebirth-snapshot *{animation:none!important;transition:none!important;will-change:auto!important;backdrop-filter:none!important}.rebirth-snapshot .cast-feed{overflow:hidden!important;overscroll-behavior:none!important;scroll-behavior:auto!important}.rebirth-compact .rebirth-shard{transform-style:flat}.rebirth-compact .rebirth-shard.repairing{filter:none}.rebirth-compact .rebirth-glow{inset:0}.rebirth-compact .rebirth-skip{backdrop-filter:none}

.reply-notification{bottom:68px;background:#078bd3;color:#fff;border-color:#078bd3}#new-comments[hidden]+.reply-notification{bottom:16px}.reply-attention{animation:reply-attention 2s ease}@keyframes reply-attention{0%,40%{box-shadow:inset 4px 0 #078bd3;background:#e6f4ff}100%{box-shadow:inset 0 0 transparent}}@media(prefers-reduced-motion:reduce){.reply-attention{animation:none;box-shadow:inset 4px 0 #078bd3}}

.demo-page .reply-notification{bottom:16px}
.my-room-name-input>strong{flex:1;min-width:0;overflow-wrap:anywhere}
.my-room-bottom-actions>.my-room-start-guidance{position:relative;flex:0 0 100%;margin:0 0 7px;padding:9px 12px;border-radius:10px;background:#087fc0;color:#fff;font-size:13px;line-height:1.6}.my-room-start-guidance::after{content:"";position:absolute;bottom:-5px;left:calc(50% - 23px);width:10px;height:10px;background:inherit;border-style:solid;border-width:0 1px 1px 0;border-color:inherit;transform:rotate(45deg)}.my-room-start-guidance[hidden]{display:none}.my-room-page:has(.my-room-start-guidance:not([hidden])){padding-bottom:calc(165px + env(safe-area-inset-bottom,0px))}
.my-room-roles{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:12px;line-height:1.7}.my-room-roles>span{white-space:nowrap}.my-room-roles b{display:inline-block;padding:0 5px;border-radius:4px;background:#d4eaf8;color:#12618e}html[data-theme="dark"] .my-room-roles b{background:#28465d;color:#b2e4ff}
.my-room-page:has(.my-room-flow){padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
.my-room-flow-heading,.mypage-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.my-room-flow .my-room-flow-heading h2{margin:0}.my-room-flow-heading{margin-bottom:9px}.mypage-login-button{font-size:12px;white-space:nowrap;padding:6px 12px;flex-shrink:0}
.my-room-flow{margin:0 0 20px;padding:12px;border:1px solid #c7e1f1;border-radius:12px;background:#edf7fd}.my-room-flow h2{font-size:13px;margin:0 0 9px;color:#39627b}.my-room-flow ol{display:flex;align-items:center;justify-content:space-between;list-style:none;margin:0;padding:0;gap:5px}.my-room-flow li{display:flex;align-items:center;justify-content:space-between;flex:1;gap:4px;font-size:clamp(11px,3.2vw,14px);font-weight:700;white-space:nowrap;color:#106a9b}.my-room-flow li:last-child{flex:0 0 auto}.my-room-flow li:not(:last-child)::after{content:"›";font-size:20px;font-weight:400;color:#76a6bf}.my-room-flow p{font-size:11px;margin:7px 0 0;color:#647c8d}.my-room-page{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}html[data-theme="dark"] .my-room-flow{background:#192e40;border-color:#36566d}html[data-theme="dark"] .my-room-flow h2,html[data-theme="dark"] .my-room-flow li{color:#9ad7fa}html[data-theme="dark"] .my-room-flow p{color:#a7bccb}
.my-room-name-editor{flex:1;min-width:0}.my-room-name-editor>label{font-size:12px;color:#71869c}.my-room-name-input{display:flex;align-items:center;gap:6px;margin-top:4px}.my-room-name-input input{width:100%;min-width:0;font-size:16px;padding:9px 10px}.my-room-name-input button{flex-shrink:0;padding:10px 12px}
.mypage-entry{width:calc(100% - 32px);max-width:460px;margin:50px auto;display:grid;gap:18px;line-height:1.7}.mypage-entry h1{font-size:24px;margin:12px 0 0}.my-account-settings{border:1px solid #bdd7e8;border-radius:12px;padding:12px 14px;margin:12px 0 18px}.my-account-settings summary{font-size:14px;font-weight:700;cursor:pointer}.my-account-settings form{margin-top:16px}.my-account-settings input{font-size:16px;min-width:0;width:100%}.my-account-settings input[readonly]{font-family:monospace}.mypage-login-link{text-align:right;font-size:13px;margin:0 0 20px}html[data-theme="dark"] .my-account-settings{border-color:#3c5872}
.my-room-step{margin:24px 0 14px;padding:0 0 10px;border-bottom:1px solid #b8d9ee;line-height:1.6}.my-room-step>span{display:inline-block;color:#087cb7;font-weight:800;font-size:13px;letter-spacing:.08em}.my-room-step h2{font-size:18px;margin:3px 0 0;line-height:1.5}.my-room-step p{font-size:14px;margin:7px 0 0}.my-room-bottom-actions{flex-wrap:wrap}.my-room-bottom-actions>.my-room-step{flex:0 0 100%;margin:0;border:0;padding:0}.my-room-bottom-actions .my-room-step h2{display:inline;font-size:13px;margin-left:8px}.my-room-bottom-actions .my-room-start-help{display:none}.my-room-page{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}.share-post-actions{flex-wrap:wrap;gap:8px}.screen-guide-bubble{position:fixed;z-index:40;background:#087fc0;color:white;border-radius:12px;padding:11px 30px 11px 13px;font-size:14px;line-height:1.5;box-shadow:0 4px 18px #0003;box-sizing:border-box;pointer-events:auto}.screen-guide-bubble::after{content:"";position:absolute;bottom:-8px;left:19px;border-width:8px 8px 0;border-style:solid;border-color:#087fc0 transparent transparent}.screen-guide-bubble button{position:absolute;right:5px;top:4px;border:0;background:transparent;color:white;font-size:21px;padding:2px 5px}.screen-guide-bubble[hidden]{display:none}html[data-theme="dark"] .my-room-step{border-color:#36536a}html[data-theme="dark"] .my-room-step>span{color:#75c7f4}

.comment-title{display:inline-block;max-width:12em;padding:1px 5px;border-radius:5px;font-size:10px;font-weight:600;line-height:1.5;white-space:nowrap;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}.title-palettes{border:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.title-palettes legend{font-size:12px;margin-bottom:6px}.title-palettes button{padding:9px 4px;border:2px solid transparent;border-radius:9px;background:#f2f6fa;display:grid;justify-items:center;gap:5px}.title-palettes button[aria-pressed=true]{border-color:#078bd3}.title-palettes small{font-size:10px;color:#71869b}#comment-title-dialog form{padding:12px 16px 0}#comment-title-dialog input{font-size:16px}html[data-theme="dark"] .title-palettes button{background:#253448}

.sidebar>.mypage-header-login{margin-left:4px;flex-shrink:0}.sidebar:has(.mypage-header-login) .brand.twicome-brand img{width:clamp(94px,30vw,160px);height:auto}
.my-room-flow .my-room-audio-notice{margin:0 0 12px;padding:6px 8px;border:1px solid #cadce8;border-radius:6px;color:#455f73;font-size:12px;line-height:1.5;background:#fff8}
.my-room-flow ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}.my-room-flow li{display:block;position:relative;min-width:0;font-size:clamp(10px,3vw,13px)}.my-room-flow li>span{display:block;border:1px solid #92c4df;background:#fff;border-radius:7px;padding:8px 3px;text-align:center}.my-room-flow li:not(:last-child)::after{position:absolute;right:-12px;top:50%;transform:translateY(-50%);font-size:20px;line-height:1}
.my-room-bottom-actions>.my-room-start-guidance{background:#fff3c7;color:#6b470d;border:1px solid #e8b956;border-left-width:4px;font-weight:600}
html[data-theme="dark"] .my-room-flow .my-room-audio-notice{background:#1c3143;border-color:#486377;color:#c8d9e8}html[data-theme="dark"] .my-room-flow li>span{background:#233f54;border-color:#527994}html[data-theme="dark"] .my-room-bottom-actions>.my-room-start-guidance{background:#4b391a;color:#ffe7ab;border-color:#b98b3a}

.my-room-flow .flow-step-icon{display:block;width:19px;height:19px;margin:0 auto 5px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.my-room-flow .flow-step-label{display:block}.my-room-flow .my-room-audio-notice{margin:10px 0 0}

.my-room-page>.my-room-bottom-actions{position:static;left:auto;bottom:auto;transform:none;z-index:auto;max-width:none;margin:18px 0 24px;padding:0;border:0;background:transparent;backdrop-filter:none}.management-content .my-room-page:has(>.my-room-bottom-actions){padding-bottom:24px}html[data-theme="dark"] .my-room-page>.my-room-bottom-actions{background:transparent;border:0}

.avatar-edit-badge svg{display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Own-room apostle comments: static readable core, with at most four visible animated layers. */
.cast-feed .comment-card .apostle-comment{position:relative;isolation:isolate;--apostle-core:#9d741a;--apostle-edge:#846015;--apostle-haze:#e5b85570;color:var(--apostle-core);font-weight:500;-webkit-text-stroke:.15px var(--apostle-edge);text-shadow:0 0 2px #fff1bf99,0 0 4.25px #f9d377aa,0 0 8.5px var(--apostle-haze)}
html[data-theme="dark"] .cast-feed .comment-card .apostle-comment{--apostle-core:#f6dea0;--apostle-edge:#ffe9ad;--apostle-haze:#e5b85570}
.apostle-comment>.comment-language-text{position:relative;z-index:1;color:inherit}
.apostle-effects{position:absolute;inset:0;z-index:0;pointer-events:none;-webkit-text-stroke:0;text-shadow:none}
.apostle-effects::before,.apostle-effects::after{content:"";position:absolute;inset:-5px -7px;pointer-events:none;background:radial-gradient(ellipse at 24% 55%,#ffd36291,transparent 58%),radial-gradient(ellipse at 76% 45%,#f5be3b74,transparent 55%);filter:blur(7px);opacity:.3;animation:apostle-mist 5s ease-in-out infinite}
.apostle-effects::after{background:radial-gradient(ellipse at 66% 35%,#fff3baaa,transparent 55%);filter:blur(5px);animation-delay:-2.5s;animation-direction:reverse;opacity:.35}
html[data-theme="dark"] .apostle-effects::before{opacity:.45}
html[data-theme="dark"] .apostle-effects::after{opacity:.5}
.apostle-glint{position:absolute;left:var(--glint-x);top:var(--glint-y);width:9px;height:9px;background:#c79b3e;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);opacity:.55;animation:apostle-sparkle 4s ease-in-out infinite;animation-delay:var(--glint-delay);pointer-events:none}
html[data-theme="dark"] .apostle-glint{background:#f7dfa5}
@keyframes apostle-mist{0%,100%{transform:translate(-3px,1px) scale(.95)}50%{transform:translate(4px,-3px) scale(1.06)}}
@keyframes apostle-sparkle{0%,100%{opacity:.2;transform:translate(-50%,-50%) scale(.4) rotate(0)}45%{opacity:.85;transform:translate(calc(-50% + var(--glint-drift)),-10px) scale(1) rotate(55deg)}75%{opacity:.45;transform:translate(calc(-50% + var(--glint-drift)),-16px) scale(.6) rotate(90deg)}}
@media(prefers-reduced-motion:reduce){.apostle-effects{display:none}.apostle-effects::before,.apostle-effects::after,.apostle-glint{animation:none!important}}
