:root {
  --bg: #f2f7fa;
  --paper: #ffffff;
  --paper-2: #f7fafc;
  --ink: #0b2233;
  --ink-2: rgb(11 34 51 / 0.7);
  --ink-3: rgb(11 34 51 / 0.58);
  --hair: rgb(11 34 51 / 0.08);
  --hair-2: rgb(11 34 51 / 0.16);
  --accent: #0b5daa;
  --accent-hover: #094e90;
  --accent-bright: #1e9bd7;
  --accent-tint: #e3f3fb;
  --on-accent: #ffffff;
  --panel: #0b5daa;
  --panel-2: #1677c4;
  --on-panel: #ffffff;
  --on-panel-2: rgb(255 255 255 / 0.76);
  --amber: #b45309;
  --amber-tint: #fef3c7;
  --red: #d13438;
  --red-hover: #b82c30;
  --red-tint: #ffecec;
  --green: #0f7a55;
  --green-tint: #e2f5ec;
  --focus: #1e9bd7;
  --water-deep: #0b5daa;
  --water-surface: #1e9bd7;
  --water-ink: #0b5daa;
  --water-fill: #e3f3fb;
  --coral: #c2410c;
  --coral-fill: #ffede3;
  --kelp: #0f7a55;
  --kelp-fill: #e2f5ec;
  --heart: #d13438;
  --heart-fill: #ffecec;
  --violet: #6e56cf;
  --pink: #c2255c;
  --pink-fill: rgb(194 37 92 / 0.1);
  --next-ring: rgb(11 34 51 / 0.18);
  --sheet-bg: #f2f7fa;
  --glass-fill: rgb(255 255 255 / 0.72);
  --glass-rim-top: rgb(255 255 255 / 0.95);
  --row-shadow: 0 1px 2px rgb(11 34 51 / 0.04), 0 2px 8px -4px rgb(11 34 51 / 0.08);
  --row-shadow-hover: 0 1px 2px rgb(11 34 51 / 0.06), 0 8px 20px -8px rgb(11 34 51 / 0.2);
  --glass-shadow: 0 1px 2px rgb(11 34 51 / 0.06), 0 4px 14px -6px rgb(11 34 51 / 0.18);
  --shadow-card: var(--row-shadow);
  --shadow-float: 0 1px 2px rgb(11 34 51 / 0.08), 0 16px 40px -12px rgb(11 34 51 / 0.26);
  --shadow-sheet: 0 24px 64px -16px rgb(11 34 51 / 0.36);
  --scrim: rgb(11 34 51 / 0.32);
  --radius: 12px;
  --radius-lg: 22px;
  --topbar-h: 60px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b141b;
  --paper: #15232f;
  --paper-2: #1b2c3a;
  --ink: #e6f1f8;
  --ink-2: rgb(230 241 248 / 0.74);
  --ink-3: rgb(230 241 248 / 0.7);
  --hair: rgb(230 241 248 / 0.12);
  --hair-2: rgb(230 241 248 / 0.2);
  --accent: #7cc8f0;
  --accent-hover: #a2d8f5;
  --accent-bright: #5bc0eb;
  --accent-tint: rgb(30 155 215 / 0.16);
  --on-accent: #0b141b;
  --panel: #12406d;
  --panel-2: #0b5daa;
  --on-panel: #f3f9fc;
  --on-panel-2: rgb(243 249 252 / 0.74);
  --amber: #f5b544;
  --amber-tint: rgb(245 165 40 / 0.14);
  --red: #ff7a7e;
  --red-hover: #ff9a9d;
  --red-tint: rgb(229 72 77 / 0.16);
  --green: #5fd3a4;
  --green-tint: rgb(40 190 130 / 0.14);
  --focus: #5bc0eb;
  --water-deep: #1668b8;
  --water-surface: #1e9bd7;
  --water-ink: #7cc8f0;
  --water-fill: rgb(30 155 215 / 0.16);
  --coral: #ff9a6b;
  --coral-fill: rgb(255 120 60 / 0.14);
  --kelp: #5fd3a4;
  --kelp-fill: rgb(40 190 130 / 0.14);
  --heart: #ff7a7e;
  --heart-fill: rgb(229 72 77 / 0.16);
  --violet: #b9abff;
  --pink: #ff8db4;
  --pink-fill: rgb(255 141 180 / 0.14);
  --next-ring: rgb(230 241 248 / 0.3);
  --sheet-bg: #0f1922;
  --glass-fill: rgb(20 33 44 / 0.72);
  --glass-rim-top: rgb(255 255 255 / 0.16);
  --row-shadow: 0 0 0 1px rgb(230 241 248 / 0.07);
  --row-shadow-hover: 0 0 0 1px rgb(230 241 248 / 0.1), 0 8px 20px -8px rgb(0 0 0 / 0.6);
  --glass-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 14px -6px rgb(0 0 0 / 0.5);
  --shadow-float: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -12px rgb(0 0 0 / 0.7);
  --shadow-sheet: 0 24px 64px -16px rgb(0 0 0 / 0.8);
  --scrim: rgb(3 8 12 / 0.6);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h3 {
  font-size: 15px;
  font-weight: 600;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.muted {
  color: var(--ink-2);
}

.small {
  font-size: 13px;
}

.app {
  position: relative;
  min-height: 100%;
}

.page-ghost {
  position: fixed;
  z-index: 10;
  margin: 0;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--hair-2);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.btn:hover {
  background: var(--paper-2);
  border-color: var(--ink-3);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

:root[data-theme="dark"] .btn-danger {
  color: #0b141b;
}

.btn-danger:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-quiet {
  border-color: transparent;
  background: transparent;
}

.btn-quiet:hover {
  background: var(--accent-tint);
  border-color: transparent;
}

.btn-wide {
  width: 100%;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  font-size: 14px;
  color: var(--ink-2);
}

.input,
.textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--hair-2);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

.input:focus-visible,
.textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--focus);
}

