/* node_modules/@cube-drone/marquee-css/marquee.css */
.mq-doc {
  line-height: 1.5;
  overflow-wrap: break-word;
}
.mq-doc :is(img, video, audio) {
  max-width: 100%;
}
.mq-doc img.mq-emoji {
  height: 1.2em;
  width: auto;
  vertical-align: -0.25em;
}
.mq-doc blockquote {
  margin-block: 1em;
  margin-inline: 0;
  padding: 0.35rem 1rem;
  border-left: 3px solid rgba(127, 127, 127, 0.5);
  background: rgba(127, 127, 127, 0.08);
  border-radius: 0 0.25rem 0.25rem 0;
}
.mq-doc blockquote > :first-child {
  margin-top: 0;
}
.mq-doc blockquote > :last-child {
  margin-bottom: 0;
}
.mq-doc pre.mq-code {
  overflow-x: auto;
  padding: 0.75rem;
  background: rgba(127, 127, 127, 0.12);
  border-radius: 0.25rem;
}
.mq-doc .mq-h7,
.mq-doc .mq-h8 {
  font-weight: bold;
  margin-block: 1em;
}
.mq-doc .mq-h7 {
  font-size: 0.85em;
}
.mq-doc .mq-h8 {
  font-size: 0.75em;
}
.mq-center {
  text-align: center;
}
.mq-right {
  text-align: right;
}
.mq-left {
  text-align: left;
}
.mq-center .mq-table {
  margin-inline: auto;
}
.mq-right .mq-table {
  margin-left: auto;
}
.mq-left .mq-table {
  margin-right: auto;
}
.mq-table {
  border-collapse: collapse;
  margin-block: 1em;
}
.mq-table :is(td, th) {
  border: 1px solid rgba(127, 127, 127, 0.45);
  padding: 0.35rem 0.75rem;
  text-align: left;
}
.mq-table th {
  background: rgba(127, 127, 127, 0.12);
}
.mq-spoiler {
  filter: blur(0.35em);
  background: rgba(127, 127, 127, 0.22);
  border-radius: 0.2em;
  cursor: pointer;
  transition: filter 0.12s ease;
}
.mq-spoiler:hover,
.mq-spoiler:focus {
  filter: none;
}
.mq-root .mq-spoiler:hover,
.mq-root .mq-spoiler:focus {
  filter: blur(0.35em);
}
.mq-root .mq-spoiler[data-mq-revealed] {
  filter: none;
  background: none;
  cursor: text;
}
.mq-spoiler-block {
  display: block;
  padding: 0.5rem;
}
.mq-conflict {
  border: 1px solid rgba(200, 70, 70, 0.5);
  border-radius: 0.375rem;
  margin: 1rem 0;
  background: rgba(200, 70, 70, 0.07);
}
.mq-variant {
  padding: 0.5rem 0.75rem;
}
.mq-variant + .mq-variant {
  border-top: 1px solid rgba(200, 70, 70, 0.25);
}
.mq-variant-head {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
  font-size: 0.85em;
  opacity: 0.75;
}
.mq-variant-label {
  font-weight: 600;
}
.mq-variant-when {
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.mq-variant-base {
  opacity: 0.6;
}
.mq-color {
  color: var(--mq-color);
}
.mq-page,
.mq-section {
  background-color: var(--mq-bg, transparent);
  background-image: var(--mq-bg-tile, none);
  color: var(--mq-color, inherit);
}
.mq-media .mq-embed {
  width: var(--mq-media-w, auto);
  height: var(--mq-media-h, auto);
}
.mq-media img.mq-embed,
.mq-media video.mq-embed {
  object-fit: cover;
}
.mq-font-sans {
  font-family: system-ui, sans-serif;
}
.mq-font-serif {
  font-family: Georgia, serif;
}
.mq-font-mono {
  font-family: ui-monospace, monospace;
}
.mq-font-comic {
  font-family:
    "Comic Sans MS",
    "Comic Neue",
    cursive;
}
.mq-font-radio-canada {
  font-family:
    "Radio Canada",
    system-ui,
    sans-serif;
}
.mq-font-atkinson-hyperlegible {
  font-family:
    "Atkinson Hyperlegible",
    system-ui,
    sans-serif;
}
.mq-font-lexend {
  font-family:
    Lexend,
    system-ui,
    sans-serif;
}
.mq-font-zilla-slab {
  font-family:
    "Zilla Slab",
    Georgia,
    serif;
}
.mq-font-playfair-display {
  font-family:
    "Playfair Display",
    Georgia,
    serif;
}
.mq-font-cormorant {
  font-family:
    Cormorant,
    Georgia,
    serif;
}
.mq-font-im-fell-english {
  font-family:
    "IM Fell English",
    Georgia,
    serif;
}
.mq-font-uncial-antiqua {
  font-family:
    "Uncial Antiqua",
    Georgia,
    serif;
}
.mq-font-unifraktur {
  font-family:
    UnifrakturMaguntia,
    Georgia,
    serif;
}
.mq-font-jetbrains-mono {
  font-family:
    "JetBrains Mono",
    ui-monospace,
    monospace;
}
.mq-font-vt323 {
  font-family:
    VT323,
    ui-monospace,
    monospace;
}
.mq-font-press-start {
  font-family:
    "Press Start 2P",
    ui-monospace,
    monospace;
}
.mq-font-silkscreen {
  font-family:
    Silkscreen,
    ui-monospace,
    monospace;
}
.mq-font-major-mono {
  font-family:
    "Major Mono Display",
    ui-monospace,
    monospace;
}
.mq-font-orbitron {
  font-family:
    Orbitron,
    system-ui,
    sans-serif;
}
.mq-font-bungee {
  font-family:
    Bungee,
    system-ui,
    sans-serif;
}
.mq-font-monoton {
  font-family:
    Monoton,
    system-ui,
    sans-serif;
}
.mq-font-creepster {
  font-family:
    Creepster,
    system-ui,
    sans-serif;
}
.mq-font-special-elite {
  font-family:
    "Special Elite",
    ui-monospace,
    monospace;
}
.mq-font-fredericka {
  font-family: "Fredericka the Great", cursive;
}
.mq-font-lobster {
  font-family: Lobster, cursive;
}
.mq-font-pacifico {
  font-family: Pacifico, cursive;
}
.mq-font-caveat {
  font-family: Caveat, cursive;
}
.mq-font-comic-neue {
  font-family:
    "Comic Neue",
    "Comic Sans MS",
    cursive;
}
.mq-font-audiowide {
  font-family:
    Audiowide,
    system-ui,
    sans-serif;
}
.mq-font-kablammo {
  font-family: Kablammo, cursive;
}
.mq-font-henny-penny {
  font-family: "Henny Penny", cursive;
}
.mq-font-oi {
  font-family:
    Oi,
    Georgia,
    serif;
}
.mq-font-rye {
  font-family:
    Rye,
    Georgia,
    serif;
}
.mq-font-bitcount {
  font-family:
    Bitcount,
    ui-monospace,
    monospace;
}
.mq-font-quicksand {
  font-family:
    Quicksand,
    system-ui,
    sans-serif;
}
.mq-size-1 {
  font-size: x-small;
}
.mq-size-2 {
  font-size: small;
}
.mq-size-3 {
  font-size: medium;
}
.mq-size-4 {
  font-size: large;
}
.mq-size-5 {
  font-size: x-large;
}
.mq-size-6 {
  font-size: xx-large;
}
.mq-size-7 {
  font-size: xxx-large;
}
big {
  font-size: larger;
}
.mq-placeholder,
.mq-unknown,
.mq-invalid {
  border: 1px dashed rgba(136, 136, 136, 0.66);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  margin: 0.5rem 0;
}
.mq-placeholder::before,
.mq-invalid::before {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  opacity: 0.66;
}
.mq-placeholder::before {
  content: "\2b1a  " attr(data-directive);
}
.mq-unknown::before {
  content: "\2b1a  " attr(data-directive) " (unsupported here)";
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 0.8em;
  opacity: 0.6;
}
.mq-invalid::before {
  content: "\2702  invalid markup: " attr(data-reason);
}
.mq-blocked {
  text-decoration: underline dotted;
}
.mq-turbolink a {
  text-decoration: none;
}
.mq-turbolink-rich {
  margin: 0.75rem 0;
  border: 1px solid rgba(136, 136, 136, 0.33);
  border-left-width: 4px;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
}
.mq-turbolink-source {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8em;
  opacity: 0.6;
  overflow-wrap: anywhere;
}
.mq-noteref {
  font-size: 0.75em;
  opacity: 0.8;
}
.mq-notes {
  margin: 0.25rem 0 1rem;
}
.mq-note {
  margin: 0.15rem 0;
  font-size: 0.85em;
  font-style: italic;
  opacity: 0.85;
}
.mq-note-num {
  font-style: normal;
  font-size: 0.75em;
  vertical-align: super;
  margin-right: 0.3em;
  opacity: 0.8;
}
.mq-marquee {
  display: inline-block;
  width: 100%;
  vertical-align: bottom;
}
.mq-marquee-inner {
  display: inline-block;
}
.mq-bounce,
.mq-jitter,
.mq-wave,
.mq-rubber {
  display: inline-block;
}
.mq-rainbow {
  color: #ff004c;
}
.mq-split .mq-l {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .mq-rainbow.mq-split,
  .mq-bounce.mq-split,
  .mq-jitter.mq-split,
  .mq-wave.mq-split,
  .mq-rubber.mq-split,
  .mq-blink.mq-split,
  .mq-fadein.mq-split {
    animation: none;
  }
  .mq-rainbow.mq-split .mq-l {
    animation: mq-rainbow 3s linear infinite;
    animation-delay: calc(var(--mq-o, 0) * -3s);
  }
  .mq-bounce.mq-split .mq-l {
    animation: mq-bounce 0.6s ease-in-out infinite alternate;
    animation-delay: calc(var(--mq-o, 0) * -1.2s);
  }
  .mq-jitter.mq-split .mq-l {
    animation: mq-jitter 0.18s steps(2) infinite;
    animation-delay: calc(var(--mq-o, 0) * -0.18s);
  }
  .mq-wave.mq-split .mq-l {
    animation: mq-wave 1.4s ease-in-out infinite;
    animation-delay: calc(var(--mq-o, 0) * -1.4s);
  }
  .mq-rubber.mq-split .mq-l {
    animation: mq-rubber 0.7s ease-in-out infinite alternate;
    animation-delay: calc(var(--mq-o, 0) * -1.4s);
  }
  .mq-typewriter.mq-split .mq-l {
    animation: mq-tw-in 0.4s steps(1, start) both;
    animation-delay: calc(var(--mq-o, 0) * var(--mq-tw-step, 0.07s));
  }
  .mq-fadein {
    animation: mq-fade-in 1.2s ease-out both;
  }
  .mq-fadein.mq-split .mq-l {
    animation: mq-fade-in 0.9s ease-out both;
    animation-delay: calc(var(--mq-o, 0) * var(--mq-fi-step, 0.06s));
  }
  .mq-blink.mq-split .mq-l {
    animation: mq-blink calc(1.2s / max(var(--mq-rate, 1), 1)) step-end infinite;
    animation-delay: calc(var(--mq-o, 0) * (-1.2s / max(var(--mq-rate, 1), 1)));
  }
  .mq-marquee {
    overflow: hidden;
    white-space: nowrap;
  }
  .mq-marquee-inner {
    padding-left: 100%;
    animation: mq-marquee calc(16s / max(var(--mq-speed, 1), 1)) linear infinite;
  }
  .mq-marquee[data-direction=right] .mq-marquee-inner {
    animation-direction: reverse;
  }
  .mq-blink {
    animation: mq-blink calc(1.2s / max(var(--mq-rate, 1), 1)) step-end infinite;
  }
  .mq-rainbow {
    animation: mq-rainbow 3s linear infinite;
  }
  .mq-bounce {
    animation: mq-bounce 0.6s ease-in-out infinite alternate;
  }
  .mq-jitter {
    animation: mq-jitter 0.18s steps(2) infinite;
  }
  .mq-wave {
    animation: mq-wave 1.4s ease-in-out infinite;
  }
  .mq-rubber {
    animation: mq-rubber 0.7s ease-in-out infinite alternate;
  }
}
@keyframes mq-marquee {
  to {
    transform: translateX(-100%);
  }
}
@keyframes mq-blink {
  50% {
    opacity: 0;
  }
}
@keyframes mq-rainbow {
  to {
    filter: hue-rotate(360deg);
  }
}
@keyframes mq-bounce {
  to {
    transform: translateY(-0.25em);
  }
}
@keyframes mq-jitter {
  25% {
    transform: translate(0.05em, -0.05em);
  }
  75% {
    transform: translate(-0.05em, 0.05em);
  }
}
@keyframes mq-wave {
  25% {
    transform: rotate(1.5deg) translateY(-0.08em);
  }
  75% {
    transform: rotate(-1.5deg) translateY(0.08em);
  }
}
@keyframes mq-rubber {
  from {
    transform: scale(0.82);
  }
  to {
    transform: scale(1.18);
  }
}
@keyframes mq-tw-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mq-fade-in {
  from {
    opacity: 0;
    filter: blur(0.12em);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}
.mq-js .mq-anim,
.mq-js .mq-anim .mq-l,
.mq-js .mq-anim .mq-marquee-inner {
  animation-play-state: paused;
}
.mq-js .mq-anim[data-mq-play],
.mq-js .mq-anim[data-mq-play] .mq-l,
.mq-js .mq-anim[data-mq-play] .mq-marquee-inner {
  animation-play-state: running;
}
[data-mq-skip] .mq-anim,
[data-mq-skip] .mq-anim .mq-l,
[data-mq-skip] .mq-anim .mq-marquee-inner {
  animation: none;
}
[data-mq-skip] .mq-marquee {
  overflow: visible;
  white-space: normal;
}
[data-mq-skip] .mq-marquee-inner {
  padding-left: 0;
}
.mq-page {
  padding: 1rem clamp(1rem, 4vw, 2rem);
}
.mq-layout-nav-footer,
.mq-layout-two-column-nav-footer,
.mq-layout-three-column-nav-footer {
  display: grid;
  gap: 1rem;
}
.mq-layout-nav-footer {
  grid-template-areas: "nav" "main" "footer";
}
.mq-layout-two-column-nav-footer {
  grid-template-areas: "nav nav" "main right" "footer footer";
  grid-template-columns: 1fr minmax(10rem, 16rem);
}
.mq-layout-three-column-nav-footer {
  grid-template-areas: "nav nav nav" "left main right" "footer footer footer";
  grid-template-columns: minmax(8rem, 12rem) 1fr minmax(8rem, 12rem);
}
.mq-section[data-slot=nav] {
  grid-area: nav;
}
.mq-section[data-slot=main] {
  grid-area: main;
}
.mq-section[data-slot=left] {
  grid-area: left;
}
.mq-section[data-slot=right] {
  grid-area: right;
}
.mq-section[data-slot=footer] {
  grid-area: footer;
}
@media (max-width: 48rem) {
  .mq-layout-two-column-nav-footer,
  .mq-layout-three-column-nav-footer {
    grid-template-areas: "nav" "main" "left" "right" "footer";
    grid-template-columns: 1fr;
  }
}
section[class*=mq-scheme-] {
  padding: 0.75rem 1rem;
}
.mq-scheme-noir {
  --mq-bg: #101014;
  --mq-color: #e8e8ee;
  background: var(--mq-bg);
  color: var(--mq-color);
}
.mq-scheme-noir a {
  color: #9ecbff;
}
.mq-scheme-terminal {
  --mq-bg: #0a0f0a;
  --mq-color: #33ff66;
  background: var(--mq-bg);
  color: var(--mq-color);
  font-family:
    ui-monospace,
    "Cascadia Mono",
    "JetBrains Mono",
    monospace;
}
.mq-scheme-terminal a {
  color: #66ffcc;
}
.mq-scheme-parchment {
  --mq-bg: #f4e8d0;
  --mq-color: #3a2f1b;
  background: var(--mq-bg);
  color: var(--mq-color);
  font-family:
    Georgia,
    "Iowan Old Style",
    serif;
}
.mq-scheme-parchment a {
  color: #7a4a12;
}
.mq-scheme-hotdog-stand {
  --mq-bg: #c41e1e;
  --mq-color: #ffe900;
  background: var(--mq-bg);
  color: var(--mq-color);
}
.mq-scheme-hotdog-stand a {
  color: #ffffff;
}

/* fonts.css */
@font-face {
  font-family: "Radio Canada";
  src: url(/fonts/radio-canada.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url(/fonts/atkinson-hyperlegible.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url(/fonts/lexend.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url(/fonts/zilla-slab.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url(/fonts/playfair-display.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url(/fonts/cormorant.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url(/fonts/im-fell-english.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Uncial Antiqua";
  src: url(/fonts/uncial-antiqua.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "UnifrakturMaguntia";
  src: url(/fonts/unifraktur.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/fonts/jetbrains-mono.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "VT323";
  src: url(/fonts/vt323.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Press Start 2P";
  src: url(/fonts/press-start.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url(/fonts/silkscreen.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Major Mono Display";
  src: url(/fonts/major-mono.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url(/fonts/orbitron.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Bungee";
  src: url(/fonts/bungee.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Monoton";
  src: url(/fonts/monoton.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Creepster";
  src: url(/fonts/creepster.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Special Elite";
  src: url(/fonts/special-elite.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Fredericka the Great";
  src: url(/fonts/fredericka.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Lobster";
  src: url(/fonts/lobster.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Pacifico";
  src: url(/fonts/pacifico.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url(/fonts/caveat.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Comic Neue";
  src: url(/fonts/comic-neue.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Audiowide";
  src: url(/fonts/audiowide.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Kablammo";
  src: url(/fonts/kablammo.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Henny Penny";
  src: url(/fonts/henny-penny.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Oi";
  src: url(/fonts/oi.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Rye";
  src: url(/fonts/rye.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Bitcount";
  src: url(/fonts/bitcount.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url(/fonts/quicksand.woff2) format("woff2");
  font-display: swap;
}
.mq-font-atkinson-hyperlegible,
.mq-font-zilla-slab,
.mq-font-im-fell-english,
.mq-font-uncial-antiqua,
.mq-font-major-mono,
.mq-font-bitcount,
.mq-font-orbitron,
.mq-font-audiowide,
.mq-font-creepster,
.mq-font-monoton,
.mq-font-oi,
.mq-font-kablammo,
.mq-font-henny-penny,
.mq-font-lobster,
.mq-font-pacifico,
.mq-font-fredericka,
.mq-font-unifraktur,
.mq-font-comic-neue {
  font-size: 1.15em;
}
.mq-font-vt323,
.mq-font-cormorant {
  font-size: 1.3em;
}
.mq-font-caveat {
  font-size: 1.5em;
}

/* tokens.css */
:root {
  --post-measure: 800px;
  --panel-clip: polygon( 0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 6px) calc(100% - 12px), calc(100% - 6px) calc(100% - 6px), calc(100% - 12px) calc(100% - 6px), calc(100% - 12px) 100%, 12px 100%, 12px calc(100% - 6px), 6px calc(100% - 6px), 6px calc(100% - 12px), 0 calc(100% - 12px) );
  --face-clip: polygon(50% 0, 90.1% 19.8%, 100% 64.3%, 72.3% 100%, 27.7% 100%, 0 64.3%, 9.9% 19.8%);
  --j: 3px;
  --jag: polygon( 0 calc(2 * var(--j)), var(--j) calc(2 * var(--j)), var(--j) var(--j), calc(2 * var(--j)) var(--j), calc(2 * var(--j)) 0, calc(100% - 2 * var(--j)) 0, calc(100% - 2 * var(--j)) var(--j), calc(100% - var(--j)) var(--j), calc(100% - var(--j)) calc(2 * var(--j)), 100% calc(2 * var(--j)), 100% calc(100% - 2 * var(--j)), calc(100% - var(--j)) calc(100% - 2 * var(--j)), calc(100% - var(--j)) calc(100% - var(--j)), calc(100% - 2 * var(--j)) calc(100% - var(--j)), calc(100% - 2 * var(--j)) 100%, calc(2 * var(--j)) 100%, calc(2 * var(--j)) calc(100% - var(--j)), var(--j) calc(100% - var(--j)), var(--j) calc(100% - 2 * var(--j)), 0 calc(100% - 2 * var(--j)) );
  --jag-1: polygon( 0 var(--j), var(--j) 0, calc(100% - var(--j)) 0, 100% var(--j), 100% calc(100% - var(--j)), calc(100% - var(--j)) 100%, var(--j) 100%, 0 calc(100% - var(--j)) );
  --jag-top: polygon( 0 calc(2 * var(--j)), var(--j) calc(2 * var(--j)), var(--j) var(--j), calc(2 * var(--j)) var(--j), calc(2 * var(--j)) 0, calc(100% - 2 * var(--j)) 0, calc(100% - 2 * var(--j)) var(--j), calc(100% - var(--j)) var(--j), calc(100% - var(--j)) calc(2 * var(--j)), 100% calc(2 * var(--j)), 100% 100%, 0 100% );
  --jag-bottom: polygon( 0 0, 100% 0, 100% calc(100% - 2 * var(--j)), calc(100% - var(--j)) calc(100% - 2 * var(--j)), calc(100% - var(--j)) calc(100% - var(--j)), calc(100% - 2 * var(--j)) calc(100% - var(--j)), calc(100% - 2 * var(--j)) 100%, calc(2 * var(--j)) 100%, calc(2 * var(--j)) calc(100% - var(--j)), var(--j) calc(100% - var(--j)), var(--j) calc(100% - 2 * var(--j)), 0 calc(100% - 2 * var(--j)) );
  --lw: 1px;
  --ring-1: polygon(evenodd, 0px var(--j), var(--j) 0px, calc(100% - var(--j)) 0px, 100% var(--j), 100% calc(100% - var(--j)), calc(100% - var(--j)) 100%, var(--j) 100%, 0px calc(100% - var(--j)), 0px var(--j), var(--lw) calc(var(--lw) + var(--j)), calc(var(--lw) + var(--j)) var(--lw), calc(100% - var(--lw) - var(--j)) var(--lw), calc(100% - var(--lw)) calc(var(--lw) + var(--j)), calc(100% - var(--lw)) calc(100% - var(--lw) - var(--j)), calc(100% - var(--lw) - var(--j)) calc(100% - var(--lw)), calc(var(--lw) + var(--j)) calc(100% - var(--lw)), var(--lw) calc(100% - var(--lw) - var(--j)), var(--lw) calc(var(--lw) + var(--j)));
  --ring: polygon(evenodd, 0px calc(2 * var(--j)), var(--j) calc(2 * var(--j)), var(--j) var(--j), calc(2 * var(--j)) var(--j), calc(2 * var(--j)) 0px, calc(100% - 2 * var(--j)) 0px, calc(100% - 2 * var(--j)) var(--j), calc(100% - var(--j)) var(--j), calc(100% - var(--j)) calc(2 * var(--j)), 100% calc(2 * var(--j)), 100% calc(100% - 2 * var(--j)), calc(100% - var(--j)) calc(100% - 2 * var(--j)), calc(100% - var(--j)) calc(100% - var(--j)), calc(100% - 2 * var(--j)) calc(100% - var(--j)), calc(100% - 2 * var(--j)) 100%, calc(2 * var(--j)) 100%, calc(2 * var(--j)) calc(100% - var(--j)), var(--j) calc(100% - var(--j)), var(--j) calc(100% - 2 * var(--j)), 0px calc(100% - 2 * var(--j)), 0px calc(2 * var(--j)), var(--lw) calc(var(--lw) + 2 * var(--j)), calc(var(--lw) + var(--j)) calc(var(--lw) + 2 * var(--j)), calc(var(--lw) + var(--j)) calc(var(--lw) + var(--j)), calc(var(--lw) + 2 * var(--j)) calc(var(--lw) + var(--j)), calc(var(--lw) + 2 * var(--j)) var(--lw), calc(100% - var(--lw) - 2 * var(--j)) var(--lw), calc(100% - var(--lw) - 2 * var(--j)) calc(var(--lw) + var(--j)), calc(100% - var(--lw) - var(--j)) calc(var(--lw) + var(--j)), calc(100% - var(--lw) - var(--j)) calc(var(--lw) + 2 * var(--j)), calc(100% - var(--lw)) calc(var(--lw) + 2 * var(--j)), calc(100% - var(--lw)) calc(100% - var(--lw) - 2 * var(--j)), calc(100% - var(--lw) - var(--j)) calc(100% - var(--lw) - 2 * var(--j)), calc(100% - var(--lw) - var(--j)) calc(100% - var(--lw) - var(--j)), calc(100% - var(--lw) - 2 * var(--j)) calc(100% - var(--lw) - var(--j)), calc(100% - var(--lw) - 2 * var(--j)) calc(100% - var(--lw)), calc(var(--lw) + 2 * var(--j)) calc(100% - var(--lw)), calc(var(--lw) + 2 * var(--j)) calc(100% - var(--lw) - var(--j)), calc(var(--lw) + var(--j)) calc(100% - var(--lw) - var(--j)), calc(var(--lw) + var(--j)) calc(100% - var(--lw) - 2 * var(--j)), var(--lw) calc(100% - var(--lw) - 2 * var(--j)), var(--lw) calc(var(--lw) + 2 * var(--j)));
  --dot-clip: polygon( 30% 0, 70% 0, 85% 15%, 100% 30%, 100% 70%, 85% 85%, 70% 100%, 30% 100%, 15% 85%, 0 70%, 0 30%, 15% 15% );
  --bg: #e7dbc3;
  --surface: #f6efe0;
  --surface-2: #efe3cd;
  --paper: #fffefb;
  --field: #fcf8f0;
  --ink: #40382c;
  --ink-soft: #574d3d;
  --muted: #8a7a5f;
  --faint: #a89777;
  --border: #d7c6a2;
  --border-strong: #c1aa80;
  --teal: #1f9e90;
  --teal-deep: #227d71;
  --sea: #4bab7f;
  --pink: #d97a97;
  --peach: #e8a06b;
  --coral: #db6a63;
  --react-good: #cde9d6;
  --react-bad: #f3d0cb;
  --glow: rgba(31, 158, 144, 0.5);
  --dock-text: #fbf6ec;
  --sunk-shadow: rgba(0, 0, 0, 0.45);
  --sunk-light: rgba(255, 255, 255, 0.12);
  --banner-veil: rgba(231, 219, 195, 0.5);
  --plate: rgba(255, 255, 255, 0.78);
  --hex-border-dark: #bf9152;
  --hex-border-light: #fdf7ec;
  --marker: #f3e08c;
  --scrim: rgba(43, 38, 34, 0.45);
  --shadow-drop: rgba(43, 38, 34, 0.35);
  --shadow-punch: rgba(51, 40, 20, 0.28);
  --floor-light: #c9c9c9;
  --floor-dark: #a3a3a3;
  --crop-shade: rgba(0, 0, 0, 0.4);
  --viewport: #e0302a;
}
.chip::after,
.welcome-form input::after,
.copy-bucket::after,
.minipost::after,
.person-chip-label::after,
.ceremony-download::after,
.name-input::after,
.spare-paste::after,
.persona-address-copy::after,
.profile-bio::after,
.computer-row::after,
.removal-option::after,
.profile-save::after,
.ledger-glance::after,
.ledger-block::after,
.ledger-select::after,
.people-sort::after,
.people-more::after,
.ledger-nick::after,
.feed-post::after,
.label-add-input::after,
.public-posts-more::after,
.feed-entry-via-roster::after,
.feed-unpublish-no::after,
.feed-more::after,
.feed-fresh-btn::after,
.feed-entry-unveil::after,
.warn-chip::after,
.bucket-name::after,
.bucket-menu::after,
.search-opts-menu::after,
.search-opts-kind::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--line);
  clip-path: var(--ring-1);
}
.person-card-bio::after,
.person-row::after,
.persona-menu-item::after,
.profile-avatar::after,
.feed-composer::after,
.feed-item::after,
.label-emoji-strip::after,
.feed-entry::after,
.bake-modal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--line);
  clip-path: var(--ring);
}
:where(input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file], [type=button], [type=submit], [type=reset], [type=image]), textarea, select) {
  background-color: var(--field);
}

/* shell.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}
.ph {
  vertical-align: -0.15em;
}
.ph path[opacity="0.2"] {
  fill: var(--teal);
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--ink);
}
.app-main {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-frame {
  flex: 1;
  min-height: 0;
  margin: 12px;
  padding: 0 10px 10px;
  background: var(--ink);
  clip-path: var(--panel-clip);
  display: flex;
  flex-direction: column;
}
.app-frame-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
  background: var(--surface);
  clip-path: var(--panel-clip);
}
.app-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.app-header {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.35rem 0 0.45rem 0.5rem;
  background: var(--ink);
  color: var(--dock-text);
}
.app-header-lead {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.app-header-link {
  color: inherit;
  text-decoration: none;
}
.app-header-title {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Press Start 2P", monospace;
  font-size: 1.05rem;
  color: var(--dock-text);
}
.bucket-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
}
.bucket-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0.15rem;
  color: var(--dock-text);
  opacity: 0.7;
  cursor: pointer;
  font-size: 1rem;
}
.bucket-btn:hover:not(:disabled) {
  opacity: 1;
}
.bucket-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.bucket-name {
  background: none;
  border: 1px solid transparent;
  --line: color-mix(in srgb, var(--dock-text) 40%, transparent);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0.15rem 0.55rem;
  color: var(--dock-text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  cursor: pointer;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bucket-name:hover {
  border-color: var(--dock-text);
}
.bucket-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  padding: 0.3rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid transparent;
  --line: var(--ink);
  --lw: 2px;
  --j: 4px;
  clip-path: var(--jag-1);
  box-shadow: 0 8px 20px var(--shadow-drop);
}
.bucket-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  background: none;
  border: 0;
  --j: 2.5px;
  clip-path: var(--jag);
  padding: 0.4rem 0.55rem;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.bucket-menu-item:hover {
  background: var(--surface-2);
}
.bucket-menu-item.current {
  font-weight: 700;
}
.bucket-menu-count {
  color: var(--muted);
  font-size: 0.85em;
}
.bucket-menu-delete {
  margin-top: 0.3rem;
  border-top: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-bottom);
  color: var(--coral);
}
.app-header-search-box {
  --search-h: 1.8rem;
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  position: relative;
}
.app-header-search {
  width: 240px;
  max-width: 100%;
  min-width: 0;
  height: var(--search-h);
  box-sizing: border-box;
  background: var(--field);
  border: 0;
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0 0.65rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}
.search-opts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--search-h);
  height: var(--search-h);
  flex-shrink: 0;
  background: var(--surface);
  border: 0;
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0;
  font-size: 1.05rem;
  color: var(--faint);
  cursor: pointer;
}
.search-opts-btn:hover {
  color: var(--ink);
}
.search-opts-btn.active {
  color: var(--sea);
}
.search-opts-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper);
  border: 1px solid transparent;
  --line: var(--border-strong);
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0.45rem 0.6rem;
  box-shadow: 0 4px 14px var(--shadow-drop);
  white-space: nowrap;
}
.search-opts-label {
  color: var(--faint);
  font-size: 0.85rem;
}
.search-opts-kind {
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0.25rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}
.search-opts-kind:hover {
  border-color: var(--border-strong);
}
.app-header-search::placeholder {
  color: var(--muted);
}
.app-header-search:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.app-header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.app-header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  background: var(--surface);
  border: 0;
  clip-path: var(--dot-clip);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.45rem;
  box-shadow: inset 0 1px 2px var(--shadow-punch);
  transition: color 0.12s ease, transform 0.12s ease;
}
.app-header-btn:hover {
  color: var(--teal);
  transform: scale(1.06);
}
.app-header-btn-square {
  clip-path: none;
}
.loading-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  color: var(--muted);
}
.mq-doc li > p {
  margin-block: 0.1em;
}

/* auth.css */
.welcome {
  max-width: 340px;
  margin: 14vh auto 0;
  text-align: center;
}
.welcome-title {
  font-family: "Press Start 2P", monospace;
  font-size: 1.6rem;
  color: var(--teal);
  margin: 0 0 0.4rem;
}
.welcome-sub {
  color: var(--muted);
  margin: 0 0 2rem;
}
.welcome-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.tab {
  display: flex;
  align-items: center;
  background: none;
  border: 1px solid var(--border-strong);
  --j: 3px;
  clip-path: var(--jag-top);
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.tab.active {
  color: var(--teal);
  border-color: var(--teal);
}
.welcome-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
}
.welcome-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.welcome-form input {
  background: var(--field);
  border: 1px solid transparent;
  --line: var(--border-strong);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.welcome-form input:focus {
  outline: none;
  border-color: var(--teal);
}
.field-note {
  margin: -0.4rem 0 0;
  font-size: 0.8rem;
}
.field-note.ok {
  color: var(--sea);
}
.field-note.bad {
  color: var(--coral);
}
.form-error {
  margin: 0;
  color: var(--coral);
  font-size: 0.85rem;
}
.welcome-go {
  background: var(--teal);
  border: none;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--bg);
  padding: 0.6rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.welcome-go:disabled {
  opacity: 0.6;
  cursor: default;
}

/* quickbar.css */
.quickbar {
  flex-shrink: 0;
  height: 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px 6px;
  background: var(--teal-deep);
  overflow: visible;
  position: relative;
  z-index: 2;
}
.quickbar-clock {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.2em 0.55em;
  color: var(--dock-text);
  font-family:
    "JetBrains Mono",
    ui-monospace,
    monospace;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  opacity: 0.9;
  cursor: default;
  user-select: none;
  background: color-mix(in srgb, var(--teal-deep) 82%, black);
  box-shadow: inset 0 1px 3px var(--sunk-shadow), inset 0 -1px 0 var(--sunk-light);
  margin-top: 6px;
}
.quickbar-version {
  align-self: center;
  margin: 6px 0.6rem 0 auto;
  color: var(--dock-text);
  font-family:
    "JetBrains Mono",
    ui-monospace,
    monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  opacity: 0.65;
  text-decoration: none;
  white-space: nowrap;
}
a.quickbar-version:hover,
a.quickbar-version:focus-visible {
  opacity: 1;
  text-decoration: underline;
}
.quickbar-apps {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
}
.quickbar-hex {
  --qh-w: 46px;
  width: var(--qh-w);
  height: calc(var(--qh-w) * 0.9749);
  padding: 4px;
  border: 0;
  background: var(--teal-deep);
  clip-path: var(--face-clip);
  cursor: pointer;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.quickbar-hex-lead {
  --qh-w: 54px;
}
.quickbar-slot {
  position: relative;
  display: inline-flex;
}
.quickbar-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  --j: 4.5px;
  clip-path: var(--jag);
  background: var(--coral);
  color: var(--dock-text);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}
.quickbar-hex-face {
  width: 100%;
  height: 100%;
  background: var(--surface);
  clip-path: var(--face-clip);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.quickbar-hex-me {
  background: var(--me-ring);
}
.quickbar-hex-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.quickbar-hex-lead .quickbar-hex-face {
  font-size: 1.6rem;
}
.quickbar-hex:not(.active) {
  opacity: 0.72;
}
.quickbar-hex:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.quickbar-clock-pie {
  width: 0.95em;
  height: 0.95em;
  flex: none;
}

/* persona.css */
.null-state,
.ceremony {
  max-width: 420px;
  margin: 12vh auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.null-title {
  font-family: "Press Start 2P", monospace;
  font-size: 1rem;
  color: var(--teal);
  margin: 0;
  line-height: 1.6;
}
.null-sub {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.spare-key {
  display: block;
  background: var(--surface);
  border: 1px dashed var(--teal);
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--sea);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  padding: 0.8rem;
  word-break: break-all;
  user-select: all;
}
.ceremony-download {
  background: none;
  border: 1px solid transparent;
  --line: var(--border-strong);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--muted);
  padding: 0.4rem 1rem;
  cursor: pointer;
  font: inherit;
  align-self: center;
}
.ceremony-download:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.ceremony-confirm {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}
.persona-chip {
  width: 14px;
  height: 14px;
  --j: 4px;
  clip-path: var(--jag-1);
  display: inline-block;
}
.name-input {
  background: var(--field);
  border: 1px solid transparent;
  --line: var(--border-strong);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  font: inherit;
  text-align: center;
  font-size: 1.1rem;
}
.name-input:focus {
  outline: none;
  border-color: var(--teal);
}
.skip-link {
  background: none;
  border: none;
  color: var(--faint);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}
.spare-paste {
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border-strong);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--sea);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  padding: 0.55rem 0.7rem;
  resize: vertical;
}
.spare-paste:focus {
  outline: none;
  border-color: var(--teal);
}
.persona-page {
  max-width: 520px;
  margin: 4vh auto 0;
}
.persona-page-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.persona-page-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 1.2rem;
}
.persona-page-head .persona-page-title {
  margin: 0;
}
.persona-address {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  --j: 5px;
  clip-path: var(--jag);
  padding: 0.7rem 1rem;
  margin: 0 0 1.2rem;
}
.persona-address-label {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
}
.persona-address-value {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.persona-address-value:hover code {
  color: var(--teal);
  text-decoration: underline;
}
.persona-slug-name {
  font-weight: 700;
}
.persona-address-copy {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}
.persona-address-copy:hover {
  border-color: var(--teal);
}
.persona-menu {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.persona-menu-note {
  margin: 0.2rem 0 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.persona-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0 1rem;
}
.persona-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  --j: 0.25em;
  clip-path: var(--jag-1);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  background: var(--surface);
}
.persona-row-current {
  --line: var(--border-strong);
}
.persona-row-words {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.persona-row-words small {
  color: var(--ink-soft);
}
.persona-row-mark {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.persona-row-switch {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.25rem 0.7rem;
  --j: 0.25em;
  clip-path: var(--jag-1);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
}
.persona-list-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.persona-menu-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 5px;
  clip-path: var(--jag);
  padding: 0.9rem 1rem;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.persona-menu-item:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}
.persona-menu-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.persona-menu-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.persona-menu-label small {
  color: var(--muted);
  font-size: 0.8rem;
}
.persona-menu-danger:hover {
  border-color: var(--coral);
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.profile-field .name-input {
  text-align: left;
  font-size: 1rem;
  width: 100%;
}
.profile-field-label {
  color: var(--muted);
  font-size: 0.85rem;
}
.profile-slug-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.profile-slug-at {
  color: var(--ink-soft);
}
.profile-slug-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.35rem 0.5rem;
  --j: 0.25em;
  clip-path: var(--jag-1);
  border: 1px solid transparent;
  --line: var(--border-strong);
  position: relative;
  background: var(--field);
  color: var(--ink);
}
.profile-slug-last {
  color: var(--ink-soft);
}
.profile-bio {
  background: var(--field);
  border: 1px solid transparent;
  --line: var(--border-strong);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  font: inherit;
  resize: vertical;
  width: 100%;
}
.profile-bio:focus {
  outline: none;
  border-color: var(--teal);
}
.computers {
  max-width: 480px;
  margin: 4vh auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.computers-title {
  font-family: "Press Start 2P", monospace;
  font-size: 1rem;
  color: var(--teal);
  margin: 0;
}
.computers-subtitle {
  color: var(--ink);
  font-size: 1rem;
  margin: 1.5rem 0 0;
}
.computer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.computer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0.5rem 0.8rem;
}
.computer-name {
  color: var(--sea);
}
.computer-detail {
  color: var(--faint);
  font-size: 0.85rem;
}
.computer-facts {
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}
.computer-status {
  color: var(--coral);
}
.computer-remove {
  background: none;
  border: none;
  padding: 0 0 0 0.5rem;
  color: var(--faint);
  cursor: pointer;
  line-height: 1;
}
.computer-remove:hover {
  color: var(--coral);
}
.computer-remove svg {
  width: 0.9rem;
  height: 0.9rem;
}
.removal-option {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0.6rem 0.8rem;
  margin-top: 0.5rem;
  cursor: pointer;
}
.removal-option:hover,
.removal-option-picked {
  border-color: var(--sea);
}
.removal-option-forceful:hover,
.removal-option-forceful.removal-option-picked {
  border-color: var(--coral);
}
.removal-option-title {
  color: var(--sea);
  font-weight: 600;
}
.removal-option-forceful .removal-option-title {
  color: var(--coral);
}
.removal-option-sub {
  color: var(--faint);
  font-size: 0.85rem;
}
.removal-fact {
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  margin: 0.7rem 0 0.3rem;
}
.removal-blast {
  color: var(--coral);
  font-size: 0.85rem;
  margin: 0.7rem 0 0;
}
.removal-go {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: var(--coral);
  color: var(--paper);
  border: none;
  --j: 3px;
  clip-path: var(--jag-1);
  font-weight: 600;
  cursor: pointer;
}
.removal-go:disabled {
  opacity: 0.6;
  cursor: default;
}
.persona-page.id-page {
  max-width: var(--post-measure);
}
.id-page .id-words {
  color: var(--muted);
  font-size: 0.85rem;
  margin: -0.8rem 0 1rem;
}
.id-page .id-bio {
  white-space: pre-wrap;
  color: var(--ink-soft);
}
.id-page .id-address code {
  display: inline-block;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  --j: 4px;
  clip-path: var(--jag-1);
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  word-break: break-all;
}
.id-page .id-quiet {
  color: var(--muted);
  font-size: 0.85rem;
}
.profile-field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.profile-count {
  color: var(--faint);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}
.profile-count-over {
  color: var(--coral);
  font-weight: 600;
}
.profile-setting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.profile-save-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.4rem 0 0.8rem;
}
.profile-save {
  background: var(--teal);
  border: 1px solid transparent;
  --line: var(--teal);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--surface);
  font: inherit;
  padding: 0.4rem 1.4rem;
  cursor: pointer;
}
.profile-save:disabled {
  background: var(--surface);
  border-color: var(--border);
  color: var(--faint);
  cursor: default;
}
.profile-flash {
  color: var(--teal);
  font-size: 0.85rem;
}
.profile-flash-err {
  color: var(--coral);
}
.contact-ledger {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  --j: 5px;
  clip-path: var(--jag);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.ledger-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  list-style: none;
}
.ledger-head::-webkit-details-marker {
  display: none;
}
.ledger-head::after {
  content: "\25b8";
  margin-left: auto;
  color: var(--faint);
  transition: transform 0.12s ease;
}
.contact-ledger[open] > .ledger-head::after {
  transform: rotate(90deg);
}
.ledger-glance {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 0.25em;
  clip-path: var(--jag-1);
  padding: 0.2rem 0.7rem;
}
.ledger-glance-empty {
  color: var(--faint);
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
}
.ledger-glance-blocked {
  color: var(--coral);
  border-color: var(--coral);
  font-size: 1.05rem;
}
.glance-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  color: var(--faint);
  font-size: 0.95rem;
}
.glance-pair + .glance-pair {
  border-left: 1px solid var(--border);
  padding-left: 0.4rem;
}
.glance-bars {
  display: inline-flex;
  font-size: 1rem;
}
.ledger-title {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
}
.ledger-block {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--coral);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  margin-top: 0.4rem;
  cursor: pointer;
}
.ledger-block:hover {
  border-color: var(--coral);
}
.ledger-blocked {
  background: var(--coral);
  color: var(--surface);
  border-color: var(--coral);
}
.ledger-note {
  margin: 0;
  color: var(--coral);
  font-size: 0.8rem;
}
.ledger-dial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ledger-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.85rem;
  color: var(--ink);
}
.ledger-label small {
  color: var(--muted);
  font-size: 0.72rem;
  max-width: 18rem;
}
.ledger-select {
  background: var(--field);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  max-width: 16rem;
}
.people-inner {
  max-width: var(--post-measure);
  margin: 3vh auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.people-shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.6rem;
}
.people-shelf-title {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
}
.people-sorts {
  display: flex;
  gap: 0.3rem;
}
.people-sort {
  background: none;
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 0.25em;
  clip-path: var(--jag-1);
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  padding: 0.15rem 0.7rem;
  cursor: pointer;
}
.people-sort-on {
  border-color: var(--teal);
  color: var(--teal);
}
.people-empty {
  color: var(--muted);
  font-size: 0.9rem;
}
.people-more {
  align-self: center;
  margin-top: 0.5rem;
  background: none;
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 0.25em;
  clip-path: var(--jag-1);
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.25rem 1rem;
  cursor: pointer;
}
.people-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ledger-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em;
}
.ledger-nick {
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  max-width: 16rem;
}
.ledger-nick:focus {
  outline: none;
  border-color: var(--teal);
}
.person-cell {
  display: inline-flex;
  justify-content: center;
  font-size: 1.05rem;
}
.sig-0 {
  color: var(--faint);
}
.sig-1 {
  color: var(--muted);
}
.sig-2 {
  color: var(--ink-soft);
}
.sig-3 {
  color: var(--teal);
}
.sig-4 {
  color: var(--sea);
}
.profile-banner-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.profile-banner {
  width: 100%;
  height: 5rem;
  background-size: cover;
  background-position: center;
  --j: 6px;
  clip-path: var(--jag);
}
.profile-banner-acts {
  display: flex;
  gap: 0.5rem;
}
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.profile-avatar {
  width: 4.5rem;
  height: 4.5rem;
  --j: 6px;
  clip-path: var(--jag);
  object-fit: cover;
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  display: block;
}
.profile-avatar-empty {
  opacity: 0.6;
}
.profile-avatar-pick {
  font: inherit;
  color: var(--teal);
  font-size: 0.85rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.profile-avatar-pick:disabled {
  color: var(--muted);
  cursor: default;
}
.feed-app {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.node-feed {
  max-width: var(--post-measure);
  width: 100%;
  margin: 3vh auto 0;
}
.feed-columns {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.feed-columns .feed-compose {
  width: var(--w-compose, 380px);
  min-width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
}
.feed-composer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border-strong);
  position: relative;
  --j: 6px;
  clip-path: var(--jag);
  padding: 0.9rem 1rem;
}
.feed-composer-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.feed-composer-foot .feed-post {
  margin-left: auto;
}
.feed-post:disabled {
  color: var(--faint);
  cursor: default;
}
.feed-note {
  color: var(--muted);
  font-size: 0.8rem;
}
.feed-item {
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 5px;
  clip-path: var(--jag);
  padding: 0.7rem 1rem;
}
.feed-item-posted {
  border-style: dashed;
}
.feed-item-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.feed-item-when {
  color: var(--faint);
  font-size: 0.75rem;
}
.feed-item-state {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
}
.feed-post {
  background: var(--surface-2);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--sea);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
}
.feed-post:hover {
  border-color: var(--teal);
}
.feed-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.3rem 0 0;
}
.feed-entry-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0 0.5rem;
}
.label-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.1rem 0.55rem;
  --j: 0.25em;
  clip-path: var(--jag-1);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.78rem;
}
.label-chip-theirs {
  background: var(--surface);
  border: 1px dashed var(--border);
}
.label-chip-flag {
  align-items: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.label-chip-flag svg {
  font-size: 1.15em;
}
.label-chip-agree {
  cursor: pointer;
}
.label-chip-mine {
  background: color-mix(in srgb, var(--surface-2) 84%, var(--ink) 16%);
}
.label-chip-theirs.label-chip-mine {
  background: color-mix(in srgb, var(--surface) 84%, var(--ink) 16%);
  border-style: solid;
}
.label-chip.label-chip-good {
  background: var(--react-good);
}
.label-chip.label-chip-bad {
  background: var(--react-bad);
}
.label-chip.label-chip-good.label-chip-mine {
  background: color-mix(in srgb, var(--react-good) 84%, var(--ink) 16%);
}
.label-chip.label-chip-bad.label-chip-mine {
  background: color-mix(in srgb, var(--react-bad) 84%, var(--ink) 16%);
}
article:has(.label-emoji-strip) {
  position: relative;
  z-index: 40;
}
.feed-settle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.feed-audience {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.05rem 0.3rem;
  --j: 0.25em;
  clip-path: var(--jag-1);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  background: var(--surface);
  color: var(--ink);
}
.thread-settled {
  color: var(--faint);
  font-size: 0.85rem;
  font-style: italic;
  margin: 1rem 0;
}
.post-dossier {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.post-dossier summary {
  cursor: pointer;
  color: var(--faint);
}
.post-dossier-log {
  overflow-x: auto;
  background: var(--surface);
  border: 1px dashed var(--border);
  --j: 0.2rem;
  clip-path: var(--jag-1);
  padding: 0.5rem 0.7rem;
  line-height: 1.5;
}
.label-add-anchor {
  position: relative;
  display: inline-flex;
}
.label-emoji-strip {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  width: 18.5rem;
  max-height: 12rem;
  overflow-y: auto;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  --j: 0.3rem;
  clip-path: var(--jag);
  box-shadow: 0 6px 18px var(--shadow-drop);
}
.label-emoji {
  border: none;
  background: none;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.35;
  padding: 0.05rem 0.15rem;
  --j: 0.15rem;
  clip-path: var(--jag);
  cursor: pointer;
}
.label-emoji:hover {
  background: var(--surface-2);
}
.label-emoji-row {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  justify-items: center;
  gap: 0.1rem;
  padding: 0.1rem 0.15rem;
  margin-bottom: 0.15rem;
  --j: 0.2rem;
  clip-path: var(--jag);
}
.label-emoji-row-good {
  background: var(--react-good);
}
.label-emoji-row-bad {
  background: var(--react-bad);
}
.label-emoji-row .label-emoji:hover {
  background: var(--surface);
}
.label-emoji-pole-break {
  flex-basis: 100%;
  height: 0;
  border-top: 1px solid var(--border);
  margin: 0.2rem 0;
}
.label-emoji-value {
  font-size: 2em;
  line-height: 1;
}
.label-chip:has(.label-emoji-value) {
  align-items: center;
}
.label-count {
  background: var(--ink);
  color: var(--surface);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.16rem 0.4rem;
  --j: 0.25em;
  clip-path: var(--jag-1);
  align-self: center;
}
.label-kind {
  color: var(--faint);
  font-size: 0.72rem;
}
.label-by {
  color: var(--muted);
  font-size: 0.72rem;
}
.label-x {
  background: none;
  border: 0;
  color: var(--faint);
  font: inherit;
  font-size: 0.72rem;
  padding: 0 0.1rem;
  cursor: pointer;
}
.label-x:hover {
  color: var(--coral);
}
.label-add {
  background: none;
  border: 1px dashed var(--border);
  --j: 0.25em;
  clip-path: var(--jag-1);
  color: var(--faint);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.1rem 0.55rem;
  cursor: pointer;
}
.label-add:hover {
  color: var(--sea);
  border-color: var(--teal);
}
.label-add-input {
  font: inherit;
  font-size: 0.78rem;
  width: 7rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid transparent;
  --line: var(--teal);
  position: relative;
  --j: 0.25em;
  clip-path: var(--jag-1);
  background: var(--field);
  color: var(--ink);
}
.feed-item-body {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.feed-item-link {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.public-posts {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: var(--post-measure);
}
.public-posts-head {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.public-posts-more {
  align-self: center;
  background: var(--surface-2);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--sea);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 1.2rem;
  cursor: pointer;
}
.public-posts-more:hover {
  border-color: var(--teal);
}
.public-posts-more:disabled {
  color: var(--faint);
  cursor: default;
}
.id-sync {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0.3rem 0 0;
  color: var(--faint);
  font-size: 0.78rem;
}
.id-sync-now {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.people-known {
  margin-top: 1.6rem;
}
.people-known-note {
  color: var(--faint);
  font-size: 0.75rem;
}
.feed-stream {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding-bottom: 2rem;
}
.feed-stream > * {
  width: 100%;
  max-width: var(--post-measure);
}
.feed-stream-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.feed-stream-title {
  font-weight: 600;
}
.feed-entry {
  font-size: calc(1rem * var(--post-scale, 1));
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 5px;
  clip-path: var(--jag);
  padding: 0.7em 1em;
}
.feed-entry-low {
  opacity: 0.75;
}
.feed-entry-high {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.feed-entry-high .feed-entry-title {
  font-size: 1.15em;
}
.feed-entry-via {
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin: 0 0 0.35em;
  color: var(--faint);
  font-size: 0.72em;
}
.feed-entry-via .person-chip {
  font-size: 1em;
}
.feed-entry-via > svg {
  width: 1em;
  height: 1em;
  flex: none;
}
.feed-entry-via-others {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.feed-entry-via-count {
  border-bottom: 1px dotted currentColor;
  cursor: default;
}
.feed-entry-via-roster {
  position: absolute;
  bottom: 100%;
  left: 0;
  z-index: 2;
  display: flex;
  visibility: hidden;
  max-width: min(22em, 60vw);
  flex-wrap: wrap;
  gap: 0.25em 0.6em;
  padding: 0.5em 0.6em;
  border: 1px solid transparent;
  --line: var(--border);
  --j: 0.2em;
  clip-path: var(--jag-1);
  margin-bottom: 0.25em;
  background: var(--surface);
  box-shadow: 0 2px 8px var(--shadow-drop);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.feed-entry-via-others:hover .feed-entry-via-roster,
.feed-entry-via-others:focus-within .feed-entry-via-roster {
  visibility: visible;
  opacity: 1;
}
.feed-entry-via-rest {
  align-self: center;
  color: var(--faint);
}
.feed-unpublish-warn {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 30em;
  margin: 0 0 0.8em;
}
.feed-unpublish-acts {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.feed-unpublish-go,
.feed-unpublish-no {
  background: none;
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  font: inherit;
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
  cursor: pointer;
}
.feed-unpublish-go {
  border-color: var(--warn, var(--border-strong));
  color: var(--ink);
}
.feed-unpublish-no {
  color: var(--muted);
}
.feed-entry-when {
  color: var(--faint);
  font-size: 0.75em;
}
.book-card-cover {
  margin-bottom: 0.8rem;
}
.book-card-head {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.4rem;
  color: var(--ink-soft);
}
.book-card-list {
  list-style: none;
  margin: 0;
  padding-left: 0.9rem;
}
.book-card > .book-card-list {
  padding-left: 0;
}
.book-card-section-title {
  display: block;
  font-weight: 600;
  margin: 0.3rem 0 0.1rem;
}
.book-card-page {
  margin: 0.1rem 0;
}
.feed-entry-beats {
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.feed-entry-dated {
  font-style: italic;
  color: var(--ink-soft);
  text-decoration: underline dotted;
  text-underline-offset: 0.15em;
}
.feed-entry-scheduled {
  background: var(--peach);
  color: var(--ink);
  --j: 0.25em;
  clip-path: var(--jag-1);
  padding: 0.1rem 0.55rem;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.feed-entry-scheduled svg {
  font-size: 1.25em;
}
.feed-entry .person-banner {
  margin: 0;
  gap: 0.7em;
}
.feed-entry .person-hex-small {
  width: 2em;
  height: 1.95em;
}
.feed-entry .person-banner .person-name-primary {
  font-size: 1.3em;
}
.feed-entry .person-name-others {
  font-size: 0.78em;
}
.feed-entry-title {
  font-size: 1.05em;
  font-weight: 600;
  margin: 0.3em 0 0;
}
.feed-entry-title a {
  color: var(--ink);
  text-decoration: none;
}
.feed-entry-title a:hover {
  color: var(--teal);
}
.feed-entry-body :is(img, video):not(.mq-emoji) {
  max-width: min(100%, var(--post-image-cap, 100%));
  max-height: var(--post-image-cap, none);
  height: auto;
}
.feed-entry-body {
  margin-top: 0.4em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.feed-entry-acts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  margin: 0.6em 0 0;
}
.feed-entry-acts:empty {
  display: none;
}
.feed-entry-act {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: none;
  border: none;
  color: var(--sea);
  font: inherit;
  font-size: 1em;
  font-weight: 700;
  padding: 0.25em 1em;
  text-decoration: none;
  cursor: pointer;
}
.feed-entry-act:hover {
  color: var(--teal);
  text-decoration: underline;
}
.feed-more {
  align-self: center;
  background: var(--surface-2);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--sea);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 1.2rem;
  cursor: pointer;
}
.feed-drafts {
  margin-top: 1rem;
}
.feed-drafts-head {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0 0 0.4rem;
}
.feed-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.feed-fresh-bar {
  height: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feed-fresh-btn {
  background: var(--surface-2);
  border: 1px solid transparent;
  --line: var(--border-strong);
  position: relative;
  --j: 0.25em;
  clip-path: var(--jag-1);
  color: var(--sea);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.2rem 1rem;
  cursor: pointer;
}
.feed-fresh-btn:hover {
  border-color: var(--teal);
}
.bake-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.bake-modal {
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border-strong);
  position: relative;
  --j: 6px;
  clip-path: var(--jag);
  padding: 1.1rem 1.3rem;
  min-width: 22rem;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bake-modal-head {
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.bake-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.bake-item-kind {
  color: var(--faint);
  font-size: 0.72rem;
  width: 4rem;
  flex-shrink: 0;
}
.bake-item-source {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.bake-item-status {
  flex-shrink: 0;
}
.bake-item-ready {
  color: var(--sea);
}
.bake-item-busy {
  color: var(--muted);
}
.bake-item-failed {
  color: var(--coral);
}
.feed-selectivity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.feed-selectivity-name {
  color: var(--muted);
  font-size: 0.85rem;
}
.feed-selectivity input[type=range] {
  width: 7rem;
  accent-color: var(--teal);
}
.feed-selectivity-label {
  color: var(--faint);
  font-size: 0.78rem;
  min-width: 8.5rem;
}
.feed-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.feed-sort select {
  font: inherit;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.1rem 0.3rem;
}
.seal-lock {
  position: relative;
  overflow: hidden;
}
.seal-lock-face {
  position: relative;
  z-index: 1;
  display: inline-flex;
}
.seal-unlock-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  z-index: 0;
  background: var(--teal);
  opacity: 0.4;
  animation: seal-unlock 15s linear forwards;
}
@keyframes seal-unlock {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.you-menu {
  margin-top: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  --j: 5px;
  clip-path: var(--jag);
  text-align: left;
}
.you-menu[open] > .ledger-head::after {
  transform: rotate(90deg);
}
.you-menu .persona-menu {
  margin-top: 0.7rem;
}
.public-posts-pinned {
  margin-bottom: 1.2rem;
}
.feed-entry-veil {
  position: relative;
  overflow: hidden;
  --j: 3px;
  clip-path: var(--jag-1);
}
.feed-entry-body-veiled {
  filter: blur(14px) saturate(0.5);
  pointer-events: none;
  user-select: none;
  max-height: 18rem;
  overflow: hidden;
}
.feed-entry-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  backdrop-filter: blur(10px) saturate(0.7);
  -webkit-backdrop-filter: blur(10px) saturate(0.7);
  pointer-events: none;
}
.feed-entry-unveil {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border-strong);
  --j: 0.25em;
  clip-path: var(--jag-1);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}
.warn-lists {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0.6rem 0 1rem;
}
.warn-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.warn-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 0.25em;
  clip-path: var(--jag-1);
  padding: 0.1rem 0.3rem 0.1rem 0.6rem;
  font-size: 0.8rem;
}
.warn-chip-x {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 0 0.2rem;
}
.warn-add {
  background: var(--surface);
  border: 1px dashed var(--border);
  --j: 0.25em;
  clip-path: var(--jag-1);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  width: 9rem;
}
.id-rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.2rem 0 0.8rem;
}

/* tooltip.css */
.tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 18rem;
  padding: 0.35rem 0.55rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: pre-line;
  --j: 3px;
  clip-path: var(--jag-1);
  pointer-events: none;
}
.tooltip.on {
  display: flex;
}
.tooltip-icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--teal);
  font-size: 1rem;
  line-height: 1.3;
}
.tooltip-words {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* console.css */
.console {
  flex: 1;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hex-comb {
  --hex-w: 156px;
  --hex-h: 152px;
  --hex-gap: 6px;
  --hex-clip: var(--face-clip);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hex-row {
  display: flex;
  gap: var(--hex-gap);
}
.hex-row + .hex-row {
  margin-top: calc(var(--hex-h) * -0.1);
}
.hex-row.shift {
  margin-left: calc((var(--hex-w) + var(--hex-gap)) / 2);
}
.app-tile {
  flex: 0 0 auto;
  width: var(--hex-w);
  height: var(--hex-h);
  clip-path: var(--hex-clip);
  background: var(--hex-border-light);
  padding: 2px;
  border: 0;
  cursor: pointer;
  font: inherit;
  display: block;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.app-tile:not(.blank):hover {
  transform: scale(1.04);
  filter: brightness(1.04);
}
.hex-mid {
  display: block;
  width: 100%;
  height: 100%;
  clip-path: var(--hex-clip);
  background: var(--hex-border-dark);
  padding: 4px;
}
.hex-face {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: var(--hex-clip);
  background: var(--surface);
  color: var(--ink);
  isolation: isolate;
}
.app-tile:not(.blank) .hex-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom right,
      transparent 0%,
      transparent 50%,
      var(--hex-border-dark) 50%,
      var(--hex-border-dark) 100%);
  z-index: 1;
}
.app-tile.app-tile-me {
  background: var(--me-ring);
}
.app-tile.app-tile-me .hex-mid {
  background: var(--me-rim);
}
.app-tile.app-tile-me .hex-face::before {
  display: none;
}
.app-tile-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.app-tile.blank {
  cursor: default;
}
.app-tile.blank .hex-face {
  background: var(--surface-2);
}
.app-tile-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 20px), calc(-50% - 20px));
  font-size: 4.6rem;
  line-height: 1;
  z-index: 0;
}
.app-tile-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26%;
  height: 22%;
  z-index: 3;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Radio Canada", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--ink);
}

/* doc/surface.css */
.reader-empty {
  align-items: center;
  justify-content: center;
}
.editor-meta-anchor {
  display: contents;
}
.publish-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.publish-bar-private {
  background: var(--surface-2);
  color: var(--ink-soft);
}
.publish-bar-public {
  background: var(--teal);
  color: var(--dock-text);
}
.publish-bar-scheduled {
  background: var(--peach);
  color: var(--ink);
}
.publish-bar-standing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}
.publish-bar-wish {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.publish-bar-acts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-left: auto;
}
.publish-bar-publish,
.publish-bar-update,
.publish-bar-unpublish,
.publish-bar-view,
.publish-bar-diff {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  --j: 0.25em;
  clip-path: var(--jag-1);
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.publish-bar-publish:hover,
.publish-bar-update:hover,
.publish-bar-unpublish:hover,
.publish-bar-view:hover,
.publish-bar-diff:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.publish-bar-view {
  text-decoration: none;
}
.diff-page {
  padding: 1rem 1.2rem;
  max-width: var(--post-measure);
}
.diff-page-head {
  margin-bottom: 0.8rem;
}
.diff-page-title {
  margin: 0 0 0.2rem;
}
.diff-page-sub,
.diff-page-note,
.diff-page-same,
.diff-page-legend {
  margin: 0.3rem 0;
  color: var(--ink-soft);
}
.diff-page-legend {
  display: flex;
  gap: 0.8rem;
  font-size: 0.8rem;
}
.diff-page-acts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.diff-page .publish-bar-view,
.diff-page .publish-bar-update {
  color: var(--ink);
}
.publish-bar-diff {
  text-decoration: none;
}
.words-diff {
  max-height: 60vh;
  overflow: auto;
  font-size: 0.8rem;
  white-space: pre-wrap;
  margin: 0;
}
.words-diff-title {
  display: flex;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
}
.words-diff-del {
  background: color-mix(in srgb, var(--coral) 22%, transparent);
  text-decoration: line-through;
}
.words-diff-add {
  background: color-mix(in srgb, var(--teal) 22%, transparent);
}
.words-diff-same {
  opacity: 0.75;
}
.publish-bar-update:disabled {
  opacity: 0.55;
  cursor: default;
}
.publish-bar-update:disabled:hover {
  background: transparent;
}
.publish-bar-note {
  width: 100%;
  opacity: 0.9;
}
.publish-bar-error {
  width: 100%;
  color: var(--coral);
}
.editor-meta {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  margin-top: 0.35rem;
  padding: 0.6rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  --j: 4px;
  clip-path: var(--jag-1);
  box-shadow: 0 8px 20px var(--shadow-drop);
}
.reader-chips {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
.reader-file .reader-head {
  flex-shrink: 0;
}
.reader-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.reader-marquee {
  background: var(--paper);
  border: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0.7rem 0.9rem;
}
.user-card {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  padding: 0.25rem 0.6rem 0.25rem 0.35rem;
  border: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-1);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.user-card-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.user-card-names strong {
  font-size: 0.95rem;
}
.user-card-names small {
  color: var(--muted);
}
.user-card-bad {
  color: var(--muted);
  font-style: italic;
}
.user-span {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  vertical-align: middle;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.reader-plain {
  background: var(--paper);
  border: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  overflow-y: auto;
}
.reader-media {
  max-width: 100%;
  --j: 3px;
  clip-path: var(--jag-1);
}
video.reader-media {
  max-width: min(100%, 320px);
  max-height: 320px;
}

/* doc/annotations.css */
.annotations {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.3rem 0 0.5rem;
}
.annot-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.annot-label {
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 3rem;
}
.annot-date,
.annot-time {
  background: var(--surface);
  border: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.2rem 0.4rem;
  color-scheme: light;
}
.annot-date:focus,
.annot-time:focus {
  outline: none;
  border-color: var(--border-strong);
}
.annot-time:disabled {
  opacity: 0.4;
}
.annot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.annot-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--pink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  --j: 0.25em;
  clip-path: var(--jag-1);
  padding: 0.08rem 0.5rem;
}
.annot-tag-active {
  cursor: pointer;
  background: var(--pink);
  color: var(--surface);
  border-color: var(--pink);
  font: inherit;
  font-size: 0.72rem;
}
.annot-tag-x {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
}
.annot-tag-x:hover {
  opacity: 1;
}
.annot-tag-input {
  background: none;
  border: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  width: 6rem;
  padding: 0.1rem 0.2rem;
}
.annot-tag-input:focus {
  outline: none;
}
.annot-tag-refused {
  font-size: 0.75rem;
  color: var(--coral);
}
.annot-desc {
  background: var(--surface);
  border: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 0.4rem 0.6rem;
  resize: vertical;
  width: 100%;
}
.annot-desc:focus {
  outline: none;
  border-color: var(--border-strong);
}

/* doc/completions.css */
.cm-tooltip.cm-tooltip-autocomplete {
  background: var(--surface);
  border: 2px solid var(--ink);
  --j: 4px;
  clip-path: var(--jag-1);
  box-shadow: 0 8px 20px var(--shadow-drop);
  overflow: hidden;
}
.cm-tooltip-autocomplete > ul {
  font-family: inherit;
}
.cm-tooltip-autocomplete > ul > li {
  padding: 3px 10px;
}
.cm-tooltip-autocomplete > ul > li[aria-selected] {
  background: var(--teal);
  color: var(--dock-text);
}
.cm-completionDetail {
  margin-left: 0.7em;
  font-style: normal;
  font-size: 1.1em;
}

/* doc/tree.css */
.tree-pane {
  width: 270px;
  flex-shrink: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-right: 0.5rem;
  border-right: 1px solid var(--border);
}
.tree-toolbar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.tree-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0.25rem 0.55rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}
.tree-tool:hover {
  border-color: var(--teal);
}
.tree-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid transparent;
  --j: 2.5px;
  clip-path: var(--jag);
  cursor: pointer;
  min-width: 0;
}
.tree-row:hover {
  background: var(--surface-2);
}
.tree-row.selected {
  border-color: var(--teal);
  background: var(--surface-2);
}
.tree-row-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-row-section .tree-row-title {
  font-weight: 600;
}
.tree-caret {
  display: inline-flex;
  font-size: 0.8em;
  color: var(--muted);
  transition: transform 0.12s;
}
.tree-caret.open {
  transform: rotate(90deg);
}
.tree-row-actions {
  display: none;
  margin-left: auto;
  gap: 0.15rem;
}
.tree-row:hover .tree-row-actions {
  display: inline-flex;
}
.tree-act {
  display: inline-flex;
  background: none;
  border: 0;
  padding: 0.1rem;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95em;
}
.tree-act:hover {
  color: var(--teal);
}
.tree-act.danger:hover {
  color: var(--coral);
}
.tree-row.drop-before {
  box-shadow: 0 -2px 0 0 var(--teal);
}
.tree-row.drop-after {
  box-shadow: 0 2px 0 0 var(--teal);
}
.tree-row.drop-into {
  background: color-mix(in srgb, var(--teal) 18%, transparent);
  border-color: var(--teal);
}
.tree-row.lifting {
  opacity: 0.45;
}
.tree-unfiled.drop-hover {
  outline: 2px dashed var(--teal);
  outline-offset: 2px;
  --j: 3px;
  clip-path: var(--jag-1);
}
.tree-stub {
  color: var(--muted);
  font-style: italic;
  cursor: default;
}
.tree-empty {
  padding: 0.6rem 0.2rem;
}
.tree-unfiled {
  margin-top: 0.8rem;
  border-top: 1px dashed var(--border-strong);
  padding-top: 0.5rem;
}
.tree-unfiled-title {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

/* apps/notes.css */
.notes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.notes-columns {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.notes-list {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  min-height: 0;
}
.notes-new {
  background: none;
  border: 1px dashed var(--border-strong);
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--sea);
  padding: 0.45rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.notes-new:hover {
  border-color: var(--sea);
}
.tag-column {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
  min-height: 0;
}
.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.3rem 0.3rem;
}
.pane-min {
  display: inline-flex;
  background: none;
  border: 0;
  padding: 0.1rem;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
}
.pane-min:hover {
  color: var(--teal);
}
.pane-rail {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 1.9rem;
  padding: 0.5rem 0.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}
.pane-rail:hover {
  color: var(--teal);
  border-color: var(--teal);
}
.pane-rail-label {
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.notes-columns .tag-column {
  width: var(--w-tags, 180px);
}
.notes-columns .notes-list {
  width: var(--w-list, 240px);
}
.notes-columns .tree-pane {
  width: var(--w-tree, 270px);
}
.notes-columns .book-column {
  width: var(--w-publish, 260px);
}
.book-column {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  font-size: 0.85rem;
}
.book-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.book-block + .book-block {
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}
.book-switch,
.book-section {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.book-title-line {
  margin: 0;
  color: var(--ink-soft);
}
.book-title-link {
  font-weight: 600;
}
.book-off,
.book-ledger-head {
  margin: 0;
  color: var(--ink-soft);
}
.book-ledger-head {
  font-weight: 600;
  margin-top: 0.4rem;
}
.book-ledger {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.6rem;
  margin: 0;
}
.book-ledger dt {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-soft);
}
.book-ledger dd {
  margin: 0;
}
.book-pages,
.book-sections {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.book-page {
  text-align: left;
  background: none;
  border: 0;
  padding: 0.1rem 0.2rem;
  color: var(--ink);
  cursor: pointer;
  border-left: 3px solid var(--peach);
}
.book-page-new {
  border-left-color: var(--peach);
}
.book-page-changed {
  border-left-color: var(--peach);
  font-style: italic;
}
.book-publish {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
}
.book-progress {
  margin: 0;
  color: var(--ink-soft);
}
.book-view {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: flex-start;
}
.book-unpublish {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.col-resizer {
  flex-shrink: 0;
  align-self: stretch;
  width: 8px;
  margin: 0 -0.5rem;
  cursor: col-resize;
  --j: 3px;
  clip-path: var(--jag-1);
  touch-action: none;
}
.col-resizer:hover,
.col-resizer:active {
  background: var(--teal);
  opacity: 0.5;
}
.tag-cloud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  background: none;
  border: 0;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.28rem 0.5rem;
  cursor: pointer;
  text-align: left;
}
.tag-cloud-row:hover {
  background: var(--surface);
}
.tag-cloud-row.active {
  background: var(--pink);
  color: var(--surface);
}
.tag-cloud-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-cloud-count {
  color: var(--muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.tag-cloud-row.active .tag-cloud-count {
  color: var(--surface);
  opacity: 0.85;
}
.tag-column-empty {
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
}
.note-row {
  background: var(--surface);
  border: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--ink);
}
.note-row:hover {
  border-color: var(--border-strong);
}
.note-row.selected {
  border-color: var(--teal);
}
.note-row-title {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.note-row-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.note-row-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  --j: 4px;
  clip-path: var(--jag-1);
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface-2);
}
.note-row-thumb-big {
  width: 64px;
  height: 64px;
}
.note-row-buckets {
  color: var(--faint);
  font-size: 0.78rem;
}
.note-row-home {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0 0 0 0.4rem;
  color: var(--faint);
  cursor: pointer;
  flex-shrink: 0;
}
.note-row-home:hover {
  color: var(--sea);
}
.note-row-desc {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-row-snippet {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}
.snippet-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.snippet-hit {
  background: var(--marker);
  color: var(--ink);
  --j: 2px;
  clip-path: var(--jag-1);
  padding: 0 1px;
}
.note-row-when {
  color: var(--faint);
  font-size: 0.7rem;
}
.notes-empty {
  text-align: center;
  margin-top: 1rem;
}
.notes-tagfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.note-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.1rem;
}
.note-row-tag {
  font-size: 0.65rem;
  color: var(--pink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  --j: 0.25em;
  clip-path: var(--jag-1);
  padding: 0.02rem 0.4rem;
}
.note-row-tag:hover {
  border-color: var(--pink);
}
.note-row-tag.active {
  background: var(--pink);
  color: var(--surface);
  border-color: var(--pink);
}
.note-row-claimed {
  color: var(--teal);
}
.reader {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
}
.reader-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}
.reader {
  container-type: inline-size;
}
.reader-file {
  overflow: hidden;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border-strong);
  position: relative;
  --j: 4px;
  clip-path: var(--jag-1);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
}
.chip-diverged {
  --line: var(--coral);
  color: var(--coral);
}
.chip-merged {
  --line: var(--sea);
  color: var(--sea);
}
.chip.chip-open {
  color: var(--dock-text);
  background: var(--teal);
  --line: var(--teal);
}

/* doc/editor.css */
.editor-title {
  background: none;
  border: none;
  border-bottom: 1px dashed transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  flex: 1;
  min-width: 0;
  padding: 0;
}
.editor-title:focus {
  outline: none;
  border-bottom-color: var(--teal);
}
.editor-body {
  background: var(--paper);
  border: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.8rem;
  min-height: 50vh;
  resize: vertical;
  width: 100%;
}
.editor-body:focus {
  outline: none;
  border-color: var(--border-strong);
}
.editor-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: -0.4rem;
}
.editor-title-read {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.2rem 0;
}
.editor-live {
  background: var(--surface);
  border: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-1);
  min-height: 50vh;
  overflow: hidden;
}
.editor-live .cm-editor {
  min-height: 50vh;
  max-height: 75vh;
  background: var(--paper);
  border: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-1);
}
.editor-live .cm-content {
  padding: 0.7rem 0.85rem;
}
.editor-live .cm-editor.cm-focused {
  outline: none;
}
.editor-live .cm-scroller {
  font-family: inherit;
  line-height: 1.5;
  padding: 0.8rem;
}
.editor-live .cm-content {
  min-height: 46vh;
}
.editor-side {
  display: flex;
  gap: 0.8rem;
  align-items: stretch;
}
.editor-side-source,
.editor-side-preview {
  flex: 1 1 0;
  min-width: 0;
}
.editor-side-source .editor-body {
  height: 100%;
  min-height: 50vh;
}
.editor-side-preview {
  max-height: 75vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0.8rem;
  scroll-behavior: smooth;
}
.editor-side-preview .reader-marquee,
.editor-side-preview .reader-plain {
  background: none;
  border: 0;
  clip-path: none;
  padding: 0;
}
.editor-cursor-node {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
  --j: 2px;
  clip-path: var(--jag-1);
}
.chip-button {
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  color: var(--sea);
}
.chip-button:hover {
  --line: var(--sea);
}
.chip-button:disabled {
  opacity: 0.35;
  cursor: default;
}
.chip-button:disabled:hover {
  --line: var(--border);
}
.chip-delete {
  color: var(--coral);
}
.chip-delete:hover {
  --line: var(--coral);
  background: var(--coral);
  color: var(--dock-text);
}
.chip.chip-pinned {
  color: var(--dock-text);
  background: var(--teal);
  --line: var(--teal);
}
.note-row-pin {
  font-size: 0.8em;
}
.note-row-status {
  font-size: 0.9em;
}
.note-row-status-private {
  color: var(--muted);
}
.note-row-status-public {
  color: var(--teal);
}
.note-row-status-scheduled {
  color: var(--peach);
}
.note-row-status-hidden {
  color: var(--muted);
}
.note-row-status-pending {
  color: var(--peach);
}
.note-row-kind {
  font-size: 0.9em;
  color: var(--muted);
}
.waiting-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  clip-path: var(--dot-clip);
  background: var(--teal);
  animation: waiting-pulse 1.6s ease-in-out infinite;
  margin-right: 0.3rem;
}
@keyframes waiting-pulse {
  0%, 100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
.status-spin {
  display: inline-flex;
  animation: status-spin 0.8s linear infinite;
}
@keyframes status-spin {
  to {
    transform: rotate(360deg);
  }
}
.skip-link:hover {
  color: var(--muted);
}
@media (max-width: 500px) {
  .app-frame {
    margin: 8px;
    padding: 0 7px 7px;
  }
  .app-frame-inner {
    padding: 12px;
  }
  .quickbar {
    padding: 0.4rem 10px;
  }
}
.editor-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30vh;
  text-align: center;
}
@container (max-width: 400px) {
  .reader-head {
    flex-wrap: wrap;
  }
  .reader-head .editor-title {
    flex: 1 1 100%;
  }
  .editor-tabs {
    display: none;
  }
}

/* person.css */
.person-hex {
  display: inline-flex;
  flex-shrink: 0;
  padding: 2px;
  clip-path: var(--face-clip);
}
.person-hex-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: inherit;
  clip-path: var(--face-clip);
}
.person-hex-mini {
  width: 1.4rem;
  height: 1.365rem;
}
.person-hex-small {
  width: 2rem;
  height: 1.95rem;
}
.person-hex-card {
  width: 4.5rem;
  height: 4.39rem;
}
.person-hex-hero {
  width: 9rem;
  height: 8.78rem;
  padding: 5px;
}
.person-chip {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin: 0 0.2em;
  text-decoration: none;
}
.person-chip[data-blocked=yes] .person-hex {
  opacity: 0.45;
}
.person-chip-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  padding: 0.3rem 0.6rem;
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border-strong);
  --j: 4px;
  clip-path: var(--jag-1);
  color: var(--ink);
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 20;
}
.person-chip-label small {
  color: var(--muted);
  font-size: 0.7rem;
}
.person-chip:hover .person-chip-label,
.person-chip:focus-visible .person-chip-label {
  opacity: 1;
}
.person-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}
.person-inline[data-blocked=yes] .person-hex {
  opacity: 0.45;
}
.person-inline-name {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.person-banner-face {
  display: inline-flex;
  text-decoration: none;
}
.person-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}
.person-name-primary {
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-banner .person-name-primary {
  font-size: 1.3rem;
}
.person-name-others {
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-banner-actions {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.person-card-hero {
  position: relative;
  height: 250px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0 1rem 0.8rem;
  background-size: cover;
  background-position: center;
}
.person-card-hero .person-card-top {
  align-self: stretch;
  align-items: flex-end;
}
.person-card-hero .person-reach {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
}
.person-card-hero .person-card-name,
.person-card-hero .person-card-others {
  margin: 0;
  background: var(--plate);
  padding: 0.1rem 0.6rem;
  --j: 0.25em;
  clip-path: var(--jag-1);
}
.person-card-hero .person-card-others {
  color: var(--ink-soft);
}
.person-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.person-reach {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--surface-2);
  padding: 0.2rem 0.7rem;
  --j: 0.3em;
  clip-path: var(--jag-1);
}
.person-reach-n {
  font-weight: 600;
  color: var(--ink);
  cursor: help;
}
.person-known-by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.person-known-by-more {
  color: var(--faint);
}
.person-card-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0.7rem 0 0.1rem;
}
.person-card-chat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid transparent;
  --line: var(--border);
  --j: 4px;
  clip-path: var(--jag-1);
  padding: 0.2rem 0.6rem;
  cursor: pointer;
}
.person-card-chat:hover:not(:disabled) {
  color: var(--ink);
}
.person-card-chat:disabled {
  cursor: progress;
}
.person-card-chat-bad {
  color: var(--coral);
}
.person-card-others {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
.person-card-bio {
  white-space: pre-wrap;
  color: var(--ink-soft);
  margin-top: 1rem;
  background: var(--surface-2);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 5px;
  clip-path: var(--jag);
  padding: 0.7rem 0.9rem;
  overflow-wrap: anywhere;
}
.person-demo {
  max-width: 640px;
}
.demo-lede {
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.demo-sample {
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
  margin-bottom: 1.8rem;
}
.demo-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 0.2rem;
}
.demo-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 0.9rem;
}
.demo-stage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}
.demo-prose {
  line-height: 2;
  color: var(--ink-soft);
  margin: 0;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 5px;
  clip-path: var(--jag);
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.person-row:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}
.person-row .ledger-glance {
  margin-left: auto;
  flex-shrink: 0;
}
.person-row-blocked {
  opacity: 0.6;
}
.demo-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}
.person-row .person-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
  font-size: 0.8em;
}
.person-row-via {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--faint);
  font-size: 0.78rem;
}

/* facets.css */
.facets {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0 0 0.8rem;
}
.facets-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--faint);
}
.facet-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.facet-row-label {
  color: var(--muted);
  font-size: 0.75rem;
  margin-right: 0.2rem;
}
.facet-chip,
.facet-more {
  background: none;
  border: 1px dashed var(--border);
  --j: 0.25em;
  clip-path: var(--jag-1);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  cursor: pointer;
}
.facet-chip-on {
  background: var(--surface-2);
  border-style: solid;
  color: var(--ink);
}
.facet-count {
  color: var(--muted);
  font-size: 0.7rem;
}
.facet-more {
  border-style: dotted;
  color: var(--muted);
}

/* copyinto.css */
.copy-buckets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.copy-bucket {
  background: var(--surface);
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 0.25em;
  clip-path: var(--jag-1);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.25rem 0.8rem;
  cursor: pointer;
}
.copy-bucket:hover {
  border-color: var(--border-strong);
}
.copy-new-bucket {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}
.copy-new-input {
  background: var(--field);
  border: 1px dashed var(--border);
  --j: 0.25em;
  clip-path: var(--jag-1);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.25rem 0.8rem;
  width: 11rem;
}
.copy-done a {
  margin-left: 0.3rem;
}
.copy-chain {
  margin-top: 1.2rem;
}
.copy-chain-head {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}

/* apps/notifications.css */
.notif-app {
  max-width: var(--post-measure);
  margin: 0 auto;
  padding: 1rem;
}
.notif-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.notif-bar .push-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
}
.notif-bar .push-button {
  font: inherit;
  font-size: 0.85em;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--border);
  --j: 4px;
  clip-path: var(--jag-1);
  padding: 0.2rem 0.6rem;
  cursor: pointer;
}
.notif-bar .push-button:hover {
  color: var(--ink);
}
.notif-bar .push-note,
.notif-bar .push-error {
  font-size: 0.8em;
  color: var(--ink-soft);
  margin: 0 auto 0 0;
}
.notif-mark-read {
  font: inherit;
  font-size: 0.85em;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--border);
  --j: 4px;
  clip-path: var(--jag-1);
  padding: 0.2rem 0.6rem;
  cursor: pointer;
}
.notif-mark-read:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}
.notif-list {
  display: flex;
  flex-direction: column;
}
.notif-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--border);
}
.notif-unseen {
  background: var(--surface);
}
.notif-text {
  flex: 1;
  color: var(--ink);
}
.notif-claimed {
  color: var(--ink);
  font-style: italic;
  margin-right: 0.3em;
}
.notif-subject {
  color: var(--ink);
  font-weight: 600;
  margin-right: 0.3em;
}
.notif-room {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--teal);
}
.notif-stranger {
  margin-left: 0.4em;
  padding: 0.05em 0.4em;
  border: 1px solid var(--border);
  --j: 0.25em;
  clip-path: var(--jag-1);
  color: var(--muted);
  font-size: 0.75em;
  white-space: nowrap;
}
.notif-cells {
  display: flex;
  gap: 0.35rem;
}
.notif-when {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85em;
  white-space: nowrap;
}
.notif-new {
  width: 0.5rem;
  height: 0.5rem;
  clip-path: var(--dot-clip);
  background: var(--teal);
}
.notif-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  padding: 2rem 0.5rem;
}

