.m21-body {
  --m21-bg: #0b0b0c;
  --m21-fg: #eceae4;
  --m21-card: #141416;
  --m21-muted: #8e8b84;
  --m21-primary: #c4c8ce;
  --m21-border: #2a2a2e;
  --m21-hover: #1c1c1f;
  --m21-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --m21-sans: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --m21-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  box-sizing: border-box;
  margin: 0;
  min-height: 100vh;
  background: var(--m21-bg);
  color: var(--m21-fg);
  font-family: var(--m21-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.m21-body *,
.m21-body *::before,
.m21-body *::after {
  box-sizing: border-box;
}

.m21-embed {
  min-height: 0;
  max-width: 48rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.m21-body a {
  color: inherit;
  text-decoration: none;
}

.m21-body h1,
.m21-body h2 {
  font-family: var(--m21-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.m21-body h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.75rem);
  letter-spacing: 0.16em;
  line-height: 1.05;
}

.m21-body h2 {
  margin: 0;
  font-size: 1.25rem;
}

.m21-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--m21-border);
  background: var(--m21-bg);
}

.m21-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--m21-border);
  background: var(--m21-bg);
}

.m21-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  padding: 10px 0;
  animation: m21-ticker 36s linear infinite;
}

.m21-ticker:hover .m21-ticker-track {
  animation-play-state: paused;
}

.m21-ticker-group {
  display: flex;
  align-items: center;
}

.m21-ticker-group span {
  font-family: var(--m21-display);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  color: var(--m21-muted);
  white-space: nowrap;
  padding: 0 16px;
}

.m21-ticker-sep {
  color: var(--m21-border);
}

@keyframes m21-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .m21-ticker-track {
    animation: none;
    width: 100%;
  }
  .m21-ticker-group + .m21-ticker-group {
    display: none;
  }
  .m21-ticker-group span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

.m21-inbox-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 16px;
}

.m21-inbox-tabs .m21-unread-count {
  margin-left: 6px;
}

.m21-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 48rem;
  margin: 0 auto;
  min-height: 56px;
  padding: 0 16px;
}

.m21-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.m21-logo-mark {
  font-family: var(--m21-display);
  font-size: 1.125rem;
  letter-spacing: 0.16em;
}

.m21-logo-sub {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--m21-muted);
}

.m21-kicker,
.m21-id,
.m21-no,
.m21-room-stat,
.m21-thread-meta,
.m21-clock,
.m21-counts {
  font-family: var(--m21-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--m21-muted);
  font-variant-numeric: tabular-nums;
}

.m21-crumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--m21-muted);
}

.m21-crumbs span:last-child {
  color: var(--m21-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m21-crumbs a:hover { color: var(--m21-fg); }

.m21-header-end {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.m21-menu {
  position: relative;
  flex-shrink: 0;
}

.m21-menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  list-style: none;
  cursor: pointer;
}

.m21-menu-toggle::-webkit-details-marker,
.m21-menu-toggle::marker {
  display: none;
  content: "";
}

.m21-burger {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--m21-fg);
  box-shadow: 0 -6px 0 var(--m21-fg), 0 6px 0 var(--m21-fg);
}

.m21-menu-scrim {
  display: none;
}

.m21-menu[open] .m21-menu-scrim {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 30;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(11, 11, 12, 0.7);
  cursor: pointer;
}

.m21-menu-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: min(20rem, 86vw);
  flex-direction: column;
  padding: 20px 8px 24px;
  background: var(--m21-card);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.m21-menu[open] .m21-menu-panel {
  display: flex;
}

.m21-menu-name {
  margin: 8px 12px 16px;
  font-family: var(--m21-display);
  font-size: 1.125rem;
}

.m21-menu-panel a,
.m21-menu-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--m21-fg);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.m21-menu-panel form {
  margin-top: auto;
}

.m21-menu-note {
  margin-top: auto;
  padding: 12px;
  font-size: 12px;
  color: var(--m21-muted);
}

.m21-menu-panel button {
  width: 100%;
  color: var(--m21-muted);
}

.m21-login-link {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--m21-muted);
}

.m21-login-link:hover {
  color: var(--m21-fg);
}

.m21-fav {
  margin-top: 4px;
}

.m21-fav button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--m21-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.m21-fav button:hover {
  color: var(--m21-fg);
}

.m21-account button:hover { color: var(--m21-fg); }
.m21-crumbs-sep { opacity: 0.5; }

.m21-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

.m21-hero { margin-bottom: 64px; }
.m21-hero-sm { margin-bottom: 32px; }

.m21-eyebrow,
.m21-floor-label {
  margin: 0 0 8px;
  font-family: var(--m21-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--m21-primary);
}

.m21-lead {
  max-width: 28rem;
  margin: 24px 0 0;
  color: var(--m21-muted);
  font-size: 15px;
}

.m21-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  color: var(--m21-muted);
  font-size: 12px;
}