.input.is-invalid,
.textarea.is-invalid {
  border-color: var(--red);
}

.hint {
  font-size: 13px;
  color: var(--ink-2);
}

.hint.is-error {
  color: var(--red);
}

.signin {
  position: relative;
  --hero-ink: #ffffff;
  --sky-ink: #0b2233;
  --side-bg: #f7fafc;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(420px, 36vw, 560px);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--side-bg);
}

:root[data-theme="dark"] .signin {
  --side-bg: #0c1a2b;
}

.signin-hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #1d6f93;
  color: var(--hero-ink);
}

.signin-bg,
.signin-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.signin-bg img {
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.signin-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 33%, rgb(8 34 58 / 0.42) 42%, rgb(8 34 58 / 0.5) 61%, rgb(8 34 58 / 0.16) 73%, transparent 83%);
}

:root[data-theme="dark"] .signin-scrim {
  background:
    linear-gradient(180deg, transparent 33%, rgb(8 26 46 / 0.42) 42%, rgb(8 26 46 / 0.5) 61%, rgb(8 26 46 / 0.16) 73%, transparent 83%),
    linear-gradient(180deg, rgb(8 22 40 / 0.1) 0%, rgb(8 22 40 / 0.1) 16%, rgb(8 22 40 / 0.32) 24%, rgb(8 22 40 / 0.32) 100%);
}

:root[data-theme="dark"] .signin-card .sent {
  background: #15304d;
}

.signin .signin-brand {
  position: absolute;
  top: 28px;
  left: clamp(24px, 4.4vw, 56px);
  color: #ffffff;
  text-shadow: 0 1px 12px rgb(4 18 36 / 0.55);
}

.signin .signin-brand .brand-mark img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgb(4 18 36 / 0.45));
}

.signin-intro {
  position: absolute;
  top: 38%;
  left: clamp(24px, 4.4vw, 56px);
  right: clamp(24px, 4.4vw, 56px);
  max-width: 40rem;
}

.signin-intro h1 {
  max-width: 13em;
  text-wrap: balance;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
}

.signin-intro p {
  margin-top: 18px;
  max-width: 23em;
  text-wrap: pretty;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.45;
  color: rgb(255 255 255 / 0.9);
}

.signin-side {
  position: relative;
  display: grid;
  place-items: center;
  padding: 88px clamp(24px, 5vw, 72px) 56px;
  background: var(--side-bg);
}

.signin-theme {
  position: absolute;
  top: 24px;
  right: 24px;
}

.signin-card {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 360px;
  color: var(--ink);
}

.signin-card h2 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.signin-card form {
  display: grid;
  gap: 12px;
}

:root[data-theme="dark"] .signin-card .input,
:root[data-theme="dark"] .signin-card .btn:not(.btn-primary):not(.btn-quiet) {
  background: #12263b;
}

.signin-card .or {
  color: var(--ink-2);
}

.signin-card .input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.signin-card > .btn-quiet {
  justify-self: start;
  margin-left: -16px;
}

.or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: 13px;
}

.or::before,
.or::after {
  content: "";
  height: 1px;
  background: var(--hair-2);
}

.signin.is-leaving {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  pointer-events: none;
}

.app.is-entering,
.signin.is-leaving .signin-hero,
.signin.is-leaving .signin-side,
.signin.is-leaving .signin-card {
  will-change: transform, opacity;
}

.signin.is-leaving .signin-hero,
.signin.is-leaving .signin-side {
  opacity: 0.999;
}

.sent {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--accent-tint);
}

.sent strong {
  font-weight: 600;
}

body.has-sheet {
  overflow: hidden;
  padding-right: var(--lock-gap, 0px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hair);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 28px;
  height: 28px;
  display: block;
}

.topbar-sep {
  width: 1px;
  height: 22px;
  background: var(--hair-2);
  margin: 0 6px;
}

.switcher,
.view,
.account {
  position: relative;
}

.switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 6px;
  border-radius: 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 560;
  font-size: 16px;
}

.switcher-btn:hover,
.switcher-btn[aria-expanded="true"] {
  background: var(--paper);
}

.app-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--water-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 650;
  flex: none;
}

.app-mark.is-alt {
  background: var(--violet);
}

:root[data-theme="dark"] .app-mark.is-alt {
  color: #14112b;
}

.chev {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}

.menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  padding: 6px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-float);
  z-index: 30;
}

.menu.is-right {
  left: auto;
  right: 0;
}

