:root {
  --canvas: #f6f5f0;
  --mist: #e4ece8;
  --paper: #fffefb;
  --ink: #263d42;
  --muted: #62716d;
  --line: #d7dfd9;
  --primary: #244c4c;
  --radius: 12px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-width: 320px;
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 100% 0%, #e2ece7 0, transparent 45%), radial-gradient(ellipse at 0 55%, #f0ebe166 0, transparent 45%), var(--canvas);
}
body::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("assets/ripples.svg") top center / 100% auto repeat-y; opacity: .85; }
a { color: inherit; text-decoration: none; }
a:hover { color: #175b56; }
button, input, select, textarea { font: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, textarea, select { color: var(--ink); min-width: 0; }
textarea { resize: vertical; }
button, input, select, textarea { border-radius: 7px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #3e7c72; outline-offset: 4px; }
input::placeholder, textarea::placeholder { color: #71817b; opacity: 1; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
svg { vertical-align: middle; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
h1 { font-size: 26px; line-height: 1.5; letter-spacing: -.025em; }
h2 { font-size: 22px; line-height: 1.5; }
h3 { font-size: 18px; line-height: 1.65; }
p { line-height: 1.9; }
#app { display: flex; flex-direction: column; min-height: 100vh; }
.container { width: min(1160px, calc(100% - 80px)); margin-inline: auto; min-width: 0; }
.site-header { border-bottom: 1px solid #d7dfd980; background: #fffefb22; }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 58px; position: relative; }
.brand { text-decoration: none; font-size: 30px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav a { position: relative; padding: 28px 0; text-decoration: none; font-size: 16px; white-space: nowrap; }
.main-nav a[aria-current="page"] { font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.header-actions > a:not(.button) { text-decoration: none; font-size: 15px; }
.header-actions .button { padding: 9px 20px; min-height: 39px; }
.member-badge { color: var(--muted); font-size: 14px; white-space: nowrap; }
.account-menu { position: relative; }
.account-menu > summary { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #b6c6bf; border-radius: 50%; background: #e4ece8aa; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.account-links { position: absolute; z-index: 20; top: 50px; right: 0; width: 160px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px #263d4212; }
.account-links a, .account-links button { display: block; text-align: left; padding: 11px 12px; width: 100%; border: 0; background: transparent; text-decoration: none; font-size: 14px; }
.account-links a:hover, .account-links button:hover { background: var(--mist); }
.icon-button.mobile-toggle { display: none; }
.site-main { flex: 1; width: 100%; }
#main:focus { outline: none; }
.page { padding-block: 64px 90px; }
.page-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.page-heading > .button { margin-left: auto; }
.page-heading h1 { margin-right: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 12px 25px; min-height: 46px; border: 1px solid #a8bab2; border-radius: 7px; background: #fffefb66; color: var(--ink); text-decoration: none; line-height: 1.3; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.button:hover { color: var(--ink); background: #e4ece8b3; border-color: #8aa39a; }
.button.primary { color: #fffefb; background: var(--primary); border-color: var(--primary); }
.button.primary:hover { background: #173f40; color: white; }
.button:disabled, .button.primary:disabled { color: #757e79; background: #d6dad7; border-color: #d6dad7; box-shadow: none; }
.button.small { min-height: 38px; padding: 8px 17px; font-size: 14px; }
.text-button { border: 0; background: transparent; color: var(--ink); text-decoration: none; padding: 3px 0; font-size: inherit; border-radius: 0; }
.text-button:hover { color: #175b56; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 7px; border: 1px solid transparent; background: transparent; color: var(--ink); font-size: 28px; line-height: 1; }
.icon-button:hover { background: var(--mist); }
.tag { display: inline-flex; align-items: center; font-size: 12px; line-height: 1.5; color: var(--muted); vertical-align: middle; font-weight: 400; white-space: nowrap; }
.surface { background: #fffefbed; border: 1px solid var(--line); border-radius: var(--radius); }
.muted { color: var(--muted); }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; padding-block: 108px 110px; }
.hero h1 { font-size: clamp(36px, 3.65vw, 51px); line-height: 1.45; letter-spacing: -.04em; margin-bottom: 35px; font-weight: 650; }
.title-trial { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 9px 10px 9px 20px; background: var(--paper); border: 1px solid #cdd7d0; border-radius: 11px; }
.title-trial input { width: 100%; border: 0; background: transparent; padding: 6px 0; font-size: 16px; height: 40px; }
.title-trial input:focus-visible { outline-offset: 2px; }
.title-trial .button { min-height: 42px; padding: 10px 21px; }
.article-preview { padding: 31px 34px; }
.article-preview h2 { font-size: 20px; line-height: 1.65; margin-bottom: 17px; }
.article-preview p { font-size: 15px; line-height: 1.95; margin-bottom: 14px; }
.article-preview a { display: inline-block; font-size: 14px; margin-top: 6px; }
.home-draft { align-self: stretch; display: flex; flex-direction: column; min-width: 0; }
.home-draft-topics { display: flex; gap: 26px; border-bottom: 1px solid var(--line); padding: 0 32px; }
.home-topic { position: relative; padding: 18px 0 16px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; white-space: nowrap; }
.home-topic[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.home-topic:hover { color: #175b56; }
.home-draft-content { display: flex; flex-direction: column; flex: 1; padding: 27px 32px 23px; min-height: 350px; }
.home-draft-content h2 { font-size: 20px; line-height: 1.65; margin-bottom: 18px; }
.home-draft-copy p { font-size: 15px; line-height: 1.95; color: #405650; }
.home-draft-copy p + p { margin-top: 15px; }
.home-draft-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #d7dfd977; padding-top: 16px; margin-top: auto; }
.home-draft-copy { margin-bottom: 23px; }
.home-draft-footer span { font-size: 12px; color: var(--muted); }
.home-draft-footer a { font-size: 13px; }
.home-members { border-top: 1px solid var(--line); padding-block: 48px 72px; }
.home-members-heading { display: flex; align-items: center; gap: 17px; margin-bottom: 30px; }
.home-members-heading h2 { font-size: 26px; line-height: 1.6; }
.home-reference-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.home-reference-pair > article { min-width: 0; padding: 28px 32px 31px; }
.home-reference-original { border: 1px solid #d7dfd9a6; border-radius: var(--radius); background: #e4ece83d; }
.reference-caption { display: block; color: #52675e; font-size: 12px; margin-bottom: 15px; }
.home-reference-pair h3 { font-size: 19px; line-height: 1.65; margin-bottom: 17px; }
.home-reference-pair p { font-size: 15px; color: #405650; line-height: 1.95; }
.home-reference-pair p + p { margin-top: 15px; }
.home-members-footer { display: flex; align-items: center; justify-content: flex-end; margin-top: 27px; }
.home-section { padding-block: 12px 82px; }
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.section-head > a, .section-head > button { margin-left: auto; font-size: 14px; }
.examples { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: 28px; gap: 0; }
.example-item { padding-inline: 0 46px; }
.example-item + .example-item { border-left: 1px solid var(--line); padding-inline: 46px 0; }
.example-item h3 { margin-bottom: 13px; font-size: 19px; }
.example-item h3 a { text-decoration: none; }
.example-item p { font-size: 15px; color: #4e5f5a; }
.example-item > a { display: inline-block; margin-top: 18px; font-size: 14px; }
.member-promo { border-top: 1px solid #d7dfd970; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; padding-block: 55px 75px; }
.member-promo h2 { font-size: 27px; line-height: 1.6; margin-bottom: 28px; }
.paper-stack { position: relative; height: 350px; width: min(100%, 500px); }
.paper { position: absolute; background: var(--paper); border: 1px solid #e2e3dc; border-radius: 8px; width: 68%; padding: 25px; }
.paper h3 { font-size: 16px; line-height: 1.65; margin-bottom: 14px; }
.paper p { font-size: 13px; line-height: 1.85; color: #52615a; }
.paper.back { left: 18px; top: 18px; }
.paper.front { right: 8px; top: 115px; }
.site-footer { padding-block: 0 34px; }
.footer-top { border-top: 1px solid var(--line); padding-block: 26px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-top .brand { font-size: 24px; }
.footer-nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 16px 26px; }
.footer-nav a, .footer-bottom a { text-decoration: none; font-size: 13px; }
.footer-bottom { display: flex; align-items: center; gap: 25px; border-top: 1px solid #d7dfd97a; padding-top: 19px; color: #52635e; }
.footer-note { margin-left: auto; font-size: 11px; color: #78867f; }
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.tabs a, .tabs button { position: relative; text-decoration: none; border: 0; border-radius: 0; background: transparent; padding: 0 0 16px; font-size: 18px; color: var(--muted); white-space: nowrap; }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--ink); font-weight: 600; }
.composer { padding: 29px 31px; }
.field { display: grid; gap: 10px; min-width: 0; }
.field > label, .field-label { font-size: 14px; font-weight: 500; }
.form-input { width: 100%; border: 1px solid #c5d2cb; background: #fffefb66; padding: 13px 16px; min-height: 46px; line-height: 1.55; }
.title-input { min-height: 170px; font-size: 17px; }
.form-row { display: flex; gap: 20px; align-items: center; margin-top: 25px; }
.form-row > .button:last-child { margin-left: auto; }
.plan-control { display: flex; gap: 15px; align-items: center; flex: 1; min-width: 0; }
.plan-control label { white-space: nowrap; font-size: 14px; }
.plan-control select { width: 260px; max-width: 100%; }
.plan-control .text-button { font-size: 14px; white-space: nowrap; }
.recent-section { margin-top: 60px; }
.table-frame { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: #fffefb8c; }
.article-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.article-table th { background: #e8eeea66; font-weight: 500; color: #3d5751; padding: 17px 23px; white-space: nowrap; }
.article-table td { border-top: 1px solid #d7dfd980; padding: 19px 23px; line-height: 1.7; vertical-align: middle; }
.article-table th:first-child { width: 44%; }
.article-table td:first-child { font-weight: 500; }
.article-table td.method, .article-table td.updated { white-space: nowrap; color: #52645e; font-size: 13px; }
.article-table td.action { white-space: nowrap; }
.article-table td.action a { color: #20534f; }
.status { display: inline-block; padding: 3px 11px; line-height: 1.5; border-radius: 6px; font-size: 12px; font-weight: 400; white-space: nowrap; }
.status.done { background: #e4efdf; color: #375d3b; }
.status.running { background: #e4edf2; color: #365f76; }
.status.pending { background: #f3ead6; color: #795b2a; }
.status.failed { background: #f7e6e1; color: #9c4a3e; }
.status.draft { background: #ebece7; color: #5d655c; }
.list-controls { display: flex; gap: 16px; align-items: center; margin-bottom: 27px; }
.search-control { position: relative; flex: 1; max-width: 350px; min-width: 180px; }
.search-control svg { position: absolute; top: 14px; left: 14px; color: var(--muted); }
.search-control input { padding-left: 43px; }
.filter-list { display: flex; align-items: center; gap: 9px; }
.filter-button { border: 1px solid transparent; padding: 8px 13px; min-height: 38px; font-size: 13px; background: transparent; color: #485f58; white-space: nowrap; }
.filter-button[aria-pressed="true"] { background: var(--mist); color: var(--ink); }
.sort-control { margin-left: auto; width: 138px; font-size: 13px; }
.status-control { width: 130px; font-size: 13px; }
.sort-control, .status-control { flex-shrink: 0; }
.list-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; }
.privacy-label { font-size: 13px; color: #5f736a; display: flex; align-items: center; gap: 8px; }
.pagination { display: flex; gap: 7px; }
.pagination button { border: 1px solid var(--line); background: #fffefb88; color: var(--ink); width: 37px; height: 37px; font-size: 13px; }
.pagination button[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: white; }
.pagination button:disabled { opacity: .4; }
.empty-state { text-align: center; min-height: 340px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 20px; padding: 40px 20px; }
.empty-state > svg { width: 32px; height: 32px; color: var(--muted); stroke-width: 1.3; }
.empty-state h2 { font-size: 20px; font-weight: 500; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 500px; }
.empty-state .button { margin-top: 5px; }
.reference-link { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 23px 29px; margin-bottom: 27px; }
.reference-link .notice-row { flex-basis: 100%; margin-top: 0; }
.reference-link label { white-space: nowrap; font-size: 14px; }
.reference-link input { flex: 1; }
.reference-source { padding: 29px 33px; margin-bottom: 27px; }
.reference-source .section-head { margin-bottom: 22px; }
.reference-source .section-head h2 { font-size: 18px; }
.reference-source h3 { font-size: 22px; margin-bottom: 16px; }
.reference-source p { font-size: 15px; margin-bottom: 16px; }
.reference-source p:last-child { margin-bottom: 0; }
.reference-composer .inline-field { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 20px; }
.reference-composer .form-row { margin-top: 22px; }
.notice { display: flex; align-items: center; gap: 9px; color: #996045; font-size: 14px; line-height: 1.8; }
.notice-row { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.notice-row .button { margin-left: auto; }
.back-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; margin-bottom: 26px; font-size: 14px; }
.reading-toolbar { display: flex; align-items: center; gap: 15px; padding: 18px 24px; margin-bottom: 28px; }
.reading-toolbar .back-link { margin: 0; }
.reading-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; }
.prose { padding: 47px 60px; width: min(100%, 960px); margin-inline: auto; }
.prose h1 { font-size: 28px; margin-bottom: 33px; letter-spacing: 0; }
.prose p { font-size: 16px; line-height: 2; margin-bottom: 23px; color: #405650; overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.prose > .tag { margin-bottom: 20px; }
.article-record { border-top: 1px solid var(--line); margin-top: 37px; padding-top: 27px; }
.article-record h2 { font-size: 17px; margin-bottom: 16px; }
.record-list { margin: 0; }
.record-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 15px 0; font-size: 14px; line-height: 1.7; }
.record-list dt { color: #64756c; }
.record-list dd { margin: 0; }
.prose .sample-note { font-size: 12px; line-height: 1.8; color: var(--muted); margin-bottom: 26px; }
.article-cta { text-align: center; margin-top: 34px; }
.editor-page { max-width: 1040px; }
.editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; font-size: 14px; }
.editor-modes { display: flex; gap: 23px; }
.editor-mode { background: transparent; border: 0; border-radius: 0; padding: 9px 0; color: var(--muted); font-size: 15px; }
.editor-mode[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.editor-fields { padding: 29px 31px; }
.editor-fields .field + .field { margin-top: 25px; }
.editor-body { min-height: 470px; line-height: 1.95; font-size: 16px; }
.editor-reading h2 { font-size: 27px; margin-bottom: 28px; }
.editor-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.profile-dialog { display: grid; gap: 19px; }
.profile-dialog .dialog-actions { margin-top: 0; }
.avatar-options { display: flex; justify-content: center; gap: 28px; padding: 25px 0; }
.avatar-options label { display: grid; justify-items: center; gap: 11px; cursor: pointer; }
.avatar-options input { accent-color: var(--primary); }
.avatar-options label > span { display: grid; place-items: center; width: 57px; height: 57px; border: 1px solid var(--line); border-radius: 50%; background: var(--mist); font-size: 24px; }
.avatar-options label:has(input:checked) > span { border-color: var(--primary); }
.settings-row > span { min-width: 0; overflow-wrap: anywhere; }
.form-error { font-size: 13px; line-height: 1.8; color: #9c4a3e; margin-bottom: 18px; }
.form-error .tag { font-size: 10px; margin-left: 8px; }
.reference-source > p { overflow-wrap: anywhere; }
.related-section { margin-top: 55px; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pricing-tier { display: flex; flex-direction: column; padding: 25px 23px; min-width: 0; }
.pricing-tier.is-selected { border-color: var(--primary); }
.pricing-tier-heading { margin-bottom: 23px; }
.pricing-tier-name { display: flex; align-items: center; gap: 10px; }
.pricing-tier-name h2 { font-size: 18px; }
.pricing-tier-name .tag { font-size: 10px; }
.tier-price { display: flex; align-items: baseline; gap: 3px; font-size: 42px; line-height: 1.25; font-weight: 600; margin-top: 18px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tier-price > span { font-size: 19px; font-weight: 400; }
.plan-features { margin: 0 0 23px; }
.plan-features > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding-block: 13px; font-size: 13px; line-height: 1.65; }
.plan-features > div:first-child { border-top: 1px solid var(--line); }
.plan-features dt { color: #51665d; }
.plan-features dd { margin: 0; text-align: right; }
.plan-features dd > span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.plan-features .unavailable { color: var(--muted); }
.pricing-tier > .button { margin-top: auto; width: 100%; padding-inline: 13px; font-size: 14px; }
.subscription-note { font-size: 12px; color: var(--muted); margin-top: 18px; }
.membership-reference-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 42px; border-top: 1px solid var(--line); padding-top: 27px; }
.membership-reference-bar h2 { font-size: 21px; }
.membership-reference-bar > .text-button { font-size: 14px; }
.entitlement-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.entitlement-heading h2 { font-size: 24px; line-height: 1.6; }
.entitlement-entry { margin: 0 0 22px; padding-block: 19px; border-block: 1px solid var(--line); }
.entitlement-entry > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; font-size: 14px; line-height: 1.85; }
.entitlement-entry > div + div { margin-top: 9px; }
.entitlement-entry dt { color: var(--muted); }
.entitlement-entry dd { margin: 0; overflow-wrap: anywhere; }
.entitlement-entry dd > span { padding-inline: 6px; color: #8a9b92; }
.checkout-benefits > .text-button { font-size: 14px; }
.checkout-benefits, .checkout-review { padding: 29px 31px; min-width: 0; }
.checkout-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.checkout-review-heading h2 { font-size: 21px; }
.checkout-review-heading > a { font-size: 13px; }
.order-plan-price { display: flex; align-items: baseline; gap: 12px; margin-block: 16px 24px; font-size: 36px; font-weight: 600; line-height: 1.4; }
.order-plan-price > span { font-size: 12px; font-weight: 400; color: var(--muted); }
.subscription-page, .order-record-page { max-width: 980px; }
.subscription-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 36px; }
.subscription-plan .record-list > div { grid-template-columns: 105px minmax(0, 1fr); }
.subscription-features { align-self: center; }
.subscription-features .plan-features { margin: 0; }
.subscription-features .plan-features > div:first-child { border-top: 0; }
.subscription-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; font-size: 14px; }
.order-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.order-table th { background: #e8eeea66; color: #3d5751; font-weight: 500; padding: 17px 23px; }
.order-table td { padding: 25px 23px; border-top: 1px solid #d7dfd980; }
.order-table td:first-child { font-weight: 500; }
.order-table th:last-child, .order-table td:last-child { text-align: right; }
.order-record { max-width: 700px; padding: 32px 36px; }
.order-record > .button { margin-top: 24px; }
.checkout-benefits .plan-features > div { font-size: 14px; }
.membership-terms > div { grid-template-columns: minmax(80px, 1fr) minmax(0, auto); gap: 15px; padding-block: 17px; }
.membership-terms dd { text-align: right; overflow-wrap: anywhere; }
.membership-proof { margin-top: 22px; }
.checkout-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.checkout-account { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: start; gap: 12px; font-size: 14px; padding-block: 17px 21px; border-bottom: 1px solid var(--line); }
.checkout-account > span:first-child { color: var(--muted); padding-top: 2px; }
.checkout-account > strong { font-weight: 500; text-align: right; overflow-wrap: anywhere; padding-top: 2px; }
.checkout-review .consent { margin-block: 23px 16px; }
.payment-pending { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.checkout-review > .button { width: 100%; }
.checkout-review > .text-button { display: block; text-align: center; margin-top: 19px; font-size: 14px; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: #52645c; line-height: 1.9; }
.consent input { margin: 5px 0 0; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.account-page { max-width: 1040px; }
.settings-section { border-bottom: 1px solid var(--line); padding-block: 29px 35px; }
.settings-section h2 { font-size: 21px; margin-bottom: 24px; }
.profile-row { display: flex; align-items: center; gap: 42px; }
.profile-avatar { display: grid; gap: 12px; justify-items: center; width: 160px; padding-right: 32px; }
.large-avatar { display: grid; place-items: center; background: #dce6e0; width: 84px; height: 84px; border-radius: 50%; font-size: 31px; }
.profile-row .field { flex: 1; }
.settings-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 25px; align-items: center; padding: 22px 0; font-size: 15px; }
.settings-row > :last-child { font-size: 14px; }
.settings-actions { display: flex; justify-content: center; gap: 24px; margin-top: 42px; }
.auth-layout { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 72px; padding-top: 25px; padding-bottom: 82px; }
.auth-layout .paper-stack { height: 430px; }
.auth-layout .paper { width: 72%; padding: 28px; }
.auth-layout .paper.back { left: 0; top: 26px; }
.auth-layout .paper.front { top: 160px; right: 0; }
.auth-card { padding: 33px 35px; }
.auth-card h1 { font-size: 24px; margin-bottom: 33px; }
.auth-card .field { margin-bottom: 24px; }
.phone-control { display: flex; align-items: center; border: 1px solid #c5d2cb; border-radius: 7px; background: #fffefb66; }
.phone-prefix { padding: 0 16px; border-right: 1px solid var(--line); font-size: 14px; }
.phone-control input { border: 0; background: transparent; min-width: 0; width: 100%; padding: 13px; min-height: 48px; }
.code-control { display: flex; gap: 12px; }
.code-control .button { min-width: 118px; padding-inline: 13px; }
.auth-card > form > .button { width: 100%; margin-top: 8px; margin-bottom: 19px; }
.auth-card .consent { margin-bottom: 23px; }
.auth-alternative { display: inline-block; font-size: 13px; }
.help-page { max-width: 980px; }
.help-nav { display: flex; gap: 35px; padding-bottom: 21px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.help-nav a { text-decoration: none; font-size: 15px; }
.help-section { padding-block: 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.help-section h2 { font-size: 23px; margin-bottom: 21px; }
.help-section p { line-height: 2; color: #4e635b; font-size: 16px; margin-bottom: 18px; }
.help-section > a { font-size: 14px; }
.help-actions { display: flex; gap: 25px; align-items: center; margin-top: 39px; }
.contact-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 55px; }
.contact-form { padding: 31px; }
.contact-form .field { margin-bottom: 24px; }
.contact-form textarea { min-height: 195px; }
.contact-form .notice { margin-top: 18px; }
.contact-aside { padding-top: 7px; }
.contact-aside a { display: flex; align-items: center; gap: 21px; padding-block: 25px; border-bottom: 1px solid var(--line); font-size: 18px; }
.contact-aside a:last-child { border-bottom: 0; }
.legal-page { max-width: 900px; }
.legal-placeholder { padding: 34px; min-height: 280px; }
.legal-placeholder p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.task-surface { padding: 29px 35px 43px; }
.task-title { display: flex; align-items: center; gap: 15px; padding-bottom: 23px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.task-title h1 { font-size: 18px; }
.state-heading { padding: 24px 24px 0; justify-content: flex-end; }
.task-center { text-align: center; }
.task-center h2 { font-size: 23px; display: flex; justify-content: center; align-items: center; gap: 15px; }
.spinner { width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin 1.1s linear infinite; }
.task-stages { display: flex; list-style: none; margin: 43px 0 37px; padding: 0; }
.task-stages li { flex: 1; position: relative; padding-top: 35px; font-size: 14px; color: #7b8a83; }
.task-stages li::before { content: ""; width: 18px; height: 18px; border: 1px solid #b7c6bf; background: var(--paper); border-radius: 50%; position: absolute; top: 0; left: calc(50% - 9px); z-index: 1; }
.task-stages li:not(:last-child)::after { content: ""; position: absolute; left: 50%; right: -50%; top: 9px; height: 1px; background: #cbd5cf; }
.task-stages li.completed::before { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 4px var(--paper); }
.task-stages li.current { color: var(--primary); font-weight: 500; }
.task-stages li.current::before { border: 2px solid var(--primary); box-shadow: inset 0 0 0 3px var(--paper); background: var(--primary); }
.task-actions { display: flex; justify-content: center; gap: 23px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.task-details { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 8px; }
.task-details dd { min-width: 0; overflow-wrap: anywhere; }
.preview-tools { position: fixed; right: 19px; bottom: 18px; z-index: 40; font-size: 12px; }
.preview-tools > summary { list-style: none; display: block; cursor: pointer; padding: 10px 15px; background: #fffefbf2; border: 1px solid var(--line); border-radius: 7px; }
.preview-panel { position: absolute; right: 0; bottom: 49px; width: 318px; max-height: min(70vh, 620px); overflow: auto; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 35px #263d4214; }
.preview-panel h2 { font-size: 15px; margin-bottom: 13px; }
.preview-panel .preview-select { font-size: 13px; margin-bottom: 12px; }
.preview-panel p { font-size: 11px; color: var(--muted); margin-bottom: 15px; line-height: 1.8; }
.preview-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 18px; }
.preview-links a { padding: 8px 9px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; font-size: 12px; }
.preview-links a:hover { background: var(--mist); }
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: min(560px, calc(100% - 36px)); width: max-content; border: 1px solid #cbd8cf; background: #fffefb; color: var(--ink); border-radius: 9px; padding: 14px 21px; font-size: 13px; box-shadow: 0 5px 24px #263d4219; line-height: 1.8; }
dialog { border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--ink); padding: 28px 30px; width: min(560px, calc(100% - 36px)); max-height: calc(100dvh - 50px); overflow: auto; box-shadow: 0 20px 80px #263d4222; }
dialog::backdrop { background: #273e3b44; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dialog-heading h2 { font-size: 21px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 13px; margin-top: 26px; flex-wrap: wrap; }
.dialog-note { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.dialog-body-copy { font-size: 14px; color: #4a6259; }
.skip-link { position: fixed; top: 12px; left: 15px; z-index: 200; padding: 12px; background: var(--paper); border: 1px solid var(--primary); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link:focus { clip-path: none; width: auto; height: auto; overflow: visible; }
.noscript { padding: 40px; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1050px) {
  .container { width: calc(100% - 56px); }
  .header-inner { gap: 36px; }
  .main-nav { gap: 25px; }
  .header-actions { gap: 18px; }
  .hero { gap: 40px; padding-top: 80px; }
  .hero h1 { font-size: 41px; }
  .title-trial { padding-left: 14px; }
  .title-trial .button { padding-inline: 16px; }
  .article-preview { padding: 25px; }
  .plan-control select { width: 210px; }
  .article-table th, .article-table td { padding-inline: 17px; }
  .article-table th:first-child { width: 40%; }
  .list-controls { flex-wrap: wrap; }
  .search-control { max-width: none; }
  .auth-layout { gap: 40px; }
  .auth-card { padding: 29px; }
  .member-promo { gap: 30px; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-benefits, .checkout-review { padding: 25px; }
  .checkout-layout { gap: 24px; }
}
@media (max-width: 800px) {
  .header-inner { min-height: 72px; gap: 20px; flex-wrap: wrap; padding-block: 15px; }
  .brand { font-size: 27px; }
  .main-nav { display: none; order: 5; width: 100%; gap: 26px; border-top: 1px solid var(--line); padding-top: 9px; }
  .main-nav.mobile-open { display: flex; }
  .main-nav a { font-size: 14px; padding-block: 13px; }
  .icon-button.mobile-toggle { display: inline-grid; width: 35px; height: 35px; }
  .header-actions { gap: 15px; }
  .header-actions .help-link { display: none; }
  .header-actions .button { padding: 8px 15px; }
  .page { padding-block: 42px 65px; }
  .hero { grid-template-columns: 1fr; padding-block: 58px 64px; gap: 35px; }
  .hero h1 { font-size: 42px; line-height: 1.4; margin-bottom: 28px; }
  .home-draft-content { min-height: 275px; }
  .home-members { padding-block: 35px 58px; }
  .home-members-heading h2 { font-size: 23px; }
  .home-reference-pair { gap: 20px; }
  .home-reference-pair > article { padding: 24px; }
  .home-reference-pair h3 { font-size: 18px; }
  .hero .article-preview { padding: 25px 27px; }
  .hero .article-preview p + p { display: none; }
  .hero .article-preview h2 { font-size: 19px; }
  .home-section { padding-bottom: 53px; }
  .member-promo { grid-template-columns: 1fr; gap: 27px; padding-block: 36px 60px; }
  .member-promo .paper-stack { margin-inline: auto; height: 330px; }
  .member-promo > div:last-child { text-align: center; }
  .member-promo h2 { font-size: 25px; margin-bottom: 23px; }
  .footer-top { align-items: flex-start; gap: 25px; }
  .footer-nav { gap: 16px 21px; max-width: 70%; }
  .footer-bottom { flex-wrap: wrap; gap: 18px 25px; }
  .footer-note { flex-basis: 100%; margin-left: 0; }
  .form-row, .plan-control { flex-wrap: wrap; }
  .form-row > .button:last-child { margin-left: 0; }
  .plan-control { width: 100%; flex-basis: 100%; }
  .plan-control select { flex: 1; width: auto; }
  .composer { padding: 25px; }
  .recent-section { margin-top: 40px; }
  .reference-link { flex-wrap: wrap; padding: 22px; gap: 13px; }
  .reference-link label { flex-basis: 100%; }
  .reference-link .form-input { min-width: 160px; }
  .reference-source { padding: 23px; }
  .reference-source h3 { font-size: 20px; }
  .reference-composer .inline-field { grid-template-columns: 1fr; gap: 11px; }
  .notice-row { flex-wrap: wrap; }
  .notice-row .button { margin-left: 0; }
  .reading-toolbar { flex-wrap: wrap; gap: 13px; padding: 16px 20px; }
  .reading-actions { width: 100%; margin: 0; border-top: 1px solid var(--line); padding-top: 13px; justify-content: flex-end; }
  .prose { padding: 29px; }
  .prose h1 { font-size: 25px; margin-bottom: 27px; }
  .prose p { font-size: 16px; line-height: 1.95; }
  .checkout-layout { grid-template-columns: 1fr; gap: 30px; }
  .membership-proof { grid-template-columns: 1fr 1fr; }
  .profile-row { gap: 25px; }
  .profile-avatar { width: 125px; padding-right: 24px; }
  .settings-row { grid-template-columns: 110px 1fr; gap: 13px; }
  .settings-row > :nth-child(3) { grid-column: 2; justify-self: start; }
  .auth-layout { grid-template-columns: 1fr; padding-top: 0; padding-bottom: 54px; }
  .auth-layout .paper-stack { display: none; }
  .auth-card { width: min(100%, 530px); margin-inline: auto; }
  .contact-layout { grid-template-columns: 1fr; gap: 19px; }
  .contact-aside { display: flex; gap: 30px; }
  .contact-aside a { border: 0; font-size: 16px; gap: 12px; }
}
@media (max-width: 680px) {
  .subscription-summary { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 27px; }
  .subscription-features { border-top: 1px solid var(--line); padding-top: 14px; }
  .order-table, .order-table tbody { display: block; width: 100%; }
  .order-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .order-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 20px; }
  .order-table tr + tr { border-top: 1px solid var(--line); }
  .order-table td { padding: 0; border: 0; }
  .order-table td:first-child { grid-column: 1 / -1; font-size: 16px; }
  .order-table td:last-child { grid-column: 1 / -1; font-size: 13px; }
  .article-table, .article-table tbody { display: block; width: 100%; }
  .article-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .article-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 15px; padding: 18px 19px; }
  .article-table tr + tr { border-top: 1px solid var(--line); }
  .article-table td { display: block; border: 0; padding: 0; }
  .article-table td:first-child { grid-column: 1 / -1; font-size: 15px; }
  .article-table td.method { grid-column: 1; grid-row: 2; font-size: 12px; }
  .article-table td.status-cell { grid-column: 2; grid-row: 2; justify-self: end; }
  .article-table td.updated { grid-column: 1; grid-row: 3; font-size: 12px; }
  .article-table td.action { grid-column: 2; grid-row: 3; justify-self: end; font-size: 13px; }
  .article-table .status { padding: 2px 8px; font-size: 11px; }
  .list-controls { gap: 15px; }
  .search-control { flex-basis: 100%; max-width: none; }
  .filter-list { flex-wrap: wrap; gap: 3px; }
  .filter-button { font-size: 12px; padding: 7px 10px; }
  .sort-control { width: 123px; min-height: 38px; padding: 8px 10px; }
  .status-control { width: 123px; min-height: 38px; padding: 8px 10px; margin-left: auto; }
  .list-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 25px; }
}
@media (max-width: 520px) {
  .list-controls .filter-list { width: 100%; }
  .list-controls .status-control { margin-left: 0; }
  .subscription-summary, .order-record { padding: 23px 21px; }
  .subscription-actions { gap: 13px; }
  .subscription-actions .button { font-size: 13px; padding-inline: 17px; }
  .editor-toolbar { font-size: 12px; gap: 12px; }
  .editor-mode { font-size: 14px; }
  .editor-fields { padding: 23px 20px; }
  .editor-body { min-height: 380px; font-size: 15px; }
  .editor-reading h2 { font-size: 23px; }
  .editor-footnote { font-size: 11px; }
  .profile-dialog .code-control { flex-wrap: wrap; }
  .profile-dialog .code-control .form-input { flex: 1; min-width: 115px; }
  .container { width: calc(100% - 40px); }
  .header-actions { gap: 12px; }
  .header-actions .register-link { display: none; }
  .header-actions > a { font-size: 14px; }
  .member-badge { font-size: 12px; }
  .account-menu > summary { width: 32px; height: 32px; font-size: 14px; }
  .hero h1 { font-size: clamp(30px, 9.2vw, 36px); }
  .home-draft-topics { padding-inline: 21px; gap: 23px; }
  .home-topic { font-size: 12px; padding-block: 15px 14px; }
  .home-draft-content { padding: 22px 21px; min-height: 320px; }
  .home-draft-content h2 { font-size: 17px; }
  .home-draft-copy { min-height: 137px; }
  .home-draft-copy p { font-size: 14px; }
  .home-draft-copy p:first-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
  .home-draft-copy p + p { display: none; }
  .home-members-heading { flex-wrap: wrap; gap: 10px; margin-bottom: 23px; }
  .home-members-heading h2 { font-size: 21px; }
  .home-reference-pair { grid-template-columns: 1fr; gap: 18px; }
  .home-reference-pair > article { padding: 23px 21px; }
  .home-reference-pair h3 { font-size: 17px; }
  .home-reference-pair p { font-size: 14px; }
  .home-members-footer { flex-wrap: wrap; margin-top: 23px; }
  .home-members-footer .button { font-size: 14px; padding-inline: 21px; }
  .title-trial { gap: 8px; padding: 7px 8px 7px 13px; }
  .title-trial input { font-size: 14px; }
  .title-trial .button { font-size: 13px; padding: 9px 15px; }
  .hero .article-preview { padding: 21px; }
  .hero .article-preview h2 { font-size: 17px; }
  .hero .article-preview p { font-size: 14px; }
  .section-head { gap: 10px; flex-wrap: wrap; margin-bottom: 21px; }
  .section-head h2 { font-size: 21px; }
  .section-head .tag { font-size: 10px; }
  .section-head > a { font-size: 12px; }
  .examples { grid-template-columns: 1fr; padding-top: 0; }
  .example-item { padding: 23px 0; }
  .example-item + .example-item { border-left: 0; border-top: 1px solid var(--line); padding: 23px 0; }
  .example-item h3 { font-size: 17px; margin-bottom: 8px; }
  .example-item p { font-size: 14px; }
  .paper-stack { height: 300px !important; }
  .paper { width: 70%; padding: 21px; }
  .paper h3 { font-size: 13px; }
  .paper p { font-size: 11px; }
  .paper.back { left: 8px; }
  .paper.front { top: 105px; right: 3px; }
  .member-promo { gap: 16px; }
  .member-promo h2 { font-size: 22px; }
  .footer-top { flex-direction: column; gap: 23px; }
  .footer-nav { max-width: none; justify-content: flex-start; gap: 16px 23px; }
  .footer-nav a { font-size: 12px; }
  .footer-bottom { padding-top: 16px; }
  .footer-bottom a { font-size: 12px; }
  .site-footer { padding-bottom: 80px; }
  .page-heading { gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
  h1 { font-size: 23px; }
  .page-heading > .button { min-height: 38px; padding: 9px 15px; font-size: 13px; }
  .tabs { gap: 25px; }
  .tabs a { font-size: 16px; }
  .composer { padding: 21px 18px; }
  .title-input { min-height: 154px; font-size: 16px; }
  .form-input { padding: 12px 13px; font-size: 14px; }
  .plan-control { gap: 12px; }
  .plan-control label { width: 100%; }
  .plan-control .text-button { font-size: 12px; }
  .form-row > .button:last-child { width: 100%; }
  .reference-link { padding: 19px; }
  .reference-link .form-input { min-width: 120px; width: 100%; }
  .reference-link .button { padding-inline: 13px; font-size: 13px; }
  .reference-source { padding: 21px; }
  .reference-source .section-head { gap: 10px; }
  .reference-source h3 { font-size: 18px; }
  .reference-source p { font-size: 14px; }
  .reading-toolbar { padding: 16px; gap: 10px; }
  .reading-toolbar .tag { font-size: 10px; }
  .reading-actions { gap: 13px; }
  .reading-actions > .text-button { margin-right: auto; font-size: 11px; }
  .reading-actions .button { padding: 8px 14px; min-height: 36px; font-size: 12px; }
  .prose { padding: 27px 22px; }
  .prose h1 { font-size: 23px; margin-bottom: 25px; }
  .prose p { font-size: 15px; line-height: 1.95; }
  .record-list > div { grid-template-columns: 96px 1fr; font-size: 13px; gap: 12px; }
  .article-record { margin-top: 29px; }
  .entitlement-heading { gap: 11px; }
  .entitlement-heading h2 { font-size: 21px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 18px; }
  .pricing-tier { padding: 23px 21px; }
  .pricing-tier-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
  .tier-price { font-size: 35px; margin-top: 0; }
  .tier-price > span { font-size: 16px; }
  .pricing-tier .plan-features > div { padding-block: 10px; }
  .membership-reference-bar { margin-top: 29px; padding-top: 23px; gap: 13px; }
  .membership-reference-bar h2 { font-size: 18px; }
  .membership-reference-bar > .text-button { font-size: 12px; }
  .entitlement-entry > div { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; font-size: 13px; }
  .entitlement-entry dd > span { padding-inline: 2px; }
  .checkout-benefits, .checkout-review { padding: 23px 21px; }
  .membership-terms > div { grid-template-columns: minmax(70px, 1fr) minmax(0, auto); gap: 10px; padding-block: 15px; }
  .membership-proof { grid-template-columns: 1fr; }
  .checkout-account { grid-template-columns: 75px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }
  .checkout-account > .tag { grid-column: 2; justify-self: end; }
  .profile-row { align-items: flex-start; gap: 19px; }
  .profile-avatar { width: 90px; padding-right: 18px; }
  .large-avatar { width: 63px; height: 63px; font-size: 25px; }
  .profile-avatar .text-button { font-size: 11px; }
  .settings-row { grid-template-columns: 87px 1fr; gap: 10px; font-size: 14px; }
  .settings-row > :last-child { font-size: 13px; }
  .settings-actions { gap: 13px; }
  .settings-actions .button { padding-inline: 23px; font-size: 14px; }
  .auth-card { padding: 29px 24px; }
  .auth-card h1 { font-size: 23px; }
  .code-control { gap: 9px; }
  .code-control .button { min-width: 105px; font-size: 12px; }
  .phone-prefix { padding-inline: 12px; }
  .phone-control input { font-size: 14px; }
  .help-nav { gap: 25px; }
  .help-nav a { font-size: 13px; }
  .help-section h2 { font-size: 21px; }
  .help-section p { font-size: 15px; }
  .contact-form { padding: 23px; }
  .contact-aside { gap: 28px; }
  .contact-aside a { font-size: 14px; }
  .task-surface { padding: 23px 19px 30px; }
  .task-title { align-items: flex-start; margin-bottom: 30px; }
  .task-title h1 { font-size: 16px; }
  .task-center h2 { font-size: 21px; }
  .task-stages li { font-size: 11px; }
  .preview-tools { bottom: 13px; right: 13px; }
  .preview-panel { width: min(318px, calc(100vw - 26px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: white; }
  body::before, .preview-tools, .toast, .site-header, .site-footer, .reading-actions { display: none; }
  .container { width: 100%; }
  .prose { width: 100%; padding: 20px 0; border: 0; }
}
