/* Marketing site. Plain CSS, no framework. Palette "Forest", type Fraunces + Inter
   (self-hosted from app/assets/fonts, no Google Fonts request).
   Light and dark themes: every colour is a token below. "System" follows the device;
   the picker in the header sets data-theme="light" or "dark" on <html> (theme_controller.js). */

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin-wght-normal-5e6b0c47.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fraunces-latin-wght-normal-c0c7953a.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fraunces-latin-wght-italic-37e55b48.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #FAF8F3;
  --paper-2: #F1EDE3;
  --ink: #1C1F1D;
  --ink-2: #4A504C;
  --line: #DDD7C9;
  --green: #1F5C46;
  --green-dark: #143D2F;
  --green-soft: #E3EDE7;
  --highlight: #F4D35E;
  --white: #FFFFFF;
  --card: #FFFFFF;
  --on-green: #FFFFFF;
  --note-bg: #FFF9E3;
  --note-ink: #7A6213;
  --danger: #B5502E;
  --danger-soft: #FBEDE6;
  --band-bg: #143D2F;
  --band-ink: #EEF2EE;
  --band-muted: #C6D3CB;
  --band-head: #FFFFFF;
  --band-accent: #F4D35E;
  --shadow: rgba(28, 31, 29, 0.35);
  color-scheme: light;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121513;
    --paper-2: #1A1E1C;
    --card: #1D2220;
    --ink: #ECEAE3;
    --ink-2: #A8AFAA;
    --line: #303734;
    --green: #7CC4A0;
    --green-dark: #5FA584;
    --green-soft: #1E3029;
    --on-green: #0E1A15;
    --highlight: #8C7524;
    --note-bg: #26231A;
    --note-ink: #E2C760;
    --danger: #E58A6A;
    --danger-soft: #3A2119;
    --band-bg: #17271F;
    --band-ink: #E3EAE5;
    --band-muted: #A9BBB0;
    --band-head: #FFFFFF;
    --band-accent: #F4D35E;
    --shadow: rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121513;
  --paper-2: #1A1E1C;
  --card: #1D2220;
  --ink: #ECEAE3;
  --ink-2: #A8AFAA;
  --line: #303734;
  --green: #7CC4A0;
  --green-dark: #5FA584;
  --green-soft: #1E3029;
  --on-green: #0E1A15;
  --highlight: #8C7524;
  --note-bg: #26231A;
  --note-ink: #E2C760;
  --danger: #E58A6A;
  --danger-soft: #3A2119;
  --band-bg: #17271F;
  --band-ink: #E3EAE5;
  --band-muted: #A9BBB0;
  --band-head: #FFFFFF;
  --band-accent: #F4D35E;
  --shadow: rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--green); }
img, svg, iframe { max-width: 100%; }

/* .wrap owns the side gutter for every page. Classes used next to it set
   vertical spacing only (padding-block), never the padding shorthand. */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.wordmark svg { width: 28px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 0.95rem; flex-wrap: wrap; }
.site-nav a, .site-nav button { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.site-nav form { display: inline; margin: 0; }
.site-nav button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.theme { display: inline-flex; justify-self: start; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--card); }
.theme button { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font: inherit; font-size: 14px; }
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--green-soft); color: var(--green); }
.theme svg { width: 15px; height: 15px; }
.lang a, .lang strong { font-size: 0.85rem; }
.lang strong { color: var(--green); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 0; font-size: 0.9rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-2); }

.flash { background: var(--green-soft); border: 1px solid var(--green); border-radius: var(--radius); padding: 12px 16px; margin: 24px 0 0; }
.flash.alert { background: var(--danger-soft); border-color: var(--danger); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font: 600 1rem/1 var(--sans);
  text-decoration: none; border: 1.5px solid var(--green); cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-secondary { background: transparent; color: var(--green); }
.btn-secondary:hover { background: var(--green-soft); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 20px; }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 40em; margin-bottom: 40px; }

