:root {
  color-scheme: light;
  --ink: #11120f;
  --ink-soft: #292b25;
  --paper: #efede5;
  --paper-bright: #f8f6ef;
  --paper-dark: #dedbd0;
  --acid: #dcff52;
  --acid-soft: #edff9e;
  --coral: #ff6b4b;
  --blue: #6d8cff;
  --muted: #706f68;
  --line: rgba(17, 18, 15, 0.16);
  --line-dark: rgba(17, 18, 15, 0.3);
  --shadow: 0 24px 70px rgba(27, 28, 24, 0.11);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 13px;
  --shell: 1180px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 1%, rgba(220, 255, 82, 0.2), transparent 27rem),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

body.drawer-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hidden {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  color: var(--ink);
  background: var(--acid);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.page-noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--shell));
  height: 96px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--acid);
  background: var(--ink);
  transform: rotate(-2deg);
}

.brand-mark svg {
  width: 23px;
  fill: currentColor;
  stroke: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  letter-spacing: 0.08em;
}

.brand-copy strong {
  font-size: 15px;
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pill,
.admin-button,
.icon-button {
  height: 44px;
  border: 1px solid var(--line-dark);
  background: rgba(248, 246, 239, 0.68);
  backdrop-filter: blur(12px);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68bf42;
  box-shadow: 0 0 0 4px rgba(104, 191, 66, 0.15);
}

.icon-button,
.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.icon-button {
  width: 44px;
  padding: 0;
}

.icon-button svg {
  width: 19px;
}

.admin-button {
  gap: 8px;
  padding: 0 16px;
  color: var(--paper-bright);
  border-color: var(--ink);
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.admin-button svg {
  width: 18px;
}

.icon-button:hover,
.admin-button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 470px;
  padding: 72px 0 96px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow-line {
  width: 34px;
  height: 2px;
  background: var(--ink);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(58px, 7.7vw, 100px);
  font-weight: 820;
  line-height: 0.91;
  letter-spacing: -0.075em;
}

.hero h1 span {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.hero h1 span::after {
  position: absolute;
  z-index: -1;
  right: -10px;
  bottom: 1px;
  left: -8px;
  height: 23%;
  border-radius: 2px;
  background: var(--acid);
  content: "";
  transform: rotate(-1.2deg);
}

.hero-copy > p {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.hero-orbit {
  position: absolute;
  top: 52px;
  right: 28px;
  width: 310px;
  height: 310px;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.orbit-one {
  inset: 0;
  animation: orbit-spin 24s linear infinite;
}

.orbit-one::before,
.orbit-two::before {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.orbit-one::before {
  top: 28px;
  left: 52px;
}

.orbit-two {
  inset: 40px;
  border-style: dashed;
  opacity: 0.65;
  animation: orbit-spin 17s linear infinite reverse;
}

.orbit-two::before {
  right: 12px;
  bottom: 36px;
  width: 8px;
  height: 8px;
  background: var(--blue);
}

.orbit-core {
  position: absolute;
  inset: 88px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 50%;
  color: var(--paper-bright);
  background: var(--ink);
  box-shadow: 0 0 0 12px rgba(17, 18, 15, 0.05);
}

.orbit-core span {
  font-size: 42px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.06em;
}

.orbit-core small {
  margin-top: 8px;
  color: var(--acid);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.orbit-label {
  position: absolute;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.orbit-label-top {
  top: 50px;
  right: 3px;
  transform: rotate(5deg);
}

.orbit-label-bottom {
  bottom: 32px;
  left: 8px;
  color: var(--ink);
  background: var(--acid);
  transform: rotate(-5deg);
}

.hero-stats {
  position: absolute;
  bottom: 30px;
  left: 0;
  display: flex;
  align-items: stretch;
  width: min(660px, 65%);
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.stat-item {
  display: flex;
  min-width: 105px;
  flex-direction: column;
  gap: 7px;
}

.stat-item-wide {
  min-width: 170px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.stat-value-small {
  overflow: hidden;
  max-width: 190px;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.stat-divider {
  width: 1px;
  margin: 0 28px;
  background: var(--line);
}

.filter-bar {
  position: sticky;
  z-index: 12;
  top: 0;
  border-block: 1px solid var(--line);
  background: rgba(239, 237, 229, 0.9);
  backdrop-filter: blur(16px);
}

.filter-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.account-filters {
  display: flex;
  overflow-x: auto;
  align-items: center;
  gap: 8px;
  scrollbar-width: none;
}

.account-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.filter-chip.active {
  color: var(--paper-bright);
  background: var(--ink);
}

.chip-avatar {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-size: 9px;
  font-weight: 850;
}

.chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-filters {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 246, 239, 0.68);
}

.type-filter {
  min-width: 54px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.type-filter.active {
  color: var(--ink);
  background: var(--acid);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 68px;
  padding-block: 72px 110px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--coral);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.result-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.feed-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #d9b63d;
  border-radius: 12px;
  color: #655314;
  background: #fff5c8;
  font-size: 12px;
  line-height: 1.55;
}

.timeline-feed {
  position: relative;
}

.date-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.date-divider:first-child {
  margin-top: 0;
}

.date-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.date-divider span {
  color: var(--ink);
}

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 12px;
  padding: 24px 24px 20px;
  overflow: hidden;
  border: 1px solid rgba(17, 18, 15, 0.13);
  border-radius: var(--radius-md);
  background: rgba(248, 246, 239, 0.84);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.post-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: transparent;
  content: "";
}

.post-card:hover {
  border-color: rgba(17, 18, 15, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.post-card:hover::before {
  background: var(--acid);
}

.post-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(17, 18, 15, 0.12);
  border-radius: 16px;
  color: var(--ink);
  background: var(--acid);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.author-line {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.author-name {
  overflow: hidden;
  max-width: 220px;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified-icon {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 9px;
  font-weight: 900;
}

.author-handle,
.post-time {
  color: var(--muted);
  font-size: 11px;
}

.post-time {
  flex: 0 0 auto;
  margin-top: 2px;
}

.post-meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
}

.post-type-badge,
.source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  color: var(--muted);
  background: var(--paper-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.source-badge {
  color: #675312;
  background: #f9e793;
}

.post-text {
  margin: 18px 0 0;
  color: #191a17;
  font-family: ui-serif, Georgia, "Songti SC", "STSong", serif;
  font-size: 19px;
  line-height: 1.62;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.post-text a {
  border-bottom: 1px solid currentColor;
  color: #3d5be1;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 14px;
}

.media-grid.single {
  grid-template-columns: 1fr;
}

.media-item {
  position: relative;
  display: block;
  min-height: 180px;
  overflow: hidden;
  background: var(--paper-dark);
}

.media-item img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: 420px;
  object-fit: cover;
}

.video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(17, 18, 15, 0.76);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(6px);
}

.video-badge svg {
  width: 17px;
  fill: currentColor;
  stroke: none;
  transform: translateX(1px);
}

.translation-box {
  position: relative;
  margin-top: 18px;
  padding: 16px 18px 16px 20px;
  border-left: 3px solid var(--coral);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 107, 75, 0.075);
}

.translation-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.translation-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.post-metrics,
.post-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.metric svg {
  width: 14px;
}

.post-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.post-action:hover {
  color: var(--ink);
  background: var(--paper-dark);
}

.post-action svg {
  width: 15px;
}

.translate-button {
  color: var(--ink);
  background: var(--acid);
}

.translate-button.loading svg {
  animation: orbit-spin 0.8s linear infinite;
}

.load-more {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.load-more svg {
  width: 17px;
}

.empty-state {
  padding: 70px 24px;
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  font-size: 27px;
  font-weight: 850;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.empty-state p {
  max-width: 380px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.skeleton-card {
  min-height: 190px;
}

.skeleton-avatar,
.skeleton-line {
  background: linear-gradient(90deg, #e4e1d8 25%, #f5f3ec 50%, #e4e1d8 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
}

.skeleton-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.skeleton-body {
  padding-top: 3px;
}

.skeleton-line {
  width: 100%;
  height: 13px;
  margin-bottom: 14px;
  border-radius: 20px;
}

.skeleton-line.short {
  width: 38%;
  margin-bottom: 28px;
}

.skeleton-line.medium {
  width: 68%;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(248, 246, 239, 0.72);
}

.people-card {
  padding: 20px;
}

.side-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.side-index {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.people-list {
  margin-top: 12px;
}

.person-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
}

.person-select {
  cursor: pointer;
}

.person-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: var(--ink);
  background: var(--acid);
  font-size: 14px;
  font-weight: 850;
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-info {
  min-width: 0;
  flex: 1;
}

.person-info strong,
.person-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-info strong {
  font-size: 13px;
}

.person-info span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.person-post-count {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.person-loading .person-avatar,
.person-loading .person-copy {
  background: var(--paper-dark);
  animation: skeleton 1.5s infinite;
}

.person-loading .person-copy {
  width: 110px;
  height: 13px;
  border-radius: 10px;
}

.add-person-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  border: 1px dashed var(--line-dark);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.add-person-button svg {
  width: 15px;
}

.principle-card {
  position: relative;
  min-height: 310px;
  padding: 24px;
  overflow: hidden;
  color: var(--paper-bright);
  background: var(--ink);
}

.side-card-heading.light {
  position: relative;
  z-index: 2;
  justify-content: flex-start;
  color: var(--acid);
}

.principle-card h3 {
  position: relative;
  z-index: 2;
  margin: 92px 0 14px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.principle-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(248, 246, 239, 0.62);
  font-size: 11px;
  line-height: 1.75;
}

.radar-mini {
  position: absolute;
  top: -70px;
  right: -55px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(220, 255, 82, 0.22);
  border-radius: 50%;
}

.radar-mini span {
  position: absolute;
  border: 1px solid rgba(220, 255, 82, 0.18);
  border-radius: 50%;
}

.radar-mini span:first-child {
  inset: 35px;
}

.radar-mini span:nth-child(2) {
  inset: 76px;
}

.radar-mini i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--acid), transparent);
  transform-origin: left center;
  animation: orbit-spin 6s linear infinite;
}

.sync-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(248, 246, 239, 0.52);
}

.sync-card.warning {
  border-color: rgba(217, 182, 61, 0.7);
  background: #fff5c8;
}

.sync-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--paper-dark);
}

.sync-icon svg {
  width: 16px;
}

.sync-card strong,
.sync-card span {
  display: block;
}

.sync-card strong {
  font-size: 11px;
}

.sync-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.footer-brand span {
  margin-inline: 6px;
  color: var(--coral);
}

.footer p {
  font-size: 10px;
}

.mobile-nav {
  display: none;
}

.drawer-root {
  position: fixed;
  z-index: 100;
  inset: 0;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(10, 11, 9, 0.58);
  cursor: default;
  backdrop-filter: blur(5px);
  animation: fade-in 180ms ease both;
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(520px, 100%);
  height: 100%;
  flex-direction: column;
  overflow-y: auto;
  padding: 34px;
  background: var(--paper-bright);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.2);
  animation: slide-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.drawer-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--coral);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.drawer-header h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.drawer-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
}

.drawer-close svg {
  width: 19px;
}

.drawer-loading {
  display: grid;
  flex: 1;
  place-content: center;
  justify-items: center;
  color: var(--muted);
  font-size: 12px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: orbit-spin 0.8s linear infinite;
}

.login-panel {
  max-width: 360px;
  margin: auto;
  padding-block: 50px;
}

.login-graphic {
  position: relative;
  width: 94px;
  height: 94px;
  margin-bottom: 30px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.login-graphic span {
  position: absolute;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.login-graphic span:first-child {
  inset: 14px;
}

.login-graphic span:nth-child(2) {
  inset: 31px;
  background: var(--ink);
}

.login-graphic i {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 15px;
  height: 15px;
  border: 4px solid var(--paper-bright);
  border-radius: 50%;
  background: var(--acid);
}

.login-panel h3 {
  margin: 0 0 10px;
  font-size: 27px;
  letter-spacing: -0.045em;
}

.login-panel > p,
.add-account-form > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.login-panel form {
  margin-top: 30px;
}

.login-panel label,
.add-account-form label {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 800;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  height: 52px;
  padding: 0 66px 0 15px;
  border: 1px solid var(--line-dark);
  border-radius: 13px;
  outline: none;
  background: white;
}

.password-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(109, 140, 255, 0.15);
}

.password-field button {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.primary-button {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: var(--acid);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.form-error {
  margin: 9px 0 0 !important;
  color: #b73525 !important;
  font-size: 11px !important;
}

.admin-panel {
  padding-block: 22px 40px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.api-state {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-state > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #999;
  box-shadow: 0 0 0 4px rgba(153, 153, 153, 0.14);
}

.api-state.live > span {
  background: #68bf42;
  box-shadow: 0 0 0 4px rgba(104, 191, 66, 0.14);
}

.api-state.snapshot > span {
  background: #d9a520;
  box-shadow: 0 0 0 4px rgba(217, 165, 32, 0.14);
}

.api-state strong,
.api-state small {
  display: block;
}

.api-state strong {
  font-size: 11px;
}

.api-state small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.text-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.add-account-form {
  margin-top: 24px;
  padding: 20px;
  border-radius: 17px;
  background: var(--ink);
  color: var(--paper-bright);
}

.add-account-form > p {
  color: rgba(248, 246, 239, 0.56);
}

.username-field {
  display: flex;
  height: 50px;
  align-items: center;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 12px;
  background: white;
}

.username-field > span {
  padding-left: 15px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.username-field input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 8px 0 2px;
  border: 0;
  outline: none;
  color: var(--ink);
}

.username-field button {
  height: 38px;
  margin-right: 6px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--acid);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.admin-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}

.admin-list-heading span,
.admin-list-heading small {
  display: block;
}

.admin-list-heading span {
  font-size: 14px;
  font-weight: 850;
}

.admin-list-heading small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.sync-all-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.sync-all-button svg {
  width: 14px;
}

.sync-all-button.loading svg {
  animation: orbit-spin 0.8s linear infinite;
}

.admin-account-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.admin-account-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-account-copy {
  min-width: 0;
  flex: 1;
}

.admin-account-copy strong,
.admin-account-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-copy strong {
  font-size: 13px;
}

.admin-account-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.account-state {
  padding: 5px 8px;
  border-radius: 999px;
  color: #317121;
  background: #dcf2d4;
  font-size: 9px;
  font-weight: 800;
}

.account-state.paused {
  color: #6b6250;
  background: var(--paper-dark);
}

.account-error {
  margin: 11px 0 0;
  padding: 9px 11px;
  border-radius: 8px;
  color: #735f1f;
  background: #fff5c8;
  font-size: 9px;
  line-height: 1.45;
}

.admin-account-actions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  padding-left: 54px;
}

.account-action {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}

.account-action.danger {
  margin-left: auto;
  color: #b73525;
}

.toast-region {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  display: flex;
  width: min(360px, calc(100% - 48px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  color: white;
  background: var(--ink);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
  font-size: 11px;
  line-height: 1.45;
  animation: toast-in 220ms ease both;
}

.toast::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
  content: "";
}

.toast.error::before {
  background: var(--coral);
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes skeleton {
  to {
    background-position: -200% 0;
  }
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    top: 70px;
    right: 0;
    width: 250px;
    height: 250px;
    opacity: 0.72;
  }

  .orbit-core {
    inset: 72px;
  }

  .orbit-core span {
    font-size: 32px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
  }
}

@media (max-width: 760px) {
  .shell,
  .topbar {
    width: min(calc(100% - 32px), var(--shell));
  }

  body {
    padding-bottom: calc(76px + var(--safe-bottom));
  }

  .topbar {
    height: 76px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .live-pill,
  .topbar .icon-button,
  .admin-button span {
    display: none;
  }

  .admin-button {
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .hero {
    min-height: 470px;
    padding: 48px 0 100px;
    overflow: hidden;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 72px);
    line-height: 0.95;
  }

  .hero-copy > p {
    max-width: 300px;
    margin-top: 23px;
    font-size: 14px;
    line-height: 1.7;
  }

  .desktop-break {
    display: none;
  }

  .hero-orbit {
    top: auto;
    right: -82px;
    bottom: 15px;
    width: 230px;
    height: 230px;
    opacity: 0.45;
  }

  .orbit-core {
    inset: 67px;
  }

  .hero-stats {
    bottom: 24px;
    width: calc(100% - 95px);
    padding-top: 17px;
  }

  .stat-item {
    min-width: 70px;
  }

  .stat-item-wide {
    min-width: 110px;
  }

  .stat-value {
    font-size: 21px;
  }

  .stat-value-small {
    max-width: 115px;
    font-size: 12px;
  }

  .stat-label {
    font-size: 8px;
  }

  .stat-divider {
    margin: 0 15px;
  }

  .filter-bar {
    top: 0;
  }

  .filter-inner {
    display: block;
    min-height: auto;
    padding-block: 12px;
  }

  .account-filters {
    margin-right: -16px;
    padding-right: 16px;
  }

  .type-filters {
    display: none;
  }

  .content-grid {
    display: block;
    padding-block: 44px 70px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .post-card {
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 16px 15px;
    border-radius: 17px;
  }

  .post-card:hover {
    box-shadow: none;
    transform: none;
  }

  .post-avatar {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    font-size: 15px;
  }

  .author-name {
    max-width: 138px;
    font-size: 13px;
  }

  .author-handle {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .post-time {
    font-size: 9px;
  }

  .post-text {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.58;
  }

  .post-footer {
    align-items: flex-end;
  }

  .post-metrics {
    gap: 10px;
  }

  .post-actions {
    gap: 2px;
  }

  .post-action {
    min-height: 36px;
    padding-inline: 9px;
  }

  .post-action.copy-action span,
  .post-action.open-action span {
    display: none;
  }

  .media-item,
  .media-item img {
    min-height: 140px;
  }

  .sidebar {
    margin-top: 42px;
  }

  .principle-card {
    display: none;
  }

  .footer {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    z-index: 40;
    right: 12px;
    bottom: calc(10px + var(--safe-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 62px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 19px;
    color: rgba(255, 255, 255, 0.58);
    background: rgba(17, 18, 15, 0.94);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
  }

  .mobile-nav-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 14px;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-nav-item.active {
    color: var(--ink);
    background: var(--acid);
  }

  .mobile-nav-item svg {
    width: 17px;
  }

  .drawer {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(92dvh, 860px);
    padding: 24px 20px calc(26px + var(--safe-bottom));
    border-radius: 24px 24px 0 0;
    animation-name: sheet-in;
  }

  .drawer-header h2 {
    font-size: 26px;
  }

  .toast-region {
    right: 16px;
    bottom: calc(86px + var(--safe-bottom));
    width: calc(100% - 32px);
  }
}

@media (max-width: 390px) {
  .shell,
  .topbar {
    width: calc(100% - 24px);
  }

  .brand-copy {
    display: none;
  }

  .hero h1 {
    font-size: 51px;
  }

  .hero-stats {
    width: calc(100% - 65px);
  }

  .stat-divider {
    margin-inline: 10px;
  }

  .post-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding-inline: 13px;
  }

  .post-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .author-name {
    max-width: 110px;
  }

  .post-metrics .metric:nth-child(n + 3) {
    display: none;
  }
}

@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
