:root {
  --ink: #1D1D1F;
  --ink-2: #3A3A3C;
  --ground: #FAF8F4;
  --ground-2: #F3EEE6;
  --line: #EEE7DC;
  --body: #4A4640;
  --sub: #6E6E73;
  --faint: #7A746B;
  --faint-2: #9A9389;
  --accent: #A8331C;
  --blue: #0071E3;
  --blue-hover: #0062C4;
  --link: #0066CC;
  --good: #248A3D;
  --warn: #B25000;
  --mark: #FFF1B8;
  --garden: #E6F0E8;
  --shadow: 0 1px 2px rgba(60, 40, 10, 0.04), 0 14px 40px rgba(60, 40, 10, 0.07);
  --ease: cubic-bezier(.23, 1, .32, 1);
  /* Motion (lode/ui/motion.md). Entering and leaving use --ease-out, moving on screen --ease-in-out, sheets and
     panels --ease-drawer. Reduced motion zeroes the distances below, so only fades remain. */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --press: .97;
  --pop: .97;
  --rise: 8px;
  --shift: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { color: #004C99; } }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
mark { background: var(--mark); border-radius: 3px; padding: 0 2px; color: inherit; }
[hidden] { display: none !important; }

/* Layout */
.container { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-bottom: 104px; }
.section--end { padding-bottom: 72px; }
.stack-2, .stack-6, .stack-8, .stack-10, .stack-12, .stack-14, .stack-28 { display: flex; flex-direction: column; }
.stack-2 { gap: 2px; }
.stack-6 { gap: 6px; }
.stack-8 { gap: 8px; }
.stack-10 { gap: 10px; }
.stack-12 { gap: 12px; }
.stack-14 { gap: 14px; }
.stack-28 { gap: 28px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.measure { max-width: 560px; }
.measure-wide { max-width: 720px; }
.grid-300, .grid-320 { display: grid; gap: 20px; }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; padding-top: 4px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split--top { align-items: flex-start; }
.split__text { flex: 1 1 380px; min-width: 0; }

/* Type */
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); }
.eyebrow.small { font-size: 13px; }
.h2 { font-size: 38px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.h2--large { font-size: 48px; line-height: 1.04; letter-spacing: -0.04em; }
.h3 { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.h4 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.lede { font-size: 19px; color: var(--body); }
.label { font-size: 13px; font-weight: 600; color: var(--sub); }
.small { font-size: 13px; }
.body-15 { font-size: 15px; color: var(--body); }
.muted { color: var(--sub); }
.sub { color: var(--sub); line-height: 1.4; }
.faint { color: var(--faint); }
.faint2 { color: var(--faint-2); }
.center { text-align: center; }
.tone-good { color: var(--good); font-weight: 600; }
.link-quiet { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 980px;
  background: var(--blue); color: #FFFFFF;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s;
}
@media (hover: hover) { .btn:hover { background: var(--blue-hover); color: #FFFFFF; } }
.btn:active { transform: scale(var(--press)); }
.btn--small { min-height: 34px; padding: 0 16px; }
.btn--medium { min-height: 48px; padding: 0 24px; }
.btn--large { min-height: 52px; padding: 0 26px; }
.link-button { padding: 0; border: none; background: transparent; font-size: 14px; color: var(--link); }
/* On touch screens, small text buttons get a tap area of at least 44px without moving anything. */
@media (pointer: coarse) {
  button, a, summary { -webkit-tap-highlight-color: transparent; }
  .link-button:active { opacity: .6; }
  .link-button, .app-header__settings { position: relative; }
  .link-button::after, .app-header__settings::after { content: ""; position: absolute; inset: -12px -6px; }
}
/* Turbo disables a button while its form submits, and data-turbo-submits-with names what's happening. */
.btn:disabled, .pill-button:disabled, .link-button:disabled { cursor: progress; opacity: .6; }
.btn:disabled:active, .pill-button:disabled:active { transform: none; }

/* Waiting: one look for every wait (shared/_waiting.html.erb) */
.waiting { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; font-weight: 500; color: var(--ink-2); }
.waiting .dots span { background: var(--blue); }
.waiting__slow { flex-basis: 100%; font-size: 14px; font-weight: 400; color: var(--sub); }
.waiting--compact { gap: 6px; font-size: 13px; font-weight: 400; color: var(--sub); }
.waiting--compact .dots span { width: 4px; height: 4px; }
.voice-card > .waiting { display: flex; align-items: flex-start; justify-content: flex-start; }
.voice-card > .waiting .dots { margin-top: .6em; }
.voice-card > .waiting .waiting__text { flex: 1 1 0; }

.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ground-2); align-self: flex-start; }
.segmented button {
  min-height: 32px; padding: 0 14px; border: none; border-radius: 8px;
  background: transparent; font-size: 14px; font-weight: 600; color: var(--ink);
}
.segmented--small button { min-height: 30px; padding: 0 12px; font-size: 13px; }
.segmented [aria-checked="true"], .segmented [aria-selected="true"] {
  background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 248, 244, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.site-header__inner { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.brand__mark { display: block; margin: -2px 0; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero > .eyebrow { font-weight: 600; }
.hero__title { max-width: 900px; font-size: clamp(46px, 7vw, 84px); line-height: 1.0; font-weight: 800; letter-spacing: -0.045em; }
.hero__title > span { display: block; }
.hero__highlight {
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 62% / 100% 62%;
  border-radius: 6px; padding: 0 6px; margin-left: -6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: highlight .7s var(--ease) .7s both;
}
.hero__lede { max-width: 600px; font-size: 20px; color: var(--body); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding-top: 6px; }
.fine-print { font-size: 13px; color: var(--faint); }

/* Cards */
.card { padding: 24px; border-radius: 22px; background: #FFFFFF; box-shadow: var(--shadow); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.panel { padding: 20px 22px; border-radius: 16px; background: var(--ground); display: flex; flex-direction: column; gap: 10px; }
.inset { padding: 14px; border-radius: 12px; background: var(--ground); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.garden { border-radius: 28px; background: var(--garden); padding: clamp(18px, 4vw, 48px); }
.garden--tight { border-radius: 22px; padding: 18px; }

/* Month */
.month { padding: clamp(24px, 4vw, 40px); border-radius: 24px; display: flex; flex-direction: column; gap: 26px; }
.month .section-head > :first-child { max-width: 560px; }
.month__chart { display: flex; flex-direction: column; gap: 26px; }
.month__row-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 14px; }
.month__row-head strong { font-size: 15px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 72px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.bar { flex: 1 1 0; min-width: 2px; height: 4px; border-radius: 3px 3px 1px 1px; background: #F1ECE4; }
.bar--essay { height: 100%; background: var(--ink); }
.bar--share { height: 42%; background: #C9C2B6; }
.bar--post { height: 56%; background: var(--blue); }
.month__weeks { display: flex; justify-content: space-between; gap: 8px; margin-top: -16px; font-size: 12px; color: var(--faint-2); }
.month__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--sub); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 2px; }

/* Article demo */
.demo { border-radius: 20px; padding: clamp(22px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 26px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 20px 50px rgba(30, 70, 45, 0.12); }
.demo__reading { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; color: var(--ink-2); }
.dots { display: inline-flex; gap: 3px; }
.dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); animation: dot 1s infinite; }
.dots span:nth-child(2) { animation-delay: .15s; }
.dots span:nth-child(3) { animation-delay: .3s; }
.demo__found { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.demo__count { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 600; color: var(--ink-2); }
.demo__count strong { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 14px; border: none; border-radius: 14px; text-align: left;
  background: var(--ground); box-shadow: 0 0 0 1px var(--line); transition: background-color .16s, box-shadow .16s;
}
@media (hover: hover) { .pick:hover { background: var(--ground-2); } }
.pick:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 113, 227, .4); }
.pick[aria-checked="true"] { background: #FFFFFF; box-shadow: 0 0 0 2px var(--blue); }
.pick__title { font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article__note { font-size: 13px; color: #8A6A3E; padding: 8px 10px; border-radius: 10px; background: #FFF6E5; }
.strong { font-weight: 600; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.is-marked {
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 0 / 100% 100%;
  border-radius: 3px; padding: 0 2px; transition: opacity .2s;
  animation: mark .6s var(--ease) var(--delay, 0s) both;
}
.is-dim { opacity: .35; }
.demo__body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.article { flex: 1 1 360px; min-width: 0; padding: 24px; border-radius: 16px; background: var(--ground); display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.6; }
.article h3 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.article p { color: var(--ink-2); }
.article .small { font-size: 13px; }
.article a.small { font-size: 14px; }
.demo__posts { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.demo__empty { min-height: 360px; border-radius: 16px; border: 1.5px dashed #E2DACB; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--faint-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 980px; background: rgba(0, 113, 227, 0.08); color: var(--link); font-size: 14px; font-weight: 600; }
.post {
  padding: 16px 18px; border-radius: 14px; background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(60, 40, 10, 0.05);
  display: flex; flex-direction: column; gap: 8px; outline: none; transition: box-shadow .2s;
}
.post:focus { box-shadow: 0 0 0 2px var(--blue), 0 10px 24px rgba(0, 60, 140, 0.12); }
@media (hover: hover) { .post:hover { box-shadow: 0 0 0 2px var(--blue), 0 10px 24px rgba(0, 60, 140, 0.12); } }
.post__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--faint); }
.post__meta strong { color: var(--ink); font-weight: 600; }
.post__text { font-size: 16px; white-space: pre-line; }
.demo__after { display: flex; flex-direction: column; gap: 16px; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 22px; border-radius: 16px; background: #EAF3FF; }
.callout__title { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }
.callout .small { font-size: 14px; color: var(--ink-2); }
.linkedin { padding: 14px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.linkedin__author { display: flex; align-items: center; gap: 8px; }
.linkedin__author strong { font-weight: 600; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #D1502F; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.fold { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--warn); }
.fold::before, .fold::after { content: ""; flex: 1; border-top: 1.5px dashed #F0B37E; }

/* Voice */
.voice { flex: 1 1 440px; min-width: 0; }
.voice__line { min-height: 96px; font-size: 26px; line-height: 1.35; letter-spacing: -0.015em; animation: fade .25s ease-out both; }

/* Platforms */
.check { display: flex; gap: 8px; align-items: flex-start; }
.check__icon { flex: none; width: 16px; height: 16px; border-radius: 50%; color: #FFFFFF; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.check__icon--warn { background: #C93400; }
.check__icon--ok { background: #34C759; }
.copy { min-height: 28px; min-width: 76px; padding: 0 10px; border: none; border-radius: 980px; background: rgba(0, 113, 227, 0.1); color: var(--link); font-size: 13px; font-weight: 600; }
.copy.is-copied { background: #EEF7EF; color: var(--good); }

/* Editor */
.editor-intro { flex-basis: 340px; padding-top: 72px; }
.editor-demo { flex: 1 1 520px; min-width: 0; }
.try { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--link); }
.try span { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.draft {
  background: #FFFFFF; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(30, 70, 45, 0.1);
  padding: 26px 30px 18px 46px; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.6;
}
.draft h3 { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.draft__versioned { position: relative; }
.draft__count { position: absolute; left: -32px; top: 3px; width: 22px; height: 22px; padding: 0; border: none; border-radius: 50%; background: var(--blue); color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 22px; }
.draft__sentence { background: var(--mark); border-radius: 4px; padding: 1px 3px; cursor: pointer; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.versions { margin: 0 0 4px -16px; padding: 8px; border-radius: 12px; background: #F5F5F7; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; }
.version { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: none; border-radius: 8px; background: transparent; text-align: left; }
.version[aria-checked="true"] { background: #FFFFFF; }
.version__text { flex: 1; }
.version__meta { display: block; font-size: 12px; color: var(--sub); }
.version__check { flex: none; margin-top: 3px; opacity: 0; }
.version[aria-checked="true"] .version__check { opacity: 1; }
.versions__new { display: flex; gap: 8px; padding: 6px 4px 2px; }
.versions__new input { flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border: none; border-radius: 8px; background: #FFFFFF; box-shadow: 0 0 0 1px #E5E5EA; font: inherit; font-size: 15px; color: var(--ink); }
.versions__new button { flex: none; min-height: 36px; padding: 0 12px; border: none; border-radius: 8px; background: rgba(0, 113, 227, 0.1); font-size: 14px; font-weight: 600; color: var(--link); }
.draft__cut { display: inline-flex; align-items: center; gap: 10px; }
.versions.in, .draft__cut.in { animation-duration: .25s; }
.draft__cut > span { color: var(--ink); }
.draft__cut .link-button { font-size: 13px; font-weight: 600; }
.draft__cuttable { display: flex; align-items: baseline; gap: 10px; }
.draft__cuttable span { flex: 1; }
.key-button { flex: none; padding: 2px 8px; border: none; border-radius: 6px; background: #F5F5F7; font-size: 12px; font-weight: 600; color: var(--sub); }
.draft__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #EEEEF1; font-size: 13px; color: var(--sub); }

/* Promises */
.promises { padding: 32px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.promises__head { flex: 1 1 280px; }
.promises__list { flex: 2 1 420px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; font-size: 16px; }
.promises__list li { display: flex; gap: 12px; align-items: flex-start; }
.tick { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #EEF7EF; color: var(--good); display: flex; align-items: center; justify-content: center; }

/* Finale */
/* Upgrade dialog (artboard 6a) */
.upgrade { max-width: 560px; }
.upgrade__inner { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.upgrade__title { margin: 0; font-size: 28px; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
.upgrade__body { color: var(--ink-2); }
.upgrade__list { font-size: 15px; gap: 8px; }
.upgrade__inner form { margin: 0; }
.upgrade__inner form[hidden] { display: none; }
.upgrade__go { width: 100%; justify-content: center; border-radius: 12px; }
.upgrade__later { width: 100%; min-height: 40px; font-size: 15px; }
.upgrade__buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* Words, compared with a plain rewrite (artboard 2f) */
.words__intro { margin: 0; padding: 0 4px 4px; font-size: 15px; }
.voice-card.words { padding: 0; overflow: hidden; }
.words__head { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px 6px; font-size: 13px; font-weight: 600; color: var(--sub); }
.words__row { margin-left: 20px; padding: 12px 20px 12px 0; display: flex; flex-direction: column; gap: 6px; }
.words__row + .words__row { border-top: 0.5px solid #E5E5EA; }
.words__line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.words__line strong { font-weight: 600; }
.words__count { flex: none; font-size: 15px; color: var(--sub); font-variant-numeric: tabular-nums; }
.words__proof { font-size: 15px; color: var(--sub); }
.words__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.words__foot form { flex: none; }
.words__empty { margin: 0; padding: 4px 20px 16px; font-size: 15px; color: var(--ink-2); }

/* Settings (artboard 6) */
.app-header__settings { font-size: 13px; color: var(--ink); text-decoration: none; }
.app-header__settings[aria-current="page"] { font-weight: 600; }
.settings { max-width: 680px; margin: 0 auto; padding: 44px 20px 72px; display: flex; flex-direction: column; gap: 28px; }
.settings__title { margin: 0; font-size: 48px; line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.settings__section { display: flex; flex-direction: column; gap: 8px; }
.settings__heading { margin: 0; padding: 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--accent); }
.settings__group { background: #FFFFFF; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.04); overflow: hidden; }
.settings__group--padded { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.settings__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.settings__group:not(.settings__group--padded) > * + * { margin-left: 20px; padding-left: 0; border-top: 0.5px solid #E5E5EA; }
.settings__row--plan { padding: 20px; flex-wrap: wrap; align-items: baseline; }
.settings__row--stack { flex-direction: column; align-items: stretch; gap: 8px; }
.settings__row--button { width: 100%; border: none; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.settings__label { display: flex; flex-direction: column; gap: 2px; }
.settings__label .sub, .settings__split > span:not(.settings__label) { font-size: 15px; }
.settings__label strong { font-weight: 600; }
.settings__plan { font-size: 22px; font-weight: 800 !important; letter-spacing: -0.02em; }
.settings__status { font-size: 15px; color: var(--good); }
.settings__status--warn { color: #C93400; }
.settings__split { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.settings__bar { height: 6px; border-radius: 3px; background: #E5E5EA; overflow: hidden; }
.settings__bar span { display: block; height: 6px; border-radius: 3px; background: var(--blue); }
.settings__action { flex: none; font-size: 15px; color: var(--link); text-decoration: none; }
.settings__action--danger { color: #C93400; }
.settings__note { padding: 14px 16px; border-radius: 12px; background: #F7F4EE; font-size: 15px; color: var(--ink-2); }
.settings__note--on { background: #EEF7EF; }
.settings__note strong { display: block; font-weight: 600; color: var(--ink); }
.settings__confirm { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #FFF6EC; font-size: 15px; color: var(--ink-2); }
.settings__confirm strong { color: var(--ink); }
.settings__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.settings__danger { background: #C93400; }
@media (hover: hover) { .settings__danger:hover { background: #A82B00; } }
.settings__foot { margin: 0; padding: 4px 4px 0; }

/* Buffer check (artboard 6b): a popover under Send all, anchored where the browser supports it. */
.board__send-all { anchor-name: --send-all; }
.fit { position-anchor: --send-all; inset: auto; top: anchor(bottom); right: anchor(right); margin: 8px 0 0; width: 420px; max-width: calc(100vw - 48px);
  box-sizing: border-box; padding: 18px; border: none; border-radius: 16px; background: #FFFFFF; color: var(--ink);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 18px 48px rgba(0, 0, 0, 0.18); flex-direction: column; gap: 14px; transform-origin: top right;
  opacity: 0; transform: scale(var(--pop)); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), display .2s allow-discrete, overlay .2s allow-discrete; }
.fit:popover-open { display: flex; opacity: 1; transform: none; }
@starting-style { .fit:popover-open { opacity: 0; transform: scale(var(--pop)); } }
@supports not (anchor-name: --a) { .fit { inset: 140px 24px auto auto; } }
.fit__title { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; }
.fit__body { font-size: 14px; color: var(--ink-2); }
.fit__channels { border-radius: 12px; background: #F5F5F7; overflow: hidden; font-size: 14px; }
.fit__channel { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.fit__channel + .fit__channel { border-top: 0.5px solid #E5E5EA; }
.fit__channel strong { font-weight: 600; }
.fit__until { flex: none; font-weight: 600; color: var(--good); }
.fit__until--late { color: #C93400; }
.fit__button { width: 100%; min-height: 40px; border-radius: 10px; font-size: 15px; }
.fit .fit__button--quiet { background: rgba(0, 113, 227, 0.1); color: var(--link); }
@media (hover: hover) { .fit .fit__button--quiet:hover { background: rgba(0, 113, 227, 0.16); color: var(--link); } }
.fit__links { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.fit__links a { text-decoration: none; }
.fit .stack-8 { display: flex; flex-direction: column; align-items: stretch; }
.fit form { display: block; width: 100%; }

/* Pricing (artboard 01) */
.pricing__hero { padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.pricing__title { margin: 0; font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; }
.pricing__title mark { background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 62% / 100% 62%; border-radius: 6px; padding: 0 6px; }
.pricing__section { padding-top: 24px; padding-bottom: 56px; }
.pricing__h2 { margin: 0; font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
.segments { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: #F3EEE6; }
.segments__item { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border: none; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.segments__item[aria-checked="true"] { background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
.pricing__month { padding: 28px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 0 0 12px #DCEBDF; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; align-items: center; margin: 12px; }
.pricing__month-text { display: flex; flex-direction: column; gap: 14px; }
.pricing__month-line { margin: 0; font-size: 22px; line-height: 1.35; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pricing__month-line strong { font-weight: 800; }
.pricing__weeks { display: flex; flex-direction: column; gap: 6px; }
.pricing__weeks[hidden], .pricing__month-text > [hidden], .plan__price[hidden] { display: none; }
.pricing__week { display: grid; grid-template-columns: 56px repeat(5, minmax(0, 1fr)); gap: 6px; font-size: 12px; color: #8A8276; }
.pricing__week > span:first-child { align-self: center; }
.pricing__week--head { font-weight: 600; }
.pricing__day { height: 46px; border-radius: 10px; background: #F3EEE6; display: flex; align-items: flex-end; padding: 6px 8px; font-size: 12px; font-weight: 600; color: #FFFFFF; }
.pricing__day.is-essay { background: var(--ink); }
.pricing__day.is-post { background: var(--blue); }
.pricing__legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 6px 0 0 62px; font-size: 12px; color: var(--sub); }
.pricing__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.pricing__legend > span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #F3EEE6; }
.pricing__legend .is-essay::before { background: var(--ink); }
.pricing__legend .is-post::before { background: var(--blue); }
.pricing__plans { padding-bottom: 56px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pricing__plans > .segments { align-self: center; }
.pricing__tag { padding: 2px 8px; border-radius: 980px; background: var(--mark); font-size: 12px; font-weight: 700; color: #6B4E00; }
.pricing__cards { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.plan { position: relative; padding: 10px; border-radius: 28px; background: #EFE9DF; }
.plan--writer { background: #CFE0F7; }
.plan__inner { height: 100%; padding: 28px; border-radius: 18px; background: #FFFFFF; display: flex; flex-direction: column; gap: 18px; }
.plan__stamp { position: absolute; top: 22px; right: 26px; padding: 6px 12px; border: 2px solid var(--accent); border-radius: 10px; color: var(--accent); font-family: "Bradley Hand", "Segoe Print", cursive; font-size: 22px; font-weight: 700; line-height: 1; transform: rotate(-6deg); }
.plan__name { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.plan__price strong { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.plan__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__check { flex: none; margin-top: 3px; }
.plan__go { margin-top: auto; justify-content: center; border-radius: 14px; }
.plan__go--dark { background: var(--ink); }
.pricing__note { max-width: 640px; }
.pricing__pause { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
.pricing__promises { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); }
.pricing__demo { padding: 10px; border-radius: 24px; background: #EFE9DF; }
.pricing__demo-inner { padding: 22px 24px; border-radius: 14px; background: #FFFFFF; display: flex; flex-direction: column; gap: 14px; }
.pricing__demo-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pricing__switch { flex: none; position: relative; width: 52px; height: 32px; padding: 0; border: none; border-radius: 980px; background: #D8D2C8; cursor: pointer; transition: background-color .2s ease; }
.pricing__switch span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transition: transform .3s var(--ease-out); }
.pricing__switch[aria-checked="true"] { background: #34C759; }
.pricing__switch[aria-checked="true"] span { transform: translateX(20px); }
.pricing__demo-status { padding: 14px 16px; border-radius: 12px; background: #F7F4EE; font-size: 15px; color: var(--ink-2); transition: background-color .3s ease; }
.pricing__demo-status.is-paused { background: #EEF7EF; }
.pricing__demo-status strong { color: var(--ink); }
.pricing__faq { max-width: 760px; padding-top: 16px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.pricing__questions { border-top: 1px solid #E7E0D2; }
.pricing__question { border-bottom: 1px solid #E7E0D2; }
.pricing__question summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 600; cursor: pointer; list-style: none; }
.pricing__question summary::-webkit-details-marker { display: none; }
.pricing__question summary svg { flex: none; transition: transform .2s var(--ease-out); }
.pricing__question[open] summary svg { transform: rotate(90deg); }
.pricing__question p { margin: 0; padding: 0 2px 18px; color: var(--ink-2); }
.pricing__close { padding: 56px 48px; border-radius: 28px; background: var(--ink); color: #FFFFFF; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.pricing__close-title { max-width: 620px; font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; }
.pricing__close-lede { color: #C7C7CC; }
@media (max-width: 760px) { .pricing__month { grid-template-columns: minmax(0, 1fr); } .pricing__close { padding: 36px 24px; } }

/* Why growing is hard */
.why { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; padding-bottom: 88px; }
.why__head { max-width: 720px; }
.why__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.why__card { padding: 22px 24px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(60, 40, 10, 0.04), 0 14px 40px rgba(60, 40, 10, 0.06); display: flex; flex-direction: column; gap: 12px; }
.why__n { width: 32px; height: 32px; border-radius: 50%; background: #F3EEE6; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--accent); }
.why__text { font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: -0.015em; }
.why__answer { margin: 0; max-width: 720px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.why__answer mark { background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 70% / 100% 45%; padding: 0 2px; color: inherit; }
.site-footer__links { display: flex; gap: 16px; }
.finale { padding: clamp(36px, 6vw, 80px) 24px; border-radius: 28px; background: var(--ink); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.finale__badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); font-size: 15px; }
.finale__title { max-width: 760px; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
.finale__lede { max-width: 520px; font-size: 19px; color: rgba(255, 255, 255, 0.78); }

/* Sign-in messages */
.waitlist__done { font-weight: 600; color: var(--good); }
.waitlist__error { font-size: 14px; color: #C93400; }
.finale .btn { background: #FFFFFF; color: var(--ink); }
@media (hover: hover) { .finale .btn:hover { background: #E8E8ED; } }
.finale .waitlist__done { color: #30D158; }
.finale .waitlist__error { color: #FF9F7A; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Sign in */
.sign-in { display: flex; justify-content: center; padding: 24px 20px 56px; }
.sign-in__column { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 20px; }
.sign-in__card { padding: 40px 36px 30px; display: flex; flex-direction: column; gap: 22px; }
.sign-in__title { font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.04em; }
.sign-in__button { width: 100%; border-radius: 14px; }
.sign-in__button--quiet { background: #F2EEE8; color: var(--ink); }
@media (hover: hover) { .sign-in__button--quiet:hover { background: #E8E2D8; color: var(--ink); } }
.sign-in__rule { width: 100%; margin: 0; border: none; border-top: 1px solid #EEEAE3; }
.sign-in__trust { padding: 0 8px; display: flex; flex-direction: column; gap: 10px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps__item { display: flex; gap: 14px; padding: 12px 0; }
.steps__item + .steps__item { border-top: 1px solid #F2EEE8; }
.steps__number { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #F2EEE8; color: var(--sub); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps__number--current { background: var(--blue); color: #FFFFFF; }
.promises__list--compact { flex: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.site-footer.site-footer--center { justify-content: center; }

/* Voice */
.page--garden { background: var(--garden); }
.app-header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; background: rgba(230, 240, 232, 0.78); border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.app-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.app-header .brand { font-size: 17px; justify-self: start; }
.app-header-wrap { display: contents; }
.app-header__end { justify-self: end; display: flex; align-items: center; gap: 16px; }
.app-header__end form { margin: 0; }
.app-header__search { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: none; border-radius: 10px; background: rgba(118, 118, 128, 0.12); font-size: 13px; color: var(--sub); }
.app-header__search-key { margin-left: 10px; font-size: 12px; }
@media (hover: none) { .app-header__search-key { display: none; } }
/* Phones: the brand and Search share the top row, and the four tabs take the second, full width. */
@media (max-width: 760px) {
  .app-header { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand end" "nav nav"; row-gap: 8px; padding: 8px 16px; }
  .app-header .brand { grid-area: brand; }
  .app-header__end { grid-area: end; gap: 12px; }
  .app-nav { grid-area: nav; display: flex; }
  .app-nav a { flex: 1; justify-content: center; padding: 0 8px; }
}

/* Page not found (artboard 5). The drawing sways and snips; it's seen rarely, so it can play. */
.not-found { max-width: 620px; margin: 0 auto; padding: 40px 20px 64px; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.not-found__art { max-width: 100%; height: auto; overflow: visible; }
.not-found__head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.not-found__head p { margin: 0; max-width: 30em; color: var(--ink-2); }
.not-found__title { margin: 0; font-size: 44px; line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; }
.not-found__path { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.not-found__miss { text-decoration: underline wavy var(--accent); text-underline-offset: 4px; }
.not-found__guess { width: 100%; padding: 18px 20px; display: flex; align-items: center; gap: 16px; text-align: left; }
.not-found__guess > .stack-2 { flex: 1; min-width: 0; }
.not-found__guess-title { font-weight: 700; color: var(--accent); }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 15px; }
.not-found__links a, .not-found__links .link-button { font-size: 15px; text-decoration: none; }
.not-found__one { width: 100%; padding-top: 22px; border-top: 1px dashed rgba(0, 0, 0, 0.14); text-align: left; }
.not-found__one form { margin: 0; }
.not-found__one-row { display: flex; gap: 10px; align-items: flex-end; }
.not-found__line { flex: 1; min-width: 0; min-height: 44px; field-sizing: content; padding: 11px 14px; border: none; border-radius: 12px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); resize: none; font: inherit; line-height: 1.4; color: var(--ink); }
.not-found__keep { min-height: 44px; border-radius: 980px; }
.not-found__kept { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 14px; background: #FFFFFF; }
.not-found__kept-line { font-size: 19px; line-height: 1.45; letter-spacing: -0.01em; }
.not-found__mark { padding: 0 2px; border-radius: 3px; background: var(--mark); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.not-found__kept-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.not-found__kept-links a { text-decoration: none; }
.nf-ink { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.nf-thin { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nf-hole { stroke: #8E8E93; stroke-dasharray: 6 7; fill: var(--garden); }
.nf-hand { font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; font-size: 27px; font-weight: 700; fill: var(--ink); }
.nf-strip { transform-box: fill-box; transform-origin: 0% 50%; animation: nf-sway 3.6s var(--ease-in-out) infinite; }
.nf-blade { transform-box: view-box; transform-origin: 266px 177px; animation: nf-snip 4s cubic-bezier(.6, 0, .3, 1) infinite; }
.nf-spark { transform-box: fill-box; transform-origin: center; animation: nf-twinkle 2.8s ease-in-out infinite; }
.not-found__art:hover .nf-blade { animation-duration: .5s; }
@keyframes nf-sway { 0%, 100% { transform: rotate(14deg) translateY(0); } 50% { transform: rotate(20deg) translateY(4px); } }
@keyframes nf-snip { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-9deg); } 90% { transform: rotate(0); } }
@keyframes nf-twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .nf-strip, .nf-blade, .nf-spark { animation: none; } .nf-strip { transform: rotate(16deg); } }

/* Writing passport (artboard 2d) */
.passport { max-width: 1040px; margin: 0 auto; padding: 44px 20px 72px; display: flex; flex-direction: column; gap: 24px; }
.passport__head { display: flex; flex-direction: column; gap: 6px; }
.passport__head .board__back { align-self: flex-start; }
.passport__title { margin: 0; font-size: 48px; line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.passport__book { display: flex; flex-wrap: wrap; padding: 10px; border-radius: 18px; background: #2F4A3A; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.06); }
.passport__page { flex: 1 1 300px; min-width: 0; padding: 26px 24px 22px; background: #FBF8F1; display: flex; flex-direction: column; gap: 18px; }
.passport__page--left { border-radius: 10px 3px 3px 10px; box-shadow: inset -12px 0 16px -14px rgba(60, 40, 10, 0.22); }
.passport__page--right { border-radius: 3px 10px 10px 3px; box-shadow: inset 12px 0 16px -14px rgba(60, 40, 10, 0.22); gap: 14px; }
.passport__label { font-size: 13px; font-weight: 600; color: #8A8276; }
.passport__label--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.passport__who { display: flex; align-items: flex-start; gap: 14px; }
.passport__who > .stack-6 { flex: 1; min-width: 0; }
.passport__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: #D1502F; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.passport__name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.passport__about { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; }
.passport__about[hidden] { display: none; }
.passport__about-row { display: flex; gap: 8px; }
.passport__about input { flex: 1; width: 100%; min-width: 0; min-height: 34px; padding: 0 10px; border: 1px solid #D2D2D7; border-radius: 8px; background: #FFFFFF; font: inherit; font-size: 15px; }
.passport__line { font-size: 22px; line-height: 1.35; letter-spacing: -0.01em; }
.passport__fresh { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #EEF7EF; color: var(--ink-2); }
.passport__fresh.is-stale { background: #F3EEE4; }
.passport__fresh form { margin: 0; }
.passport__stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px 10px; }
.passport__stamp { justify-self: center; width: 108px; height: 108px; padding: 8px; border: 2px solid #2F4A3A; border-radius: 50%; color: #2F4A3A; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; transform: rotate(-6deg); box-shadow: inset 0 0 0 3px #FBF8F1, inset 0 0 0 4.5px #2F4A3A; transition: box-shadow .14s ease, background-color .14s ease; }
.passport__stamp:nth-child(4n+2) { border-radius: 16px; transform: rotate(4deg); }
.passport__stamp:nth-child(4n+3) { border-radius: 50% / 42%; transform: rotate(-3deg); }
.passport__stamp:nth-child(4n+4) { border-radius: 16px; transform: rotate(7deg); }
.passport__stamp[aria-current="true"] { color: #2F4A3A; background: #FFFFFF; box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 4.5px #2F4A3A, 0 0 0 3px rgba(0, 113, 227, 0.35); }
.passport__stamp.is-hidden { opacity: 0.3; }
.passport__stamp-place { font-size: 13px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.passport__stamp-count { font-size: 22px; line-height: 1.1; font-weight: 800; }
.passport__stamp-unit { font-size: 13px; line-height: 1.1; }
.passport__detail { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px #EEE7DC; }
.passport__detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.passport__detail form { align-self: flex-start; }
/* Photo picker in the preview's Image row */
.photo-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; max-height: 240px; overflow-y: auto; }
.photo-picker__item { position: relative; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sub); cursor: pointer; }
.photo-picker__item input { position: absolute; opacity: 0; }
.photo-picker__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.photo-picker__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-picker__item:has(:checked) img { box-shadow: 0 0 0 2.5px var(--blue); }
.photo-picker__item:has(:focus-visible) img { outline: 2px solid var(--blue); outline-offset: 2px; }
.photo-picker__buttons { display: flex; align-items: center; gap: 14px; }

/* Library (artboard 4) */
.library { max-width: 1120px; margin: 0 auto; padding: 44px 20px 72px; display: flex; flex-direction: column; gap: 24px; }
.library__title { margin: 0; font-size: 48px; line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.library__drop { margin: 0; }
.library__drop-label { min-height: 120px; padding: 20px; border: 1.5px dashed #A8B7AC; border-radius: 16px; background: rgba(255, 255, 255, 0.6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink); text-align: center; cursor: pointer; }
.library__drop-label svg { color: var(--blue); }
.library__drop.is-over .library__drop-label, .library__drop:has(:focus-visible) .library__drop-label { border-color: var(--blue); background: #FFFFFF; }
.library__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.library .library__search { flex: 0 1 280px; }
.library__grid { margin: 0; padding: 8px 0 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 16px; }
.library__item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.library__thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #D9E2DB; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.library__name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ⌘K palette (artboard 1a). A key opens it, so it has no transition. */
.palette { top: 12vh; margin: 0 auto; width: calc(100% - 32px); max-width: 620px; background: rgba(250, 250, 252, 0.9); -webkit-backdrop-filter: saturate(180%) blur(40px); backdrop-filter: saturate(180%) blur(40px); border: 0.5px solid rgba(0, 0, 0, 0.1); border-radius: 18px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.06); font-size: 15px; line-height: 1.4; overflow: hidden; }
.palette::backdrop { background: rgba(0, 0, 0, 0.08); }
.palette__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 14px; border-bottom: 0.5px solid rgba(0, 0, 0, 0.1); }
.palette__head form { margin: 0; }
.palette__mark { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.palette__input { flex: 1; min-width: 0; min-height: 36px; border: none; outline: none; background: transparent; font: inherit; font-size: 20px; color: var(--ink); }
.palette__key, .palette kbd { min-width: 24px; height: 24px; padding: 0 6px; border: none; border-radius: 6px; background: linear-gradient(#FFFFFF, #F2F2F5); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 2px 0 rgba(0, 0, 0, 0.14); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1; color: #3A3A3C; }
.palette__key { color: var(--sub); }
.palette__list { max-height: min(400px, 60dvh); overflow-y: auto; padding: 4px 8px 10px; }
.palette__group { display: flex; flex-direction: column; padding-top: 8px; }
.palette__group[hidden], .palette__item[hidden], .palette__empty[hidden] { display: none; }
.palette__group-name { padding: 4px 10px 6px; font-size: 12px; font-weight: 600; color: var(--sub); }
.palette__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px 0 6px; border: none; border-radius: 10px; background: transparent; font: inherit; color: var(--ink); text-align: left; }
.palette__item[aria-selected="true"] { background: #0071E3; color: #FFFFFF; }
.palette__tile { flex: none; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.palette__item[aria-selected="true"] .palette__tile { background: rgba(255, 255, 255, 0.22) !important; }
.palette__label { flex: 1; min-width: 0; }
.palette__keys { display: inline-flex; gap: 4px; padding-bottom: 2px; }
.palette__item[aria-selected="true"] kbd { background: rgba(255, 255, 255, 0.2); box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.4), 0 2px 0 rgba(0, 0, 0, 0.25); color: #FFFFFF; }
.palette.is-holding .palette__item:not([aria-selected="true"]) kbd { background: #EAF3FF; color: var(--link); }
.palette__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 12px; text-align: center; font-size: 30px; }
.palette__empty strong, .palette__empty .sub { font-size: 15px; }
.palette__sounds { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 0; border: none; background: transparent; font: inherit; font-size: 13px; color: var(--sub); cursor: pointer; }
.palette__foot { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 16px; border-top: 0.5px solid rgba(0, 0, 0, 0.1); font-size: 13px; color: var(--sub); }
.palette__foot kbd { min-width: 18px; height: 18px; padding: 0 4px; margin-right: 3px; border-radius: 4px; font-size: 11px; }
.app-nav { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(118, 118, 128, 0.12); }
.app-nav a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; }
.app-nav a[aria-current="page"] { background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04); font-weight: 600; }
.voice-page { padding: 56px 20px 72px; display: flex; justify-content: center; }
.voice-page__column { flex: 0 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.voice-page__intro { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.voice-page__intro p { max-width: 500px; }
.voice-page__count { font-size: 15px; font-weight: 600; color: var(--link); }
.voice-page__title { font-size: 48px; line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.voice-page__wave {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-left: 14px; vertical-align: middle;
  border-radius: 14px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 6px 16px rgba(0, 0, 0, 0.1);
  transform: rotate(9deg); font-size: 30px; line-height: 1; letter-spacing: 0;
}
.progress { width: 280px; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; padding-top: 8px; }
.progress span.is-extra { background: rgba(0, 0, 0, 0.05); }
.progress span { height: 4px; border-radius: 2px; background: rgba(0, 0, 0, 0.1); }
.progress span.is-done { background: var(--blue); }
.voice-page__flash { padding: 12px 16px; border-radius: 12px; background: #EEF7EF; color: var(--good); font-weight: 600; }
.voice-page__flash--alert { background: #FFF1EC; color: #B42318; }
.voice-page__label { padding: 0 20px; font-size: 13px; font-weight: 400; color: var(--sub); }
.voice-card { margin: 0; background: #FFFFFF; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.04); padding: 20px; }
.voice-card__input { min-height: 44px; padding: 0 14px; border: none; border-radius: 10px; background: rgba(118, 118, 128, 0.12); font: inherit; color: var(--ink); }
.voice-card__button { width: 100%; min-height: 50px; border-radius: 12px; }
.voice-upload { padding: 0 20px; }
.voice-upload__link { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
@media (hover: hover) { .voice-upload__link:hover { color: #004C99; } }
.voice-upload__busy { display: none; }
.voice-upload[aria-busy="true"] .voice-upload__idle { display: none; }
.voice-upload[aria-busy="true"] .voice-upload__busy { display: inline-flex; }
.voice-upload input:focus-visible + .voice-upload__idle .voice-upload__link { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.voice-paste { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.voice-paste summary { cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.voice-paste[open] { padding: 0; }
.voice-paste[open] summary { padding: 0 20px; }
.voice-card__textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.voice-list { list-style: none; padding: 0 20px; overflow: hidden; }
.voice-list__item { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.voice-list__item + .voice-list__item { border-top: 0.5px solid #E5E5EA; }
.voice-list__tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #34C759; display: flex; align-items: center; justify-content: center; }
.voice-list__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* How you write */
.voice-page__column--wide { flex-basis: 620px; gap: 20px; }
.voice-page__count--good { color: var(--good); }
.btn--quiet { background: rgba(118, 118, 128, 0.12); color: var(--ink); }
@media (hover: hover) { .btn--quiet:hover { background: rgba(118, 118, 128, 0.2); color: var(--ink); } }
.trait-dots { display: inline-flex; gap: 6px; padding-top: 6px; }
.trait-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.15); transition: width .3s var(--ease), background-color .3s; }
.trait-dots span.is-current { width: 22px; background: var(--blue); }
.trait-dots span.is-kept { background: #34C759; }
.trait-dots span.is-dropped { background: #8E8E93; }
.voice-home { flex-basis: 680px; gap: 32px; }
.voice-home__intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 4px; }
.voice-home__intro p { margin: 0; }
.voice-home__add { gap: 6px; text-decoration: none; }
.voice-home__traits { padding: 0; overflow: hidden; }
.voice-home__trait { margin-left: 20px; padding: 16px 20px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.voice-home__trait + .voice-home__trait { border-top: 0.5px solid #E5E5EA; }
.voice-home__trait-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.voice-home__trait-title { margin: 0; font-size: 17px; font-weight: 600; }
.voice-home__bar { height: 4px; border-radius: 2px; background: #E5E5EA; overflow: hidden; }
.voice-home__bar span { display: block; height: 4px; border-radius: 2px; background: var(--blue); }
.voice-home__trait-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.voice-home__trait-foot p { margin: 0; }
.voice-home__trait-foot form { flex: none; margin: 0; }
.voice-home__dropped { margin: 0; }
.voice-home__dropped form { display: inline; }
.voice-home__from { margin: 0; padding: 0 4px; }
.voice-home__from form { display: inline; }
.voice-home__changes { align-items: flex-start; }
.voice-home__said { margin: 4px 0 0; padding: 14px 16px; border-radius: 10px; background: #F5F5F7; }
.trait-done { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.6); }
.trait-done__mark { flex: none; width: 22px; height: 22px; border-radius: 50%; color: #FFFFFF; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.trait-done__mark--kept { background: #34C759; }
.trait-done__mark--dropped { background: #8E8E93; }
.trait-done__title--dropped { text-decoration: line-through; color: var(--sub); }
.trait-card { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 16px; border-radius: 18px; animation: rise .45s var(--ease) both; }
.trait-card__title { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.trait-card__title--ink { color: var(--ink); }
.trait-card__quote { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid #E5E5EA; font-size: 22px; line-height: 1.45; letter-spacing: -0.01em; }
.trait-card__quote mark { background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 0 / 100% 100%; animation: mark .5s var(--ease) .45s both; }
.trait-card__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.trait-card__correction summary { cursor: pointer; }
.trait-card__correction textarea { width: 100%; margin-top: 8px; }
.trait-skip { align-self: center; }
.sample-yours { padding: 14px 16px; border-radius: 12px; background: #F2F8F3; }
.sample-yours__text { font-size: 22px; line-height: 1.4; letter-spacing: -0.01em; }
.measured { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--body); }

/* Presence */
.presence-column { flex-basis: 680px; gap: 32px; }
.presence-intro { padding: 0 4px; }
.presence-heading { padding: 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--accent); }
.presence-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.presence-row { padding: 0; }
.presence-row__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 13px 0; color: var(--ink); text-decoration: none; }
.presence-article__title { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.post-draft__text { font-size: 16px; line-height: 1.5; white-space: pre-line; }
.post-draft__checks { margin: 0; padding: 10px 14px 10px 30px; border-radius: 10px; background: #FFF6E5; color: #8A6A3E; font-size: 14px; }
.pill-button { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: none; border-radius: 980px; background: rgba(0, 113, 227, 0.1); color: var(--link); font-size: 14px; font-weight: 600; text-decoration: none; }
.post-preview__fold { display: flex; align-items: center; gap: 8px; margin: 0; color: #B25000; }
.post-preview__fold::before, .post-preview__fold::after { content: ""; flex: 1; border-top: 1.5px dashed #F0B37E; }
.post-preview__hidden { color: #8E8E93; }
.post-preview__facts { margin: 0; padding: 0; overflow: hidden; }
.post-preview__facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; }
.post-preview__facts > div + div { border-top: 0.5px solid #E5E5EA; }
.post-preview__facts dd { margin: 0; color: var(--sub); text-align: right; }
.post-preview__facts > div:has(.post-preview__note), .post-preview__facts > div:has(.picker) { flex-wrap: wrap; row-gap: 2px; }
.post-preview__facts .post-preview__note { flex-basis: 100%; text-align: left; }
.post-preview__facts .picker { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 0.5px solid #E5E5EA; flex-basis: 100%; text-align: left; color: var(--ink); }
.picker__toggle { font-size: inherit; }
.picker__label { font-size: 13px; font-weight: 600; color: var(--sub); }
.picker__hint { font-size: 12px; color: var(--sub); }
.picker__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.picker__day, .picker__chip { position: relative; cursor: pointer; }
.picker__day input, .picker__chip input { position: absolute; opacity: 0; pointer-events: none; }
.picker__day { min-height: 58px; border-radius: 10px; background: rgba(118, 118, 128, 0.12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.picker__dow { font-size: 12px; font-weight: 500; }
.picker__num { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.picker__dot { width: 5px; height: 5px; border-radius: 50%; background: #C93400; }
.picker__times { display: flex; flex-wrap: wrap; gap: 6px; }
.picker__chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; background: rgba(118, 118, 128, 0.12); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.picker__day:has(:checked), .picker__chip:has(:checked) { background: var(--blue); color: #FFFFFF; }
.picker__day:has(:checked) .picker__dot { background: #FFFFFF; }
.picker__day:has(:focus-visible), .picker__chip:has(:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.picker__chip:has(:disabled) { background: transparent; box-shadow: inset 0 0 0 1px #E5E5EA; color: #AEAEB2; text-decoration: line-through; cursor: not-allowed; }
.picker__time { align-self: flex-start; min-height: 36px; padding: 0 10px; border: 1px solid #D2D2D7; border-radius: 8px; background: #FFFFFF; font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; }
.picker__warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FFF4E5; font-size: 14px; line-height: 1.4; color: #7A3A00; }
.picker .link-button { align-self: flex-start; }
/* Every dialog: the preview, post editor, Publish, Copy for Substack and the Add your writing panel. */
dialog { width: calc(100% - 40px); max-height: calc(100dvh - 40px); padding: 0; border: none; border-radius: 20px; background: #FFFFFF; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); }
dialog::backdrop { background: rgba(0, 0, 0, 0.18); }
.editor { max-width: 760px; }
.editor form { margin: 0; display: flex; flex-direction: column; }
.editor__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 18px; border-bottom: 0.5px solid rgba(0, 0, 0, 0.08); }
.editor__cancel { justify-self: start; display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; color: var(--link); text-decoration: none; }
.editor__title { margin: 0; font-size: 15px; font-weight: 600; color: var(--sub); }
.editor__save { justify-self: end; min-height: 36px; padding: 0 16px; background: var(--blue); color: #FFFFFF; font-size: 15px; cursor: pointer; }
.editor__text { display: flex; flex-direction: column; gap: 22px; padding: 48px clamp(24px, 7vw, 64px) 36px; }
.editor__line { field-sizing: content; min-height: 1.55em; width: 100%; padding: 0; border: none; background: transparent; font: inherit; font-size: 22px; line-height: 1.55; color: var(--ink); resize: none; outline: none; caret-color: var(--blue); transition: opacity .2s; }
.editor__text:focus-within .editor__line:not(:focus) { opacity: 0.3; }
.editor__versions { display: flex; flex-direction: column; gap: 10px; padding: 0 clamp(24px, 7vw, 64px) 28px; }
.editor__versions p { margin: 0; }
.editor__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.editor__chip { min-height: 34px; padding: 0 14px; border: none; border-radius: 980px; background: rgba(118, 118, 128, 0.12); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.editor__chip[aria-checked=true] { background: var(--ink); color: #FFFFFF; font-weight: 600; }
.editor__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 18px; background: #F5F5F7; font-size: 13px; color: var(--sub); }
.drafts { flex-basis: 760px; gap: 24px; }
.drafts__title { margin: 0; padding: 0 4px; }
.drafts__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.drafts__new { gap: 6px; min-height: 40px; border-radius: 980px; padding: 0 18px; }
.drafts__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.drafts__tools .app-nav a { min-height: 32px; padding: 0 14px; }
.drafts__search { flex: 0 1 260px; display: flex; align-items: center; gap: 8px; min-height: 38px; margin: 0; padding: 0 12px; border-radius: 10px; background: rgba(118, 118, 128, 0.12); color: var(--sub); }
.drafts__search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.drafts__group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.drafts__list { padding: 0; overflow: hidden; }
.drafts__row { display: flex; align-items: center; gap: 16px; margin-left: 20px; padding: 14px 18px 14px 0; color: var(--ink); text-decoration: none; }
.drafts__item { display: flex; flex-wrap: wrap; align-items: center; }
.drafts__item + .drafts__item { border-top: 0.5px solid #E5E5EA; }
.drafts__item > .drafts__row { flex: 1; min-width: 0; }
.drafts__item > form { margin: 0; }
.drafts__delete { flex: none; width: 36px; height: 36px; margin-right: 12px; border: none; border-radius: 10px; background: transparent; color: #8E8E93; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; }
.drafts__delete:focus-visible, .drafts__delete[aria-expanded="true"] { opacity: 1; }
@media (hover: hover) { .drafts__item:hover .drafts__delete { opacity: 1; } }
@media (hover: hover) { .drafts__delete:hover { background: rgba(168, 51, 28, .1); color: var(--accent); } }
@media (hover: none) { .drafts__delete { opacity: 1; } }
.drafts__row.is-deleted { opacity: 0.55; }
.drafts__restore { margin-right: 16px; }
.drafts__confirm { flex-basis: 100%; margin: 0 16px 16px 20px !important; padding: 14px 16px; border-radius: 12px; background: #FBF1EE; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }
.drafts__confirm[hidden] { display: none; }
.drafts__confirm-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.drafts__confirm-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.drafts__confirm-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.drafts__confirm-delete { min-height: 36px; padding: 0 16px; border: none; border-radius: 980px; background: var(--accent); color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.drafts__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.drafts__ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drafts__status { flex: none; font-size: 14px; font-weight: 500; color: var(--link); }
.drafts__empty { padding: 56px clamp(24px, 6vw, 64px) 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.drafts__empty p { margin: 0; max-width: 420px; color: var(--ink-2); }
.drafts__empty form { margin-top: 10px; }
.drafts__empty-icon { color: var(--accent); }
.drafts__empty-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.write-page { padding: 36px 24px 64px; display: flex; justify-content: center; }
.write { flex: 0 1 740px; min-width: 0; background: #FFFFFF; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.04); padding: 32px clamp(28px, 7vw, 72px) 40px; display: flex; flex-direction: column; gap: 20px; }
.write__head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; }
.write__back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; margin-bottom: 8px; font-size: 15px; text-decoration: none; }
.write__meta { font-size: 15px; color: var(--sub); }
.write__title, .write__body { field-sizing: content; width: 100%; padding: 0; border: none; outline: none; background: transparent; resize: none; color: var(--ink); font: inherit; }
.write__title { min-height: 1.1em; font-size: 52px; line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.write__body { min-height: 12em; font-size: 19px; line-height: 1.6; caret-color: var(--blue); }
.write__text { position: relative; }
.write__mirror, .write__body { white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; }
.write__mirror { position: absolute; top: 0; left: 0; right: 0; font-size: 19px; line-height: 1.6; color: var(--ink); pointer-events: none; }
.write-page:not(.is-mirrored) .write__mirror { display: none; }
.is-mirrored .write__body { position: relative; display: block; color: transparent; }
.is-mirrored .write__body::selection { color: transparent; background: rgba(0, 113, 227, 0.2); }
.s-badge { position: absolute; left: -40px; margin-top: 4px; width: 22px; height: 22px; padding: 0; border: none; border-radius: 50%; background: #E5E5EA; color: var(--sub); font: 600 12px/1 -apple-system, BlinkMacSystemFont, sans-serif; display: inline-flex; align-items: center; justify-content: center; pointer-events: auto; cursor: pointer; }
.write__mirror .s.is-open { background: var(--mark); border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.write__mirror .s.is-open .s-badge { background: var(--blue); color: #FFFFFF; }
.versions { flex: 0 1 360px; min-width: 300px; align-self: flex-start; position: sticky; top: 97px; max-height: calc(100dvh - 97px - 36px); overflow-y: auto; margin: 0 0 0 24px; padding: 6px 0 16px; border-radius: 16px; background: #F5F5F7; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.06); display: flex; flex-direction: column; }
.versions[hidden] { display: none; }
.versions__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.versions__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; color: var(--accent); }
.versions__note { margin: 0; padding: 0 20px 12px; }
.versions__list { margin: 0 16px 10px; background: #FFFFFF; border-radius: 12px; overflow: hidden; }
.versions__item { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 12px 40px 12px 16px; border: none; background: #FFFFFF; color: var(--ink); font: inherit; text-align: left; cursor: pointer; position: relative; }
.versions__item + .versions__item { border-top: 0.5px solid #E5E5EA; }
.versions__item[aria-checked="true"]::after { content: "✓"; position: absolute; right: 16px; top: 12px; color: var(--blue); font-weight: 700; }
.versions__text { font-size: 15px; line-height: 1.4; }
.cuttings__item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 16px; }
.cuttings__item + .cuttings__item { border-top: 0.5px solid #E5E5EA; }
.cuttings__text { font-size: 15px; line-height: 1.4; }
.cuttings__meta { font-size: 13px; color: var(--sub); }
.cuttings__item .link-button { font-size: 14px; font-weight: 600; }
.cuttings__actions { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.cuttings__actions .pill-button { min-height: 32px; padding: 0 12px; }
.cuttings__actions a { text-decoration: none; font-weight: 600; }
.cuttings__item .cuttings__delete { margin-left: auto; color: var(--sub); font-weight: 500; }
.cuttings__error { color: var(--warn); }
.cuttings__channel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 0 20px 14px; }
.cuttings__channel[hidden] { display: none; }
.cuttings__segments { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(118, 118, 128, 0.12); }
.cuttings__segment { position: relative; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.cuttings__segment input { position: absolute; opacity: 0; pointer-events: none; }
.cuttings__segment:has(:checked) { background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04); font-weight: 600; }
.cuttings__segment:has(:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.toast[hidden] { display: none; }
.write__secondary { min-height: 40px; padding: 0 18px; font-size: 15px; }
.drafts__new-buttons { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.drafts__new-buttons form { margin: 0; }
.drafts__new-buttons .pill-button { min-height: 40px; padding: 0 16px; font-size: 15px; }
.write__modes { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.write__mode { padding: 3px; }
.write__mode form { margin: 0; }
.write__mode > span, .write__mode-button { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: none; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.write__mode > span[aria-current] { background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04); font-weight: 600; }
.tweeet__compose { display: flex; gap: 16px; padding-top: 12px; }
.tweeet__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #D1502F; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; }
.tweeet__text { flex: 1; min-width: 0; min-height: 5lh; field-sizing: content; padding: 8px 0 0; border: none; outline: none; resize: none; background: transparent; font: inherit; font-size: 26px; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); }
.tweeet__text::placeholder { color: #C7C7CC; }
.tweeet__count { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--sub); }
.tweeet__count svg { flex: none; }
.tweeet__count circle { transition: stroke-dashoffset .2s ease; }
.tweeet__send { margin: 16px 0 0; padding-top: 18px; border-top: 1px solid #EEEEF1; display: flex; flex-direction: column; gap: 16px; }
.tweeet__channels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tweeet__chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 8px; border-radius: 980px; background: rgba(118, 118, 128, 0.12); font-size: 14px; font-weight: 500; cursor: pointer; }
.tweeet__chip input { position: absolute; opacity: 0; pointer-events: none; }
.tweeet__dot { width: 18px; height: 18px; border-radius: 50%; background: #C7C7CC; }
.tweeet__chip:has(:checked) { background: #FFFFFF; box-shadow: 0 0 0 1.5px var(--blue); }
.tweeet__chip:has(:checked) .tweeet__dot { background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'><path d='M5 12l5 5L20 7'/></svg>") center / 9px no-repeat; }
.tweeet__chip:has(:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.tweeet__note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #FFF6EC; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tweeet__note[hidden] { display: none; }
.tweeet__bang { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #C93400; color: #FFFFFF; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tweeet__foot { margin-top: 0; padding-top: 0; border-top: none; }
.tweeet__go { border-radius: 980px; min-height: 40px; padding: 0 18px; }
.tweeet__go:disabled { background: #A1C6F0; cursor: not-allowed; }
.tweeet__buttons { display: flex; align-items: center; gap: 14px; }
.tweeet__preview { font-size: 15px; text-decoration: none; }
.tweeet__preview[hidden] { display: none; }
.publish { max-width: 1000px; border-radius: 16px; }
.publish form { margin: 0; }
.publish__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 20px; }
.publish__head p { margin: 0; }
.publish__title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.025em; }
.publish__dests { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; padding: 0 28px 22px; border-bottom: 1px solid #EEEEF1; }
.publish__dest { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 12px; background: #F5F5F7; color: var(--ink); text-decoration: none; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06); }
.publish__dest[aria-current] { background: #FFFFFF; box-shadow: 0 0 0 2px var(--blue); }
.publish__dest-name { display: flex; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 700; }
.publish__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.publish__edit { padding: 24px 28px; border-right: 1px solid #EEEEF1; display: flex; flex-direction: column; gap: 18px; }
.publish__edit p { margin: 0; }
.publish__label { font-size: 13px; font-weight: 700; color: var(--accent); }
.publish__muted { color: var(--ink-2); }
.publish__opening { width: 100%; padding: 10px 12px; border: none; border-radius: 10px; background: rgba(118, 118, 128, 0.12); resize: none; field-sizing: content; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink); outline: none; }
.publish__fold { color: var(--good); }
.publish__fold.is-warn, .publish__edit .is-warn { color: #C93400; }
.publish__change { display: flex; flex-direction: column; gap: 1px; padding: 10px 0; border-bottom: 1px solid #F2F2F5; }
.publish__change--toggle { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 12px; cursor: pointer; }
.publish__change--toggle > span { display: flex; flex-direction: column; gap: 1px; }
.publish__switch { flex: none; appearance: none; position: relative; width: 44px; height: 26px; margin: 2px 0 0; border-radius: 980px; background: rgba(120, 120, 128, 0.16); cursor: pointer; transition: background .2s; }
.publish__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: left .2s var(--ease); }
.publish__switch:checked { background: #34C759; }
.publish__switch:checked::after { left: 20px; }
.publish__switch:disabled { opacity: .5; cursor: not-allowed; }
.publish__preview { padding: 24px 28px; background: #F5F5F7; display: flex; flex-direction: column; gap: 14px; }
.publish__preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.publish__preview-head .app-nav button { min-height: 28px; padding: 0 12px; border: none; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.publish__preview-head .app-nav [aria-selected="true"] { background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.publish__card { align-self: center; width: 100%; background: #FFFFFF; border-radius: 10px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05); overflow: hidden; }
.publish__card.is-phone { max-width: 340px; }
.publish__author { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.publish__text { padding: 0 16px 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.publish__more { padding: 0; border: none; background: transparent; font: inherit; font-size: 14px; color: var(--sub); cursor: pointer; }
.publish__more[hidden] { display: none; }
.publish__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 28px; border-top: 1px solid #EEEEF1; }
.publish__foot-buttons { display: flex; align-items: center; gap: 14px; }
.publish__foot-buttons a { text-decoration: none; }
.publish__foot .btn { border-radius: 980px; min-height: 40px; padding: 0 18px; }
.publish__done { padding: 24px 28px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.publish__done p { margin: 0; }
.publish__go { border-radius: 980px; min-height: 40px; padding: 0 18px; }
.substack { max-width: 640px; }
.substack__head { border-bottom: 1px solid #EEEEF1; }
.substack__steps { margin: 0; padding: 8px 28px 4px; list-style: none; display: flex; flex-direction: column; }
.substack__step { display: flex; gap: 16px; padding: 18px 0; }
.substack__step + .substack__step { border-top: 1px solid #EEEEF1; }
.substack__num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.substack__num.is-done { background: #34C759; }
.substack__row { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.substack__row a { text-decoration: none; }
.substack__body { flex: 1; min-width: 0; }
.substack__part { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #E5E5EA; border-radius: 10px; }
.substack__part-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.substack__label { font-size: 12px; font-weight: 600; color: var(--sub); }
.substack__value { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.substack__input { width: 100%; padding: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.substack__part .pill-button { flex: none; min-width: 92px; justify-content: center; }
.substack__part .pill-button.is-copied { background: #EEF7EF; color: var(--good); }
.substack__published { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 10px; background: #EEF7EF; }
.substack__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.substack__buttons a:not(.btn) { text-decoration: none; }
.substack__buttons form { margin: 0; }
@media (max-width: 760px) { .publish__grid { grid-template-columns: minmax(0, 1fr); } .publish__edit { border-right: none; } }
.versions__meta { font-size: 13px; color: var(--sub); }
@media (max-width: 860px) { .write-page { flex-wrap: wrap; } .versions { position: static; max-height: none; margin: 24px 0 0; flex-basis: 100%; } }
.is-focus .write__mirror .s { opacity: 0.3; }
.is-focus .write__mirror .s.is-current { opacity: 1; }
.write__title::placeholder, .write__body::placeholder { color: #C7C7CC; }
.write__keys { display: inline-flex; align-items: center; gap: 4px; }
.app-header, .write__back, .write__meta, .write__foot { transition: opacity .6s ease; }
.is-writing .app-header { opacity: 0.14; }
.is-writing .write__back, .is-writing .write__meta, .is-writing .write__foot { opacity: 0.35; }
.write__quiet-hint, .write__focus-hint { position: fixed; z-index: 6; margin: 0; font-size: 13px; color: var(--sub); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.write__quiet-hint { left: 50%; bottom: 28px; transform: translateX(-50%); padding: 8px 14px; border-radius: 980px; background: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.is-writing:not(.is-focus) .write__quiet-hint { opacity: 1; }
.write__focus-hint { top: 16px; right: 20px; display: inline-flex; align-items: center; gap: 8px; }
.write__focus-hint span { width: 8px; height: 8px; border-radius: 50%; background: #34C759; }
.is-focus .write__focus-hint { opacity: 1; }
.is-focus .app-header { display: none; }
.is-focus .write__back, .is-focus .write__meta, .is-focus .write__foot { opacity: 0; pointer-events: none; }
.is-focus .write__title { opacity: 0.22; }
.is-focus .write-page { padding-top: 0; }
.is-focus .write { border-radius: 0; padding-top: 120px; min-height: 100dvh; }
/* Focus mode's view transition: the title and text glide, and everything else crossfades. Named elements keep their
   size between states, so their snapshots move without stretching. */
.write-page .write__title { view-transition-name: write-title; }
.write-page .write__text { view-transition-name: write-text; }
::view-transition-group(write-title), ::view-transition-group(write-text) { animation-duration: 240ms; animation-timing-function: var(--ease-in-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: var(--ease-out); }
.write__sound { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 9px 0 7px; border: none; border-radius: 980px; background: rgba(118, 118, 128, 0.12); font: inherit; font-size: 13px; color: var(--sub); vertical-align: middle; cursor: pointer; }
.write__sound[aria-pressed="true"] { background: rgba(0, 113, 227, 0.1); color: var(--link); }
.write__foot-end { display: inline-flex; align-items: center; gap: 16px; }
.write__foot form, .write__done form { margin: 0; }
.write__finish { min-height: 36px; padding: 0 16px; border: 1px solid #D2D2D7; border-radius: 980px; background: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.write__done { margin-top: 28px; padding-top: 18px; border-top: 1px solid #EEEEF1; display: flex; flex-direction: column; gap: 18px; font-size: 15px; line-height: 1.45; }
.write__done-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--good); }
.write__done-title { font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.write__done-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--sub); }
.write__done-stats strong { display: block; font-size: 20px; font-weight: 700; color: var(--ink); }
.write__done-next { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 12px; background: #F5F5F7; color: var(--ink-2); }
.write__done-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.write__done-buttons .btn { border-radius: 980px; min-height: 40px; }
.write__foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid #EEEEF1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.add-panel { position: fixed; inset: 10px 10px auto auto; width: 440px; max-width: calc(100% - 20px); max-height: calc(100dvh - 20px); margin: 0; border-radius: 16px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2); font-size: 16px; }
.add-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 18px; border-bottom: 1px solid #E5E5EA; }
.add-panel__head form { margin: 0; }
.add-panel__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.025em; }
.add-panel__close { width: 32px; height: 32px; border: none; border-radius: 50%; background: #EEEEF1; color: var(--sub); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.add-panel__body { padding: 24px; display: flex; flex-direction: column; gap: 32px; }
.add-panel__body form { margin: 0; }
.add-panel__row { display: flex; gap: 8px; }
.add-panel__input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #D2D2D7; border-radius: 8px; font: inherit; font-size: 15px; }
.add-panel__add { min-height: 44px; border-radius: 8px; }
.add-panel__drop { position: relative; min-height: 104px; padding: 18px; border: 1.5px dashed #C7C7CC; border-radius: 10px; background: #FAFAFB; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.add-panel__drop:focus-within { border-color: var(--blue); }
.add-panel__file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.add-panel__drop[aria-busy="true"] .voice-upload__idle { display: none; }
.add-panel__drop[aria-busy="true"] .voice-upload__busy { display: inline-flex; }
.add-panel__learn-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.add-panel__learn-head .presence-heading { padding: 0; }
.add-panel__pieces { margin: 0; padding: 0; list-style: none; }
.add-panel__piece { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid #EEEEF1; cursor: pointer; }
.add-panel__piece input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.add-panel__piece.is-off .voice-list__text { opacity: 0.5; }
.board { padding: 24px 20px 40px; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.board__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 0 4px; }
.board__heading { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.board__heading p { margin: 0; }
.board__pace { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 6px; }
.segmented__form { display: contents; }
.board__back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.board__title { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.board__progress { flex: 0 1 400px; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.board__progress-text { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.board__progress-text strong { font-weight: 600; }
.board__segments { display: flex; gap: 3px; }
.board__segments span { flex: 1; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.1); }
.board__segments .is-in-buffer { background: #34C759; }
.board__segments .is-skipped { background: #C7C7CC; }
.board__segments .is-open.is-current { background: rgba(0, 113, 227, 0.55); }
.board__progress form { align-self: flex-end; margin: 0; }
.board__grid { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 24px; align-items: start; }
.board__left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.board__article { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.board__article-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--sub); }
.board__article-meta a { text-decoration: none; }
.board__article-title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--accent); }
.board__photo { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none; }
.board__photo img { width: 40px; height: 30px; object-fit: cover; border-radius: 6px; }
.board__draft { max-height: 220px; overflow-y: auto; margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.board__draft p { margin: 0 0 10px; }
.board__draft ::selection { background: var(--mark); color: var(--ink); }
.board__pick { margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.board__pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.board__pick .pill-button { gap: 6px; }
.board__pick .pill-button:disabled { opacity: 0.5; cursor: not-allowed; }
.board__picked { margin-top: 6px; color: var(--good); font-weight: 600; }
.board__inline-form { display: inline; margin: 0; }
.board__angles { display: flex; flex-wrap: wrap; gap: 6px; }
.board__angle { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 980px; background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); font-size: 13px; font-weight: 600; text-decoration: none; }
.board__angle span { font-weight: 500; opacity: .7; }
.board__angle[aria-current] { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.board__month { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.board__week { display: grid; grid-template-columns: 50px repeat(var(--days), minmax(0, 1fr)); gap: 6px; }
.board__week--head { font-size: 12px; font-weight: 600; color: var(--sub); }
.board__week-label { padding-top: 6px; font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.board__day { min-height: 66px; padding: 5px; border-radius: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.board__day.is-in-range { background: #F5F5F7; }
.board__day-num { padding-left: 2px; font-size: 11px; color: #AEAEB2; font-variant-numeric: tabular-nums; }
.board__day.has-posts .board__day-num { color: var(--ink); font-weight: 600; }
.board__chip { display: block; min-height: 24px; padding: 0 4px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 24px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board__chip.is-open { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px #C7C7CC; }
.board__chip.is-in-buffer { background: #DDF2E2; color: #1F6F35; }
.board__chip.is-skipped { background: #F2F2F4; color: #8E8E93; box-shadow: inset 0 0 0 1px #E5E5EA; text-decoration: line-through; }
@media (hover: hover) and (pointer: fine) { .board__chip:hover { box-shadow: inset 0 0 0 1.5px var(--blue); } }
.board__chip[aria-current] { background: var(--blue); color: #FFFFFF; box-shadow: 0 2px 8px rgba(0, 113, 227, 0.35); text-decoration: none; }
.board__chip.is-dim:not([aria-current]) { opacity: 0.3; }
.board__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 6px 2px 0; font-size: 12px; color: var(--sub); }
.board__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.board__legend > span > span { width: 10px; height: 10px; border-radius: 3px; }
.board__legend .is-open { background: #FFFFFF; box-shadow: inset 0 0 0 1px #C7C7CC; }
.board__legend .is-in-buffer { background: #DDF2E2; }
.board__legend .is-skipped { background: #F2F2F4; box-shadow: inset 0 0 0 1px #E5E5EA; }
.board__right { display: flex; flex-direction: column; gap: 12px; min-width: 0; position: sticky; top: 76px; }
.board__post, .board__set { background: #FFFFFF; border-radius: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06); }
.board__post { padding: 26px 28px 20px; display: flex; flex-direction: column; gap: 16px; }
.board__post-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.board__post-angle { font-weight: 700; color: var(--accent); }
.board__post-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 15px; }
.board__post-meta strong { font-weight: 600; }
.board__post-meta .tone-good { color: var(--good); }
.board__post-text { color: var(--ink); text-decoration: none; white-space: pre-line; font-size: 21px; line-height: 1.45; letter-spacing: -0.01em; }
.board__post-text.is-skipped { opacity: 0.45; }
.board__post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 4px; font-size: 15px; }
.board__post-actions form { margin: 0; }
.board__post-actions .btn { min-height: 44px; border-radius: 980px; padding: 0 22px; }
.board__post-actions a { text-decoration: none; }
.board__spacer { flex: 1; }
.board__post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 0.5px solid #E5E5EA; }
.board__nav { display: flex; gap: 4px; }
.board__nav a, .board__nav .is-off { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border-radius: 10px; font-size: 14px; text-decoration: none; }
.board__nav .is-off { color: #AEAEB2; }
.board__hint { margin: 0; padding: 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; background: #FFFFFF; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .12); font: 600 11px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--sub); }
.board__set { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.board__set-mark { width: 48px; height: 48px; border-radius: 50%; background: #EEF7EF; color: var(--good); font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.board__set-title { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.board__set-links { display: flex; align-items: center; gap: 16px; padding-top: 6px; }
.board__set-links a:not(.btn) { text-decoration: none; }
.board__set-links .btn { border-radius: 980px; }
.board__set-links form { display: contents; }
.board__keep { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-top: 14px; border-top: 0.5px solid #E5E5EA; }
.board__keep-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.board__keep-row + .board__keep-row { border-top: 0.5px solid #E5E5EA; }
.board__keep-text { display: flex; flex-direction: column; min-width: 0; }
.board__keep-text .strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__keep-row form, .board__keep-row .btn { flex: none; }
@media (max-width: 860px) {
  .board__grid { grid-template-columns: minmax(0, 1fr); }
  .board__right { position: static; order: -1; }
}
.toast { position: fixed; z-index: 10; left: 50%; bottom: 96px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 10px 10px 10px 16px; border-radius: 14px; background: rgba(30, 30, 32, 0.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #FFFFFF; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.toast form { margin: 0; }
.toast__button { min-height: 32px; padding: 0 12px; border: none; border-radius: 8px; background: rgba(255, 255, 255, 0.16); color: #FFFFFF; font-size: 14px; font-weight: 600; }
.preview { max-width: 920px; background: #F5F5F7; }
.preview__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 0.5px solid rgba(0, 0, 0, 0.1); background: #FFFFFF; }
.preview__head form { margin: 0; }
.preview__title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.preview__body { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px; }
.preview__post { flex: 1 1 400px; min-width: 0; max-width: 440px; margin: 0 auto; align-self: flex-start; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); font-size: 15px; line-height: 1.45; }
.preview__post .post-draft__text { font-size: 15px; }
.preview__photo { width: 100%; border-radius: 8px; }
.preview__posts { flex: 1 1 400px; min-width: 0; max-width: 440px; margin: 0 auto; align-self: flex-start; display: flex; flex-direction: column; gap: 12px; }
.preview__posts .preview__post { flex: none; max-width: none; margin: 0; }
.preview__author { display: flex; align-items: center; gap: 10px; }
.preview__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #D1502F; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.preview__byline { display: flex; flex-direction: column; line-height: 1.25; }
.preview__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.preview__side .post-preview__facts > div { padding: 12px 16px; }
.preview__note { margin: 0; padding: 0 4px; font-size: 15px; color: var(--ink-2); }
.preview__checks-title { margin: 0; padding: 0 4px; font-size: 13px; font-weight: 700; color: var(--accent); }
.preview__checks { margin: 0; padding: 0; list-style: none; overflow: hidden; }
.preview__checks li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; font-size: 14px; line-height: 1.4; }
.preview__checks li + li { border-top: 0.5px solid #E5E5EA; }
.preview__dot { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #34C759; color: #FFFFFF; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.preview__dot--warn { background: #C93400; }
.preview__actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.preview__actions form { margin: 0; }
.preview__actions .btn { width: 100%; min-height: 50px; border-radius: 12px; }
.preview__more .preview__take-out { color: #C93400; }
.picker .btn { align-self: flex-start; }
.preview__more { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 4px 20px; }
.preview__more .link-button, .preview__more summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.preview__more details[open] { flex-basis: 100%; }

/* Privacy */
.brand--link { color: var(--ink); text-decoration: none; }
.prose { max-width: 720px; padding-top: 48px; padding-bottom: 64px; }
.prose h1 { font-size: 48px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.prose h2 { margin: 40px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.prose p, .prose ul { margin: 14px 0 0; color: var(--body); }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose code { font-size: 15px; }

.site-footer { padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint); }
.site-footer a { color: var(--faint); }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes highlight { from { background-size: 0% 62%; } to { background-size: 100% 62%; } }
@keyframes mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes fade { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
@keyframes draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }

.in { animation: rise .6s var(--ease) var(--delay, 0s) both; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  .draw { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
}
/* Motion (lode/ui/motion.md) */
/* Pressing anything gives way a little. */
.pill-button, .board__chip, .board__angle, .versions__item, .drafts__delete, .add-panel__close, .toast__button, .tweeet__chip,
.picker__day, .picker__chip, .editor__chip, .write__finish, .write__mode-button, .editor__save { transition: transform 160ms var(--ease-out); }
.pill-button:active, .board__chip:active, .board__angle:active, .versions__item:active, .drafts__delete:active, .add-panel__close:active,
.toast__button:active, .tweeet__chip:active, .picker__day:active, .picker__chip:active, .editor__chip:active, .write__finish:active,
.write__mode-button:active, .editor__save:active { transform: scale(var(--press)); }
/* Dialogs land in the middle of the screen: in 220 ms, out in 150 ms. */
.preview, .editor, .publish, .upgrade {
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), overlay 150ms allow-discrete, display 150ms allow-discrete;
}
.preview[open], .editor[open], .publish[open], .upgrade[open] { transition-duration: 220ms; }
@starting-style { .preview[open], .editor[open], .publish[open], .upgrade[open] { opacity: 0; transform: scale(var(--pop)); } }
.preview:not([open]), .editor:not([open]), .publish:not([open]), .upgrade:not([open]) { opacity: 0; transform: scale(var(--pop)); }
.preview::backdrop, .editor::backdrop, .publish::backdrop, .upgrade::backdrop, .add-panel::backdrop {
  transition: opacity 150ms var(--ease-out), overlay 150ms allow-discrete, display 150ms allow-discrete;
}
@starting-style { .preview[open]::backdrop, .editor[open]::backdrop, .publish[open]::backdrop, .add-panel[open]::backdrop { opacity: 0; } }
.preview:not([open])::backdrop, .editor:not([open])::backdrop, .publish:not([open])::backdrop, .upgrade:not([open])::backdrop, .add-panel:not([open])::backdrop { opacity: 0; }
/* Sheets and panels come from the right edge: in 260 ms on the drawer curve, out in 180 ms. */
.add-panel, .versions {
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), overlay 180ms allow-discrete, display 180ms allow-discrete;
}
.add-panel[open], .versions:not([hidden]) { transition-duration: 260ms; transition-timing-function: var(--ease-drawer); }
@starting-style { .add-panel[open], .versions:not([hidden]) { opacity: 0; transform: translateX(var(--shift)); } }
.add-panel:not([open]), .versions[hidden] { opacity: 0; transform: translateX(var(--shift)); }
/* Toasts rise from the bottom and leave the way they came. */
.toast { transition: opacity 160ms var(--ease-out), translate 160ms var(--ease-out), display 160ms allow-discrete; }
.toast:not([hidden]):not(.is-leaving) { transition-duration: 240ms; }
@starting-style { .toast:not([hidden]) { opacity: 0; translate: 0 var(--rise); } }
.toast[hidden], .toast.is-leaving { opacity: 0; translate: 0 var(--rise); }
/* Things that open in place drop in a few pixels, without animating the layout around them. */
.picker, .drafts__confirm, .tweeet__note { transition: opacity 160ms var(--ease-out), translate 160ms var(--ease-out), display 160ms allow-discrete; }
@starting-style { .picker:not([hidden]), .drafts__confirm:not([hidden]), .tweeet__note:not([hidden]) { opacity: 0; translate: 0 calc(var(--rise) / -2); } }
/* Rare moments can take a little longer. */
.write__done { transition: opacity 300ms var(--ease-out), translate 300ms var(--ease-out); }
@starting-style { .write__done { opacity: 0; translate: 0 var(--rise); } }
/* After Send or Skip, the next post crossfades in. J and K stay instant. */
.board__post.is-arriving { transition: opacity 120ms var(--ease-out), filter 120ms var(--ease-out); }
@starting-style { .board__post.is-arriving { opacity: 0; filter: blur(2px); } }
/* Focus mode: the caret moving between sentences fades. Turning focus on or off with a key doesn't. */
.write__mirror .s { transition: opacity 300ms var(--ease-out); }
.is-switching *, .is-switching *::before, .is-switching *::after { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  :root { --press: 1; --pop: 1; --rise: 0px; --shift: 0px; }
  *, *::before, *::after { animation: none !important; }
}

/* Phones */
@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  .h2--large { font-size: 36px; }
  .editor-intro { padding-top: 0; }
  .demo__found { align-items: flex-start; }
}