/* Hero */
.hero { padding-top: 56px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--green); border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--green);
}
.badge svg { width: 18px; height: 18px; }
.badge svg .tick { stroke: var(--paper); }
.founder { font-size: 0.9rem; color: var(--ink-2); margin-top: 8px; }

/* Review visual */
.review-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -24px var(--shadow); padding: 24px; position: relative; margin: 0;
}
.review-card header { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.review-card header strong { font-family: var(--serif); font-size: 1.05rem; }
.review-card header span { font-size: 0.8rem; color: var(--ink-2); }
.review-card .doc { font-family: var(--serif); font-size: 1rem; line-height: 1.7; }
.review-card mark { background: linear-gradient(transparent 55%, var(--highlight) 55%); color: inherit; padding: 0 2px; }
.notes { display: grid; gap: 10px; margin-top: 18px; }
.note { border-left: 3px solid var(--highlight); background: var(--note-bg); padding: 10px 12px; font-size: 0.875rem; border-radius: 0 8px 8px 0; }
.note b { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--note-ink); margin-bottom: 2px; }

/* Grids */
.cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.five { grid-template-columns: repeat(5, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 0.35em; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

.steps { display: grid; gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--green); padding-top: 16px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.6rem; color: var(--green); display: block; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 0.95rem; }

.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231F5C46' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Video (click to load: no Vimeo request until the visitor asks) */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--band-bg); border-radius: 14px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(circle at 30% 20%, #2B7359, var(--green-dark)); color: var(--white); border: 0; cursor: pointer; font: inherit; padding: 16px; text-align: center;
}
.video-poster .play { width: 72px; height: 72px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.video-poster .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-poster small { opacity: 0.75; font-size: 0.8rem; max-width: 32em; }

/* Private KI band */
.dark { background: var(--band-bg); color: var(--band-ink); }
.dark h2, .dark h3 { color: var(--band-head); }
.dark .eyebrow { color: var(--band-accent); }
.dark .lead, .dark .muted { color: var(--band-muted); }
.dark .btn-primary { background: var(--band-head); border-color: var(--band-head); color: var(--band-bg); }
.dark .btn-primary:hover { background: var(--band-ink); border-color: var(--band-ink); }
.path { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0 0 48px; }
@media (min-width: 900px) { .path { grid-template-columns: repeat(3, 1fr); } }
.path li { border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); padding: 20px; background: rgba(255, 255, 255, 0.04); }
.path li b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--band-head); margin-bottom: 4px; }
.path li span { font-size: 0.92rem; color: var(--band-muted); }
.who { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.who th, .who td { text-align: left; padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); vertical-align: top; }
.who th { font-weight: 600; color: var(--band-head); }
.who td:last-child { color: var(--band-muted); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* Call to action */
.cta { text-align: center; }
.cta .lead { margin-left: auto; margin-right: auto; }

/* Pricing */
.plans { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--green); }
.plan h3 { font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); }
.plan .price { font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; margin: 4px 0 4px; }
.plan .per { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 16px; }
.plan ul { padding-left: 18px; margin: 0 0 24px; font-size: 0.93rem; color: var(--ink-2); flex: 1; }

/* Plain pages: <div class="wrap page">, plus "prose" for long text */
.page { padding-block: 56px 80px; max-width: 560px; }
.page.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5em; }
/* Guides: index cards and the article page. Sections here are article parts,
   so they drop the landing page's section padding. */
