/* ════════════════════════════════════════════════════════════════════════════
   Project brief template (CORDD) tool · /project-brief-template/ (2026-10-18)
   Markup: tools/pages_custom.py brief_tool_html. Behavior: brief-tool/brief.js.
   1. Tool tokens   2. Toolbar and menus   3. Editor cards   4. Live preview (the brand brief)
   5. Email dialog and toast   6. CORDD explainer   7. Responsive   8. Print
   The brief itself (.bd) is always paper: the brand template's colors in both site themes.
   ════════════════════════════════════════════════════════════════════════════ */

/* ---------- 1. Tool tokens (on main.bt-page, so the explainer and FAQ below the tool share them) ---------- */
.bt-page{--btBar:rgba(22,50,42,.92);--btField:rgba(241,238,229,.07);--btFieldHover:rgba(241,238,229,.1);--btRow:rgba(241,238,229,.035);
  --btCard:rgba(241,238,229,.05);--btCardOn:rgba(241,238,229,.07);
  --btStage:#091A15;--btPop:#133229}
.bt{--btTop:92px;position:relative}
:root[data-theme=light] .bt-page{--btBar:rgba(255,255,255,.94);--btField:#F1F3EC;--btFieldHover:#ECEFE6;--btRow:#F8F9F5;
  --btCard:#FFFFFF;--btCardOn:#FFFFFF;
  --btStage:#E1E5D9;--btPop:#FFFFFF}
.bt-hero{padding-bottom:64px}
.bt-hero h1{max-width:13ch}
.bt-sec.pg-sec{padding:56px 0 104px}
.bt svg{flex:none}

/* ---------- 2. Toolbar and menus ---------- */
.bt-bar{position:sticky;top:var(--btTop);z-index:20;display:flex;align-items:center;gap:16px;padding:9px 9px 9px 16px;margin-bottom:18px;
  background:var(--btBar);border-radius:18px;box-shadow:0 22px 44px -30px var(--shadow);
  -webkit-backdrop-filter:saturate(1.4) blur(16px);backdrop-filter:saturate(1.4) blur(16px)}
.bt-prog{display:flex;align-items:center;gap:14px;flex:none}
.bt-steps{display:flex;align-items:center;gap:6px;list-style:none}
.bt-steps li{display:flex;align-items:center}
.bt-st{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--qOff);color:var(--ink2);
  font-family:var(--fh);font-weight:800;font-size:15px;line-height:1;transition:background-color .25s,color .25s,transform .15s}
.bt-st:hover{background:var(--chip);color:var(--ink);transform:translateY(-1px)}
.bt-st.ok{background:var(--acFill);color:var(--acInk)}
.bt-cnt{font-size:14px;color:var(--ink3);white-space:nowrap}
.bt-cnt b{color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}
.bt--done .bt-cnt,.bt--done .bt-cnt b{color:var(--ac)}
.bt-acts{display:flex;align-items:center;gap:2px;margin-left:auto;min-width:0}
.bt-b{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 13px;border-radius:var(--pill);font-size:15px;font-weight:600;color:var(--ink);white-space:nowrap;transition:background-color .15s,color .15s}
.bt-b:hover,.bt-b[aria-expanded=true]{background:var(--navHover)}
.bt-b svg{width:18px;height:18px;color:var(--ink2)}
.bt-b .bt-chev{width:14px;height:14px;margin-left:-2px;transition:transform .2s}
.bt-b[aria-expanded=true] .bt-chev{transform:rotate(180deg)}
.bt-b[hidden],.bt-mi[hidden],.bt-saved[hidden]{display:none}
.bt-div{width:10px}
.bt-saved{display:inline-flex;align-items:center;gap:5px;font-size:13.5px;color:var(--ink3);margin-right:8px;white-space:nowrap}
.bt-saved svg{width:15px;height:15px;color:var(--ac)}
.bt-saved.on{animation:bt-saved 1.6s ease-out}
@keyframes bt-saved{0%{color:var(--ac)}100%{color:var(--ink3)}}
.bt .btn.sm.bt-dl{margin-left:6px;padding:11px 18px 11px 15px;gap:8px}
.bt-dl svg{width:18px;height:18px}
.bt .btn.busy{opacity:.72;cursor:progress;transform:none}
.bt-seg{display:none;padding:3px;border-radius:var(--pill);background:var(--qOff);margin-left:auto}
.bt-seg button{padding:7px 14px;border-radius:var(--pill);font-size:14px;font-weight:700;color:var(--ink2);transition:background-color .15s,color .15s}
.bt-seg button[aria-selected=true]{background:var(--ink);color:var(--bg)}
.bt-menu{position:relative}
.bt-pop{position:absolute;right:0;top:calc(100% + 10px);z-index:30;width:310px;padding:8px;background:var(--btPop);
  border-radius:18px;box-shadow:0 30px 70px -24px var(--popShadow)}
.bt-pop[hidden]{display:none}
.bt-pop--up{top:auto;bottom:calc(100% + 10px)}
.bt-pop-k{font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ink3);padding:10px 10px 4px}
.bt-mi{display:flex;align-items:flex-start;gap:12px;width:100%;padding:10px;border-radius:12px;text-align:left;transition:background-color .12s}
.bt-mi:hover,.bt-mi:focus-visible{background:var(--navHover)}
.bt-mi svg{width:20px;height:20px;color:var(--ac);margin-top:1px}
.bt-mi b{display:block;font-size:15px;font-weight:700;color:var(--ink);line-height:1.3}
.bt-mi small{display:block;font-size:13.5px;color:var(--ink3);line-height:1.4;margin-top:1px}

