/* Builder + cover letter editor. No ads anywhere in here. Tokens come from site.css. */
.builder { display: flex; flex-direction: column; }
.page-builder .site-footer { margin-top: 0; }

/* ---------- toolbar: one calm row ---------- */
.bld-bar {
  display: flex; flex-wrap: nowrap; gap: var(--space-2); align-items: center; padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border); background: var(--surface); min-height: 56px; position: relative; z-index: 30;
}
.bld-bar .spacer { flex: 1; min-width: 0; }
.bld-bar .btn { min-height: 40px; }
.bld-bar .btn-label-short { display: none; }
.slot-btn { max-width: 260px; padding-left: var(--space-3); padding-right: var(--space-2); font-size: var(--text-md); }
.slot-btn .slot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.slot-btn .i:last-child { width: 16px; height: 16px; color: var(--text-muted); }
.bld-title { font-weight: 600; padding: 0 var(--space-2); display: inline-flex; gap: var(--space-2); align-items: center; white-space: nowrap; }
.save-status { font-size: var(--text-xs); color: var(--text-muted); display: inline-flex; align-items: center; gap: var(--space-1); white-space: nowrap; min-width: 0; }
.save-status .i { width: 14px; height: 14px; color: var(--success); }
.save-status.err { color: var(--danger); }
.save-status.err .i { color: var(--danger); }
.design-sum { color: var(--text-muted); font-weight: 500; }
@media (max-width: 960px) {
  .bld-bar { padding: var(--space-2) var(--space-3); gap: var(--space-1); }
  .bld-bar .hide-mobile { display: none; }
  .bld-bar .btn-label-long { display: none; }
  .bld-bar .btn-label-short { display: inline; }
  .slot-btn { max-width: 46vw; }
  .bld-bar { position: sticky; top: var(--header-h); }
  .score-pill { padding: 0 var(--space-2); }
  .score-pill > .i { display: none; }
  .save-status .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 960px) { .design-sum { display: none; } }

/* ---------- menus / popovers ---------- */
.menu { position: relative; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + var(--space-2)); z-index: 50; min-width: 260px; max-width: calc(100vw - 24px); padding: var(--space-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; gap: 2px; transform-origin: top right; animation: pop-in var(--dur) var(--ease);
}
.menu-left .menu-panel { right: auto; left: 0; transform-origin: top left; }
.menu-panel[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu-panel:not(.design-panel) > button, .menu-panel > a, .slot-list button {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; text-align: left; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--text); font: inherit; font-size: var(--text-sm); font-weight: 500; cursor: pointer; text-decoration: none; min-height: 44px;
}
.menu-panel:not(.design-panel) > button > .i, .menu-panel > a > .i, .slot-list button > .i { width: 18px; height: 18px; color: var(--text-muted); }
.menu-panel:not(.design-panel) > button:hover, .menu-panel > a:hover, .slot-list button:hover,
.menu-panel:not(.design-panel) > button:focus-visible, .menu-panel > a:focus-visible, .slot-list button:focus-visible { background: var(--surface-2); color: var(--text); }
.menu-panel > button:focus-visible, .menu-panel > a:focus-visible, .slot-list button:focus-visible { outline-offset: -2px; }
.menu-panel .lock { margin-left: auto; }
.menu-panel hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-1) 0; }
.menu-panel .danger, .menu-panel .danger > .i { color: var(--danger); }
.menu-panel .danger:hover { background: var(--danger-soft); color: var(--danger); }
.menu-label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: var(--space-2) var(--space-3) var(--space-1); }
.menu-panel .menu-select { padding: var(--space-2) var(--space-3); display: grid; gap: var(--space-1); }
.menu-panel .menu-select label { font-size: var(--text-xs); color: var(--text-muted); }
.slot-list { display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; }
.slot-list button[aria-current="true"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.slot-list button[aria-current="true"] > .i { color: var(--accent-text); }
.slot-list .slot-when { margin-left: auto; font-size: var(--text-xs); color: var(--text-muted); font-weight: 400; white-space: nowrap; padding-left: var(--space-2); }
.slot-list .slot-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#slot-menu { width: 320px; }
.empty-hint { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); font-size: var(--text-sm); color: var(--text-muted); }
.empty-hint span { flex: 1 1 220px; }