.menu-group {
  padding: 8px 12px 4px;
  font-size: 13px;
  font-weight: 620;
  color: var(--ink-2);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.menu-item:hover {
  background: var(--bg);
}

.menu-item.is-static {
  cursor: default;
}

.menu-item.is-static:hover {
  background: transparent;
}

.menu-item[aria-checked="true"],
.menu-item[aria-current="true"] {
  font-weight: 640;
}

.menu-item .menu-sub {
  display: block;
  font-size: 13px;
  font-weight: 450;
  color: var(--ink-2);
}

.menu-icon {
  width: 18px;
  height: 18px;
  color: var(--ink-2);
  flex: none;
}

.menu-check {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: var(--water-ink);
  flex: none;
}

.menu-sep {
  height: 1px;
  background: var(--hair);
  margin: 6px 8px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 560;
  font-size: 16px;
}

.nav a:hover {
  color: var(--ink);
  background: var(--paper);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--row-shadow);
}

.nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: var(--water-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--water-deep);
  color: #fff;
  font-weight: 620;
  font-size: 14px;
  cursor: pointer;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.mode-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-tint);
}

.glass-icon,
.glass-btn,
.sbtn {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22) 0%, rgb(255 255 255 / 0.04) 40%, rgb(255 255 255 / 0.08) 100%) padding-box,
    linear-gradient(var(--glass-fill), var(--glass-fill)) padding-box,
    linear-gradient(180deg, var(--glass-rim-top), rgb(11 34 51 / 0.1)) border-box;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  color: var(--ink);
  cursor: pointer;
}

.glass-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--ink-2);
}

.glass-icon.is-small {
  width: 40px;
  height: 40px;
}

.glass-icon svg {
  width: 20px;
  height: 20px;
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px 0 14px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.glass-btn svg {
  width: 18px;
  height: 18px;
  color: var(--ink-2);
}

.glass-btn .glass-chev {
  width: 16px;
  height: 16px;
  margin-left: -2px;
}

.glass-icon:hover,
.glass-btn:hover,
.sbtn:not(.sbtn-primary):not(.sbtn-danger):not(.sbtn-quiet):hover {
  --glass-fill: color-mix(in srgb, var(--paper) 96%, var(--ink));
}

.board {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: center;
  gap: 56px;
  padding: 0 24px 120px;
}

.board-col {
  min-width: 0;
}

.rail {
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
  align-self: start;
  margin-top: 112px;
  display: grid;
  gap: 16px;
}

.rail-nav {
  display: grid;
  gap: 2px;
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 21px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 520;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.rail-link:hover {
  background: var(--paper);
}

.rail-link.is-empty {
  color: var(--ink-3);
}

.rail-link .status-icon svg,
.rail-link .spinner {
  width: 18px;
  height: 18px;
}

.rail-count {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 560;
}

.rail-link.is-needs {
  font-weight: 640;
}

.rail-link.is-all {
  margin-bottom: 6px;
}

.rail-link[aria-pressed="true"],
.chip-filter[aria-pressed="true"] {
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 640;
}

.rail-link[aria-pressed="true"] .rail-count,
.chip-filter[aria-pressed="true"] .rail-count {
  color: var(--accent);
}

.chips {
  display: none;
}

.chip-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--hair-2);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 560;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.chip-filter[aria-pressed="true"] {
  border-color: transparent;
}

.chip-filter.is-empty {
  color: var(--ink-3);
}

.chip-filter .status-icon svg,
.chip-filter .spinner {
  width: 16px;
  height: 16px;
}

.chip-filter .rail-count {
  margin-left: 0;
  font-size: 13.5px;
}

.chip-filter .needs-dot {
  min-width: 20px;
  height: 20px;
  font-size: 11.5px;
}

.needs-dot {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: var(--water-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}


.board-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 36px 4px 4px;
}

.screen-title {
  font-size: 40px;
  font-weight: 480;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.board-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-menu {
  min-width: 220px;
}

.needs {
  margin-top: 20px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--water-deep) 34%, transparent),
    var(--row-shadow);
  overflow: hidden;
}

.needs-head {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

.needs-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.needs.is-collapsed .needs-toggle {
  padding-bottom: 16px;
}

.needs-toggle:focus-visible {
  outline-offset: -3px;
  border-radius: 22px;
}

.needs-text {
  flex: 1;
  min-width: 0;
  display: grid;
}

.needs-count {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--water-deep);
  color: #fff;
  font-size: 17px;
  font-weight: 650;
}

.needs-name {
  font-size: 19px;
  font-weight: 620;
  line-height: 1.3;
}

.needs-lead {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
}

.needs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.needs-list li + li .needs-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 1px;
  background: var(--hair);
}

.needs-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.needs-list li:first-child .needs-row {
  border-top: 1px solid var(--hair);
}

.needs-row:hover {
  background: color-mix(in srgb, var(--water-fill) 60%, transparent);
}

.needs-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.needs-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.needs-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.needs-ask {
  font-size: 13px;
  color: var(--ink-2);
}

.section {
  margin-top: 26px;
  transition: margin-top 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section.is-collapsed {
  margin-top: 8px;
}

.section:not(.is-collapsed) + .section.is-collapsed,
.needs + .section.is-collapsed {
  margin-top: 22px;
}

.section-toggle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding 300ms cubic-bezier(0.22, 1, 0.36, 1), background-color 160ms ease;
}

.section-toggle:hover {
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}

