.avatar {
  position: relative;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  user-select: none;
  background: #6B6E76;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.clickable { cursor: pointer; }

.wordmark { color: var(--text-1); }
.wordmark svg { fill: currentColor; height: 100%; width: auto; }

.icon { flex: none; fill: currentColor; }
.icon-btn {
  display: grid;
  place-items: center;
  padding: 6px;
  color: var(--text-1);
  border-radius: 50%;
  transition: transform var(--dur-press) var(--spring-soft);
}
.icon-btn:active { transform: scale(.9); }

.badge-wrap { position: relative; }
.badge {
  position: absolute;
  top: 0; right: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--bg);
}
.tabbar.floating .badge { box-shadow: none; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: calc(10px * var(--r-k));
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: var(--t-label-lg-size);
  line-height: var(--t-label-lg-lh);
  font-weight: 700;
  transition: transform var(--dur-press) var(--spring-soft), opacity 120ms linear;
  white-space: nowrap;
  corner-shape: superellipse(1.5);
}
.pill:active:not(:disabled) { transform: scale(.96); }
.pill:disabled { opacity: .45; cursor: default; }
.pill.block { width: 100%; }
.pill.ghost { background: var(--neutral); color: var(--text-1); }
.pill.danger { background: var(--danger); }

.continue-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  height: 58px;
  padding: 0 24px;
  border: 1px solid var(--divider);
  border-radius: calc(16px * var(--r-k));
  color: var(--text-1);
  font-size: var(--t-label-lg-size);
  font-weight: 700;
  background: transparent;
  transition: transform var(--dur-press) var(--spring-soft), opacity 120ms linear;
  corner-shape: superellipse(1.5);
}
.continue-btn:active:not(:disabled) { transform: scale(.985); }
.continue-btn:disabled { color: var(--text-3); cursor: default; }

.text-btn {
  width: 100%;
  padding: 12px;
  color: var(--text-1);
  font-size: var(--t-label-lg-size);
  font-weight: 700;
  text-align: center;
}

.chip {
  flex: none;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  font-weight: 500;
  white-space: nowrap;
}

.follow-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  height: 33px;
  padding: 0 14px;
  border: 1px solid var(--text-1);
  border-radius: 999px;
  background: var(--text-1);
  color: var(--bg);
  font-size: var(--t-label-md-size);
  line-height: var(--t-label-md-lh);
  font-weight: 500;
  transition: transform var(--dur-press) var(--spring-soft), border-color 140ms linear, color 140ms linear;
}
.follow-chip:active { transform: scale(.94); }
.follow-chip.following { background: transparent; color: var(--text-1); }

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 18px 20px;
  border-radius: calc(14px * var(--r-k));
  background: var(--card);
  border: 0;
  corner-shape: superellipse(1.5);
}
.field input, .field textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-1);
  font-size: 15px;
  font-weight: 500;
  resize: none;
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--text-3);
  font-weight: 400;
}
.field .prefix { color: var(--text-3); font-size: 15px; font-weight: 500; }
.field.has-value .prefix { color: var(--text-1); }
.field.compact { padding: 12px 16px; }
.field.on-sheet { background: var(--sheet); }
.field:focus-within { box-shadow: 0 0 0 1.5px var(--accent) inset; }

.inline-error { width: 100%; text-align: right; color: var(--danger); font-weight: 500; }
.inline-hint  { width: 100%; text-align: right; color: var(--text-2); }

.switch {
  flex: none;
  position: relative;
  width: 52px; height: 32px;
  border-radius: 16px;
  background: var(--divider);
  border: 2px solid var(--divider);
  transition: background 180ms var(--spring-soft), border-color 180ms var(--spring-soft);
}
.switch::after {
  content: '';
  position: absolute;
  top: 50%; left: 2px;
  width: 24px; height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: #fff;
  transition: transform 220ms var(--spring);
}
.switch[aria-checked='true'] { background: var(--accent-fill); border-color: var(--accent-fill); }
.switch[aria-checked='true']::after { transform: translateX(20px); }
.switch:disabled { opacity: .45; }

.tabbar {
  position: fixed;
  left: 0; right: 0;
  bottom: var(--kb);
  z-index: 40;
  pointer-events: none;
}
.tabbar-inner {
  display: flex;
  width: min(var(--app-max-width), 100%);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--divider);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  padding: 14px 0 calc(12px + var(--safe-bottom));
  pointer-events: auto;
  transition: width var(--dur-nav) var(--spring),
              margin var(--dur-nav) var(--spring),
              padding var(--dur-nav) var(--spring),
              border-radius var(--dur-nav) var(--spring),
              border-bottom-width var(--dur-nav) var(--spring),
              background 200ms linear;
}