.m21-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.m21-section-head p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--m21-muted);
}

.m21-card {
  background: var(--m21-card);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.m21-floor {
  padding: 16px 20px;
  border-bottom: 1px solid var(--m21-border);
}

.m21-floor:last-child { border-bottom: 0; }

.m21-floor-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--m21-primary);
}

.m21-room-list,
.m21-voice-list,
.m21-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.m21-room-link,
.m21-voice-list a,
.m21-thread-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 150ms ease;
}

.m21-voice-list a,
.m21-thread-list a {
  padding: 12px 20px;
  border-radius: 0;
  min-height: 56px;
}

.m21-room-link:hover,
.m21-voice-list a:hover,
.m21-thread-list a:hover {
  background: var(--m21-hover);
}

.m21-room-name {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 12px;
}

.m21-name { font-weight: 500; }
.m21-kicker-inline {
  font-size: 12px;
  color: var(--m21-muted);
}

.m21-voices { margin-top: 48px; }
.m21-voices h2 { margin-bottom: 16px; }

.m21-creators-teaser { margin-top: 48px; }
.m21-creators-teaser h2 { margin-bottom: 16px; }

.m21-creator-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px;
}

.m21-creator-jump:hover { background: var(--m21-hover); }

.m21-creator-jump-copy {
  min-width: 0;
  color: var(--m21-muted);
  font-size: 14px;
}

.m21-creator-faces {
  display: flex;
  align-items: center;
}

.m21-creator-face {
  width: 40px;
  height: 40px;
  margin-left: -8px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--m21-card);
}

.m21-creator-faces .m21-creator-face:first-child { margin-left: 0; }

.m21-creator-letter {
  display: grid;
  place-items: center;
  background: var(--m21-hover);
  color: var(--m21-fg);
  font-family: var(--m21-display);
}

.m21-creator-more {
  flex-shrink: 0;
  color: var(--m21-muted);
  font-size: 14px;
}