.section-chev {
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex: none;
  color: var(--ink-3);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

[aria-expanded="false"] > .section-chev,
.section.is-collapsed .section-chev,
.needs.is-collapsed .section-chev {
  transform: rotate(-90deg);
}

.section.is-collapsed .section-title {
  color: var(--ink-2);
}

.section.is-collapsed .section-toggle {
  padding-top: 4px;
  padding-bottom: 4px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.section-count {
  margin-left: 0;
  padding-left: 2px;
  font-size: 15px;
  font-weight: 560;
  color: var(--ink-3);
}

.comments-title .section-count {
  margin-left: 8px;
}

.rows-wrap {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.rows-wrap.is-closed {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 260ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 260ms;
}

.rows-clip {
  min-height: 0;
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: 20px;
}

.rows-wrap.is-closed .rows-clip {
  overflow-clip-margin: 0px;
}

.rows-clip > ul > li {
  transition: opacity 240ms ease-out, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(60ms + var(--i, 0) * 34ms);
}

.rows-wrap.is-closed .rows-clip > ul > li {
  opacity: 0;
  transform: translateY(-8px);
  transition-duration: 140ms;
  transition-delay: 0s;
}

.rows {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.row {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--row-shadow);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 160ms ease;
}

.row:hover {
  box-shadow: var(--row-shadow-hover);
}

.row.is-needs {
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--water-deep) 34%, transparent),
    var(--row-shadow);
}

.row.is-needs:hover {
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--water-deep) 50%, transparent),
    var(--row-shadow-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.row:active {
  transform: scale(0.995);
}

.row-main {
  flex: 1;
  min-width: 0;
  display: block;
}

.row-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 17px;
  font-weight: 580;
  line-height: 1.3;
  color: var(--ink);
}

.row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.row-comments {
  font-size: 13px;
  font-weight: 480;
  color: var(--ink-2);
}

.likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
}

.likes svg {
  width: 16px;
  height: 16px;
}

.row-chev {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  flex: none;
}

.row.is-skeleton {
  cursor: default;
}

.row.is-skeleton:hover {
  box-shadow: var(--row-shadow);
}

.bone {
  display: block;
  height: 14px;
  border-radius: 6px;
  background: var(--hair-2);
  animation: pulse 1.4s ease-in-out infinite;
}

.bone.is-field {
  width: 100%;
  max-width: 420px;
  height: 40px;
  border-radius: var(--radius);
}

.bone-text {
  display: inline-block;
  max-width: 100%;
  height: 0.74em;
  vertical-align: middle;
  border-radius: 6px;
  background: var(--hair-2);
  animation: pulse 1.4s ease-in-out infinite;
}

.bone-text.is-count {
  width: 1.4em;
}

.bone-text.is-meta {
  width: 76px;
}

.bone-text.is-likes {
  width: 26px;
}

.pill.is-bone,
.app-mark.is-bone,
.needs-dot.is-bone,
.needs-count.is-bone,
.loop.is-bone {
  color: transparent;
  background: var(--hair-2);
  animation: pulse 1.4s ease-in-out infinite;
}

.pill.is-bone {
  background: var(--hair);
}

.loop.is-bone {
  min-height: 236px;
  background: var(--hair);
}

.rail-link.is-bone,
.chip-filter.is-bone,
.section.is-bone .section-toggle,
.needs.is-bone .needs-toggle {
  cursor: default;
}

.rail-link.is-bone:hover,
.section.is-bone .section-toggle:hover {
  background: transparent;
}

.bone.is-short {
  width: 34%;
  margin-top: 10px;
}

.pill,
.chip,
.tag,
.needs-flag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 620;
  line-height: 1.2;
}

.pill {
  gap: 5px;
  padding: 4px 10px;
  font-size: 13px;
}

.pill svg,
.pill .status-icon svg {
  width: 14px;
  height: 14px;
}

.pill .spinner {
  width: 14px;
  height: 14px;
}

.pill.is-small {
  gap: 4px;
  padding: 2px 7px;
  font-size: 12px;
}

.pill.is-small svg,
.pill.is-small .status-icon svg,
.pill.is-small .spinner {
  width: 12px;
  height: 12px;
}

.pill.is-type {
  background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  padding: 3px 9px;
}

.pill.is-type.is-small {
  padding: 1px 6px;
}

.pill[data-type="idea"] {
  color: var(--violet);
}

.pill[data-type="problem"] {
  color: var(--pink);
}

.chip,
.needs-flag {
  padding: 2px 8px;
  font-size: 12px;
}

.tag {
  padding: 3px 10px;
  font-size: 13px;
}

.needs-flag {
  background: var(--water-deep);
  color: #fff;
}

.status-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
}

.status-icon svg {
  width: 20px;
  height: 20px;
}

[data-tone="coral"] {
  color: var(--coral);
}

[data-tone="amber"] {
  color: var(--amber);
}

[data-tone="water"] {
  color: var(--water-ink);
}

[data-tone="kelp"] {
  color: var(--kelp);
}

[data-tone="heart"] {
  color: var(--heart);
}

[data-tone="shipped"] {
  color: var(--kelp);
}

[data-tone="review"] {
  color: var(--pink);
}

[data-tone="ink"],
[data-tone="mist"] {
  color: var(--ink);
}