.tabbar.floating .tabbar-inner {
  width: min(var(--app-max-width) - 40px, 100% - 40px);
  height: 64px;
  margin-bottom: calc(12px + var(--safe-bottom));
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
}
.no-effects .tabbar.floating .tabbar-inner {
  background: var(--card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@supports not (backdrop-filter: blur(1px)) {
  .tabbar.floating .tabbar-inner { background: var(--card); }
}
.tabbar.leaving { animation: tabbar-out var(--dur-nav) var(--spring) both; }
.tabbar.entering { animation: tabbar-in var(--dur-nav) var(--spring) both; }
@keyframes tabbar-in  { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes tabbar-out { from { transform: none; } to { transform: translate3d(0, 100%, 0); } }

.tab-item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-1);
  font-size: var(--t-label-md-size);
  line-height: var(--t-label-md-lh);
  font-weight: 500;
  transition: color 200ms linear, transform var(--dur-press) var(--spring-soft),
              background 160ms linear, gap var(--dur-nav) var(--spring);
}
.tab-item:active { transform: scale(.96); }
.tab-item[aria-current='page'] { color: var(--accent-2); }

.tab-item::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--tab-active);
  transform: scale(0);
  transition: transform var(--dur-nav) var(--spring);
}
.tabbar.floating .tab-item[aria-current='page']::before { transform: scale(1); }
.tab-item svg, .tab-item span { position: relative; }

.tab-item > span {
  height: var(--t-label-md-lh);
  overflow: hidden;
  transition: height var(--dur-nav) var(--spring), opacity 160ms linear;
}
.tabbar.floating .tab-item { gap: 0; justify-content: center; }
.tabbar.floating .tab-item > span { height: 0; opacity: 0; }

@media (min-width: 1024px) {
  .tabbar {
    top: 0; bottom: 0;
    left: 0; right: auto;
    width: var(--rail-width);
  }
  .tabbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: calc(38px + var(--safe-top)) 30px calc(28px + var(--safe-bottom));
    background: var(--bg);
    border: 0;
    border-right: 1px solid var(--pane-line);
    border-radius: 0;
  }

  .rail-mark {
    display: flex;
    align-items: center;
    flex: none;
    padding: 0 0 52px;
    color: var(--text-1);
    transition: transform var(--dur-press) var(--spring-soft);
  }
  .rail-mark:active { transform: scale(.96); }

  .rail-spacer { flex: 1; min-height: 20px; }

  .tab-item {
    flex: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 14px;
    color: var(--text-1);
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
  }
  .tab-item > span { height: auto; overflow: visible; white-space: nowrap; }
  .tab-item::before { content: none; }
  .tab-item[aria-current='page'] {
    background: var(--pane-fill);
    color: var(--text-1);
  }
  .tab-item .badge-wrap { display: flex; flex: none; }
  .tabbar.leaving, .tabbar.entering { animation: none; }
}

@media (min-width: 1024px) and (max-width: 1179.98px) {
  .tabbar-inner { align-items: center; padding-left: 0; padding-right: 0; gap: 6px; }
  .rail-mark {
    justify-content: center;
    width: 100%;
    height: 152px;
    padding: 0 0 26px;
  }
  .rail-mark .wordmark { transform: rotate(-90deg); }
  .tab-item {
    width: 52px;
    justify-content: center;
    gap: 0;
    padding: 14px 0;
  }
  .tab-item > span { display: none; }
}

:root[data-theme='light'] .tabbar:not(.rail) .tab-item:not([aria-current='page']) { color: var(--text-3); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .tabbar:not(.rail) .tab-item:not([aria-current='page']) { color: var(--text-3); }
}

.post-card {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--card-edge);
  border-radius: var(--r-xl);
  background: var(--card);
  text-align: left;
  transition: transform 140ms var(--spring-soft);
  corner-shape: superellipse(1.5);
}
.post-card:active { transform: scale(.985); }

.post-head { display: flex; align-items: center; gap: 8px; }
.post-head .who { flex: 1; min-width: 0; cursor: pointer; }
.post-head .name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.post-title { margin-top: 10px; color: var(--text-1); }
.post-body  { margin-top: 3px; color: var(--text-2); }

.post-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  color: var(--text-3);
}
.post-foot .stat { display: inline-flex; align-items: center; gap: 5px; }
.post-foot .stat.liked { color: var(--accent); }
.post-foot .spacer { flex: 1; }
.post-foot .more { padding: 4px; margin-left: 6px; color: var(--text-3); }

