.fpm {
    --manual-bg: #f7f8f8;
    --manual-panel: #fff;
    --manual-soft: #fbefe2;
    --manual-ink: #17222c;
    --manual-muted: #465964;
    --manual-accent: #863907;
    --manual-line: #d6e0e4;
    max-width: 1200px;
    margin: 24px auto 65px;
    padding: clamp(14px,3vw,32px);
    background: var(--manual-bg);
    color: var(--manual-ink);
    border-radius: 22px;
    font-family: var(--ds-font-body, system-ui, sans-serif);
}
html[data-theme="dark"] .fpm {
    --manual-bg: #101b25;
    --manual-panel: #172633;
    --manual-soft: #30281f;
    --manual-ink: #f0f6fa;
    --manual-muted: #c6d4dc;
    --manual-accent: #ffbc88;
    --manual-line: #405563;
}
.fpm *, .fpm *::before { box-sizing: border-box; }
.fpm :is(h1,h2,h3,strong,summary,dt) { color: var(--manual-ink); }
.fpm :is(h1,h2,h3) { font-family: var(--ds-font-heading, system-ui, sans-serif); line-height: 1.14; letter-spacing: -.025em; margin: 0 0 15px; }
.fpm h1 { font-size: clamp(2.45rem,5vw,4.6rem); }
.fpm h2 { font-size: clamp(1.55rem,3vw,2.4rem); }
.fpm h3 { font-size: 1.22rem; margin-top: 24px; }
.fpm :is(p,ol,dl) { color: var(--manual-muted); line-height: 1.68; margin: 0 0 14px; }
.fpm ol { padding-inline-start: 1.4em; }
.fpm li + li { margin-top: .55em; }
.fpm a { color: var(--manual-accent); text-underline-offset: .2em; }
.fpm a:focus-visible, .fpm summary:focus-visible { outline: 3px solid var(--manual-accent); outline-offset: 3px; }
.fpm-intro, .fpm-footer { padding: clamp(20px,4vw,45px); border-radius: 21px; background: var(--manual-soft); border: 1px solid var(--manual-line); }
.fpm-intro > p { max-width: 65ch; }
.fpm .fpm-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--manual-ink); }
.fpm-brand img { border-radius: 12px; }
.fpm-links { display: flex; flex-wrap: wrap; gap: 10px; }
.fpm-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--manual-line); border-radius: 9px; background: var(--manual-panel); font-weight: 700; }
.fpm-layout { display: grid; grid-template-columns: minmax(210px, .9fr) minmax(0,3fr); gap: clamp(16px,3vw,34px); align-items: start; margin: 25px 0; }
.fpm-toc { position: sticky; top: 105px; background: var(--manual-panel); border: 1px solid var(--manual-line); border-radius: 15px; padding: 18px; }
.fpm-toc h2 { font-size: 1.2rem; }
.fpm-toc ol { margin-bottom: 0; font-size: .91rem; }
.fpm .fpm-chapters > section { background: var(--manual-panel); border: 1px solid var(--manual-line); border-radius: 17px; padding: clamp(17px,3vw,32px); scroll-margin-top: 105px; }
.fpm-chapters > section + section { margin-top: 14px; }
.fpm-with-screen { display: grid; grid-template-columns: minmax(0,1fr) minmax(145px,200px); gap: 18px; align-items: start; }
.fpm .fpm-screen { margin: 0 0 12px; text-align: center; }
.fpm-screen img { display: block; width: min(100%,200px); height: auto; margin: 0 auto 7px; border: 5px solid #18242d; border-radius: 21px; }
.fpm-screen figcaption { color: var(--manual-muted); font-size: .75rem; }
.fpm .fpm-tip { border-inline-start: 4px solid var(--manual-accent); padding: 10px 14px; background: var(--manual-soft); }
.fpm dd { margin: 0 0 10px; }
.fpm dt, .fpm summary { font-weight: 750; }
.fpm details { padding: 10px 0; border-top: 1px solid var(--manual-line); }
.fpm details p { margin-top: 8px; }
.fpm summary { cursor: pointer; }
@media(max-width: 800px) {
    .fpm-layout { grid-template-columns: 1fr; }
    .fpm-toc { position: static; }
}
@media(max-width: 520px) {
    .fpm { margin: 12px 7px 36px; }
    .fpm-with-screen { grid-template-columns: 1fr; }
}