.pill[data-tone="coral"],
.chip[data-tone="coral"],
.tag[data-tone="coral"] {
  background: var(--coral-fill);
}

.pill[data-tone="amber"],
.chip[data-tone="amber"] {
  background: var(--amber-tint);
}

.pill[data-tone="water"],
.chip[data-tone="water"],
.tag[data-tone="water"] {
  background: var(--water-fill);
}

.pill[data-tone="kelp"],
.chip[data-tone="kelp"],
.tag[data-tone="kelp"] {
  background: var(--kelp-fill);
}

.pill[data-tone="heart"],
.chip[data-tone="heart"] {
  background: var(--heart-fill);
}

.pill[data-tone="review"],
.chip[data-tone="review"],
.tag[data-tone="review"] {
  background: var(--pink-fill);
}

.pill[data-tone="shipped"],
.chip[data-tone="shipped"],
.tag[data-tone="shipped"] {
  background: var(--kelp);
  color: var(--paper);
}

.pill[data-tone="ink"] {
  background: var(--hair);
}

.tag[data-tone="mist"] {
  background: var(--bg);
}

.pill .status-icon[data-tone],
.pill .spinner {
  background: none;
  color: inherit;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--amber) 22%, transparent);
  border-top-color: var(--amber);
  animation: spin 0.9s linear infinite;
}

.spinner.is-stage {
  width: 24px;
  height: 24px;
  border-width: 2.5px;
}

.empty-note {
  margin-top: 20px;
  color: var(--ink-2);
}

.group {
  border-radius: 22px;
  background: var(--paper);
  padding: 16px;
}

.error-box {
  margin-top: 24px;
  padding: 16px;
  border-radius: 22px;
  background: var(--red-tint);
  color: var(--red);
  display: grid;
  gap: 8px;
}

.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--scrim);
  opacity: 0;
  transition: opacity 220ms ease;
}

.sheet-scrim.is-open {
  opacity: 1;
  transition-duration: 300ms;
}

.sheet {
  position: fixed;
  z-index: 41;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(560px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: var(--sheet-bg);
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
  transform: translate3d(calc(100% + 40px), 0, 0);
  transition: transform 240ms cubic-bezier(0.4, 0, 1, 1);
  will-change: transform;
  contain: layout style;
}

.sheet.is-open {
  transform: translate3d(0, 0, 0);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sheet .glass-icon,
.sheet .glass-btn,
.sheet .sbtn {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.sheet-handle {
  display: none;
}

.sheet-bar {
  position: absolute;
  top: 24px;
  right: 18px;
  z-index: 2;
  display: flex;
}

.sheet .glass-icon.is-close {
  width: 32px;
  height: 32px;
  box-shadow: none;
}

.sheet .glass-icon.is-close svg {
  width: 16px;
  height: 16px;
}

.sheet-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 16px 48px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.sheet-title-block {
  padding: 8px 4px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sheet-title-block .pill-row,
.guide-title {
  padding-right: 44px;
}

.sheet-title {
  margin-top: 14px;
  font-size: 32px;
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

.sheet-body {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 420;
  line-height: 1.5;
  max-width: 60ch;
}

.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.sheet-meta > span + span::before {
  content: "\00b7";
  margin-right: 6px;
}

.sheet-likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sheet-likes svg {
  width: 14px;
  height: 14px;
}

.pr-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  color: var(--water-ink);
  font-weight: 560;
  text-decoration: none;
}

.pr-link:hover {
  text-decoration: underline;
}

.pr-link svg {
  width: 16px;
  height: 16px;
}

.dev-card {
  border-radius: 22px;
  background: var(--paper);
  padding: 16px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--water-deep) 38%, transparent);
}

.dev-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 640;
  color: var(--water-ink);
}

.dev-head svg {
  width: 16px;
  height: 16px;
}

.dev-only {
  margin-left: auto;
  font-size: 12px;
  font-weight: 480;
  color: var(--ink-3);
}

.dev-title {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 620;
}

.dev-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.dev-card .field {
  margin-top: 14px;
}

.dev-card .hint {
  margin-top: 10px;
}

.dev-card .textarea {
  min-height: 96px;
  border-radius: 18px;
  border-color: transparent;
  background: var(--bg);
  padding: 12px 14px;
  font-size: 16px;
}

.dev-card .textarea:focus-visible {
  border-color: var(--focus);
}

.dev-card .textarea.is-invalid {
  border-color: var(--red);
}

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.sbtn svg {
  width: 20px;
  height: 20px;
  color: var(--ink-2);
}

.sbtn-primary,
.sbtn-danger {
  border: 0;
  background: var(--water-deep);
  color: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.sbtn-primary svg,
.sbtn-danger svg {
  color: #fff;
}

.sbtn-primary:hover {
  background: color-mix(in srgb, var(--water-deep) 88%, #000);
}

.sbtn-danger {
  background: #c62f33;
}

.sbtn-danger:hover {
  background: #ad272b;
}

.sbtn-quiet {
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--ink-2);
  padding: 0 14px;
}

.sbtn-quiet:hover {
  color: var(--ink);
  background: var(--bg);
}

.sbtn-decline {
  border: 1.5px solid color-mix(in srgb, var(--red) 60%, transparent);
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--red);
}

.sbtn-decline svg {
  color: currentColor;
}

.sbtn-decline:hover {
  border-color: var(--red);
  background: var(--red-tint);
}

.sbtn:disabled {
  opacity: 0.5;
  cursor: default;
}

.picks {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.picks legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 620;
  color: var(--ink-2);
}

.pick {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--hair-2);
  background: var(--paper);
  cursor: pointer;
}

