@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ground: #f8f5ef;
  --paper: #fffdfa;
  --ink: #302331;
  --muted: #6e5e6b;
  --primary: #583d53;
  --champagne: #efe1ca;
  --gold: #664d2d;
  --mauve: #eedfe8;
  --line: #e3d9dd;
  --danger: #9a3947;
  --on-action: #fffdfa;
  --outline: #887887;
  --danger-container: #f7e6e8;
  --radius: 24px;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
  font-synthesis: none;
}

:root[data-palette="grove"] {
  --ground: #f3f5ed; --paper: #fcfdf8; --ink: #243428; --muted: #53644f;
  --primary: #36593f; --champagne: #ede1ca; --gold: #624c2d;
  --mauve: #dee8d6; --line: #d8e0d1; --outline: #75806e; --on-action: #fcfdf8;
}
:root[data-palette="tide"] {
  --ground: #eff5f7; --paper: #fbfdfe; --ink: #233640; --muted: #526872;
  --primary: #285d70; --champagne: #dbeae3; --gold: #345d4c;
  --mauve: #d7eaf0; --line: #d3e1e7; --outline: #728791; --on-action: #fbfdfe;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
button {
  color: inherit;
}
a {
  color: var(--primary);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 20;
  background: var(--paper);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  max-width: 1600px;
  margin: auto;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}
.rail {
  padding: 46px 28px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
  letter-spacing: -1.8px;
}
.brand-dot {
  color: var(--primary);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  line-height: 1.6;
}
.rail > .eyebrow {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.9px;
  margin: 18px 0 64px;
}
.nav-button {
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 650;
  margin: 4px 0;
}
.nav-button:hover {
  background: var(--paper);
}
.nav-button.active {
  background: var(--mauve);
  color: var(--primary);
}
.nav-icon {
  width: 20px;
  font-size: 19px;
  font-weight: 400;
  text-align: center;
}
.rail-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
  flex-wrap: wrap;
}
.rail-bottom .text-button {
  margin-left: auto;
  font-size: 10px;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 100%;
}
main {
  min-width: 0;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.topbar {
  height: 111px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.text-button {
  background: none;
  border: 0;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 650;
}
.round-button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  font-size: 23px;
  font-family: system-ui;
}
.round-button:hover {
  background: var(--paper);
}
.sync-status {
  font-size: 10px;
  color: var(--muted);
}
#content {
  padding: 50px 0 66px;
  flex: 1;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}