.m21-creator-list {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.m21-creator-card {
  display: flex;
  gap: 16px;
  padding: 20px;
}

.m21-creator-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.m21-creator-icon-link {
  display: block;
  flex-shrink: 0;
  border-radius: 999px;
}

.m21-creator-icon-link:hover .m21-creator-icon {
  box-shadow: 0 0 0 1px rgba(196, 200, 206, 0.45);
}

.m21-creator-profile {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.m21-creator-profile h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.m21-muted-copy {
  margin: 12px 0 0;
  color: var(--m21-muted);
  font-size: 14px;
}

.m21-creator-body { min-width: 0; flex: 1; }

.m21-creator-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.m21-creator-bio {
  margin: 8px 0 0;
  color: var(--m21-muted);
  font-size: 14px;
  white-space: pre-wrap;
}

.m21-creator-login {
  margin: 6px 0 0;
  color: var(--m21-muted);
  font-family: var(--m21-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.m21-creator-url {
  display: inline-block;
  margin-top: 12px;
  max-width: 100%;
  overflow: hidden;
  color: var(--m21-fg);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m21-creator-remove {
  margin-top: 12px;
}

.m21-creator-remove button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--m21-muted);
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.m21-creator-form-wrap h2 { margin-bottom: 16px; }

.m21-auth-card {
  margin-top: 48px;
  padding: 20px;
}

.m21-auth-card p {
  margin: 12px 0 0;
  color: var(--m21-muted);
  font-size: 14px;
}

.m21-auth-card .m21-btn { margin-top: 16px; }

.m21-mode-switch {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
}

.m21-hint {
  margin: -8px 0 16px;
  color: var(--m21-muted);
  font-size: 11px;
}

.m21-back { margin-top: 40px; }

.m21-delete-profile { margin-top: 40px; }
.m21-delete-confirm p {
  margin: 0 0 12px;
  font-size: 14px;
}
.m21-delete-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.m21-delete-confirm-actions .m21-btn { min-width: 88px; }

.m21-btn-ghost {
  background: transparent;
  color: var(--m21-fg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.m21-voice-list li + li,
.m21-thread-list li + li {
  border-top: 1px solid var(--m21-border);
}

.m21-voice-list a { display: block; }

.m21-voice-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.m21-voice-top time {
  flex-shrink: 0;
  font-family: var(--m21-mono);
  font-size: 11px;
  color: var(--m21-muted);
}

.m21-voice-body {
  display: block;
  overflow: hidden;
  color: var(--m21-muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m21-thread-main { min-width: 0; }
.m21-thread-title {
  display: block;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m21-thread-handle {
  display: block;
  margin-top: 2px;
  color: var(--m21-muted);
  font-size: 12px;
}
.m21-thread-meta {
  flex-shrink: 0;
  text-align: right;
}
.m21-thread-meta span { display: block; }

.m21-threads { margin-bottom: 40px; }

.m21-empty {
  margin: 0;
  padding: 32px 16px;
  color: var(--m21-muted);
  font-size: 14px;
  text-align: center;
}

.m21-form {
  background: var(--m21-card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.m21-form-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.m21-label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--m21-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.m21-input,
.m21-textarea {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--m21-bg);
  color: var(--m21-fg);
  font: inherit;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.m21-input {
  height: 44px;
  padding: 0 12px;
}

.m21-textarea {
  min-height: 128px;
  padding: 12px;
  resize: vertical;
}

.m21-input:focus,
.m21-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(196, 200, 206, 0.55);
}

.m21-form-actions { display: flex; justify-content: flex-end; }

.m21-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--m21-primary);
  color: var(--m21-bg);
  font: 500 14px var(--m21-sans);
  cursor: pointer;
}

.m21-btn:hover { opacity: 0.9; }

.m21-requests { margin-bottom: 48px; }
.m21-requests h2 { margin: 0 0 16px; font-size: 1.25rem; }
.m21-request-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.m21-request-card { padding: 20px; }
.m21-request-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}
.m21-request-meta time {
  flex-shrink: 0;
  font-family: var(--m21-mono);
  font-size: 11px;
  color: var(--m21-muted);
}
.m21-request-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.m21-unread-count {
  margin-left: auto;
  font-family: var(--m21-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--m21-muted);
}
.m21-request-card.is-unread {
  box-shadow: 0 0 0 1px rgba(196, 200, 206, 0.22);
}
.m21-request-new {
  margin-left: 8px;
  font-family: var(--m21-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--m21-muted);
}

.m21-reply-compose {
  margin-top: 8px;
}

.m21-reply-compose summary,
.m21-reply-tree summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 11px;
  color: var(--m21-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.m21-reply-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.m21-reply-form .m21-btn {
  justify-self: start;
}

.m21-reply-tree {
  margin-top: 8px;
}

.m21-reply-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 0 0 16px;
  display: grid;
  gap: 12px;
  border-left: 1px solid var(--m21-border);
}

.m21-reply .m21-request-meta {
  margin-bottom: 4px;
}

.m21-posts { display: grid; gap: 12px; margin-bottom: 40px; }

.m21-post {
  background: var(--m21-card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.m21-post.is-op {
  box-shadow: 0 0 0 1px rgba(196, 200, 206, 0.18);
}

.m21-post header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.m21-post-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.m21-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.m21-profile-name {
  margin: 0;
  font-family: var(--m21-display);
  font-size: 1.25rem;
}

.m21-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--m21-muted);
}

.m21-post-no {
  font-family: var(--m21-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--m21-primary);
}

.m21-post-handle { font-size: 14px; font-weight: 500; }
.m21-post.is-deleted {
  opacity: 0.7;
}

.m21-log-mark {
  font-family: var(--m21-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--m21-primary);
}

.m21-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 auto;
}

.m21-pin {
  width: 4.5rem;
  text-align: center;
  font-family: var(--m21-mono);
  letter-spacing: 0.12em;
}

.m21-warn {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(196, 200, 206, 0.35);
  font-family: var(--m21-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--m21-primary);
  font-weight: 500;
}

.m21-warn-panels {
  margin: 0;
  padding: 0;
  border: 0;
}

.m21-warn-panels legend {
  margin-bottom: 8px;
  font-size: 13px;
}

.m21-warn-panels {
  display: grid;
  gap: 8px;
}

.m21-warn-panel {
  display: inline-flex;
  margin: 0 8px 0 0;
  cursor: pointer;
}

.m21-warn-panel input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.m21-warn-panel span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-family: var(--m21-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--m21-muted);
}

.m21-warn-panel input:checked + span {
  background: var(--m21-primary);
  color: var(--m21-bg);
  box-shadow: none;
}

.m21-post-image {
  margin: 12px 0 0;
}

.m21-post-image img {
  display: block;
  max-width: 100%;
  max-height: 28rem;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.m21-file {
  display: block;
  width: 100%;
  margin-top: 6px;
  color: var(--m21-muted);
  font-size: 13px;
}

.m21-delete button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--m21-muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.m21-delete button:hover {
  color: var(--m21-fg);
}

.m21-post-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.m21-quote {
  color: var(--m21-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.m21-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.m21-notice {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--m21-card);
  color: #d7b4b0;
  font-size: 14px;
}

.m21-notice-ok {
  color: var(--m21-fg);
}

.m21-resend-form {
  margin-top: 24px;
}

.m21-footer {
  border-top: 1px solid var(--m21-border);
  padding: 32px 16px;
  color: var(--m21-muted);
  font-size: 12px;
  text-align: center;
}

.m21-center {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 639px) {
  .m21-logo-sub,
  .m21-kicker-inline,
  .m21-post .m21-id { display: none; }
  .m21-main { padding-top: 32px; }
  .m21-hero { margin-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .m21-body * { transition: none !important; }
}
