:root{--ink:#282620;--muted:#625e55;--paper:#f7f4ed;--surface:#fffdf8;--line:#c9c1b4;--green:#8a3b2e;--green-hover:#69291f;--soft:#eee8dc;--tint:#f0ece3;--accent:#e4dcc7;--warning:#714500;--warning-soft:#fff4d2;--control-border:#867e72;--focus:#ffd43d;--focus-ink:#000000;--link:#8a3b2e;--font-body:"Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;--font-brand:"Avenir Next", "Century Gothic", sans-serif;--small:14px;--body:16px;--heading:32px;--display:64px;--radius-sm:4px;--radius-md:8px;--radius-lg:12px;}
@media(max-width:1000px){:root{--small:14px;--body:16px;--heading:30px;--display:48px;}}
@media(max-width:700px){:root{--small:14px;--body:16px;--heading:26px;--display:36px;}}
/* Public tokens are generated from design-systems/taneloop/public-tokens.json. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button,
input,
textarea,
select {
  border-radius: var(--radius-sm);
}
button {
  background: transparent;
  border: 0;
}
input,
textarea,
select {
  min-height: 48px;
  border: 1px solid var(--control-border);
  background: var(--surface);
  padding: 12px 14px;
  max-width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.9;
}
input:disabled,
textarea:disabled {
  background: var(--tint);
  opacity: 1;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--green);
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  flex-shrink: 0;
}
input[type="checkbox"]:disabled {
  opacity: 0.55;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 24px 0;
}
legend {
  font-weight: 600;
  margin-bottom: 12px;
}
legend small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
p {
  margin: 0 0 20px;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 {
  font-size: var(--display);
}
h2 {
  font-size: var(--heading);
}
h3 {
  font-size: var(--body);
}
small,
.caption,
.eyebrow {
  font-size: var(--small);
  line-height: 1.8;
}
small,
.caption {
  color: var(--muted);
}
strong {
  font-weight: 600;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
::selection {
  background: var(--accent);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 50;
  background: var(--surface);
  padding: 12px 24px;
}
.skip-link:focus {
  top: 12px;
}
.brand {
  font-family: var(--font-brand);
  font-size: var(--heading);
  font-weight: 600;
  letter-spacing: -0.06em;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand-dot {
  color: var(--green);
  font-weight: 400;
}
.public-header {
  max-width: 1440px;
  padding: 26px 48px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.public-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.public-header nav > a:not(.button) {
  text-decoration: none;
  font-size: var(--small);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.button {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--surface);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  line-height: 1.5;
  font-size: var(--body);
  font-weight: 500;
  transition: background 150ms;
}
.button:hover {
  background: var(--green-hover);
}
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.button.secondary:hover {
  background: var(--tint);
}
.button.small {
  padding: 10px 20px;
  min-height: 44px;
  font-size: var(--small);
}
.text-link,
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  font-size: var(--body);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
}
.text-link:hover,
.text-button:hover {
  text-decoration: underline;
}
.text-button {
  padding: 8px 12px;
}
.eyebrow {
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: var(--muted);
}
.hero {
  padding: 52px 24px 48px;
  text-align: center;
}
.hero h1 {
  line-height: 1.36;
  letter-spacing: -0.06em;
  margin: 0 auto 28px;
  max-width: 1120px;
}
.hero-copy {
  color: var(--muted);
  line-height: 2.1;
  margin: 0 auto 30px;
  max-width: 760px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
}
.hero .caption {
  margin: 0;
  text-wrap: balance;
}
.wide-wrap {
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 36px;
}
.example-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.example-toolbar {
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  font-size: var(--small);
}
.example-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}
.example-source {
  padding: 44px;
  background: var(--tint);
  border-right: 1px solid var(--line);
}
blockquote {
  margin: 0;
  font-weight: 400;
}
.example-source blockquote {
  line-height: 2.1;
  margin-bottom: 28px;
}
.source-fact {
  border-left: 3px solid var(--green);
  padding: 8px 0 8px 24px;
}
.source-fact p {
  margin: 12px 0;
  line-height: 1.9;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--soft);
  color: var(--green);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: var(--small);
  font-weight: 400;
  white-space: nowrap;
}
.status.pending {
  background: var(--warning-soft);
  color: var(--warning);
}
.source-note {
  margin: 28px 0 0;
}
.example-output {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
}
.segmented {
  display: flex;
  gap: 4px;
  background: var(--tint);
  padding: 4px;
  border-radius: var(--radius-sm);
  width: fit-content;
}
.segmented button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: var(--small);
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
}
.example-output article {
  margin: 28px 0 16px;
  min-height: 298px;
}
.example-output h3 {
  font-size: var(--heading);
  margin-bottom: 20px;
  line-height: 1.6;
}
.example-output article p:not(.caption) {
  color: var(--muted);
}
.example-output article .caption {
  margin-bottom: 12px;
}
.example-provenance {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: auto;
  font-size: var(--small);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.example-disclosure {
  padding: 16px 26px;
  font-size: var(--small);
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin: 0;
}
.section-wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding: 104px 48px;
}
.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 70px;
}
.problem .eyebrow {
  grid-column: 1/-1;
  margin-bottom: 0;
}
.problem p {
  color: var(--muted);
}
.problem div p:last-child {
  margin: 0;
}
.section-heading {
  margin-bottom: 48px;
}
.section-heading h2 {
  margin-bottom: 20px;
}
.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}
.how {
  border-top: 1px solid var(--line);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.steps li:last-child {
  padding-bottom: 0;
}
.step-number {
  font-size: var(--small);
  color: var(--muted);
  padding-top: 4px;
  min-width: 30px;
}
.steps h3 {
  font-weight: 600;
  margin-bottom: 12px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}
.step-detail {
  margin-left: auto;
  font-size: var(--small);
  color: var(--muted);
  padding-top: 4px;
}
.ownership {
  background: var(--tint);
}
.ownership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.ownership h2 {
  margin-bottom: 24px;
}
.ownership p {
  color: var(--muted);
}
.ownership-list {
  margin: 0;
}
.ownership-list > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.ownership-list > div:first-child {
  padding-top: 0;
}
.ownership-list dt {
  margin-bottom: 8px;
  font-weight: 600;
}
.ownership-list dd {
  margin: 0;
  color: var(--muted);
}
.channel-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 30px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.channel-index {
  font-size: var(--small);
  color: var(--muted);
}
.channel-row h3 {
  margin-bottom: 8px;
}
.channel-row p {
  color: var(--muted);
  margin: 0;
  max-width: 570px;
}
.channel-row small {
  display: block;
  margin-top: 8px;
}
.channel-row .text-link {
  font-size: var(--small);
  padding: 0;
  min-height: 32px;
}
.channel-note {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: var(--small);
}
.plans {
  border-top: 1px solid var(--line);
}
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.plan-free {
  background: var(--soft);
  padding: 36px;
  border-radius: var(--radius-lg);
}
.plan-free h3 {
  margin: 20px 0 12px;
}
.plan-price {
  font-size: var(--heading);
  margin-bottom: 20px;
}
.plan-price span {
  font-size: var(--small);
  color: var(--muted);
}
.plan-free ul {
  padding-left: 20px;
  margin: 0 0 28px;
}
.plan-free li {
  margin: 10px 0;
}
.plan-free .caption {
  margin: 16px 0 0;
}
.plan-next {
  padding: 32px 0;
}
.plan-next h3 {
  font-size: var(--heading);
  margin-bottom: 24px;
}
.plan-next p {
  color: var(--muted);
}
.faq {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 60px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  min-height: 64px;
  padding: 20px 32px 20px 0;
  line-height: 1.7;
}
.faq details p {
  color: var(--muted);
  padding: 0 12px 12px 0;
}
.closing {
  background: var(--soft);
  max-width: 1056px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 100px;
  padding: 64px 32px;
}
.closing h2 {
  margin-bottom: 20px;
}
.closing p {
  color: var(--muted);
}
.closing > .caption {
  margin-top: 20px;
}
.public-footer {
  border-top: 1px solid var(--line);
  max-width: 1344px;
  padding: 48px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.public-footer .brand {
  font-size: var(--heading);
  margin-bottom: 20px;
}
.public-footer p {
  font-size: var(--small);
  color: var(--muted);
  margin: 0;
}
.public-footer nav {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.public-footer nav a {
  font-size: var(--small);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.public-footer > .caption {
  align-self: center;
}
.comparison-table {
  width: 100%;
  overflow: auto;
  margin: 32px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--small);
}
th,
td {
  padding: 20px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 600;
}
thead th {
  background: var(--soft);
}
.profile-page {
  max-width: 840px;
  padding: 64px 36px;
  margin: auto;
}
.profile-page > h1 {
  font-size: var(--heading);
  margin-bottom: 64px;
}
.published-article {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.published-article h2 {
  margin-bottom: 28px;
}
.published-article h3 {
  margin-bottom: 16px;
}
.published-article section {
  margin-top: 28px;
}
.published-article p {
  overflow-wrap: anywhere;
}
.published-article time {
  font-size: var(--small);
  color: var(--muted);
}
.profile-invite {
  margin-top: 64px;
  background: var(--soft);
  padding: 32px;
  border-radius: var(--radius-md);
}
.profile-invite h2 {
  margin-bottom: 24px;
}
.profile-invite p {
  margin-top: 16px;
}
/* Workspace: the current editorial decision is the largest thing on the page. */
.local-banner {
  padding: 8px 24px;
  background: var(--warning-soft);
  color: var(--warning);
  text-align: center;
  font-size: var(--small);
}
.app-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.app-header .brand {
  font-size: var(--heading);
}
.workspace-switch {
  margin-left: auto;
  max-width: 340px;
}
.workspace-switch select {
  width: 100%;
  border: 0;
  background: var(--tint);
  font-size: var(--small);
}
.app-header > .text-button {
  font-size: var(--small);
}
.app-layout {
  max-width: 1600px;
  display: grid;
  grid-template-columns: 220px 1fr;
  margin: auto;
  min-height: calc(100vh - 96px);
}
.app-nav {
  padding: 36px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-nav > .caption {
  padding: 0 12px;
  font-size: var(--small);
  margin-bottom: 18px;
}
.app-nav > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  min-height: 52px;
  padding: 12px 16px;
}
.app-nav > button span:last-child {
  font-size: var(--small);
  color: var(--muted);
}
.app-nav > button[aria-current="page"] {
  background: var(--soft);
}
.nav-note {
  margin-top: auto;
  padding: 64px 12px 16px;
  font-size: var(--small);
  color: var(--muted);
}
.nav-note a {
  font-size: var(--small);
}
.workspace-main {
  padding: 56px clamp(28px, 5vw, 80px) 96px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}
.view-heading {
  margin-bottom: 40px;
}
.view-heading .eyebrow {
  margin-bottom: 12px;
}
.view-heading h1 {
  font-size: var(--heading);
  margin-bottom: 16px;
}
.view-heading p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}
.heading-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.heading-actions > .button {
  white-space: nowrap;
  font-size: var(--small);
  margin-top: 42px;
}
.topic-list {
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}
.topic-list > button {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 28px 12px;
  gap: 24px;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.topic-list > button:hover {
  background: var(--tint);
}
.topic-number {
  font-size: var(--small);
  color: var(--muted);
  width: 28px;
  flex-shrink: 0;
}
.topic-list strong,
.topic-list small {
  display: block;
}
.topic-list strong {
  margin-bottom: 6px;
}
.topic-list > button > span:last-child {
  margin-left: auto;
}
.interview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.interview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.question {
  font-size: var(--heading);
  margin-bottom: 28px;
  max-width: 720px;
}
.interview textarea {
  width: 100%;
  font-size: var(--body);
  padding: 20px;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
}
.composer-bottom .button {
  font-size: var(--small);
}
.saved-thoughts {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 24px;
}
.saved-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  width: 100%;
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.saved-row > span:last-child {
  font-size: var(--small);
  white-space: nowrap;
  color: var(--muted);
}
.interview-complete {
  padding: 28px 0;
}
.interview-complete h2 {
  margin-bottom: 20px;
}
.interview-complete p {
  color: var(--muted);
}
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.search-bar input {
  width: 100%;
}
.search-bar .button {
  flex-shrink: 0;
}
.knowledge-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.knowledge-row {
  display: block;
  padding: 28px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.knowledge-row:hover {
  background: var(--tint);
}
.row-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--small);
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.knowledge-row h2 {
  font-size: var(--body);
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.knowledge-row > p {
  color: var(--muted);
  font-size: var(--small);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}
.row-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: var(--small);
}
.editor-sheet {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.editor-sheet > .text-button {
  padding-left: 0;
  margin-bottom: 20px;
}
.editor-sheet > h2 {
  margin: 8px 0 20px;
}
.editor-sheet > p {
  color: var(--muted);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}
.field > span {
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  width: 100%;
}
.field small {
  font-weight: 400;
}
.original {
  background: var(--tint);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  margin: 24px 0;
}
.original summary {
  font-size: var(--small);
}
.original blockquote {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-left: 2px solid var(--line);
  padding-left: 16px;
  margin-bottom: 16px;
}
.original > p:last-child {
  padding-bottom: 20px;
}
.sharing {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.sharing legend {
  padding-top: 24px;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  min-height: 48px;
}
.check-label input {
  margin-top: 5px;
}
.check-label span {
  flex: 1;
}
.check-label strong,
.check-label small {
  display: block;
}
.check-label small {
  margin-top: 4px;
}
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 28px 0 0;
}
.editor-actions .text-button {
  font-size: var(--small);
}
.danger {
  color: var(--warning);
}
.draft-row {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 24px 4px;
}
.draft-row:hover {
  background: var(--tint);
}
.draft-row > div {
  flex: 1;
  min-width: 0;
}
.draft-row h2 {
  font-size: var(--body);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.draft-row p {
  font-size: var(--small);
  color: var(--muted);
  margin: 0;
}
.draft-list {
  border-top: 1px solid var(--line);
}
.format-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.format-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 48px;
  cursor: pointer;
}
.format-options label:has(input:checked) {
  background: var(--soft);
  border-color: var(--green);
}
.source-choice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.source-choice input {
  margin-top: 6px;
}
.source-choice strong,
.source-choice small {
  display: block;
  overflow-wrap: anywhere;
}
.source-choice small {
  margin-top: 8px;
}
.draft-editor-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.draft-block {
  border-top: 1px solid var(--line);
  padding-top: 4px;
  margin-top: 24px;
}
.review-actions {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 28px;
}
.review-actions h2 {
  font-size: var(--body);
  margin-bottom: 16px;
}
.review-actions > .button {
  margin: 16px 16px 0 0;
}
.settings-section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.settings-section h2 {
  font-size: var(--body);
  margin-bottom: 20px;
}
.settings-section > p {
  color: var(--muted);
}
.usage-row {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px 0;
}
.usage-row p {
  margin-bottom: 4px;
}
.usage-row strong {
  font-size: var(--heading);
  font-weight: 500;
}
.usage-row .status {
  margin-left: auto;
}
.member-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.member-list li {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  min-height: 56px;
}
.member-list li > span:first-child {
  flex: 1;
}
.member-list li > span:nth-child(2) {
  font-size: var(--small);
  color: var(--muted);
}
.invite-form .field {
  margin-top: 0;
}
.invitation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: var(--small);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--tint);
  border-radius: var(--radius-md);
}
.empty-state h2 {
  margin-bottom: 20px;
  font-size: var(--heading);
}
.empty-state p {
  max-width: 600px;
  margin: 0 auto 24px;
  color: var(--muted);
}
.notice {
  background: var(--warning-soft);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  color: var(--warning);
}
.notice h2 {
  color: var(--warning);
  font-size: var(--body);
  font-weight: 400;
  margin-bottom: 12px;
}
.notice p {
  margin-bottom: 16px;
}
.notice .field {
  margin-top: 0;
}
.error-message {
  padding: 16px 20px;
  border-left: 3px solid var(--warning);
  background: var(--warning-soft);
  color: var(--warning);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.success-message {
  padding: 16px 20px;
  background: var(--soft);
  color: var(--green);
  font-size: var(--small);
}
.auth-page {
  padding: 32px 48px;
  max-width: 1440px;
  margin: auto;
}
.welcome {
  max-width: 700px;
  margin: 76px auto 56px;
}
.welcome h1 {
  font-size: var(--heading);
  margin-bottom: 24px;
}
.welcome > p:not(.eyebrow) {
  color: var(--muted);
}
.welcome > .button {
  margin: 12px 0 20px;
}
.welcome-trust {
  margin: 36px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.welcome-trust p {
  margin: 4px 0;
  font-size: var(--small);
  color: var(--muted);
}
.legal-page {
  max-width: 880px;
  margin: 40px auto;
  padding: 40px;
}
.legal-page h1 {
  font-size: var(--heading);
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: var(--body);
  margin: 32px 0 16px;
}
.legal-page p {
  color: var(--muted);
}
@media (min-width: 1600px) {
  .hero {
    padding-top: 96px;
  }
  .example-output article {
    min-height: 300px;
  }
}
@media (max-width: 1000px) {
  .public-header {
    padding: 24px 32px;
  }
  .public-header nav {
    gap: 20px;
  }
  .public-header nav > a[href="/#plans"] {
    display: none;
  }
  .section-wrap {
    padding: 80px 32px;
  }
  .wide-wrap {
    padding: 0 32px;
  }
  .example-source {
    padding: 32px;
  }
  .example-output {
    padding: 24px 28px;
  }
  .example-output article {
    min-height: 360px;
  }
  .problem {
    gap: 24px 36px;
  }
  .ownership-grid {
    gap: 36px;
  }
  .step-detail {
    display: none;
  }
  .channel-row {
    grid-template-columns: 110px 1fr;
    gap: 24px;
  }
  .channel-row > .text-link {
    grid-column: 2;
  }
  .plan-grid {
    gap: 36px;
  }
  .faq {
    gap: 32px;
  }
  .closing {
    margin: 0 32px 80px;
    padding: 64px 24px;
  }
  .public-footer {
    padding: 40px 32px;
  }
  .app-layout {
    grid-template-columns: 172px 1fr;
  }
  .app-nav {
    padding: 32px 14px;
  }
  .app-nav > .caption {
    display: none;
  }
  .workspace-main {
    padding: 40px 28px 72px;
  }
  .app-header {
    padding: 16px 24px;
  }
  .heading-actions {
    display: block;
  }
  .heading-actions > .button {
    margin-top: 20px;
  }
  .interview,
  .editor-sheet {
    padding: 24px;
  }
  .composer-bottom {
    flex-wrap: wrap;
  }
  .draft-row {
    gap: 16px;
  }
  .draft-row > .status {
    white-space: normal;
    max-width: 110px;
  }
  .usage-row {
    gap: 24px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 24px;
  }
  .public-header {
    padding: 20px 24px;
    gap: 16px;
  }
  .public-header nav {
    gap: 14px;
  }
  .public-header nav > a:not(.button):not(.nav-login) {
    display: none;
  }
  .public-header .nav-login {
    font-size: var(--small);
  }
  .public-header .button.small {
    padding: 8px 12px;
  }
  .hero {
    padding: 54px 24px 40px;
  }
  .hero h1 {
    font-size: var(--display);
    line-height: 1.5;
    margin-bottom: 20px;
    letter-spacing: -0.055em;
  }
  .hero-copy {
    line-height: 2;
    margin-bottom: 24px;
  }
  .desktop-break {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }
  .hero-actions > .button {
    width: 100%;
    max-width: 360px;
  }
  .hero > .caption {
    max-width: 320px;
    margin: auto;
  }
  .wide-wrap {
    padding: 0 20px;
  }
  .example-toolbar {
    padding: 16px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .example-body {
    grid-template-columns: 1fr;
  }
  .example-source {
    padding: 28px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .example-source blockquote {
    margin-bottom: 20px;
  }
  .source-fact {
    padding-left: 18px;
  }
  .source-note {
    margin-top: 20px;
  }
  .example-output {
    padding: 24px;
  }
  .example-output article {
    min-height: 310px;
    margin-top: 24px;
  }
  .example-output h3 {
    font-size: var(--heading);
    line-height: 1.6;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
    padding: 10px 8px;
  }
  .example-disclosure {
    padding: 16px 20px;
  }
  .section-wrap {
    padding: 64px 24px;
  }
  .problem {
    display: block;
  }
  .problem .eyebrow {
    margin-bottom: 20px;
  }
  .problem h2 {
    margin-bottom: 28px;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .steps li {
    gap: 20px;
    padding: 24px 0;
  }
  .steps p br {
    display: none;
  }
  .ownership-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ownership-list > div {
    padding: 20px 0;
  }
  .channel-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
  .channel-row > .text-link {
    grid-column: 1;
  }
  .plan-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .plan-free {
    padding: 28px;
  }
  .plan-free .button {
    width: 100%;
  }
  .plan-next {
    padding: 16px 4px;
  }
  .faq {
    display: block;
  }
  .faq .section-heading {
    margin-bottom: 28px;
  }
  .closing {
    margin: 0 20px 64px;
    padding: 48px 24px;
  }
  .closing .button {
    width: 100%;
    max-width: 360px;
  }
  .public-footer {
    padding: 32px 24px;
    display: block;
  }
  .public-footer > div {
    margin-bottom: 20px;
  }
  .public-footer nav {
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .public-footer .brand {
    margin-bottom: 12px;
  }
  .comparison-table table {
    min-width: 560px;
  }
  .channel-hero h1 {
    font-size: var(--heading);
  }
  .profile-page {
    padding: 40px 24px;
  }
  .profile-invite {
    padding: 24px;
  }
  .local-banner {
    padding: 8px 16px;
    font-size: var(--small);
  }
  .app-header {
    padding: 14px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .app-header .brand {
    font-size: var(--heading);
  }
  .workspace-switch {
    order: 3;
    max-width: none;
    width: 100%;
  }
  .app-header > .text-button {
    margin-left: auto;
  }
  .workspace-switch select {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
  }
  .app-layout {
    display: block;
  }
  .app-nav {
    padding: 8px 12px;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    gap: 4px;
  }
  .app-nav > button {
    flex: 1;
    justify-content: center;
    padding: 10px 4px;
    min-height: 44px;
    font-size: var(--small);
  }
  .app-nav > button span:last-child {
    display: none;
  }
  .nav-note {
    display: none;
  }
  .workspace-main {
    padding: 32px 20px 64px;
  }
  .view-heading {
    margin-bottom: 28px;
  }
  .view-heading h1 {
    margin-bottom: 12px;
  }
  .view-heading p:last-child {
    font-size: var(--small);
  }
  .topic-list > button {
    padding: 22px 4px;
    gap: 16px;
  }
  .topic-list small {
    line-height: 1.8;
  }
  .interview,
  .editor-sheet {
    padding: 20px;
  }
  .question {
    margin-bottom: 24px;
  }
  .interview-top {
    margin-bottom: 16px;
  }
  .interview-top .text-button {
    padding-right: 0;
    font-size: var(--small);
  }
  .interview textarea {
    padding: 14px;
  }
  .composer-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .composer-bottom .button {
    width: 100%;
  }
  .saved-row {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  .saved-row > span:first-child {
    overflow-wrap: anywhere;
  }
  .saved-row > span:last-child {
    align-self: flex-end;
  }
  .row-meta {
    gap: 8px;
    font-size: var(--small);
  }
  .row-footer {
    gap: 12px;
    flex-wrap: wrap;
  }
  .row-footer > span {
    margin-left: auto;
  }
  .editor-sheet > .text-button {
    margin-bottom: 12px;
  }
  .editor-actions {
    gap: 12px;
  }
  .editor-actions > .button {
    width: 100%;
  }
  .editor-actions > .text-button {
    padding-left: 0;
  }
  .draft-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 20px 0;
  }
  .draft-row > .caption {
    grid-column: 1;
  }
  .draft-row > div {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .draft-row > .status {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
  }
  .draft-row > span:last-child {
    display: none;
  }
  .source-choice {
    gap: 12px;
  }
  .format-options {
    gap: 8px;
  }
  .format-options label {
    padding: 10px 12px;
  }
  .review-actions > .button {
    width: 100%;
    margin-right: 0;
  }
  .sharing {
    padding-top: 16px;
  }
  .check-label {
    gap: 12px;
  }
  .sharing legend {
    padding-top: 16px;
  }
  .usage-row {
    gap: 20px;
  }
  .usage-row .status {
    margin-left: 0;
  }
  .member-list li {
    flex-wrap: wrap;
    gap: 12px;
  }
  .member-list .text-button {
    font-size: var(--small);
  }
  .invitation-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .auth-page {
    padding: 24px;
  }
  .welcome {
    margin: 52px auto 32px;
  }
  .welcome > .button {
    width: 100%;
  }
  .notice {
    padding: 20px;
  }
  .empty-state {
    padding: 40px 20px;
  }
  .legal-page {
    padding: 24px;
    margin: 24px auto;
  }
  .brand {
    font-size: var(--heading);
  }
}
@media (max-width: 370px) {
  .public-header .nav-login {
    display: none !important;
  }
  :root {
    --display: 30px;
  }
  .button {
    padding: 14px 18px;
  }
  .interview,
  .editor-sheet {
    padding: 16px;
  }
  .format-options {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.ai-review {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.ai-review article {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
fieldset:disabled {
  opacity: 0.7;
}
@media (max-width: 700px) {
  .ai-review {
    padding: 16px;
  }
}

.auth-welcome {
  max-width: 480px;
  margin: 32px auto;
}
.auth-local {
  margin-block: 20px;
  text-align: left;
}
.auth-local .notice {
  padding: 16px;
  margin: 16px 0;
}
.auth-form {
  display: grid;
  gap: 12px;
  max-width: 460px;
  margin: 20px auto;
}
.auth-form h2 {
  font-size: var(--body, 16px);
  line-height: 1.5;
}

.auth-form .field {
  margin: 4px 0;
}

/* The knowledge handoff uses the existing editor tokens and control styles. */
.portable-sheet {
  margin-block: 24px;
}
.portable-sheet h2 {
  margin-bottom: 16px;
}
.portable-sources {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
.portable-sources .source-choice {
  margin-bottom: 12px;
}
.portable-sources .source-choice > span {
  min-width: 0;
}
.portable-sources strong,
.portable-sources small {
  display: block;
}
.portable-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
}
.portable-sheet .format-options {
  flex-wrap: wrap;
  margin-block: 16px;
}
.portable-sheet textarea {
  width: 100%;
  overflow-wrap: anywhere;
}
.portable-sheet .heading-actions {
  flex-wrap: wrap;
}

/* Clarity v4: task hierarchy and distinguishable controls. */
body {
  line-height: 1.7;
}
h1,
h2,
h3,
strong,
legend {
  font-weight: 700;
  letter-spacing: 0;
}
.workspace-main .view-heading h1 {
  font-size: 32px;
  line-height: 1.4;
}
.workspace-main .view-heading {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.workspace-main h2 {
  font-size: 24px;
}
.workspace-main h3 {
  font-size: 20px;
}
.workspace-main .question {
  font-size: 28px;
  max-width: 30em;
  line-height: 1.55;
}
.workspace-main .field > span:first-child {
  font-weight: 700;
}
.button,
.text-button {
  font-weight: 700;
  min-height: 48px;
  font-size: 16px;
}
.button.secondary {
  border: 1px solid var(--green);
  color: var(--green);
  background: var(--surface);
}
.text-button,
.text-link,
.notice a,
.nav-note a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.app-nav button {
  min-height: 52px;
  font-size: 16px;
  border-left: 4px solid transparent;
}
.app-nav button[aria-current="page"] {
  border-left-color: var(--green);
  color: var(--green);
  font-weight: 700;
  background: var(--soft);
}
.topic-list > button {
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: 8px;
  min-height: 96px;
}
.topic-list > button:hover {
  background: var(--soft);
  border-color: var(--green);
}
.topic-list strong {
  font-size: 20px;
}
.topic-list small {
  font-size: 16px;
}
.topic-number {
  color: var(--green);
  font-weight: 700;
}
.knowledge-row {
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: 8px;
}
.status {
  border: 1px solid #1b6b38;
  background: #ecf8ef;
  color: #14532d;
  font-weight: 700;
}
.status.pending {
  border-color: #8a5800;
  background: #fff4d2;
  color: #714500;
}
.format-options .button[aria-pressed="true"] {
  color: var(--surface);
  background: var(--green);
  box-shadow: inset 0 -3px 0 var(--green-hover);
}
.source-choice:has(input:checked) {
  border-color: var(--green);
  background: var(--soft);
}
.source-choice {
  border-color: var(--control-border);
}
.error-message {
  border: 2px solid #b31520;
  color: #9b101b;
  background: #fff3f3;
}
.success-message {
  color: #14532d;
  background: #ecf8ef;
  border: 1px solid #1b6b38;
  padding: 16px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--focus);
}
@media (max-width: 600px) {
  .workspace-main .view-heading h1 {
    font-size: 28px;
  }
  .workspace-main .question {
    font-size: 24px;
  }
  .portable-sheet {
    padding: 20px;
  }
}
