/* ==========================================================================
   OutlineNest — Meeting Preparation Center (v1.35.0)
   Optional workspace and a separate, light meeting reading view.
   ========================================================================== */

.mp {
  --mp-bg: var(--bg);
  --mp-surface: var(--surface);
  --mp-surface-2: var(--surface-2);
  --mp-ink: var(--ink);
  --mp-ink-2: var(--ink-2);
  --mp-muted: var(--slate);
  --mp-line: var(--line);
  --mp-line-2: var(--line-2);
  --mp-gold: var(--gold);
  --mp-gold-soft: var(--gold-soft);
  --mp-danger: var(--danger);
  --mp-ok: var(--ok);
  --mp-shadow: var(--shadow-sm);
  background: var(--mp-bg);
  color: var(--mp-ink);
  border: 1px solid var(--mp-line);
  border-radius: 20px;
  padding: clamp(16px, 2vw, 26px);
  font-size: var(--mp-size, 17px);
}
.mp--light {
  --mp-bg: #faf8f3; --mp-surface: #ffffff; --mp-surface-2: #f5f1e8;
  --mp-ink: #17202e; --mp-ink-2: #3c4b5e; --mp-muted: #55677d;
  --mp-line: #e2dbcd; --mp-line-2: #d3cab8; --mp-gold: #a9813f; --mp-gold-soft: #f4e9d2;
  --mp-danger: #a33224; --mp-ok: #2f6b4f;
}
.mp--dark {
  --mp-bg: #0d1521; --mp-surface: #111c2c; --mp-surface-2: #152235;
  --mp-ink: #e9eef7; --mp-ink-2: #c3cedd; --mp-muted: #9daec4;
  --mp-line: #22314a; --mp-line-2: #2c3f5e; --mp-gold: #d8b473; --mp-gold-soft: #2c2618;
  --mp-danger: #f08a7c; --mp-ok: #7fd0a3;
}
.mp * { box-sizing: border-box; }
.mp h1, .mp h2, .mp h3, .mp h4 { color: var(--mp-ink); }
.mp p { color: var(--mp-ink-2); }
.mp .input, .mp .select, .mp textarea, .mp input { background: var(--mp-surface); color: var(--mp-ink); border-color: var(--mp-line-2); }
.mp .input:focus, .mp .select:focus, .mp textarea:focus { border-color: var(--mp-gold); outline-color: var(--mp-gold); }
.mp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.mp-head h1 { font-family: var(--reading-font); font-weight: 400; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 2px 0 6px; }
.mp-head p { margin: 0; max-width: 66ch; font-size: 14px; line-height: 1.6; }
.mp-eyebrow { margin: 0; color: var(--mp-gold) !important; font-size: 10.5px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.mp-head__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-head__actions .btn { min-height: 40px; }
.mp-toolbar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--mp-line); border-radius: 13px; background: var(--mp-surface-2); margin-bottom: 16px; }
.mp-weeknav { display: flex; align-items: center; gap: 3px; }
.mp-weeknav .mp-icon { width: 34px; height: 34px; font-size: 20px; }
.mp-field { display: grid; gap: 5px; min-width: 0; }
.mp-field > span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mp-muted); }
.mp-field small { color: var(--mp-muted); font-size: 11.5px; line-height: 1.5; }
.mp-field--inline { min-width: 132px; }
.mp-field--inline .input, .mp-field--inline .select { min-height: 34px; font-size: 12.5px; }
.mp-field--wide { grid-column: 1 / -1; }
.mp-toolbar__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mp-count { font-size: 11.5px; font-weight: 700; color: var(--mp-muted); white-space: nowrap; }
.mp-body { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 16px; align-items: start; }
.mp-body.has-prefs { grid-template-columns: 220px minmax(0, 1fr) 300px; }
.mp-history { border: 1px solid var(--mp-line); border-radius: 14px; background: var(--mp-surface); padding: 12px; position: sticky; top: 12px; }
.mp-history__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mp-history__head h2 { font-size: 13px; letter-spacing: .02em; }
.mp-history__head span { font-size: 10.5px; color: var(--mp-muted); }
.mp-search { display: flex; align-items: center; gap: 7px; border: 1px solid var(--mp-line-2); border-radius: 9px; background: var(--mp-surface-2); padding: 0 9px; }
.mp-search svg { width: 15px; height: 15px; color: var(--mp-muted); flex: none; }
.mp-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 0; font-size: 12px; outline: 0; }
.mp-history__list { display: grid; gap: 5px; margin-top: 10px; max-height: 52vh; overflow: auto; }
.mp-history__row { display: grid; gap: 3px; width: 100%; text-align: left; padding: 9px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--mp-ink); }
.mp-history__row:hover { background: var(--mp-surface-2); }
.mp-history__row.is-on { border-color: var(--mp-gold); background: var(--mp-gold-soft); }
.mp-history__date { font-size: 12.5px; font-weight: 700; }
.mp-history__meta { font-size: 11px; color: var(--mp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-history__foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 10px; color: var(--mp-muted); }
.mp-lang { margin-left: auto; font-size: 9.5px; letter-spacing: .08em; }
.mp-privacy { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; padding: 10px 12px; border: 1px dashed var(--mp-line-2); border-radius: 10px; color: var(--mp-muted); font-size: 11px; line-height: 1.55; }
.mp-privacy svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.mp-workspace { min-width: 0; display: grid; gap: 14px; }
.mp-weekhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--mp-line); padding-bottom: 12px; }
.mp-weekhead h2 { font-family: var(--reading-font); font-weight: 400; font-size: clamp(22px, 3vw, 30px); margin: 2px 0 6px; line-height: 1.2; overflow-wrap: anywhere; }
.mp-weekhead__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--mp-muted); }
.mp-weekhead__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-meeting { display: grid; gap: 10px; }
.mp-meeting + .mp-meeting { margin-top: 12px; padding-top: 18px; border-top: 2px solid var(--mp-line); }
.mp-meeting__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mp-meeting__head h2 { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--mp-gold); }
.mp-meeting__head p { margin: 3px 0 0; font-size: 11.5px; max-width: 72ch; }
.mp-meeting__source { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-meeting__source a { font-size: 11.5px; font-weight: 700; color: var(--mp-gold); }
.mp-titlefield { display: grid; gap: 4px; }
.mp-titlefield > span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mp-muted); }
.mp-titlefield .input { font-family: var(--reading-font); font-size: 18px; min-height: 40px; }
.mp-section { border: 1px solid var(--mp-line); border-radius: 14px; background: var(--mp-surface); padding: 14px; box-shadow: var(--mp-shadow); }
.mp-section__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mp-section__head h2 { font-size: 15px; margin: 0 0 2px; }
.mp-section__head p { margin: 0; font-size: 11.5px; color: var(--mp-muted); line-height: 1.5; }
.mp-section__tools { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mp-items { display: grid; gap: 8px; }
.mp-item { border: 1px solid var(--mp-line); border-left: 3px solid var(--mp-gold); border-radius: 10px; background: var(--mp-surface-2); padding: 10px 12px; }
.mp-item__head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.mp-item__label { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-gold); }
.mp-item__text { color: var(--mp-ink); font-size: calc(var(--mp-size) - 2px); line-height: var(--mp-leading, 1.7); overflow-wrap: anywhere; }
.mp-item__text p { margin: 0 0 var(--mp-space, 8px); }
.mp-refs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.mp-ref { display: inline; padding: 0 2px; border: 0; border-bottom: 1px dotted var(--mp-gold); background: transparent; color: var(--mp-gold); font: inherit; font-weight: 600; cursor: pointer; }
.mp-ref:hover { background: var(--mp-gold-soft); }
.mp-comments { display: grid; gap: 7px; margin: 8px 0 0; }
.mp-comment { border: 1px solid var(--mp-line); border-radius: 10px; background: var(--mp-surface); padding: 10px 11px; }
.mp-comment.is-highlighted { background: color-mix(in srgb, var(--mp-highlight, #f0d27a) 24%, var(--mp-surface)); border-color: var(--mp-gold); }
.mp-comment.is-favorite { border-left: 3px solid var(--mp-gold); }
.mp-comment__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.mp-comment__category { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--mp-gold); }
.mp-comment__label { font-size: 10.5px; color: var(--mp-muted); }
.mp-star { color: var(--mp-gold); font-size: 13px; }
.mp-mark { width: 12px; height: 12px; border-radius: 3px; background: var(--mp-highlight); border: 1px solid var(--mp-gold); }
.mp-sp { flex: 1; }
.mp-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--mp-muted); font-size: 14px; line-height: 1; }
.mp-icon:hover, .mp-icon.is-on { color: var(--mp-gold); background: var(--mp-gold-soft); }
.mp-icon--danger:hover { color: var(--mp-danger); background: transparent; }
.mp-icon--tiny { width: 20px; height: 20px; font-size: 12px; }
.mp-field__label { display: block; margin-bottom: 1px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mp-muted); }
.mp-field__value { color: var(--mp-ink); font-size: calc(var(--mp-size) - 3px); line-height: var(--mp-leading, 1.7); overflow-wrap: anywhere; }
.mp-field__value + .mp-field, .mp-comment .mp-field + .mp-field { margin-top: 6px; }
.mp-more { margin-top: 7px; border-top: 1px dashed var(--mp-line); padding-top: 5px; }
.mp-more summary { cursor: pointer; color: var(--mp-gold); font-size: 11px; font-weight: 700; }
.mp-more summary span { color: var(--mp-muted); }
.mp-more[open] summary { margin-bottom: 6px; }
.mp-comment__time { margin-top: 5px; font-size: 10px; color: var(--mp-muted); }
.mp-comment__foot { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; margin-top: 7px; border-top: 1px solid var(--mp-line); padding-top: 6px; }
.mp-link { border: 0; background: transparent; padding: 3px 6px; border-radius: 5px; color: var(--mp-muted); font-size: 11px; font-weight: 700; }
.mp-link:hover { color: var(--mp-gold); background: var(--mp-gold-soft); }
.mp-link--danger:hover { color: var(--mp-danger); }
.mp-add { border: 1px dashed var(--mp-line-2); border-radius: 8px; background: transparent; color: var(--mp-gold); font-size: 11.5px; font-weight: 700; padding: 6px 9px; min-height: 34px; }
.mp-add:hover { background: var(--mp-gold-soft); border-color: var(--mp-gold); }
.mp-add--inline { margin-top: 7px; }
.mp-empty-line { margin: 6px 0; color: var(--mp-muted); font-size: 12px; line-height: 1.55; }
.mp-note { display: grid; gap: 4px; margin-top: 9px; }
.mp-note > span { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mp-muted); }
.mp-note textarea { width: 100%; border: 1px solid var(--mp-line-2); border-radius: 8px; background: var(--mp-surface-2); padding: 8px 10px; resize: vertical; font-family: var(--reading-font); font-size: 14px; line-height: 1.6; min-height: 66px; }
.mp-section__foot { display: flex; justify-content: flex-start; margin-top: 8px; }
.mp-status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--mp-line-2); font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--mp-muted); white-space: nowrap; }
.mp-status--in-preparation { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); }
.mp-status--ready { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-soft); }
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 0 10px; border: 1px solid var(--mp-line-2); border-radius: 8px; background: var(--mp-surface); color: var(--mp-ink); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.mp-btn svg { width: 14px; height: 14px; }
.mp-btn:hover { border-color: var(--mp-gold); color: var(--mp-gold); }
.mp-btn--tiny { min-height: 30px; padding: 0 8px; font-size: 10.5px; }
.mp-btn--ghost { background: transparent; color: var(--mp-muted); }
.mp-prefs { border: 1px solid var(--mp-line); border-radius: 14px; background: var(--mp-surface); padding: 13px; position: sticky; top: 12px; }
.mp-prefs__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mp-prefs__head h2 { font-size: 14px; }
.mp-prefgrid { display: grid; gap: 9px; }
.mp-prefgrid .mp-field > span { text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.mp-color { width: 100%; height: 34px; border: 1px solid var(--mp-line-2); border-radius: 8px; background: var(--mp-surface); padding: 2px; }
.mp-prefs__block { margin-top: 14px; border-top: 1px solid var(--mp-line); padding-top: 11px; }
.mp-prefs__block h3 { font-size: 12px; margin-bottom: 7px; }
.mp-prefs__block h4 { margin: 0 0 4px; font-size: 10.5px; color: var(--mp-muted); text-transform: uppercase; letter-spacing: .05em; }
.mp-prefs__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-check { display: flex; align-items: flex-start; gap: 6px; padding: 4px 0; font-size: 11.5px; line-height: 1.4; cursor: pointer; }
.mp-check input { margin-top: 1px; accent-color: var(--mp-gold); }
.mp-categories { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 7px; }
.mp-category { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px 2px 7px; border: 1px solid var(--mp-line-2); border-radius: 999px; background: var(--mp-surface-2); font-size: 10.5px; }
.mp-inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mp-inline .input { flex: 1 1 130px; min-width: 0; min-height: 32px; }
.mp-inline--checks { margin-top: 6px; }
.mp-callout { display: flex; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--gold-soft); margin-bottom: 13px; }
.mp-callout svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
.mp-callout strong { display: block; font-size: 12.5px; margin-bottom: 2px; }
.mp-callout p { margin: 0; font-size: 12px; line-height: 1.6; }
.mp-loader__grid, .mp-commentform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mp-sourcegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.mp-sourcegrid a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); text-decoration: none; color: var(--ink); }
.mp-sourcegrid a:hover { border-color: var(--gold); }
.mp-sourcegrid svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.mp-sourcegrid b { display: block; font-size: 11.5px; }
.mp-sourcegrid small { display: block; font-size: 10px; color: var(--slate); }
.mp-loader__paste { display: grid; gap: 9px; }
.mp-loader__paste textarea { font-family: var(--reading-font); line-height: 1.55; }
.mp-preview { max-height: 190px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); padding: 9px 10px; }
.mp-preview__head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--slate); margin-bottom: 6px; }
.mp-preview__head strong { color: var(--ink); }
.mp-preview__list { display: grid; gap: 5px; }
.mp-preview__row { display: flex; gap: 7px; align-items: flex-start; font-size: 11.5px; line-height: 1.5; }
.mp-preview__kind { flex: none; min-width: 58px; color: var(--gold); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.mp-note-small { margin: 7px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--slate); }
.mp-start, .mp-locked { max-width: 620px; margin: 34px auto; text-align: center; display: grid; justify-items: center; gap: 9px; }
.mp-start__mark, .mp-locked .mp-start__mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--mp-line-2); background: var(--mp-surface); color: var(--mp-gold); }
.mp-start__mark svg { width: 28px; height: 28px; }
.mp-start h2, .mp-locked h1 { font-family: var(--reading-font); font-weight: 400; font-size: 27px; margin: 4px 0 0; }
.mp-start p, .mp-locked p { margin: 0; max-width: 55ch; font-size: 13px; line-height: 1.65; }
.mp-start__row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; width: 100%; max-width: 430px; text-align: left; margin-top: 6px; }
.mp-start__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 5px; }
.mp-locked { padding: 20px; }
.mp-locked .btn { margin-top: 7px; }
.mp--locked { display: grid; min-height: 54vh; place-items: center; }
.mp-commentform .mp-field textarea { font-family: var(--reading-font); line-height: 1.55; }
.mp-commentform .mp-field { gap: 4px; }
.mp-commentform .mp-field > span { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--ink); }
.mp-commentform .mp-field--wide { grid-column: 1 / -1; }
.mp-commentform .mp-link { padding-left: 0; }
.mp-category .mp-icon { width: 18px; height: 18px; }
.mp-sourcegrid + .mp-loader__paste { margin-top: 4px; }