.guide-meta { font-size: 0.85rem; color: var(--ink-2); margin: 0; }
.guide-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.guide-card:hover { border-color: var(--green); box-shadow: 0 14px 32px -24px rgba(28,31,29,.5); }
.guide-card h2 { font-size: 1.45rem; margin: 0; }
.guide-card p { margin: 0; color: var(--ink-2); }
.guide-read { margin-top: 6px; color: var(--green); font-weight: 600; font-size: 0.95rem; }
.guide-card:hover .guide-read { text-decoration: underline; }
.guide .crumb { font-size: 0.9rem; margin-bottom: 12px; color: var(--ink-2); }
.guide .crumb a { color: var(--ink-2); text-decoration: none; }
.guide .crumb a:hover { color: var(--green); text-decoration: underline; }
.guide .lead { margin-bottom: 12px; }
.guide section { padding: 0; scroll-margin-top: 24px; }
.guide section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.guide section h2 { margin-top: 0; }
.guide section p { line-height: 1.7; }
.toc { margin: 32px 0 48px; padding: 20px 24px; background: var(--paper-2); border-radius: 12px; }
.toc h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--green); text-decoration: underline; }
.guide .sources { margin: 16px 0 0; padding: 12px 0 0 20px; border-top: 1px dashed var(--line); font-size: 0.82rem; color: var(--ink-2); display: grid; gap: 4px; }
.guide .sources a { color: inherit; text-decoration-color: var(--line); }
.guide .sources a:hover { color: var(--green); }
.guide-cta { margin-top: 56px; padding: 28px; border-radius: 14px; background: var(--green-soft); border: 1px solid var(--line); }
.guide-cta p { margin: 0 0 16px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; color: var(--ink); }
.todo { background: var(--highlight); padding: 0 4px; }

.page input[type=email] { padding: 12px 16px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 1rem var(--sans); width: 100%; margin-bottom: 12px; }
.contact form { display: grid; gap: 14px; }
.contact label { display: grid; gap: 4px; font-size: .9rem; font-weight: 500; }
.contact input[type=text], .contact input[type=email], .contact textarea { padding: 12px 16px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 1rem var(--sans); width: 100%; margin: 0; }
.contact textarea { resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.contact .hp { position: absolute; left: -9999px; }
.contact input[type=submit] { justify-self: start; }
.page input[type=submit], .page button { padding: 12px 20px; border-radius: 999px; border: 0; background: var(--green); color: var(--on-green); font: 600 1rem var(--sans); cursor: pointer; }

/* Blog */
.post-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 28px; }
.post-list h2 { margin: 0 0 4px; font-size: 1.3rem; }
.post-list a { text-decoration: none; }
.post-list p { margin: 4px 0; }
.blog-post h1 + .small { margin-top: -0.5em; }

/* Questionnaire after sign-up */
.questionnaire fieldset { border: 0; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.questionnaire legend { font-weight: 600; margin-bottom: 8px; }
.questionnaire .check { display: flex; gap: 10px; align-items: center; }
.questionnaire .check input { accent-color: var(--green); }
.questionnaire textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 1rem var(--sans); }
.questionnaire input.skip { background: transparent; color: var(--green); border: 1.5px solid var(--green); }

/* Signed in, the website's header shows the app's right side
   (layouts/_user_nav); the same look as app.css gives it in the app. */
.user-nav { gap: 12px; }
.user-nav .v2-new { font-size: 14px; font-weight: 600; color: var(--green); }
.user-nav .bell { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink); }
.user-nav .bell:hover { border-color: var(--green); color: var(--green); }
.user-nav .bell svg { width: 18px; height: 18px; }
.user-nav .bell .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--warn, #9A5B00); color: var(--card); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 0; gap: 0; }
.user-nav .avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--green); font: 600 13px/1 var(--sans); text-decoration: none; }
.user-nav .feedback { position: relative; }
.user-nav .feedback summary { cursor: pointer; list-style: none; font-size: 14px; color: var(--green); padding: 6px 4px; }
.user-nav .feedback summary::-webkit-details-marker { display: none; }
.user-nav .feedback-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(320px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -24px rgba(28,31,29,.45); font-size: 14px; }
.user-nav .feedback-panel textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; background: var(--paper); color: var(--ink); }
.user-nav .feedback-panel .muted { margin: 0; font-size: 13px; color: var(--ink-2); }
.user-nav .feedback-panel button { align-self: flex-end; padding: 8px 14px; border-radius: 999px; background: var(--green); color: var(--on-green); font-weight: 600; }
@media (max-width: 640px) {
  .user-nav .feedback-panel { position: fixed; left: 16px; right: 16px; top: 104px; width: auto; }
}

