@font-face{font-family:"SWM Bookman Web";font-style:normal;font-weight:400;font-display:swap;src:local("URW Bookman Light"),local("Bookman Old Style"),url("https://cdn.jsdelivr.net/gh/Alhadis/URW-Core35-Fonts@master/fonts/URWBookman-Light.woff2") format("woff2")}
@font-face{font-family:"SWM Bookman Web";font-style:normal;font-weight:700;font-display:swap;src:local("URW Bookman Demi"),local("Bookman Old Style Bold"),url("https://cdn.jsdelivr.net/gh/Alhadis/URW-Core35-Fonts@master/fonts/URWBookman-Demi.woff2") format("woff2")}
:root{--burg:#96021B;--ink:#271e20;--cream:#fdfef7;--muted:#6f6565;--line:#e8d6d6;--pale:#f7eded;--white:#fff}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.5 "SWM Bookman Web","Bookman Old Style","URW Bookman","Bookman",serif}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #be757e;outline-offset:2px}.site-header{border-bottom:3px solid var(--burg);background:#fff}.header-inner{max-width:1260px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:14px 22px;gap:20px}.wordmark{width:235px;max-width:63%;height:auto}.prototype-label{font-size:13px;color:var(--burg);font-weight:700;text-align:right}main{max-width:1260px;padding:30px 22px 65px;margin:auto}.page-intro{display:flex;align-items:center;gap:22px;justify-content:space-between;margin-bottom:28px}.intro-text{max-width:740px}.eyebrow{font-size:12px;letter-spacing:.11em;font-weight:700;color:var(--burg);text-transform:uppercase}.page-intro h1{font-size:clamp(25px,3.4vw,43px);line-height:1.12;color:var(--burg);margin:10px 0 14px}.page-intro p{margin:0 0 12px}.prototype-note,.local-note{font-size:13px;color:var(--muted)}.cover{width:125px;border:1px solid var(--line);box-shadow:0 8px 15px #45222a17}.workspace{display:grid;grid-template-columns:minmax(295px,.87fr) minmax(0,1.4fr);align-items:start;gap:22px}.recipe-panel,.shopping-panel{border:1px solid var(--line);border-radius:16px;background:#fff;padding:24px;box-shadow:0 7px 18px #45222a0b}.section-head,.shopping-top{display:flex;justify-content:space-between;gap:15px;align-items:start}.section-head h2,.shopping-top h2{font-size:25px;color:var(--burg);margin:4px 0}.helper{font-size:13px;color:var(--muted);margin:4px 0 19px}.pill{white-space:nowrap;background:var(--pale);border-radius:99px;font-size:12px;padding:7px 10px;color:var(--burg)}.recipe-list{display:grid;gap:8px}.recipe-choice{display:flex;align-items:center;text-align:left;gap:12px;padding:12px 13px;border:1px solid var(--line);border-radius:10px;width:100%;background:#fff;color:var(--ink)}.recipe-choice:hover{background:#fcf7f7}.recipe-choice.active{border:2px solid var(--burg);background:#faf1f2;padding:11px 12px}.recipe-choice .choice-check{border:1.5px solid var(--burg);border-radius:5px;display:grid;place-items:center;width:25px;height:25px;flex:none;color:transparent;font-weight:700}.recipe-choice.active .choice-check{background:var(--burg);color:#fff}.recipe-choice strong{font-size:14px;font-weight:700;line-height:1.3;display:block}.recipe-choice small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.extra-form{background:#fcf8f7;border:1px solid var(--line);border-radius:12px;padding:15px;margin:20px 0 15px}.extra-form h3{margin:0 0 12px;color:var(--burg);font-size:17px}.extra-fields{display:grid;grid-template-columns:1.6fr 1fr;gap:10px}.extra-form label{display:flex;flex-direction:column;gap:5px;flex:1}.extra-form label span{font-size:12px;color:var(--muted)}.extra-form input,.extra-form select,.edit-input{border:1px solid #cab4b8;border-radius:7px;padding:10px 9px;background:#fff;width:100%;color:var(--ink);min-width:0}.extra-bottom{display:flex;align-items:end;gap:12px;margin-top:10px}.btn{border:1px solid var(--burg);border-radius:8px;padding:9px 13px;font-weight:700;font-size:13px;white-space:nowrap;min-height:42px}.primary{background:var(--burg);color:#fff}.primary:hover{background:#75071c}.secondary{background:#fff;color:var(--burg)}.secondary:hover{background:var(--pale)}.shopping-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.shopping-groups{min-height:120px}.group{margin-bottom:20px}.group h3{font-size:16px;margin:0 0 8px;color:var(--burg);padding-bottom:6px;border-bottom:1px solid var(--line)}.shopping-item{display:flex;align-items:flex-start;gap:10px;padding:7px 2px;border-bottom:1px solid #f5eeee}.shopping-item:last-child{border-bottom:0}.tick{width:19px;height:19px;flex:none;accent-color:var(--burg);margin:4px 0 0}.item-main{flex:1;min-width:0}.item-text{line-height:1.5;font-size:14px;overflow-wrap:anywhere}.shopping-item.bought .item-text{text-decoration:line-through;color:#8b8282}.source-note{font-size:11px;color:#827879;margin-top:2px}.item-tools{display:flex;gap:3px;flex:none}.small-action{color:var(--burg);background:transparent;border:0;font-size:12px;text-decoration:underline;padding:2px 3px;min-height:28px}.small-action:hover{background:var(--pale)}.inline-editor{display:flex;gap:5px}.inline-editor .edit-input{font-size:13px;padding:5px}.inline-editor .btn{min-height:32px;padding:5px 9px}.empty{background:#fbf7f6;border:1px dashed #d9b4bb;color:var(--muted);padding:20px;text-align:center;border-radius:10px}.print-head,.print-footer{display:none}.local-note{margin-top:19px;text-align:center}@media(max-width:800px){main{padding:20px 13px 45px}.workspace{grid-template-columns:1fr;gap:15px}.recipe-panel,.shopping-panel{padding:17px}.page-intro h1{font-size:28px}.cover{width:89px}.page-intro{align-items:flex-start}.recipe-list{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-choice{padding:10px;gap:7px}.recipe-choice strong{font-size:12px}.recipe-choice.active{padding:9px}.recipe-choice .choice-check{width:20px;height:20px}}@media(max-width:470px){.recipe-list{grid-template-columns:1fr}.page-intro{gap:12px}.cover{width:72px}.page-intro h1{font-size:25px}.extra-fields{grid-template-columns:1fr}.extra-bottom{flex-wrap:wrap}.extra-bottom .btn{flex:1}.shopping-actions .btn{flex:1}.item-tools{flex-direction:column}}
@page{size:A4;margin:13mm 15mm}@media print{html,body{background:#fff!important;color:#000;font:10.8pt/1.3 "SWM Bookman Web","Bookman Old Style","URW Bookman","Bookman",serif}main{margin:0;max-width:100%;padding:0}.no-print{display:none!important}.workspace{display:block}.shopping-panel{border:0;padding:0;box-shadow:none}.print-head{display:block;text-align:center;margin-bottom:16px;padding-bottom:10px;border-bottom:2px solid #96021B}.print-head img{display:block;width:55mm;height:auto;margin:0 auto 5mm}.print-head h2{margin:0;color:#96021B;font-size:19pt}.print-head p{font-size:9pt;color:#555;margin:3mm 0 0}.print-footer{display:block;border-top:1px solid #d8c2c2;padding-top:6px;font-size:8pt;text-align:center;margin-top:8mm;color:#777}.shopping-groups{min-height:0;column-count:2;column-gap:12mm}.group{break-inside:avoid;page-break-inside:avoid;margin-bottom:7mm}.group h3{font-size:12pt;color:#96021B;margin:0 0 3mm;padding-bottom:1mm;border-bottom:1px solid #e0cccc}.shopping-item{break-inside:avoid;padding:2mm 0;border-bottom:0;gap:2.5mm}.tick{appearance:none!important;-webkit-appearance:none!important;border:1.2px solid #444!important;border-radius:1px;background:white!important;width:4mm;height:4mm;margin:1.2mm 0 0}.item-text{font-size:9pt;color:#111!important;text-decoration:none!important;overflow-wrap:break-word}.source-note,.item-tools{display:none!important}.empty{display:none}.print-head,.print-footer{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* SWM Kitchen v0.2 — refinements on the recovered v0.1 visual foundation */
:root {--burg:#840f26;--cream:#fdfbf5;--ink:#241b1e;--muted:#6d6164;--pale:#fbf0f1;--line:#ead8da}
html{scroll-behavior:smooth;scroll-padding-top:95px}
body{background:#faf7f2}
a{color:var(--burg)}
a:focus-visible,summary:focus-visible{outline:3px solid #be757e;outline-offset:3px;border-radius:5px}
.site-header{position:sticky;top:0;z-index:20;border-bottom:2px solid var(--burg);box-shadow:0 2px 14px #3510170e}
.header-inner{padding-top:11px;padding-bottom:11px}
.brand-link{display:flex;align-items:center;max-width:59%}
.wordmark{width:228px;max-width:100%}
.header-actions{display:flex;gap:15px;align-items:center}
.header-install{min-height:38px;padding:8px 12px;color:var(--burg);background:white;font-size:12px}
.header-install:hover{background:var(--pale)}
.connection{font-size:11px;color:var(--muted);white-space:nowrap;display:flex;align-items:center;gap:7px}
.connection-dot{width:8px;height:8px;border-radius:50%;background:#7aa07b;display:inline-block}
.connection.offline .connection-dot{background:#bd814b}
main{padding-top:24px}
.page-intro{border:1px solid #ead4d8;border-radius:16px;padding:22px 28px;background:linear-gradient(115deg,#fff 5%,#f9e9eb 100%);box-shadow:0 7px 23px #45222a0b;align-items:center;gap:30px;margin-bottom:15px}
.page-intro h1{font-size:clamp(29px,3.4vw,46px);max-width:680px;letter-spacing:-.032em;margin-top:12px}
.page-intro .intro-text p{max-width:650px}
.intro-links{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}
.action-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.book-visual{display:flex;flex-direction:column;align-items:center;gap:7px;flex:none}
.cover{width:145px;border:2px solid #e6cdd2;border-radius:2px;box-shadow:0 12px 22px #45222a25}
.book-caption{font-size:11px;color:var(--muted)}
.app-status{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;color:#6d6164;font-size:12px;margin-bottom:21px;padding:0 3px}
.edition{letter-spacing:.065em;color:var(--burg);font-size:11px;font-weight:700}
.edition strong{font-size:12px;background:#f5e4e7;border:1px solid #e5c6cc;border-radius:20px;padding:2px 7px}
.recipe-panel,.shopping-panel{border-radius:15px}
.section-head,.shopping-top{align-items:flex-start}
.section-head h2,.shopping-top h2{line-height:1.18;letter-spacing:-.025em}
.recipe-choice{transition:background .15s ease,border-color .15s ease;min-height:61px}
.recipe-choice.active{background:#f9e9ec}
.recipe-choice .choice-check{border-color:var(--burg)}
.recipe-choice small{margin-top:4px}
.panel-footnote{margin-top:19px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.extra-form{margin-top:14px}
.shopping-actions{margin:17px 0 8px}
.shopping-actions .btn{flex:1}
.list-utilities{display:flex;gap:13px 20px;flex-wrap:wrap;margin-bottom:19px;padding-bottom:15px;border-bottom:1px solid var(--line)}
.quiet-button{background:none;color:var(--burg);font-size:12px;text-decoration:underline;border:0;padding:4px 0}
.quiet-button.danger{color:#7b3640}
.quiet-button:hover{color:#591125}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.under-note{font-size:13px;color:var(--muted);border-top:1px solid #e4d6d6;padding:20px 6px 30px;margin:23px 0 0}
.under-note h2{color:var(--burg);font-size:17px;margin:0 0 8px}
.under-note p{margin:8px 0 12px;max-width:1040px}
.under-note details{background:white;border:1px solid var(--line);border-radius:9px;padding:12px 14px;margin-top:14px;max-width:900px}
.under-note summary{cursor:pointer;color:var(--burg);font-weight:700}
.toast{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:min(540px,92vw);background:var(--ink);color:#fff;font-size:13px;border-radius:9px;padding:11px 16px;box-shadow:0 8px 24px #0003;z-index:100;text-align:center}
.toast[hidden]{display:none}
@media(max-width:950px){.header-inner{padding:9px 15px}.page-intro{padding:21px}.cover{width:120px}.workspace{gap:15px}}
@media(max-width:800px){main{padding-top:16px}.page-intro{padding:19px;margin-bottom:13px}.page-intro h1{font-size:31px}.app-status{margin-bottom:13px}.book-visual .cover{width:105px}}
@media(max-width:470px){
  .header-inner{gap:10px}.brand-link{max-width:55%}.wordmark{width:178px}
  .header-actions{gap:7px}.connection{font-size:0;gap:0}.connection-dot{width:9px;height:9px}
  .header-install{min-height:36px;padding:6px 9px;font-size:11px}
  .page-intro{padding:16px;gap:14px;align-items:start}
  .page-intro h1{font-size:26px;margin:7px 0 10px}
  .page-intro p{font-size:13px}
  .book-visual .cover{width:70px}
  .book-caption{display:none}
  .intro-links .btn{font-size:11px;padding:8px 9px;min-height:35px}
  .app-status{font-size:11px}
  .section-head h2,.shopping-top h2{font-size:23px}
  .shopping-actions{gap:6px}.shopping-actions .btn{font-size:11px;padding:7px 8px}
  .list-utilities{gap:8px 14px}.quiet-button{font-size:11px}
  .under-note{font-size:12px}
}
@media print{
  html{scroll-behavior:auto}
  body{background:white}
  .page-intro,.app-status,.under-note,.toast{display:none!important}
  .shopping-panel{background:white}
  .shopping-groups{column-count:2}
  .shopping-item.bought .item-text{color:#111!important;text-decoration:none!important}
  .print-head h2{color:#840f26}
  .group h3{color:#840f26}
}

/* v0.3 — Browse recipes first. Choose ingredients deliberately. */
.recipe-list{grid-template-columns:1fr!important}
.recipe-entry{min-width:0}
.recipe-choice{width:100%}
.recipe-choice.expanded{border-color:var(--burg);border-bottom-left-radius:0;border-bottom-right-radius:0;background:#fbf1f1}
.recipe-choice-info{flex:1;min-width:0}
.recipe-chevron{color:var(--burg);font-size:23px;line-height:1;font-weight:700;padding:0 5px}
.recipe-details{padding:13px 14px 16px;border:1px solid var(--burg);border-top:0;border-radius:0 0 10px 10px;background:#fffdfb}
.recipe-note{color:var(--muted);font-size:12px;line-height:1.5;margin:0 0 11px}
.recipe-actions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:13px}
.recipe-actions .btn{white-space:normal;min-height:38px}
.recipe-actions button:disabled{opacity:.5;cursor:default}
.ingredient-heading{font-size:14px;font-weight:700;color:var(--burg);padding:4px 0 7px;border-bottom:1px solid var(--line)}
.ingredient-pick{display:flex;align-items:center;gap:11px;min-width:0;padding:10px 0;border-bottom:1px solid #f1e8e6}
.ingredient-pick:last-child{border-bottom:0}
.ingredient-name{flex:1;min-width:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.ingredient-action{white-space:nowrap;flex:none;min-width:82px;min-height:36px;border:1px solid var(--burg);border-radius:7px;background:white;color:var(--burg);font-size:12px;font-weight:700;padding:6px 9px}
.ingredient-action:hover{background:var(--pale)}
.ingredient-action.chosen{background:var(--pale);border-color:#d6b8bd}
.ingredient-action:focus-visible{outline:3px solid #be757e;outline-offset:2px}
@media(max-width:470px){.recipe-choice{padding:11px 12px}.recipe-details{padding:12px}.ingredient-action{min-width:74px}}
@media print{.recipe-details,.recipe-entry{display:none!important}}

/* --- v0.5: a genuinely mobile-first app interface, retaining the desktop workspace. --- */
:root { color-scheme: light; }
button,input,select { -webkit-tap-highlight-color:transparent; }
.mobile-tabs,.mobile-quickstart,.mobile-extra-toggle {display:none}
.recipe-search {margin:12px 0 15px}
.recipe-search label {display:block;font-size:12px;color:var(--muted);margin-bottom:5px}
.recipe-search-control {display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #d9c7c8;border-radius:10px;padding:0 10px;min-height:44px}
.recipe-search-control svg {height:18px;width:18px;flex:none;color:#857477}
.recipe-search-control input {border:0;background:transparent;color:var(--ink);font-size:14px;min-width:0;width:100%;outline:none;padding:10px 0}
.recipe-search-control:focus-within {outline:2px solid #ac7c85;outline-offset:1px}
.recipe-search-control input:focus-visible {outline:0}
#clear-search {background:transparent;border:0;color:var(--burg);font-size:16px;min-height:38px;padding:6px 8px}
.list-head-actions {display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end;align-items:center}
@media(max-width:760px) {
  html, body {width:100%;overflow-x:clip}
  html {scroll-padding-top:78px}
  body {background:#faf7f3;overscroll-behavior-y:contain}
  body, input, button, select { -webkit-text-size-adjust:100% }
  .site-header {height:67px;position:sticky;top:0;z-index:30;background:#fffdfb;border-bottom:1px solid #eddadd;box-shadow:0 3px 18px #271e200a}
  .header-inner {height:100%;padding:9px 18px;gap:12px}
  .brand-link {max-width:72%}
  .wordmark {width:220px;max-width:100%;max-height:38px}
  .header-install {font-size:12px;min-height:36px;border-radius:22px;padding:7px 12px}
  .connection {font-size:0}
  .connection-dot {height:9px;width:9px}
  main {padding:17px 15px calc(105px + env(safe-area-inset-bottom));max-width:560px}
  .mobile-home {display:block}
  .mobile-quickstart {display:grid;gap:10px}
  .mobile-quickstart .quickstart-heading {margin:8px 2px 3px}
  .quickstart-heading h2 {font-size:24px;letter-spacing:-.025em;margin:3px 0 0;color:var(--burg);line-height:1.2}
  .quickstart-card {width:100%;display:flex;gap:13px;align-items:center;text-align:left;background:white;border:1px solid var(--line);border-radius:15px;padding:15px 14px;box-shadow:0 4px 13px #25131b09;min-height:84px;color:var(--ink)}
  .quickstart-card:active {background:var(--pale)}
  .quickstart-icon {display:grid;place-items:center;height:46px;width:46px;flex:none;background:#f7e9eb;color:var(--burg);border-radius:14px;font-size:25px;line-height:1}
  .quickstart-icon svg {width:25px;height:25px}
  .quickstart-card strong {display:block;color:var(--burg);font-size:16px;line-height:1.3}
  .quickstart-card small {display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.45}
  .quick-arrow {margin-left:auto;color:var(--burg);font-size:28px;line-height:1}
  .mobile-home-install {display:flex;align-items:center;gap:16px;padding:17px;margin:12px 0 0;border-radius:15px;background:#fff;border:1px solid var(--line)}
  .mobile-home-install img {height:55px;width:55px;object-fit:contain;flex:none}
  .mobile-home-install strong {font-size:14px;display:block;color:var(--burg)}
  .mobile-home-install p {font-size:12px;line-height:1.5;color:var(--muted);margin:4px 0 10px}
  .mobile-home-install .btn {min-height:38px}
  .page-intro {display:flex;padding:16px;gap:13px;border-radius:16px;margin-bottom:12px;background:linear-gradient(122deg,#fff9f7,#f5e1e5);align-items:center}
  .page-intro .eyebrow {font-size:10px}
  .page-intro h1 {font-size:clamp(24px,6.7vw,31px);letter-spacing:-.035em;line-height:1.13;margin:8px 0 12px}
  .page-intro p {font-size:12px;line-height:1.55;margin-bottom:11px}
  .page-intro .intro-links {display:none}
  .page-intro .intro-links .btn {font-size:12px;padding:9px 10px;min-height:42px}
  .book-visual .cover {width:clamp(75px,23vw,115px)}
  .book-caption {display:none}
  .app-status {display:flex;align-items:flex-start;flex-direction:column;gap:5px;font-size:11px;padding:1px 2px 0;margin-bottom:15px}
  .under-note {margin-top:22px;padding:17px 3px 30px}
  .under-note details {font-size:13px}
  .workspace {display:block}
  .recipe-panel,.shopping-panel {padding:19px 16px;border-radius:15px;box-shadow:0 4px 18px #45222a08}
  .section-head,.shopping-top {gap:10px;align-items:flex-start}
  .section-head h2,.shopping-top h2 {font-size:27px}
  .section-head .pill {white-space:normal;text-align:center;font-size:10px;line-height:1.3;padding:7px 8px;max-width:103px}
  .helper {font-size:12px;margin-bottom:12px}
  .recipe-list {grid-template-columns:1fr}
  .recipe-entry {border-radius:12px;overflow:hidden}
  .recipe-choice {border-radius:11px;min-height:73px;gap:11px;padding:12px}
  .recipe-choice.expanded {border-bottom-left-radius:0;border-bottom-right-radius:0}
  .recipe-choice strong {font-size:14px}
  .recipe-choice small {font-size:11px}
  .recipe-choice .choice-check {height:26px;width:26px}
  .recipe-choice .recipe-chevron {font-size:25px}
  .recipe-details {border-bottom-left-radius:11px;border-bottom-right-radius:11px;padding:14px}
  .recipe-actions .btn {min-height:46px;padding:12px 14px;font-size:13px}
  .ingredient-pick {min-height:60px;padding:10px 0}
  .ingredient-name {font-size:13px;line-height:1.5}
  .ingredient-action {min-height:43px;min-width:84px;font-size:12px;border-radius:10px}
  .recipe-search-control {min-height:48px;border-radius:12px}
  .recipe-search-control input {font-size:16px}
  .panel-footnote {font-size:11px}
  .shopping-top {flex-wrap:wrap;margin-bottom:12px}
  .list-head-actions {width:100%;justify-content:space-between}
  .mobile-extra-toggle {display:inline-flex;align-items:center;justify-content:center;min-height:43px;border-radius:10px}
  .shopping-panel {display:flex;flex-direction:column}
  .shopping-top {order:1}
  .shopping-groups {order:2;min-height:0}
  .extra-form {order:3;margin:8px 0 12px}
  .extra-form:not(.mobile-open) {display:none}
  .extra-form.mobile-open {display:block}
  .shopping-actions {order:4;margin:14px 0 10px}
  .list-utilities {order:5;margin:0;padding:13px 0}
  .group {margin-bottom:22px}
  .group h3 {font-size:16px;margin-bottom:9px}
  .shopping-item {padding:11px 0;gap:11px;min-height:60px}
  .tick {height:23px;width:23px;margin-top:3px}
  .item-text {font-size:14px;line-height:1.4}
  .item-tools {flex-direction:row;align-items:flex-start;gap:3px}
  .small-action {font-size:12px;padding:7px 4px;min-height:42px}
  .source-note {font-size:10px;margin-top:4px}
  .inline-editor {flex-direction:column}
  .inline-editor .edit-input {font-size:16px;padding:9px}
  .shopping-actions .btn {flex:1 1 30%;min-height:46px;font-size:12px;padding:9px 8px}
  .shopping-actions {gap:7px}
  .quiet-button {font-size:12px;min-height:39px;text-align:left}
  .empty {padding:27px 18px;font-size:13px;line-height:1.6}
  .mobile-tabs {position:fixed;display:grid;grid-template-columns:repeat(3,1fr);left:0;right:0;bottom:0;z-index:50;background:#fffefc;border-top:1px solid #e8d6d9;box-shadow:0 -5px 24px #2c102012;padding:6px max(12px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:6px}
  .mobile-tab {position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-height:52px;background:transparent;border:0;border-radius:10px;color:#77646b;font-size:11px;font-weight:700;letter-spacing:.01em;padding:5px 6px}
  .mobile-tab svg {width:24px;height:24px}
  .mobile-tab.active {color:var(--burg);background:#f9edef}
  .mobile-tab:focus-visible {outline:2px solid #b87d87}
  .tab-count {position:absolute;right:calc(50% - 28px);top:0;background:var(--burg);color:white;border-radius:12px;font-size:10px;line-height:1;min-width:17px;padding:4px 5px;font-weight:700}
  .tab-count[hidden] {display:none}
  .toast {bottom:calc(75px + env(safe-area-inset-bottom));border-radius:10px;font-size:12px;max-width:min(440px,93vw)}
  body[data-tab="home"] .recipe-panel,body[data-tab="home"] .shopping-panel {display:none}
  body[data-tab="recipes"] .mobile-home,body[data-tab="recipes"] .under-note,body[data-tab="recipes"] .shopping-panel {display:none}
  body[data-tab="list"] .mobile-home,body[data-tab="list"] .under-note,body[data-tab="list"] .recipe-panel {display:none}
  body[data-tab="list"] .shopping-panel {display:flex}
  @media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
}
@media(max-width:370px) {
  .page-intro .intro-links {flex-direction:column;align-items:stretch}
  .page-intro .intro-links .btn {width:100%}
  .wordmark {width:185px}
  .item-tools {flex-direction:column;gap:0}
  .small-action {min-height:30px}
}
@media print {
  .mobile-tabs,.mobile-quickstart,.mobile-home-install,.mobile-extra-toggle,.recipe-search {display:none!important}
  body[data-tab] .shopping-panel {display:block!important}
  body[data-tab] .recipe-panel {display:none!important}
  body[data-tab] .mobile-home {display:none!important}
  .shopping-panel .shopping-groups {display:block!important}
  .shopping-panel .print-head {display:block!important}
  .shopping-panel .extra-form,.shopping-panel .shopping-actions,.shopping-panel .list-utilities {display:none!important}
  main {padding:0!important}
}

/* v0.6: honest, visible offline readiness instead of hiding service worker failures. */
.offline-status {font-weight:700;border:1px solid #c9b9ba;background:#fffdfa;color:#64575b;border-radius:8px;padding:6px 10px;font-size:11px;line-height:1.4}
.offline-status[data-state="ready"] {border-color:#afc7b2;background:#f1f8ef;color:#285f3b}
.offline-status[data-state="error"] {border-color:#dfbdad;background:#fff3e9;color:#8b451e}
@media(max-width:760px){.offline-status{display:inline-flex;align-items:center;align-self:flex-start;margin:4px 0 2px;font-size:12px}}
@media print {.offline-status{display:none!important}}

/* v0.7 Library + full-screen recipe reader + font QA. */
:root{--burg:#840f26;--cream:#faf7f2}
.book-shelf[hidden],.book-detail[hidden],.redeem-preview[hidden],.library-heading[hidden],#recipe-reader[hidden]{display:none!important}
.library-view{border:1px solid var(--line);border-radius:16px;background:#fff;padding:24px;margin:0 0 22px;box-shadow:0 7px 18px #45222a0b}
.library-heading h2,.book-detail-heading h2{font-size:clamp(27px,4vw,38px);color:var(--burg);margin:5px 0 4px;line-height:1.15}
.library-heading p,.book-detail-heading p{color:var(--muted);margin:6px 0 23px;font-size:14px}
.book-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.book-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fdfaf7;padding:15px;display:flex;align-items:stretch;min-width:0;gap:16px}
.book-open{display:flex;gap:16px;align-items:center;border:0;background:transparent;text-align:left;padding:0;width:100%;color:inherit}
.book-open:hover .book-action{text-decoration:underline}
.book-open img,.upcoming-cover{width:125px;aspect-ratio:0.72;object-fit:cover;flex:none;box-shadow:4px 6px 13px #301b251a;border-radius:2px}
.upcoming-cover{background:linear-gradient(145deg,#660b1e,#8b2035 70%,#450d19);color:#fff6ea;display:flex;flex-direction:column;justify-content:space-between;align-items:center;text-align:center;padding:16px 8px;border:3px double #d6a7a9}
.upcoming-cover span{font-size:11px;letter-spacing:.18em}.upcoming-cover strong{font-size:13px;line-height:1.35}.upcoming-cover small{font-size:9px;letter-spacing:.13em}
.book-card-text{display:flex;flex-direction:column;gap:7px;min-width:0;justify-content:center;font-size:13px;color:var(--muted)}
.book-card-text strong{font-size:19px;color:var(--ink);line-height:1.22}
.book-status{color:#2e7047;letter-spacing:.1em;font-size:10px;font-weight:700}
.book-status.future{color:#9a6572}
.book-action{color:var(--burg);font-weight:700;margin-top:5px}
.locked-label{font-size:11px;border:1px solid #e1ccd0;padding:6px 9px;border-radius:20px;align-self:flex-start}
.redeem-preview{border-top:1px solid var(--line);margin-top:23px;padding-top:18px}
.redeem-preview h3{font-size:19px;color:var(--burg);margin:6px 0}
.redeem-preview p{font-size:13px;color:var(--muted);max-width:640px}
.code-placeholder{display:flex;gap:8px;max-width:490px}
.code-placeholder input{flex:1;min-width:0;padding:11px;border:1px solid var(--line);border-radius:8px;background:#f5efee}
.code-placeholder button{opacity:.5;cursor:not-allowed}
.back-link{background:none;border:0;color:var(--burg);padding:10px 4px;font-size:13px;font-weight:700;text-align:left;min-height:43px}
.back-link:hover{text-decoration:underline}
.book-detail .recipe-panel{padding:0;border:0;box-shadow:none;margin:0}
.book-detail .recipe-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.book-detail .recipe-choice{min-height:87px;border:1px solid var(--line);padding:14px;border-radius:12px}
.book-detail .recipe-choice.active{background:#fff4f5;border-color:#bd8d97}
.book-detail .recipe-choice .recipe-choice-info{flex:1}
.book-detail .recipe-choice .choice-check{display:none}
.workspace{display:block}
.workspace .shopping-panel{max-width:100%}
.recipe-reader{position:fixed;inset:0;z-index:90;overflow:auto;background:#f9f5f0;overscroll-behavior:contain}
body.reader-open{overflow:hidden}
.reader-page{max-width:1040px;min-height:100%;background:#fffcf8;margin:0 auto;box-shadow:0 12px 30px #20050b15}
.reader-toolbar{height:67px;position:sticky;top:0;z-index:4;background:#fffaf7;border-bottom:1px solid #ead8da;display:flex;align-items:center;justify-content:space-between;padding:9px 24px}
.toolbar-heart{height:35px;width:auto}
.reader-content{max-width:960px;margin:0 auto;padding:24px 35px 90px}
.reader-heading h1{font-size:clamp(27px,4vw,43px);color:var(--burg);line-height:1.12;margin:11px 0 10px}
.reader-strap{font-size:12px;color:var(--muted)}
.reader-hero{margin:19px 0 30px}
.reader-hero-art{height:180px;background:radial-gradient(ellipse at 18% 14%,#eed8d7,#be858e 55%,#6d172b);color:white;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:30px}
.reader-hero-art img{width:78px;height:78px;object-fit:contain;filter:drop-shadow(0 2px 4px #5c243e44)}
.reader-hero-art span{font-size:18px;font-weight:700;max-width:190px;line-height:1.3;letter-spacing:.02em}
.reader-art-note{color:var(--muted);font-size:10px;margin:8px 3px 0}
.reader-columns{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.1fr);gap:45px}
.reader-columns section{min-width:0}
.reader-section-title{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-bottom:2px solid #d9b1ba;padding-bottom:8px;margin-bottom:13px}
.reader-section-title h2{font-size:22px;margin:0;color:var(--burg)}
.reader-section-title span{font-size:11px;color:var(--muted)}
.reader-hint{font-size:12px;color:var(--muted)}
.reader-ingredients .recipe-actions{margin:15px 0}
.reader-ingredients .ingredient-pick{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee2e2;gap:12px;padding:10px 0;min-height:59px}
.reader-ingredients .ingredient-action{flex:none}
.method-step{display:flex;gap:15px;border-bottom:1px solid #eddfdd;padding:9px 0 17px;margin-bottom:5px}
.step-number{font-size:21px;font-weight:700;color:#a45566;line-height:1.2;min-width:29px}
.step-copy h3{font-size:16px;color:var(--ink);margin:0 0 5px}
.step-copy p{font-size:14px;line-height:1.65;margin:0}
.method-provenance{font-size:11px;color:var(--muted);margin-top:24px}
.method-unavailable{padding:17px;border-radius:11px;background:#f9efed;border:1px solid var(--line)}
.method-unavailable h3{font-size:16px;color:var(--burg);margin:0 0 9px}
.method-unavailable p{font-size:13px;line-height:1.55}
.method-unavailable a{display:inline-block;text-decoration:none;margin-top:8px;white-space:normal;text-align:center}
@media(max-width:760px){
 .library-view{padding:19px 15px;margin:0;border-radius:15px}
 .book-shelf{grid-template-columns:1fr;gap:12px}
 .book-card{padding:12px;gap:12px}
 .book-open{gap:13px}
 .book-open img,.upcoming-cover{width:105px}
 .book-card-text strong{font-size:16px}
 .book-card-text{font-size:11px;gap:6px}
 .redeem-preview{padding-top:19px}
 .book-detail .recipe-list{grid-template-columns:1fr}
 .book-detail .recipe-choice{min-height:76px}
 .reader-page{max-width:none}
 .reader-toolbar{height:59px;padding:6px 15px}
 .reader-toolbar .back-link{font-size:12px}
 .reader-content{padding:18px 19px calc(45px + env(safe-area-inset-bottom))}
 .reader-heading h1{font-size:clamp(27px,7.1vw,36px)}
 .reader-hero-art{height:135px;gap:14px}
 .reader-hero-art span{font-size:13px;max-width:150px}
 .reader-hero-art img{width:64px;height:64px}
 .reader-columns{display:block}
 .reader-method{margin-top:32px}
 .reader-ingredients .ingredient-pick{padding:11px 0}
 .reader-section-title h2{font-size:21px}
 .method-step{padding:11px 0 15px}
 .reader-columns section{max-width:none}
 body[data-tab="home"] .library-view,body[data-tab="home"] .workspace{display:none!important}
 body[data-tab="library"] .mobile-home,body[data-tab="library"] .workspace,body[data-tab="library"] .under-note{display:none!important}
 body[data-tab="list"] .mobile-home,body[data-tab="list"] .library-view,body[data-tab="list"] .under-note{display:none!important}
 body[data-tab="list"] .workspace{display:block!important}
 body[data-tab="list"] .shopping-panel{display:flex!important}
 .mobile-tabs{grid-template-columns:repeat(3,1fr)}
}
@media print{.library-view,.recipe-reader{display:none!important}.workspace{display:block!important}.shopping-panel{display:block!important}}

/* v0.8 — Published REV25 photography, real book art, approved vector recipe lettering. */
.upcoming-cover-actual{width:125px;aspect-ratio:0.72;object-fit:cover;flex:none;box-shadow:4px 6px 13px #301b251a;border-radius:2px}
.recipe-choice-photo{display:block;width:64px;height:64px;object-fit:cover;flex:none;border-radius:8px;background:#f7eded}
.reader-title-art{display:block;width:auto;max-width:100%;max-height:135px;height:auto;object-fit:contain;object-position:left;margin:13px 0 12px}
.reader-intro{font-size:15px;line-height:1.63;color:var(--ink);max-width:760px;margin:17px 0 7px}
.reader-facts{font-size:12px;color:var(--burg);font-weight:700;line-height:1.6;margin:10px 0 0}
.reader-hero{border-radius:13px;overflow:hidden;border:1px solid #eee1e2;background:#f8eff0;margin:21px 0 30px}
.reader-photo{display:block;width:100%;height:min(42vw,390px);min-height:240px;object-fit:cover;object-position:center}
.book-detail .recipe-choice{gap:13px}
@media(max-width:760px){
 .upcoming-cover-actual{width:105px}
 .recipe-choice-photo{width:65px;height:65px}
 .reader-title-art{max-height:135px;margin:13px 0 8px}
 .reader-intro{font-size:13px;line-height:1.62;margin:14px 0 4px}
 .reader-facts{font-size:11px}
 .reader-photo{height:auto;min-height:0;aspect-ratio:1.12;object-fit:cover}
 .reader-hero{margin:20px 0 25px}
 .book-detail .recipe-choice{gap:11px}
}
@media(max-width:360px){.recipe-choice-photo{width:54px;height:54px}}
@media print{.reader-hero,.reader-title-art{display:none!important}}

/* v0.8.1 hotfix — defensive image constraints and navigational layout. */
.book-visual img,.book-card img{display:block;max-width:100%;height:auto;}
.book-open{min-width:0;max-width:100%;}
.book-card{min-width:0;overflow:hidden;}
.upcoming-cover-actual{width:125px;max-width:36%;height:auto;align-self:center;aspect-ratio:.72;object-fit:cover}
@media(max-width:760px){
 .page-intro .book-visual{max-width:95px;width:25%;min-width:58px;}
 .page-intro .book-visual .cover{width:100%;max-width:95px;height:auto;}
 .book-shelf{grid-template-columns:minmax(0,1fr)}
 .book-open img{width:105px;max-width:35%;} 
 .upcoming-cover-actual{width:105px;max-width:35%;}
 .book-card-text{min-width:0;overflow-wrap:anywhere;}
 body[data-tab="home"] .library-view{display:none!important}
 body[data-tab="library"] .mobile-home{display:none!important}
}

/* v0.8.2 — approved SWM heart-drawing welcome, 3 seconds inside Kitchen only. */
.swm-intro{display:none;position:fixed;z-index:9999;inset:0;background:#faf7f2;overflow:auto;place-items:center;padding:20px 18px max(20px,env(safe-area-inset-bottom));}
html.intro-pending{overflow:hidden;}
html.intro-pending .swm-intro{display:grid;}
.swm-intro-inner{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;min-height:65vh;position:relative;}
.swm-intro-skip{position:fixed;top:max(18px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));border:1px solid #d8c0c3;background:#fff8f7;color:#840f26;border-radius:99px;padding:8px 17px;min-width:75px;min-height:40px;font-weight:700;z-index:1;}
.swm-intro-heart{width:min(92vw,430px);aspect-ratio:1055 / 879;position:relative;flex:none;}
.swm-intro-heart canvas,.swm-intro-fallback{display:block;width:100%;height:100%;object-fit:contain;}
.swm-intro-fallback[hidden]{display:none;}
.swm-intro-wordmark{width:min(76vw,280px);max-height:100px;height:auto;object-fit:contain;}
.swm-intro-caption{font-size:clamp(14px,3.5vw,18px);font-weight:700;letter-spacing:0.01em;color:#840f26;text-align:center;margin:4px 0 0;}
.welcome-replay{text-align:center;margin:0 0 10px;}
.welcome-replay-button{border:0;background:none;color:#840f26;text-decoration:underline;text-underline-offset:3px;padding:8px 10px;min-height:40px;font-size:12px;}
@media(max-width:760px){.swm-intro-inner{min-height:70vh;gap:5px}.swm-intro-heart{width:min(95vw,410px)}.swm-intro-wordmark{width:min(79vw,250px)}.welcome-replay{margin-top:0;}}
@media(prefers-reduced-motion:reduce){.swm-intro-heart canvas{display:none}.swm-intro-fallback[hidden]{display:block;}}
@media print {.swm-intro,.welcome-replay{display:none!important}html.intro-pending{overflow:auto!important}}

/* v0.8.3: exact SWM upper-case letters, recomposed from approved REV25 SVG shapes. */
.swm-display-title{display:block;height:auto;max-width:100%;width:auto;max-height:100%;object-fit:contain;object-position:left center}
.page-intro .swm-display-home .swm-display-title{width:min(100%,290px);height:auto;margin:0 0 4px}
.swm-display-subline{font:700 clamp(22px,4.3vw,35px)/1.2 "SWM Bookman Web","Bookman Old Style","URW Bookman","Bookman",serif;letter-spacing:-.025em;color:var(--burg);display:block}
.quickstart-heading h2 .swm-display-title{width:min(100%,290px);height:auto}
.library-heading h2 .swm-display-title{width:min(100%,235px);height:auto}
.redeem-preview h3 .swm-display-title{width:min(100%,235px);height:auto}
.book-detail-heading h2 .swm-display-title{width:min(100%,350px);height:auto}
.section-head h2 .swm-display-title{width:min(100%,225px);height:auto}
.shopping-top h2 .swm-display-title{width:min(100%,290px);height:auto}
#info-title .swm-display-title{width:min(100%,340px);height:auto}
.reader-section-title h2 .swm-display-title{width:min(100%,180px);height:auto}
.print-head h2{font-family:"SWM Bookman Web","Bookman Old Style","URW Bookman","Bookman",serif}
.type-diagnostic{padding:9px 12px;margin:13px 0;border:1px solid var(--line);border-radius:10px;font-size:12px;color:var(--muted)}
.type-diagnostic summary{cursor:pointer;font-weight:700;color:var(--burg)}
.type-diagnostic p{margin:9px 0;line-height:1.5}
.type-diagnostic #font-status[data-font="ok"]{color:#285f3b;font-weight:700}
.type-diagnostic #font-status[data-font="fallback"]{color:#934f2d;font-weight:700}
@media(max-width:760px){
 .page-intro .swm-display-home .swm-display-title{width:min(100%,235px)}
 .swm-display-subline{font-size:25px;line-height:1.15}
 .quickstart-heading h2 .swm-display-title{width:min(100%,270px)}
 .library-heading h2 .swm-display-title{width:min(100%,200px)}
 .shopping-top h2 .swm-display-title{width:min(100%,265px)}
 .reader-section-title h2 .swm-display-title{width:min(100%,165px)}
}
@media print {.type-diagnostic{display:none!important}}

/* SWM Kitchen v0.9 · exact approved logo and first-launch welcome. */
.swm-kitchen-home-logo{display:block;width:min(100%,340px);height:auto;max-height:290px;object-fit:contain;object-position:left center;margin:0 0 12px;}
@media(max-width:760px){.swm-kitchen-home-logo{width:min(70vw,265px);max-height:245px;object-position:left center;margin:0 0 12px;}}
@media(max-width:380px){.swm-kitchen-home-logo{width:min(66vw,232px);}}
.swm-intro{background:#fcfbf5;opacity:1;transition:opacity 540ms ease-in-out;}
html.intro-pending .swm-intro{display:grid;}
html.intro-pending .swm-intro.intro-closing{opacity:0;pointer-events:none;}
.swm-intro-inner{min-height:70vh;gap:0;}
.swm-intro-heart{width:min(94vw,450px);aspect-ratio:1 / 1;}
.swm-intro-heart canvas,.swm-intro-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
.swm-intro-fallback[hidden]{display:none;}
@media(max-height:700px){.swm-intro-heart{width:min(78vh,94vw,380px)}}
@media(prefers-reduced-motion:reduce){.swm-intro{transition:none}}


/* v0.9.1: declutter Home while preserving approved SWM artwork. */
.page-intro{display:flex;justify-content:center;align-items:center;text-align:center;background:#fcfbf5;border-radius:18px;padding:26px 20px 19px;margin-bottom:17px;box-shadow:none;}
.page-intro .intro-text{width:100%;max-width:none;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.swm-kitchen-home-logo{width:min(100%,350px);height:auto;max-height:none;object-fit:contain;object-position:center center;margin:0 auto;}
/* The replay remains accessible, without another paragraph beneath the logo. */
.header-actions{display:flex;align-items:center;gap:9px;}
.header-actions .welcome-replay-button{min-width:37px;width:37px;height:37px;padding:0;min-height:37px;border:1px solid #e1cbd0;border-radius:50%;background:#fcf7f5;color:#840f26;text-decoration:none;font-size:25px;line-height:1;display:grid;place-items:center;flex:none;}
.header-actions .welcome-replay-button:active{background:#f4e1e4}
.list-offline-indicator{display:inline-flex;order:1;margin:0 0 13px 0;align-self:flex-start;}
@media(max-width:760px){
 .page-intro{min-height:275px;padding:22px 14px 17px;margin-bottom:15px;background:#fcfbf5;}
 .swm-kitchen-home-logo{display:block;width:min(80vw,300px);height:auto;max-height:none;object-position:center center;margin:0 auto;}
 .header-actions .welcome-replay-button{min-width:37px;width:37px;height:37px;}
 .list-offline-indicator{font-size:11px;}
}
@media(max-width:380px){.page-intro{min-height:245px}.swm-kitchen-home-logo{width:min(79vw,255px)}}
@media print{.list-offline-indicator{display:none!important}}

/* v0.9.2: exact user-supplied site banner with our real SWM Kitchen heart. */
.site-header .header-inner{min-width:0;}
.site-header .brand-link{max-width:calc(100% - 30px);flex:1;min-width:0;text-decoration:none;}
.swm-site-banner{display:flex;align-items:center;gap:10px;min-width:0;width:max-content;max-width:100%;}
.swm-site-heart{display:block;width:58px;height:52px;object-fit:contain;flex:none;}
.swm-site-lettering{display:block;width:min(360px,59vw);height:auto;max-width:calc(100% - 68px);object-fit:contain;}
.header-actions{justify-content:flex-end;margin-left:auto;}
/* Repurpose the replay button as an unobtrusive bottom-of-Home control. */
.welcome-replay{display:flex;justify-content:center;margin:17px 0 16px;}
.welcome-replay .welcome-replay-button{background:transparent;border:0;border-radius:20px;color:var(--burg);padding:9px 14px;min-height:40px;font-size:12px;line-height:1.3;text-decoration:none;display:inline-flex;align-items:center;gap:7px;}
.welcome-replay .welcome-replay-button span{font-size:22px;line-height:1;}
.welcome-replay .welcome-replay-button:active{background:var(--pale);}
/* The approved SWM glyph outlines form both mixed-case headings. */
.quickstart-heading h2{margin:0;line-height:1.15;}
.quickstart-heading .swm-home-subheading{margin:0 0 7px;}
.quickstart-heading .swm-home-subheading .swm-display-title{width:min(100%,330px);height:auto;max-height:45px;}
.quickstart-heading .swm-home-mainheading .swm-display-title{width:min(100%,350px);height:auto;max-height:49px;}
/* An intro drawn logo rises and scales to the position of the visible Home logo. */
.swm-intro-heart{transform-origin:center center;transform:translate3d(0,0,0) scale(1);transition:transform 790ms cubic-bezier(.24,.72,.2,1);}
.swm-intro.intro-closing .swm-intro-heart{transform:translate3d(var(--intro-shift-x,0px),var(--intro-shift-y,-105px),0) scale(var(--intro-scale,.79));}
.swm-intro{transition:opacity 790ms cubic-bezier(.2,.6,.2,1);}
@media(max-width:760px){
 .site-header{height:64px;}
 .site-header .header-inner{padding:7px 12px;gap:8px;}
 .swm-site-banner{gap:7px;}
 .swm-site-heart{width:49px;height:47px;}
 .swm-site-lettering{width:min(62vw,260px);max-width:calc(100% - 56px);}
 .quickstart-heading .swm-home-subheading .swm-display-title{width:min(86vw,305px);max-height:43px;}
 .quickstart-heading .swm-home-mainheading .swm-display-title{width:min(92vw,326px);max-height:44px;}
 .mobile-quickstart .quickstart-heading{margin:5px 3px 7px;}
 .welcome-replay{margin:18px 0 8px;}
}
@media(max-width:365px){
 .swm-site-heart{width:41px;height:41px;}
 .swm-site-lettering{width:min(59vw,224px);max-width:calc(100% - 48px);}
}
@media(prefers-reduced-motion:reduce){.swm-intro-heart{transition:none!important;}}
@media print{.swm-site-banner,.welcome-replay{display:none!important;}}

/* SWM Kitchen v0.9.3 — exact approved Kitchen logo in banner, light mixed-case headings. */
.swm-site-heart{height:65px;width:64px;object-fit:contain;object-position:center;}
.swm-site-banner{gap:8px;}
.swm-site-lettering{max-width:calc(100% - 74px);}
.quickstart-heading .swm-home-subheading .swm-display-title{width:min(100%,342px);max-height:41px;height:auto;}
.quickstart-heading .swm-home-mainheading .swm-display-title{width:min(100%,310px);max-height:43px;height:auto;}
.quickstart-heading .swm-home-mainheading{margin:0 0 13px;}
.swm-intro{transition:opacity 1790ms cubic-bezier(.2,.58,.2,1);}
.swm-intro-heart{transition:transform 1790ms cubic-bezier(.19,.68,.17,1);}
@media(max-width:760px){
 .site-header{height:76px;}
 .site-header .header-inner{padding:4px 12px;}
 .swm-site-heart{width:59px;height:65px;}
 .swm-site-banner{gap:7px;}
 .swm-site-lettering{width:min(61vw,265px);max-width:calc(100% - 66px);}
 .quickstart-heading .swm-home-subheading .swm-display-title{width:min(92vw,345px);max-height:39px;}
 .quickstart-heading .swm-home-mainheading .swm-display-title{width:min(91vw,325px);max-height:40px;}
 .mobile-tab span:not(.tab-count){font-size:11px;white-space:nowrap;}
}
@media(max-width:355px){
 .swm-site-heart{width:52px;height:58px;}
 .swm-site-lettering{max-width:calc(100% - 60px);width:min(61vw,238px);}
 .mobile-tab span:not(.tab-count){font-size:10px;}
}
@media(prefers-reduced-motion:reduce){.swm-intro,.swm-intro-heart{transition:none!important;}}

/* SWM Kitchen v0.9.4 — V5 reference-derived button glyphs; no fake lowercase font. */
.quickstart-heading,.welcome-replay{display:none!important}
.mobile-quickstart .quickstart-card{justify-content:center;text-align:center;min-width:0;}
.quickstart-card>span:not(.quickstart-icon):not(.quick-arrow){display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;flex:1;}
.quickstart-card .quickstart-title{display:block;line-height:1;max-width:100%;}
.quickstart-title img{display:block;width:auto;max-width:100%;max-height:39px;height:auto;margin:0 auto;object-fit:contain;}
.quickstart-card small{text-align:center;}
/* The replay affordance is the circular arrow around the live connection dot. */
.connection-replay{position:relative;display:grid;place-items:center;flex:none;width:48px;height:48px;min-width:48px;min-height:48px;border:0;border-radius:50%;padding:0;background:transparent;color:var(--burg);}
.connection-replay svg{position:absolute;inset:0;width:48px;height:48px;fill:none;stroke:var(--burg);stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round;}
.connection-replay .connection{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:0;font-size:0;color:transparent;}
.connection-replay .connection-dot{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 3px #fff8f7;}
.connection-replay:focus-visible{outline:3px solid #ac7c85;outline-offset:2px;}
.connection-replay:active{background:#f6e9ec;}
.connection-replay .connection-word{font-size:0;}
/* Fit the whole mobile Home view above fixed navigation; keep logo centred, scale to viewport. */
@media(max-width:760px){
 body[data-tab="home"] main{padding-top:8px;padding-bottom:calc(72px + env(safe-area-inset-bottom));}
 .site-header{height:70px;}
 .header-inner{padding:3px 12px;}
 .swm-site-heart{width:56px;height:59px;}
 .swm-site-lettering{width:min(59vw,255px);max-width:calc(100% - 63px);}
 .header-actions{margin-left:auto;}
 .mobile-home{min-height:calc(100dvh - 150px - env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:stretch;justify-content:center;}
 .page-intro{min-height:0;margin:0 0 10px;padding:clamp(9px,2vh,16px) 8px 10px;}
 .swm-kitchen-home-logo{width:min(76vw,285px,calc((100dvh - 385px)*.7));min-width:0;max-height:min(37dvh,300px);height:auto;}
 .mobile-quickstart{display:grid;gap:9px;}
 .quickstart-card{min-height:77px;padding:9px 12px;gap:2px;}
 .quickstart-card small{font-size:11px;line-height:1.3;margin-top:4px;}
 .quickstart-title img{max-height:34px;}
 .connection-replay{width:42px;height:42px;min-width:42px;min-height:42px;}
 .connection-replay svg{height:42px;width:42px;}
}
@media(max-width:370px){.page-intro{padding:6px;margin-bottom:7px}.quickstart-card{min-height:69px;padding:7px 8px}.quickstart-title img{max-height:30px}}
@media(max-height:740px) and (max-width:760px){
 .page-intro{padding:6px;margin-bottom:8px;}
 .swm-kitchen-home-logo{width:min(63vw,212px,33dvh);}
 .quickstart-card{min-height:69px;}
 .quickstart-title img{max-height:30px;}
}
@media print{.connection-replay{display:none!important}}

/* v0.9.5 — restore V5 ink descenders from full source glyphs; allow full pixel box. */
.quickstart-title{overflow:visible!important;line-height:normal!important}
.quickstart-title img{object-fit:contain!important;overflow:visible!important;max-height:44px!important}
@media(max-width:760px){.quickstart-title img{max-height:39px!important}}
@media(max-width:370px), (max-height:740px) and (max-width:760px){.quickstart-title img{max-height:35px!important}}

/* SWM Kitchen v0.9.6: simultaneous rising-heart fade out and Home fade in. */
html.intro-pending .site-header,
html.intro-pending main,
html.intro-pending .mobile-tabs { opacity:0; }
html.intro-pending.intro-revealing .site-header,
html.intro-pending.intro-revealing main,
html.intro-pending.intro-revealing .mobile-tabs { opacity:1; }
.site-header, main, .mobile-tabs { transition:opacity 1790ms cubic-bezier(.2,.58,.2,1); }
@media(prefers-reduced-motion:reduce){
 .site-header, main, .mobile-tabs{transition:none!important;}
}


/* v0.9.8 — Library polish pass: centred shelf heading, SWM status labels, cleaner forthcoming card. */
.library-heading-centred{text-align:center;display:flex;flex-direction:column;align-items:center;}
.library-heading-centred p{margin-left:auto;margin-right:auto;}
.library-heading-centred h2 .swm-display-title{width:min(100%,255px);}
.swm-status{display:inline-flex;align-items:center;line-height:1;}
.swm-status img{display:block;width:auto;max-width:100%;height:18px;object-fit:contain;}
.book-card-text .swm-status + strong{margin-top:2px;}
.book-card.forthcoming .book-card-text,.book-card.available .book-card-text{justify-content:center;}
.book-card.forthcoming .book-card-text span,.book-card.available .book-card-text span{overflow-wrap:anywhere;}
.book-card.forthcoming .book-card-text .locked-label{display:none!important;}
.upcoming-cover-actual{filter:none;}
@media(max-width:760px){.swm-status img{height:16px}.library-heading-centred h2 .swm-display-title{width:min(100%,215px);}}


/* v0.9.9 — A book-cover-only Library, accessible first-tap zoom, second-tap open. */
.library-view{min-height:min(70dvh,710px)}
.library-heading-centred{margin:10px auto 30px;}
.library-heading-centred h2{margin:0;}
.library-heading-centred h2 .swm-display-title{width:min(100%,270px);height:auto;}
.swm-cover-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;justify-items:center;gap:clamp(14px,5vw,54px);width:min(100%,830px);margin:0 auto;padding:clamp(8px,2vw,22px) clamp(4px,1vw,12px) 25px;}
.swm-cover-shelf .book-card{display:block;min-width:0;width:100%;max-width:370px;border:0;background:transparent;box-shadow:none;overflow:visible;padding:0;border-radius:3px;}
.swm-cover-shelf .book-cover-button{display:block;width:100%;min-height:0;aspect-ratio:1/1;padding:0;margin:0;border:0;background:transparent;color:inherit;border-radius:3px;cursor:pointer;transition:transform 230ms cubic-bezier(.24,.65,.2,1),filter 230ms ease;}
.swm-cover-shelf .book-cover-button img{display:block;width:100%;height:100%;max-width:none;aspect-ratio:1/1;object-fit:contain;border:0;box-shadow:0 10px 22px #301b2521;border-radius:2px;}
.swm-cover-shelf .book-cover-button:hover{transform:translateY(-5px) scale(1.025);}
.swm-cover-shelf .book-cover-button:focus-visible,.expanded-cover-action:focus-visible{outline:3px solid #a9485c;outline-offset:5px;}
.cover-stage[hidden],.cover-stage .expanded-cover[hidden]{display:none!important}
.cover-stage{position:relative;display:flex;flex-direction:column;min-height:calc(100dvh - 205px);padding:0 0 15px;}
.cover-stage-back{align-self:flex-start;z-index:2;margin-top:0;}
.cover-stage-centre{display:flex;flex:1;align-items:center;justify-content:center;width:100%;min-height:0;}
.expanded-cover{display:block;flex:none;width:min(88vw,520px);max-width:100%;aspect-ratio:1/1;animation:swm-cover-grow 320ms cubic-bezier(.16,.65,.25,1) both;}
.expanded-cover img{display:block;width:100%;height:100%;object-fit:contain;box-shadow:0 15px 32px #27101627;border-radius:2px;}
.expanded-cover-action{padding:0;border:0;background:transparent;cursor:pointer;}
.expanded-cover-action:active{transform:scale(.995);}
.expanded-cover-future{cursor:default;}
@keyframes swm-cover-grow{from{transform:scale(.77);opacity:.4}to{transform:scale(1);opacity:1}}
@media(max-width:760px){
 .library-view{min-height:calc(100dvh - 168px);padding:22px 12px 24px;}
 .library-heading-centred{margin:16px auto 35px;}
 .library-heading-centred h2 .swm-display-title{width:min(61vw,244px);}
 .swm-cover-shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(9px,3.5vw,22px);padding:0 0 20px;}
 .swm-cover-shelf .book-card{padding:0;}
 .swm-cover-shelf .book-cover-button img{width:100%;max-width:none;}
 .cover-stage{min-height:calc(100dvh - 210px);}
 .expanded-cover{width:min(89vw,430px,calc(100dvh - 260px));}
}
@media(max-width:355px){.library-heading-centred{margin-bottom:26px}.swm-cover-shelf{gap:10px}.expanded-cover{width:min(89vw,calc(100dvh - 230px));}}
@media(prefers-reduced-motion:reduce){.swm-cover-shelf .book-cover-button{transition:none}.expanded-cover{animation:none}}
@media print{.cover-stage{display:none!important}}


/* v0.9.10 — book to recipe fade and enlarged original-colour Coming 2027 banner. */
/* The original 2027 book stays grayscale; this separately cut banner is authentic artwork. */
.expanded-cover-future{position:relative;isolation:isolate;}
.expanded-cover-future>.expanded-future-base{display:block;width:100%;height:100%;}
.expanded-cover-future>.expanded-future-banner{
  position:absolute;z-index:2;
  width:87%;max-width:none;height:auto;
  left:6.5%;top:59.4%;
  object-fit:contain;box-shadow:none;border-radius:0;
  filter:drop-shadow(0 6px 7px #38111925);
  animation:swm-2027-banner-rise 560ms cubic-bezier(.18,.72,.18,1) both;
  pointer-events:none;
}
@keyframes swm-2027-banner-rise{
  from{opacity:.35;transform:translateY(14px) scale(.78);}
  to{opacity:1;transform:translateY(0) scale(1);}
}
/* Native View Transitions crossfade covers/catalogue where supported. */
.library-view{view-transition-name:swm-library-content;}
::view-transition-old(swm-library-content){animation:300ms ease-in both swm-library-fade-out;}
::view-transition-new(swm-library-content){animation:420ms ease-out both swm-library-fade-in;}
@keyframes swm-library-fade-out{to{opacity:0;}}
@keyframes swm-library-fade-in{from{opacity:0;}to{opacity:1;}}
/* Fallback for browsers without document.startViewTransition. */
.book-detail.swm-book-fade-in{animation:swm-library-fade-in 430ms ease both;}
@media(prefers-reduced-motion:reduce){
  .expanded-cover-future>.expanded-future-banner,.book-detail.swm-book-fade-in{animation:none!important;}
  ::view-transition-old(swm-library-content),::view-transition-new(swm-library-content){animation-duration:.01ms!important;}
}
/* Faster accepted intro: 3.2s drawing followed by a 1.2s simultaneous logo/Home transition. */
html.intro-pending .swm-intro,html.intro-pending.intro-revealing .swm-intro{
  transition-duration:1200ms;
}
.swm-intro,.swm-intro-heart,.site-header, main,.mobile-tabs{
  transition-duration:1200ms;
}

/* v0.9.11: Restore the original 2027 ribbon, use V5 mixed-case headings and a saved-ingredients shelf. */
.expanded-cover-future>.expanded-future-banner{display:none!important;}
.library-heading-centred h2 .swm-display-title{display:block;width:min(78vw,330px);max-height:58px;object-fit:contain;margin:0 auto;}
.shopping-top{display:flex;flex-direction:column;align-items:stretch;}
.shopping-title-centred{text-align:center;width:100%;display:flex;flex-direction:column;align-items:center;}
.shopping-title-centred h2{margin:0 auto 8px;}
.shopping-title-centred h2 .swm-display-title{display:block;width:min(86vw,405px);max-width:100%;height:auto;max-height:68px;object-fit:contain;margin:0 auto;}
.shopping-title-centred .helper{max-width:520px;margin:0 auto 10px;line-height:1.5;}
.shopping-top .list-head-actions{width:100%;justify-content:space-between;align-items:center;}
.saved-ingredients-panel{display:block;border:1px solid var(--line);border-radius:13px;background:#fffdfa;margin:12px 0 16px;overflow:hidden;}
.saved-ingredients-panel summary{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--burg);font-size:14px;font-weight:700;cursor:pointer;padding:14px 16px;list-style:none;min-height:49px;}
.saved-ingredients-panel summary::-webkit-details-marker{display:none;}
.saved-ingredients-panel summary:before{content:'▸';display:inline-block;margin-right:4px;}
.saved-ingredients-panel[open] summary:before{content:'▾';}
.saved-ingredients-panel summary span:first-child{margin-right:auto;}
.saved-ingredients-panel summary:focus-visible{outline:2px solid #9c4155;outline-offset:-3px;}
.saved-count{font-size:11px;color:var(--muted);white-space:nowrap;}
.saved-panel-content{padding:0 14px 16px;}
.saved-hint{font-size:12px;color:var(--muted);margin:0 0 14px;line-height:1.5;}
.saved-ingredient-form{border:1px solid var(--line);border-radius:11px;background:#faf4f3;padding:12px;margin-bottom:14px;}
.saved-fields{display:grid;grid-template-columns:1fr .65fr;gap:9px;}
.saved-fields label,.saved-bottom label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted);min-width:0;}
.saved-ingredient-form input,.saved-ingredient-form select{background:#fff;border:1px solid #cab4b8;border-radius:8px;min-height:43px;font-size:16px;padding:9px 10px;color:var(--ink);width:100%;}
.saved-bottom{display:flex;justify-content:space-between;align-items:end;gap:11px;margin-top:10px;}
.saved-bottom label{flex:1 1 145px;min-width:145px;}
.saved-bottom button{flex:1 1 145px;}
.saved-ingredient-list{display:grid;gap:7px;}
.saved-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 4px;border-bottom:1px solid #eee1e1;}
.saved-row:last-child{border-bottom:0;}
.saved-row-name{min-width:0;font-size:13px;line-height:1.45;overflow-wrap:anywhere;}
.saved-row-name small{font-size:11px;display:block;color:var(--muted);}
.saved-row-actions{display:flex;flex:none;gap:4px;align-items:center;}
.saved-row-actions .btn{padding:7px 11px;min-height:37px;}
.saved-row-actions .small-action{min-height:37px;padding:7px 5px;}
.saved-empty{font-size:12px;line-height:1.5;color:var(--muted);margin:7px 3px;}
@media(max-width:760px){
 .library-heading-centred h2 .swm-display-title{width:min(75vw,290px);max-height:54px;}
 .shopping-top{order:1;}
 .saved-ingredients-panel{order:2;margin:9px 0 12px;}
 .shopping-groups{order:3;}
 .extra-form{order:4;}
 .shopping-actions{order:5;}
 .list-utilities{order:6;}
 .shopping-title-centred h2 .swm-display-title{width:min(90vw,365px);max-height:68px;}
 .shopping-title-centred .helper{font-size:12px;margin-bottom:10px;}
 .saved-bottom{flex-wrap:wrap;}
 .saved-bottom button{flex:1 0 145px;}
 .saved-fields{grid-template-columns:1fr .65fr;}
}
@media(max-width:355px){.saved-fields{grid-template-columns:1fr}.saved-row{align-items:flex-start;}.saved-row-actions{flex-direction:column;}}
@media print{.saved-ingredients-panel{display:none!important;}}

/* v0.9.12 — optical centring of the real SWM V5 Library title and its two-cover shelf. */
body[data-tab="library"] .library-view.shelf-visible {
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  min-height:calc(100dvh - 160px); padding-top:24px; padding-bottom:46px;
}
body[data-tab="library"] .library-view.shelf-visible .library-heading-centred {
  margin:0 auto clamp(30px,5dvh,56px); width:100%; max-width:100%;
  display:flex; align-items:center; justify-content:center; text-align:center;
}
body[data-tab="library"] .library-view.shelf-visible .library-heading-centred h2 {
  display:flex; width:100%; margin:0; padding:0; align-items:center; justify-content:center;
}
body[data-tab="library"] .library-view.shelf-visible .library-heading-centred h2 .swm-display-title {
  display:block; width:min(76vw,340px); max-width:100%; height:auto; max-height:none;
  object-fit:contain; margin:0 auto;
}
body[data-tab="library"] .library-view.shelf-visible .swm-cover-shelf {
  width:min(100%,820px); margin:0 auto; padding:0; align-self:center;
}
@media(max-width:760px){
  body[data-tab="library"] .library-view.shelf-visible {min-height:calc(100dvh - 155px - env(safe-area-inset-bottom)); padding:24px 12px 42px;}
  body[data-tab="library"] .library-view.shelf-visible .library-heading-centred {margin-bottom:clamp(25px,4.5dvh,48px);}
  body[data-tab="library"] .library-view.shelf-visible .library-heading-centred h2 .swm-display-title {width:min(75vw,300px);}
  body[data-tab="library"] .library-view.shelf-visible .swm-cover-shelf {gap:clamp(9px,3.5vw,20px);}
}
/* List title is centred; all standard text retains approved Bookman. */
.shopping-title-centred h2 {display:flex;align-items:center;justify-content:center;width:100%;}
.shopping-title-centred h2 .swm-display-title {margin:0 auto;}


/* SWM Kitchen v0.9.13 — quiet, cover-led recipe catalogue; approved mixed-case V5 headings. */
.book-detail-heading{display:flex;flex-direction:column;align-items:center;text-align:center;margin:8px auto 24px;max-width:100%;}
.book-detail-heading h2{display:flex;justify-content:center;align-items:center;width:100%;margin:0;padding:0;}
.book-detail-heading h2 .cover-title-art{display:block;width:min(100%,490px);max-width:100%;max-height:none;height:auto;margin:0 auto;object-fit:contain;object-position:center;}
.book-detail .recipe-panel{margin:0 auto;max-width:980px;}
.book-detail .recipe-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.book-detail .recipe-entry{min-width:0;}
.book-detail .swm-recipe-choice{display:flex;align-items:center;gap:14px;min-width:0;min-height:100px;padding:14px 15px;border-radius:13px;}
.book-detail .swm-recipe-choice .recipe-choice-info{display:flex;justify-content:center;align-items:center;min-width:0;flex:1;}
.book-detail .swm-recipe-choice .recipe-choice-photo{width:84px;height:84px;flex:none;object-fit:cover;border-radius:9px;}
.book-detail .swm-recipe-choice .recipe-choice-title-art{display:block;max-width:100%;width:auto;height:auto;max-height:145px;object-fit:contain;object-position:center;}
.book-detail .swm-recipe-choice:focus-visible{outline:3px solid #ae6577;outline-offset:2px;}
.reader-heading{text-align:center;display:flex;flex-direction:column;align-items:center;}
.reader-heading .reader-title-art{display:block;max-width:min(100%,610px);max-height:235px;width:auto;height:auto;object-fit:contain;object-position:center;margin:12px auto 14px;}
.reader-heading .reader-strap,.reader-heading .reader-intro,.reader-heading .reader-facts{margin-left:auto;margin-right:auto;}
.reader-section-title{justify-content:center;text-align:center;}
.reader-section-title h2{display:flex;justify-content:center;}
.reader-section-title h2 .swm-display-title{object-position:center;margin:0 auto;}
.reader-ingredients .reader-section-title span{flex:0 0 100%;}
/* All ordinary reader, catalogue and shopping text/buttons remain Bookman. */
.book-detail button,.recipe-reader button,.book-detail .helper,.recipe-reader .reader-strap,.recipe-reader .reader-facts,
.recipe-reader .reader-intro,.recipe-reader .reader-hint,.recipe-reader .step-copy,.recipe-reader .reader-section-title span{
  font-family:"SWM Bookman Web","Bookman Old Style","URW Bookman","Bookman",serif;
}
@media(max-width:760px){
  .book-detail-heading{margin:2px auto 22px;}
  .book-detail-heading h2 .cover-title-art{width:min(92%,390px);}
  .book-detail .recipe-list{grid-template-columns:1fr;gap:9px;}
  .book-detail .swm-recipe-choice{min-height:93px;padding:10px 12px;gap:11px;}
  .book-detail .swm-recipe-choice .recipe-choice-photo{width:75px;height:75px;}
  .book-detail .swm-recipe-choice .recipe-choice-title-art{max-height:145px;max-width:100%;}
  .reader-heading .reader-title-art{max-width:100%;max-height:175px;margin:10px auto 12px;}
}
@media(max-width:360px){
  .book-detail .swm-recipe-choice .recipe-choice-photo{width:65px;height:65px;}
  .book-detail .swm-recipe-choice .recipe-choice-title-art{max-height:136px;}
}
@media print{.book-detail-heading{display:none!important;}}


/* v0.9.14: smaller, correctly extracted V5 book titles; compact SWM navigation. */
/* Both shelf and cover use the same authentic V5 Library wordmark. */
body[data-tab="library"] .library-view.shelf-visible .library-heading-centred h2 .swm-display-title,
.library-heading-centred h2 .swm-display-title{
  width:min(56vw,182px)!important; max-width:100%; max-height:46px!important; height:auto;
}
.swm-library-back,.swm-recipe-back{
  display:inline-flex;gap:7px;align-items:center;justify-content:flex-start;
  text-align:left;max-width:100%;min-width:0;font-family:"SWM Bookman Web","Bookman Old Style","URW Bookman","Bookman",serif;
}
.swm-library-back img{display:block;width:92px;max-width:calc(100% - 23px);max-height:25px;height:auto;object-fit:contain;object-position:left center;}
.swm-recipe-back img{display:block;width:min(65vw,245px);max-width:calc(100% - 24px);max-height:30px;height:auto;object-fit:contain;object-position:left center;}
.swm-back-arrow{font-family:"SWM Bookman Web","Bookman Old Style","URW Bookman","Bookman",serif;font-size:18px;color:var(--burg);line-height:1;flex:none;}
/* Small headings on catalogue cards, with enough room for every descender. */
.book-detail .swm-recipe-choice{min-height:78px;padding:10px 12px;gap:12px;}
.book-detail .swm-recipe-choice .recipe-choice-photo{width:66px;height:66px;}
.book-detail .swm-recipe-choice .recipe-choice-title-art{
  display:block;width:auto;max-width:min(100%,205px);max-height:72px;height:auto;
  object-fit:contain;object-position:center;overflow:visible;
}
.book-detail .swm-recipe-choice .recipe-choice-info{overflow:visible;}
/* Reader titles should read like a restrained cookbook heading, not a billboard. */
.reader-heading .reader-title-art{
  display:block;width:auto;height:auto;max-width:min(100%,440px);max-height:105px;
  object-fit:contain;object-position:center;overflow:visible;margin:10px auto 11px;
}
.shopping-title-centred h2 .swm-display-title{width:min(78vw,315px);max-height:64px;}
@media(max-width:760px){
  body[data-tab="library"] .library-view.shelf-visible .library-heading-centred h2 .swm-display-title,
  .library-heading-centred h2 .swm-display-title{width:min(53vw,168px)!important;max-height:42px!important;}
  .book-detail .swm-recipe-choice{min-height:76px;padding:9px 10px;gap:10px;}
  .book-detail .swm-recipe-choice .recipe-choice-photo{width:61px;height:61px;}
  .book-detail .swm-recipe-choice .recipe-choice-title-art{max-width:min(100%,205px);max-height:70px;}
  .reader-heading .reader-title-art{max-width:min(88vw,305px);max-height:90px;margin:9px auto 10px;}
  .swm-recipe-back img{width:min(64vw,230px);max-width:calc(100% - 24px);}
  .shopping-title-centred h2 .swm-display-title{width:min(78vw,285px);max-height:56px;}
}
@media(max-width:360px){
  .book-detail .swm-recipe-choice .recipe-choice-photo{width:57px;height:57px;}
  .book-detail .swm-recipe-choice .recipe-choice-title-art{max-height:68px;}
  .reader-heading .reader-title-art{max-width:min(86vw,290px);max-height:83px;}
  .swm-recipe-back img{width:min(62vw,205px);}
}


/* v0.9.15 — centre Library and Shopping List *ink*, not a wide image box using left object positioning. */
body[data-tab="library"] .library-view.shelf-visible .library-heading-centred,
.library-heading-centred{
  width:100%!important;max-width:100%!important;min-width:0;
  display:flex!important;flex-direction:column;align-items:center!important;
  justify-content:center!important;text-align:center!important;margin-left:auto!important;margin-right:auto!important;
}
body[data-tab="library"] .library-view.shelf-visible .library-heading-centred h2,
.library-heading-centred h2{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;max-width:100%;padding:0;margin-left:auto;margin-right:auto;text-align:center;
}
body[data-tab="library"] .library-view.shelf-visible .library-heading-centred h2 .swm-display-title,
.library-heading-centred h2 .swm-display-title{
  display:block!important;flex:0 1 auto;width:min(46vw,170px)!important;
  height:auto!important;max-height:none!important;max-width:100%!important;
  object-fit:contain!important;object-position:center center!important;
  margin:0 auto!important;
}
.shopping-top .shopping-title-centred,
.shopping-title-centred{width:100%!important;max-width:100%;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;margin:0 auto;}
.shopping-title-centred h2{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:100%;margin:0 auto 8px!important;}
.shopping-title-centred h2 .swm-display-title{
  display:block!important;flex:0 1 auto;width:min(72vw,305px)!important;
  height:auto!important;max-height:none!important;max-width:100%!important;
  object-fit:contain!important;object-position:center center!important;margin:0 auto!important;
}
/* New complete, deliberately reflowed V5 catalogue title images; never crop long names. */
.book-detail .swm-recipe-choice .recipe-choice-title-art.recipe-title-full{
  display:block!important;flex:none;width:min(100%,205px)!important;
  height:auto!important;max-width:100%!important;max-height:none!important;
  object-fit:contain!important;object-position:center center!important;
  overflow:visible!important;margin:0 auto;
}
.book-detail .swm-recipe-choice .recipe-choice-info{align-self:center;min-width:0;overflow:visible!important;}
.book-detail .recipe-entry-full .swm-recipe-choice{height:auto;min-height:102px;overflow:visible;}
.reader-heading .reader-title-art.reader-title-full{
  display:block;max-width:min(79vw,285px)!important;max-height:132px!important;
  width:auto;height:auto;object-fit:contain!important;object-position:center center!important;
}
/* All ten recipe readers now use the authentic V5 mixed-case artwork for these section titles. */
.reader-section-title{justify-content:center;align-items:center;text-align:center;}
.reader-section-title h2{display:flex;justify-content:center;align-items:center;max-width:100%;min-width:0;overflow:visible;margin:0 auto;}
.reader-section-title h2 .swm-display-title{
  display:block!important;max-width:100%!important;width:min(42vw,165px)!important;
  height:auto!important;max-height:none!important;
  object-fit:contain!important;object-position:center center!important;margin:0 auto!important;
}
.reader-method .reader-section-title h2 .swm-display-title{width:min(36vw,145px)!important;}
@media(max-width:760px){
  body[data-tab="library"] .library-view.shelf-visible .library-heading-centred h2 .swm-display-title,
  .library-heading-centred h2 .swm-display-title{width:min(45vw,156px)!important;}
  .shopping-title-centred h2 .swm-display-title{width:min(74vw,286px)!important;}
  .book-detail .recipe-entry-full .swm-recipe-choice{min-height:108px;}
  .book-detail .swm-recipe-choice .recipe-choice-title-art.recipe-title-full{width:min(100%,200px)!important;}
  .reader-section-title h2 .swm-display-title{width:min(43vw,160px)!important;}
  .reader-method .reader-section-title h2 .swm-display-title{width:min(36vw,142px)!important;}
}
@media(max-width:360px){
 .book-detail .swm-recipe-choice .recipe-choice-title-art.recipe-title-full{width:min(100%,188px)!important;}
 .book-detail .recipe-entry-full .swm-recipe-choice{min-height:114px;}
}


/* v0.9.16: All TEN catalogue recipe titles share an identical approved V5
   letter scale. Multi-line artwork can grow vertically, but never scales
   shorter names up. No cropping, no per-recipe sizing exceptions. */
.book-detail .swm-recipe-choice .recipe-choice-title-art.recipe-title-uniform {
  display:block!important;
  flex:0 1 auto;
  width:var(--swm-card-title-width)!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
  overflow:visible!important;
  margin:0 auto!important;
}
.book-detail .swm-recipe-choice .recipe-choice-info {
  overflow:visible!important;
  min-width:0;
  align-self:center;
}
/* Long titles use more lines rather than smaller letters. */
.book-detail .swm-recipe-choice {height:auto;}


/* v0.9.17 — uniform catalogue cards, chosen using the LONGEST four-line title.
   All ten titles retain the same authentic V5 letter scale; no image is stretched
   to fill a row. Every card has a 112px outer height at phone AND desktop widths. */
.book-detail .recipe-list .recipe-entry{
  height:112px!important;min-height:112px!important;max-height:112px!important;
  min-width:0;overflow:visible;
}
.book-detail .recipe-list .recipe-entry .swm-recipe-choice{
  box-sizing:border-box!important;
  display:flex!important;align-items:center!important;
  height:112px!important;min-height:112px!important;max-height:112px!important;
  padding:8px 11px!important;gap:11px!important;
  overflow:hidden;
}
.book-detail .recipe-list .recipe-entry .swm-recipe-choice .recipe-choice-photo{
  width:66px!important;height:66px!important;max-width:66px!important;
  flex:0 0 66px!important;object-fit:cover;
}
.book-detail .recipe-list .recipe-entry .swm-recipe-choice .recipe-choice-info{
  min-width:0!important;flex:1!important;display:flex!important;
  align-items:center!important;justify-content:center!important;
  height:100%!important;overflow:visible!important;
}
.book-detail .recipe-list .recipe-entry .recipe-choice-title-art.recipe-title-uniform{
  width:var(--swm-card-title-width)!important;
  max-width:100%!important;max-height:94px!important;
  height:auto!important;object-fit:contain!important;
  object-position:center center!important;
  margin:0 auto!important;overflow:visible!important;
}
@media(max-width:360px){
  .book-detail .recipe-list .recipe-entry .swm-recipe-choice .recipe-choice-photo{
    width:59px!important;height:59px!important;max-width:59px!important;
    flex-basis:59px!important;
  }
}


/* v0.9.18: every catalogue title is reflowed to no more than 3 lines.
   Card height stays 112px and all ten use exactly the same V5 glyph scale. */