.poll {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--inset);
  corner-shape: superellipse(1.5);
}
.poll-title { margin-bottom: 9px; }

.poll-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border-radius: calc(10px * var(--r-k));
  background: var(--card);
  text-align: left;
  overflow: hidden;
  corner-shape: superellipse(1.5);
}
.poll-option + .poll-option { margin-top: 6px; }
.poll-option:not(:disabled) { cursor: pointer; }
.poll-option:not(:disabled):active { transform: scale(.985); }
.poll-option:disabled { cursor: default; }

.poll-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--divider);
  transition: width 520ms var(--spring-soft);
}
.poll-option.mine .poll-fill { background: color-mix(in srgb, var(--accent-fill) 30%, transparent); }

.poll-label {
  position: relative;
  flex: 1;
  min-width: 0;
  color: var(--text-1);
}
.poll-option.mine .poll-label { font-weight: 700; }

.poll-right {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
}
.poll-option.mine .poll-right { color: var(--accent); font-weight: 700; }
.poll-check { color: var(--accent); }

.poll-foot { margin-top: 9px; }

.post-images { margin-top: 10px; display: grid; gap: 4px; border-radius: calc(12px * var(--r-k)); overflow: hidden; corner-shape: superellipse(1.5); }
.post-images.n1 { grid-template-columns: 1fr; }
.post-images.n2 { grid-template-columns: 1fr 1fr; }
.post-images.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-images.n3 > :first-child { grid-row: span 2; }
.post-images.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.post-images img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--skeleton);
  aspect-ratio: 16 / 10;
}
.post-images.n2 img, .post-images.n4 img { aspect-ratio: 1 / 1; }
.post-images.n3 img { aspect-ratio: auto; height: 100%; min-height: 0; }
.post-images.n3 { aspect-ratio: 16 / 10; }

.detail-images { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.detail-images img { width: 100%; border-radius: calc(12px * var(--r-k)); background: var(--skeleton); corner-shape: superellipse(1.5); }

.empty-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 32px;
  text-align: center;
}
.empty-state { color: var(--text-3); }
.error-state { color: var(--text-2); }

.center-loading { display: grid; place-items: center; padding: 48px 0; flex: 1; }

.spinner {
  width: 26px; height: 26px;
  border: 2.5px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.skel { background: var(--skeleton); border-radius: var(--r-xs); corner-shape: superellipse(1.5); }
.skel-pulse { animation: skel-pulse 1.4s ease-in-out infinite; }
@keyframes skel-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.skeleton-overlay { position: absolute; inset: 0; z-index: 2; }
.skeleton-overlay.leaving { animation: fade-out 220ms linear both; }
@keyframes fade-out { to { opacity: 0; } }

.reveal { animation: reveal 420ms var(--spring) both; }
@keyframes reveal {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .skel-pulse { animation: none; }
  .tabbar-inner, .tab-item, .tab-item::before, .tab-item span { transition-duration: 1ms; }
}

.screen.ptr-active { translate: 0 var(--ptr-offset, 0px); }
.screen.ptr-settling { transition: translate 320ms var(--spring-soft); }

.ptr {
  position: absolute;
  top: -64px; left: 0; right: 0;
  display: grid;
  place-items: center;
  height: 64px;
  pointer-events: none;
  z-index: 7;
  opacity: 0;
}
.ptr-arrow, .ptr-logo { grid-area: 1 / 1; }
.ptr-arrow { color: var(--text-1); }
.ptr.armed .ptr-arrow { color: var(--accent); }
.ptr-logo { display: none; }
.ptr.loading .ptr-arrow { display: none; }
.ptr.loading .ptr-logo { display: block; }
.ptr-gradient-edge { stop-color: var(--text-3); }
.ptr-gradient-glow { stop-color: var(--text-1); }
.screen.ptr-settling .ptr { transition: opacity 160ms linear; }
@media (prefers-reduced-motion: reduce) {
  .screen.ptr-settling { transition-duration: 1ms; }
}
.no-effects .screen.ptr-settling { transition-duration: 1ms; }

.overlay-root { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.overlay-root > * { pointer-events: auto; }

.scrim {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  animation: fade-in 200ms linear both;
}
.scrim.leaving { animation: fade-out 180ms linear both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: fixed;
  left: 0; right: 0;
  bottom: var(--kb);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--sheet);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 8px 20px calc(20px + var(--safe-bottom));
  animation: sheet-in 340ms var(--spring) both;
  corner-shape: superellipse(1.5);
}
.sheet.leaving { animation: sheet-out 240ms var(--spring-soft) both; }
@keyframes sheet-in  { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes sheet-out { to { transform: translate3d(0, 100%, 0); } }

@media (min-width: 561px) {
  .sheet {
    left: calc(50% + var(--rail-width) / 2);
    right: auto;
    width: var(--sheet-width);
    margin-left: calc(var(--sheet-width) / -2);
  }
}

@media (min-width: 1024px) {
  .sheet {
    top: 50%;
    bottom: auto;
    width: min(460px, calc(100vw - var(--rail-width) - 96px));
    max-height: min(78vh, 680px);
    margin-left: 0;
    transform: translate(-50%, -50%);
    border-radius: var(--r-lg);
    padding: 20px 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
    animation: sheet-modal-in 260ms var(--spring) both;
    corner-shape: superellipse(1.5);
}
  .sheet.leaving { animation: fade-out 160ms linear both; }
  .sheet-handle { display: none; }
}
@keyframes sheet-modal-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.sheet-handle {
  width: 36px; height: 4px;
  margin: 4px auto 14px;
  border-radius: 2px;
  background: var(--text-3);
  opacity: .5;
}

.sheet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 4px;
  text-align: left;
  color: var(--text-1);
  font-size: var(--t-title-sm-size);
  font-weight: 700;
  border-bottom: 1px solid var(--divider);
}
.sheet-item:last-child { border-bottom: 0; }
.sheet-item.danger { color: var(--danger); }
.sheet-item .sub {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: var(--t-body-md-size);
  font-weight: 400;
}

.dialog {
  position: fixed;
  left: calc(50% + var(--rail-width) / 2); top: 50%;
  transform: translate(-50%, -50%);
  width: min(340px, calc(100vw - 48px));
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--sheet);
  animation: dialog-in 260ms var(--spring) both;
  corner-shape: superellipse(1.5);
}
@keyframes dialog-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.94); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.dialog.leaving { animation: fade-out 160ms linear both; }
.dialog-actions { display: flex; gap: 10px; margin-top: 20px; }
.dialog-actions > * { flex: 1; }