/* Signed-out nav: a quiet sign-in link and the sign-up button. */
.site-nav .nav-quiet { color: var(--ink-2); }
.site-nav .nav-try { padding: 8px 16px; font-size: 0.95rem; color: var(--on-green); }
/* On a phone: sign in, language and the button; the rest is in the footer. */
@media (max-width: 640px) { .site-nav .nav-wide { display: none; } .site-nav { gap: 14px; } .site-nav .nav-try { padding: 7px 12px; font-size: 0.9rem; } }
@media (max-width: 420px) { .site-header .wm-text { display: none; } .site-header .wrap { flex-wrap: nowrap; } }
.hero-example { margin: -8px 0 20px; font-size: 0.95rem; }

/* The accomplishments check (/x/…). */
.acc { padding-block: 48px 72px; max-width: 1100px; }
.acc h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.acc-form { display: grid; gap: 14px; max-width: 760px; margin-top: 24px; }
.acc-label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.acc textarea, .acc select, .acc input[type=text], .acc input[type=date] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 1rem/1.6 var(--sans); }
.acc textarea { min-height: 360px; resize: vertical; }
.acc-row { display: flex; flex-wrap: wrap; gap: 14px; }
.acc-row > div { flex: 1 1 180px; }
.acc-row .acc-grow { flex: 3 1 280px; }
.acc-form .btn { justify-self: start; }
.acc-back { margin: 0 0 16px; font-size: 0.95rem; }
.acc-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin: 28px 0; }
.acc-text { flex: 1 1 420px; min-width: 0; white-space: pre-wrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; line-height: 1.75; }
.acc-text mark { background: var(--note-bg); color: inherit; border-bottom: 2px solid var(--highlight); padding: 1px 2px; scroll-margin-top: 80px; }
.acc-n { font-size: 0.7rem; font-weight: 700; color: var(--note-ink); margin-left: 2px; }
.acc-issues { flex: 1 1 360px; min-width: 0; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.acc-issue { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 0.95rem; }
.acc-issue.sev-high { border-left-color: var(--note-ink); }
.acc-issue.sev-medium { border-left-color: var(--highlight); }
.acc-issue p { margin: 6px 0 0; }
.acc-kind { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--note-ink); display: flex; gap: 8px; align-items: center; }
.acc-num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--note-ink); color: var(--card); font-size: 0.7rem; text-decoration: none; }
.acc-quote { font-style: italic; color: var(--ink-2); }
.acc-try { background: var(--green-soft); border-radius: 8px; padding: 8px 10px; }
.acc-spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--green); animation: acc-spin 1s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes acc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .acc-spin { animation: none; } }

