:root {
  --bg: #101113;
  --bg-side: #0c0d10;
  --bg-raise: #17181d;
  --bg-input: #121318;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f3f4f6;
  --muted: #9b9ca6;
  --faint: #6e707a;
  --signal: #d7f25c;
  --signal-ink: #151807;
  --danger: #ff9b8e;
  --overdue: #e7b15a;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  --radius: 12px;
  --side: 280px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; accent-color: var(--signal); }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
}

body.is-acting { cursor: progress; }

body.is-acting::before {
  content: "";
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  height: 2px;
  width: 35%;
  background: var(--signal);
  animation: acting .9s ease-in-out infinite;
}

@keyframes acting {
  from { transform: translateX(-40%); }
  to { transform: translateX(280%); }
}

::selection { background: var(--signal); color: var(--signal-ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

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

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 50;
  transform: translateY(-150%);
  background: var(--text);
  color: #121316;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus { transform: none; }

.banner {
  position: fixed;
  z-index: 40;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(440px, calc(100% - 24px));
  background: #241c1c;
  color: #ffd7d1;
  border: 1px solid rgba(255, 155, 142, .4);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  box-shadow: var(--shadow);
}

.banner.notice {
  background: #1c2214;
  color: #e7f7c4;
  border-color: rgba(215, 242, 92, .35);
}

.icon { width: 16px; height: 16px; display: block; }
.mark { width: 22px; height: 22px; color: var(--signal); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.03em;
  font-size: 18px;
}

.sidebar .brand { padding: 18px 16px 8px; }

.app {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  width: 100%;
  min-height: 100dvh;
}

.sidebar {
  background: var(--bg-side);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}

.sidebar-scroll {
  flex: 1;
  overflow: auto;
  padding: 8px 12px 24px;
}

.section-label {
  margin: 18px 8px 6px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 8px;
}

.nav-row:hover,
.nav-row.is-current { background: #1b1c22; }

.nav-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.nav-row.is-current .nav-link { color: var(--text); }

.name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.count {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.row-menu summary {
  list-style: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
}

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

.nav-row:hover .row-menu summary,
.nav-row:focus-within .row-menu summary,
.row-menu[open] summary,
.nav-row.is-current .row-menu summary { opacity: 1; }

.row-menu[open] summary { background: #262830; }

.menu-panel { padding: 4px 8px 10px; }

.menu-panel form { display: flex; gap: 6px; }

.menu-panel input { padding: 8px 10px; min-width: 0; flex: 1; }
.menu-panel .button { flex: none; padding: 8px 10px; }

.menu-delete {
  display: inline-block;
  margin-top: 8px;
  color: var(--danger);
  font-size: 13px;
  text-decoration: none;
}

.inline-create {
  display: flex;
  gap: 6px;
  margin: 8px 4px 0;
}

.inline-create input { padding: 8px 10px; }

.inline-create button {
  width: 36px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.inline-create button:hover { background: var(--bg-raise); }

.sidebar-foot {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.foot-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--faint);
  font-size: 12px;
  text-decoration: none;
}

.foot-link:hover { color: var(--text); }

.nav-sub {
  list-style: none;
  margin: 2px 0 8px 14px;
  padding: 0 0 2px 8px;
  border-left: 1px solid var(--line);
}

.nav-sub .nav-link {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 14px;
}

.account summary { cursor: pointer; list-style: none; }
.account summary::-webkit-details-marker { display: none; }

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

.who span { color: var(--faint); font-size: 13px; font-weight: 400; }

.account-panel { padding-top: 10px; display: grid; gap: 10px; }

.text-button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

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

.canvas { min-width: 0; width: 100%; }

.canvas-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px 28px 80px;
}

.topbar { display: none; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.topbar-title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.eyebrow {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.list-title {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.04em;
  font-weight: 600;
  line-height: 1.1;
}

.quiet { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.composer {
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 18px 0 8px;
}

.composer input { flex: 1; min-width: 0; }
.composer .button { flex: none; white-space: nowrap; }

input[type="text"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
}

input[type="date"] { accent-color: var(--signal); }

textarea { min-height: 110px; resize: vertical; line-height: 1.45; }

input:focus,
select:focus,
textarea:focus { border-color: rgba(255, 255, 255, .5); }

.finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin: 0 16px 12px;
}

.finder select { grid-column: 1 / -1; }

.finder .button { padding: 8px 12px; }

.finder input,
.finder select { padding: 8px 10px; }

.topbar .finder {
  flex: 1;
  min-width: 0;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.topbar .finder select { grid-column: auto; }

.topbar .finder select { max-width: 8.5rem; }

.hits {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hit {
  display: block;
  padding: 12px 14px;
  background: var(--bg-raise);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.hit:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }

.hit-kind {
  margin: 0;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

.hit-title { margin: 4px 0 0; }

.hit-excerpt,
.hit-place { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.hit-place { color: var(--faint); }

input:focus-visible,
textarea:focus-visible,
.status:focus-visible,
.status-choice:focus-visible,
.nudge:focus-visible { outline: none; }

.button,
a.button {
  appearance: none;
  border: 0;
  background: var(--text);
  color: #121316;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button:hover,
a.button:hover { background: white; }

.button.secondary,
a.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  font-weight: 500;
}

.button.danger,
a.button.danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(255, 155, 142, .35);
}

.group-label {
  margin: 22px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.task-list { list-style: none; margin: 4px 0 0; padding: 0; }

.task {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.task-list > .task {
  margin-top: 14px;
  padding: 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sublist > .task {
  padding: 16px 0 14px;
}

.task.is-open { position: relative; }

.task.is-open .task-row {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--bg);
  margin: -4px -14px 0;
  padding: 8px 78px 8px 14px;
}

.task-delete {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 14px;
  color: var(--danger);
  font-size: 13px;
  text-decoration: none;
}

.task-delete:hover { text-decoration: underline; }

.task-row {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto auto;
  gap: 8px 10px;
  align-items: start;
}

.handle {
  display: none;
  width: 18px;
  height: 28px;
  margin-top: 1px;
  place-items: center;
  color: var(--faint);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

html.js .handle { display: grid; }
.check {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1.5px solid #5e616c;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.check.is-done {
  background: var(--signal);
  border-color: var(--signal);
}

.check.is-done::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 1.5px solid var(--signal-ink);
  border-bottom: 1.5px solid var(--signal-ink);
  transform: rotate(-45deg) translateY(-1px);
}

.handle:hover, .handle:active { color: var(--text); }
.handle:active { cursor: grabbing; }
.task.is-dragging { opacity: .45; }
.task.is-drop-before { box-shadow: inset 0 2px 0 var(--signal); }
.task.is-drop-after { box-shadow: inset 0 -2px 0 var(--signal); }

.status-pick { position: relative; }

.status-pick summary {
  list-style: none;
  cursor: pointer;
}

.status-pick summary::-webkit-details-marker { display: none; }

.status,
.status-choice {
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.status.is-doing,
.status-choice.is-doing {
  background: var(--signal);
  color: var(--signal-ink);
  border-color: var(--signal);
}

.status.is-waiting,
.status-choice.is-waiting {
  background: rgba(231, 177, 90, .16);
  color: var(--overdue);
  border-color: transparent;
}

.status.is-done,
.status-choice.is-done { color: var(--faint); }

.status-menu {
  position: absolute;
  z-index: 3;
  top: calc(100% + 6px);
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 112px;
  padding: 8px;
  background: #14151a;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.status-choice { text-align: left; }

.status-choice[aria-pressed="true"] { box-shadow: inset 0 0 0 1px currentColor; }

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

.task-title {
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.task.is-done .task-title {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.collapse {
  display: inline-block;
  margin-top: 4px;
  color: var(--signal);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.under { margin: 2px 0 0; color: var(--faint); font-size: 12px; }

.note-count { color: var(--faint); }

.task-notes {
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
}

.meter-track {
  width: 96px;
  height: 4px;
  border-radius: 99px;
  background: var(--line-strong);
  overflow: hidden;
}

.meter-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--signal);
}

.meter[data-level="1"] .meter-bar { width: 10%; }
.meter[data-level="2"] .meter-bar { width: 20%; }
.meter[data-level="3"] .meter-bar { width: 30%; }
.meter[data-level="4"] .meter-bar { width: 40%; }
.meter[data-level="5"] .meter-bar { width: 50%; }
.meter[data-level="6"] .meter-bar { width: 60%; }
.meter[data-level="7"] .meter-bar { width: 70%; }
.meter[data-level="8"] .meter-bar { width: 80%; }
.meter[data-level="9"] .meter-bar { width: 90%; }
.meter[data-level="10"] .meter-bar { width: 100%; }

.meter-label { color: var(--muted); font-size: 12px; }

.shots,
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.shots img,
.gallery img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-raise);
}

.shot-more {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}

.gallery figure { margin: 0; }

.sublist {
  list-style: none;
  margin: 16px 0 2px 6px;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--line-strong);
}

.branch-form {
  display: flex;
  gap: 8px;
  margin: 8px 0 2px;
}

.branch-form input { flex: 1; min-width: 0; }
.branch-form .button { flex: none; white-space: nowrap; }

.branch-link {
  display: block;
  width: fit-content;
  margin: 6px 0 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

.branch-link:hover { color: var(--text); }

.dropzone {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dropzone p { margin: 0; color: var(--muted); font-size: 13px; flex: 1 1 180px; }
.dropzone input { flex: 1 1 180px; }
.dropzone.is-hot { border-color: var(--signal); }

.due {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 3px;
}

.due a,
.due-line a {
  color: var(--signal);
  text-decoration: none;
}

.due a:hover,
.due-line a:hover { text-decoration: underline; }

.due-field { text-align: left; margin-top: 12px; }
.due-line { margin: 0; color: var(--muted); font-size: 14px; }

html.js .due-field input[type="date"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

html.js .due-field.is-picking { position: relative; z-index: 6; }
html.js .due-field.is-picking .due-line { display: none; }

.date-pop { position: relative; width: min(100%, 240px); margin-top: 8px; }
.date-pop[hidden] { display: none; }

.date-pop-field {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text);
}

.date-pop-field button {
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 3px;
  padding: 1px 2px;
  font: inherit;
  cursor: pointer;
}

.date-pop-field span { color: var(--faint); }
.date-pop.has-value .date-pop-field span { color: var(--text); }
.date-pop-field button.is-empty:not(.is-on) { color: var(--faint); }

.date-pop-field button.is-on {
  background: var(--signal);
  color: var(--signal-ink);
}

.date-pop-icon { margin-left: auto; color: var(--muted); }

.date-pop-panel {
  position: absolute;
  z-index: 8;
  top: calc(100% + 4px);
  left: 0;
  width: 280px;
  padding: 10px 12px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #222328;
  box-shadow: var(--shadow);
}

.date-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.date-pop-title { font-weight: 650; }

.date-pop-nav { display: flex; gap: 2px; }

.date-pop-nav button,
.date-pop-day {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.date-pop-nav button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
}

.date-pop-nav button:hover,
.date-pop-day:hover { background: rgba(255, 255, 255, .08); }

.date-pop-week,
.date-pop-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.date-pop-week { color: var(--faint); font-size: 12px; margin-bottom: 4px; }

.date-pop-day {
  height: 32px;
  border-radius: 6px;
  font: inherit;
}

.date-pop-day.is-out { color: var(--faint); }

.date-pop-day.is-today:not(.is-selected) {
  color: var(--signal);
  box-shadow: inset 0 0 0 1px var(--signal);
}

.date-pop-day.is-selected,
.date-pop-day.is-selected:hover {
  background: var(--signal);
  color: var(--signal-ink);
  box-shadow: none;
}

.date-pop-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.date-pop-actions button {
  border: 0;
  background: transparent;
  color: var(--signal);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: 6px 2px;
}

.date-pop-actions button:hover { text-decoration: underline; }

a.nudge {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}

a.nudge:hover { background: var(--bg-raise); color: var(--text); }

@media (hover: hover) {
  a.nudge { opacity: 0; }
  .task:hover a.nudge,
  .task:focus-within a.nudge,
  .task.is-open > .task-row a.nudge { opacity: 1; }
}

.editor {
  margin-top: 8px;
  padding: 12px;
  background: var(--bg-raise);
  border-radius: 10px;
}

.editor textarea { min-height: 160px; }

.notes { margin-top: 16px; }
.notes-head { margin: 0 0 4px; color: var(--muted); font-size: 13px; }

.post { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); cursor: pointer; }
.post-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.post-meta time, .post-edited { color: var(--faint); font-size: 12px; }
.post-meta a { margin-left: auto; color: var(--muted); font-size: 12px; text-decoration: none; }
.post-meta a:hover { color: var(--text); }
.post-body { min-width: 0; overflow-wrap: anywhere; }
.post-body > :first-child { margin-top: 0; }
.post-body > :last-child { margin-bottom: 0; }
.post-body p, .post-body ul, .post-body ol, .post-body pre, .post-body blockquote, .post-body table { margin: 0 0 8px; }
.post-body ul, .post-body ol { padding-left: 1.2em; }
.post-body a { color: var(--signal); overflow-wrap: anywhere; }
.post-body pre, .post-body pre code { overflow-wrap: normal; }
.post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.post-body pre { padding: 10px 12px; background: #0c0d10; border-radius: 8px; overflow: auto; }
.post-body pre code { font-size: 13px; }
.post-body blockquote { padding-left: 12px; border-left: 2px solid var(--line-strong); color: var(--muted); }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 { font-size: 15px; letter-spacing: -.02em; margin: 0 0 6px; }
.post-body table { width: 100%; border-collapse: collapse; }
.post-body th, .post-body td { border: 1px solid var(--line-strong); padding: 4px 8px; text-align: left; vertical-align: top; }
.post-body input[type="checkbox"] { accent-color: var(--signal); }
.post-body img { display: block; max-width: min(100%, 420px); height: auto; margin: 8px 0; border-radius: 8px; }
.post-form, .post-editor { margin-top: 14px; }

.all-lists { margin-top: 8px; }
.all-block { margin-top: 26px; }
.all-block > .all-label { margin-top: 0; }
.all-label { display: flex; align-items: center; gap: 8px; color: var(--signal); }
.all-label .handle { width: 18px; height: 18px; margin-top: 0; color: var(--faint); }
.all-block.is-dragging { opacity: .55; }
.all-block.is-drop-before { box-shadow: inset 0 2px 0 var(--signal); }
.all-block.is-drop-after { box-shadow: inset 0 -2px 0 var(--signal); }

.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }

.move-to { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.move-to label { color: var(--muted); font-size: 13px; }
.move-to select { width: min(100%, 280px); }

.done-group { margin-top: 28px; }

.done-group summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}

.empty {
  width: 100%;
  margin-top: 28px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.02em; }
.empty p { margin: 0; color: var(--muted); }

.gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.card {
  width: min(400px, 100%);
  background: #14151a;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.03em;
  margin: 14px 0 0;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.hint { margin: 0; color: var(--faint); font-size: 12px; }
.field-error { margin: 0; color: var(--danger); font-size: 13px; }
.form-actions { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.switch { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.switch a { color: var(--text); }

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 25;
}

@media (min-width: 861px) {
  .scrim { display: none !important; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .canvas-inner { padding: 18px 16px 64px; }

  html.js .sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(20rem, 88vw);
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform .18s ease;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: var(--shadow);
  }

  html.js .sidebar.is-open { transform: none; }
  html.js .topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: rgba(16, 17, 19, .92);
    backdrop-filter: blur(10px);
    z-index: 10;
  }
  html.js .nav-toggle { display: inline-flex; }
}

@media (hover: none) {
  .row-menu summary { opacity: .75; }
}

.product-switch {
  display: flex;
  gap: 4px;
  margin: 2px 16px 14px;
  padding: 3px;
  background: var(--bg-raise);
  border-radius: 999px;
}

.product-switch a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 999px;
}

.product-switch a[aria-current="page"] {
  background: var(--signal);
  color: var(--signal-ink);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 8px;
}

.section-nav a {
  text-decoration: none;
  color: var(--muted);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.section-nav a[aria-current="page"] {
  background: var(--signal);
  color: var(--signal-ink);
  border-color: transparent;
}

.projects .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 18px; }
.projects .stack .field, .projects .fold .field { width: min(100%, 640px); }
.projects .stack textarea, .projects .post-form textarea, .projects .fold textarea, .projects .field textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  resize: vertical;
}
.projects .field input, .projects .field select, .projects .list-tools input, .projects .secret {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.projects .field select { color: var(--text); }
.subhead { margin: 28px 0 8px; font-size: 16px; letter-spacing: -.02em; }
.text-link { color: var(--signal); font-size: 14px; }
.brief { margin-top: 22px; max-width: 68ch; }
.record {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raise);
}
.record h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.record h2 a { color: var(--signal); }
.record header p, .record .quiet { margin: 4px 0 0; }
.fold { margin-top: 10px; }
.fold summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.link-list { list-style: none; padding: 0; margin: 12px 0 0; }
.link-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.link-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.link-list .count, .record header p { color: var(--muted); font-size: 13px; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.list-heading { display: flex; align-items: center; gap: 6px; min-width: 0; }
.list-heading .subhead { margin: 0; }
.list-tools .menu-delete { margin-top: 0; margin-left: auto; flex: none; }
.rename-open {
  display: none;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--signal);
  cursor: pointer;
  flex: none;
}
.js .rename-open { display: grid; }
.rename-open:hover, .rename-open:focus-visible { background: var(--bg-raise); }
html:not(.js) .list-heading .subhead { display: none; }
.js .list-heading:not(.is-editing) .rename-form { display: none; }
.js .list-heading.is-editing { flex: 1 1 16rem; }
.js .list-heading.is-editing .subhead,
.js .list-heading.is-editing .rename-open { display: none; }
.list-tools .rename-form { display: flex; align-items: stretch; flex: 1; min-width: 0; max-width: 28rem; }
.projects .list-tools .rename-form input {
  width: auto;
  flex: 1;
  min-width: 0;
  border-radius: 10px 0 0 10px;
}
.list-tools .rename-form .button {
  flex: none;
  border-radius: 0 10px 10px 0;
}
.project-tasks { list-style: none; padding: 0; margin: 16px 0 0; }
.project-task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.project-task.is-done .task-title { color: var(--faint); text-decoration: line-through; }
.project-task .status summary { color: var(--muted); font-size: 13px; cursor: pointer; }
.project-task .status form { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.project-task .status button {
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  text-align: left;
}
.project-gallery { margin-top: 18px; }
.projects .explorer { margin-top: 8px; }
.projects .file-search input {
  width: min(100%, 420px);
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.projects .explorer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.projects .explorer-bar form { display: flex; gap: 8px; align-items: center; }
.projects .explorer-bar input[type="text"] {
  width: 160px;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.projects .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 140px; }
.projects .crumbs a { color: var(--text); font-weight: 600; text-decoration: none; border-radius: 8px; padding: 4px 6px; }
.projects .crumbs a.is-drop, .projects .entry.is-drop { outline: 2px solid var(--signal); }
.projects .explorer.is-hot { outline: 2px dashed var(--signal); outline-offset: 6px; }
.projects .explorer-note { margin: 8px 0 0; color: var(--muted); }
.projects .explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.projects .entry {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raise);
  min-height: 132px;
}
.projects .entry-open {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
}
.projects .entry img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg);
}
.projects .file-mark {
  display: inline-flex;
  align-items: center;
  height: 84px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.projects .file-name { font-weight: 600; overflow-wrap: anywhere; }
.projects .file-size { color: var(--muted); font-size: 12px; }
.projects .entry-menu { position: absolute; top: 6px; right: 6px; }
.projects .entry-menu summary {
  list-style: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--bg);
}
.projects .entry-menu summary::-webkit-details-marker { display: none; }
.projects .entry-menu form { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.projects .entry-menu input {
  width: 140px;
  padding: 8px;
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.project-gallery figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.brand-page { background: var(--bg); }
.brand-guide {
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 80px;
}
.brand-back { margin: 0 0 28px; }
.brand-back a { color: var(--muted); font-size: 13px; text-decoration: none; }
.brand-back a:hover { color: var(--text); }
.brand-guide h1 {
  margin: 8px 0 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.04em;
}
.brand-guide h2 {
  margin: 36px 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.brand-guide section .quiet { max-width: 52ch; }
.brand-specimen {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 16px;
  padding: 22px;
  background: var(--bg-side);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.brand-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--signal);
  background: var(--bg);
  border-radius: 16px;
}
.brand-mark .mark { width: 40px; height: 40px; }
.brand-word {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.brand-specs { margin: 18px 0 0; display: grid; gap: 12px; }
.brand-specs div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.brand-specs dt { color: var(--muted); font-size: 13px; }
.brand-specs dd { margin: 0; }
.swatches {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.swatch {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.swatch i { display: block; height: 64px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.chip-signal { background: #d7f25c; }
.chip-ink { background: #151807; }
.chip-bg { background: #101113; }
.chip-side { background: #0c0d10; }
.chip-raise { background: #17181d; }
.chip-input { background: #121318; }
.chip-card { background: #14151a; }
.chip-nav { background: #1b1c22; }
.chip-text { background: #f3f4f6; }
.chip-muted { background: #9b9ca6; }
.chip-faint { background: #6e707a; }
.chip-button { background: #121316; }
.chip-danger { background: #ff9b8e; }
.chip-overdue { background: #e7b15a; }
.chip-notice { background: #1c2214; }
.chip-alert { background: #241c1c; }
.swatch div { padding: 10px 12px 12px; display: grid; gap: 2px; }
.swatch strong { font-size: 14px; }
.swatch code { color: var(--signal); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.swatch span { color: var(--muted); font-size: 13px; }

.sheet {
  width: min(920px, calc(100% - 40px));
  margin: 28px auto 80px;
}

.sheet h1 { font-size: 34px; letter-spacing: -.03em; margin: 8px 0; }
.sheet h2 { font-size: 18px; margin: 22px 0 8px; }
.sheet .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sheet .field input { width: min(100%, 420px); }

.grant-tree { display: grid; gap: 8px; margin-top: 8px; }
.grant-group { margin-top: 8px; border: 0; padding: 0; }
.grant-group legend { font-size: 18px; margin: 22px 0 8px; }
.grant-node { margin: 8px 0; }
.grant-node > label { display: flex; gap: 8px; align-items: flex-start; }
.grant-nested { margin-left: 22px; }
.key-list { display: grid; gap: 12px; margin: 18px 0; }
.key-card {
  background: var(--bg-raise);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.event-pick { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.sheet .field select { width: min(100%, 420px); }

.key-secret {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.docs h1, .docs h2, .docs h3 { letter-spacing: -.02em; }
.docs p, .docs li { max-width: 72ch; }
.docs pre {
  overflow: auto;
  background: var(--bg-raise);
  padding: 12px 14px;
  border-radius: 8px;
}
.docs code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.docs table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; }
.docs th, .docs td { text-align: left; border-bottom: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.docs th { color: var(--muted); font-weight: 600; }

@media (max-width: 640px) {
  .brand-specs div { grid-template-columns: 1fr; gap: 2px; }
  .brand-specimen { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  body.is-acting::before { animation: none; width: 100%; }
}
