
:root {
  color-scheme: light;
  --ink: #14231F;
  --ink-2: #4C5B55;
  --paper: #F7F9F7;
  --card: #FFFFFF;
  --line: #DCE4DF;
  --spruce: #0B7A5E;
  --spruce-ink: #085A46;
  --spruce-bg: #E3F3EC;
  --violet: #6C4CF1;
  --violet-bg: #EEEAFE;
  --amber: #B45309;
  --amber-bg: #FDF1E3;
  --slate: #64748B;
  --slate-bg: #EEF2F1;
  --danger: #B42318;
  --danger-bg: #FFF4F2;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --r-card: 14px;
  --r-button: 10px;
  --r-chip: 999px;
  --shadow: 0 1px 2px rgba(20, 35, 31, 0.05), 0 8px 24px -12px rgba(20, 35, 31, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button,
input,
textarea,
select {
  font: inherit;
}
button { cursor: pointer; }
code,
.mono,
.code,
.when,
.product,
.metoo,
.duration,
.machine,
.token-row p {
  font-family: var(--font-mono);
}
:focus-visible {
  outline: 2px solid var(--spruce);
  outline-offset: 2px;
}
.shell {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 247, 0.94);
  backdrop-filter: blur(12px);
}
.topbar .shell {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.brand-mark-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}
.logo-word {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.logo-word em {
  color: var(--spruce);
  font-style: normal;
}
.tagline {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.2;
}
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.nav form { margin: 0; }
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-button);
  background: var(--card);
  padding: 3px;
}
.nav .lang-switcher button {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0 9px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.nav .lang-switcher button.active {
  background: var(--spruce-bg);
  color: var(--spruce-ink);
}
.button,
.nav a,
.nav button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-button);
  padding: 0 14px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.button.primary,