/* ---------- 3. Editor cards ---------- */
.bt-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}
.bt-ed{display:flex;flex-direction:column;gap:14px;min-width:0}
.bt-card{background:var(--btCard);border-radius:22px;padding:24px 26px 26px;scroll-margin-top:180px;
  transition:background-color .2s,box-shadow .2s}
.bt-card.on{background:var(--btCardOn);box-shadow:0 24px 48px -36px var(--shadow)}
.bt-h{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}
.bt-lt{flex:none;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--chip);color:var(--ac);
  font-family:var(--fh);font-weight:800;font-size:21px;line-height:1;transition:background-color .25s,color .25s}
.bt-lt svg{width:20px;height:20px}
.bt-card.ok .bt-lt{background:var(--acFill);color:var(--acInk)}
.bt-ht{min-width:0}
.bt-ht h3{font-size:22px;line-height:1.15;margin-top:1px}
.bt-ht p{font-size:14.5px;line-height:1.45;color:var(--ink3);margin-top:4px}
.bt-ck{flex:none;margin-left:auto;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--qOff);color:transparent;
  transition:background-color .25s,color .25s}
.bt-ck svg{width:15px;height:15px;stroke-width:2.2}
.bt-card.ok .bt-ck{background:var(--acFill);color:var(--acInk)}
.bt-f{display:flex;flex-direction:column;gap:7px;min-width:0}
.bt-l{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink3)}
.bt-in{display:block;width:100%;min-width:0;background:var(--btField);border:0;border-radius:12px;padding:11px 14px;
  font:inherit;font-size:16px;line-height:1.45;color:var(--ink);outline:0;transition:box-shadow .15s,background-color .15s}
.bt-in::placeholder{color:var(--ink3);opacity:.85}
.bt-in:hover{background:var(--btFieldHover)}
.bt-in:focus{background:var(--btFieldHover);box-shadow:0 0 0 3px var(--ring)}
.bt-in--main{font-weight:600}
.bt-ta{resize:none;overflow:hidden;min-height:48px}
.bt-ta--big{font-size:18px;font-weight:500;line-height:1.5}
.bt-date{font-variant-numeric:tabular-nums;min-height:49px;-webkit-appearance:none;appearance:none}
.bt-date::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.65}
.bt-date::-webkit-date-and-time-value{text-align:left}
.bt-card--head{padding-top:26px}
.bt-name{display:block;width:100%;resize:none;overflow:hidden;background:transparent;border:0;padding:0 0 4px;outline:0;
  font-family:var(--fh);font-weight:800;font-size:36px;letter-spacing:-.03em;line-height:1.1;color:var(--ink)}