/* Work notebook (/x/…, unlisted) */
.nb { max-width: 860px; }
.nb textarea { min-height: 0; }
.nb .btn-small { padding: 7px 14px; font-size: 0.9rem; }
.nb .link { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; color: var(--green); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.nb-banner { display: grid; gap: 8px; background: var(--note-bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 20px 0; font-size: 0.95rem; }
.nb-banner p { margin: 0; }
.nb-banner-actions, .nb-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nb-groupbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 24px 0 8px; }
.nb-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-tab { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 0.95rem; cursor: pointer; }
.nb-tab.on { background: var(--green); border-color: var(--green); color: var(--on-green); }
.nb-nudges h2 { font-size: 1.1rem; margin: 0 0 8px; }
.nb-nudges ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.nb-nudge { border-left: 4px solid var(--highlight); background: var(--card); border-radius: 8px; padding: 10px 14px; font-size: 0.95rem; }
.nb-nudge .btn { margin-top: 6px; }
.nb { font-size: 1rem; } /* one size for the notebook; secondary text sets its own */
.nb-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin: 0 0 20px; }
.nb-card h2 { font-size: 1.35rem; margin: 0 0 6px; }
.nb-card > p { margin: 10px 0; }
.nb-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.nb-add input[type=text] { flex: 1 1 320px; }
.nb-add .nb-tf { flex: 0 1 200px; }
.nb-flag { display: inline-flex; gap: 6px; align-items: center; font-size: 0.9rem; color: var(--ink-2); white-space: nowrap; }
.nb-flag input { accent-color: var(--green); }
.nb-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.nb-item { border-top: 1px solid var(--line); padding-top: 10px; }
.nb-item.done .nb-text { text-decoration: line-through; color: var(--ink-2); }
.nb-item p { margin: 4px 0; }
.nb-pre { white-space: pre-wrap; }
.nb-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 0.85rem; color: var(--ink-2); }
.nb-pill { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.nb-pill.warn { background: var(--danger-soft); color: var(--danger); }
.nb-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.nb-versions { font-size: 0.85rem; color: var(--ink-2); }
.nb-versions summary { cursor: pointer; }
.nb-versions ul, .nb-history ul { padding-left: 18px; margin: 6px 0; font-size: 0.9rem; }
.nb-versions time, .nb-history time { color: var(--ink-2); margin-right: 6px; }
.nb-edit { display: grid; gap: 8px; }
.nb-empty { color: var(--ink-2); }
.nb-confirm { display: flex; gap: 8px; align-items: center; margin: 4px 0 8px; font-weight: 600; }
.nb-critique { display: grid; gap: 10px; margin-top: 14px; }
.nb-critique > p { margin: 0; }
.nb-stale { margin-left: 8px; color: var(--note-ink); }
.nb-issue-actions { display: flex; gap: 14px; align-items: center; }
.nb-pending, .nb-failed { margin: 12px 0; }
.nb-failed { color: var(--danger); }
.nb-history summary { cursor: pointer; list-style: none; }
.nb-history summary h2 { display: inline; }
.nb-banner { display: block; margin: 16px 0 20px; }
.nb [hidden] { display: none !important; }
.nb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.nb-head h2, .nb-head h3 { margin: 0; }
.nb-head-links { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.nb-head-links .btn { margin-left: 2px; }
.nb-head + .nb-section-history, .nb-head ~ [data-notebook-target=roleDetails] { margin-top: 10px; }
.nb-settings #role select { width: auto; max-width: 100%; font-weight: 600; }
.nb-settings #role textarea { margin-top: 12px; }
.nb-sub { margin-top: 16px; }
.nb-sub + textarea { margin-top: 0; }
.nb-summary { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.nb-summary li { line-height: 1.5; }
.nb-summary li.done .nb-text { text-decoration: line-through; color: var(--ink-2); }
.nb-tags { font-size: 0.85rem; color: var(--ink-2); white-space: nowrap; }
.nb-warn { color: var(--danger); }
.nb-section-history { padding-left: 18px; margin: 10px 0 0; font-size: 0.9rem; }
.nb-section-history time { color: var(--ink-2); margin-right: 6px; }
.nb-hint { font-size: 0.8rem; color: var(--ink-2); margin: 6px 0 0; }
.nb-foot { display: flex; justify-content: flex-end; gap: 4px; margin: 8px -8px -8px 0; }
.nb-icon { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; }
.nb-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nb-icon:hover, .nb-icon:focus-visible, .nb-icon[aria-pressed=true], .nb-icon[aria-expanded=true] { background: var(--green-soft); color: var(--green); }
.nb-icon::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; width: max-content; max-width: 240px; padding: 6px 10px; border-radius: 6px; background: var(--ink); color: var(--card); font: 0.8rem/1.3 var(--sans); text-align: left; pointer-events: none; opacity: 0; transform: translateY(2px); transition: opacity 0.12s, transform 0.12s; }
.nb-icon:hover::after, .nb-icon:focus-visible::after, .nb-icon.copied::after, .nb-icon.empty::after { opacity: 1; transform: none; }
.nb-icon svg { grid-area: 1 / 1; transition: opacity 0.2s, transform 0.25s cubic-bezier(.3, 1.5, .6, 1); }
.nb-icon .nb-check-icon { opacity: 0; transform: scale(0.5); stroke-width: 2.5; stroke-dasharray: 24; stroke-dashoffset: 24; }
.nb-icon.copied { color: var(--green); background: var(--green-soft); }
.nb-icon.copied .nb-copy-icon { opacity: 0; transform: scale(0.5); }
.nb-icon.copied .nb-check-icon { opacity: 1; transform: none; animation: nb-draw 0.35s 0.05s ease-out forwards; }
.nb-icon.empty { animation: nb-nudge 0.3s; }
@keyframes nb-draw { to { stroke-dashoffset: 0; } }
@keyframes nb-nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .nb-icon svg { transition: none; } .nb-icon.copied .nb-check-icon { animation: none; stroke-dashoffset: 0; } .nb-icon.empty { animation: none; } }
.nb-info-text { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--green); background: var(--green-soft); border-radius: 6px; }
.nb-checkin-meta { margin: 0 0 12px; }
.nb-checkin-meta + .acc-label { margin-top: 4px; }
textarea + .nb-checkin-meta { margin: 12px 0 0; }
.nb-line { line-height: 1.5; }
.nb-notes { margin-top: 12px; line-height: 1.6; }
.nb-section-history[data-history=notes] { list-style: none; padding-left: 0; display: grid; gap: 8px; }
.nb-rev summary { cursor: pointer; }
.nb-rev-text { margin: 8px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; max-height: 360px; overflow: auto; line-height: 1.6; }
.nb-setting { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.nb-setting h3 { margin: 0; font-size: 1.05rem; }
.nb-cycle-edit { margin-top: 12px; align-items: flex-end; }
.nb-cycle-edit .nb-day { width: 6.5em; }
.nb-cycle-summary p { margin: 8px 0 0; }
.nb-cycle-next { margin: 0 0 16px; color: var(--ink-2); }
.nb-cycle-next b { color: var(--ink); }
.nb-cycle-over { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: var(--note-bg); color: var(--note-ink); }
.nb-rail { position: relative; overflow-x: auto; padding: 22px 0 4px; }
.nb-rail ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(104px, 1fr)); min-width: calc(var(--n) * 104px); }
.nb-rail-line { position: absolute; top: 31px; left: 9px; width: calc((max(100%, var(--n) * 104px)) * (var(--n) - 1) / var(--n)); height: 2px; background: var(--line); }
.nb-rail-done { position: absolute; inset: 0 auto 0 0; background: var(--green); opacity: 0.5; }
.nb-rail-win { position: absolute; top: -22px; transform: translateX(-50%); min-width: 12px; height: 12px; padding: 0 3px; border-radius: 999px; border: 2px solid var(--green); background: var(--green); color: var(--card); font-size: 0.65rem; font-weight: 700; line-height: 8px; text-align: center; cursor: default; box-sizing: border-box; }
.nb-rail-win:not(:empty) { height: 16px; min-width: 16px; top: -24px; line-height: 12px; }
.nb-rail-win.draft { background: var(--card); color: var(--green); }
.nb-rail-today { position: absolute; top: -6px; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.nb-ms { display: grid; gap: 2px; align-content: start; padding-right: 10px; font-size: 0.85rem; color: var(--ink-2); position: relative; }
.nb-ms b { color: var(--ink); font-size: 0.95rem; margin-top: 10px; }
.nb-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-2); background: var(--card); position: relative; z-index: 1; box-sizing: border-box; }
.nb-ms.start .nb-dot { width: 10px; height: 10px; margin: 4px; background: var(--ink-2); }
.nb-ms.discussed .nb-dot { background: var(--green); border-color: var(--green); }
.nb-ms.next .nb-dot { border-color: var(--green); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 9px var(--green); }
.nb-ms.next b { color: var(--green); }
.nb-ms.missed .nb-dot { border-color: var(--danger); background: var(--danger-soft); }
.nb-ms.missed > span { color: var(--danger); }
.nb-ms.passed .nb-dot { border-color: var(--line); }
.nb-ms.end .nb-dot, .nb-ms.ended .nb-dot { border-style: dashed; border-color: var(--highlight); }
.nb-ms-due { color: var(--green); font-weight: 600; }
.nb-delete { margin: 8px 0 0; }
.nb-delete .btn { margin: 0 8px; }
.nb-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.nb-star { color: var(--highlight); }