.nav .primary {
  border-color: var(--spruce);
  background: var(--spruce);
  color: #FFFFFF;
}
.button.primary:hover,
.nav .primary:hover { background: var(--spruce-ink); }
.button:hover,
.nav a:hover,
.nav button:hover {
  border-color: var(--ink-2);
}
.button:disabled,
.nav button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.flash {
  margin-top: 18px;
  border: 1px solid #BFE3D4;
  border-radius: 10px;
  background: var(--spruce-bg);
  padding: 12px 14px;
  color: var(--spruce-ink);
  font-size: 14px;
  font-weight: 600;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 56px;
  align-items: center;
  padding: 88px 0 72px;
}
.hero > *,
.ledger-row > *,
.yet-row > *,
.workspace > *,
.capture,
.panel,
.connect,
.row-title,
.row-meta,
.meta {
  min-width: 0;
}
.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}
.hero .yet {
  position: relative;
  display: inline-block;
  color: var(--spruce);
  white-space: nowrap;
}
.hero .yet::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  height: 0.18em;
  z-index: -1;
  border-radius: 3px;
  background: var(--spruce);
  opacity: 0.28;
  animation: ink-sweep 0.7s ease-out 0.2s both;
  transform-origin: left center;
}
.lede {
  max-width: 44ch;
  margin: 22px 0 30px;
  color: var(--ink-2);
  font-size: 18px;
  overflow-wrap: anywhere;
}
.hero-actions,
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.login-hero {
  align-items: start;
}
.login-hero h1 {
  max-width: 100%;
  font-size: 56px;
}
.auth-panel {
  padding: 26px;
}
.auth-options {
  display: grid;
  gap: 12px;
}
.auth-options .button {
  width: 100%;
  min-height: 46px;
}
.auth-note {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.provider-google {
  border-color: var(--spruce);
  background: var(--spruce);
  color: #FFFFFF;
}
.provider-google:hover {
  background: var(--spruce-ink);
}
.hero-foot {
  margin: 26px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.hero-foot code {
  display: inline-block;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  padding: 3px 8px;
  color: var(--ink);
  font-size: 12.5px;
}
.capture,
.panel,
.yetcard {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow);
}
.capture {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}
.capture-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-width: 0;
}
.capture-row > * {
  min-width: 0;
}
.capture-row.align-end .bubble {
  justify-self: end;
}
.capture-no {
  padding-top: 10px;
  color: #8B9993;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  text-align: right;
}
.capture .label {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bubble {
  max-width: 88%;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.bubble.user {
  align-self: flex-end;
  border: 1px solid var(--line);
  border-bottom-right-radius: 4px;
  background: var(--paper);
}
.toolcall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 8px 12px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.toolcall .dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--spruce);
  animation: pulse 1.6s infinite;
}
.saved {
  align-self: flex-start;
  border: 1px solid #BFE3D4;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  background: var(--spruce-bg);
  padding: 12px 14px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.capture-row .toolcall,
.capture-row .saved {
  justify-self: start;
  max-width: min(32ch, 100%);
}
.saved .mono {
  display: block;
  margin-top: 4px;
  color: var(--spruce-ink);
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.section {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.section h2,
.list-tools h1,
.panel-header h1,
.panel-header h2,
.connect h2,
.token-list h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}
.section h2 {
  margin-bottom: 6px;
  font-size: 26px;
  line-height: 1.15;
}
.section .sub {
  margin: 0 0 28px;
  color: var(--ink-2);
  font-size: 14.5px;
}
.ledger,
.yet-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}
.ledger-row,
.yet-head,
.yet-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: start;
}
.ledger-row,
.yet-row {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.ledger-row:last-child,
.yet-row:last-child { border-bottom: 0; }
.yet-head {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.when {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}
.when b {
  color: var(--ink);
  font-weight: 500;
}
.row-title,
.yet-row h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.yet-row h2 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.yet-row p {
  margin: 0 0 12px;
  color: var(--ink-2);
}
.struck-update {
  color: var(--ink-2);
  text-decoration: line-through;
  text-decoration-color: var(--violet);
  text-decoration-thickness: 2px;
}
.struck-person {
  color: var(--ink-2);
  text-decoration: line-through;
  text-decoration-color: var(--spruce);
  text-decoration-thickness: 2px;
}
.struck-update,
.struck-person {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  vertical-align: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}
.meta,
.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 12.5px;
}
.row-meta {
  justify-content: flex-end;
}
.chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: var(--r-chip);
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.chip-open { background: var(--amber-bg); color: var(--amber); }
.chip-solved-person { background: var(--spruce-bg); color: var(--spruce-ink); }
.chip-solved-update { background: var(--violet-bg); color: var(--violet); }
.chip-not-impossible,
.chip-duplicate,
.chip-private,
.chip-unlisted,
.chip-public { background: var(--slate-bg); color: var(--slate); }
.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0 72px;
}
.side-stack {
  display: grid;
  gap: 18px;
  align-self: start;
}
.panel-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 22px 12px;
}
.panel-header h1,
.panel-header h2 {
  font-size: 19px;
  line-height: 1.2;
}
.panel-header p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 13px;
}
.form {
  display: grid;
  gap: 16px;
  padding: 20px 22px 22px;
}
.setup-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}
.setup-row strong {
  display: block;
  margin-bottom: 3px;
  font-weight: 700;
}
.setup-row p,
.connect p,
.empty {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}
.step {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #BFE3D4;
  border-radius: 8px;
  background: var(--spruce-bg);
  color: var(--spruce-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
.connect {
  border: 1px solid #BFE3D4;
  border-radius: var(--r-card);
  background: var(--spruce-bg);
  padding: 18px;
}
.connect h2 {
  margin-bottom: 8px;
  font-size: 17px;
}
.code {
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.55;
}
.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
}
label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  padding: 11px 12px;
  font-size: 14px;
}
textarea {
  min-height: 94px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--spruce);
  outline-offset: 2px;
  border-color: var(--spruce);
}
.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.list-tools h1 {
  font-size: 30px;
  line-height: 1.15;
}
.list-tools input { max-width: 330px; }
.empty-state {
  padding: 22px;
}
.token-list {
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
}
.token-list h2 {
  margin-bottom: 12px;
  font-size: 17px;
}
.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.token-row:first-of-type { border-top: 0; }
.token-row p {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: 12.5px;
}
.identity-list {
  border-top: 1px solid var(--line);
}
.identity-add {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.identity-add h3 {
  margin: 0;
  font-size: 14px;
}
.identity-add .auth-options {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.token-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 13px;
}
.error {
  border: 1px solid #F2C6C2;
  border-radius: 8px;
  background: var(--danger-bg);
  padding: 12px 14px;
  color: var(--danger);
}
.token-output {
  display: grid;
  gap: 8px;
}
.yetcard {
  max-width: 760px;
  padding: 30px 34px;
}
.yetcard .head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.yetcard h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}
.yetcard .byline {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 13px;
}
.field { margin-top: 18px; }
.field .k {
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field .v {
  max-width: 62ch;
  font-size: 15px;
}
.field code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 2px 6px;
  font-size: 13px;
}
.yetfoot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.duration {
  margin-left: auto;
  color: var(--ink-2);
  font-size: 12.5px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--ink-2);
  font-size: 13px;
}
.footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
@keyframes ink-sweep {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}
@media (max-width: 880px) {
  .shell { width: min(100% - 28px, 1120px); }
  .topbar .shell {
    min-height: 64px;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 10px 0;
  }
  .nav {
    gap: 7px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a,
  .nav button { flex: 0 0 auto; }
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 36px;
    padding: 56px 0 48px;
  }
  .hero h1 { font-size: 56px; }
  .ledger-row,
  .yet-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .row-meta { justify-content: flex-start; }
  .yet-head { display: none; }
  .list-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .list-tools input { max-width: none; }
  .tagline { display: none; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 42px; }
  .login-hero h1 {
    max-width: 12ch;
    font-size: 40px;
  }
  .hero {
    display: block;
    padding-top: 44px;
  }
  .shell {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }
  .hero section,
  .panel,
  .capture,
  .ledger,
  .yet-table,
  .yetcard {
    width: 100%;
    max-width: 100%;
  }
  .capture {
    display: block;
    inline-size: calc(100vw - 56px);
    max-inline-size: calc(100vw - 56px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 36px;
    overflow: hidden;
    padding: 18px 16px;
  }
  .hero .auth-panel {
    width: min(300px, 100%);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    padding: 22px 18px;
    overflow: hidden;
  }
  .auth-options .button {
    width: 100%;
    max-width: 100%;
  }
  .capture > * + * {
    margin-top: 12px;
  }
  .capture-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  .ledger-row,
  .yet-row {
    display: block;
  }
  .ledger-row > * + *,
  .yet-row > * + * {
    margin-top: 10px;
  }
  .shell.hero {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }
  .bubble,
  .bubble.user,
  .toolcall,
  .saved {
    align-self: stretch;
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .capture-row.align-end .bubble {
    justify-self: stretch;
  }
  .capture-row .bubble,
  .capture-row .toolcall,
  .capture-row .saved {
    inline-size: 100%;
    max-inline-size: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .struck-update,
  .struck-person {
    display: inline-block;
    max-width: 100%;
  }
  .lede,
  .section .sub,
  .bubble,
  .toolcall,
  .saved,
  .row-title,
  .yet-row h2,
  .field .v {
    white-space: normal;
    word-break: break-word;
  }
  .lede,
  .section .sub {
    max-width: 31ch;
  }
  .bubble,
  .toolcall,
  .saved,
  .row-title {
    max-width: min(28ch, 100%);
  }
  .capture-row .bubble,
  .capture-row .toolcall,
  .capture-row .saved {
    max-width: min(24ch, 100%);
  }
  .product {
    margin: 6px 0 0;
  }
  .hero-foot code { margin: 8px 0 0; }
  .panel-header,
  .form,
  .connect,
  .token-list,
  .yetcard {
    padding-left: 16px;
    padding-right: 16px;
  }
  .code-row,
  .token-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .token-actions { justify-content: space-between; }
  .yetfoot {
    align-items: stretch;
    flex-direction: column;
  }
  .duration { margin-left: 0; }
  .footer .shell { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .yet::after,
  .toolcall .dot { animation: none; }
}