.bt-name::placeholder{color:var(--ink3);opacity:.6}
.bt-name:focus{color:var(--ink)}
.bt-meta{display:grid;grid-template-columns:minmax(0,190px) minmax(0,1fr);grid-template-areas:"date appr" "own own";gap:14px 12px;margin-top:20px}
.bt-f--date{grid-area:date}.bt-f--own{grid-area:own}.bt-f--appr{grid-area:appr}
.bt-meter{font-size:13px;color:var(--ink3);margin-top:8px;text-align:right;font-variant-numeric:tabular-nums;transition:color .2s}
.bt-meter.ok{color:var(--ac)}
.bt-meter.ok::before{content:"✓ "}
.bt-sub{display:flex;flex-direction:column;gap:9px;margin-top:16px}
.bt-rows{display:flex;flex-direction:column;gap:8px}
.bt-row{display:grid;grid-template-columns:28px minmax(0,1fr) 34px;gap:10px;align-items:start;padding:10px 8px 10px 10px;border-radius:16px;
  background:var(--btRow);animation:bt-in .22s ease-out}
@keyframes bt-in{from{opacity:0;transform:translateY(-4px)}}
.bt-row--link{grid-template-columns:14px minmax(0,1fr) 34px;align-items:center;padding:0;background:none;border:0}
.bt-dot{width:6px;height:6px;border-radius:50%;background:var(--ink3);justify-self:center}
.bt-n{width:28px;height:28px;margin-top:10px;border-radius:9px;display:grid;place-items:center;font-size:13px;font-weight:700;color:var(--ink2);
  background:var(--qOff);font-variant-numeric:tabular-nums}
.bt-row-f{display:flex;flex-direction:column;gap:8px;min-width:0}
.bt-row-2{display:grid;grid-template-columns:minmax(0,1fr) 172px;gap:8px}
.bt-x{width:34px;height:34px;margin-top:7px;border-radius:10px;display:grid;place-items:center;color:var(--ink3);transition:background-color .15s,color .15s}
.bt-row--link .bt-x{margin-top:0}
.bt-x:hover{background:var(--navHover);color:var(--bad)}
.bt-x svg{width:15px;height:15px}
.bt-add{display:inline-flex;align-items:center;gap:7px;align-self:flex-start;margin-top:12px;padding:8px 14px 8px 11px;border-radius:var(--pill);
  background:var(--chip);font-size:14.5px;font-weight:700;color:var(--ac);transition:background-color .15s,color .15s}
.bt-sub .bt-add{margin-top:2px}
.bt-add:hover{background:var(--acFill);color:var(--acInk)}
.bt-add:disabled{opacity:.4;pointer-events:none}
.bt-add svg{width:16px;height:16px;stroke-width:2}
.bt-due{display:grid;grid-template-columns:minmax(0,200px) minmax(0,1fr);gap:12px}
.bt-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.bt-chip{font-size:13.5px;font-weight:600;padding:7px 13px;border-radius:var(--pill);background:var(--qOff);color:var(--ink2);transition:color .15s,background-color .15s}
.bt-chip:hover{color:var(--ink);background:var(--chip)}

/* ---------- 4. Live preview: the brand brief (~/projects/cmoz-project-brief/brief.html), 1 CSS px = 1/96 in ---------- */
.bt-pv{position:sticky;top:calc(var(--btTop) + 76px);min-width:0}
.bt-pv-sc{max-height:calc(100vh - var(--btTop) - 92px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border-radius:22px;
  background:var(--btStage);padding:0 22px 22px}
.bt-pv-h{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:14px 2px 12px;margin:0 -2px;
  background:var(--btStage);font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ink3)}