.pick.is-on {
  border-color: var(--water-deep);
  background: var(--water-fill);
}

.pick input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--water-deep);
}

.pick-body {
  display: grid;
  gap: 4px;
}

.pick-who {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pick-who b {
  font-weight: 640;
}

.pick-text {
  font-size: 15px;
}

.beta-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--water-deep);
  color: #fff;
}

.icon-badge svg {
  width: 18px;
  height: 18px;
}

.beta-head h3 {
  font-size: 19px;
  font-weight: 620;
  line-height: 1.2;
}

.beta-head p {
  font-size: 13px;
  color: var(--ink-2);
}

.beta-caption {
  margin-top: 10px;
  font-size: 15px;
}

.timeline-label {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 620;
  color: var(--ink-2);
}

.timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stage {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
}

.stage-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage-marker {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  border: 2px solid var(--next-ring);
  background: var(--sheet-bg);
  color: var(--paper);
}

.stage-marker svg {
  width: 14px;
  height: 14px;
}

.stage.is-done .stage-marker {
  background: var(--water-surface);
  border-color: var(--water-surface);
  color: #fff;
}

.stage.is-current .stage-marker {
  background: var(--water-deep);
  border-color: var(--water-deep);
}

.stage.is-current .stage-marker::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.stage.is-stopped .stage-marker {
  background: var(--heart);
  border-color: var(--heart);
  color: var(--paper);
}

.stage-line {
  flex: 1;
  width: 2px;
  margin: 3px 0;
  border-radius: 1px;
  background: var(--next-ring);
}

.stage.is-done .stage-line {
  background: var(--water-surface);
}

.stage.is-last .stage-line {
  display: none;
}

.stage-text {
  display: grid;
  gap: 2px;
  padding-bottom: 16px;
}

.stage.is-last .stage-text {
  padding-bottom: 0;
}

.stage-title {
  padding-top: 1px;
  font-size: 16px;
  font-weight: 560;
}

.stage-detail {
  font-size: 14px;
  font-weight: 420;
  color: var(--ink-3);
}

.stage.is-current .stage-title,
.stage.is-stopped .stage-title {
  font-weight: 660;
}

.stage.is-current .stage-detail,
.stage.is-stopped .stage-detail {
  color: var(--ink);
}

.stage.is-next .stage-title {
  color: var(--ink-3);
}

.stage.is-stopped .stage-title {
  color: var(--heart);
}

.comments-title {
  padding: 18px 4px 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.comments {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.comment + .comment::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 1px;
  background: var(--hair);
}

.comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-head b {
  font-size: 15px;
  font-weight: 640;
}

.comment-head time {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-2);
}

.comment p {
  font-size: 16px;
  font-weight: 420;
  line-height: 1.45;
}

.robot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--water-deep);
  color: #fff;
}

.robot svg {
  width: 14px;
  height: 14px;
}

.guide-title {
  padding: 4px 4px 0;
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.guide {
  list-style: none;
  margin: 0;
  padding: 4px 4px 0;
  display: grid;
  gap: 18px;
}

.guide p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.page {
  padding: 32px 24px 48px;
}

.page.is-narrow {
  max-width: 1060px;
  margin: 0 auto;
}

.page-head {
  margin-bottom: 24px;
}

.page-head .screen-title {
  font-size: 34px;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.settings {
  display: grid;
  gap: 28px;
}

.loop {
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--panel) 0%, var(--panel-2) 100%);
  color: var(--on-panel);
}

.loop h2 {
  font-size: 17px;
}

.loop ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.loop li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.loop li b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.16);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}

.loop li span {
  color: var(--on-panel);
}

.loop li .muted {
  color: oklch(0.985 0.005 240 / 0.86);
}

.settings-group {
  display: grid;
  gap: 14px;
}

.settings-group > h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hair);
}

.settings-group .desc {
  color: var(--ink-2);
  max-width: 56ch;
  margin-top: -6px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input-num {
  max-width: 140px;
}

.radio-group {
  display: grid;
  gap: 8px;
}

.radio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--hair-2);
  cursor: pointer;
  align-items: start;
}

.radio input {
  margin: 4px 0 0;
  accent-color: var(--accent);
}

.radio.is-on {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.radio b {
  font-weight: 500;
  display: block;
}

.radio span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}

.radio .field {
  grid-column: 2;
  margin-top: 6px;
}

.placeholder {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px dashed var(--hair-2);
}

.placeholder > svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--ink-2);
}

.placeholder .pr-title {
  font-weight: 500;
}

.placeholder .pr-sub {
  font-size: 13px;
  color: var(--ink-2);
}

.placeholder .btn {
  margin-left: auto;
}

.keyrow {
  display: flex;
  gap: 8px;
  align-items: center;
}

.key {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--hair);
  font-size: 14px;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.save-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 560;
  box-shadow: var(--shadow-float);
  z-index: 60;
  animation: rise 200ms ease;
  max-width: calc(100vw - 32px);
}