/* Design popover — a sheet on phones */
.design-panel { width: 400px; padding: var(--space-4) var(--space-5) var(--space-5); gap: 0; }
.design-panel .panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.design-panel .panel-head h2 { font-size: var(--text-xl); margin: 0; }
@media (max-width: 960px) {
  .design-panel {
    position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; max-height: 85dvh; overflow-y: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
    animation: sheet-up var(--dur-slow) var(--ease); z-index: 70;
  }
  .design-open::after { content: ""; position: fixed; inset: 0; background: var(--scrim); z-index: 60; }
  .design-open .bld-bar { z-index: 65; }
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.design { display: grid; gap: var(--space-5); }
.design-row { display: grid; gap: var(--space-2); }
.design-row > .lbl, .design-row .lbl { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.seg-radio { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.seg-radio label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); cursor: pointer; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.seg-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-radio label:has(input:checked) { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent); }
.seg-radio label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
.tpl-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); border: 0; padding: 0; margin: 0; }
.tpl-picker label {
  position: relative; display: flex; align-items: center; gap: var(--space-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0 var(--space-3); font-size: var(--text-sm); font-weight: 600; cursor: pointer; min-height: 44px; background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.tpl-picker label:hover { border-color: var(--text-muted); }
.tpl-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tpl-picker .lock { margin-left: auto; }
.tpl-picker label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent); }
.tpl-picker label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.design-note { font-size: var(--text-xs); color: var(--text-muted); margin: 0; display: flex; gap: var(--space-1); align-items: center; }
.design-note .i { width: 14px; height: 14px; }
.swatches { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; padding: 0; transition: transform var(--dur-fast) var(--ease); }
.swatches button:hover { transform: scale(1.08); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }
.swatches input[type=color] { width: 40px; height: 32px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 2px; background: var(--surface); cursor: pointer; }
.range-row { display: flex; align-items: center; gap: var(--space-3); }
.design input[type=range] { accent-color: var(--accent); flex: 1; min-width: 0; height: 32px; }
.design output { font-variant-numeric: tabular-nums; font-size: var(--text-sm); font-weight: 600; background: var(--surface-2); border-radius: var(--radius-full); padding: 2px var(--space-2); min-width: 4.2em; text-align: center; }
.design select { min-height: 44px; font-size: var(--text-sm); }

/* ---------- layout ---------- */
.bld-panes { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(0, 1.2fr); flex: 1; min-height: 0; }
.bld-edit { padding: var(--space-4) var(--space-4) var(--space-6); border-right: 1px solid var(--border); background: var(--bg); }
.bld-edit-inner { max-width: 720px; margin: 0 auto; }
.bld-preview { background: var(--desk); padding: var(--space-3) var(--space-5) var(--space-6); min-width: 0; }
@media (min-width: 961px) {
  .builder { height: calc(100vh - var(--header-h) - 1px); height: calc(100dvh - var(--header-h) - 1px); }
  .bld-edit, .bld-preview { overflow-y: auto; overscroll-behavior: contain; }
  .bld-dock { display: none !important; }
}
@media (max-width: 960px) {
  .bld-panes { grid-template-columns: minmax(0, 1fr); }
  .bld-edit { border-right: 0; padding: var(--space-3) var(--space-3) calc(96px + env(safe-area-inset-bottom)); }
  .bld-preview { padding: var(--space-3) var(--space-3) calc(96px + env(safe-area-inset-bottom)); min-height: calc(100dvh - var(--header-h) - 56px); }
  .js .bld-panes [role="tabpanel"][hidden] { display: none; }
}

/* Mobile dock: Edit / Preview + Download, in thumb reach */
.bld-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: var(--space-2); align-items: center;
  padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.no-js .bld-dock { display: none; }
.bld-dock .btn-primary { flex: 1 1 auto; min-height: 48px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border-radius: var(--radius-full); border: 1px solid var(--border); }
.seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); min-height: 40px; padding: 0 var(--space-3);
  border: 0; border-radius: var(--radius-full); background: transparent; color: var(--text-muted); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.seg button .i { width: 18px; height: 18px; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg.sm button { min-height: 30px; padding: 0 var(--space-3); font-size: var(--text-xs); }

/* ---------- edit pane ---------- */
.trust-note { font-size: var(--text-xs); color: var(--text-muted); display: flex; gap: var(--space-2); align-items: center; margin: 0 0 var(--space-3); padding: 0 var(--space-1); }
.trust-note .i { width: 16px; height: 16px; color: var(--success); flex: none; }
.ed-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: var(--space-3); }
.ed-sec-head { display: flex; align-items: center; gap: var(--space-1); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-1); min-height: 60px; }
.ed-sec-head h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; margin: 0; flex: 1; min-width: 0; letter-spacing: -.01em; }
.sec-toggle {
  display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: 44px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left;
}
.sec-toggle:hover { background: var(--surface-2); }
.sec-toggle > .i { width: 18px; height: 18px; color: var(--text-muted); transition: transform var(--dur) var(--ease); }
.sec-toggle[aria-expanded="false"] > .i { transform: rotate(-90deg); }
.sec-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-count { font-family: var(--font); font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); background: var(--surface-2); border-radius: var(--radius-full); padding: 1px var(--space-2); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ed-sec-body { padding: 0 var(--space-4) var(--space-4); }
.ed-sec-body[hidden] { display: none; }
@media (min-width: 600px) { .ed-sec-body { padding: 0 var(--space-5) var(--space-5); } }
.ed-sec.is-hidden .ed-sec-body { opacity: .55; }
.ed-sec.is-hidden .sec-title { color: var(--text-muted); }
.sec-tools { display: flex; align-items: center; gap: 2px; }