/* reading mode — intentionally separate from the presentation stage */
.mp-read {
  --mp-bg: var(--bg); --mp-surface: var(--surface); --mp-surface-2: var(--surface-2);
  --mp-ink: var(--ink); --mp-ink-2: var(--ink-2); --mp-muted: var(--slate);
  --mp-line: var(--line); --mp-line-2: var(--line-2); --mp-gold: var(--gold); --mp-gold-soft: var(--gold-soft);
  position: fixed; inset: 0; z-index: 1150; display: flex; flex-direction: column;
  background: var(--mp-bg); color: var(--mp-ink); font-family: var(--ui-font);
}
.mp-read--light { --mp-bg: #faf8f3; --mp-surface: #fff; --mp-surface-2: #f5f1e8; --mp-ink: #17202e; --mp-ink-2: #3c4b5e; --mp-muted: #55677d; --mp-line: #e2dbcd; --mp-line-2: #d3cab8; --mp-gold: #a9813f; --mp-gold-soft: #f4e9d2; }
.mp-read--dark { --mp-bg: #0d1521; --mp-surface: #111c2c; --mp-surface-2: #152235; --mp-ink: #e9eef7; --mp-ink-2: #c3cedd; --mp-muted: #9daec4; --mp-line: #22314a; --mp-line-2: #2c3f5e; --mp-gold: #d8b473; --mp-gold-soft: #2c2618; }
.mp-read__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right)); border-bottom: 1px solid var(--mp-line); background: color-mix(in srgb, var(--mp-surface) 94%, transparent); backdrop-filter: blur(10px); flex: none; }
.mp-read__title { min-width: 0; display: grid; gap: 1px; }
.mp-read__title span { font-size: 9.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--mp-gold); }
.mp-read__title strong { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-read__tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.mp-read__tool { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 9px; border: 1px solid var(--mp-line-2); border-radius: 8px; background: var(--mp-surface); color: var(--mp-ink); font-size: 11.5px; font-weight: 700; text-decoration: none; }
.mp-read__tool.is-on { border-color: var(--mp-gold); color: var(--mp-gold); background: var(--mp-gold-soft); }
.mp-read__close { min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--navy); color: #f7f2e7; font-size: 12px; font-weight: 800; }
.mp-read__body { display: grid; grid-template-columns: 238px minmax(0, 1fr); flex: 1; min-height: 0; }
.mp-read__nav { overflow: auto; border-right: 1px solid var(--mp-line); padding: 14px 10px 28px; background: var(--mp-surface-2); }
.mp-read__navrow { display: block; width: 100%; text-align: left; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--mp-ink-2); font-size: 11.5px; line-height: 1.35; }
.mp-read__navrow:hover, .mp-read__navrow.is-on { background: var(--mp-gold-soft); color: var(--mp-gold); }
.mp-read__navgroup { display: grid; gap: 1px; margin-top: 11px; }
.mp-read__navgroup > span:first-child { padding: 0 8px 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-muted); }
.mp-read__none { padding: 0 8px; font-size: 10.5px; color: var(--mp-muted); }
.mp-read__status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 16px 8px 0; font-size: 10px; color: var(--mp-muted); }
.mp-read__note { margin: 14px 8px 0; font-size: 10px; line-height: 1.5; color: var(--mp-muted); }
.mp-read__page { overflow-y: auto; scroll-behavior: smooth; padding: 26px max(18px, env(safe-area-inset-right)) 80px max(18px, env(safe-area-inset-left)); }
.mp-read__intro, .mp-read__meeting, .mp-read__section, .mp-read__item, .mp-read__notes { max-width: var(--mp-width, 760px); margin-left: auto; margin-right: auto; }
.mp-read__intro { margin-bottom: 26px; border-bottom: 1px solid var(--mp-line); padding-bottom: 18px; }
.mp-read__intro h1 { font-family: var(--reading-font); font-weight: 400; font-size: calc(var(--mp-read-size, 19px) * 1.8); line-height: 1.2; margin: 3px 0 7px; }
.mp-read__intro p { margin: 0; font-size: 12.5px; color: var(--mp-muted); }
.mp-read__meeting { margin-top: 26px; }
.mp-read__meeting > h2 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mp-gold); border-bottom: 1px solid var(--mp-line); padding-bottom: 7px; margin-bottom: 14px; }
.mp-read__article { font-family: var(--reading-font); font-size: calc(var(--mp-read-size, 19px) * 1.15); color: var(--mp-ink); margin: 0 0 14px; }
.mp-read__section { margin-top: 22px; scroll-margin-top: 76px; }
.mp-read__section h3 { font-family: var(--reading-font); font-weight: 400; font-size: calc(var(--mp-read-size, 19px) * 1.35); margin-bottom: 9px; }
.mp-read__item { padding: 11px 0; border-top: 1px solid var(--mp-line); }
.mp-read__num { display: inline-block; margin-bottom: 2px; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--mp-gold); text-transform: uppercase; }
.mp-read__text { font-size: var(--mp-read-size, 19px); line-height: 1.75; color: var(--mp-ink); overflow-wrap: anywhere; }
.mp-read__notes { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--mp-gold); background: var(--mp-surface-2); font-size: calc(var(--mp-read-size, 19px) - 4px); line-height: 1.7; white-space: pre-wrap; }
.mp-read .mp-comment { margin-top: 10px; padding: 12px 13px; }
.mp-read .mp-field__value { font-size: calc(var(--mp-read-size, 19px) - 4px); line-height: 1.7; }
.mp-read .mp-comment__head { margin-bottom: 6px; }
.mp-read__bookmark { margin-top: 6px; }
.mp-read__empty { text-align: center; color: var(--mp-muted); font-size: 12px; }
.mp-read .mp-ref { font-size: inherit; }