@keyframes rise {
  from { transform: translate(-50%, 8px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

@media (max-width: 860px) {
  .signin {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    background: #0c1a2b;
  }

  .signin-hero {
    position: relative;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: auto;
    padding: calc(76px + env(safe-area-inset-top)) 20px 28px;
    overflow: visible;
  }

  .signin-bg {
    bottom: auto;
    height: 100vh;
    height: 100dvh;
  }

  .signin-bg img {
    object-position: 50% 50%;
  }

  .signin-scrim {
    bottom: auto;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, rgb(2 9 22 / 0.46) 0%, rgb(2 9 22 / 0.18) 11%, transparent 19%, transparent 24%, rgb(2 9 22 / 0.44) 42%, rgb(2 9 22 / 0.66) 64%, rgb(2 9 22 / 0.74) 100%);
  }

  :root[data-theme="dark"] .signin-scrim {
    background:
      linear-gradient(180deg, rgb(2 9 22 / 0.46) 0%, rgb(2 9 22 / 0.18) 11%, transparent 19%, transparent 24%, rgb(2 9 22 / 0.44) 42%, rgb(2 9 22 / 0.66) 64%, rgb(2 9 22 / 0.74) 100%),
      linear-gradient(180deg, rgb(4 12 26 / 0.16), rgb(4 12 26 / 0.16));
  }

  .signin .signin-brand {
    top: calc(20px + env(safe-area-inset-top));
    left: 20px;
  }

  .signin-intro {
    position: static;
    max-width: none;
  }

  .signin-intro h1 {
    font-size: 32px;
  }

  .signin-intro p {
    margin-top: 10px;
    font-size: 16px;
  }

  .signin-theme {
    top: calc(17px + env(safe-area-inset-top));
    right: 14px;
    color: #ffffff;
  }

  .signin-theme:hover {
    background: rgb(255 255 255 / 0.18);
  }

  .signin-side {
    position: static;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
    padding: 0;
    background: transparent;
  }

  .signin-card {
    position: relative;
    min-height: 0;
    max-width: none;
    gap: 14px;
    padding: 24px max(20px, calc((100% - 480px) / 2)) calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 24px 24px 0 0;
    background: color-mix(in srgb, var(--side-bg) 97%, transparent);
    box-shadow: 0 -12px 40px rgb(2 9 22 / 0.22);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
  }

  .signin-card h2 {
    font-size: 24px;
  }

  .signin-card .btn {
    height: 48px;
  }

  .signin-card > .hint {
    text-align: center;
  }

  .signin.is-leaving .signin-side {
    will-change: auto;
  }

  .signin.is-leaving .signin-theme {
    will-change: transform;
  }
}

@media (max-width: 1100px) {
  .board {
    grid-template-columns: minmax(0, 720px);
  }

  .rail {
    display: none;
  }

  .chips {
    display: flex;
    gap: 8px;
    margin: 18px -24px 0;
    padding: 2px 24px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .topbar {
    padding: 0 12px;
  }

  .topbar .brand > span:not(.brand-mark) {
    display: none;
  }

  .topbar-sep {
    display: none;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .settings-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .loop {
    position: static;
    order: -1;
  }

  .placeholder {
    flex-wrap: wrap;
  }

  .placeholder .btn {
    margin-left: 0;
    width: 100%;
  }

  .page {
    padding: 20px 16px 40px;
  }
}

@media (max-width: 700px) {
  .board {
    padding: 0 16px 96px;
  }

  .board-head {
    padding: 20px 4px 0;
  }

  .screen-title {
    font-size: 36px;
  }

  .board-tools .glass-btn {
    height: 44px;
    padding: 0 14px 0 12px;
    font-size: 15px;
  }

  .chips {
    margin: 16px -16px 0;
    padding: 2px 16px 4px;
  }

  .board-tools .glass-icon {
    width: 44px;
    height: 44px;
  }

  .mode-tag {
    display: none;
  }

  .row-title {
    font-size: 16px;
  }

  .sheet {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 94dvh;
    border-radius: 28px 28px 0 0;
    transform: translate3d(0, 100%, 0);
  }

  .sheet-handle {
    display: block;
    width: 36px;
    height: 4px;
    margin: 10px auto 2px;
    border-radius: 2px;
    background: var(--ink-3);
  }

  .sheet-bar {
    top: 40px;
  }

  .sheet-title {
    font-size: 28px;
  }

  .dev-only {
    display: none;
  }

  .dev-actions .sbtn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.signin-bg.is-pick img {
  object-position: 50% 50%;
}

.signin-hero.is-picking .signin-intro {
  top: 23%;
  bottom: auto;
}

.signin-hero.is-picking .signin-scrim {
  background: linear-gradient(180deg, transparent 18%, rgb(8 34 58 / 0.42) 27%, rgb(8 34 58 / 0.5) 46%, rgb(8 34 58 / 0.16) 58%, transparent 68%);
}

:root[data-theme="dark"] .signin-hero.is-picking .signin-scrim {
  background:
    linear-gradient(180deg, transparent 18%, rgb(8 26 46 / 0.42) 27%, rgb(8 26 46 / 0.5) 46%, rgb(8 26 46 / 0.16) 58%, transparent 68%),
    linear-gradient(180deg, rgb(8 22 40 / 0.1) 0%, rgb(8 22 40 / 0.1) 16%, rgb(8 22 40 / 0.32) 24%, rgb(8 22 40 / 0.32) 100%);
}

@media (max-width: 860px) {
  .signin-hero.is-picking .signin-intro {
    top: auto;
    bottom: 26px;
  }

  .signin-hero.is-picking .signin-scrim,
  :root[data-theme="dark"] .signin-hero.is-picking .signin-scrim {
    background: linear-gradient(180deg, transparent 18%, rgb(8 34 58 / 0.12) 30%, rgb(8 34 58 / 0.32) 44%, rgb(8 34 58 / 0.48) 60%, rgb(8 34 58 / 0.58) 100%);
  }
}

.signin-hero.is-ink-dark {
  --hero-ink: #0b2233;
}

.signin-hero.is-ink-dark .signin-intro p {
  color: rgb(11 34 51 / 0.84);
}

.signin-hero.is-ink-dark .signin-scrim,
:root[data-theme="dark"] .signin-hero.is-ink-dark .signin-scrim {
  background: linear-gradient(180deg, transparent 18%, rgb(255 255 255 / 0.24) 27%, rgb(255 255 255 / 0.3) 46%, rgb(255 255 255 / 0.1) 58%, transparent 68%);
}

.signin-hero.is-brand-light .signin-brand {
  color: #ffffff;
}

.picker {
  position: fixed;
  z-index: 30;
  left: 16px;
  bottom: 16px;
  max-width: calc(50vw - 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: 20px;
  background: rgb(9 20 31 / 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5);
  color: #ffffff;
  font-size: 14px;
}

.picker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.picker-btn,
.picker-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 560;
  white-space: nowrap;
  cursor: pointer;
}

.picker-btn:hover:not(:disabled),
.picker-switch:hover:not(:disabled) {
  background: rgb(255 255 255 / 0.2);
}

.picker-btn:disabled,
.picker-switch:disabled {
  opacity: 0.45;
  cursor: default;
}

.picker-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.picker-btn.is-icon {
  width: 36px;
  padding: 0;
  justify-content: center;
}

.picker-btn.is-icon svg {
  width: 22px;
  height: 22px;
}

.picker-btn.is-keep[aria-pressed="true"] {
  background: rgb(245 179 1 / 0.22);
}

.picker-btn.is-keep[aria-pressed="true"] .picker-star {
  color: #f5b301;
}

.picker-pos {
  display: grid;
  min-width: 96px;
  padding: 0 4px;
  line-height: 1.2;
  text-align: center;
}

.picker-pos b {
  font-size: 15px;
  font-weight: 650;
}

.picker-id {
  font-size: 12.5px;
  color: rgb(255 255 255 / 0.72);
  letter-spacing: 0.02em;
}

.picker-track {
  position: relative;
  width: 28px;
  height: 16px;
  flex: none;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.28);
  transition: background-color 160ms ease;
}

.picker-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.picker-switch[aria-pressed="true"] .picker-track {
  background: #1e9bd7;
}

.picker-switch[aria-pressed="true"] .picker-track::after {
  transform: translateX(12px);
}

.picker-ratio {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #9fe3c4;
}

.picker-ratio.is-low {
  color: #ffb49c;
}

@media (max-width: 860px) {
  .picker {
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: none;
  }

  .picker-row {
    flex-wrap: nowrap;
  }

  .picker-pos {
    flex: 1;
    min-width: 0;
  }

  .picker-switch {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    padding: 0 10px;
    font-size: 13px;
  }

  .picker-btn {
    flex: none;
  }

  .picker-ratio {
    padding: 0 2px;
  }

  .picker-btn:not(.is-icon) {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .picker-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 861px) {
  .signin-hero {
    container-type: inline-size;
  }

  .signin .signin-brand {
    top: clamp(24px, 3.2cqi, 44px);
    left: clamp(24px, 5.4cqi, 88px);
    font-size: clamp(21px, 1.9cqi, 26px);
  }

  .signin .signin-brand .brand-mark,
  .signin .signin-brand .brand-mark img {
    width: clamp(28px, 2.4cqi, 34px);
    height: clamp(28px, 2.4cqi, 34px);
  }

  .signin-intro {
    top: auto;
    bottom: 30%;
    left: clamp(24px, 5.4cqi, 88px);
    right: clamp(24px, 5.4cqi, 88px);
    max-width: none;
  }

  .signin-intro h1 {
    max-width: 12.5em;
    font-size: clamp(38px, 6.4cqi, 92px);
    letter-spacing: -0.028em;
    line-height: 1.02;
  }

  .signin-intro p {
    margin-top: clamp(16px, 2cqi, 28px);
    max-width: 30em;
    font-size: clamp(17px, 1.75cqi, 24px);
  }

  .signin-scrim,
  :root[data-theme="dark"] .signin-scrim {
    background:
      linear-gradient(180deg, rgb(6 20 36 / 0.66) 0%, rgb(6 20 36 / 0.24) 12%, transparent 22%),
      linear-gradient(180deg, transparent 30%, rgb(6 20 36 / 0.38) 48%, rgb(6 20 36 / 0.62) 72%, rgb(6 20 36 / 0.7) 100%),
      linear-gradient(90deg, rgb(6 20 36 / 0.35) 0%, transparent 60%);
  }
}