/* apps/chat.css */
.chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.chat-columns {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.chat-columns .chat-rooms {
  width: var(--w-rooms, 260px);
}
.chat-columns .tag-column {
  width: var(--w-tags, 150px);
}
.chat-rooms {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  min-height: 0;
}
.chat-new-btn {
  background: none;
  border: 1px dashed var(--border-strong);
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--sea);
  padding: 0.45rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.chat-new-btn:hover {
  border-color: var(--sea);
}
.chat-rooms-empty {
  color: var(--muted);
  font-size: 0.85em;
  padding: 0.5rem 0.2rem;
  margin: 0;
}
.chat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.chat-list-divider {
  margin: 0.6rem 0 0.2rem;
  padding: 0 0.2rem;
  font-size: 0.75em;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chat-list-left .chat-row {
  opacity: 0.7;
}
.chat-left-note,
.chat-muted-note {
  flex-wrap: wrap;
}
.chat-rejoin {
  margin-left: auto;
  font-size: 0.9em;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
  cursor: pointer;
}
.chat-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.chat-row:hover,
.chat-row-selected {
  background: var(--bg);
}
.chat-row-face {
  display: flex;
  flex: none;
}
.chat-row-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.chat-row-name {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-row-unread .chat-row-name {
  font-weight: 700;
}
.chat-row-when {
  font-size: 0.9em;
  color: var(--muted);
  white-space: nowrap;
}
.chat-row-unread .chat-row-when {
  color: var(--ink-soft);
}
.chat-row-by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.8em;
  min-width: 0;
}
.chat-row-tag {
  color: var(--ink-soft);
  background: var(--surface-2);
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0 0.35rem;
  white-space: nowrap;
}
.chat-new-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.chat-new-count {
  margin: 0;
  align-self: flex-end;
  font-size: 0.75em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.chat-new-tag {
  flex: 1;
  min-width: 8rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.35rem 0.5rem;
}
.chat-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-room,
.chat-new-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-room-head {
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border);
  padding: 0.2rem 0 0.6rem;
}
.chat-room-name {
  margin: 0;
  font-size: 1.15em;
}
.chat-people {
  position: relative;
  font-size: 0.85em;
}
.chat-list-requests .chat-row {
  opacity: 0.85;
}
.chat-request-note {
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chat-request-words {
  color: var(--ink);
}
.chat-accept {
  font-size: 0.9em;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.1rem 0.9rem;
  cursor: pointer;
}
.chat-accept:disabled {
  cursor: progress;
}
.chat-people-two {
  display: inline-flex;
  align-items: center;
}
.chat-people-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  --j: 4px;
  clip-path: var(--jag-1);
  padding: 0.15rem 0.5rem;
  list-style: none;
}
.chat-people-summary::-webkit-details-marker {
  display: none;
}
.chat-people-caret {
  color: var(--muted);
}
.chat-chatters-list {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 5;
  min-width: 16rem;
  max-height: 18rem;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.chat-chatters-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.3rem;
}
.chat-chatters-when {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}
.chat-tools {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.chat-gap {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
}
.chat-older {
  display: block;
  font-size: 0.85em;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.75rem;
  cursor: pointer;
}
.chat-floor {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.6rem 0;
  background: var(--paper);
}
.chat-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.chat-line {
  position: relative;
  width: 100%;
  padding: 0.05rem 0.3rem;
  line-height: 1.3;
}
.chat-line-menu {
  position: absolute;
  right: 0.4rem;
  top: -0.55rem;
  display: none;
  align-items: center;
  gap: 0.1rem;
  padding: 0.05rem 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 5;
}
.chat-line:hover .chat-line-menu,
.chat-line-menu:has(.chat-emoji-pop) {
  display: inline-flex;
}
.chat-line-act {
  background: none;
  border: none;
  color: var(--ink);
  padding: 0.15rem 0.3rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.chat-line-act:disabled {
  opacity: 0.4;
  cursor: default;
}
.chat-emoji-pop {
  position: absolute;
  right: 0;
  top: 100%;
  width: 19rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem;
  z-index: 40;
}
.chat-emoji-search {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.85em;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.chat-emoji-pop .chat-emoji-strip {
  position: static;
  width: auto;
  max-height: 11rem;
  overflow-y: auto;
}
.chat-reacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.15rem;
}
.chat-react {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font: inherit;
  font-size: 0.85em;
  padding: 0 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}
.chat-react-mine {
  border-color: var(--teal);
  background: var(--surface-2);
}
.chat-react-glyph {
  font-size: 1.1em;
}
.chat-line:hover {
  background: var(--surface);
}
.chat-line-cont {
  padding-top: 0;
}
.chat-line-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0;
}
.chat-speaker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
}
.chat-speaker-name {
  font-weight: 600;
}
.chat-line-when {
  font-size: 0.75em;
  color: var(--muted);
}
.chat-line-untrusted {
  font-size: 0.85em;
  color: var(--muted);
}
.chat-line-untrusted .chat-line-body,
.chat-line-untrusted .chat-speaker,
.chat-line-untrusted .chat-speaker-name {
  color: var(--muted);
}
.chat-line-found {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--teal);
}
.chat-landed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.3rem;
  font-size: 0.8em;
  color: var(--muted);
}
.chat-result-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  overflow-y: auto;
  min-height: 0;
}
.chat-results {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.chat-result-hit {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.3rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.chat-result-hit:hover {
  background: var(--surface);
}
.chat-result-where {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8em;
  color: var(--muted);
}
.chat-result-when {
  margin-left: auto;
}
.chat-result-said {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.chat-result-said .person-inline {
  flex: none;
  max-width: 30%;
  font-size: 0.85em;
}
.chat-result-words {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-result-words mark {
  background: var(--teal);
  color: var(--bg);
}
.chat-line-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.3rem 0;
  font-size: 0.8em;
  color: var(--muted);
}
.chat-chatters-muted {
  opacity: 0.6;
}
.chat-chatters-mute {
  background: none;
  border: none;
  color: var(--muted);
  padding: 0 0.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.chat-chatters-mute:hover {
  color: var(--coral);
}
.chat-line-edited {
  font-size: 0.75em;
  color: var(--muted);
  font-style: italic;
}
.chat-line-act-danger:hover {
  color: var(--coral);
}
.chat-editing {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.3rem;
  font-size: 0.85em;
  color: var(--muted);
}
.chat-editing-cancel {
  margin-left: auto;
  font-size: 0.9em;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  cursor: pointer;
}
.chat-line-emoji .chat-line-body {
  font-size: calc(1.5em * var(--lean, 1));
  line-height: 1.25;
}
.chat-line-veil {
  max-width: 28rem;
  min-height: 3.5rem;
}
.room-card-line-untrusted {
  font-size: 0.85em;
  color: var(--muted);
}
.chat-line-hidden {
  font-size: 0.8em;
  color: var(--muted);
  font-style: italic;
  padding-left: 2.7rem;
}
.chat-line-body {
  color: var(--ink);
  padding-left: 2.4rem;
  font-size: calc(1em * var(--lean, 1));
}
.chat-line-body p {
  margin: 0;
}
.chat-line-body .reader-marquee {
  background: none;
  border: none;
  clip-path: none;
  padding: 0;
}
.chat-msg-sealed {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-style: italic;
}
.chat-foot {
  flex: none;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}
.chat-typing {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.3rem 0 0;
  padding: 0 0.3rem 0 2.4rem;
  font-size: 0.8em;
  color: var(--muted);
  font-style: italic;
}
.chat-closed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  margin: 0;
  padding: 0.6rem 0.2rem;
}
.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  width: 100%;
}
.chat-composer-words {
  flex: 1;
  min-width: 0;
}
.chat-composer-words .editor-live {
  min-height: 0;
  max-height: none;
  height: auto;
  background: transparent;
  border: none;
  clip-path: none;
  overflow: visible;
}
.chat-composer-words .editor-live .cm-editor {
  background: var(--field);
  border: 1px solid var(--border);
  clip-path: none;
  min-height: 2.6rem;
  max-height: 10rem;
}
.chat-composer-words .editor-live .cm-editor.cm-focused {
  outline: none;
}
.chat-composer-words .editor-live .cm-scroller {
  font-family: inherit;
  line-height: 1.4;
  max-height: 10rem;
  padding: 0;
}
.chat-composer-words .editor-live .cm-content {
  min-height: 0;
  padding: 0.45rem 0.5rem;
}
.chat-composer-words .editor-live .cm-line {
  position: relative;
}
.chat-composer-words .editor-live .cm-placeholder {
  position: absolute;
  left: 6px;
  top: 0;
  pointer-events: none;
  color: var(--muted);
}
.chat-composer-count {
  flex: none;
  align-self: center;
  font-size: 0.75em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.chat-composer-count-over {
  color: var(--coral);
  font-weight: 600;
}
.chat-composer-attach {
  background: none;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.chat-line-body img,
.chat-line-body video {
  max-width: min(100%, calc(28rem * var(--lean, 1)));
  max-height: calc(20rem * var(--lean, 1));
  display: block;
}
.chat-composer-send {
  background: var(--teal);
  border: none;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--bg);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 1.2em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.chat-composer-send:disabled {
  opacity: 0.6;
  cursor: default;
}
.chat-new {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem 0;
  max-width: var(--post-measure);
}
.chat-new-name,
.chat-new-words {
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--border);
  padding: 0.4rem 0.5rem;
}
.chat-new-words {
  min-height: 5rem;
  resize: vertical;
}
.chat-new-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.chat-new-go {
  margin-left: auto;
  background: var(--teal);
  border: none;
  --j: 3px;
  clip-path: var(--jag-1);
  color: var(--bg);
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.chat-new-go:disabled {
  opacity: 0.6;
  cursor: default;
}
.chat-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  padding: 2rem 0.5rem;
  margin: 0;
}
.chat-refused {
  padding: 1rem 0;
}
.room-card-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.room-card-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}
.room-card-more {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.85em;
}
.room-card-more::before,
.room-card-more::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}
.room-card-words {
  flex: 1;
  min-width: 0;
}
.room-card-words .reader-marquee {
  background: none;
  border: none;
  clip-path: none;
  padding: 0;
}
.room-card-words p {
  margin: 0;
}
.room-card-words img,
.room-card-words video {
  max-width: min(100%, 20rem);
  max-height: 12rem;
  display: block;
}
.room-card-when {
  flex: none;
  font-size: 0.75em;
  color: var(--muted);
}

/* doc/drawing.css */
.notes-columns .drawing-tools {
  width: var(--w-tools, 190px);
}
.drawing-tools {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow-y: auto;
}
.drawing-toolset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.drawing-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
}
.drawing-tool-icon:hover {
  border-color: var(--border-strong);
}
.drawing-tool-icon.active {
  border-color: var(--teal);
  background: var(--paper);
  box-shadow: inset 0 -3px 0 var(--teal);
  color: var(--teal-deep);
}
.drawing-tool {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  text-align: left;
}
.drawing-framed {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.drawing-framed.error {
  color: var(--coral);
}
.drawing-tool:hover:not(:disabled) {
  border-color: var(--border-strong);
}
.drawing-tool.active {
  border-color: var(--teal);
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--teal);
}
.drawing-tool:disabled {
  color: var(--faint);
  cursor: default;
}
.drawing-size {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.drawing-size input {
  width: 100%;
  accent-color: var(--teal);
}
.drawing-colours {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(26px, 1fr));
  gap: 0.35rem;
}
.drawing-swatch {
  aspect-ratio: 1;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  padding: 0;
}
.drawing-swatch.active {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.drawing-count {
  margin: 0;
  color: var(--faint);
  font-size: 0.8rem;
}
.drawing {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.drawing-head {
  flex-wrap: wrap;
  align-items: center;
}
.drawing-head .editor-title {
  flex: 1;
  min-width: 8rem;
}
.drawing-floor {
  background-color: var(--floor-light);
  background-image:
    linear-gradient(
      45deg,
      var(--floor-dark) 25%,
      transparent 25%,
      transparent 75%,
      var(--floor-dark) 75%),
    linear-gradient(
      45deg,
      var(--floor-dark) 25%,
      transparent 25%,
      transparent 75%,
      var(--floor-dark) 75%);
  background-size: calc(var(--floor-square, 10px) * 2) calc(var(--floor-square, 10px) * 2);
  background-position: 0 0, var(--floor-square, 10px) var(--floor-square, 10px);
}
.drawing-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: auto;
}
.drawing-paper {
  position: relative;
  margin: auto;
  flex-shrink: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  box-shadow: 0 1px 6px var(--shadow-drop);
  cursor: none;
  touch-action: none;
}
@supports (width: min(1px, 2px)) {
  .drawing-paper {
    width: min(100%, calc((100vh - 12rem) * 4 / 3));
  }
}
.drawing-paper.aim,
.drawing-paper.aim .drawing-canvas {
  cursor: crosshair;
}
.drawing-paper.type,
.drawing-paper.type .drawing-canvas {
  cursor: text;
}
.drawing-paper.grab,
.drawing-paper.grab .drawing-canvas {
  cursor: grab;
}
.drawing-paper.grabbing,
.drawing-paper.grabbing .drawing-canvas {
  cursor: grabbing;
}
.drawing-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.drawing-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.drawing-frame polygon {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  vector-effect: non-scaling-stroke;
}
.drawing-frame rect {
  fill: var(--paper);
  stroke: var(--teal);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.drawing-crop {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.drawing-crop-shade {
  fill: var(--crop-shade);
}
.drawing-crop-edge {
  fill: none;
  stroke: var(--paper);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  vector-effect: non-scaling-stroke;
}
.drawing-crop-handle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.drawing-cursor {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 1px var(--paper);
}
.drawing-cursor.eraser {
  border-style: dashed;
}
.note-row-thumb.drawing-thumb {
  width: 64px;
  height: 48px;
  object-fit: contain;
  vertical-align: middle;
  --floor-square: 4px;
}
.drawing-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
}
.colour-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.colour-picker-wheel {
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.colour-picker-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}
.colour-picker-now {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}
.colour-picker-hex {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--border);
  padding: 0.25rem 0.4rem;
}
.notes-columns .drawing-layers {
  width: var(--w-layers, 190px);
}
.drawing-layers {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
}
.drawing-layer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.drawing-layer {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.45rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: grab;
}
.drawing-layer.drop-above {
  box-shadow: 0 calc(-0.15rem - 1px) 0 0 var(--teal);
}
.drawing-layer.drop-below {
  box-shadow: 0 calc(0.15rem + 1px) 0 0 var(--teal);
}
.drawing-layer.current {
  border-color: var(--teal);
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--teal);
}
.drawing-layer-thumb {
  grid-row: 1 / 3;
  width: auto;
  height: auto;
  max-width: 48px;
  max-height: 48px;
  justify-self: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  --floor-square: 4px;
}
.drawing-layer-name {
  min-width: 0;
  font-size: 0.85rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drawing-layer-name-field {
  min-width: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--teal);
  padding: 0.05rem 0.25rem;
  cursor: text;
}
.drawing-layer-acts {
  display: flex;
  gap: 0.1rem;
  margin-left: -0.2rem;
}
.drawing-layer-name.hidden {
  color: var(--faint);
  text-decoration: line-through;
}
.drawing-layer-eye {
  flex-shrink: 0;
  font: inherit;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0.2rem;
  cursor: pointer;
}
.drawing-layer-eye:disabled {
  color: var(--faint);
  cursor: default;
}
.drawing-layer-eye:hover:not(:disabled) {
  color: var(--teal);
}
.drawing-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.drawing-nav-zoom {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.drawing-nav-zoom input {
  flex: 1;
  min-width: 0;
}
.drawing-nav-fit {
  align-self: flex-end;
  font: inherit;
  font-size: 0.75rem;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  margin-top: -0.3rem;
  cursor: pointer;
}
.drawing-nav-fit:disabled {
  cursor: default;
}
.drawing-nav-fit:hover:not(:disabled) {
  color: var(--teal);
}
.drawing-nav-map {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
  --floor-square: 5px;
}
.drawing-nav-mini {
  display: block;
  width: 100%;
  height: 100%;
}
.drawing-nav-rule {
  width: 100%;
  margin: 0.2rem 0;
  border: none;
  border-top: 1px solid var(--border);
}
.drawing-nav-view {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--viewport);
  pointer-events: none;
}
.imagepick {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.imagepick-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.imagepick-search {
  flex: 1;
  min-width: 12rem;
  font: inherit;
}
.imagepick-buckets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.imagepick-bucket {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font: inherit;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--field);
  border: 1px solid var(--border-strong);
  padding: 0.15rem 0.55rem;
  cursor: pointer;
}
.imagepick-bucket.active {
  color: var(--dock-text);
  background: var(--sea);
  border-color: var(--sea);
}
.imagepick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.imagepick-tag {
  font: inherit;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 0.1rem 0.45rem;
  cursor: pointer;
}
.imagepick-tag.active {
  color: var(--paper);
  background: var(--teal);
  border-color: var(--teal);
}
.imagepick-tag-count {
  opacity: 0.7;
}
.imagepick-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
}
.imagepick-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 1px solid transparent;
  padding: 0.25rem;
  cursor: pointer;
  text-align: left;
}
.imagepick-item:hover,
.imagepick-item:focus-visible {
  border-color: var(--teal);
}
.imagepick-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  --floor-square: 6px;
}
.imagepick-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.imagepick-thumb .drawing-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  --floor-square: 6px;
}
.imagepick-title {
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.imagepick-more {
  align-self: center;
  font: inherit;
}
.drawing-text-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.drawing-text-words {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  resize: vertical;
}
.drawing-text-options select {
  width: 100%;
  font: inherit;
}
.drawing-tool-icon:disabled {
  opacity: 0.35;
  cursor: default;
}

/* apps/device.css */
.device {
  max-width: 520px;
  margin: 4vh auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.device-menu,
.device-modes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.device-menu a.removal-option {
  text-decoration: none;
}
.device-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.device-field input {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
}
.device-field input:focus {
  outline: 2px solid var(--glow);
  border-color: var(--teal);
}
.device-ticket {
  background: var(--surface);
  padding: 0.6rem 0.8rem;
}
.device-log {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* modal.css */
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal {
  width: min(480px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 10px 10px;
  background: var(--teal-deep);
  clip-path: var(--panel-clip);
  color: var(--dock-text);
}
.modal.modal-wide {
  width: min(920px, 100%);
  height: 100%;
}
.modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.35rem 0 0.45rem 0.5rem;
}
.modal-title {
  font-family: "Press Start 2P", monospace;
  font-size: 0.95rem;
  color: var(--dock-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  padding: 0;
  background: var(--surface);
  border: 0;
  clip-path: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.3rem;
  box-shadow: inset 0 1px 2px var(--shadow-punch);
}
.modal-close:hover {
  color: var(--teal);
}
.modal-body {
  flex: 1;
  min-height: 6rem;
  overflow-y: auto;
  padding: 1rem 1.1rem 1.2rem;
  background: var(--surface);
  clip-path: var(--panel-clip);
  color: var(--ink);
}

/* doc/upload.css */
.upload-rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.upload-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.upload-row-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.upload-name {
  flex: 1;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0.3rem 0.5rem;
  font: inherit;
  color: var(--ink);
}
.upload-name:disabled {
  background: none;
  border-color: transparent;
  color: var(--ink);
  opacity: 0.9;
}
.upload-size {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.upload-bar {
  height: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  --j: 2.5px;
  clip-path: var(--jag);
  overflow: hidden;
}
.upload-bar-fill {
  height: 100%;
  background: var(--teal);
  transition: width 0.15s ease;
}
.upload-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.upload-done {
  color: var(--sea);
}
.upload-failed {
  color: var(--coral);
}
.upload-note {
  color: var(--muted);
  font-size: 0.8rem;
  flex: 1;
}
.upload-tags {
  border-top: 1px dashed var(--border);
  padding-top: 0.4rem;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
.modal-ok {
  background: var(--teal-deep);
  color: var(--dock-text);
  border: 0;
  --j: 3px;
  clip-path: var(--jag-1);
  padding: 0.45rem 1.4rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.modal-ok:hover {
  background: var(--teal);
}
.file-dropper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: min(32rem, 100%);
  min-height: 18rem;
  margin: auto;
  padding: 2rem;
  box-sizing: border-box;
  border: 5px dotted var(--border-strong);
  color: var(--muted);
  text-align: center;
}
.file-dropper.over {
  border-color: var(--teal);
  background: var(--field);
  color: var(--sea);
}
.file-dropper-icon {
  font-size: 3rem;
  line-height: 1;
}
.file-dropper-words {
  margin: 0;
  font-size: 1.1rem;
}
.file-dropper-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 1rem;
  padding: 0.5rem 1.1rem;
  color: var(--dock-text);
  background: var(--teal);
  border: none;
  --j: 3px;
  clip-path: var(--jag-1);
  cursor: pointer;
}
.file-dropper-upload:hover {
  background: var(--teal-deep);
}

/* index.css */
.postpage {
  max-width: var(--post-measure);
  margin: 0 auto;
  padding: 1rem;
}
.postpage:has(.book-reader) {
  max-width: none;
}
.book-reader-article {
  max-width: var(--post-measure);
}
.book-reader {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.book-reader-tree {
  border-right: 1px solid var(--border);
  padding-right: 0.8rem;
  font-size: 0.9rem;
}
.book-reader-book {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.book-reader-list {
  list-style: none;
  margin: 0;
  padding-left: 0.9rem;
}
.book-reader-list-top {
  padding-left: 0;
}
.book-reader-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  margin: 0.35rem 0 0.1rem;
}
.book-reader-page {
  margin: 0.15rem 0;
}
.book-reader-page-current > a {
  font-weight: 600;
  color: var(--teal);
}
.book-reader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.book-reader-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.1rem 0.55rem;
  --j: 0.25em;
  clip-path: var(--jag-1);
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.book-reader-tag-on {
  border-style: solid;
  background: color-mix(in srgb, var(--surface-2) 84%, var(--ink) 16%);
  color: var(--ink);
}
.book-reader-tag-count {
  background: var(--ink-soft);
  color: var(--surface);
  --j: 0.25em;
  clip-path: var(--jag-1);
  padding: 0 0.4em;
  font-size: 0.85em;
}
.book-reader-none {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.book-reader-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.book-reader-step {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.book-reader-where {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.book-reader-trail {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0.2rem 0;
}
.book-reader-title {
  margin: 0.2rem 0 0.6rem;
}
@media (max-width: 720px) {
  .book-reader {
    grid-template-columns: 1fr;
  }
  .book-reader-tree {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 0 0.6rem;
  }
}
.postpage-loading,
.postpage-missing {
  color: var(--muted);
  font-style: italic;
}
.minipost {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.3rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid transparent;
  --line: var(--border);
  position: relative;
  --j: 0.2rem;
  clip-path: var(--jag-1);
  text-decoration: none;
}
.minipost-title {
  font-weight: 600;
}
.minipost-words {
  font-style: italic;
}
.minipost-who {
  display: inline-flex;
  align-self: center;
}
.minipost-when {
  font-size: 0.8em;
  color: var(--muted);
}
.thread-seeking {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.thread-refresh {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
}
.thread-order {
  margin-left: 0.75rem;
  font: inherit;
  font-size: 0.75rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.1rem 0.3rem;
}
.held-replies {
  border: 1px dashed var(--border-strong);
  --j: 4px;
  clip-path: var(--jag-1);
  padding: 0.6rem 0.9rem;
  margin: 0.5rem 0 1rem;
}
.held-replies-head {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.held-reply {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.held-reply-hollow,
.thread-hollow {
  font-size: 0.85rem;
  color: var(--faint);
}
.held-reply-acts {
  display: flex;
  gap: 0.6rem;
}
.held-approve,
.held-suppress {
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
}
.feed-entry-replyto,
.postpage-parent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.replybox {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.replybox-open {
  align-self: flex-start;
  padding: 0.4rem 1rem;
  color: var(--muted);
}
.replybox-note {
  font-size: 0.8rem;
  color: var(--muted);
}
.thread {
  margin-top: 1.25rem;
}
.thread-head {
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}
.thread-empty,
.thread-deeper {
  color: var(--muted);
  font-style: italic;
}
.thread-reply {
  margin-top: 0.75rem;
}
.thread-reply .thread-level {
  margin-left: 1.25rem;
  border-left: 2px solid var(--border);
  padding-left: 0.75rem;
}