.toast-host {
  position: fixed;
  left: var(--rail-width); right: 0;
  bottom: calc(var(--kb) + var(--tabbar-height) + var(--safe-bottom) + 16px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 16px;
}
@media (min-width: 1024px) {
  .toast-host { bottom: calc(24px + var(--safe-bottom)); }
}
.toast {
  max-width: min(100%, 420px);
  padding: 13px 18px;
  border-radius: var(--r-sm);
  background: var(--sheet);
  color: var(--text-1);
  font-size: var(--t-body-lg-size);
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  animation: toast-in 300ms var(--spring) both;
  corner-shape: superellipse(1.5);
}
.toast.leaving { animation: toast-out 220ms var(--spring-soft) both; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

.topbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px 10px 14px;
  flex: none;
}
.topbar .title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: var(--t-title-md-size);
  font-weight: 700;
}
.topbar.left-title .title { text-align: left; padding-left: 2px; }

.topbar .slot { width: 34px; flex: none; display: flex; justify-content: center; }

.banner {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  border-radius: calc(14px * var(--r-k));
  background: var(--card);
  border-left: 3px solid var(--warning);
  corner-shape: superellipse(1.5);
}
.banner .icon { color: var(--warning); margin-top: 1px; }
.banner.danger { border-left-color: var(--danger); }
.banner.danger .icon { color: var(--danger); }
.banner-more { margin-top: 8px; align-self: flex-start; }

.stale-notice { padding: 6px 4px; color: var(--text-3); }

.divider { height: 1px; background: var(--divider); }

.usertext-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.linkout-target {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--card);
  corner-shape: superellipse(1.5);
}
.linkout-target .icon { color: var(--text-3); margin-top: 2px; flex: none; }
.linkout-url { overflow-wrap: anywhere; margin-top: 2px; }

.linkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 10px;
}

.link-card {
  margin-top: 10px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--divider);
  corner-shape: superellipse(1.5);
}
.post-card .link-card { background: transparent; }

.link-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  background: var(--divider);
}

.link-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
}

.link-card-plain { cursor: pointer; }
.link-card-plain:active { transform: scale(.99); }

.link-card-out {
  align-self: flex-start;
  margin-top: 6px;
  color: var(--accent);
  font-size: var(--t-label-md-size);
  line-height: var(--t-label-md-lh);
  font-weight: 600;
}