/* switch-style "Show" toggle */
.switch { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); cursor: pointer; min-height: 44px; padding: 0 var(--space-1); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 34px; height: 20px; border-radius: var(--radius-full); background: var(--border-strong); position: relative; transition: background-color var(--dur) var(--ease); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform var(--dur) var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 420px) { .switch .sw-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-3); }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.dates { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.field .hint { font-size: var(--text-xs); color: var(--text-muted); margin: 0; }
.field .hint.ok { color: var(--success); }
.field .hint.warn { color: var(--warning); }
.inline-check { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 500; min-height: 36px; cursor: pointer; }
.inline-check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.sub-h { font-size: var(--text-sm); font-weight: 700; margin: var(--space-5) 0 var(--space-2); }
.ed-items { display: grid; gap: var(--space-3); margin-bottom: var(--space-3); }
.ed-items:empty { display: none; }
.ed-item { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-2) var(--space-3) var(--space-4); margin: 0; background: var(--bg); min-width: 0; }
.ed-item-tools { display: flex; gap: 2px; align-items: center; margin: 0 calc(-1 * var(--space-1)) var(--space-2) calc(-1 * var(--space-2)); }
.ed-item-tools .grip { color: var(--border-strong); display: inline-flex; padding: 0 2px; }
.ed-item-tools .grip .i { width: 18px; height: 18px; }
.ed-item-tools .lbl { margin-right: auto; font-size: var(--text-sm); font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ed-item-tools .icon-btn { width: 36px; height: 36px; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: var(--space-2); align-items: end; margin-bottom: var(--space-3); }
.link-row .icon-btn { height: 44px; }
@media (max-width: 520px) { .link-row { grid-template-columns: minmax(0, 1fr) auto; } .link-row .field:nth-child(2) { grid-column: 1 / 2; grid-row: 2; } .link-row .icon-btn { grid-row: 1 / 3; grid-column: 2; align-self: center; } }
.add-btn {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  background: transparent; color: var(--text-muted); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.add-btn:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.add-btn:active { transform: scale(.99); }
.add-btn[disabled] { opacity: .5; cursor: not-allowed; }
.add-btn .i { width: 18px; height: 18px; }
.verb-helper { margin: 0 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.verb-helper summary { cursor: pointer; font-weight: 600; font-size: var(--text-sm); padding: 0 var(--space-3); min-height: 44px; display: flex; align-items: center; gap: var(--space-2); list-style: none; }
.verb-helper summary::-webkit-details-marker { display: none; }
.verb-helper summary .i { width: 18px; height: 18px; color: var(--accent-text); }
.verb-helper summary .chev { margin-left: auto; color: var(--text-muted); transition: transform var(--dur) var(--ease); }
.verb-helper[open] summary .chev { transform: rotate(180deg); }
.verb-helper > :not(summary) { margin-left: var(--space-3); margin-right: var(--space-3); }
.verb-helper > :last-child { margin-bottom: var(--space-3); }
.verb-helper h3 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: var(--space-3) var(--space-3) var(--space-2); }
.verb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.verb-chips button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: var(--radius-full); padding: 0 var(--space-3); font: inherit; font-size: var(--text-sm); cursor: pointer; min-height: 36px; }
.verb-chips button:hover { border-color: var(--accent); color: var(--accent-text); }
.verb-chips button:active { transform: scale(.97); }

/* ---------- preview pane ---------- */
.preview-bar { display: flex; flex-wrap: nowrap; gap: var(--space-2) var(--space-3); align-items: center; margin: 0 auto var(--space-3); font-size: var(--text-sm); color: var(--text-muted); }
.preview-bar .spacer { flex: 1; }
.score-pill {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer;
}
.score-pill:hover { border-color: var(--border-strong); }
.score-pill b { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 650; color: var(--accent-text); font-variant-numeric: tabular-nums lining-nums; }
.score-pill .i { width: 16px; height: 16px; color: var(--text-muted); }
.page-est { font-variant-numeric: tabular-nums; }
.pro-note {
  display: flex; gap: var(--space-2) var(--space-3); align-items: center; flex-wrap: wrap; font-size: var(--text-sm); margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.pro-note[hidden] { display: none; }
.pro-note > .i { width: 16px; height: 16px; color: var(--accent-text); }
.pro-note span { flex: 1 1 200px; color: var(--text-muted); }
.pro-note span strong { color: var(--text); }
.preview-scroller { overflow-x: auto; overflow-y: hidden; padding: var(--space-1) 0 var(--space-2); }
.preview-fit { position: relative; margin: 0 auto; }
.preview-fit .sheet { transform-origin: top left; position: absolute; top: 0; left: 0; }
.sheet .rs { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px rgba(40,24,30,.16); }
.page-break-marker { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgba(120, 110, 115, .55); pointer-events: none; }
.page-break-marker span { position: absolute; right: 8px; top: -9px; font: 600 11px/18px var(--font); color: #6b6266; background: #fff; padding: 0 8px; border-radius: 999px; border: 1px solid #e3dcd6; }
.checklist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin: var(--space-4) auto 0; }
.checklist summary { cursor: pointer; font-weight: 650; padding: 0 var(--space-4); min-height: 52px; display: flex; align-items: center; gap: var(--space-2); list-style: none; }
.checklist summary::-webkit-details-marker { display: none; }
.checklist summary .i { width: 18px; height: 18px; color: var(--text-muted); }
.checklist summary .chev { margin-left: auto; transition: transform var(--dur) var(--ease); }
.checklist[open] summary .chev { transform: rotate(180deg); }
.checklist ul { list-style: none; padding: 0 var(--space-4) var(--space-4); margin: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-2); }
.checklist li .ic { display: inline-flex; padding-top: 1px; }
.checklist li .ic .i { width: 18px; height: 18px; }
.checklist li.ok .ic { color: var(--success); }
.checklist li.no .ic { color: var(--warning); }
.checklist li small { display: block; color: var(--text-muted); font-size: var(--text-xs); }
.print-hint { font-size: var(--text-xs); color: var(--text-muted); margin: var(--space-4) auto 0; display: flex; gap: var(--space-2); align-items: flex-start; max-width: 72ch; }
.print-hint .i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.print-hint strong { color: var(--text); font-weight: 600; }
.preview-col { max-width: 900px; margin: 0 auto; }
.locked-card { display: grid; gap: var(--space-2); padding: var(--space-5); margin-bottom: var(--space-3); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: var(--radius-lg); }
.locked-card h2 { margin: 0; font-size: var(--text-xl); display: flex; gap: var(--space-2); align-items: center; }
.locked-card h2 .i { color: var(--accent-text); }
.locked-card p { margin: 0; color: var(--text-muted); }
.locked-card .btn { justify-self: start; margin-top: var(--space-2); }
.from-card .ed-sec-body p { margin: 0 0 var(--space-2); }
.print-lock-msg { display: none; }

/* ----- print: only the paper ----- */
@media print {
  :root, :root[data-theme="dark"] { color-scheme: light !important; }
  html, body { background: #fff !important; }
  body > *:not(main), .bld-bar, .bld-dock, .bld-edit, .preview-bar, .pro-note, .checklist, .print-hint, .skip, .page-break-marker, dialog, .menu-panel, #live { display: none !important; }
  .builder { height: auto !important; display: block; }
  .bld-panes { display: block !important; }
  .bld-preview { display: block !important; padding: 0 !important; background: #fff !important; overflow: visible !important; min-height: 0 !important; }
  .preview-col { max-width: none !important; }
  .preview-scroller { overflow: visible !important; padding: 0 !important; }
  .preview-fit { width: auto !important; height: auto !important; }
  .preview-fit .sheet { position: static !important; transform: none !important; }
  .sheet .rs { width: auto !important; min-height: 0 !important; padding: 0 !important; box-shadow: none !important; }
  .rs a { color: inherit !important; }
  body.print-locked .preview-fit { display: none !important; }
  body.print-locked .print-lock-msg { display: block !important; font: 14pt/1.5 var(--font); padding: 40px; }
}
