/* Newsletter Agent — one stylesheet for every page. Ported from the Sites layout. */
:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --surface: #fffefa;
  --ink: #20251e;
  --ink-strong: #29342b;
  --muted: #697067;
  --soft: #778076;
  --line: #e2e1d8;
  --line-soft: #eeede6;
  --brand: #365744;
  --brand-strong: #284935;
  --brand-soft: #edf2e9;
  --accent: #a65d35;
  --ok: #4b875b;
  --error-ink: #8c352d;
  --error-bg: #fff0ed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
code { padding: 1px 5px; border-radius: 4px; background: #e6eee8; font-size: .82em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Shell */
.site-shell { max-width: 1240px; min-height: 100vh; margin: 0 auto; padding: 0 48px; }
.topbar { min-height: 78px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border-bottom: 1px solid #deded5; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #242b23; text-decoration: none; font-size: 14px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; color: #fffdf7; background: var(--brand); font: 700 15px/1 Georgia, serif; }
.topnav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.topnav a { color: var(--brand); font-size: 13px; font-weight: 700; text-decoration: none; }
.topnav a:hover, .topnav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.account-controls { display: flex; align-items: center; gap: 14px; }
.account-chip { display: flex; align-items: center; gap: 9px; color: #626960; font-size: 13px; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--brand); background: #e2e8dd; font-weight: 700; }
.role-badge { padding: 2px 7px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 11px; font-weight: 700; }
.signout-button { padding: 8px 0; border: 0; color: var(--brand); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.topbar-link { color: var(--brand); font-size: 13px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-footer { padding: 0 0 30px; color: #9a9c93; font: italic 13px/1.4 Georgia, serif; }

/* Type */
.eyebrow { margin: 0 0 13px; color: #6a786d; font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 670px; margin: 0; font: 500 clamp(2.4rem, 5.2vw, 4.15rem)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.hero { max-width: 720px; padding: 62px 0 40px; }
.hero-copy { max-width: 570px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.hint { color: var(--soft); font-size: 12px; line-height: 1.5; }
.section-heading h2 { margin: 0 0 20px; color: var(--ink-strong); font: 500 clamp(1.5rem, 3vw, 2rem)/1.15 Georgia, serif; letter-spacing: -.03em; }
.step { margin-right: 10px; color: var(--accent); font: 600 11px/1 ui-monospace, monospace; letter-spacing: .05em; }

/* Hero extras */
.project-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.project-status div { display: flex; gap: 7px; padding: 7px 11px; border: 1px solid #d5dfd2; border-radius: 6px; background: var(--surface); font-size: 12px; line-height: 1.4; }
.project-status dt { color: var(--brand); font-weight: 750; }
.project-status dd { margin: 0; color: #5f685e; }
.preview-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 11px 16px; border: 1px solid var(--brand); border-radius: 9px; color: var(--brand); text-decoration: none; font-size: 13px; font-weight: 750; }
.preview-link:hover { background: #e9efe8; }

/* Pipeline */
.pipeline { padding: 4px 0 40px; }
.pipeline-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pipeline-steps li { display: grid; align-content: start; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.pipeline-steps strong { color: #2b372d; font-size: 14px; }
.pipeline-steps code { justify-self: start; padding: 2px 6px; border-radius: 4px; color: #4d6a52; background: var(--brand-soft); font-size: 11px; }
.pipeline-steps p { margin: 2px 0 0; color: #6f776d; font-size: 12px; line-height: 1.55; }

/* Settings form */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: start; gap: 26px; padding-bottom: 46px; }
.settings-form { display: grid; gap: 15px; }
.form-card { min-width: 0; margin: 0; padding: 25px 27px 27px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 5px 18px rgb(36 43 35 / 3%); }
.form-card legend { float: left; width: 100%; padding: 0 0 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink-strong); font-size: 14px; font-weight: 750; letter-spacing: -.01em; }
.form-card legend + * { clear: both; }
.field { display: grid; gap: 8px; margin-top: 19px; }
.field label, .field .label { color: #353c34; font-size: 13px; font-weight: 700; }
.field textarea, .field input, .field select { width: 100%; min-height: 48px; border: 1px solid #d7d8cf; border-radius: 8px; padding: 12px 13px; background: #fff; color: #252b25; font-size: 14px; line-height: 1.5; }
.field textarea { resize: vertical; }
.field .recipient { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; background: var(--line-soft); color: #252b25; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.field textarea::placeholder, .field input::placeholder { color: #a1a69d; }
.field textarea:focus, .field input:focus, .field select:focus { border-color: #718c71; outline: 3px solid #718c7130; }
.compact-field { max-width: 270px; }
.inline-input { display: flex; align-items: center; gap: 10px; }
.inline-input input { width: 105px; }
.inline-input span { color: #60685f; font-size: 13px; }
.card-intro { margin: 17px 0 13px; color: #747b71; font-size: 12px; }
.subsection-title { margin: 22px 0 10px; color: #4c584d; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.source-choice { position: relative; display: flex; min-height: 74px; align-items: flex-start; gap: 12px; padding: 14px 12px; border: 1px solid #e2e3d9; border-radius: 10px; background: #fff; cursor: pointer; }
.source-choice:has(input:checked) { border-color: #78927a; background: #f7faf4; }
.source-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkmark { display: grid; width: 17px; height: 17px; flex: 0 0 17px; place-items: center; margin-top: 1px; border: 1px solid #abb3a8; border-radius: 4px; background: white; }
.source-choice input:checked + .checkmark { border-color: #426b4f; background: #426b4f; }
.source-choice input[type="radio"] + .checkmark { border-radius: 50%; }
.source-choice input:checked + .checkmark::after { width: 8px; height: 4px; border-bottom: 2px solid white; border-left: 2px solid white; content: ""; transform: rotate(-45deg) translateY(-1px); }
.source-choice input:focus-visible + .checkmark { outline: 3px solid var(--accent); outline-offset: 3px; }
.source-copy { display: grid; gap: 4px; }
.source-copy strong { color: #303a32; font-size: 12px; }
.source-copy small { color: #7c837a; font-size: 11px; line-height: 1.4; }
.interest-rule { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #f4f6ef; color: #4b564c; font-size: 12px; line-height: 1.55; }
.interest-rule p { margin: 0 0 8px; color: #33402f; }
.interest-rule ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.interest-rule li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; }
.rule-yes > span:first-child { color: #3f7a4f; font-weight: 800; }
.rule-no > span:first-child { color: #a14a3d; font-weight: 800; }
.interest-rule q { color: #2b372d; font-weight: 650; }
nl-interests, nl-schedule, nl-password { display: block; min-width: 0; }
.toggle-row > span { min-width: 0; }
.toggle-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 19px; cursor: pointer; }
.toggle-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.toggle-row strong { display: block; font-size: 13px; color: #353c34; }
.schedule-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.schedule-fields[data-disabled] { opacity: .55; }
.schedule-summary { margin: 14px 0 0; color: #4b564c; font-size: 12px; font-weight: 650; }

/* Feedback and actions */
.feedback { min-height: 0; color: #235a3a; font-size: 13px; }
.feedback.success, .feedback.error, .notice { padding: 12px 14px; border-radius: 8px; }
.feedback.success, .notice.success { color: #235a3a; background: #e9f2e8; }
.feedback.error, .notice.error { color: var(--error-ink); background: var(--error-bg); }
.notice { margin: 0 0 18px; font-size: 13px; }
.notice.pending { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: #5c4313; background: #fbf1df; }
.notice.pending p, .notice.pending form { margin: 0; }
.verify-card { max-width: 560px; margin: 32px auto; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.form-actions p { margin: 0; color: #82877f; font-size: 11px; line-height: 1.45; }
.primary-button, .form-actions button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 13px; flex: 0 0 auto; padding: 0 18px; border: 0; border-radius: 9px; color: #fffdf7; background: var(--brand); font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; }
.primary-button:hover, .form-actions button:hover { background: var(--brand-strong); }
.primary-button[aria-busy="true"], .form-actions button[aria-busy="true"] { opacity: .7; cursor: progress; }
.secondary-button, .danger-button, .plan-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.plan-button { color: #fffdf7; background: var(--brand); }
.plan-button:hover { background: var(--brand-strong); }
.secondary-button { border-color: #aabca9; color: var(--brand); background: var(--surface); }
.secondary-button:hover { background: #f1f5ed; }
.secondary-button:disabled { opacity: .6; cursor: progress; }
.danger-button { border-color: #d2a59d; color: var(--error-ink); background: var(--surface); }
.danger-button:hover { background: var(--error-bg); }
.text-link, .account-link { color: var(--brand); font-size: 13px; font-weight: 700; }
.inline-form { display: inline; }

/* Side panel */
.side-panel { display: grid; gap: 13px; }
.status-card, .note-card { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.status-card .eyebrow { margin-bottom: 15px; }
.status-line { display: flex; align-items: center; gap: 9px; color: #424d42; font-size: 12px; font-weight: 700; line-height: 1.4; }
.status-line + .status-line { margin-top: 8px; }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #c89440; box-shadow: 0 0 0 3px #f4ead5; }
.status-dot.saved { background: var(--ok); box-shadow: 0 0 0 3px #e2f0e4; }
.status-dot.missing { background: #c4634f; box-shadow: 0 0 0 3px #f6e1db; }
.status-card p, .note-card p { margin: 11px 0 0; color: var(--soft); font-size: 12px; line-height: 1.6; }
.status-card .account-link, .note-card .account-link { display: inline-block; margin-top: 10px; font-size: 12px; }
.note-card { padding-top: 19px; background: #edf0e8; }
.note-icon { display: inline-grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: var(--brand); background: #dce5d8; }
.note-card h2 { margin: 14px 0 0; color: #38443a; font: 500 19px/1.15 Georgia, serif; }
.note-card code, .status-card code { padding: 1px 4px; border-radius: 4px; background: #dfe7da; font-size: 11px; }
.setup-steps { display: grid; gap: 10px; margin: 14px 0 16px; padding-left: 20px; color: #38443a; font-size: 12px; list-style: decimal; }
.setup-steps strong, .setup-steps span { display: block; }
.setup-steps span { margin-top: 2px; color: #6f776d; line-height: 1.5; }
.setup-steps li::marker { color: var(--accent); font: 600 11px ui-monospace, monospace; }
.checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; font-size: 12px; }
.checks small { display: block; color: var(--soft); overflow-wrap: anywhere; }
.check-ready { color: #3f7a4f; font-weight: 800; }
.check-missing { color: var(--accent); font-weight: 800; }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px; color: #8a8e84; }
.privacy-note span { color: #708474; font-size: 15px; }
.privacy-note p { margin: 0; font-size: 11px; line-height: 1.55; }

/* Connectors */
.connector { margin-top: 19px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #f9faf5; }
.connector h3 { margin: 0; color: var(--ink-strong); font-size: 13px; }
.connector .hint { margin: 6px 0 0; }
.connector-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 10px; }
.connector-actions input { width: 100%; min-height: 44px; border: 1px solid #d7d8cf; border-radius: 8px; padding: 10px 12px; background: #fff; font-size: 14px; }
.connector-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.desktop-library-list { margin: 6px 0 0; padding-left: 18px; font-size: 12px; }
.connector .notice { margin: 10px 0 0; }
.connection-panel { display: grid; gap: 10px; }
.connection-panel form { margin: 0; }
.alert-choices { display: grid; gap: 8px; margin-top: 12px; }

/* Sign in */
.signin-shell { display: flex; flex-direction: column; }
.signin-top-label { color: #708074; font-size: 12px; font-weight: 650; }
.signin-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: clamp(28px, 7vw, 96px); flex: 1; padding: 64px 0 82px; }
.signin-intro { max-width: 630px; }
.signin-intro .hero-copy { max-width: 470px; }
.signin-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.signin-benefits span { padding: 9px 12px; border: 1px solid #dce3d8; border-radius: 999px; color: #536752; background: var(--brand-soft); font-size: 11px; font-weight: 650; }
.signin-card { padding: clamp(25px, 4vw, 38px); border: 1px solid #dce1d8; border-radius: 20px; background: var(--surface); box-shadow: 0 22px 65px rgb(36 43 35 / 8%); }
.signin-card-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 26px; border-radius: 13px; color: var(--brand); background: #e4ece0; font-size: 23px; }
.signin-card h2 { margin: 0; color: var(--ink-strong); font: 500 28px/1.15 Georgia, serif; letter-spacing: -.035em; }
.signin-card > p:not(.eyebrow) { color: #69756b; font-size: 13px; line-height: 1.65; }
.signin-card form { display: grid; gap: 4px; margin-top: 6px; }
.signin-card .field { margin-top: 14px; }
.signin-button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 0 17px; border: 0; border-radius: 10px; color: #fff; background: var(--brand); font-size: 13px; font-weight: 750; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.signin-button:hover { background: var(--brand-strong); transform: translateY(-1px); }
.signin-button span:last-child { font-size: 18px; font-weight: 400; }
.usage-meter { display: block; width: 100%; height: 10px; margin-top: 10px; }
.usage-line { margin: 8px 0 0; color: #353c34; font-size: 13px; }
.google-button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; padding: 0 17px; border: 1px solid #d7d8cf; border-radius: 10px; color: #252b25; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.google-button:hover { border-color: #aabca9; background: #fafaf6; }
.google-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.signin-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: #8b9389; font-size: 11px; font-weight: 650; }
.signin-divider::before, .signin-divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 22px 0 4px; padding: 4px; border-radius: 10px; background: #eef1ea; }
.mode-switch button { min-height: 38px; border: 0; border-radius: 7px; color: #536752; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.mode-switch button[aria-pressed="true"] { color: var(--ink-strong); background: var(--surface); box-shadow: 0 1px 3px rgb(36 43 35 / 12%); }
.signin-footnote { margin: 17px 0 0; color: #8b9389; font-size: 11px; line-height: 1.55; }
.password-field { position: relative; }
.password-field input { padding-right: 76px; }
.password-toggle { position: absolute; top: 6px; right: 6px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; color: var(--brand); background: var(--brand-soft); font-size: 12px; font-weight: 700; cursor: pointer; }
.password-meter { color: var(--soft); font-size: 12px; }
.password-meter.ok { color: #3f7a4f; }

/* Interests preview (nl-interests) */
.interest-preview { margin: 10px 0 0; padding: 12px 14px; border: 1px dashed #cfd8cb; border-radius: 10px; background: #fbfcf8; }
.interest-preview strong { color: #33402f; font-size: 12px; }
.interest-preview ol { display: grid; gap: 4px; margin: 8px 0 0; padding-left: 20px; color: #4b564c; font-size: 12px; }
.interest-preview li { overflow-wrap: anywhere; }
.interest-preview .warn { color: var(--accent); }

/* Sample digest */
.sample-hero { padding: 65px 0 42px; border-bottom: 1px solid #deded5; }
.sample-hero h1 { max-width: 760px; }
.sample-hero .hero-copy { max-width: 700px; }
.sample-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.sample-meta span { padding: 7px 11px; border: 1px solid #d5dfd2; border-radius: 5px; color: #506450; background: var(--brand-soft); font-size: 11px; font-weight: 700; }
.sample-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: start; gap: 26px; padding: 36px 0 46px; }
.sample-brief { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 5px 18px rgb(36 43 35 / 3%); }
.brief-heading { padding: 31px; border-bottom: 1px solid var(--line-soft); }
.brief-heading h2 { max-width: 620px; margin: 0; color: var(--ink-strong); font: 500 clamp(1.6rem, 3vw, 2.3rem)/1.12 Georgia, serif; letter-spacing: -.035em; }
.brief-heading > p:last-child { margin: 13px 0 0; color: var(--soft); font-size: 13px; }
.sample-paper { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 17px; padding: 28px 31px; border-bottom: 1px solid var(--line-soft); }
.paper-number { color: var(--accent); font: 600 13px/1.4 ui-monospace, monospace; }
.paper-label { margin: 0 0 9px; color: #496e50; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sample-paper h3 { margin: 0; color: #263329; font: 500 23px/1.2 Georgia, serif; }
.sample-paper p:not(.paper-label) { color: #586459; font-size: 13px; line-height: 1.65; }
.sample-paper .paper-meta { margin: 8px 0 15px; color: #8a8f84; font-size: 11px; }
.sample-paper .paper-why { margin-bottom: 0; }
.paper-why strong { color: var(--brand); }
.sample-search { padding: 25px 31px; background: #f8f9f3; }
.sample-search h3 { margin: 0 0 10px; color: #263329; font: 500 19px/1.2 Georgia, serif; }
.sample-search p { margin: 8px 0 0; color: #697267; font-size: 12px; line-height: 1.6; }
.sample-links { display: grid; gap: 10px; margin: 12px 0 14px; padding: 0; list-style: none; }
.sample-links li { display: grid; gap: 2px; color: #2f4a35; font-size: 13px; font-weight: 650; }
.sample-links small { color: #7c837a; font-size: 11px; font-weight: 500; }
.sample-aside { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #edf0e8; }
.sample-aside ol { display: grid; gap: 17px; margin: 20px 0 27px; padding-left: 23px; list-style: decimal; }
.sample-aside li { padding-left: 4px; color: var(--brand); font-size: 13px; }
.sample-aside li::marker { color: var(--accent); font: 600 11px ui-monospace, monospace; }
.sample-aside li strong, .sample-aside li span { display: block; }
.sample-aside li span { margin-top: 3px; color: #697267; font-size: 12px; line-height: 1.5; }
.sample-cta { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 12px; border-radius: 8px; color: white; background: var(--brand); font-size: 12px; font-weight: 750; text-decoration: none; }
.sample-cta:hover { background: var(--brand-strong); }
.sample-disclosure { margin: 15px 0 0; color: #7d8379; font-size: 11px; line-height: 1.55; }

/* Billing */
.billing-hero { padding-bottom: 32px; }
.billing-status { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: 24px 27px; border: 1px solid #bfd0bc; border-radius: 15px; background: #edf3e9; }
.billing-status .eyebrow { margin-bottom: 8px; }
.billing-status h2 { margin: 0; color: #304735; font: 500 1.6rem/1.15 Georgia, serif; }
.billing-status p:last-child { margin: 8px 0 0; color: #526352; font-size: 14px; line-height: 1.5; }
.sandbox-note { margin: 0 0 20px; padding: 12px 16px; border: 1px solid #d9cba7; border-radius: 9px; color: #684f20; background: #fbf5e5; font-size: 13px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 32px; }
.plan-card { display: flex; min-height: 270px; flex-direction: column; align-items: flex-start; padding: 25px 27px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.plan-card .eyebrow { margin-bottom: 10px; }
.plan-card h2 { margin: 0; color: var(--ink-strong); font: 500 1.65rem/1.15 Georgia, serif; }
.plan-card .plan-copy { max-width: 430px; margin: 13px 0 20px; color: #667166; font-size: 14px; line-height: 1.6; }
.plan-card .plan-action { display: grid; gap: 8px; width: 100%; margin-top: auto; }
.plan-card .plan-action input { min-height: 44px; border: 1px solid #d7d8cf; border-radius: 8px; padding: 10px 12px; background: #fff; font-size: 14px; }
.plan-price { margin: 15px 0 0; color: #243e2d; font-size: 2rem; font-weight: 750; letter-spacing: -.04em; }
.plan-price span { color: #6b756a; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.featured-plan { border-color: #91ab90; box-shadow: 0 8px 24px rgb(42 77 45 / 8%); }
.plan-unavailable { margin: 0; color: #788278; font-size: 12px; line-height: 1.5; }
.billing-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 24px 27px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.billing-actions h2 { margin: 0; color: var(--ink-strong); font: 500 1.35rem/1.2 Georgia, serif; }
.billing-actions p { max-width: 430px; margin: 8px 0 0; color: #667166; font-size: 13px; line-height: 1.5; }
.billing-action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.billing-disclosure { max-width: 760px; margin: 0 0 42px; color: #788278; font-size: 13px; line-height: 1.6; }

/* Journal Club */
.feedback:not(:empty) + .club-layout { margin-top: 14px; }
.club-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 22px; padding-bottom: 46px; }
.paper-list { display: grid; gap: 14px; align-content: start; }
.paper-card, .club-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 5px 18px rgb(36 43 35 / 3%); }
.paper-card h2 { margin: 10px 0 4px; color: var(--ink-strong); font: 500 1.35rem/1.2 Georgia, serif; }
.paper-topline, .paper-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--soft); font-size: 12px; }
.paper-links { margin: 8px 0; }
.paper-card p { margin: 6px 0; color: #586459; font-size: 13px; line-height: 1.6; }
.pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 12px; font-weight: 700; }
.discussion { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.discussion h3 { margin: 0 0 8px; font-size: 13px; color: #353c34; }
.discussion ul { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.discussion li { padding: 8px 10px; border-radius: 8px; background: #f7f8f3; font-size: 13px; }
.discussion li strong { display: block; color: #33402f; font-size: 12px; }
.discussion form, .club-card form { display: grid; gap: 8px; }
.discussion textarea, .club-card input, .club-card textarea, .schedule-form input, .schedule-form select { width: 100%; min-height: 44px; border: 1px solid #d7d8cf; border-radius: 8px; padding: 10px 12px; background: #fff; font-size: 14px; }
.club-card label, .schedule-form label { display: grid; gap: 5px; color: #353c34; font-size: 12px; font-weight: 700; }
.club-card .eyebrow { margin-bottom: 10px; }
.club-aside { display: grid; gap: 14px; }
.schedule-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin: 12px 0; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

@media (max-width: 850px) {
  .site-shell { padding: 0 25px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; }
  .form-card { padding: 22px; }
  .pipeline-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .signin-layout { grid-template-columns: 1fr; gap: 34px; padding: 52px 0 70px; }
  .signin-card { max-width: 530px; }
  .club-layout { grid-template-columns: 1fr; }
  .schedule-form { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-shell { padding: 0 16px; }
  .topbar { padding: 12px 0; }
  .hero { padding: 43px 0 28px; }
  .hero-copy { font-size: 14px; }
  .content-grid, .sample-grid { grid-template-columns: 1fr; }
  .side-panel { grid-template-columns: 1fr 1fr; }
  .privacy-note { grid-column: 1 / -1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .billing-status, .billing-actions { align-items: flex-start; flex-direction: column; }
  .sample-hero { padding: 43px 0 29px; }
  .sample-aside { grid-row: 1; }
  .schedule-fields { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .source-list, .side-panel, .pipeline-steps { grid-template-columns: 1fr; }
  .privacy-note { grid-column: auto; }
  .form-card { padding: 20px 17px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions button { width: 100%; }
  .connector-actions { grid-template-columns: 1fr; }
  .plan-card { min-height: 0; padding: 22px; }
  .billing-action-buttons { width: 100%; flex-direction: column; }
  .billing-action-buttons form, .billing-action-buttons button, .billing-action-buttons a { width: 100%; }
  .account-chip > span:last-child, .signin-top-label { display: none; }
  .brief-heading { padding: 23px; }
  .sample-paper { grid-template-columns: 1fr; gap: 8px; padding: 23px; }
  .sample-search { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .signin-button { transition: none; }
  .signin-button:hover { transform: none; }
}
