@font-face {
  font-family: "Eli Kalam";
  src: url("./fonts/kalam-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Eli Kalam";
  src: url("./fonts/kalam-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Eli Plex Mono";
  src: url("./fonts/ibm-plex-mono-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Eli Plex Mono";
  src: url("./fonts/ibm-plex-mono-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Eli Barlow Condensed";
  src: url("./fonts/barlow-condensed-700-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Eli Comic Neue";
  src: url("./fonts/comic-neue-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Eli Special Elite";
  src: url("./fonts/special-elite-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Eli Cabin Sketch";
  src: url("./fonts/cabin-sketch-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Eli IM Fell English";
  src: url("./fonts/im-fell-english-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07090d;
  --surface: #0c1017;
  --surface-raised: #101620;
  --line: #202a38;
  --line-strong: #344257;
  --text: #e7edf5;
  --muted: #8996a8;
  --faint: #566273;
  --accent: #63b4ff;
  --accent-dim: #102b43;
  --signal: #78d4b1;
  --danger: #ff8491;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.cjk-font {
  font-family: "ChillHuoFangKai_F", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-style: normal;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
  pointer-events: none;
}

a {
  color: inherit;
}

main {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.shell {
  display: grid;
  gap: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  text-decoration: none;
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.back-link::before {
  content: "←";
  color: var(--accent);
  font-size: 16px;
}

.page-title {
  max-width: 640px;
  margin: 0;
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1.08;
  font-weight: 670;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel,
.card,
.entry-card {
  border: 1px solid var(--line);
  background: var(--surface);
}

.panel {
  padding: 16px;
  border-radius: 3px;
}

.hero {
  display: grid;
  gap: 22px;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

.identity {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--accent);
  background: var(--surface);
  font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 9px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--signal);
}

.pill strong {
  color: var(--text);
  font-weight: 600;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

input,
select,
button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  background: var(--surface);
  font: 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

input,
select {
  width: 100%;
  padding: 0 11px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: #071018;
  background: var(--accent);
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
}

button:active,
.button:active {
  background: #8bc8ff;
}

.nav-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.nav-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 0 12px;
  align-items: center;
  min-height: 78px;
  padding: 13px 10px 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  text-decoration: none;
}

.nav-card::before {
  content: counter(nav-item, decimal-leading-zero);
  counter-increment: nav-item;
  align-self: start;
  padding-top: 2px;
  color: var(--faint);
  font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.nav-card::after {
  content: "↗";
  color: var(--faint);
  font-size: 16px;
}

.nav-grid {
  counter-reset: nav-item;
}

.nav-card:hover,
.nav-card:focus-visible {
  background: var(--surface);
  outline: none;
}

.nav-card:hover::after,
.nav-card:focus-visible::after {
  color: var(--accent);
}

.nav-card strong {
  align-self: end;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 620;
}

.nav-card span {
  grid-column: 2;
  align-self: start;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.list {
  display: grid;
  gap: 10px;
}

.entry-card {
  border-radius: 2px;
  padding: 15px;
}

.entry-card h2,
.entry-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 640;
}

.entry-card p {
  margin: 8px 0 0;
  color: #cbd5e2;
  white-space: pre-wrap;
}

time,
.meta {
  color: var(--faint);
  font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.timeline {
  position: relative;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.timeline .entry-card {
  position: relative;
  padding: 16px 10px 17px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.timeline .entry-card::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.chat-log {
  display: grid;
  gap: 8px;
}

.message {
  width: min(88%, 620px);
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
}

.message.pi {
  justify-self: end;
  border-color: #28516f;
  background: #0d2233;
}

.message.eli {
  justify-self: start;
}

.message p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.message .speaker {
  display: block;
  color: var(--faint);
  font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.task-form {
  display: grid;
  gap: 11px;
}

.task-form .row {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 8px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0;
}

.empty {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

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

@media (min-width: 640px) {
  main {
    padding-top: 34px;
  }

  .hero {
    grid-template-columns: 1fr 1.15fr;
    align-items: end;
  }

  .task-form {
    grid-template-columns: 1fr 130px 140px auto;
    align-items: end;
  }

  .task-form .row {
    display: contents;
  }
}

@media (max-width: 430px) {
  main {
    padding-inline: 14px;
  }

  .control-grid,
  .task-form .row {
    grid-template-columns: 1fr;
  }

  button,
  .button {
    width: 100%;
  }

  .page-title {
    font-size: 29px;
  }
}

/* Home — orderly first, handmade second. */
.home-page {
  --paper: #c9c0b5;
  --paper-light: #eee6db;
  --ink: #26385f;
  --ink-soft: #667086;
  --scrap: #304875;
  --chalk: #f2eadf;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, .3), transparent 28%),
    repeating-linear-gradient(0deg, rgba(48, 41, 36, .02) 0 1px, transparent 1px 4px),
    var(--paper);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.home-page::before {
  display: none;
}

.home-shell {
  width: min(100%, 500px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 18px 28px;
}

.profile-card {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 24px 20px 20px;
  border: 1px solid rgba(38, 56, 95, .08);
  border-radius: 4px;
  background: rgba(255, 255, 255, .14);
  box-shadow:
    0 5px 0 rgba(72, 65, 58, .035),
    0 11px 18px rgba(58, 52, 47, .09);
}

.mode-arc {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 220px;
  height: 120px;
  overflow: visible;
  transform: translateX(-50%);
  pointer-events: none;
}

.mode-word text {
  fill: var(--ink-soft);
  font: 600 15px "Eli Plex Mono", ui-monospace, monospace;
  text-anchor: middle;
  dominant-baseline: middle;
}

.mode-word-intimate {
  display: none;
}

.mode-arc.is-intimate .mode-word-daily {
  display: none;
}

.mode-arc.is-intimate .mode-word-intimate {
  display: block;
}

.mode-word-intimate text {
  font-size: 13px;
}

.portrait {
  position: relative;
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-light);
  box-shadow: 0 7px 0 rgba(64, 55, 48, .035);
  margin-top: 29px;
}

.portrait-face {
  color: var(--ink);
  font: 700 47px/1 "Eli Kalam", cursive;
  letter-spacing: -.06em;
  text-transform: lowercase;
  transform: rotate(-3deg);
}

.portrait-mark {
  position: absolute;
  top: 0;
  width: 2px;
  height: 185px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(77, 80, 91, .58) 0 16px,
    transparent 16px 24px
  );
  opacity: .8;
}

.portrait-mark-left {
  left: -34px;
}

.portrait-mark-right {
  right: -34px;
}

.presence {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font: 400 16px/1.15 "Eli Kalam", cursive;
}

.presence > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #56785b;
  box-shadow: 0 0 0 3px rgba(86, 120, 91, .1);
}

.presence strong {
  color: var(--ink);
  font-weight: 700;
}

.model-strip {
  position: relative;
  z-index: 5;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 5px;
  border: 1px solid rgba(38, 56, 95, .13);
  border-radius: 4px;
  background: rgba(48, 72, 117, .14);
}

.model-strip label,
.model-strip > button {
  min-height: 38px;
  border: 0;
  border-radius: 2px;
  color: var(--paper-light);
  background: rgba(38, 56, 95, .38);
  font: 400 15px/1 "Eli IM Fell English", Georgia, serif;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.model-strip label {
  display: grid;
  place-items: center;
  padding: 0 9px;
}

.model-picker {
  position: relative;
  min-width: 0;
}

.model-picker select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.model-picker-trigger {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 0 6px 0 7px;
  border: 1px solid rgba(38, 56, 95, .16);
  border-radius: 3px;
  color: var(--ink);
  background: rgba(238, 230, 219, .88);
  font: 600 10px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .015em;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.model-picker-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-picker-trigger svg {
  width: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 120ms ease;
}

.model-picker.is-open .model-picker-trigger svg {
  transform: rotate(180deg);
}

.model-picker-trigger:focus-visible {
  outline: 2px solid rgba(38, 56, 95, .45);
  outline-offset: 2px;
}

.model-picker-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  width: 220px;
  z-index: 20;
  display: grid;
  gap: 2px;
  padding: 7px;
  border: 1px solid rgba(38, 56, 95, .16);
  border-radius: 4px;
  background: #637b98;
  transform: translateX(-50%);
}

.model-picker-menu[hidden] {
  display: none;
}

.model-picker-option {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 7px 9px;
  border: 0;
  color: rgba(248, 241, 232, .9);
  background: transparent;
  font: 400 13px/1.15 "Eli Special Elite", monospace;
  letter-spacing: .02em;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.model-picker-option:hover,
.model-picker-option:focus-visible {
  color: var(--chalk);
  border-radius: 2px;
  background: rgba(242, 234, 223, .14);
  outline: none;
}

.model-picker-option[aria-selected="true"] {
  color: var(--ink);
  border-radius: 2px;
  background: rgba(242, 234, 223, .9);
}

.model-strip > button {
  padding: 0 10px;
  cursor: pointer;
}

.model-strip > button:active {
  color: var(--ink);
  background: var(--paper-light);
}

.model-strip > button:disabled {
  opacity: .65;
  cursor: wait;
}

.save-status {
  min-height: 13px;
  margin: 5px 0 -14px;
  color: var(--ink-soft);
  font: 400 12px/1.3 "Eli Kalam", cursive;
}

.scrapbook-nav {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px 0;
  margin-top: 18px;
}

.scrap-shadow {
  z-index: 0;
  min-height: 102px;
  background: #172641;
  transform: translate(-1px, 2px);
  -webkit-mask-image: var(--scrap-edge-mask);
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--scrap-edge-mask);
  mask-position: center;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.scrap-card {
  position: relative;
  z-index: 1;
  min-height: 102px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 12px;
  padding: 20px 22px;
  overflow: hidden;
  color: var(--chalk);
  background: var(--scrap-card-color, var(--scrap));
  -webkit-mask-image: var(--scrap-edge-mask);
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--scrap-edge-mask);
  mask-position: center;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.scrap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' seed='8' stitchTiles='stitch' result='grain'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018 .28' numOctaves='2' seed='19' stitchTiles='stitch' result='fiber'/%3E%3CfeBlend in='grain' in2='fiber' mode='multiply'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='.82'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.scrap-card:focus-visible {
  outline: 3px solid var(--paper-light);
  outline-offset: -6px;
}

.scrap-card:active {
  transform: scale(.99);
}

.scrap-log {
  --scrap-card-color: #304875;
  --scrap-edge-mask: url("./assets/card-edge-1.svg?v=6");
  grid-column: 1 / 7;
  grid-row: 1;
}

.scrap-shadow-log {
  --scrap-edge-mask: url("./assets/card-edge-1.svg?v=6");
  grid-column: 1 / 7;
  grid-row: 1;
  min-height: 124px;
}

.scrap-private {
  --scrap-card-color: #273f6a;
  --scrap-edge-mask: url("./assets/card-edge-2.svg?v=6");
  grid-column: 7 / 13;
  grid-row: 1;
}

.scrap-shadow-private {
  --scrap-edge-mask: url("./assets/card-edge-2.svg?v=6");
  grid-column: 7 / 13;
  grid-row: 1;
  min-height: 124px;
}

.scrap-intimate {
  --scrap-card-color: #344c78;
  --scrap-edge-mask: url("./assets/card-edge-3.svg?v=6");
  grid-column: 1 / 13;
  grid-row: 2;
}

.scrap-shadow-intimate {
  --scrap-edge-mask: url("./assets/card-edge-3.svg?v=6");
  grid-column: 1 / 13;
  grid-row: 2;
  min-height: 108px;
}

.scrap-tasks {
  --scrap-card-color: #2b426c;
  --scrap-edge-mask: url("./assets/card-edge-4.svg?v=6");
  grid-column: 1 / 13;
  grid-row: 3;
  margin-top: -7px;
}

.scrap-shadow-tasks {
  --scrap-edge-mask: url("./assets/card-edge-4.svg?v=6");
  grid-column: 1 / 13;
  grid-row: 3;
  min-height: 108px;
  margin-top: -7px;
}

.scrap-log,
.scrap-private {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 18px 14px;
}

.scrap-log strong,
.scrap-private strong {
  margin: 0;
}

.scrap-intimate,
.scrap-tasks {
  min-height: 108px;
}

.scrap-kicker,
.scrap-card strong {
  position: relative;
  z-index: 1;
}

.scrap-kicker {
  position: absolute;
  top: 10px;
  left: 11px;
  color: rgba(242, 234, 223, .57);
  font: 600 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.scrap-private .scrap-kicker,
.scrap-tasks .scrap-kicker {
  right: 11px;
  left: auto;
  text-align: right;
}

.scrap-card strong {
  grid-column: 1;
  margin-top: 13px;
  color: var(--chalk);
  font: 400 clamp(22px, 6vw, 27px)/1.22 "Eli Special Elite", monospace;
  letter-spacing: .006em;
  text-transform: uppercase;
  text-wrap: balance;
}

.scrap-private strong,
.scrap-tasks strong {
  text-align: right;
}

.scrap-doodle {
  position: absolute;
  z-index: 0;
  display: block;
  height: auto;
  opacity: .88;
  pointer-events: none;
}

.doodle-log {
  top: 0;
  right: -5px;
  width: 104px;
}

.doodle-intimate {
  top: -6px;
  right: 0;
  width: 108px;
}

.doodle-tasks {
  top: 16px;
  left: 0;
  width: 88px;
}

.scrap-log strong,
.scrap-private strong {
  margin-top: 0;
  font-size: clamp(20px, 5.5vw, 24px);
  line-height: 1.24;
}

.preview-font-special .scrap-card strong {
  font-family: "Eli Special Elite", monospace;
  font-size: clamp(22px, 6.2vw, 28px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: .01em;
}

.preview-font-cabin .scrap-card strong {
  font-family: "Eli Cabin Sketch", sans-serif;
  font-size: clamp(27px, 7.3vw, 33px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .01em;
}

.preview-font-fell .scrap-card strong {
  font-family: "Eli IM Fell English", Georgia, serif;
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .015em;
}

.home-footer {
  display: flex;
  justify-content: space-between;
  padding: 13px 5px 0;
  color: rgba(38, 56, 95, .5);
  font: 500 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (min-width: 540px) {
  .home-shell {
    padding-top: 42px;
  }

  .scrap-card:hover {
    background-color: #38517f;
    transform: translateY(-1px);
  }
}

@media (max-width: 360px) {
  .home-shell {
    padding: 24px 12px;
  }

  .profile-card {
    padding-inline: 12px;
  }

  .portrait {
    width: 142px;
    height: 142px;
  }

  .scrap-card {
    padding-inline: 15px;
  }

  .scrap-card strong {
    font-size: 22px;
  }

  .scrap-log strong,
  .scrap-private strong {
    font-size: 20px;
  }
}

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

/* Wake notes — the activity log as a slightly incriminating paper trail. */
.log-page {
  --paper: #c9c0b5;
  --paper-light: #eee6db;
  --paper-shadow: #afa69c;
  --ink: #26385f;
  --ink-soft: #667086;
  --scrap: #304875;
  --scrap-deep: #172641;
  --chalk: #f2eadf;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 4%, rgba(255, 255, 255, .24), transparent 25%),
    repeating-linear-gradient(0deg, rgba(48, 41, 36, .022) 0 1px, transparent 1px 4px),
    var(--paper);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.log-page::before {
  display: none;
}

.log-shell {
  width: min(100%, 500px);
  min-width: 0;
  min-height: 100vh;
  display: block;
  margin: 0 auto;
  padding: 22px 18px 28px;
}

.log-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-bottom: 15px;
  color: var(--ink-soft);
  font: 600 9px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.log-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
}

.log-back span {
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.log-file-code {
  opacity: .62;
}

.log-cover {
  position: relative;
  min-height: 222px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 25px 25px;
  overflow: hidden;
  color: var(--chalk);
  background-color: var(--scrap);
  -webkit-mask: url("./assets/card-edge-3.svg?v=6") center / 100% 100% no-repeat;
  mask: url("./assets/card-edge-3.svg?v=6") center / 100% 100% no-repeat;
}

.log-cover::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .36;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' seed='8' stitchTiles='stitch' result='grain'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018 .28' numOctaves='2' seed='19' stitchTiles='stitch' result='fiber'/%3E%3CfeBlend in='grain' in2='fiber' mode='multiply'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='.82'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.log-cover::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: -3px;
  left: 50%;
  width: 82px;
  height: 29px;
  background: rgba(223, 211, 192, .46);
  transform: translateX(-50%) rotate(-2deg);
}

.log-cover-kicker,
.log-cover h1,
.log-cover p {
  position: relative;
  z-index: 2;
}

.log-cover-kicker {
  position: absolute;
  top: 19px;
  left: 22px;
  color: rgba(242, 234, 223, .58);
  font: 600 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.log-cover h1 {
  width: 88%;
  margin: 0;
  font: 400 clamp(31px, 8.5vw, 42px)/1.08 "Eli Special Elite", monospace;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.log-cover p {
  max-width: 270px;
  margin: 13px 0 0;
  color: rgba(242, 234, 223, .72);
  font: 400 13px/1.25 "Eli Kalam", cursive;
}

.log-cover img {
  position: absolute;
  z-index: 1;
  top: 7px;
  right: -9px;
  width: 166px;
  height: auto;
  opacity: .54;
  pointer-events: none;
}

.log-register {
  display: flex;
  justify-content: space-between;
  margin: 15px 4px 10px;
  color: rgba(38, 56, 95, .58);
  font: 600 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.log-stack {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 6px 0 4px 21px;
}

.log-stack::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(38, 56, 95, .42) 0 13px,
    transparent 13px 20px
  );
}

.wake-note {
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: 122px;
  padding: 16px 17px 15px;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(48, 41, 36, .022) 0 1px, transparent 1px 4px),
    var(--paper-light);
  border-radius: 3px;
  box-shadow:
    -2px 3px 0 rgba(38, 56, 95, .16),
    0 7px 13px rgba(70, 61, 54, .08);
}

.wake-note:nth-child(even) {
  margin-left: 7px;
  transform: rotate(.22deg);
}

.wake-note:nth-child(3n) {
  margin-right: 5px;
  transform: rotate(-.18deg);
}

.wake-note::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -20px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px rgba(38, 56, 95, .12);
}

.wake-note header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.wake-note-number {
  min-width: 27px;
  padding: 4px 5px 3px;
  color: var(--chalk);
  background: var(--ink);
  font: 600 8px/1 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-align: center;
}

.wake-note time,
.wake-note-mark {
  color: var(--ink-soft);
  font: 600 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.wake-note-mark {
  text-align: right;
}

.wake-note > p {
  margin: 17px 0 0;
  min-width: 0;
  color: var(--ink);
  font: 400 17px/1.48 "Eli Special Elite", "Noto Sans SC", sans-serif;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.wake-note footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 15px;
  padding-top: 9px;
  border-top: 1px dashed rgba(38, 56, 95, .22);
}

.wake-note footer span {
  color: var(--ink-soft);
  font: 500 8px/1.3 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wake-note.is-error {
  color: var(--chalk);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px),
    #273f6a;
  box-shadow:
    -2px 3px 0 var(--scrap-deep),
    0 7px 13px rgba(70, 61, 54, .08);
}

.wake-note.is-error::before {
  background: #273f6a;
}

.wake-note.is-error .wake-note-number {
  color: var(--ink);
  background: var(--chalk);
}

.wake-note.is-error time,
.wake-note.is-error .wake-note-mark,
.wake-note.is-error > p,
.wake-note.is-error footer span {
  color: var(--chalk);
}

.wake-note.is-error time,
.wake-note.is-error .wake-note-mark,
.wake-note.is-error footer span {
  opacity: .66;
}

.log-loading,
.log-error,
.log-stack .empty {
  position: relative;
  padding: 24px 19px;
  border: 0;
  color: var(--ink-soft);
  background: rgba(238, 230, 219, .62);
  font: 400 15px/1.45 "Eli Kalam", cursive;
}

.log-error {
  display: grid;
  gap: 5px;
}

.log-error strong {
  color: var(--ink);
  font-family: "Eli Special Elite", monospace;
  text-transform: uppercase;
}

.log-error span {
  font: 500 9px/1.4 "Eli Plex Mono", ui-monospace, monospace;
}

.log-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 5px 0;
  color: rgba(38, 56, 95, .5);
  font: 500 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (min-width: 540px) {
  .log-shell {
    padding-top: 30px;
  }
}

@media (max-width: 360px) {
  .log-shell {
    padding: 18px 12px 24px;
  }

  .log-cover {
    min-height: 210px;
    padding-inline: 20px;
  }

  .log-cover img {
    right: -18px;
    width: 151px;
  }

  .log-stack {
    padding-left: 18px;
  }

  .wake-note {
    padding-inline: 14px;
  }

  .wake-note header {
    gap: 7px;
  }
}

@media (max-width: 430px) {
  .log-cover h1 {
    font-size: clamp(29px, 8.1vw, 34px);
  }

  .wake-note-mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wake-note:nth-child(even),
  .wake-note:nth-child(3n) {
    transform: none;
  }
}

/* Published private — a folder of papers that should have stayed shut. */
.private-page {
  --paper: #c9c0b5;
  --paper-light: #eee6db;
  --paper-warm: #ded3c5;
  --ink: #26385f;
  --ink-soft: #667086;
  --scrap: #273f6a;
  --scrap-deep: #172641;
  --chalk: #f2eadf;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 255, 255, .27), transparent 25%),
    repeating-linear-gradient(0deg, rgba(48, 41, 36, .022) 0 1px, transparent 1px 4px),
    var(--paper);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.private-page::before {
  display: none;
}

.private-shell {
  width: min(100%, 500px);
  min-height: 100vh;
  display: block;
  margin: 0 auto;
  padding: 22px 18px 28px;
}

.private-topbar {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--ink-soft);
  font: 600 9px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.private-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
}

.private-back span {
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.private-file-code {
  opacity: .62;
}

.private-cover {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 62px 25px 16px;
  overflow: hidden;
  color: var(--chalk);
  background:
    radial-gradient(circle at 85% 11%, rgba(255, 255, 255, .08), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 4px),
    var(--scrap);
  border: 1px solid rgba(23, 38, 65, .45);
  border-radius: 3px 3px 5px 5px;
  box-shadow:
    inset 5px 0 0 rgba(23, 38, 65, .28),
    -3px 5px 0 rgba(23, 38, 65, .35),
    0 10px 18px rgba(70, 61, 54, .09);
}

.private-cover::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 58%;
  height: 34px;
  background: var(--scrap-deep);
  clip-path: polygon(0 0, 89% 0, 100% 100%, 0 100%);
}

.private-cover::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 10px;
  right: -47px;
  width: 152px;
  height: 23px;
  opacity: .5;
  background: var(--paper-light);
  box-shadow: 0 1px 0 rgba(23, 38, 65, .2);
  transform: rotate(38deg);
}

.private-cover-tab {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 18px;
  color: rgba(242, 234, 223, .72);
  font: 600 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.private-cover h1,
.private-cover p {
  position: relative;
  z-index: 3;
}

.private-cover h1 {
  width: 82%;
  margin: 0 0 0 auto;
  color: var(--chalk);
  font: 400 clamp(36px, 9.4vw, 47px)/1.01 "Eli Special Elite", monospace;
  letter-spacing: .005em;
  text-align: right;
  text-transform: uppercase;
  text-wrap: balance;
}

.private-cover p {
  max-width: 260px;
  margin: 15px 0 0;
  color: rgba(242, 234, 223, .7);
  font: 400 13px/1.3 "Eli Kalam", cursive;
  text-align: left;
}

.private-cover img {
  position: absolute;
  z-index: 1;
  right: auto;
  top: 35px;
  bottom: auto;
  left: -5px;
  width: 150px;
  height: auto;
  opacity: .2;
  filter: brightness(0) invert(1);
  transform: rotate(-4deg);
  pointer-events: none;
}

.private-stamp {
  position: absolute;
  z-index: 2;
  top: auto;
  right: -4px;
  bottom: -7px;
  left: auto;
  padding: 15px 20px 12px;
  color: rgba(23, 38, 65, .26);
  border: 2.5px solid rgba(23, 38, 65, .22);
  font: 600 17px/1.02 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  opacity: 1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(7deg);
  transform-origin: right bottom;
}

.private-register {
  display: flex;
  justify-content: space-between;
  margin: 18px 4px 11px;
  color: rgba(38, 56, 95, .58);
  font: 600 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.private-stack {
  display: grid;
  gap: 14px;
}

.private-entry {
  position: relative;
  padding: 18px 18px 16px;
  overflow: hidden;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(48, 41, 36, .023) 0 1px, transparent 1px 4px),
    var(--paper-light);
  border-radius: 3px;
  box-shadow:
    -2px 3px 0 rgba(38, 56, 95, .15),
    0 7px 13px rgba(70, 61, 54, .08);
}

.private-entry:nth-child(even) {
  margin-inline: 5px -2px;
  transform: rotate(.25deg);
}

.private-entry:nth-child(3n) {
  margin-inline: -2px 6px;
  transform: rotate(-.18deg);
}

.private-entry::before {
  content: "";
  position: absolute;
  top: 12px;
  right: -10px;
  width: 72px;
  height: 11px;
  opacity: .16;
  background: var(--ink);
  transform: rotate(-3deg);
}

.private-entry::after {
  content: "";
  position: absolute;
  bottom: 13px;
  left: -9px;
  width: 50px;
  height: 8px;
  opacity: .11;
  background: var(--ink);
  transform: rotate(2deg);
}

.private-entry header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.private-entry-label,
.private-entry time {
  color: var(--ink-soft);
  font: 600 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.private-entry-label {
  padding: 4px 6px 3px;
  color: var(--chalk);
  background: var(--ink);
}

.private-entry h2 {
  position: relative;
  z-index: 1;
  max-width: 92%;
  margin: 20px 0 0;
  color: var(--ink);
  font: 400 clamp(22px, 6vw, 28px)/1.12 "Eli Special Elite", monospace;
  letter-spacing: .004em;
  text-transform: uppercase;
  text-wrap: balance;
}

.private-entry > p {
  position: relative;
  z-index: 1;
  margin: 15px 0 0;
  color: var(--ink);
  font: 400 16px/1.52 "Eli IM Fell English", Georgia, serif;
  white-space: pre-wrap;
}

.private-entry footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 18px;
  padding-top: 9px;
  border-top: 1px dashed rgba(38, 56, 95, .22);
}

.private-entry footer span {
  color: var(--ink-soft);
  font: 500 8px/1.3 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.private-loading,
.private-error,
.private-stack .empty {
  padding: 24px 19px;
  color: var(--ink-soft);
  background: rgba(238, 230, 219, .62);
  font: 400 15px/1.45 "Eli Kalam", cursive;
}

.private-error {
  display: grid;
  gap: 5px;
}

.private-error strong {
  color: var(--ink);
  font-family: "Eli Special Elite", monospace;
  text-transform: uppercase;
}

.private-error span {
  font: 500 9px/1.4 "Eli Plex Mono", ui-monospace, monospace;
}

.private-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 5px 0;
  color: rgba(38, 56, 95, .5);
  font: 500 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (min-width: 540px) {
  .private-shell {
    padding-top: 30px;
  }
}

@media (max-width: 430px) {
  .private-cover {
    min-height: 252px;
    padding: 58px 20px 12px;
  }

  .private-cover h1 {
    font-size: clamp(34px, 9.3vw, 40px);
  }

  .private-entry {
    padding-inline: 15px;
  }
}

@media (max-width: 360px) {
  .private-shell {
    padding: 18px 12px 24px;
  }

  .private-cover img {
    right: auto;
    top: 33px;
    bottom: auto;
    left: -6px;
    width: 146px;
  }

  .private-entry time {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .private-entry:nth-child(even),
  .private-entry:nth-child(3n) {
    transform: none;
  }
}

/* Intimate archive — verbatim conversations kept on old tape. */
.intimate-page {
  --tape-paper: #c9c0b5;
  --tape-paper-light: #eee6db;
  --tape-paper-warm: #ddd2c4;
  --tape-ink: #26385f;
  --tape-ink-soft: #687287;
  --tape-navy: #273f6a;
  --tape-navy-deep: #172641;
  --tape-red: #805a61;
  --tape-chalk: #f2eadf;
  min-height: 100vh;
  color: var(--tape-ink);
  background:
    radial-gradient(circle at 82% 2%, rgba(255, 255, 255, .24), transparent 24%),
    repeating-linear-gradient(0deg, rgba(48, 41, 36, .022) 0 1px, transparent 1px 4px),
    var(--tape-paper);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.intimate-page::before {
  display: none;
}

.intimate-shell {
  width: min(100%, 500px);
  min-height: 100vh;
  display: block;
  margin: 0 auto;
  padding: 22px 18px 28px;
}

.intimate-topbar {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--tape-ink-soft);
  font: 600 9px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.intimate-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--tape-ink);
  text-decoration: none;
}

.intimate-back span {
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.intimate-file-code {
  opacity: .62;
}

.intimate-cover {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 218px 24px 25px;
  overflow: hidden;
  color: var(--tape-chalk);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .08), transparent 24%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 4px),
    var(--tape-navy);
  -webkit-mask: url("./assets/card-edge-4.svg?v=1") center / 100% 100% no-repeat;
  mask: url("./assets/card-edge-4.svg?v=1") center / 100% 100% no-repeat;
  box-shadow: 0 10px 18px rgba(70, 61, 54, .09);
}

.intimate-cover::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -10px;
  left: 39%;
  width: 78px;
  height: 30px;
  opacity: .5;
  background: var(--tape-paper-warm);
  transform: rotate(-4deg);
}

.intimate-cover::after {
  content: "KEEP / MASTER";
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 17px;
  color: rgba(242, 234, 223, .18);
  font: 600 16px/1 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  transform: rotate(-90deg) translateX(100%);
  transform-origin: right bottom;
}

.intimate-cover-kicker {
  position: absolute;
  z-index: 4;
  top: 42px;
  left: 22px;
  color: rgba(242, 234, 223, .56);
  font: 600 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.intimate-cover h1,
.intimate-cover > p {
  position: relative;
  z-index: 4;
}

.intimate-cover h1 {
  max-width: 72%;
  margin: 0;
  color: var(--tape-chalk);
  font: 400 clamp(31px, 8.4vw, 41px)/1.04 "Eli Special Elite", monospace;
  letter-spacing: .004em;
  text-transform: uppercase;
  text-wrap: balance;
}

.intimate-cover > p {
  max-width: 295px;
  margin: 12px 0 0;
  color: rgba(242, 234, 223, .68);
  font: 400 13px/1.3 "Eli Kalam", cursive;
}

.intimate-cover > img {
  position: absolute;
  z-index: 3;
  top: 207px;
  right: 22px;
  width: 145px;
  height: auto;
  opacity: .27;
  filter: brightness(0) invert(1);
  transform: rotate(5deg);
  pointer-events: none;
}

.intimate-cassette {
  position: absolute;
  z-index: 1;
  top: 70px;
  left: 50%;
  width: min(82%, 330px);
  height: 105px;
  border: 2px solid rgba(242, 234, 223, .6);
  border-radius: 9px;
  background:
    linear-gradient(rgba(242, 234, 223, .08), rgba(242, 234, 223, .02)),
    var(--tape-navy-deep);
  box-shadow:
    inset 0 0 0 5px rgba(242, 234, 223, .06),
    4px 5px 0 rgba(8, 16, 29, .2);
  transform: translateX(-50%) rotate(-1.2deg);
}

.intimate-cassette::before {
  content: "";
  position: absolute;
  right: 23px;
  bottom: 8px;
  left: 23px;
  height: 22px;
  border: 1px solid rgba(242, 234, 223, .32);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}

.intimate-cassette-label {
  position: absolute;
  top: 10px;
  right: 14px;
  left: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(242, 234, 223, .24);
  color: rgba(242, 234, 223, .58);
  font: 600 7px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.intimate-reel {
  position: absolute;
  top: 38px;
  width: 37px;
  height: 37px;
  border: 6px dotted rgba(242, 234, 223, .6);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px var(--tape-navy-deep),
    0 0 0 5px rgba(242, 234, 223, .2);
}

.intimate-reel-left {
  left: 35px;
}

.intimate-reel-right {
  right: 35px;
}

.intimate-tape-window {
  position: absolute;
  top: 44px;
  left: 50%;
  width: 82px;
  height: 24px;
  border: 1px solid rgba(242, 234, 223, .35);
  border-radius: 3px;
  background: rgba(8, 16, 29, .46);
  transform: translateX(-50%);
}

.intimate-tape-window::before {
  content: "";
  position: absolute;
  top: 9px;
  right: -34px;
  left: -34px;
  height: 3px;
  opacity: .65;
  background: var(--tape-red);
}

.intimate-register {
  display: flex;
  justify-content: space-between;
  margin: 17px 4px 10px;
  color: rgba(38, 56, 95, .58);
  font: 600 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.intimate-tapes {
  display: grid;
  gap: 12px;
}

.intimate-tape {
  color: var(--tape-ink);
  background:
    repeating-linear-gradient(0deg, rgba(48, 41, 36, .022) 0 1px, transparent 1px 4px),
    var(--tape-paper-light);
  border-radius: 3px;
  box-shadow:
    -2px 3px 0 rgba(38, 56, 95, .15),
    0 7px 13px rgba(70, 61, 54, .08);
}

.intimate-tape > summary {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 14px 15px;
  overflow: hidden;
  cursor: pointer;
  list-style: none;
}

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

.intimate-tape > summary::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 0;
  left: 22px;
  height: 1px;
  opacity: 0;
  background: rgba(38, 56, 95, .16);
}

.intimate-tape[open] > summary::after {
  opacity: 1;
}

.intimate-tape-number {
  align-self: start;
  padding: 5px 6px 4px;
  color: var(--tape-chalk);
  background: var(--tape-ink);
  font: 600 8px/1 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.intimate-tape-heading {
  display: grid;
  gap: 4px;
}

.intimate-tape-heading strong {
  color: var(--tape-ink);
  font: 400 16px/1.12 "Eli Special Elite", monospace;
  text-transform: uppercase;
}

.intimate-tape-heading small {
  color: var(--tape-ink-soft);
  font: 600 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.intimate-tape-toggle {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(38, 56, 95, .32);
  border-radius: 50%;
}

.intimate-tape-toggle::before,
.intimate-tape-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 1px;
  background: var(--tape-ink);
  transform: translate(-50%, -50%);
}

.intimate-tape-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity .15s ease;
}

.intimate-tape[open] .intimate-tape-toggle::after {
  opacity: 0;
}

.intimate-tape-preview {
  grid-column: 2 / 4;
  color: rgba(38, 56, 95, .62);
  font: 400 12px/1.3 "Eli IM Fell English", Georgia, serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intimate-tape[open] .intimate-tape-preview {
  display: none;
}

.intimate-transcript {
  padding: 0 17px 16px;
}

.intimate-transcript > header,
.intimate-transcript > footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(38, 56, 95, .5);
  font: 600 7px/1.3 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intimate-transcript > header {
  padding: 11px 1px 10px;
}

.intimate-transcript > footer {
  padding: 10px 1px 0;
  border-top: 1px dashed rgba(38, 56, 95, .2);
}

.intimate-track {
  position: relative;
  padding: 2px 0 6px;
}

.intimate-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  opacity: .2;
  background: var(--tape-red);
}

.intimate-line {
  position: relative;
  z-index: 1;
  width: 88%;
  padding: 13px 14px 14px;
  background: var(--tape-paper-light);
  border-bottom: 1px dashed rgba(38, 56, 95, .16);
}

.intimate-line.pi {
  margin-right: 12%;
  padding-left: 2px;
  border-left: 0;
}

.intimate-line.eli {
  margin-left: 12%;
  padding-right: 2px;
  border-left: 2px solid rgba(128, 90, 97, .42);
}

.intimate-line header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--tape-ink-soft);
  font: 600 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intimate-line.eli header span {
  color: var(--tape-red);
}

.intimate-line > p {
  margin: 8px 0 0;
  color: var(--tape-ink);
  font: 400 16px/1.48 "Eli IM Fell English", Georgia, serif;
  white-space: pre-wrap;
}

.intimate-line.pi > p {
  font-family: "Eli Special Elite", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.intimate-os {
  margin-top: 11px;
  color: var(--tape-chalk);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 4px),
    var(--tape-navy-deep);
  border-left: 3px solid var(--tape-red);
}

.intimate-os > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 8px;
  color: rgba(242, 234, 223, .72);
  cursor: pointer;
  list-style: none;
  font: 600 7px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.intimate-os-action {
  opacity: .46;
}

.intimate-os[open] .intimate-os-action {
  font-size: 0;
}

.intimate-os[open] .intimate-os-action::after {
  content: "mute";
  font-size: 7px;
}

.intimate-os > p {
  margin: 0;
  padding: 0 10px 11px;
  color: rgba(242, 234, 223, .66);
  font: 400 12px/1.42 "Eli Kalam", cursive;
  white-space: pre-wrap;
}

.intimate-loading,
.intimate-error,
.intimate-empty {
  padding: 24px 19px;
  color: var(--tape-ink-soft);
  background: rgba(238, 230, 219, .62);
  font: 400 15px/1.45 "Eli Kalam", cursive;
}

.intimate-error {
  display: grid;
  gap: 5px;
}

.intimate-error strong {
  color: var(--tape-ink);
  font-family: "Eli Special Elite", monospace;
  text-transform: uppercase;
}

.intimate-error span {
  font: 500 9px/1.4 "Eli Plex Mono", ui-monospace, monospace;
}

.intimate-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 5px 0;
  color: rgba(38, 56, 95, .5);
  font: 500 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (min-width: 540px) {
  .intimate-shell {
    padding-top: 30px;
  }
}

@media (max-width: 430px) {
  .intimate-cover {
    min-height: 350px;
    padding: 210px 20px 22px;
  }

  .intimate-cover h1 {
    font-size: clamp(29px, 8.1vw, 35px);
  }

  .intimate-cassette {
    width: 84%;
  }
}

@media (max-width: 360px) {
  .intimate-shell {
    padding: 18px 12px 24px;
  }

  .intimate-file-code {
    display: none;
  }

  .intimate-cover {
    min-height: 340px;
  }

  .intimate-cover > img {
    right: 10px;
    width: 126px;
  }

  .intimate-cassette {
    height: 99px;
  }

  .intimate-tape > summary {
    padding-inline: 12px;
  }

  .intimate-transcript {
    padding-inline: 13px;
  }

  .intimate-line {
    width: 92%;
  }

  .intimate-line.pi {
    margin-right: 8%;
  }

  .intimate-line.eli {
    margin-left: 8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intimate-tape-toggle::after {
    transition: none;
  }
}

/* Tasks — a promise board made from loose paper and poor foresight. */
.tasks-page {
  --tasks-wall: #c9c1b6;
  --tasks-paper: #eee7dc;
  --tasks-paper-deep: #ded5c8;
  --tasks-ink: #26385f;
  --tasks-ink-soft: #69738a;
  --tasks-navy: #2f4774;
  --tasks-navy-deep: #1d3157;
  --tasks-red: #8c4f52;
  min-height: 100vh;
  color: var(--tasks-ink);
  background:
    linear-gradient(rgba(255, 255, 255, .11), rgba(255, 255, 255, .11)),
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, .36), transparent 25%),
    var(--tasks-wall);
}

.tasks-page::before {
  position: fixed;
  inset: 0;
  content: "";
  opacity: .13;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' seed='13' stitchTiles='stitch' result='grain'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018 .28' numOctaves='2' seed='7' stitchTiles='stitch' result='fiber'/%3E%3CfeBlend in='grain' in2='fiber' mode='multiply'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='.82'/%3E%3C/svg%3E");
}

.tasks-page input,
.tasks-page select,
.tasks-page textarea,
.tasks-page button {
  font-family: "Eli Plex Mono", "ChillHuoFangKai_F", ui-monospace, monospace;
}

.tasks-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 500px);
  margin: 0 auto;
  padding: 24px 0 30px;
}

.tasks-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 28px;
  margin: 0 2px 20px;
  color: rgba(38, 56, 95, .58);
  font: 600 9px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tasks-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tasks-ink);
  text-decoration: none;
}

.tasks-back span {
  font-size: 13px;
}

.tasks-file-code {
  text-align: right;
}

.tasks-cover {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  padding: 120px 23px 20px 49px;
  border: 1px solid rgba(38, 56, 95, .12);
  border-radius: 4px 4px 12px 4px;
  color: var(--tasks-ink);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(47, 71, 116, .045) 0,
      rgba(47, 71, 116, .045) 1px,
      transparent 1px,
      transparent 5px
    ),
    linear-gradient(100deg, #f4ede3, var(--tasks-paper));
  box-shadow:
    -6px 7px 0 rgba(38, 56, 95, .12),
    0 15px 28px rgba(56, 49, 40, .13);
}

.tasks-cover::before {
  position: absolute;
  left: 34px;
  top: 0;
  bottom: 0;
  width: 2px;
  content: "";
  background: rgba(140, 79, 82, .3);
}

.tasks-cover::after {
  position: absolute;
  left: 0;
  right: 0;
  top: 74px;
  height: 6px;
  content: "";
  opacity: .56;
  background: var(--tasks-navy);
}

.tasks-cover-tab {
  position: absolute;
  z-index: 2;
  left: 34px;
  top: 34px;
  width: min(70%, 300px);
  padding: 13px 17px 12px;
  color: rgba(244, 237, 227, .84);
  background: var(--tasks-navy-deep);
  font: 600 9px/1 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.tasks-cover-tab::after {
  position: absolute;
  right: -28px;
  top: 0;
  width: 30px;
  height: 100%;
  content: "";
  background: var(--tasks-navy-deep);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.tasks-hole {
  position: absolute;
  z-index: 3;
  left: 10px;
  width: 13px;
  height: 13px;
  border: 3px solid rgba(38, 56, 95, .3);
  border-radius: 50%;
  background: var(--tasks-wall);
  box-shadow: inset 0 1px 2px rgba(44, 38, 30, .22);
}

.tasks-hole-one {
  top: 124px;
}

.tasks-hole-two {
  top: 188px;
}

.tasks-hole-three {
  top: 252px;
}

.tasks-cover-copy {
  position: relative;
  z-index: 3;
}

.tasks-cover h1 {
  width: 73%;
  margin: 0;
  color: var(--tasks-ink);
  font: 700 clamp(45px, 13vw, 62px)/.86 "Eli Cabin Sketch", "Eli Special Elite", serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.tasks-cover-copy > p {
  width: 72%;
  margin: 21px 0 0;
  color: var(--tasks-ink-soft);
  font: 400 17px/1.18 "Eli Kalam", cursive;
}

.tasks-cover > img {
  position: absolute;
  z-index: 2;
  right: -31px;
  top: 102px;
  width: 210px;
  height: auto;
  opacity: .29;
  transform: rotate(7deg);
  pointer-events: none;
}

.tasks-cover-stats {
  position: absolute;
  z-index: 4;
  left: 49px;
  right: 22px;
  bottom: 19px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(38, 56, 95, .28);
  color: var(--tasks-ink-soft);
  font: 600 8px/1.25 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tasks-cover-stats span:last-child {
  text-align: right;
}

.tasks-cover-stats strong {
  margin-right: 5px;
  color: var(--tasks-ink);
  font-size: 14px;
}

.tasks-capture-wrap {
  position: relative;
  margin: 23px 5px 0;
}

.tasks-capture-wrap::before {
  position: absolute;
  z-index: -1;
  inset: 7px -4px -6px 6px;
  content: "";
  border-radius: 3px;
  background: rgba(38, 56, 95, .18);
  transform: rotate(.7deg);
}

.tasks-capture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 13px 12px;
  padding: 18px;
  border: 1px solid rgba(20, 37, 68, .4);
  border-radius: 3px;
  color: rgba(245, 238, 228, .9);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, .025) 0,
      rgba(255, 255, 255, .025) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--tasks-navy);
  box-shadow: 0 9px 20px rgba(45, 39, 32, .13);
}

.tasks-capture > header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 11px;
  border-bottom: 1px dashed rgba(245, 238, 228, .24);
  color: rgba(245, 238, 228, .66);
  font: 600 8px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.tasks-capture label {
  gap: 7px;
  color: rgba(245, 238, 228, .68);
  font: 600 10px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .08em;
}

.tasks-summary-field,
.tasks-notes-field,
.tasks-more-fields,
.tasks-capture-row,
.tasks-capture > button,
.tasks-form-status {
  grid-column: 1 / -1;
}

.tasks-more-fields {
  border-top: 1px dashed rgba(245, 238, 228, .22);
  border-bottom: 1px dashed rgba(245, 238, 228, .22);
}

.tasks-more-fields > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  color: rgba(245, 238, 228, .7);
  cursor: pointer;
  font: 600 9px/1 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  list-style: none;
  text-transform: uppercase;
}

.tasks-more-fields > summary::-webkit-details-marker {
  display: none;
}

.tasks-more-fields > summary span:last-child {
  font-size: 14px;
  transition: transform 160ms ease;
}

.tasks-more-fields[open] > summary span:last-child {
  transform: rotate(45deg);
}

.tasks-more-fields-body {
  display: grid;
  gap: 13px;
  padding: 2px 0 14px;
}

.tasks-capture-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tasks-capture input,
.tasks-capture select,
.tasks-capture textarea {
  min-height: 43px;
  border: 1px solid rgba(245, 238, 228, .3);
  border-radius: 2px;
  color: var(--tasks-ink);
  background: var(--tasks-paper);
  box-shadow: none;
  outline: none;
  color-scheme: light;
}

.tasks-capture textarea {
  min-height: 72px;
  padding: 11px;
  line-height: 1.45;
  resize: vertical;
}

.tasks-capture input::placeholder,
.tasks-capture textarea::placeholder {
  color: rgba(38, 56, 95, .45);
}

.tasks-capture input:focus,
.tasks-capture select:focus,
.tasks-capture textarea:focus {
  border-color: rgba(245, 238, 228, .86);
  outline: none;
}

.tasks-capture > button {
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  border: 0;
  border-radius: 2px;
  color: var(--tasks-ink);
  background: #f3ebdf;
  font: 700 10px/1 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tasks-capture > button:active {
  background: #fff8ee;
}

.tasks-capture > button:disabled {
  cursor: wait;
  opacity: .56;
}

.tasks-form-status {
  min-height: 10px;
  margin: -4px 0 0;
  color: rgba(245, 238, 228, .62);
  font: 500 8px/1.3 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tasks-form-status:empty {
  display: none;
}

.tasks-form-status.is-error {
  color: #f0b6b6;
}

.tasks-register {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 25px 5px 10px;
  align-items: center;
  color: rgba(38, 56, 95, .62);
  font: 600 9px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tasks-filters {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(38, 56, 95, .15);
  border-radius: 2px;
  background: rgba(238, 231, 220, .4);
}

.tasks-filters button {
  min-height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 1px;
  color: rgba(38, 56, 95, .48);
  background: transparent;
  font: 600 9px/1 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tasks-filters button.is-active {
  color: var(--tasks-paper);
  background: var(--tasks-navy);
}

.tasks-board {
  display: grid;
  gap: 13px;
}

.task-note {
  position: relative;
  padding: 24px 20px 18px;
  border: 1px solid rgba(38, 56, 95, .12);
  border-left: 5px solid rgba(47, 71, 116, .62);
  border-radius: 3px;
  color: var(--tasks-ink);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(38, 56, 95, .04) 0,
      rgba(38, 56, 95, .04) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--tasks-paper);
  box-shadow:
    3px 5px 0 rgba(38, 56, 95, .1),
    0 8px 18px rgba(56, 49, 40, .08);
}

.task-note:nth-child(even) {
  transform: rotate(.18deg);
}

.task-note.priority-high {
  border-left-color: var(--tasks-red);
}

.task-note.priority-low {
  border-left-color: rgba(105, 115, 138, .44);
}

.task-note.is-overdue {
  border-left-color: var(--tasks-red);
  box-shadow:
    3px 5px 0 rgba(140, 79, 82, .12),
    0 8px 18px rgba(56, 49, 40, .08);
}

.task-note.status-blocked {
  border-bottom-style: dashed;
}

.task-note.status-done {
  opacity: .61;
  filter: saturate(.7);
}

.task-note.status-done h2 {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.task-note-pin {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tasks-navy);
  box-shadow:
    0 2px 0 rgba(21, 37, 65, .34),
    0 0 0 4px rgba(47, 71, 116, .09);
  transform: translateX(-50%);
}

.task-note > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(38, 56, 95, .22);
  color: rgba(38, 56, 95, .55);
  font: 600 9px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.task-priority {
  text-align: right;
}

.priority-high .task-priority {
  color: var(--tasks-red);
}

.task-priority {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.task-priority strong {
  display: inline-block;
  padding: 3px 5px 2px;
  border: 1px solid rgba(140, 79, 82, .45);
  color: var(--tasks-red);
  font-size: 8px;
  transform: rotate(-2deg);
}

.task-note h2 {
  margin: 18px 0 0;
  color: var(--tasks-ink);
  font: 400 24px/1.12 "Eli Special Elite", "Eli IM Fell English", serif;
}

.task-note > p {
  margin: 13px 0 0;
  padding-left: 13px;
  border-left: 2px solid rgba(38, 56, 95, .2);
  color: var(--tasks-ink-soft);
  font: 400 16px/1.25 "Eli Kalam", cursive;
  white-space: pre-wrap;
}

.task-note-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
  padding-top: 11px;
  border-top: 1px solid rgba(38, 56, 95, .09);
  color: rgba(38, 56, 95, .5);
  font: 600 9px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.task-note-meta strong {
  color: var(--tasks-ink-soft);
  font-weight: 600;
}

.task-status-control {
  display: grid;
  grid-template-columns: auto minmax(150px, 58%);
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  color: rgba(38, 56, 95, .5);
  font: 600 9px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em;
}

.task-status-control select {
  min-height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid rgba(38, 56, 95, .2);
  border-radius: 1px;
  color: var(--tasks-ink);
  background: rgba(255, 255, 255, .23);
  font: 600 10px/1 "Eli Plex Mono", ui-monospace, monospace;
  text-transform: uppercase;
}

.task-note.is-saving {
  opacity: .72;
}

.task-save-state {
  min-height: 12px;
  margin-top: 6px;
  color: rgba(38, 56, 95, .52);
  font: 600 9px/1.25 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .06em;
  text-align: right;
  text-transform: uppercase;
}

.task-save-state:empty {
  display: none;
}

.task-edit {
  margin-top: 10px;
  border-top: 1px dashed rgba(38, 56, 95, .2);
}

.task-edit > summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: rgba(38, 56, 95, .47);
  cursor: pointer;
  font: 600 9px/1 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .09em;
  list-style: none;
  text-transform: uppercase;
}

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

.task-edit > summary::after {
  margin-left: auto;
  content: "＋";
  font-size: 13px;
}

.task-edit[open] > summary::after {
  content: "×";
}

.task-edit-fields {
  display: grid;
  gap: 10px;
  padding: 2px 0 12px;
}

.task-edit-fields label {
  display: grid;
  gap: 5px;
  color: rgba(38, 56, 95, .52);
  font: 600 9px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.task-edit-fields > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.task-edit-fields input,
.task-edit-fields select,
.task-edit-fields textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(38, 56, 95, .22);
  border-radius: 1px;
  color: var(--tasks-ink);
  background: rgba(255, 255, 255, .28);
  font-family: "Eli Plex Mono", "ChillHuoFangKai_F", ui-monospace, monospace;
  line-height: 1.35;
}

.task-edit-fields textarea {
  min-height: 66px;
  resize: vertical;
}

.task-edit-fields button {
  min-height: 38px;
  border: 1px solid rgba(38, 56, 95, .18);
  border-radius: 1px;
  color: var(--tasks-paper);
  background: var(--tasks-navy);
  font: 600 9px/1 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.task-edit-fields button:disabled {
  cursor: wait;
  opacity: .55;
}

.task-note-id {
  display: block;
  margin-top: 11px;
  color: rgba(38, 56, 95, .34);
  font: 500 7px/1 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-align: right;
  text-transform: uppercase;
}

.tasks-loading,
.tasks-empty,
.tasks-error {
  display: grid;
  gap: 6px;
  padding: 22px 18px;
  border: 1px dashed rgba(38, 56, 95, .25);
  color: rgba(38, 56, 95, .55);
  background: rgba(238, 231, 220, .48);
  font: 600 9px/1.4 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tasks-empty strong,
.tasks-error strong {
  color: var(--tasks-ink);
}

.tasks-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 5px 0;
  color: rgba(38, 56, 95, .47);
  font: 500 9px/1.2 "Eli Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 430px) {
  .tasks-shell {
    width: min(calc(100% - 28px), 500px);
    padding-top: 18px;
  }

  .tasks-cover {
    min-height: 338px;
    padding: 106px 18px 20px 46px;
  }

  .tasks-cover h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .tasks-cover-copy > p {
    font-size: 16px;
  }

  .tasks-cover > img {
    right: -42px;
    width: 194px;
  }

  .tasks-capture {
    padding: 16px;
  }

}

@media (max-width: 360px) {
  .tasks-file-code {
    display: none;
  }

  .tasks-cover {
    min-height: 330px;
  }

  .tasks-cover h1 {
    width: 80%;
  }

  .tasks-cover-copy > p {
    width: 78%;
  }

  .task-note {
    padding-inline: 16px;
  }

  .task-status-control {
    grid-template-columns: 1fr;
  }

  .tasks-capture-row,
  .task-edit-fields > div {
    grid-template-columns: 1fr;
  }
}