.link-card-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--divider);
  cursor: pointer;
}
.link-card-video-thumb .link-card-thumb {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

.link-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-card-play .icon {
  color: #fff;
  padding: 12px 12px 12px 15px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.link-card-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.app-banner {
  position: fixed;
  left: calc(50% + var(--rail-width) / 2);
  transform: translateX(-50%);
  bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 10px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(calc(100% - 24px), calc(var(--app-max-width) - 24px));
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: var(--sheet);
  color: var(--text-1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  animation: app-banner-in 320ms var(--spring) both;
}
@keyframes app-banner-in {
  from { transform: translateX(-50%) translate3d(0, 140%, 0); }
  to   { transform: translateX(-50%) translate3d(0, 0, 0); }
}
.app-banner .icon { color: var(--text-3); flex: none; }
.app-banner .pill.small { padding: 6px 14px; }
#tabbar[hidden] ~ .overlay-root .app-banner {
  bottom: calc(var(--safe-bottom) + 14px);
}
@media (min-width: 1024px) {
  .app-banner,
  #tabbar[hidden] ~ .overlay-root .app-banner {
    bottom: calc(var(--safe-bottom) + 16px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .post-card:hover, .search-post:hover {
    background: color-mix(in srgb, var(--text-1) 5%, var(--card));
  }
  .post-card { cursor: pointer; }
  button.settings-row:hover, .sheet-item:hover, .notification-row:hover,
  .school-row:hover, .user-row:hover, .reason-row:hover, .grade-option:hover {
    background: color-mix(in srgb, var(--text-1) 5%, transparent);
  }
  .icon-btn:hover, .comment-more:hover, .post-foot .more:hover {
    background: color-mix(in srgb, var(--text-1) 8%, transparent);
    color: var(--text-1);
  }
  .pill:hover:not(:disabled),
  .follow-chip:hover, .board-chip:hover, .tab-chip:hover, .date-pill:hover,
  .scope-chip:hover, .relay-entry:hover, .continue-btn:hover:not(:disabled),
  .google-btn:hover:not(:disabled), .compose-fab:hover:not(:disabled) {
    filter: brightness(1.12);
  }
  .more-link:hover, .text-btn:hover, .send-btn:not(:disabled):hover { color: var(--accent); }
  .tabbar:not(.rail) .tab-item:hover { color: var(--accent-2); }
  .usertext-link:hover { text-decoration-thickness: 2px; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .tab-item:hover { background: color-mix(in srgb, var(--text-1) 7%, transparent); }
}

@media (hover: hover) and (pointer: fine) {
  .scroll, .sheet, .mention-list, .onboarding-body {
    scrollbar-width: thin;
    scrollbar-color: var(--divider) transparent;
  }
  .scroll::-webkit-scrollbar, .sheet::-webkit-scrollbar { width: 10px; }
  .scroll::-webkit-scrollbar-thumb, .sheet::-webkit-scrollbar-thumb {
    background: var(--divider);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 6px;
  }
  .scroll::-webkit-scrollbar-thumb:hover, .sheet::-webkit-scrollbar-thumb:hover {
    background: var(--text-3);
    background-clip: content-box;
  }
}

.offline-bar {
  position: fixed;
  top: 0;
  left: var(--rail-width);
  right: 0;
  z-index: 50;
  background: #484848;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  padding-top: calc(var(--safe-top-raw) + 8px);
}
.offline-bar[hidden] { display: none; }

:root.is-offline { --safe-top: 0px; }
:root.is-offline .stage { top: calc(var(--safe-top-raw) + var(--offline-bar-h)); }

.oscroll-thumb {
  position: absolute;
  top: 0;
  right: 4px;
  z-index: 6;
  width: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms linear, background 140ms linear;
}
.oscroll-thumb.visible { opacity: 1; pointer-events: auto; }
.oscroll-thumb.dragging, .oscroll-thumb:hover { background: rgba(255, 255, 255, .5); }
@media (prefers-reduced-motion: reduce) {
  .oscroll-thumb { transition: none; }
}
:root[data-theme='light'] .oscroll-thumb { background: rgba(0, 0, 0, .3); }
:root[data-theme='light'] .oscroll-thumb.dragging,
:root[data-theme='light'] .oscroll-thumb:hover { background: rgba(0, 0, 0, .45); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .oscroll-thumb { background: rgba(0, 0, 0, .3); }
  :root:not([data-theme]) .oscroll-thumb.dragging,
  :root:not([data-theme]) .oscroll-thumb:hover { background: rgba(0, 0, 0, .45); }
}