@media (max-width: 1180px) {
  .mp-body.has-prefs { grid-template-columns: 210px minmax(0, 1fr); }
  .mp-body.has-prefs .mp-prefs { grid-column: 1 / -1; position: static; }
  .mp-prefgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mp-body, .mp-body.has-prefs { grid-template-columns: 1fr; }
  .mp-history { position: static; order: 2; }
  .mp-workspace { order: 1; }
  .mp-prefs { order: 3; position: static; }
  .mp-history__list { max-height: 220px; }
  .mp-read__body { grid-template-columns: 1fr; }
  .mp-read__nav { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--mp-line); padding: 8px 10px; }
  .mp-read__navgroup { display: flex; gap: 4px; margin: 0; align-items: center; }
  .mp-read__navgroup > span:first-child { display: none; }
  .mp-read__navrow { width: auto; white-space: nowrap; border: 1px solid var(--mp-line-2); border-radius: 999px; }
  .mp-read__status, .mp-read__note { display: none; }
  .mp-read__page { padding-top: 18px; }
}
@media (max-width: 680px) {
  .mp { border-radius: 0; border-left: 0; border-right: 0; margin-left: calc(clamp(16px, 3vw, 40px) * -1); margin-right: calc(clamp(16px, 3vw, 40px) * -1); padding: 14px; }
  .mp-head h1 { font-size: 27px; }
  .mp-head__actions { width: 100%; }
  .mp-head__actions .btn { flex: 1 1 auto; justify-content: center; }
  .mp-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .mp-toolbar .mp-weeknav { grid-column: 1 / -1; }
  .mp-toolbar__end { grid-column: 1 / -1; margin-left: 0; justify-content: space-between; }
  .mp-field--inline { min-width: 0; }
  .mp-weekhead__actions { width: 100%; }
  .mp-weekhead__actions .mp-btn { flex: 1 1 auto; }
  .mp-section { padding: 11px; }
  .mp-section__tools { width: 100%; justify-content: space-between; }
  .mp-section__tools .mp-btn { min-height: 34px; }
  .mp-item { padding: 9px; }
  .mp-comment { padding: 9px; }
  .mp-prefgrid, .mp-prefs__cols, .mp-loader__grid, .mp-commentform__grid, .mp-sourcegrid, .mp-start__row { grid-template-columns: 1fr; }
  .mp-sourcegrid { grid-template-columns: 1fr 1fr; }
  .mp-start { margin: 18px auto; }
  .mp-read__bar { padding: 8px 10px; gap: 7px; }
  .mp-read__title { max-width: 55%; }
  .mp-read__tools { gap: 3px; }
  .mp-read__tool { min-height: 36px; padding: 0 7px; font-size: 10.5px; }
  .mp-read__tool[href] { display: none; }
  .mp-read__close { min-height: 38px; padding: 0 11px; }
  .mp-read__page { padding: 18px 14px 70px; }
  .mp-read__intro h1 { font-size: calc(var(--mp-read-size, 19px) * 1.45); }
  .mp-read__text { line-height: 1.7; }
}
@media print {
  .mp-head__actions, .mp-toolbar, .mp-history, .mp-prefs, .mp-section__tools, .mp-add, .mp-comment__foot, .mp-note, .mp-privacy { display: none !important; }
  .mp { border: 0; padding: 0; }
  .mp-body, .mp-body.has-prefs { display: block; }
  .mp-section { break-inside: avoid; box-shadow: none; }
}