.bt-pv-h span:first-child{display:inline-flex;align-items:center;gap:8px}
.bt-pv-h span:first-child::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ac);box-shadow:0 0 0 4px var(--ring)}
.bt-pv-in{position:relative;overflow:hidden}
.bt-pages{position:absolute;left:0;top:0;width:816px;transform-origin:0 0;display:flex;flex-direction:column;gap:30px}
.bd{color:#0F2620;font-family:var(--fb);font-size:14px;line-height:1.5;text-align:left;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.bd *{margin:0}
.bd-page{position:relative;width:816px;min-height:1056px;padding:67px 82px 80px;background:#fff;border-radius:4px;
  box-shadow:0 1px 2px rgba(0,0,0,.12),0 26px 60px -30px rgba(0,0,0,.55)}
:root[data-theme=light] .bd-page{box-shadow:0 1px 2px rgba(15,38,32,.1),0 24px 50px -28px rgba(15,38,32,.35)}
.bd-blk{position:relative}
.bd-blk::before{content:"";position:absolute;inset:-10px -18px;border-radius:8px;background:rgba(143,221,160,.16);
  opacity:0;transition:opacity .25s;pointer-events:none}
.bd-blk.on::before{opacity:1}
.bd-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px}
.bd-logo{display:inline-flex;align-items:center;gap:8px;color:#0F2620}
.bd-logo svg{width:26px;height:26px}
.bd-logo svg .q4{fill:#17703F}
.bd-logo b{font-family:var(--fh);font-weight:700;font-size:19px;letter-spacing:-.035em;line-height:1}
.bd-lab{font-weight:700;font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#17703F}
.bd-h1{font-family:var(--fh);font-weight:800;font-size:40px;line-height:1.05;letter-spacing:-.015em;color:#0F2620;overflow-wrap:anywhere}
.bd .ph{color:#8A9791;display:inline;font:inherit;letter-spacing:inherit;text-transform:none;background:none;border:0;padding:0;border-radius:0;white-space:normal}
.bd p.ph,.bd li.ph{display:block}
.bd li.ph{display:list-item}
.bd-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;margin:18px 0 4px;padding:13px 16px;background:#F3F7F3;border-radius:6px}
.bd-k{display:block;font-weight:700;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#5B6B64;margin-bottom:4px}
.bd-k--ac{color:#17703F;margin-top:13px}
.bd-v{display:block;font-size:14.67px;overflow-wrap:anywhere}
.bd-sec{margin-top:27px}
.bd-ey{font-weight:700;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#17703F}
.bd h2{font-family:var(--fh);font-weight:800;font-size:20px;line-height:1.2;letter-spacing:0;color:#0F2620;margin:3px 0 12px}
.bd p{overflow-wrap:anywhere}
.bd p+p{margin-top:6px}
.bd ul{list-style:disc;margin:5px 0 0 19px;padding:0}
.bd li{margin:3px 0;overflow-wrap:anywhere}
.bd li::marker{color:#8A9791}
.bd li.bd-url{color:#17703F;text-decoration:underline;text-underline-offset:2px}
.bd-obj{font-weight:500;font-size:16.67px;line-height:1.45}
.bd table{width:100%;border-collapse:collapse;font-size:13.33px;table-layout:auto}
.bd th{background:#E3F5E7;font-weight:700;font-size:10px;letter-spacing:.12em;text-transform:uppercase;text-align:left;padding:8px 11px;color:#0F2620}
.bd td{padding:9px 11px;vertical-align:top;overflow-wrap:anywhere}
.bd tr:nth-child(2n+3) td{background:#F5F8F5}
.bd td.n,.bd th.n{width:29px;color:#5B6B64}
.bd-due{display:grid;grid-template-columns:1fr 2.4fr;gap:19px}
.bd-foot{position:absolute;left:82px;right:82px;bottom:46px;display:flex;justify-content:space-between;font-size:10px;color:#5B6B64}
.bt-print{display:none}
.bt-measure{position:absolute;left:-10000px;top:0;width:816px;visibility:hidden;pointer-events:none}

/* ---------- 5. Email dialog and toast ---------- */
.bt-dlg{margin:auto;width:min(500px,calc(100% - 32px));padding:34px 32px 30px;border:0;border-radius:26px;background:var(--bg);color:var(--ink);
  box-shadow:0 40px 90px -30px var(--popShadow)}
.bt-dlg::backdrop{background:var(--backdrop);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.bt-dlg h3{font-size:30px;letter-spacing:-.03em;line-height:1.05;padding-right:40px}
.bt-dlg-lead{font-size:16px;line-height:1.5;color:var(--ink2);margin:10px 0 22px}
.bt-dlg-x{position:absolute;top:14px;right:14px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:var(--ink2)}
.bt-dlg-x:hover{background:var(--navHover);color:var(--ink)}
.bt-dlg-x svg{width:18px;height:18px}
.bt-em-row{display:flex;gap:8px;margin-top:7px}
.bt-em-row .bt-in{flex:1}
.bt-em-row .btn{flex:none;padding:12px 22px}
.bt-err{color:var(--bad);font-size:14.5px;margin-top:8px}
.bt-chk{display:flex;align-items:flex-start;gap:11px;margin-top:18px;font-size:15px;line-height:1.45;color:var(--ink2);cursor:pointer}
.bt-chk input{flex:none;width:19px;height:19px;margin-top:1px;accent-color:var(--acFill);cursor:pointer}
.bt-fine{font-size:13.5px;line-height:1.55;color:var(--ink3);margin-top:14px}
.bt-fine a{color:var(--ink2);text-decoration:underline;text-underline-offset:3px}
.bt-done{outline:0}
.bt-done b{display:block;font-family:var(--fh);font-weight:800;font-size:28px;letter-spacing:-.03em;line-height:1.1;color:var(--ink);padding-right:40px}
.bt-done p{font-size:16px;line-height:1.55;color:var(--ink2);margin:12px 0 22px}
.bt-toast{position:fixed;left:50%;bottom:28px;z-index:95;display:flex;align-items:center;gap:16px;width:max-content;max-width:calc(100vw - 32px);padding:13px 20px;border-radius:var(--pill);
  background:var(--ink);color:var(--bg);font-size:15px;font-weight:600;line-height:1.35;box-shadow:0 18px 40px -16px var(--popShadow);opacity:0;pointer-events:none;
  transform:translate(-50%,16px);transition:opacity .2s,transform .2s}
.bt-toast.on{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.bt-toast button{font-weight:800;text-decoration:underline;text-underline-offset:3px;color:inherit}

/* Light gate: what is still missing before Download or Email. Missing cards get a warm tint, never an outline. */
.bt-page{--btMiss:rgba(244,160,143,.13);--btMissInk:#F4A08F}
:root[data-theme=light] .bt-page{--btMiss:#FBEEEA;--btMissInk:#B5412F}
.bt-card.bt-miss,.bt-card.bt-miss.on{background:var(--btMiss)}
.bt-card.bt-miss .bt-ht h3::after{content:"Needed";margin-left:10px;padding:3px 9px;border-radius:var(--pill);background:var(--btMissInk);color:var(--bg);
  font-family:var(--fb);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;vertical-align:middle}
.bt-card--head.bt-miss .bt-name::placeholder{color:var(--btMissInk);opacity:.85}
.bt-gate-l{list-style:none;display:flex;flex-direction:column;gap:8px;margin:-8px 0 22px}
.bt-gate-l button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:14px 16px;border-radius:14px;
  background:var(--btMiss);font-size:16px;font-weight:700;color:var(--ink);text-align:left;transition:background-color .15s}
.bt-gate-l button:hover{background:var(--chip)}
.bt-gate-l b{color:var(--btMissInk);font-weight:700}
.bt-gate-a{display:flex;flex-wrap:wrap;gap:10px}
.bt-gate .btn.ghost{border-color:transparent;background:var(--qOff)}

/* ---------- 6. CORDD explainer ---------- */
.bt-cordd{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;list-style:none}
.bt-cordd li{background:var(--btCard);border-radius:22px;padding:28px 24px 30px}
.bt-xl{display:block;font-family:var(--fh);font-weight:800;font-size:72px;line-height:.9;letter-spacing:-.04em;color:var(--ac);margin-bottom:22px}
.bt-cordd h3{font-size:22px}
.bt-cordd p{font-size:15.5px;line-height:1.55;color:var(--ink2);margin-top:10px}

/* No lines on this page (Zach, 2026-10-18): the content below the tool is separated by space, not rules */
.bt-page .pg-prose-b,.bt-page .pg-prose-wrap,.bt-page .pg-faq,.bt-page .pg-card{border:0}
.bt-page .pg-prose-b{padding:36px 0}
.bt-page .pg-faq{display:flex;flex-direction:column;gap:8px}
.bt-page .pg-faq-i{border:0;background:var(--btCard);border-radius:18px;padding:0 24px}
.bt-page .pg-faq-i summary{padding:22px 0}
.bt-page .pg-faq-x{border:0;background:var(--qOff)}
/* the site shell on this page only: header, footer and menu separators off */
body:has(.bt-page) .hdr,body:has(.bt-page) .hdr.scrolled,body:has(.bt-page) .hdr.open{border-bottom-color:transparent}
body:has(.bt-page) .ftr,body:has(.bt-page) .ftr-bot,body:has(.bt-page) .ftr-top,body:has(.bt-page) .mg-foot{border:0}
body:has(.bt-page) .mega{border-bottom:0}

/* ---------- 7. Responsive ---------- */
.bt-mbar{display:none}
@media (max-width:1500px){
  .bt-b--i span{display:none}
  .bt-b--i{width:40px;padding:0;justify-content:center}
}
@media (max-width:1180px){
  .bt-menu .bt-b span{display:none}
  .bt-cordd{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bt-cordd li:last-child{grid-column:1/-1}
  .bt-row-2{grid-template-columns:minmax(0,1fr) 150px}
}
@media (max-width:1020px){
  .bt-b[data-act=example] span,.bt-b[data-act=clear] span,.bt-saved{display:none}
  .bt-b[data-act=example],.bt-b[data-act=clear]{width:40px;padding:0;justify-content:center}
}
@media (max-width:900px){
  .bt{--btTop:90px}
  .bt-acts,.bt-div{display:none}
  .bt-seg{display:flex}
  .bt-body{grid-template-columns:minmax(0,1fr)}
  .bt[data-view=edit] .bt-pv,.bt[data-view=preview] .bt-ed{display:none}
  .bt-pv{position:static}
  .bt-pv-sc{max-height:none;overflow:visible;padding:0 12px 14px}
  .bt-mbar{display:flex;position:sticky;bottom:12px;z-index:20;gap:8px;margin-top:14px;padding:8px;border-radius:22px;background:var(--btBar);
    box-shadow:0 18px 40px -20px var(--shadow);-webkit-backdrop-filter:saturate(1.4) blur(16px);backdrop-filter:saturate(1.4) blur(16px)}
  .bt-mbar .btn{flex:1;padding:14px 18px;font-size:16px}
  .bt-mb{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;background:var(--qOff);color:var(--ink)}
  .bt-mb svg{width:21px;height:21px}
  .bt-mb[aria-expanded=true]{background:var(--navHover)}
  .bt-pop{width:min(320px,calc(100vw - 40px))}
  .bt-toast{bottom:96px}
}
@media (max-width:760px){
  .bt{--btTop:80px}
  .bt-hero{padding-bottom:40px}
  .bt-sec.pg-sec{padding:28px 0 64px}
  .bt-bar{gap:10px;padding:8px 8px 8px 10px;border-radius:16px;margin-bottom:12px}
  .bt-cnt{display:none}
  .bt-st{width:30px;height:30px;font-size:14px}
  .bt-steps{gap:4px}
  .bt-seg button{padding:7px 12px}
  .bt-card{padding:18px 16px 20px;border-radius:20px}
  .bt-h{gap:12px;margin-bottom:14px}
  .bt-lt{width:38px;height:38px;font-size:19px;border-radius:12px}
  .bt-ht h3{font-size:20px}
  .bt-name{font-size:28px}
  .bt-due{grid-template-columns:minmax(0,1fr)}
  .bt-meta{grid-template-columns:minmax(0,1fr);grid-template-areas:"date" "own" "appr"}
  .bt-row{grid-template-columns:24px minmax(0,1fr) 32px;gap:8px;padding:8px 6px 8px 8px}
  .bt-n{width:24px;height:24px;font-size:12px;border-radius:8px;margin-top:11px}
  .bt-x{width:32px;height:32px}
  .bt-row-2{grid-template-columns:minmax(0,1fr)}
  .bt-pv-sc{padding:0 10px 12px;border-radius:18px}
  .bt-cordd{grid-template-columns:minmax(0,1fr)}
  .bt-cordd li{display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:16px;padding:22px 20px}
  .bt-xl{grid-row:span 2;font-size:52px;margin:0}
  .bt-cordd h3{font-size:20px}
  .bt-cordd p{margin-top:6px}
  .bt-dlg{padding:30px 20px 24px}
  .bt-dlg h3{font-size:26px}
  .bt-em-row{flex-direction:column}
}
@media (prefers-reduced-motion:reduce){.bt-row{animation:none}}

/* ---------- 8. Print: the same Letter pages as the preview, one per sheet, footer on each ---------- */
@media print{
  @page{size:8.5in 11in;margin:0}
  html,body{background:#fff!important;color:#0F2620}
  body>*:not(.bt-print){display:none!important}
  .bt-print{display:block!important}
  .bt-print .bd-page{width:8.5in;min-height:11in;border-radius:0;box-shadow:none;break-after:page;page-break-after:always}
  .bt-print .bd-page:last-child{break-after:auto;page-break-after:auto}
  .bt-print .bd-blk::before{display:none}
}