.hero h1,
.welcome h1 {
  font:
    normal clamp(42px, 4.5vw, 66px)/1.05 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -2.4px;
  margin: 0 0 16px;
}
.hero h1 em,
.welcome h1 em {
  color: var(--primary);
  font-weight: normal;
}
.lede {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 480px;
  margin: 0;
}
.pill {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 24px;
  font-size: 10px;
  white-space: nowrap;
}
.list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
}
.paper {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.paper-header {
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.paper-title {
  font-size: 12px;
  font-weight: 700;
}
.list-select {
  max-width: 75%;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 20px 0 0;
}
.capture {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 22px;
  padding: 10px 10px 10px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--ground);
}
.capture input {
  border: 0;
  outline: none;
  background: none;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  padding: 7px 0;
}
.capture button {
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-action);
  min-width: 35px;
  height: 35px;
  font-size: 24px;
}
.list-section-label {
  padding: 10px 26px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
}
.items {
  padding: 0 22px 18px;
  list-style: none;
  margin: 0;
}
.item {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  min-height: 70px;
}
.item:last-child {
  border-bottom: 0;
}
.check {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: none;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.check[aria-checked="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-action);
}
.item-info {
  flex: 1;
  min-width: 0;
}
.item-name {
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.item-meta {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 3px;
}
.item.checked .item-name {
  text-decoration: line-through;
  color: var(--muted);
}
.item-edit {
  background: none;
  border: 0;
  padding: 10px 4px;
  color: var(--muted);
  font-size: 18px;
}
.empty {
  padding: 38px 26px;
  text-align: center;
}
.empty-mark {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  background: var(--mauve);
  border-radius: 18px;
  color: var(--primary);
  font: 25px Georgia;
  margin: 0 auto 20px;
}
.empty h2 {
  font: 25px Georgia;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 auto 20px;
  max-width: 350px;
}
.aside-card {
  background: var(--champagne);
  padding: 29px 25px;
  border-radius: var(--radius);
  align-self: start;
}
.aside-card .eyebrow {
  color: var(--gold);
  margin: 0 0 34px;
}
.aside-card h2 {
  font: 31px/1.1 Georgia;
  letter-spacing: -0.8px;
  margin: 0 0 19px;
  color: var(--ink);
}
.aside-card p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--gold);
}
.fine-print {
  display: flex;
  gap: 9px;
  padding-top: 24px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.7;
  color: var(--gold);
}
.progress {
  height: 3px;
  background: var(--line);
  margin: 0 26px 25px;
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--primary);
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 23px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
}
.page-footer > span:first-child {
  font: 18px Georgia;
  letter-spacing: -0.5px;
}
.notice {
  font-size: 12px;
  line-height: 1.7;
  background: var(--mauve);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 24px;
  overflow-wrap: anywhere;
}
.notice.error {
  color: var(--danger);
}
.welcome {
  padding: 15px 0 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 60px;
  align-items: center;
  min-height: 500px;
}
.welcome .eyebrow {
  color: var(--primary);
  margin-bottom: 25px;
}
.welcome h1 {
  font-size: clamp(48px, 5vw, 73px);
}
.welcome .lede {
  max-width: 400px;
  font-size: 13px;
}
.welcome-art {
  aspect-ratio: 1;
  background: var(--mauve);
  border-radius: 46% 46% 26px 26px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.welcome-art:before {
  content: "";
  width: 160px;
  height: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  transform: rotate(-9deg);
  box-shadow: 0 15px 30px #3023310a;
}
.welcome-art:after {
  content: "✓";
  position: absolute;
  width: 67px;
  height: 67px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--champagne);
  display: grid;
  place-items: center;
  font: 35px Georgia;
  transform: translate(54px, 50px);
}
.welcome-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.primary,
.secondary,
.danger {
  border: 0;
  border-radius: 13px;
  padding: 14px 21px;
  font-size: 11px;
  font-weight: 700;
  min-height: 44px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.primary {
  background: var(--primary);
  color: var(--on-action);
}
.secondary {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.danger {
  background: var(--danger-container);
  color: var(--danger);
}
.primary:hover {
  filter: brightness(1.12);
}
.secondary:hover {
  background: var(--ground);
}
.panel {
  max-width: 690px;
}
.panel > .paper {
  margin: 20px 0;
}
.panel-body {
  padding: 26px;
}
.panel-body h2 {
  font: 27px Georgia;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.panel-body p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.panel-body .eyebrow {
  font-size: 9px;
}
.label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.6;
  min-height: 46px;
}
.field[readonly] {
  background: var(--ground);
}
textarea.field {
  resize: vertical;
  min-height: 100px;
}
.helper {
  font-size: 10px !important;
  line-height: 1.8;
  color: var(--muted);
  margin: 8px 0 20px;
}
.button-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}
.fingerprint {
  font:
    11px/1.9 ui-monospace,
    SFMono-Regular,
    monospace;
  overflow-wrap: anywhere;
  background: var(--ground);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  letter-spacing: 0.7px;
  user-select: all;
}
.account-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.account-row:last-child {
  border-bottom: 0;
}
.avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mauve);
  font: 20px Georgia;
  color: var(--primary);
}
.account-info {
  flex: 1;
  min-width: 0;
}
.account-name {
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.account-detail {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.badge {
  font-size: 8px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--champagne);
  color: var(--gold);
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.warning-box {
  background: var(--champagne);
  padding: 16px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--gold);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 30px;
}
dialog::backdrop {
  background: #21172480;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font: 30px Georgia;
  letter-spacing: -0.7px;
  margin: 0 0 10px;
}
dialog .lede {
  font-size: 11px;
}
.dialog-error {
  font-size: 11px;
  color: var(--danger);
  line-height: 1.6;
}
.row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.locale-options {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}
.locale-options button {
  text-align: left;
  justify-content: space-between;
}
.busy:after {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1350px) {
  main {
    padding: 0 78px;
  }
  #content {
    padding-top: 62px;
  }
  .list-layout {
    gap: 38px;
  }
}
@media (max-width: 1120px) {
  .list-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .aside-card {
    display: none;
  }
  .app-shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .rail {
    padding: 37px 20px 23px;
  }
  main {
    padding: 0 36px;
  }
  .welcome {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .welcome-art {
    display: none;
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .rail {
    height: auto;
    position: relative;
    padding: 24px 22px 0;
    border: 0;
  }
  .wordmark {
    font-size: 31px;
    gap: 9px;
  }
  .wordmark img {
    width: 29px;
    height: 29px;
  }
  .rail > .eyebrow {
    display: none;
  }
  .rail-bottom {
    position: absolute;
    top: 24px;
    right: 22px;
    margin: 0;
  }
  .rail-bottom > .status-dot,
  .rail-bottom > [data-i18n="privateByDesign"] {
    display: none;
  }
  #language {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px;
  }
  nav {
    display: flex;
    gap: 7px;
    margin-top: 26px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }
  .nav-button {
    width: auto;
    flex: 1;
    justify-content: center;
    padding: 11px 4px;
    font-size: 9px;
    gap: 7px;
    border-radius: 11px;
  }
  .nav-icon {
    font-size: 16px;
    width: 16px;
  }
  main {
    padding: 0 22px;
  }
  .topbar {
    height: 66px;
    border-bottom: 0;
  }
  .topbar > .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .top-actions {
    gap: 12px;
  }
  .sync-status {
    font-size: 9px;
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .round-button {
    width: 29px;
    height: 29px;
    font-size: 20px;
  }
  .text-button {
    font-size: 10px;
  }
  #content {
    padding: 18px 0 38px;
  }
  .hero {
    margin-bottom: 25px;
    gap: 14px;
  }
  .hero h1 {
    font-size: 46px;
    letter-spacing: -1.8px;
  }
  .lede {
    font-size: 11px;
  }
  .hero .pill {
    font-size: 8px;
    padding: 7px 9px;
    align-self: start;
    margin-top: 7px;
  }
  .paper {
    border-radius: 20px;
  }
  .paper-header {
    padding: 20px;
  }
  .capture {
    margin: 17px 15px;
  }
  .items {
    padding: 0 17px 15px;
  }
  .item {
    gap: 12px;
    padding: 17px 2px;
  }
  .list-section-label {
    padding-left: 20px;
    padding-right: 20px;
  }
  .item-name {
    font-size: 12px;
  }
  .welcome {
    min-height: 0;
    padding: 15px 0 30px;
  }
  .welcome h1 {
    font-size: 57px;
    max-width: 350px;
  }
  .welcome .lede {
    font-size: 12px;
  }
  .welcome .eyebrow {
    font-size: 9px;
  }
  .welcome-actions {
    gap: 9px;
  }
  .primary,
  .secondary,
  .danger {
    font-size: 10px;
    padding: 13px 17px;
  }
  .page-footer {
    font-size: 8px;
    padding-bottom: 20px;
  }
  .panel-body {
    padding: 21px;
  }
  .account-row {
    gap: 11px;
  }
  .account-row .secondary,
  .account-row .danger {
    padding: 10px;
    font-size: 9px;
  }
  .account-row .badge {
    display: none;
  }
  dialog {
    padding: 25px;
  }
  .hero .lede {
    max-width: 260px;
  }
  .notice {
    font-size: 11px;
    margin-top: 8px;
  }
  .fingerprint {
    font-size: 10px;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #1d181e;
    --paper: #28212a;
    --ink: #f5edf1;
    --muted: #bcaebb;
    --primary: #e2bcd4;
    --champagne: #453929;
    --gold: #e8cda6;
    --mauve: #44313f;
    --line: #4b3c48;
    --danger: #f0a8b4;
    --on-action: #1d181e;
    --outline: #aa96a5;
    --danger-container: #4e2c36;
  }
  :root[data-palette="grove"] {
    --ground: #171f19; --paper: #222d24; --ink: #edf3e8; --muted: #bdccb7;
    --primary: #bcd5aa; --champagne: #443b29; --gold: #edddbd;
    --mauve: #354a35; --line: #414f3d; --outline: #94a48c; --on-action: #171f19;
  }
  :root[data-palette="tide"] {
    --ground: #151f27; --paper: #202d37; --ink: #ecf3f7; --muted: #bacdd8;
    --primary: #a7d6e5; --champagne: #2c443e; --gold: #c3e1d2;
    --mauve: #294754; --line: #40515d; --outline: #90a7b4; --on-action: #151f27;
  }
  .welcome-art:after {
    color: var(--on-action);
  }
}

.theme-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.theme-options legend { padding: 0; margin-bottom: 18px; }
.theme-choice {
  display: flex; align-items: center; gap: 12px; padding: 16px 12px;
  min-height: 80px; border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 10px; cursor: pointer;
}
.theme-choice:has(input:checked) { border-color: var(--primary); background: var(--mauve); }
.theme-choice input { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }
.theme-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
.theme-copy strong { font-size: 14px; }
.theme-copy > span { font-size: 11px; line-height: 1.6; color: var(--muted); }
.theme-swatches {
  display: flex; gap: 3px; flex-shrink: 0;
  --preview-primary: #583d53; --preview-secondary: #efe1ca; --preview-ground: #f8f5ef;
}
.theme-swatches i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--outline); }
.theme-swatches i:nth-child(1) { background: var(--preview-primary); }
.theme-swatches i:nth-child(2) { background: var(--preview-secondary); }
.theme-swatches i:nth-child(3) { background: var(--preview-ground); }
[data-preview-palette="grove"] { --preview-primary: #36593f; --preview-secondary: #ede1ca; --preview-ground: #f3f5ed; }
[data-preview-palette="tide"] { --preview-primary: #285d70; --preview-secondary: #dbeae3; --preview-ground: #eff5f7; }
@media (prefers-color-scheme: dark) {
  .theme-swatches { --preview-primary: #e2bcd4; --preview-secondary: #453929; --preview-ground: #1d181e; }
  [data-preview-palette="grove"] { --preview-primary: #bcd5aa; --preview-secondary: #443b29; --preview-ground: #171f19; }
  [data-preview-palette="tide"] { --preview-primary: #a7d6e5; --preview-secondary: #2c443e; --preview-ground: #151f27; }
}
#appearance { min-width: 44px; min-height: 44px; font-size: 20px; padding: 4px; }
