.timeline-page {
  --timeline-text: #0f1419;
  --timeline-muted: #536471;
  --timeline-border: #eff3f4;
  --timeline-blue: #1d9bf0;
  --timeline-blue-hover: #1a8cd8;
  --timeline-hover: rgba(15, 20, 25, 0.1);
  --timeline-soft-bg: #f7f9f9;
  min-height: 100vh;
  background: #FDF6F8;
  color: var(--timeline-text);
}

.timeline-page .app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  justify-content: center;
  padding: 0;
  border-bottom: 0;
  backdrop-filter: none;
}

.timeline-header-inner {
  width: 100%;
  max-width: 450px;
  justify-content: space-between;
}

.timeline-shell {
  width: min(100%, 450px);
  margin: 0 auto;
  padding: 0 0 28px;
  border: 1px solid var(--timeline-border);
  border-top: 0;
  border-radius: 0;
  background: #ffffff;
  box-sizing: border-box;
}

.timeline-composer {
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--timeline-border);
}

.timeline-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--timeline-border);
}

.timeline-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.timeline-title {
  margin: 0;
  color: var(--timeline-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.timeline-subtitle {
  margin: 0;
  color: var(--timeline-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.timeline-topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.timeline-icon-button,
.timeline-ranking-close-button,
.timeline-settings-close-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--timeline-border);
  border-radius: 50%;
  color: var(--timeline-text);
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.timeline-icon-button {
  border-color: transparent;
  background: transparent;
}

.timeline-icon-button:hover,
.timeline-ranking-close-button:hover,
.timeline-settings-close-button:hover {
  border-color: transparent;
  color: var(--timeline-text);
  background: var(--timeline-hover);
}

.timeline-icon-button:focus-visible,
.timeline-ranking-close-button:focus-visible,
.timeline-settings-close-button:focus-visible {
  outline: 2px solid var(--timeline-blue);
  outline-offset: 2px;
}

.timeline-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.timeline-icon,
.timeline-ranking-close-icon,
.timeline-settings-close-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.timeline-ranking-modal,
.timeline-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  background: rgba(15, 20, 25, 0.28);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
}

.timeline-ranking-dialog {
  width: min(100%, 380px);
  max-height: min(76vh, 560px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--timeline-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 20, 25, 0.18);
  box-sizing: border-box;
}

.timeline-settings-dialog {
  width: min(100%, 360px);
  padding: 18px;
  border: 1px solid var(--timeline-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 20, 25, 0.18);
  box-sizing: border-box;
}

.timeline-ranking-dialog-header,
.timeline-settings-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.timeline-ranking-dialog-header h2,
.timeline-settings-dialog-header h2 {
  margin: 0;
  color: var(--timeline-text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.timeline-ranking-dialog-header p,
.timeline-settings-dialog-header p {
  margin: 4px 0 0;
  color: var(--timeline-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.timeline-ranking-close-button,
.timeline-settings-close-button {
  width: 32px;
  height: 32px;
}

.timeline-ranking-dialog .timeline-like-rankings {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--timeline-border);
  border-radius: 8px;
}

.timeline-setting-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.timeline-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--timeline-border);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
}

.timeline-setting-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.timeline-setting-name {
  color: var(--timeline-text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.timeline-setting-description {
  color: var(--timeline-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.timeline-setting-control {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
}

.timeline-setting-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.timeline-switch {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfd9de;
  transition: background-color 0.15s ease;
}

.timeline-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 20, 25, 0.18);
  transition: transform 0.15s ease;
}

.timeline-setting-control input:checked + .timeline-switch {
  background: var(--timeline-blue);
}

.timeline-setting-control input:checked + .timeline-switch span {
  transform: translateX(18px);
}

.timeline-setting-row:focus-within {
  outline: 2px solid var(--timeline-blue);
  outline-offset: 2px;
}

.timeline-setting-row:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.62;
}

.timeline-mood-setting {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--timeline-border);
  border-radius: 8px;
  background: #ffffff;
  box-sizing: border-box;
}

.timeline-mood-option {
  position: relative;
  display: grid;
  gap: 2px;
  place-items: center;
  min-height: 42px;
  padding: 5px 4px;
  border-radius: 5px;
  color: var(--timeline-muted);
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.timeline-mood-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.timeline-mood-icon {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.timeline-mood-label {
  color: #8a98a3;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.timeline-mood-option:has(input:checked) {
  background: rgba(29, 155, 240, 0.08);
}

.timeline-mood-option:has(input:checked) .timeline-mood-icon,
.timeline-mood-option:has(input:checked) .timeline-mood-label {
  color: var(--timeline-blue);
}

.timeline-mood-option:has(input:focus-visible) {
  outline: 2px solid var(--timeline-blue);
  outline-offset: 2px;
}

.timeline-mood-option:has(input:active:not(:disabled)) {
  transform: scale(0.98);
}

.timeline-mood-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.62;
}

.timeline-post-form {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
}

.timeline-post-form-main {
  min-width: 0;
}

.timeline-post-form textarea {
  width: 100%;
  min-height: 32px;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--timeline-text);
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1.65;
  box-sizing: border-box;
}

.timeline-post-form textarea::placeholder {
  color: var(--timeline-muted);
}

.timeline-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timeline-count {
  color: var(--timeline-muted);
  font-size: 12px;
  font-weight: 800;
}

.timeline-form-footer button {
  min-width: 76px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--timeline-blue);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.timeline-form-footer button:hover:not(:disabled) {
  background: var(--timeline-blue-hover);
}

.timeline-form-footer button:active:not(:disabled) {
  transform: scale(0.97);
}

.timeline-form-footer button:focus-visible {
  outline: 2px solid var(--timeline-blue);
  outline-offset: 2px;
}

.timeline-form-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.timeline-status {
  margin: 10px 14px 0;
  color: var(--timeline-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.timeline-status.is-error {
  color: #b42335;
}

.timeline-new-posts-prompt {
  display: grid;
  border-bottom: 1px solid var(--timeline-border);
  background: #ffffff;
}

.timeline-new-posts-button {
  display: grid;
  place-items: center;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  color: var(--timeline-blue);
  background: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.timeline-new-posts-button:hover:not(:disabled) {
  background: rgba(29, 155, 240, 0.08);
}

.timeline-new-posts-button:focus-visible {
  outline: 2px solid var(--timeline-blue);
  outline-offset: -2px;
}

.timeline-new-posts-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.timeline-list {
  display: grid;
  gap: 0;
  padding-top: 0;
}

.timeline-loading-post {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--timeline-border);
  background: #ffffff;
}

.timeline-loading-avatar,
.timeline-loading-line {
  display: block;
  overflow: hidden;
  background: linear-gradient(90deg, #f0f4f5 0%, #e6ecef 45%, #f0f4f5 90%);
  background-size: 220% 100%;
  animation: timeline-loading-shimmer 1.2s ease-in-out infinite;
}

.timeline-loading-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.timeline-loading-main {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}

.timeline-loading-line {
  height: 12px;
  border-radius: 999px;
}

.timeline-loading-line-title {
  width: min(180px, 58%);
}

.timeline-loading-line-short {
  width: min(120px, 42%);
}

.timeline-loading-line-body {
  width: 100%;
  height: 13px;
  margin-top: 4px;
}

.timeline-loading-line-body-narrow {
  width: min(360px, 78%);
  margin-top: 0;
}

@keyframes timeline-loading-shimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.timeline-like-rankings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--timeline-border);
  background: #ffffff;
}

.timeline-like-ranking-group {
  min-width: 0;
  padding: 10px 12px 12px;
  box-sizing: border-box;
}

.timeline-like-ranking-group + .timeline-like-ranking-group {
  border-left: 1px solid var(--timeline-border);
}

.timeline-like-ranking-group h2 {
  margin: 0 0 8px;
  color: var(--timeline-muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.timeline-like-ranking-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-like-ranking-item {
  display: grid;
  grid-template-columns: 18px 26px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 30px;
}

.timeline-like-ranking-rank {
  color: var(--timeline-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.timeline-avatar.timeline-like-ranking-avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

.timeline-like-ranking-name {
  overflow: hidden;
  min-width: 0;
  color: var(--timeline-text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-like-ranking-empty {
  margin: 0;
  color: var(--timeline-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.timeline-load-more {
  display: grid;
  border-top: 1px solid var(--timeline-border);
  background: #ffffff;
}

.timeline-load-more-button {
  display: grid;
  place-items: center;
  min-height: 54px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  color: var(--timeline-blue);
  background: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.timeline-load-more-button:hover:not(:disabled) {
  background: rgba(29, 155, 240, 0.08);
}

.timeline-load-more-button:focus-visible {
  outline: 2px solid var(--timeline-blue);
  outline-offset: -2px;
}

.timeline-load-more-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.timeline-post {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid var(--timeline-border);
}

.timeline-post:has(.timeline-comments)::before {
  content: "";
  position: absolute;
  top: 54px;
  bottom: 18px;
  left: 31px;
  z-index: 0;
  width: 2px;
  border-radius: 999px;
  background: var(--timeline-border);
}

.timeline-post-thread {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 14px 8px;
}

.timeline-post-main {
  min-width: 0;
}

.timeline-post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.timeline-post-name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  line-height: 1.35;
}

.timeline-post-name {
  overflow: hidden;
  max-width: 100%;
  color: var(--timeline-text);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-official-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 2px;
  color: #fff;
  background: var(--timeline-blue);
  clip-path: polygon(50% 0%, 61% 12%, 77% 7%, 84% 23%, 100% 30%, 91% 47%, 100% 64%, 83% 72%, 78% 90%, 60% 86%, 50% 100%, 39% 87%, 22% 92%, 16% 75%, 0% 68%, 9% 51%, 0% 34%, 17% 27%, 22% 9%, 40% 14%);
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  vertical-align: -1px;
}

.timeline-mycast-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 14px;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  vertical-align: -1px;
  box-sizing: border-box;
}

.timeline-post-profile-trigger {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.timeline-post-thread > .timeline-post-profile-trigger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.timeline-post-name-link {
  border-radius: 4px;
  text-decoration: none;
}

.timeline-post-profile-trigger:hover .timeline-post-name-link {
  text-decoration: underline;
}

.timeline-post-profile-trigger:focus-visible {
  outline: 2px solid var(--timeline-blue);
  outline-offset: 2px;
}

.timeline-post-handle,
.timeline-post-dot,
.timeline-post-time {
  color: var(--timeline-muted);
  font-size: 12px;
  font-weight: 600;
}

.timeline-post-text {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--timeline-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.timeline-cast-mention-link {
  display: inline;
  margin: 0;
  padding: 0 1px;
  border: 0;
  border-radius: 4px;
  color: var(--timeline-blue);
  background: transparent;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: pointer;
}

.timeline-cast-mention-link:hover {
  text-decoration: underline;
}

.timeline-cast-mention-link:focus-visible {
  outline: 2px solid var(--timeline-blue);
  outline-offset: 2px;
}

.timeline-post-media {
  width: 100%;
  max-width: 420px;
  margin: 10px 0 0;
  overflow: hidden;
  border: 1px solid var(--timeline-border);
  border-radius: 8px;
  background: var(--timeline-soft-bg);
}

.timeline-post-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.timeline-quoted-feed {
  display: grid;
  grid-template-columns: minmax(86px, 112px) minmax(0, 1fr);
  gap: 10px;
  max-width: 480px;
  margin: 10px 0 0;
  overflow: hidden;
  border: 1px solid var(--timeline-border);
  border-radius: 8px;
  color: inherit;
  background: #ffffff;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.timeline-quoted-feed:hover {
  border-color: #d8dee4;
  background: var(--timeline-hover);
}

.timeline-quoted-feed:focus-visible {
  outline: 2px solid var(--timeline-blue);
  outline-offset: 2px;
}

.timeline-quoted-feed-media {
  display: block;
  min-width: 0;
  color: inherit;
  background: var(--timeline-soft-bg);
  text-decoration: none;
}

.timeline-quoted-feed-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 128px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.timeline-quoted-feed-main {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 9px 10px 9px 0;
}

.timeline-quoted-feed-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.timeline-quoted-feed-avatar {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.timeline-quoted-feed-name {
  overflow: hidden;
  min-width: 0;
  color: var(--timeline-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-quoted-feed-caption {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--timeline-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  white-space: pre-wrap;
}

.timeline-post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin: 8px 0 0 -8px;
}

.timeline-comment-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 42px;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: var(--timeline-muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.timeline-like-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--timeline-muted);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.timeline-like-button:hover,
.timeline-like-button.is-liked {
  color: #f04472;
  background: rgba(240, 68, 114, 0.1);
}

.timeline-like-button:active:not(:disabled) {
  transform: scale(0.94);
}

.timeline-like-button:focus-visible {
  outline: 2px solid #f04472;
  outline-offset: 2px;
}

.timeline-like-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.timeline-like-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.timeline-like-button.is-liked .timeline-like-icon {
  fill: currentColor;
}

.timeline-comment-toggle:hover,
.timeline-comment-toggle[aria-expanded="true"] {
  color: var(--timeline-blue);
  background: rgba(29, 155, 240, 0.1);
}

.timeline-comment-toggle:focus-visible {
  outline: 2px solid var(--timeline-blue);
  outline-offset: 2px;
}

.timeline-comment-toggle-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.timeline-comments {
  display: grid;
  gap: 0;
  padding: 0 0 8px;
  background: #ffffff;
}

.timeline-comment {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 14px 10px;
}

.timeline-comment + .timeline-comment {
  border-top: 1px solid var(--timeline-border);
}

.timeline-comments-pending {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 8px 14px 10px 64px;
  color: var(--timeline-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.timeline-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--timeline-border);
  color: var(--timeline-text);
  background: var(--timeline-soft-bg);
  font-size: 13px;
  font-weight: 900;
  box-sizing: border-box;
}

.timeline-user-avatar,
.timeline-post-avatar {
  background: #e8f5fd;
  color: var(--timeline-blue);
}

.timeline-bystander-avatar-normal {
  border-color: #d9dee3;
  color: #0f1419;
  background: #f1f3f5;
}

.timeline-bystander-avatar-gesu {
  border-color: #e9d5ff;
  color: #6b21a8;
  background: #f3e8ff;
}

.timeline-cast-avatar {
  background: #fff7ed;
  color: #9a3412;
}

.timeline-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.timeline-comment-main {
  min-width: 0;
}

.timeline-comment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.timeline-comment-name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  line-height: 1.35;
}

.timeline-comment-profile-trigger {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.timeline-comment > .timeline-comment-profile-trigger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.timeline-comment-name-row .timeline-comment-profile-trigger {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  border-radius: 6px;
}

.timeline-comment-profile-trigger:hover .timeline-comment-name,
.timeline-comment-profile-trigger:hover .timeline-comment-handle {
  text-decoration: underline;
}

.timeline-comment-profile-trigger:focus-visible {
  outline: 2px solid var(--timeline-blue);
  outline-offset: 2px;
}

.timeline-comment-name {
  overflow: hidden;
  color: var(--timeline-text);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-comment-name-row .timeline-official-badge {
  width: 13px;
  height: 13px;
  font-size: 6px;
}

.timeline-comment-handle {
  overflow: hidden;
  color: var(--timeline-muted);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-comment-dot,
.timeline-comment-time {
  color: var(--timeline-muted);
  font-size: 12px;
  font-weight: 600;
}

.timeline-source-menu {
  position: relative;
  flex: 0 0 auto;
}

.timeline-source-menu summary {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  margin: -2px -4px 0 0;
  border-radius: 999px;
  color: var(--timeline-muted);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.timeline-source-menu summary::-webkit-details-marker {
  display: none;
}

.timeline-source-menu summary:hover {
  background: var(--timeline-hover);
}

.timeline-source-menu button {
  position: absolute;
  top: 28px;
  right: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 88px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--timeline-border);
  border-radius: 8px;
  color: #b42335;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.14);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.timeline-block-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.timeline-source-menu button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.timeline-comment-text {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--timeline-text);
  font-size: 14px;
  line-height: 1.65;
}

.timeline-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  background: rgba(15, 20, 25, 0.28);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
}

.timeline-profile-modal[hidden] {
  display: none;
}

.timeline-profile-heading p[hidden],
.timeline-profile-description[hidden],
.timeline-profile-link[hidden] {
  display: none;
}

.timeline-profile-dialog {
  position: relative;
  width: min(100%, 360px);
  padding: 18px;
  border: 1px solid var(--timeline-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 20, 25, 0.18);
  box-sizing: border-box;
}

.timeline-profile-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--timeline-text);
  background: transparent;
  cursor: pointer;
}

.timeline-profile-close-button:hover {
  background: var(--timeline-hover);
}

.timeline-profile-close-button:focus-visible,
.timeline-profile-link:focus-visible {
  outline: 2px solid var(--timeline-blue);
  outline-offset: 2px;
}

.timeline-profile-close-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.timeline-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 36px;
}

.timeline-profile-avatar {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  font-size: 18px;
}

.timeline-profile-heading {
  min-width: 0;
}

.timeline-profile-heading h2 {
  margin: 0;
  overflow: hidden;
  color: var(--timeline-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-profile-heading h2 .timeline-official-badge {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  font-size: 8px;
}

.timeline-profile-heading p {
  margin: 0;
  overflow: hidden;
  color: var(--timeline-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-profile-type {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 16px 0 0;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--timeline-blue);
  background: rgba(29, 155, 240, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.timeline-profile-description {
  margin: 12px 0 0;
  overflow-wrap: anywhere;
  color: var(--timeline-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.timeline-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--timeline-blue);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.timeline-profile-link:hover {
  background: var(--timeline-blue-hover);
}

.timeline-empty {
  padding: 28px 12px;
  color: var(--timeline-muted);
  background: #ffffff;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 520px) {
  .timeline-page {
    background: #FDF6F8;
  }

  .timeline-page .app-header {
    background: #ffffff;
  }

  .timeline-shell {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}
