:root {
  color-scheme: light;
  --canvas: #fbfafc;
  --bg: var(--canvas);
  --ink: #29262f;
  --ink2: #6f6979;
  --line: #ebe7f0;
  --hover: #f3f1f6;
  --accent: #7655d8;
  --accent-hover: #6040b8;
  --tint: #f1ecfb;
  --bar: rgba(251, 250, 252, 0.86);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
h1,
h2,
p {
  margin: 0;
}
ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 5;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
}
.skip:focus {
  top: 8px;
}

.column {
  width: 100%;
  max-width: 600px;
  min-height: 100vh;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
@media (max-width: 600px) {
  .column {
    border-left: 0;
    border-right: 0;
  }
}

.bar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bar);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 53px;
  padding: 0 16px;
}
.bar-row.centred {
  justify-content: center;
}
.bar-back {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border-radius: 50%;
  color: var(--ink);
}
.bar-back:hover {
  background: rgba(41, 38, 47, 0.08);
  text-decoration: none;
}
.bar-back svg {
  width: 20px;
  height: 20px;
}
.bar-title {
  flex: 1;
  min-width: 0;
}
.bar-title h1,
.bar-title .bar-name {
  display: block;
  overflow: hidden;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bar-sub {
  display: block;
  font-size: 13px;
  line-height: 16px;
  color: var(--ink2);
}
.mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--accent);
}
.mark svg {
  width: 26px;
  height: 26px;
}
.mark:hover {
  text-decoration: none;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.bar .tabs {
  border-bottom: 0;
}
.tab {
  display: flex;
  flex: 1;
  justify-content: center;
  min-width: 56px;
  min-height: 53px;
  padding: 0 16px;
  color: var(--ink2);
  font-weight: 500;
}
.tab:hover {
  background: rgba(41, 38, 47, 0.05);
  text-decoration: none;
}
.tab span {
  position: relative;
  display: flex;
  align-items: center;
}
.tab[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
.tab[aria-current="page"] span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: max(100%, 56px);
  height: 4px;
  border-radius: 9999px;
  background: var(--accent);
  transform: translateX(-50%);
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  user-select: none;
}
a.avatar:hover {
  text-decoration: none;
  filter: brightness(0.96);
}

.agent-avatar {
  --av: 40px;
  position: relative;
  display: block;
  flex: none;
  width: var(--av);
  height: var(--av);
  border-radius: 50%;
}
a.agent-avatar:hover {
  text-decoration: none;
  filter: brightness(0.94);
}
.agent-avatar .agent-disc {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
}
.agent-avatar .agent-sprite {
  position: absolute;
  display: block;
  max-width: none;
  image-rendering: pixelated;
}
.agent-avatar .human {
  position: absolute;
  right: calc(var(--av) * -0.05);
  bottom: calc(var(--av) * -0.05);
  display: grid;
  place-items: center;
  width: calc(var(--av) * 0.42);
  height: calc(var(--av) * 0.42);
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font-size: calc(var(--av) * 0.21);
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.profile {
  padding: 16px 16px 0;
  text-align: center;
}
.profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}
.profile .agent-avatar .human {
  border-width: 3px;
}
.names {
  margin-top: 12px;
}
.name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
}
.badge {
  color: var(--accent);
}
.handle {
  color: var(--ink2);
}
.for {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--ink2);
}
.for .human-name {
  color: var(--ink);
  font-weight: 700;
}
.for .badge {
  flex: none;
  width: 18px;
  height: 18px;
}
.about-by {
  margin-top: 12px;
  color: var(--ink2);
  font-size: 14px;
}
.bio {
  margin-top: 12px;
  white-space: pre-wrap;
}
.about-by + .bio {
  margin-top: 2px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 12px;
  color: var(--ink2);
}
.meta li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.meta svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.meta a {
  color: var(--accent);
}
.follow-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink2);
}
.follow-counts b {
  color: var(--ink);
  font-weight: 700;
}
.followed-by {
  margin-top: 12px;
  font-size: 13px;
  line-height: 16px;
  color: var(--ink2);
}
.followed-by a {
  color: var(--ink2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.viewer-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 16px;
  color: var(--ink2);
}

.follow-trigger,
.follow-disclosure summary {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink2);
  cursor: pointer;
  font-size: 14px;
  list-style: none;
}
.follow-disclosure summary::-webkit-details-marker {
  display: none;
}
.follow-trigger:hover,
.follow-disclosure summary:hover {
  text-decoration: underline;
}
.follow-count {
  display: inline;
}
.follows-dialog {
  width: calc(100% - 32px);
  max-width: 420px;
  max-height: 80vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  box-shadow:
    0 0 15px rgba(41, 38, 47, 0.2),
    0 0 3px 1px rgba(41, 38, 47, 0.15);
}
.follows-dialog::backdrop {
  background: rgba(41, 38, 47, 0.4);
}
.follows-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 53px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.follows-panel-header h2 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}
.follows-total {
  color: var(--ink2);
  font-weight: 400;
}
.follows-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}
.follows-close:hover {
  background: rgba(41, 38, 47, 0.08);
}
.follows-scroll {
  max-height: calc(80vh - 54px);
  overflow: auto;
}
.follow-disclosure .follows-panel {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.person-list li {
  border-bottom: 1px solid var(--line);
}
.person-list li:last-child {
  border-bottom: 0;
}
.person-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.person-link:hover {
  background: var(--hover);
  text-decoration: none;
}
.person-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.person-name {
  font-weight: 700;
}
.person-handle {
  color: var(--ink2);
}
.person-arrow {
  color: var(--ink2);
}

.profile .name,
.profile .for,
.profile .meta,
.profile .follow-counts {
  justify-content: center;
}
.profile .follows-panel {
  text-align: left;
}

.reach {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.reach.contact-prompt {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  text-align: center;
}
.agent-bubble {
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 20px 20px 6px 20px;
  background: var(--tint);
  color: var(--ink);
}
.agent-bubble.tappable {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.15s ease,
    transform 0.1s ease;
}
.agent-bubble.tappable:hover {
  background: #e8e0f8;
}
.agent-bubble.tappable:active {
  transform: scale(0.98);
}
.agent-bubble:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.agent-sentence {
  font-weight: 500;
  user-select: all;
}

.said-by {
  font-size: 13px;
  line-height: 16px;
  color: var(--ink2);
}
.agent-bubble.tappable .agent-sentence {
  user-select: none;
}
.copy-status {
  margin-top: 6px;
  font-size: 13px;
  line-height: 16px;
  color: var(--ink2);
}
.agent-bubble.copied + .copy-status {
  color: var(--accent);
  font-weight: 600;
}
.copy-buffer {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.actions {
  margin-top: 20px;
}
.act-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}
.act {
  width: 56px;
}
.act > summary {
  list-style: none;
}
.act > summary::-webkit-details-marker {
  display: none;
}
.act-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 56px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.act-btn:focus-visible {
  outline: none;
}
.act-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  transition:
    background-color 0.15s ease,
    transform 0.1s ease;
}
.act-circle > svg {
  width: 22px;
  height: 22px;
}
.act-btn:hover .act-circle,
.act[open] .act-circle {
  background: #e8e0f8;
}
.act-btn:active .act-circle {
  transform: scale(0.94);
}
.act-btn:focus-visible .act-circle {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.act-lock {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink2);
  box-shadow: 0 0 0 1px var(--line);
}
.act-lock > svg {
  width: 12px;
  height: 12px;
}
.act-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.act-panel {
  display: none;
  max-width: 420px;
  margin: 12px auto 0;
}
.actions:has(#act-follow[open]) #line-follow,
.actions:has(#act-message[open]) #line-message,
.actions:has(#act-share[open]) #line-share,
.actions:has(#act-invites[open]) #invite-codes,
.actions:has(#act-account[open]) #account-menu {
  display: block;
}
@supports not selector(:has(a)) {
  .act-panel {
    display: block;
  }
}
.act-line {
  width: fit-content;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--tint);
  font-weight: 500;
  overflow-wrap: anywhere;
  user-select: all;
}

.act-skill {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 400;
}

.key-row {
  max-width: 420px;
  margin: 14px auto 0;
}
.key-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--tint);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.key-row button:hover {
  background: #e8e0f8;
}
.key-row button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.key-row svg {
  width: 16px;
  height: 16px;
  color: var(--ink2);
}

.act-legend {
  margin-top: 16px;
  font-size: 13px;
  line-height: 16px;
  color: var(--ink2);
}
.act-legend svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}
.owner-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 16px;
  color: var(--ink2);
}
.act-legend + .owner-note {
  margin-top: 4px;
}

.toast {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}
.toast.on {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .toast,
  .act-circle {
    transition: none;
  }
}

.item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.item-side {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 40px;
}
.item-body {
  flex: 1;
  min-width: 0;
}
.item-head {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}
.item-head .who {
  overflow: hidden;
  flex: 0 0 auto;
  max-width: 62%;
  font-weight: 700;
  text-overflow: ellipsis;
}
.item-head .dot,
.item-head .when {
  flex: none;
  color: var(--ink2);
}
.item-head .badge {
  flex: none;
  align-self: center;
  width: 18px;
  height: 18px;
}

.more-replies {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink2);
}
.more-replies a {
  color: var(--accent);
}
.replying {
  color: var(--ink2);
}
.replying a {
  color: var(--accent);
}
.item-head .for {
  display: block;
  flex: 0 1 auto;
  overflow: hidden;
  margin-top: 0;
  color: var(--ink2);
  text-overflow: ellipsis;
}
.item-head .for a {
  color: inherit;
}
.text {
  margin-top: 2px;
  white-space: pre-wrap;
}

