/* Keep ’Em Coming Back — deep visual and structural refinement.
   Repairs unstyled page systems, removes text-wall behavior, and makes tools scan-first. */
:root{
  --overhaul-wrap:1180px;
  --overhaul-paper:#fffaf3;
  --overhaul-card:#fffdf9;
  --overhaul-ink:#301a13;
  --overhaul-muted:#6d574b;
  --overhaul-line:rgba(75,39,24,.16);
  --overhaul-rust:#9b4728;
  --overhaul-brown:#321a12;
  --overhaul-gold:#e3ad55;
  --overhaul-shadow:0 12px 32px rgba(49,24,14,.07);
}

/* Shared restraint: fewer oversized gaps and more deliberate reading blocks. */
.refined-content-page main{min-width:0}
.refined-content-page main>section{min-width:0}
.refined-content-page main :is(p,li,dd){overflow-wrap:anywhere}
.refined-content-page main :is(.system-wrap,.book-first-wrap,.tool-suite-wrap,.wrap,.k2-wrap,.spx-wrap){max-width:var(--overhaul-wrap)}

/* ---------- Compact source banner ---------- */
.book-source-banner{background:#fff8ee}
.book-source-banner .book-source-inner{
  width:min(var(--overhaul-wrap),calc(100% - 2rem));
  grid-template-columns:auto minmax(0,1fr) auto;
  padding:.72rem 0!important;
}
.book-source-volume{width:52px;height:52px;font-size:.72rem}
.book-source-copy .eyebrow{margin:0 0 .08rem;font-size:.64rem}
.book-source-copy h2{font-size:clamp(1.08rem,2vw,1.4rem)!important}
.book-source-copy p:last-child{font-size:.82rem;line-height:1.38!important}
.book-source-actions .button{min-height:38px!important;padding:.52rem .72rem;font-size:.74rem}
.page-tool .book-source-copy .eyebrow,
.page-tool .book-source-copy p:last-child{display:none}
.page-tool .book-source-banner .book-source-inner{padding:.58rem 0!important}
.page-tool .book-source-volume{width:44px;height:44px}

/* ---------- Previously unstyled Books framework ---------- */
.book-first-main{background:#f7f0e7;color:var(--overhaul-ink)}
.book-first-wrap{width:min(var(--overhaul-wrap),calc(100% - 2rem));margin-inline:auto}
.tools-book-first-hero{
  padding:clamp(3rem,7vw,6rem) 0;
  color:#fff;
  background:
    radial-gradient(circle at 84% 22%,rgba(225,171,87,.2),transparent 30%),
    linear-gradient(125deg,#26130e,#60331f);
}
.tools-book-first-hero h1{max-width:820px;margin:.2rem 0 .75rem;font:700 clamp(2.7rem,6vw,5.3rem)/.98 Georgia,"Times New Roman",serif;letter-spacing:-.025em}
.tools-book-first-hero p:not(.book-first-kicker){max-width:720px;margin:.4rem 0;color:#eadbd0;font-size:clamp(1rem,1.6vw,1.16rem);line-height:1.62}
.book-first-kicker{margin:0 0 .38rem;color:#a34828;font:900 .69rem/1.2 Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase}
.book-first-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.1rem}
.book-first-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.68rem .92rem;border:1px solid rgba(80,42,25,.25);border-radius:999px;text-decoration:none;font-weight:900}
.tools-book-first-hero .book-first-actions .primary{background:#efb45d;border-color:#efb45d;color:#2a160f}
.tools-book-first-hero .book-first-actions .secondary{background:transparent;border-color:rgba(255,255,255,.42);color:#fff}
.book-first-section{padding:clamp(2.6rem,5vw,4.7rem) 0;border-top:1px solid var(--overhaul-line)}
.book-first-section:nth-of-type(even){background:rgba(255,255,255,.42)}
.book-first-section h2{max-width:780px;margin:.15rem 0 .7rem;font:700 clamp(2rem,4vw,3.25rem)/1.02 Georgia,"Times New Roman",serif}
.book-first-intro{max-width:760px;color:var(--overhaul-muted);line-height:1.65}
.problem-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;margin-top:1.25rem}
.problem-card{display:flex;flex-direction:column;min-height:180px;padding:1.1rem;border:1px solid var(--overhaul-line);border-radius:16px;background:var(--overhaul-card);color:inherit;text-decoration:none;box-shadow:var(--overhaul-shadow)}
.problem-card h3{margin:0 0 .55rem;font:700 1.18rem/1.2 Georgia,"Times New Roman",serif}
.problem-card p{margin:0;color:var(--overhaul-muted);line-height:1.5}
.problem-card small{margin-top:auto;padding-top:.9rem;color:var(--overhaul-rust);font-weight:900}
.problem-card:hover,.problem-card:focus-visible{transform:translateY(-2px);border-color:var(--overhaul-rust)}
.book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.35rem}
.book-card{display:flex;flex-direction:column;min-height:285px;padding:1.25rem;border:1px solid var(--overhaul-line);border-radius:18px;background:var(--overhaul-card);box-shadow:var(--overhaul-shadow)}
.book-volume{color:var(--overhaul-rust);font:900 .68rem/1.2 Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase}
.book-card h3{margin:.35rem 0 .55rem;font:700 clamp(1.45rem,2.5vw,2rem)/1.05 Georgia,"Times New Roman",serif}
.book-card>p{margin:.1rem 0 .8rem;color:var(--overhaul-muted);line-height:1.55}
.book-for,.book-count{font-size:.82rem;line-height:1.48}
.book-for{padding-top:.7rem;border-top:1px solid var(--overhaul-line);color:#5e473a}
.book-count{margin-top:.38rem;color:#866147;font-weight:800}
.book-progress{margin-top:auto;padding-top:.85rem;color:#745b4e;font-size:.75rem}
.book-progress-bar{height:5px;margin-top:.4rem;overflow:hidden;border-radius:999px;background:#eadfd5}
.book-progress-bar>span{display:block;height:100%;background:var(--overhaul-rust)}
.book-card-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.85rem}
.book-card-actions a{display:inline-flex;min-height:40px;align-items:center;padding:.58rem .76rem;border-radius:999px;border:1px solid var(--overhaul-line);text-decoration:none;font-weight:900}
.book-card-actions a:first-child{background:var(--overhaul-brown);color:#fff}
.series-map{display:grid;gap:.65rem;margin-top:1.2rem;counter-reset:series}
.series-map-step{display:grid;grid-template-columns:minmax(220px,.65fr) minmax(0,1fr);gap:1rem;padding:.85rem 1rem;border-left:4px solid var(--overhaul-rust);background:rgba(255,255,255,.66)}
.series-map-step strong{font-family:Georgia,"Times New Roman",serif}.series-map-step span{color:var(--overhaul-muted);line-height:1.5}

/* ---------- Tools directory: restore missing layout and shorten the initial page ---------- */
.page-tool .tools-book-first-hero{padding:clamp(2.7rem,6vw,5rem) 0}
.tool-filter-shell{position:sticky;top:64px;z-index:20;padding:.8rem 0;border-block:1px solid var(--overhaul-line);background:rgba(247,240,231,.96);backdrop-filter:blur(10px)}
.tool-filter-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.8rem;align-items:center}
.tool-filter-row label{display:block}
.tool-filter-row input{width:100%;min-height:48px;padding:.72rem .85rem;border:1px solid rgba(75,39,24,.27);border-radius:12px;background:#fff;font:inherit}
.tool-filter-row strong{color:#654a3d;font-size:.82rem}
.tool-book-jumps{display:flex;gap:.45rem;margin-top:.65rem;overflow-x:auto;padding-bottom:.18rem;scrollbar-width:thin}
.tool-book-jumps a{flex:0 0 auto;padding:.4rem .6rem;border:1px solid var(--overhaul-line);border-radius:999px;background:#fff;color:#63351f;text-decoration:none;font-size:.72rem;font-weight:850}
.tool-book-group{margin:1.2rem 0 1.6rem;padding:1.1rem;border:1px solid var(--overhaul-line);border-radius:19px;background:rgba(255,255,255,.56);scroll-margin-top:150px}
.tool-book-group>header{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:.9rem}
.tool-book-group>header h2{margin:.08rem 0 .28rem;font:700 clamp(1.55rem,3vw,2.15rem)/1.05 Georgia,"Times New Roman",serif}
.tool-book-group>header p:last-child{max-width:730px;margin:0;color:var(--overhaul-muted);line-height:1.5}
.tool-count-pill{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-height:36px;padding:.45rem .65rem;border-radius:999px;background:var(--overhaul-brown);color:#fff;font-size:.74rem;font-weight:900}
.tool-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.tool-source-card{display:flex;flex-direction:column;min-height:170px;padding:1rem;border:1px solid var(--overhaul-line);border-radius:14px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 7px 20px rgba(47,23,13,.045)}
.tool-source-card strong{font:700 1.04rem/1.24 Georgia,"Times New Roman",serif;color:#3a2016}
.tool-source-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:.48rem 0 .8rem;color:var(--overhaul-muted);font-size:.84rem;line-height:1.48}
.tool-source-card small{margin-top:auto;color:var(--overhaul-rust);font-size:.72rem;font-weight:900}
.tool-source-card:hover,.tool-source-card:focus-visible{transform:translateY(-2px);border-color:var(--overhaul-rust);box-shadow:var(--overhaul-shadow)}
.tool-book-group:not([data-expanded="true"]):not([data-searching="true"]) .tool-source-card:nth-child(n+7){display:none}
.tool-group-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin-top:.85rem;padding:.58rem .8rem;border:1px solid #7b4026;border-radius:999px;background:#fff;color:#6d361f;cursor:pointer;font-weight:900}
.tool-group-toggle:hover,.tool-group-toggle:focus-visible{background:#6d361f;color:#fff}
.tool-book-group[data-search-hidden="true"]{display:none}
.tool-source-card[data-search-hidden="true"]{display:none!important}
.tool-empty-state{display:none;margin:1rem 0;padding:1.2rem;border:1px dashed rgba(75,39,24,.3);border-radius:14px;background:#fff;text-align:center;color:var(--overhaul-muted)}
.tool-empty-state.is-visible{display:block}

/* Task finder and book gateway layouts shared by the home/tool systems. */
.eco-task-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin-top:1rem}
.eco-task-grid a{display:flex;flex-direction:column;min-height:115px;padding:.9rem;border:1px solid var(--overhaul-line);border-radius:14px;background:#fff;color:inherit;text-decoration:none}
.eco-task-grid strong{font:700 1rem/1.2 Georgia,"Times New Roman",serif}.eco-task-grid span{margin-top:.38rem;color:var(--overhaul-muted);font-size:.82rem;line-height:1.45}
.book-first-gateway{padding:clamp(2.3rem,5vw,4rem) 0}
.book-first-heading{max-width:800px}.book-first-heading h2{margin:.15rem 0 .6rem;font:700 clamp(2rem,4vw,3.3rem)/1.02 Georgia,"Times New Roman",serif}.book-first-heading>p:last-child{color:var(--overhaul-muted);line-height:1.62}
.book-first-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;margin-top:1.15rem}
.book-first-card{display:flex;flex-direction:column;min-height:230px;padding:1rem;border:1px solid var(--overhaul-line);border-top:4px solid var(--overhaul-rust);border-radius:14px;background:#fffaf3;box-shadow:0 7px 20px rgba(47,23,13,.045)}
.book-first-card>p{margin:0;color:var(--overhaul-rust);font-size:.68rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.book-first-card h3{margin:.38rem 0 .55rem;font:700 1.1rem/1.15 Georgia,"Times New Roman",serif}
.book-first-card>span{color:var(--overhaul-muted);font-size:.78rem;line-height:1.45}
.book-first-card>div{display:grid;gap:.35rem;margin-top:auto;padding-top:.75rem}.book-first-card a{display:flex;min-height:38px;align-items:center;padding:.48rem .62rem;border-radius:8px;background:#341b13;color:#fff;text-decoration:none;font-size:.75rem;font-weight:900}.book-first-card a+a{background:transparent;color:#6d361f;border:1px solid var(--overhaul-line)}

/* Kitchen tool cards were present but their CSS was not loaded on the Kitchen home page. */
.section-tools-panel{width:min(var(--overhaul-wrap),calc(100% - 2rem));margin:clamp(1.5rem,4vw,3rem) auto;padding:clamp(1.2rem,3vw,2rem);background:#fff7e8;color:#27150f;border:1px solid var(--overhaul-line);border-radius:18px;box-shadow:var(--overhaul-shadow)}
.section-tools-panel h2{margin:.1rem 0 .5rem;font:700 clamp(1.7rem,3vw,2.4rem)/1.05 Georgia,"Times New Roman",serif}.section-tools-panel>p:not(.book-first-kicker){max-width:760px;color:var(--overhaul-muted);line-height:1.55}
.section-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin-top:1rem}
.section-tool-card{display:flex;flex-direction:column;justify-content:space-between;gap:.65rem;min-height:112px;padding:.85rem;border:1px solid var(--overhaul-line);border-radius:12px;background:#fff;color:inherit;text-decoration:none}.section-tool-card strong{font:700 .96rem/1.28 Georgia,"Times New Roman",serif}.section-tool-card small{color:var(--overhaul-rust);font-weight:900}
.chapter-work-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.85rem}.chapter-work-actions a{display:inline-flex;min-height:40px;align-items:center;padding:.55rem .72rem;border:1px solid var(--overhaul-line);border-radius:999px;text-decoration:none;font-weight:850}

/* ---------- Individual tool pages: the tool is now the visual focus ---------- */
.tool-suite-main{background:#f6eee4}
.tool-suite-hero{padding:clamp(2.3rem,5vw,4rem) 1rem}
.tool-suite-hero h1{max-width:900px;font-size:clamp(2.5rem,5.5vw,4.7rem)}
.tool-suite-hero p{max-width:700px;line-height:1.5}
.tool-suite-wrap{width:min(var(--overhaul-wrap),calc(100% - 2rem));padding:1.35rem 0 3rem}
.tool-suite-wrap>nav[aria-label="Breadcrumb"]{margin:.15rem 0 .7rem;color:#70584b;font-size:.78rem}
.tool-use-steps{display:flex;align-items:center;gap:0;margin:.55rem 0 1rem;padding:.55rem .7rem;border:1px solid var(--overhaul-line);border-radius:12px;background:rgba(255,255,255,.76);box-shadow:none}
.tool-use-step{display:flex;align-items:center;gap:.42rem;min-width:0;padding:.2rem .65rem;background:transparent!important;border:0!important;box-shadow:none!important}
.tool-use-step+.tool-use-step{border-left:1px solid var(--overhaul-line)!important}
.tool-use-step b{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#315f68;color:#fff;font-size:.7rem}
.tool-use-step span{color:#5e493e;font-size:.76rem;line-height:1.25}
.tool-app{grid-template-columns:minmax(0,1.18fr) minmax(310px,.82fr);gap:.85rem;align-items:start;margin-top:.8rem}
.tool-form,.tool-output{padding:1rem;border-radius:14px;box-shadow:0 8px 24px rgba(47,23,13,.055)}
.tool-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;align-content:start;margin:0}
.tool-form label{gap:.3rem;margin:0;font-size:.82rem}
.tool-form label:has(textarea),.tool-form fieldset,.tool-form .tool-form-full{grid-column:1/-1}
.tool-form input,.tool-form select,.tool-form textarea{padding:.64rem .7rem}
.tool-output{min-height:210px;position:sticky;top:88px;overflow:auto}
.tool-output:empty::before{content:"Your completed result appears here as you enter details.";display:block;max-width:28ch;margin:4rem auto;color:#846d60;text-align:center;font:700 1rem/1.5 Georgia,"Times New Roman",serif}
.tool-output table{font-size:.86rem}.tool-output th,.tool-output td{padding:.5rem}

/* Batch scaler: compact recipe setup plus expandable ingredient rows. */
.batch-recipe-form{display:block}
.batch-recipe-form fieldset{margin:0 0 .85rem;padding:.85rem;border:1px solid var(--overhaul-line);border-radius:12px;background:#fffdfa}
.batch-recipe-form legend{padding:0 .35rem;color:#4b2b1e;font:700 1rem/1.2 Georgia,"Times New Roman",serif}
.recipe-basics-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:.65rem}
.ingredient-list{display:grid;gap:.55rem}
.ingredient-row{display:grid;grid-template-columns:minmax(160px,2fr) minmax(90px,.65fr) minmax(90px,.65fr) 38px;gap:.55rem;align-items:end;padding:.6rem;border:1px solid rgba(75,39,24,.11);border-radius:10px;background:#fff}
.ingredient-row label{min-width:0}.ingredient-row .ingredient-remove{display:grid;place-items:center;width:38px;min-height:42px;padding:0;border:1px solid rgba(130,54,32,.28);border-radius:9px;background:#fff;color:#8b3824;cursor:pointer;font-size:1.1rem;font-weight:900}.ingredient-row:first-of-type .ingredient-remove{visibility:hidden}
.add-ingredient-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin-top:.65rem;padding:.55rem .75rem;border:1px solid #784025;border-radius:999px;background:#fff;color:#6e361f;cursor:pointer;font-weight:900}

/* Compact completion controls: remove a large explanatory block after every form. */
.tool-completion-panel.tool-completion-compact{margin:1rem 0;padding:.75rem .85rem;border-radius:13px}
.tool-completion-compact .tool-completion-layout{grid-template-columns:minmax(0,1fr) auto;gap:.8rem}
.tool-completion-compact .tool-completion-copy{display:flex;align-items:baseline;gap:.55rem;flex-wrap:wrap}
.tool-completion-compact .tool-completion-copy .eyebrow{margin:0}.tool-completion-compact .tool-completion-copy h2{margin:0;font-size:clamp(1.18rem,2vw,1.5rem)}
.tool-completion-compact .tool-completion-actions{display:flex;gap:.5rem}
.tool-completion-compact .tool-completion-button{min-height:44px;width:auto;padding:.62rem .75rem;align-items:center;border-radius:10px}
.tool-completion-compact .tool-completion-button strong{font-size:.78rem}.tool-completion-compact .tool-completion-button span,.tool-completion-compact .tool-completion-note{display:none}
.tool-completion-compact .tool-completion-status{margin:.35rem 0 0;min-height:0}
.tool-disclaimer-link{margin:.7rem 0;padding:.55rem .65rem}.tool-disclaimer-link-copy span{display:none}.tool-disclaimer-open{min-height:36px}
.tool-related-next{margin-top:1rem;padding-top:.9rem;border-top:1px solid var(--overhaul-line)}
.tool-related-next h2{margin:0 0 .55rem;font-size:1.15rem}.tool-related-next-grid{gap:.55rem}.tool-related-next-grid a{min-height:70px;padding:.7rem;border-radius:10px}.tool-related-next-grid span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;font-size:.74rem}

/* ---------- Compact sitewide footer ---------- */
.site-footer-v3.footer-compact{display:grid!important;grid-template-columns:minmax(240px,1.2fr) minmax(0,2fr);gap:1.25rem 2rem;padding:2rem max(1rem,calc((100% - var(--overhaul-wrap))/2));background:#28130e;color:#f5e8df}
.footer-compact-brand strong{display:block;color:#efbc62;font:700 1.05rem/1.25 Georgia,"Times New Roman",serif}.footer-compact-brand p{max-width:48ch;margin:.4rem 0 .7rem;color:#d9c6ba;font-size:.78rem;line-height:1.5}.footer-compact-brand a{color:#fff;font-size:.78rem;font-weight:900}
.footer-compact-nav{display:grid;gap:.75rem}.footer-primary-links,.footer-utility-links{display:flex;flex-wrap:wrap;gap:.45rem .85rem}.footer-primary-links a{color:#fff;font-size:.78rem;font-weight:850}.footer-utility-links{padding-top:.7rem;border-top:1px solid rgba(255,255,255,.13)}.footer-utility-links a{color:#d6c1b5;font-size:.72rem}.footer-compact-copy{margin:0;color:#ad9589;font-size:.68rem}

/* ---------- Breakpoints ---------- */
@media(max-width:1050px){
  .book-first-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .eco-task-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tool-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .section-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .problem-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.book-grid{grid-template-columns:1fr}
  .book-source-banner .book-source-inner{grid-template-columns:auto minmax(0,1fr)}.book-source-actions{grid-column:1/-1;padding-left:60px}
  .tool-app{grid-template-columns:1fr}.tool-output{position:static;min-height:180px}
  .tool-completion-compact .tool-completion-layout{grid-template-columns:1fr}.tool-completion-compact .tool-completion-actions{justify-content:flex-start}
  .site-footer-v3.footer-compact{grid-template-columns:1fr}
}
@media(max-width:650px){
  .tools-book-first-hero{padding:2.6rem 0}.tools-book-first-hero h1{font-size:clamp(2.45rem,13vw,4rem)}
  .problem-grid,.tool-card-grid,.eco-task-grid,.book-first-grid,.section-tool-grid{grid-template-columns:1fr}
  .problem-card,.book-first-card,.tool-source-card{min-height:0}
  .series-map-step{grid-template-columns:1fr;gap:.3rem}
  .tool-filter-shell{top:61px}.tool-filter-row{grid-template-columns:1fr}.tool-filter-row strong{font-size:.74rem}
  .tool-book-group{padding:.8rem}.tool-book-group>header{align-items:flex-start}.tool-count-pill{font-size:.68rem}
  .tool-use-steps{align-items:stretch;padding:.38rem}.tool-use-step{flex:1;flex-direction:column;align-items:flex-start;padding:.35rem}.tool-use-step+.tool-use-step{border-left:1px solid var(--overhaul-line)!important}.tool-use-step span{font-size:.68rem}
  .tool-form{grid-template-columns:1fr}.tool-form label:has(textarea),.tool-form fieldset,.tool-form .tool-form-full{grid-column:auto}
  .recipe-basics-grid{grid-template-columns:1fr 1fr}.recipe-basics-grid label:first-child{grid-column:1/-1}
  .ingredient-row{grid-template-columns:minmax(0,1fr) 86px}.ingredient-row label:nth-of-type(1){grid-column:1/-1}.ingredient-row label:nth-of-type(3){grid-column:1/2}.ingredient-row .ingredient-remove{grid-column:2/3;grid-row:2/3}
  .tool-completion-compact .tool-completion-actions{display:grid;grid-template-columns:1fr 1fr}.tool-completion-compact .tool-completion-button{width:100%}
  .site-footer-v3.footer-compact{padding-bottom:calc(5.5rem + env(safe-area-inset-bottom))}.footer-primary-links,.footer-utility-links{gap:.55rem 1rem}
}
@media(max-width:430px){
  .book-source-actions{padding-left:0}.book-source-banner .book-source-inner{grid-template-columns:1fr}.book-source-volume{display:none}
  .tool-use-step span{font-size:.62rem}.tool-use-step b{width:22px;height:22px;flex-basis:22px}
  .tool-completion-compact .tool-completion-actions{grid-template-columns:1fr}
}
@media print{
  .tool-filter-shell,.tool-group-toggle,.footer-compact{display:none!important}
  .tool-output{position:static}.tool-book-group .tool-source-card{display:flex!important}
}

/* Book connection stays visible without placing a full promotional panel between the title and the tool. */
.tool-book-credit{display:inline-flex;align-items:center;gap:.3rem;width:max-content;max-width:100%;margin:.75rem 0 0;padding:.38rem .58rem;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.08);color:#ead8cb;font-size:.72rem;font-weight:750;line-height:1.25}
.tool-book-credit a{color:#fff;text-decoration-thickness:1px;text-underline-offset:3px}
.tool-page-header+.legacy-tool-use-steps{margin-top:.85rem}
@media(max-width:650px){.tool-book-credit{white-space:normal;border-radius:10px}.legacy-tool-use-steps{margin-inline:0}}
