/* impact — Resources: list, Medium-like article reader, and the admin editor (same .post-body styles). */

/* ---- Topic colours ---- */
.rs-topic-corporate-finance { --t-bg: #E1EEF3; --t-fg: #133550; }
.rs-topic-ai-industry-4-0 { --t-bg: #F9DDE3; --t-fg: #A82440; }
.rs-topic-sustainability-dpp { --t-bg: #FBEBD3; --t-fg: #8A5300; }
.rs-topic-it { --t-bg: #E6EDF2; --t-fg: #0C1E2E; }
.rs-topic-how-we-work { --t-bg: #F3E3EC; --t-fg: #7A1E3D; }

/* ---- List page ---- */
.rs-hero .hero-inner { padding-top: 72px; padding-bottom: 72px; }
.rs-hero h1 { max-width: 16ch; }
.rs-list { padding-top: 40px; }
.rs-filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.rs-kinds { display: inline-flex; background: var(--c-ice, #E1EEF3); border-radius: 12px; padding: 4px; gap: 2px; }
.rs-kinds > span { padding: 8px 16px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--c-muted, #4A6274); }
.rs-kinds .is-on { background: var(--c-deep, #0C1E2E); color: #fff; }
.rs-kinds .is-soon { opacity: .75; cursor: default; }
.rs-kinds small { font-size: 11px; font-weight: 500; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chips a { padding: 6px 13px; border: 1px solid var(--c-line, #D3E2E8); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--c-deep, #0C1E2E); text-decoration: none; }
.rs-chips a.is-on { background: var(--c-deep, #0C1E2E); border-color: var(--c-deep, #0C1E2E); color: #fff; }
.rs-empty { padding: 40px 0; }

.rs-card { background: #fff; border: 1px solid var(--c-line, #D3E2E8); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.rs-card:hover { box-shadow: 0 10px 28px rgba(12, 30, 46, .10); transform: translateY(-2px); }
.rs-card-media { position: relative; display: block; aspect-ratio: 16 / 8; background: var(--c-navy, #133550); }
.rs-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rs-card h3 { font-size: 19px; line-height: 1.25; margin: 0; }
.rs-card h3 a { color: inherit; text-decoration: none; }
.rs-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rs-dek { font-family: 'Source Serif 4', Georgia, serif; color: var(--c-muted, #4A6274); font-size: 15.5px; line-height: 1.5; margin: 0; }
.rs-meta { margin: auto 0 0; font-size: 13px; color: var(--c-muted, #4A6274); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rs-meta strong { color: var(--c-deep, #0C1E2E); }
.rs-topic { position: absolute; left: 14px; bottom: 12px; background: #fff; color: var(--t-fg, #133550); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.rs-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.rs-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--t-bg, #E1EEF3); color: var(--t-fg, #133550); text-decoration: none; }
.rs-badge-feat { background: var(--c-amber, #F7C076); color: #3a2a00; }
.rs-kicker { margin: 0; font-size: 12px; font-weight: 700; color: var(--t-fg, #133550); }

.rs-card-big { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 28px; box-shadow: 0 6px 24px rgba(12, 30, 46, .06); }
.rs-card-big .rs-card-media { aspect-ratio: auto; min-height: 300px; }
.rs-card-big .rs-card-body { padding: 36px; justify-content: center; gap: 14px; }
.rs-card-big h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.01em; }
.rs-card-big .rs-dek { font-size: 18px; }
.rs-card-big .rs-meta { margin-top: 4px; font-size: 14px; }
.rs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rs-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rs-card-mini .rs-card-media { aspect-ratio: 16 / 6; }
.rs-card-mini h3 { font-size: 16px; }
@media (max-width: 1100px) { .rs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .rs-card-big { grid-template-columns: 1fr; }
  .rs-card-big .rs-card-media { min-height: 200px; }
  .rs-card-big .rs-card-body { padding: 22px; }
  .rs-grid, .rs-grid-3 { grid-template-columns: 1fr; }
}

/* ---- Avatars ---- */
.rs-avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-aqua, #93CFDC); color: var(--c-deep, #0C1E2E); font-size: 11px; font-weight: 800; font-family: var(--font-display); flex: none; }
.rs-avatar-lg { width: 44px; height: 44px; font-size: 15px; }
.rs-avatar-xl { width: 64px; height: 64px; font-size: 20px; }

/* ---- Article ---- */
.rs-preview-bar { background: var(--c-amber, #F7C076); color: #3a2a00; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.rs-preview-bar a { color: inherit; }
.rs-article { max-width: 740px; margin: 0 auto; padding: 40px var(--gutter, 24px) 24px; }
.rs-crumbs { font-size: 13px; color: var(--c-muted, #4A6274); margin-bottom: 18px; }
.rs-crumbs a { color: inherit; }
.rs-head h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 12px; }
.rs-subtitle { font-family: 'Source Serif 4', Georgia, serif; font-size: 21px; line-height: 1.45; color: var(--c-muted, #4A6274); margin: 0 0 22px; }
.rs-byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--c-line, #D3E2E8); border-bottom: 1px solid var(--c-line, #D3E2E8); margin-bottom: 28px; }
.rs-byline-text { display: flex; flex-direction: column; font-size: 15px; }
.rs-byline-text small { color: var(--c-muted, #4A6274); font-size: 13px; }
.rs-profile-link { color: var(--c-coral-text, #B03E28); font-size: 13px; font-weight: 600; margin-left: 6px; }
.rs-share { margin-left: auto; display: flex; gap: 8px; }
.rs-share-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-line, #D3E2E8); background: #fff; display: inline-grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--c-deep, #0C1E2E); text-decoration: none; cursor: pointer; font-family: var(--font-display); line-height: 1; }
.rs-share-btn:hover { border-color: var(--c-deep, #0C1E2E); }
.rs-share-btn[hidden] { display: none; }
.rs-cover { margin: 0 0 32px; }
.rs-cover img { width: 100%; border-radius: 16px; display: block; aspect-ratio: 16 / 9; object-fit: cover; background: var(--c-navy, #133550); }
.rs-cover figcaption, .post-body figcaption { font-size: 13px; color: var(--c-muted, #4A6274); text-align: center; margin-top: 8px; font-family: var(--font-body); }
.rs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 20px; }
.rs-tags span { background: var(--c-ice, #E1EEF3); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.rs-sources { background: var(--c-ice, #E1EEF3); border-radius: 12px; padding: 12px 18px; margin-bottom: 28px; font-size: 14px; }
.rs-sources summary { font-weight: 700; cursor: pointer; }
.rs-sources ol { margin: 10px 0 4px; padding-left: 22px; }
.rs-sources li { margin: 6px 0; }
.rs-sources li:target { background: #fff7e3; }
.rs-author-card { display: flex; align-items: center; gap: 18px; border: 1px solid var(--c-line, #D3E2E8); background: #fff; border-radius: 18px; padding: 22px 24px; margin-bottom: 20px; }
.rs-author-card > div { flex: 1; }
.rs-author-card small { color: var(--c-muted, #4A6274); font-size: 12px; }
.rs-author-card strong { display: block; font-size: 18px; font-family: var(--font-display); }
.rs-author-card p { margin: 4px 0 0; font-size: 14px; color: var(--c-muted, #4A6274); }
.rs-more { padding-top: 48px; }
.rs-more-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.rs-more-head h2 { font-size: 24px; margin: 0; }
.rs-more-head a { color: var(--c-coral-text, #B03E28); font-weight: 600; text-decoration: none; }
@media (max-width: 640px) {
  .rs-byline { flex-wrap: wrap; }
  .rs-share { margin-left: 0; width: 100%; }
  .rs-author-card { flex-direction: column; align-items: flex-start; }
}

/* ---- Body typography (reader + editor) ---- */
.post-body { font-family: 'Source Serif 4', Georgia, serif; font-size: 20px; line-height: 1.7; color: #1c2b36; }
.post-body > p:first-of-type::first-letter { float: left; font-family: var(--font-display); font-weight: 800; font-size: 3.6em; line-height: .82; margin: .08em .1em 0 0; color: var(--c-coral, #C24931); }
.post-body p { margin: 0 0 1.25em; }
.post-body h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.2; letter-spacing: -.01em; margin: 1.6em 0 .55em; color: var(--c-deep, #0C1E2E); }
.post-body h3 { font-family: var(--font-display); font-size: 21px; margin: 1.4em 0 .5em; color: var(--c-deep, #0C1E2E); }
.post-body a { color: var(--c-ocean, #255F7F); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { margin: 0 0 1.25em; padding-left: 1.3em; }
.post-body li { margin: .35em 0; }
.post-body hr { border: 0; text-align: center; margin: 2em 0; }
.post-body hr::before { content: "···"; letter-spacing: .6em; color: var(--c-muted, #4A6274); }
.post-body code { font-family: ui-monospace, monospace; font-size: .85em; background: var(--c-ice, #E1EEF3); padding: .1em .35em; border-radius: 4px; }
.post-body sup.ref { font-size: .62em; line-height: 0; }
.post-body sup.ref a { text-decoration: none; font-family: var(--font-body); font-weight: 600; }
.post-body blockquote.pullquote { margin: 1.6em 0; padding: .1em 0 .1em 22px; border-left: 4px solid var(--c-coral, #C24931); }
.post-body blockquote.pullquote p { font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.3; color: var(--c-deep, #0C1E2E); margin: 0; letter-spacing: -.01em; }
.post-body .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1.6em 0; }
.post-body .stat { border-radius: 14px; padding: 16px 16px 14px; background: #EEF6F9; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-body); }
.post-body .stat:nth-child(3n+2) { background: #FBE3DE; }
.post-body .stat:nth-child(3n+3) { background: #FCF0DC; }
.post-body .stat .value { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; color: var(--c-ocean, #255F7F); }
.post-body .stat:nth-child(3n+2) .value { color: var(--c-coral, #C24931); }
.post-body .stat:nth-child(3n+3) .value { color: #A0630E; }
.post-body .stat .label { font-size: 14px; line-height: 1.35; color: var(--c-deep, #0C1E2E); }
.post-body .stat .source { font-size: 11.5px; color: var(--c-muted, #4A6274); }
.post-body aside.callout { background: #EEF6F9; border: 1px solid var(--c-line, #D3E2E8); border-radius: 14px; padding: 16px 20px; margin: 1.6em 0; font-size: 18px; }
.post-body aside.callout p:last-child { margin-bottom: 0; }
.post-body figure { margin: 1.8em 0; }
.post-body figure img { width: 100%; border-radius: 12px; border: 1px solid var(--c-line, #D3E2E8); background: #fff; display: block; }
@media (max-width: 640px) {
  .post-body { font-size: 18px; }
  .post-body blockquote.pullquote p { font-size: 21px; }
}

/* ---- Admin: list ---- */
.pa-kpi-text { font-size: 15px !important; line-height: 1.3 !important; padding-top: 4px; }
.pa-post { display: flex; align-items: center; gap: 12px; }
.pa-post > span:last-child { display: flex; flex-direction: column; }
.pa-thumb { width: 64px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--c-navy, #133550) url('/assets/backgrounds/flow-dark.webp') center / cover; flex: none; }
.pa-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-star { color: #C98A1B; font-size: 16px; }
.pa-table .rs-badge { white-space: nowrap; }

/* ---- Admin: editor ---- */
.pa-muted { color: var(--c-muted, #4A6274); font-size: 13px; }
.pa-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--c-line, #D3E2E8); }
.pa-crumbs { margin: 0 0 4px; font-size: 13px; color: var(--c-muted, #4A6274); }
.pa-crumbs a { color: var(--c-ocean, #255F7F); font-weight: 600; text-decoration: none; }
.pa-head h1 { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 28px; }
.pa-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #E6EDF2; color: #4F6475; font-family: var(--font-body); letter-spacing: 0; }
.pa-status.is-live { background: #DDEFD9; color: #2F6B2A; }
.pa-saved { font-size: 13px; font-weight: 500; color: var(--c-muted, #4A6274); font-family: var(--font-body); }
.pa-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pa-actions .btn { border-radius: 999px; }

.pa-ai { border: 1px solid #F3DDBB; border-radius: 22px; padding: 22px 24px 24px; margin-bottom: 22px; background: linear-gradient(120deg, #fff 0%, #fff 55%, #FDF3E6 100%); }
.pa-ai-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; margin-bottom: 18px; }
.pa-ai-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--c-deep, #0C1E2E); color: var(--c-amber, #F7C076); display: grid; place-items: center; font-size: 20px; }
.pa-ai-head h2 { font-size: 21px; margin: 0 0 2px; }
.pa-ai-head p { margin: 0; font-size: 13px; color: var(--c-muted, #4A6274); }
.pa-ai-guide { font-size: 13px; font-weight: 700; color: var(--c-ocean, #255F7F); text-decoration: none; white-space: nowrap; padding-top: 12px; }
.pa-ai-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 26px; }
.pa-ai h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 12px; }
.pa-step { width: 24px; height: 24px; border-radius: 50%; background: var(--c-deep, #0C1E2E); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; }
.pa-ai .field { margin-bottom: 12px; }
.pa-ai .field > label > span, .pa-label, .pa-side .field > label > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--c-deep, #0C1E2E); }
.pa-label small, .pa-side .field small { font-weight: 500; color: var(--c-muted, #4A6274); }
.pa-label-row { display: flex !important; justify-content: space-between; }
.pa-ai input[type=text], .pa-ai select, .pa-ai textarea, .pa-side input[type=text], .pa-side select, .pa-side textarea { width: 100%; border: 1px solid var(--c-line, #D3E2E8); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; background: #fff; }
.pa-side input[type=text], .pa-side select, .pa-side textarea { background: #F4F8FA; }
.pa-side input[readonly] { color: var(--c-muted, #4A6274); }
.pa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pa-chip { display: inline-flex; cursor: pointer; position: relative; }
.pa-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pa-chip span { padding: 6px 13px; border: 1px solid var(--c-line, #D3E2E8); border-radius: 999px; font-size: 13px; font-weight: 600; background: #fff; }
.pa-chip input:checked + span { background: var(--c-deep, #0C1E2E); border-color: var(--c-deep, #0C1E2E); color: #fff; }
.pa-chip input:focus-visible + span { outline: 2px solid var(--c-ocean, #255F7F); outline-offset: 2px; }
.pa-copy-btn { width: 100%; justify-content: center; padding: 13px 18px; font-size: 16px; border-radius: 12px; margin: 4px 0 18px; }
.pa-included { list-style: none; padding: 0; margin: 0 0 12px; font-size: 13px; }
.pa-included li { padding: 3px 0 3px 22px; position: relative; }
.pa-included li::before { content: "✓"; position: absolute; left: 2px; color: #3E8A4F; font-weight: 800; }
.pa-prompt { font-size: 13px; }
.pa-prompt summary { cursor: pointer; color: var(--c-ocean, #255F7F); font-weight: 700; }
.pa-prompt pre { max-height: 320px; overflow: auto; white-space: pre-wrap; background: #F4F8FA; border: 1px solid var(--c-line, #D3E2E8); border-radius: 10px; padding: 12px; font-size: 12px; }
.pa-estimate { font-size: 12px; color: var(--c-muted, #4A6274); margin: 10px 0 0; }
.pa-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed #9CCFDA; border-radius: 14px; background: rgba(255,255,255,.7); text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.pa-drop:hover, .pa-drop.is-over { background: #EEF7FA; border-color: var(--c-ocean, #255F7F); }
.pa-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pa-drop-icon { font-size: 20px; color: var(--c-ocean, #255F7F); }
.pa-drop strong { font-size: 14px; }
.pa-drop small { font-size: 12px; color: var(--c-muted, #4A6274); }
.pa-report { margin-top: 14px; border-radius: 14px; padding: 14px; background: #fff; border: 1px solid var(--c-line, #D3E2E8); }
.pa-report.is-bad { background: #FDF1EE; border-color: #F1C4B9; }
.pa-report-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.pa-report-head img { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.pa-report-head strong { display: block; font-size: 14px; word-break: break-all; }
.pa-report-head small { font-size: 12px; color: var(--c-muted, #4A6274); }
.pa-report-title { margin: 0 0 8px; font-family: 'Source Serif 4', Georgia, serif; font-size: 15px; }
.pa-checks { list-style: none; padding: 0; margin: 0 0 12px; font-size: 13px; max-height: 260px; overflow: auto; }
.pa-checks li { display: flex; gap: 8px; padding: 3px 0; line-height: 1.35; }
.pa-checks span { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; }
.pa-check-ok span { background: #D5EEDD; color: #1E6B3A; }
.pa-check-warn span { background: #FBE2B8; color: #8A5300; }
.pa-check-error span { background: #F6CFC6; color: #9B2A14; }
.pa-check-info span { background: #E1EEF3; color: #1D3F55; }
.pa-report .btn { border-radius: 999px; }

.pa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.pa-doc { background: #fff; border: 1px solid var(--c-line, #D3E2E8); border-radius: 22px; overflow: clip; }
.pa-doc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: #F4F8FA; border-bottom: 1px solid var(--c-line, #D3E2E8); }
.pa-doc-title { font-size: 13px; color: var(--c-muted, #4A6274); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-doc-title strong { color: var(--c-deep, #0C1E2E); }
.pa-doc-actions { display: flex; gap: 8px; flex: none; }
.pa-doc-actions .btn { border-radius: 999px; }
.pa-toolbar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--c-line, #D3E2E8); }
.pa-toolbar button { min-width: 36px; height: 34px; border: 0; background: none; border-radius: 8px; padding: 0 8px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--c-deep, #0C1E2E); }
.pa-toolbar button:hover { background: #EEF4F7; }
.pa-toolbar button.is-on { background: var(--c-deep, #0C1E2E); color: #fff; }
.pa-toolbar button:disabled { opacity: .3; cursor: default; }
.pa-sep { width: 1px; background: var(--c-line, #D3E2E8); margin: 4px 6px; }
.pa-paper { padding: 32px 40px 28px; }
.pa-title, .pa-subtitle { display: block; width: 100%; border: 0; resize: none; overflow: hidden; background: none; padding: 0; }
.pa-title { font-family: var(--font-display); font-size: 36px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--c-deep, #0C1E2E); margin-bottom: 10px; }
.pa-subtitle { font-family: 'Source Serif 4', Georgia, serif; font-size: 21px; line-height: 1.4; color: var(--c-muted, #4A6274); margin-bottom: 20px; }
.pa-title:focus, .pa-subtitle:focus { outline: none; }
.pa-title::placeholder, .pa-subtitle::placeholder { color: #A9BAC5; }
.pa-cover { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 4.2; background: var(--c-navy, #133550) url('/assets/backgrounds/flow-dark.webp') center / cover; }
.pa-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-cover.is-empty { aspect-ratio: 16 / 3; opacity: .85; }
.pa-cover-btn { position: absolute; right: 12px; bottom: 12px; background: #fff; color: var(--c-deep, #0C1E2E); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pa-cover-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pa-cover-btn:focus-within { outline: 2px solid var(--c-aqua, #93CFDC); }
.pa-cover-meta { margin: 8px 0 22px; font-size: 13px; }
.pa-cover-meta summary { cursor: pointer; color: var(--c-muted, #4A6274); }
.pa-cover-meta input[type=text] { width: 100%; margin-top: 8px; border: 1px solid var(--c-line, #D3E2E8); border-radius: 8px; padding: 7px 10px; font: inherit; }
.pa-editor { min-height: 360px; font-size: 19px; }
.pa-editor:focus { outline: none; }
.pa-editor:empty::before { content: "Start writing — or generate a draft with AI above."; color: #A9BAC5; }
.pa-html { width: 100%; min-height: 420px; font-family: ui-monospace, monospace; font-size: 13px; border: 1px solid var(--c-line, #D3E2E8); border-radius: 10px; padding: 14px; }
.pa-hint { font-size: 12px; color: var(--c-muted, #4A6274); margin: 18px 0 0; padding: 10px 12px; border: 1px dashed var(--c-line, #D3E2E8); border-radius: 10px; }
.pa-mono { font-family: ui-monospace, monospace; font-size: 12px !important; }

.pa-side { display: flex; flex-direction: column; gap: 14px; }
.pa-card { background: #fff; border: 1px solid var(--c-line, #D3E2E8); border-radius: 18px; padding: 16px 18px; }
.pa-card h3 { font-size: 16px; margin: 0 0 10px; }
.pa-card .field { margin-bottom: 12px; }
.pa-static { background: #F4F8FA; border: 1px solid var(--c-line, #D3E2E8); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.pa-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pa-tag { display: inline-flex; align-items: center; gap: 4px; background: #EEF4F7; border: 1px solid var(--c-line, #D3E2E8); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 12.5px; font-weight: 600; }
.pa-tag button { border: 0; background: none; cursor: pointer; font-size: 13px; line-height: 1; padding: 0 4px; color: var(--c-muted, #4A6274); }
.pa-side .pa-tag-input { width: 90px; border-style: dashed; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; background: #fff; }
.pa-switch { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 10px 0; cursor: pointer; }
.pa-switch small { color: var(--c-muted, #4A6274); }
.pa-switch input { position: absolute; opacity: 0; }
.pa-switch span { width: 34px; height: 20px; border-radius: 999px; background: #C9D6DE; position: relative; flex: none; transition: background .15s; }
.pa-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.pa-switch input:checked + span { background: var(--c-ocean, #255F7F); }
.pa-switch input:checked + span::after { transform: translateX(14px); }
.pa-switch input:focus-visible + span { outline: 2px solid var(--c-aqua, #93CFDC); outline-offset: 2px; }
.pa-btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; }
.pa-danger { display: flex; gap: 18px; padding: 12px 18px; }
.pa-link-danger { border: 0; background: none; padding: 0; color: var(--c-error-fg, #9B2A14); font-weight: 700; font-size: 14px; cursor: pointer; }
.pa-link-danger:hover { text-decoration: underline; }
@media (max-width: 1200px) {
  .pa-ai-grid { grid-template-columns: 1fr 1fr; }
  .pa-import { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .pa-layout, .pa-ai-grid, .pa-row { grid-template-columns: 1fr; }
  .pa-ai-head { grid-template-columns: auto 1fr; }
  .pa-ai-guide { grid-column: 2; padding-top: 0; }
  .pa-paper { padding: 24px 20px; }
}