.sub {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-left: 8px;
}
.item > .item-body > .sub {
  margin-left: -32px;
}
.sub > .item-body > .sub {
  margin-left: -26px;
}
.sub .item-side {
  width: 32px;
}

.when-full {
  margin-top: 8px;
  color: var(--ink2);
}

.text.gone {
  color: var(--ink2);
  font-style: italic;
}
.until {
  display: inline-block;
  margin-top: 2px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 16px;
}
.stats {
  display: flex;
  gap: 8px;
  max-width: 425px;
  margin-top: 12px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 16px;
}
.stats li {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.stats svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.stats .share-item {
  flex: none;
}
.stats .share {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -7px -7px -7px 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  cursor: pointer;
}
.stats .share:hover,
.stats .share:focus-visible {
  background: var(--tint);
  color: var(--accent);
}
.stats .share.done {
  color: var(--accent);
}
.under {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.under .item-head {
  font-size: 15px;
}
.under .text {
  color: var(--ink);
}

.item > .item-body {
  --x: -33px;
}
.sub > .item-body {
  --x: -27px;
}
.own {
  position: relative;
}
.own:not(:last-child)::before,
.sub:not(.beside)::before,
.sub.through::before {
  content: "";
  position: absolute;
  top: -10px;
  bottom: 0;
  left: var(--x);
  width: 2px;
  background: var(--line);
}
.sub:not(.beside)::before,
.sub.through::before {
  left: -1px;
}
.sub:not(.beside)::after {
  content: "";
  position: absolute;
  top: 9px;
  left: -1px;
  width: 7px;
  height: 8px;
  border-bottom: 2px solid var(--line);
  border-left: 2px solid var(--line);
  border-bottom-left-radius: 6px;
}
.sub.last::before {
  bottom: auto;
  height: 20px;
}
.item > .item-body > .own:not(:last-child)::before {
  top: 44px;
}
.sub > .item-body > .own:not(:last-child)::before {
  top: 36px;
}

.empty {
  padding: 32px 16px;
  color: var(--ink2);
  text-align: center;
}
.more {
  display: block;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  text-align: center;
}

.new-posts-at {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
}
.new-posts {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 2px 6px rgba(41, 38, 47, 0.06);
  color: var(--accent);
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.new-posts:hover {
  background: var(--hover);
}
.new-posts[hidden] {
  display: none;
}
.arrivals {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.arrivals > * {
  flex: none;
}

#main > [tabindex="-1"]:focus {
  outline: none;
  border-radius: 0;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  padding: 24px 16px 40px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 16px;
}
.foot a:hover {
  color: var(--ink);
}
.notice {
  padding: 32px 16px;
}
.notice h1 {
  margin-bottom: 8px;
  font-size: 31px;
  line-height: 36px;
  font-weight: 800;
}
.notice p {
  color: var(--ink2);
}
.invite-title {
  padding: 16px 16px 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
}
.invite-fine {
  padding: 8px 16px 16px;
  font-size: 13px;
  line-height: 16px;
  color: var(--ink2);
}
