:root{color-scheme:light;--catalog-width:1120px;--catalog-gutter:28px;--catalog-photo-ratio:3/4;--bg:#f7f5ef;--card:#fffdf8;--ink:#263f36;--muted:#727c73;--accent:#a45c43;--line:#dedfd3;--soft:#e9ecdf;--button:#294b40;--button-text:#fff;--shadow:0 16px 60px #203b2920;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);padding:env(safe-area-inset-top,0px) max(0px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(0px,env(safe-area-inset-left,0px))}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button:disabled{opacity:.6}img{display:block;max-width:100%}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{display:block;padding:12px}.topbar{max-width:1120px;margin:auto;padding:24px 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-weight:650;letter-spacing:-.4px;font-size:18px}.brand small{display:block;color:var(--muted);font-size:var(--text-small-size,16px);font-weight:450;letter-spacing:1.2px}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;background:var(--card);font-size:26px;flex-shrink:0}main{max-width:var(--catalog-width);margin:auto;padding:0 var(--catalog-gutter)}.hero{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;padding:46px 0 52px}.eyebrow{font-size:var(--text-small-size,16px);text-transform:uppercase;letter-spacing:1.65px;font-weight:650;color:var(--accent);margin:0 0 18px}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(36px,5.5vw,68px);line-height:1.07;letter-spacing:-2px;margin-bottom:22px}h1 em{color:var(--accent);font-weight:400}.intro{color:var(--muted);font-size:var(--text-small-size,16px);line-height:1.8}.hero-stats{display:flex;gap:24px;font-size:var(--text-small-size,16px);color:var(--muted);margin-top:26px}.hero-stats strong{font-size:20px;font-weight:500;color:var(--ink);padding-right:5px}.hero-photos{position:relative;display:flex;gap:16px;align-items:center;padding:0 12px 30px}.hero-photos img{object-fit:cover;width:calc(50% - 8px);height:290px;border-radius:110px 110px 10px 10px}.hero-label{position:absolute;bottom:0;right:10%;font-size:var(--text-small-size,16px);letter-spacing:.6px;color:var(--muted)}.text-button{font-size:var(--text-small-size,16px);color:var(--accent);text-decoration:none}.text-button{background:none;border:0;min-height:44px;padding:6px 0}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-top:16px;margin-bottom:20px}.tab{border:0;background:none;padding:12px 0;font-size:var(--text-small-size,16px);border-bottom:2px solid transparent;color:var(--muted);display:flex;gap:8px;align-items:center}.tab.active{border-color:var(--ink);color:var(--ink);font-weight:600}.tab span{background:var(--soft);border-radius:8px;padding:1px 6px;font-size:var(--text-small-size,16px);font-weight:450}.search{display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:0 14px;height:52px}.search svg{color:var(--muted);flex-shrink:0}.search input{background:none;border:0;outline:none;min-width:0;width:100%;color:var(--ink);font-size:16px;height:100%}.search input::placeholder{color:var(--muted)}.search .icon-button{border:0;background:none;width:32px}.filter-grid{display:grid;grid-template-columns:2fr 1fr 1.2fr;gap:12px;margin-top:16px}.filter-grid label{font-size:var(--text-small-size,16px);letter-spacing:.4px;color:var(--muted)}select{display:block;width:100%;padding:10px 28px 10px 10px;min-height:46px;margin-top:5px;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:9px;font-size:var(--text-small-size,16px);text-overflow:ellipsis}.results-line{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:56px}.results-line p{margin:0;font-size:var(--text-small-size,16px);color:var(--muted)}.group-description{font-size:var(--text-small-size,16px);padding:10px 12px;background:var(--soft);border-radius:9px}.subtle{color:var(--muted);font-size:var(--text-small-size,16px);line-height:1.7}.model-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 18px}.model-card{position:relative;min-width:0}.model-card>a{display:block;text-decoration:none}.card-photo{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:top;background:var(--soft);border-radius:12px;transition:filter .15s}.model-card>a:hover .card-photo{filter:brightness(.95)}.save-card{position:absolute;right:10px;top:10px;width:40px;height:40px;background:#fffdf8ed;color:#294b40;border-color:#ffffff70}.save-card.saved{background:#294b40;color:white}.save-card.saved svg{fill:currentColor}.card-info{padding:13px 1px 0}.tag{font-size:var(--text-small-size,16px);text-transform:uppercase;letter-spacing:1px;color:var(--accent);font-weight:600}.model-card h3{font-family:Georgia,serif;font-size:18px;font-weight:400;line-height:1.27;margin:6px 0 9px}.card-source{font-size:var(--text-small-size,16px);color:var(--muted);margin:0}.card-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.mini-tag{font-size:var(--text-small-size,16px);background:var(--soft);padding:3px 7px;border-radius:6px}.empty{text-align:center;padding:45px 15px 65px}.empty-symbol{font-size:40px;color:var(--accent)}.empty h3{font-family:Georgia,serif;font-size:25px;font-weight:400;margin:8px}.empty p{color:var(--muted);font-size:var(--text-small-size,16px)}.button{border:0;border-radius:10px;padding:13px 20px;background:var(--button);color:var(--button-text);display:inline-flex;gap:9px;align-items:center;justify-content:center;text-decoration:none;font-size:var(--text-small-size,16px);min-height:48px}.button.secondary{background:var(--soft);color:var(--ink)}.button svg{width:19px}.footer{border-top:1px solid var(--line);text-align:center;color:var(--muted);font-size:var(--text-small-size,16px);padding:26px 0;margin-top:40px}.footer span{display:block;font-size:var(--text-small-size,16px);margin-top:6px}.detail-nav{display:flex;justify-content:space-between;align-items:center;padding:18px 0;gap:12px}.back-link{display:inline-flex;gap:7px;align-items:center;border:0;background:none;padding:10px 0;font-size:var(--text-small-size,16px)}.detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:38px;padding-bottom:38px}.detail-photo-button{border:0;padding:0;background:var(--soft);border-radius:16px;overflow:hidden;width:100%;display:block;cursor:zoom-in}.detail-photo{width:100%;max-height:720px;object-fit:contain}.photo-hint{font-size:var(--text-small-size,16px);color:var(--muted);margin:8px 0 20px}.detail-copy h1{font-size:36px;letter-spacing:-1px;line-height:1.13;margin-top:12px;margin-bottom:14px}.source-line{font-size:var(--text-small-size,16px);color:var(--muted)}.source-pages{font-size:var(--text-small-size,16px);color:var(--muted);margin:7px 0 23px}.facts{margin:0}.fact{padding:15px 0;border-top:1px solid var(--line)}.fact dt{color:var(--accent);text-transform:uppercase;letter-spacing:1px;font-size:var(--text-small-size,16px);font-weight:650;margin-bottom:6px}.fact dd{margin:0;font-size:var(--text-small-size,16px);line-height:1.65;white-space:pre-line}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.set-box{display:flex;align-items:center;gap:15px;background:var(--soft);padding:16px;border-radius:12px;margin-top:20px}.set-box img{width:80px;height:95px;object-fit:cover;border-radius:8px}.set-box p{font-size:var(--text-small-size,16px);margin:5px 0 0}.pattern-section{border-top:1px solid var(--line);padding:28px 0 45px}.pattern-section h2{font-family:Georgia,serif;font-weight:400;font-size:28px}.pattern-section>p{max-width:770px;white-space:pre-line;font-size:var(--text-small-size,16px);line-height:1.8}.pattern-row{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap;margin:18px 0}.pattern-image{border:1px solid var(--line);background:white;border-radius:10px;padding:14px;flex:1 1 240px;max-width:700px;cursor:zoom-in}.pattern-image img{width:auto;max-height:900px;margin:auto}.pattern-image span{display:block;font-size:var(--text-small-size,16px);margin-top:12px;color:#536256}.return-bottom{margin-bottom:30px}dialog{border:1px solid var(--line);color:var(--ink);background:var(--bg);border-radius:18px;box-shadow:var(--shadow);padding:0;max-height:92vh;max-height:92dvh;max-width:calc(100vw - 24px)}dialog::backdrop{background:#15291fc9}body:has(dialog[open]){overflow:hidden}#image-viewer{width:min(1050px,calc(100vw - 24px))}.viewer-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border-bottom:1px solid var(--line)}.viewer-bar p{margin:0;font-size:var(--text-small-size,16px)}.viewer-scroll{overflow:auto;max-height:70vh;max-height:70dvh;background:white;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}.viewer-scroll img{width:auto;max-width:100%;height:auto;margin:auto}.viewer-hint{font-size:var(--text-small-size,16px);color:var(--muted);margin:12px 16px}#info-dialog{width:520px}.info-inner{position:relative;padding:35px 26px}.info-inner h2{font-family:Georgia,serif;font-weight:400;font-size:31px}.info-inner>p{font-size:var(--text-small-size,16px);line-height:1.8}.dialog-close{position:absolute;right:12px;top:12px}.info-inner .eyebrow{padding-right:40px}.info-inner .button{margin-top:12px}#toast{position:fixed;bottom:calc(22px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);border-radius:12px;padding:12px 18px;box-shadow:var(--shadow);font-size:var(--text-small-size,16px);z-index:10;max-width:calc(100% - 32px);width:max-content}
@media(max-width:760px){:root{--catalog-gutter:20px}.topbar{padding:18px 20px}.hero{gap:15px;padding:30px 0 36px}.hero-photos{padding:0 0 23px;gap:8px}.hero-photos img{height:200px;width:calc(50% - 4px)}h1{font-size:42px}.hero-copy .eyebrow{font-size:var(--text-small-size,16px);letter-spacing:1.1px}.intro{font-size:var(--text-small-size,16px)}.hero-stats{gap:12px;font-size:var(--text-small-size,16px)}.hero-stats strong{font-size:17px}.hero-label{font-size:var(--text-small-size,16px);right:0}.model-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 14px}.detail-layout{gap:24px}.detail-copy h1{font-size:30px}}
@media(max-width:540px){.topbar{padding:16px 18px}.brand{font-size:17px}.hero{grid-template-columns:1.25fr 1fr;gap:6px;padding:28px 0 31px}.hero-copy .eyebrow{font-size:var(--text-small-size,16px);letter-spacing:.8px;margin-bottom:14px}h1{font-size:36px;letter-spacing:-1.5px;margin-bottom:15px}.intro{font-size:var(--text-small-size,16px);line-height:1.8}.hero-stats{margin-top:15px}.hero-photos{gap:7px}.hero-photos img{height:166px;border-radius:60px 60px 7px 7px}.hero-label{display:none}.tabs{gap:20px;margin-top:12px}.tab{font-size:var(--text-small-size,16px)}.filter-grid{grid-template-columns:1fr 1fr;gap:12px}.filter-grid label:first-child{grid-column:1/-1}.model-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.model-card h3{font-size:17px}.card-source{font-size:var(--text-small-size,16px)}.save-card{right:8px;top:8px}.detail-layout{display:block}.detail-photo{max-height:600px}.detail-copy h1{font-size:32px}.detail-copy{padding-top:8px}.pattern-row{display:block}.pattern-image{width:100%;margin-bottom:16px}.detail-nav .button{font-size:var(--text-small-size,16px);padding:10px 12px;min-height:44px}:root{--catalog-gutter:18px}.viewer-scroll{max-height:65dvh}.filter-grid select{font-size:var(--text-small-size,16px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.mixed-filters{border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:20px 0 0;min-width:0}.mixed-filters legend{font-size:var(--text-small-size,16px);padding:0 6px}.mixed-filters .subtle{margin-bottom:10px}.fiber-options{display:flex;flex-wrap:wrap;gap:8px}.fiber-choice{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:9px;min-height:44px;padding:8px 11px;background:var(--card);font-size:var(--text-small-size,16px);cursor:pointer}.fiber-choice input{accent-color:var(--button);width:18px;height:18px;margin:0}.fiber-choice:has(input:checked){background:var(--soft);border-color:var(--ink)}.mixed-filters:disabled{opacity:.55}.mixed-filters:disabled .fiber-choice{cursor:default}

.fiber-match-label{display:block;margin-top:14px;font-size:var(--text-small-size,16px);color:var(--muted)}#fiber-match{max-width:340px}

.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.length-filters{border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:20px 0 0;min-width:0}.length-filters legend{font-size:var(--text-small-size,16px);padding:0 6px}.length-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.length-range label{font-size:var(--text-small-size,16px);color:var(--muted)}.length-range input{display:block;width:100%;min-width:0;margin-top:5px;padding:10px;min-height:46px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font-size:16px}.length-filters .subtle{margin:10px 0 0}#length-basis{max-width:380px}.filter-error{color:var(--accent);font-size:var(--text-small-size,16px);margin:10px 0 0}@media(max-width:540px){.filter-grid label:first-child,.filter-grid label:last-child{grid-column:1/-1}.length-range input::placeholder{font-size:var(--text-small-size,16px)}}

/* Keep dependent controls in the same visual and reading-order group. */
.general-filters{grid-template-columns:1fr .7fr 1.3fr}.related-filter-block{border:1px solid var(--line);border-radius:14px;padding:16px;margin-top:20px;background:var(--card)}.related-filter-label{display:block;font-size:var(--text-small-size,16px);font-weight:600;color:var(--ink)}.related-filter-label>select{max-width:420px;font-weight:400}.related-filter-block>.mixed-filters,.related-filter-block>.length-filters{margin:14px 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--line);border-radius:0}.related-filter-block fieldset legend{padding:0 8px 0 0;font-size:var(--text-small-size,16px)}.related-filter-block .subtle{margin-bottom:10px}@media(max-width:540px){.general-filters{grid-template-columns:1fr 1fr}.general-filters label:first-child{grid-column:auto}.general-filters label:last-child{grid-column:1/-1}.related-filter-block{padding:14px}.related-filter-label>select{max-width:none}}

.size-filters{min-width:0;border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:20px 0 0;background:var(--card)}.size-filters legend{font-size:var(--text-small-size,16px);padding:0 6px}.size-filters .subtle{margin-bottom:10px}.size-filters .fiber-choice{min-width:64px}#clear-sizes{margin-top:6px}

#size-match,#size-options>.fiber-choice:has(input[data-size="one"]){width:100%;max-width:340px;box-sizing:border-box}

.filter-accordion{display:grid;gap:8px;margin-top:16px}.filter-panel{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--card);overflow:hidden}.filter-panel>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;align-items:center;list-style:none;padding:12px 16px;min-height:64px;cursor:pointer;touch-action:manipulation}.filter-panel>summary::-webkit-details-marker{display:none}.filter-panel>summary:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}.filter-summary-title{font-size:var(--text-small-size,16px);font-weight:600}.filter-summary-value{grid-column:1;grid-row:2;font-size:var(--text-small-size,16px);color:var(--muted);overflow-wrap:anywhere}.filter-chevron{grid-column:2;grid-row:1/3;font-size:23px;line-height:1;transition:transform .15s}.filter-panel[open]>summary{border-bottom:1px solid var(--line)}.filter-panel[open] .filter-chevron{transform:rotate(180deg)}.filter-panel.has-selection .filter-summary-value{color:var(--accent)}.filter-panel-body{padding:14px 16px}.filter-panel-body>.general-filters{margin:0}.filter-panel-body>.related-filter-block,.filter-panel-body>.size-filters{border:0;padding:0;margin:0;background:transparent}.filter-panel-body>.size-filters>legend{display:none}@media(prefers-reduced-motion:reduce){.filter-chevron{transition:none}}

/* Quiet warm palette with a restrained plum accent. */
:root{color-scheme:light;--bg:#f8f6f3;--card:#fffefa;--ink:#383238;--muted:#756c72;--accent:#7d4d64;--line:#e3dcd8;--soft:#eee7e9;--button:#70495f;--button-text:#fff;--shadow:0 16px 50px #4a344016;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{background:var(--bg)}.topbar{border-color:var(--line)}.brand{color:var(--ink);font-weight:550;letter-spacing:-.5px}.icon-button{background:var(--card);border-color:var(--line);color:var(--accent)}
.hero{padding-top:42px;padding-bottom:42px}.hero-copy h1{color:var(--ink);font-weight:400}.hero-copy h1 em{color:var(--accent)}.hero-copy .eyebrow{color:var(--muted);letter-spacing:1.5px}.hero-stats{gap:25px}.hero-stats strong{color:var(--ink)}.hero-photos{gap:18px}.hero-photos img{border-radius:5px;box-shadow:0 8px 26px #4a344012}.hero-label{color:var(--muted)}
.tabs{border-color:var(--line);gap:28px}.tab.active{color:var(--accent);border-bottom-color:var(--accent)}.tab span{background:var(--soft);color:var(--accent);border-radius:5px}.search{border-radius:8px;background:var(--card);border-color:var(--line)}select,.length-range input{border-radius:6px;background:var(--card)}
.filter-accordion{gap:0;border-top:1px solid var(--line);margin-top:20px}.filter-panel{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}.filter-panel>summary{padding:13px 4px;min-height:62px}.filter-summary-title{font-size:var(--text-small-size,16px);font-weight:550;letter-spacing:.1px;color:var(--ink)}.filter-summary-value{color:var(--muted)}.filter-chevron{color:var(--muted);font-size:20px}.filter-panel.has-selection .filter-summary-title,.filter-panel.has-selection .filter-summary-value{color:var(--accent)}.filter-panel[open]>summary{border-bottom:0}.filter-panel-body{padding:6px 4px 20px}.fiber-choice{border-radius:6px;background:var(--card);border-color:var(--line)}.fiber-choice:has(input:checked){background:var(--soft);border-color:#ad8699;color:#644253}.fiber-choice input{accent-color:var(--accent)}
.button{border-radius:7px;background:var(--button);box-shadow:none}.button.secondary{background:var(--soft);color:var(--accent)}.card-photo{border-radius:5px}.model-card h3{color:var(--ink);font-size:19px;line-height:1.3}.card-info{padding-top:14px}.tag{color:var(--accent);letter-spacing:.8px}.mini-tag{border-radius:4px;background:#eeebe7;color:#696168}.save-card{background:#fffdf9ed;color:var(--accent);border-color:#fffdf9b0}.save-card.saved{background:var(--accent);border-color:var(--accent);color:#fff}.detail-photo-button{border-radius:6px}.detail-copy h1{color:var(--ink)}.set-box{background:#eee9e5;border-radius:8px}.pattern-image{border-radius:7px}.group-description{border-radius:6px;background:var(--soft)}dialog{border-radius:10px}.info-inner{background:var(--bg)}.viewer-bar{background:var(--bg)}#toast{border-radius:8px;background:#4e3c48;color:#fff}.footer{border-color:var(--line)}
@media(max-width:540px){.hero{padding-top:28px;padding-bottom:32px}.hero-photos{gap:10px}.hero-photos img{border-radius:4px}.model-card h3{font-size:17px}.hero-stats{gap:14px}.filter-panel>summary{padding-top:12px;padding-bottom:12px}}

.hero-photos{justify-content:center;padding:0 12px 26px}.hero-photos .hero-single{width:min(100%,320px);height:auto;max-height:420px;object-fit:contain;margin:0;transform:none}.hero-label{right:0;left:0;text-align:center}.filter-summary-title{font-size:17px;line-height:1.35;font-weight:600}.filter-grid label,.related-filter-label{font-size:var(--text-small-size,16px);letter-spacing:0}.related-filter-block fieldset legend,.size-filters legend,.length-filters legend,.mixed-filters legend{font-size:var(--text-small-size,16px)}.fiber-match-label,.length-range label{font-size:var(--text-small-size,16px)}@media(max-width:540px){.hero-photos{padding:0}.hero-photos .hero-single{width:100%;height:auto;max-height:260px}.filter-summary-title{font-size:16px}.filter-panel>summary{min-height:68px}}

#filter-controls{border:0;margin:0;padding:0;min-width:0}#filter-controls:disabled{opacity:.5}.pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin:30px 0}.pagination span{font-size:var(--text-small-size,16px);color:var(--muted)}.pagination button:disabled{cursor:default;opacity:.4}.footer #footer-count{display:inline;font-size:inherit;margin:0}@media(max-width:540px){.pagination{gap:10px}.pagination .button{padding:10px 12px;font-size:var(--text-small-size,16px)}}

.filter-actions{display:flex;align-items:center;gap:18px;margin-top:20px}.filter-actions .button{min-width:150px}.filter-actions .subtle{margin:0}@media(max-width:600px){.filter-actions{align-items:stretch;flex-direction:column;gap:10px}.filter-actions .button{width:100%}}

.results-status{display:flex;align-items:center;gap:10px}.loading-indicator{display:inline-block;width:18px;height:18px;flex:none;border:2px solid #e3dcd8;border-top-color:#70495f;border-radius:50%;animation:loading-spin .8s linear infinite}.loading-indicator[hidden]{display:none}@keyframes loading-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.loading-indicator{animation:none}}

/* Use the accessible clear button consistently across browsers. */
#query::-webkit-search-cancel-button{-webkit-appearance:none}

/* Illustrated welcome in the About dialog. */
#info-dialog{width:640px;position:relative}#info-dialog .about-village{width:100%;height:auto;object-fit:contain}#info-dialog .info-inner{position:static;padding:26px 32px 30px}#info-dialog .dialog-close{position:absolute;top:12px;right:12px;background:var(--card);box-shadow:0 2px 12px #30232c25}#info-dialog .info-inner h2{margin:12px 0 18px}@media(max-width:600px){#info-dialog .about-village{height:auto}#info-dialog .info-inner{padding:22px}#info-dialog .info-inner h2{font-size:27px}}

.filter-actions{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px 18px}.filter-actions #reset-filters{justify-self:end}.filter-actions #filter-pending{grid-column:1/-1}@media(max-width:600px){.filter-actions{grid-template-columns:auto 1fr}.filter-actions .button{width:auto;min-width:110px}.filter-actions #reset-filters{font-size:var(--text-small-size,16px);text-align:right}}

.sort-row:has(+ .model-grid){margin-top:8px;margin-bottom:16px}

.footer #footer-models-label{display:inline;font-size:inherit;margin:0}


.comment-avatar,.comment-avatar img{cursor:default}.comment-avatar img{pointer-events:none;user-select:none}

#size-options{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.size-option-group{min-width:0;margin:0;padding:0;border:0}
.size-option-group legend{margin-bottom:10px;font-weight:600;font-size:var(--text-small-size,16px)}


.size-option-disclosure{min-width:0;border:0}
.size-option-disclosure>summary{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;cursor:pointer;list-style:none;font-size:var(--text-small-size,16px);font-weight:600}
.size-option-disclosure>summary::-webkit-details-marker{display:none}
.size-option-disclosure>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.size-disclosure-arrow{font-size:20px;color:var(--muted)}
.size-option-disclosure[open]>summary .size-disclosure-arrow{transform:rotate(180deg)}
.size-option-disclosure>.fiber-options{padding:8px 0 4px}

.size-group-title{display:inline-flex;align-items:center;gap:9px}.size-group-icon{width:20px;height:20px;flex:0 0 20px;color:var(--accent)}

.set-links{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:8px}.set-links a{color:var(--accent);text-underline-offset:3px}.set-box>div{min-width:0}.set-links a{overflow-wrap:anywhere}

.size-scales{display:grid;grid-template-columns:repeat(3,minmax(272px,1fr));gap:16px;overflow-x:auto;padding-bottom:4px}.size-scale{min-width:0;border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:14px}.size-scale>.fiber-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;align-content:start}.size-filters .size-scale .fiber-choice{min-width:0;padding:7px 4px;gap:4px;justify-content:center}.size-scale-label{margin:0;text-align:center;font-size:var(--text-small-size,16px);color:var(--muted);line-height:1.4}

.size-scale-label{display:flex;align-items:center;justify-content:center;gap:8px}
.size-guide-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;padding:0;border:1px solid var(--accent);border-radius:50%;background:transparent;color:var(--accent);font-family:inherit;font-size:var(--text-small-size,16px);font-weight:600;line-height:1;cursor:pointer}
.size-guide-button:hover{background:var(--soft)}.size-guide-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#size-groups-guide-dialog,#size-guide-dialog,#eu-size-guide-dialog,#uk-size-guide-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;box-sizing:border-box;padding:28px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink)}
#size-groups-guide-dialog::backdrop,#size-guide-dialog::backdrop,#eu-size-guide-dialog::backdrop,#uk-size-guide-dialog::backdrop{background:rgb(0 0 0 / .35)}
.size-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.size-guide-heading h2{margin:0;font-size:26px}.size-guide-units{margin:8px 0 24px;color:var(--muted)}
.size-guide-section + .size-guide-section{margin-top:26px}.size-guide-section h3{font-size:17px;margin:0 0 12px}.size-guide-table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:10px}.size-guide-section table{width:100%;border-collapse:collapse;text-align:center;font-size:var(--text-small-size,16px);white-space:nowrap}.size-guide-section th{padding:12px 10px;background:var(--soft);color:var(--accent);font-weight:600}.size-guide-section td{padding:14px 10px;border-top:1px solid var(--line)}.size-guide-section th + th,.size-guide-section td + td{border-left:1px solid var(--line)}
@media(max-width:540px){#size-groups-guide-dialog,#size-guide-dialog,#eu-size-guide-dialog,#uk-size-guide-dialog{padding:20px}.size-guide-heading h2{font-size:23px}}

.size-guide-section-muted{color:#a6a0a3}.size-guide-section-muted h3,.size-guide-section-muted p{color:inherit}

.model-magazine-link{display:flex;align-items:center;gap:14px;width:100%;margin:20px 0 28px;padding:18px 20px;border:1px solid var(--accent);border-radius:12px;background:var(--soft);color:var(--accent);text-decoration:none;font-size:var(--text-small-size,16px);line-height:1.5}.model-magazine-link>svg{width:28px;height:28px;flex-shrink:0}.model-magazine-link>span:nth-child(2){flex:1;min-width:0}.model-magazine-link strong{display:block;font-size:17px;margin-bottom:3px}.model-magazine-link>span>span{display:block}.model-magazine-link>span:last-child{font-size:24px}.model-magazine-link:hover{background:var(--accent);color:var(--button-text)}

.catalog-growth-note{color:var(--muted);opacity:.5;font-size:var(--text-small-size,16px);line-height:1.5;margin:14px 0 0}

.catalog-result-count{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0 10px;color:var(--muted);font-size:var(--text-small-size,16px);line-height:1.5;min-height:26px}.catalog-result-count strong{display:inline-flex;align-items:center;justify-content:center;min-width:30px;padding:3px 9px;border-radius:7px;background:var(--soft);color:var(--accent);font-size:var(--text-small-size,16px);font-weight:600;font-variant-numeric:tabular-nums}.catalog-count-note{flex-basis:100%}

.size-match-help{margin:10px 0 0;font-size:var(--text-small-size,16px);line-height:1.6}.size-match-help strong{font-weight:600}

.size-match-layout{display:grid;grid-template-columns:minmax(220px,340px) minmax(0,1fr);align-items:center;gap:12px;margin-top:16px}
.size-match-field{min-width:0}
.size-match-field .fiber-match-label{margin-top:0}
.size-match-layout .size-match-help{margin:0}
@media(max-width:700px){.size-match-layout{grid-template-columns:1fr;gap:10px}}

.one-size-layout{display:grid;grid-template-columns:minmax(220px,340px) minmax(0,1fr);align-items:center;gap:12px;width:100%}
.one-size-layout>.fiber-choice{width:100%;box-sizing:border-box}
.one-size-help{margin:0;font-size:var(--text-small-size,16px);line-height:1.6}
@media(max-width:700px){.one-size-layout{grid-template-columns:1fr;gap:10px}.one-size-layout>.fiber-choice{max-width:340px}}

.model-magazine-link .model-magazine-cover{width:84px;height:115px;flex-shrink:0;object-fit:contain;border-radius:4px;background:var(--card)}
@media(max-width:540px){.model-magazine-link{padding:14px;gap:12px}.model-magazine-link .model-magazine-cover{width:68px;height:93px}}

/* Align the home heading with the top of other catalogue pages. */
.hero{align-items:start;padding-top:48px}
.hero-copy h1{margin-top:0}
@media(max-width:760px){.hero{padding-top:30px}}

.pattern-section .pattern-label{color:var(--accent);font-weight:700}

#detail-title:focus{outline:none}

.comment-field-heading{display:flex;align-items:center;gap:8px;margin-bottom:8px}.comment-field-heading label{margin:0}.comment-help{position:relative}.comment-help summary{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid var(--accent);border-radius:50%;color:var(--accent);font:600 var(--text-small-size,16px)/1 sans-serif;cursor:pointer;list-style:none}.comment-help summary::-webkit-details-marker{display:none}.comment-help summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.comment-help p{position:absolute;z-index:5;top:28px;left:0;width:min(300px,65vw);margin:0;padding:12px 14px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 6px 20px #0002;font-size:var(--text-small-size,16px);line-height:1.5}
.topbar:has(.user-search:not([hidden])){flex-wrap:wrap;row-gap:12px}.user-search{position:relative;flex:0 0 100%;margin:0;display:flex;justify-content:flex-end}.user-search-control{display:flex;align-items:center;width:min(100%,300px);border:1px solid var(--line);border-radius:10px;background:var(--card)}.user-search-control input{min-width:0;flex:1;width:100%;padding:10px 12px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:var(--text-small-size,16px);outline:none}.user-search-control input::placeholder{color:var(--muted);opacity:.65}.user-search-control:focus-within{outline:2px solid var(--accent);outline-offset:2px}.user-search-control button{display:flex;align-items:center;justify-content:center;width:42px;min-height:42px;padding:8px;border:0;background:transparent;color:var(--accent);cursor:pointer}.user-search-dropdown{position:absolute;right:0;top:calc(100% + 7px);width:min(100%,300px);z-index:30;border:1px solid var(--line);border-radius:10px;background:var(--card);box-shadow:0 8px 24px #0002;overflow:hidden}.user-search-match,.user-result-card{display:flex;align-items:center;gap:12px;padding:12px;color:var(--ink);text-decoration:none}.user-search-match:hover,.user-search-match:focus-visible{background:var(--soft)}.user-search-match img,.user-result-card img,.user-search-avatar{width:40px;height:40px;flex:0 0 40px;object-fit:cover;border-radius:50%}.user-search-avatar{display:flex;align-items:center;justify-content:center;background:var(--soft);color:var(--accent)}.user-search-match strong,.user-result-card strong{font-size:var(--text-small-size,16px);overflow-wrap:anywhere}.user-search-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.user-results-page{padding-top:28px;padding-bottom:48px}.user-results-page h1{font-size:30px;letter-spacing:0}.user-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.user-result-card{border:1px solid var(--line);border-radius:12px;background:var(--card);min-width:0}.user-result-card:hover{border-color:var(--accent)}@media(max-width:640px){.user-search-control,.user-search-dropdown{width:100%}.user-results-grid{grid-template-columns:1fr}}

.topbar .user-search{position:relative;display:block;flex:0 0 130px;width:130px;height:38px;min-width:0;margin:0;z-index:3;--search-expanded-width:260px}
.topbar .user-search-control{position:absolute;right:0;top:0;width:100%;height:38px;transition:width .2s ease,box-shadow .2s ease;background:var(--card)}
.topbar .user-search-control input{padding:8px 10px;font-size:var(--text-small-size,16px);text-overflow:ellipsis;white-space:nowrap}
.topbar .user-search-control button{width:34px;flex:0 0 34px;min-height:36px;height:36px;padding:7px}
.topbar .user-search:focus-within{z-index:40}
.topbar .user-search:focus-within .user-search-control{width:var(--search-expanded-width);box-shadow:0 4px 18px #0001}
.topbar .user-search-dropdown{top:calc(100% + 8px);width:var(--search-expanded-width);max-width:none}
@media(max-width:600px){.topbar .user-search{flex-basis:115px;width:115px}.topbar .user-search-control input{font-size:var(--text-small-size,16px);padding-inline:8px}}
@media(prefers-reduced-motion:reduce){.topbar .user-search-control{transition:none}}

.notifications{position:relative;flex:none}.notification-bell{position:relative;display:grid;place-items:center;width:38px;height:38px;padding:7px;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--accent);cursor:pointer}.notification-bell svg{width:23px;height:23px}.notification-count{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:var(--accent);color:white;font-size:var(--text-small-size,16px);line-height:18px;text-align:center}.notification-panel{position:absolute;right:0;top:calc(100% + 12px);width:min(380px,calc(100vw - 32px));max-height:min(70vh,560px);overflow:auto;z-index:45;padding:14px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 32px #0002}.notification-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.notification-heading h2{margin:0;font-family:inherit;font-size:17px;font-weight:600;line-height:1.4}.notification-heading .text-button{font-size:var(--text-small-size,16px);padding:4px}.notification-status{font-size:var(--text-small-size,16px);color:var(--accent)}.notification-status:empty{display:none}.notification-item{padding:12px 10px;margin-top:6px;border-radius:8px;border-bottom:1px solid var(--line)}.notification-item.is-unread{background:var(--soft)}.notification-link{display:grid;gap:5px;color:var(--ink);text-decoration:none;font-size:var(--text-small-size,16px);line-height:1.5}.notification-link strong{font-weight:600;overflow-wrap:anywhere}.notification-link time{font-size:var(--text-small-size,16px);color:var(--muted)}.notification-item .notification-accept{font-size:var(--text-small-size,16px);margin-top:8px;padding:4px 0}.notification-empty{text-align:center;padding:24px 8px;color:var(--muted);font-size:var(--text-small-size,16px)}.notification-bell:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.notification-panel>.text-button{font-size:var(--text-small-size,16px);margin-top:8px}@media(max-width:540px){.notification-panel{position:fixed;top:80px;right:16px;left:16px;width:auto}.notification-bell{width:34px;height:34px}}

.notifications .notification-panel{position:fixed;left:var(--notification-left,16px);right:auto;top:var(--notification-top,80px);width:min(380px,calc(100vw - 32px));max-height:min(560px,calc(100dvh - var(--notification-top,80px) - 16px));box-sizing:border-box}

/* Keep each checkbox beside the first line of its label across all forms. */
:root body label:has(> input[type="checkbox"]){display:flex;flex-direction:row;align-items:flex-start;gap:10px}
:root body label:has(> input[type="checkbox"]) > input[type="checkbox"]{flex:0 0 18px;width:18px;height:18px;padding:0;margin:calc((1lh - 18px)/2) 0 0;align-self:flex-start;font:inherit}
:root body label:has(> input[type="checkbox"]) > span{min-width:0}

img.avatar-default{display:block;width:100%;height:100%;object-fit:contain}.user-search-avatar>img.avatar-default{width:100%;height:100%}.author-profile-avatar>img.avatar-default{width:100%;height:100%}

.hero-photos .hero-illustration{width:100%;max-height:none;height:auto;object-fit:contain;box-shadow:none}

.free-account-invitation{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px 30px;margin:0 0 32px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}.free-account-invitation .eyebrow{margin-bottom:8px}.free-account-invitation h2{font:400 28px/1.25 Georgia,serif;margin:0 0 10px}.free-account-invitation p:last-child{font-size:var(--text-small-size,16px);line-height:1.65;color:var(--muted);max-width:600px;margin:0}.free-account-actions{display:flex;flex-direction:column;align-items:center;gap:12px;flex-shrink:0}.free-account-actions>a:last-child{font-size:var(--text-small-size,16px);text-underline-offset:3px}@media(max-width:760px){.free-account-invitation{flex-direction:column;align-items:flex-start;padding:22px;gap:20px}.free-account-actions{align-items:flex-start;flex-shrink:1}.free-account-actions .button{max-width:100%;text-align:center}.free-account-invitation h2{font-size:25px}}

.hero-copy .free-account-invitation{flex-direction:column;align-items:flex-start;gap:18px;margin:26px 0 0;padding:22px}.hero-copy .free-account-actions{align-items:flex-start;flex-shrink:1}.hero-copy .free-account-invitation .free-account-next{font-size:var(--text-small-size,16px);margin-top:12px}.hero-copy .free-account-invitation h2{font-size:25px}

.account-filter-note{display:block;font-size:var(--text-small-size,16px);font-weight:400;line-height:1.5;color:var(--muted);margin-top:8px;letter-spacing:0}.account-filter-note a{text-underline-offset:3px;color:var(--accent)}.account-filter-locked select,.account-filter-locked .publication-select>summary{opacity:.5;cursor:not-allowed}.account-filter-locked .publication-select>summary{pointer-events:none}

.account-filter-group{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.account-filter-group.is-locked{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}.account-filter-group-note{grid-column:1/-1;margin:0;color:var(--muted);font-size:var(--text-small-size,16px)}.account-filter-group .publication-filters{grid-column:1/-1}.account-filter-locked{position:relative}.account-filter-trigger{position:absolute;inset:0;width:100%;height:100%;background:transparent;border:0;border-radius:8px;cursor:pointer;z-index:2}.account-filter-dialog{position:relative;max-width:520px;width:calc(100% - 36px);padding:38px 28px 28px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--ink)}.account-filter-dialog::backdrop{background:#38323866}.account-filter-dialog h2{font:400 28px/1.25 Georgia,serif;padding-right:28px}.account-filter-dialog p{color:var(--muted)}@media(max-width:540px){.account-filter-group{grid-template-columns:1fr}.account-filter-group.is-locked{padding:16px}}

.start-project-link{display:inline-flex;align-items:center;justify-content:center;gap:9px}.start-project-link .start-project-lock{width:17px;height:17px;flex-shrink:0}

.general-filters>label,.account-filter-group>label,.general-filters .magazine-filter>legend{color:var(--muted)}

.account-filter-group{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}@media(max-width:540px){.account-filter-group{padding:16px}}

.account-filter-group:not(.is-locked){background:transparent;border-color:transparent}

body:not(.has-account) [data-collect]{display:none!important}

/* Keep the bell independent of badge content and button padding. */
.notification-bell{padding:0;flex-shrink:0}
.notification-bell>svg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:23px;height:23px;display:block;pointer-events:none}

.report-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;width:calc(100% - 32px);max-width:520px;max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink);padding:28px;box-shadow:var(--shadow)}.report-dialog::backdrop{background:#38323866}.report-dialog h2{font:400 28px/1.3 Georgia,serif;margin:0 36px 22px 0}.report-close{position:absolute;right:16px;top:16px;width:32px;height:32px;font-size:24px}.report-dialog label{display:block;font-size:var(--text-small-size,16px);margin-bottom:10px;color:var(--muted)}.report-dialog textarea{width:100%;min-height:130px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font:inherit;font-size:var(--text-small-size,16px);line-height:1.5;resize:vertical}.report-form-actions{display:flex;align-items:center;gap:20px;margin-top:18px}.report-dialog [role=alert]{font-size:var(--text-small-size,16px);color:var(--accent);margin:10px 0}.report-dialog [role=alert]:empty{display:none}.report-dialog [data-report-result] p{line-height:1.6;margin:0 0 20px}.report-dialog button:disabled{opacity:.6;cursor:wait}@media(max-width:540px){.report-dialog{padding:24px 20px}.report-dialog h2{font-size:25px}}

.hero-stats{flex-wrap:wrap}


.home-main-actions{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 26px}.home-main-actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 20px}#catalog{scroll-margin-top:140px}@media(max-width:540px){.home-main-actions{gap:10px;margin:18px 0 22px}.home-main-actions .button{font-size:var(--text-small-size,16px);padding:11px 16px}#catalog{scroll-margin-top:160px}}

.hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:36px}
.hero-side-panel{min-width:0}
.hero-side-panel>.free-account-invitation{flex-direction:column;align-items:flex-start;gap:20px;margin:0;padding:28px}
.hero-side-panel .free-account-actions{align-items:flex-start;flex-shrink:1;max-width:100%}
.hero-side-panel .free-account-actions .button{max-width:100%;text-align:center}
.hero-side-panel .free-account-invitation .free-account-next{font-size:var(--text-small-size,16px);margin-top:12px}
.hero-side-panel .free-account-invitation h2{font-size:25px}
.hero-side-panel>.subscription-teaser{margin:0}
.hero-copy>.home-main-actions{margin-bottom:0}
.hero-copy>.finder-entry{margin-top:14px;margin-bottom:0}
.hero-side-panel:not(:has(>:not([hidden]))){display:none}
.hero:not(:has(.hero-side-panel>:not([hidden]))){grid-template-columns:1fr}
@media(max-width:760px){.hero{grid-template-columns:1fr;gap:24px;align-items:start}.hero-side-panel>.free-account-invitation{padding:22px}}

#info-dialog .info-inner>p:not(.eyebrow){font-size:18px;line-height:1.75}#info-dialog .info-inner h2{font-size:34px;line-height:1.25}@media(max-width:600px){#info-dialog .info-inner>p:not(.eyebrow){font-size:17px}#info-dialog .info-inner h2{font-size:30px}}

.hero-basket{display:none}
.hero:has(#finder-entry:not([hidden])) .hero-basket{display:flex;align-items:center;justify-content:center}
.hero-basket img{width:100%;max-width:460px;height:auto;object-fit:contain}
.home-main-actions .finder-entry{margin:0}
@media(min-width:761px){.hero:has(#finder-entry:not([hidden])){grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center}.hero:has(#finder-entry:not([hidden])) .home-main-actions{flex-wrap:nowrap}.hero:has(#finder-entry:not([hidden])) .home-main-actions .button{white-space:nowrap;padding-inline:16px}}

.about-page{max-width:1000px;padding-top:32px;padding-bottom:60px}.about-page-image{width:100%;max-height:380px;object-fit:cover;border-radius:16px}.about-page-copy{max-width:760px;margin:32px auto 0}:is(.about-page-copy h1,.about-page>#info-title){font-size:clamp(32px,4vw,46px);line-height:1.15;letter-spacing:-1px}.about-page-copy>p:not(.eyebrow){font-size:18px;line-height:1.75;margin-bottom:20px}@media(max-width:600px){.about-page{padding-top:20px}.about-page-copy{margin-top:24px}.about-page-copy>p:not(.eyebrow){font-size:17px}}

@media(max-width:760px){.hero:has(#free-account-invitation:not([hidden])),.hero:has(#subscription-promo:not([hidden])){padding-top:38px}}

img.subscriber-avatar{border-radius:50%;outline:2px solid var(--accent);outline-offset:3px;box-shadow:0 0 0 5px var(--soft),0 0 14px #7e506825}.reward-terms{max-width:820px;padding-top:40px;padding-bottom:60px}.reward-terms h1{font-size:40px}.reward-terms-lead{font-size:19px;color:var(--muted)}.reward-terms section{margin:28px 0;padding-top:24px;border-top:1px solid var(--line)}.reward-terms h2{font-size:22px}.reward-terms p,.reward-terms li{font-size:16px;line-height:1.75}.reward-terms li{margin-bottom:8px}.reward-terms a:not(.button){color:var(--accent);text-underline-offset:3px}.reward-terms>.button{display:inline-block;text-decoration:none;padding:12px 20px}
@media(max-width:760px){.reward-terms h1{font-size:32px}}

html{scrollbar-gutter:stable}
.hero-stats strong{display:inline-block;min-width:2ch;font-variant-numeric:tabular-nums}

.topbar-actions{min-height:38px}.header-avatar{flex-shrink:0}

#account-link{font-size:16px;font-weight:500;line-height:1.4;white-space:nowrap}

/* Hide the retired catalog footer in pages served by an already running process. */
.catalog-index-links{display:none}

.yarn-picker-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.yarn-picker-actions .button{font-size:var(--text-small-size,16px);padding:10px 16px}
:is([data-yarn-picker],.yarn-picker) [data-catalog-panel][hidden],:is([data-yarn-picker],.yarn-picker) [data-stash-panel][hidden]{display:none!important}
:is([data-yarn-picker],.yarn-picker) [data-catalog-panel],:is([data-yarn-picker],.yarn-picker) [data-stash-panel]{padding:16px 18px;margin:12px 0;border:1px solid var(--line);border-radius:12px;background:var(--card,#fff)}
:is([data-yarn-picker],.yarn-picker) [data-stash-panel] p{margin:4px 0;font-size:var(--text-small-size,16px);color:var(--muted)}

.yarn-picker-request{box-sizing:border-box;width:480px;max-width:calc(100vw - 32px);max-height:85vh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--card,#fff);color:var(--ink);box-shadow:0 20px 70px #30232b26}
.yarn-picker-request::backdrop{background:#30232b66}
.yarn-picker-request-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.yarn-picker-request .yarn-picker-request-heading h2{margin:0;font-family:inherit;font-size:24px;line-height:1.4}
.yarn-picker-request-heading button{width:40px;height:40px;min-width:40px;min-height:40px;flex:0 0 40px;font-size:28px;line-height:1;padding:0}
.yarn-picker-request label{display:grid;gap:8px;margin:0 0 18px;font-size:var(--text-small-size,16px)}
.yarn-picker-request textarea{box-sizing:border-box;width:100%;min-height:110px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--card,#fff);color:var(--ink);font:inherit;font-size:16px;resize:vertical}
.yarn-picker-request textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.yarn-picker-request [data-request-status]:empty{display:none}

:is([data-yarn-picker],.yarn-picker) .yarn-request-link{padding:0;border:0;border-radius:0;background:none;color:var(--accent);font:inherit;font-size:var(--text-small-size,16px);text-decoration:underline;text-underline-offset:3px;cursor:pointer;box-shadow:none}

:is([data-yarn-picker],.yarn-picker) [data-selected] p{display:flex;align-items:center;flex-wrap:wrap;gap:8px 28px}
:is([data-yarn-picker],.yarn-picker) [data-selected] [data-remove]{margin-left:12px;flex-shrink:0}

:is([data-yarn-picker],.yarn-picker) .yarn-not-found{display:block;margin:10px 0 0;font-size:var(--text-small-size,16px);line-height:1.6}:is([data-yarn-picker],.yarn-picker) .yarn-not-found .yarn-request-link{display:inline;vertical-align:baseline;margin:0 0 0 6px;padding:0;font:inherit;line-height:inherit}

:is([data-yarn-picker],.yarn-picker) .yarn-picker-warning{margin:8px 0 12px;padding:10px 13px;border-left:3px solid var(--accent,#784a65);border-radius:6px;background:var(--soft,#eee7eb);color:var(--accent,#784a65);font-size:var(--text-small-size,16px);font-weight:600;line-height:1.5}
:is([data-yarn-picker],.yarn-picker) .yarn-picker-warning[hidden]{display:none}

:is([data-yarn-picker],.yarn-picker) .yarn-warning-slot{flex:none}
:is([data-yarn-picker],.yarn-picker) .yarn-warning-slot:not(:has(.yarn-picker-warning:not([hidden]))){display:none}
:is([data-yarn-picker],.yarn-picker) .yarn-warning-slot .yarn-picker-warning{position:static;margin:8px 0;box-sizing:border-box;font-size:var(--text-small-size,16px);line-height:1.4;padding:8px 12px}

/* Выбор пряжи открывается отдельно, без блока внутри формы. */
:is([data-yarn-picker],.yarn-picker) dialog[data-catalog-panel]{width:min(620px,calc(100vw - 40px));max-height:80vh;overflow:auto;margin:auto;padding:24px}
:is([data-yarn-picker],.yarn-picker) dialog[data-catalog-panel]:not([open]){display:none}
[data-close-catalog]{float:right}

:is([data-yarn-picker],.yarn-picker) .yarn-picker-actions[hidden],:is([data-yarn-picker],.yarn-picker) [data-pick][hidden]{display:none}
:is([data-yarn-picker],.yarn-picker) [data-selected] [data-remove]{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px;max-height:44px;flex:0 0 44px;padding:0;border-radius:50%;font-size:24px;line-height:1;text-decoration:none}

:is(.about-page-copy h1,.about-page>#info-title),.reward-terms h1{font-size:clamp(28px,3.2vw,40px);line-height:1.2;letter-spacing:-.02em}

/* Общий вид галочек во всех разделах сайта. */
:root body input[type="checkbox"]{
 -webkit-appearance:none;appearance:none;box-sizing:border-box;
 width:18px;height:18px;min-width:18px;flex-shrink:0;padding:0;
 border:1.5px solid var(--muted);border-radius:4px;
 background:var(--card,#fff);color:var(--accent,#784a65);
 accent-color:var(--accent,#784a65);cursor:pointer;vertical-align:middle;
}
:root body input[type="checkbox"]:checked{
 border-color:var(--accent,#784a65);background-color:var(--accent,#784a65);
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3.2 3.2L14 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-position:center;background-repeat:no-repeat;background-size:18px 18px;
}
:root body input[type="checkbox"]:indeterminate{
 border-color:var(--accent,#784a65);background-color:var(--accent,#784a65);
 background-image:linear-gradient(white,white);background-position:center;background-size:10px 2px;background-repeat:no-repeat;
}
:root body input[type="checkbox"]:focus-visible{outline:2px solid var(--accent,#784a65);outline-offset:3px}
:root body input[type="checkbox"]:disabled{opacity:.5;cursor:not-allowed}
@media(forced-colors:active){:root body input[type="checkbox"]{-webkit-appearance:auto;appearance:auto;background-image:none}}

:is([data-yarn-picker],.yarn-picker) [data-close-catalog]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;min-height:40px;flex:0 0 40px;margin:-8px -8px 0 8px;padding:0;border:0;border-radius:50%;font-size:30px;line-height:1;color:var(--accent);text-decoration:none}
:is([data-yarn-picker],.yarn-picker) [data-close-catalog]:hover{background:var(--soft,#eee7eb)}
:is([data-yarn-picker],.yarn-picker) [data-close-catalog]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

body :where(a.site-back-link,a.back-link,button.back-link,a.stash-back,#yarn-back){margin-bottom:12px}
body :is(a.site-back-link,a.back-link,button.back-link,a.stash-back,#yarn-back){display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;min-height:42px;padding:9px 14px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--accent);font-family:inherit;font-size:var(--text-small-size,16px);font-weight:600;line-height:1.4;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s}
body :is(a.site-back-link,a.back-link,button.back-link,a.stash-back,#yarn-back):hover{background:var(--soft);border-color:var(--accent);text-decoration:none}
body :is(a.site-back-link,a.back-link,button.back-link,a.stash-back,#yarn-back):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.filter-actions{min-height:44px}.filter-actions #reset-filters[hidden]{display:inline-block!important;visibility:hidden;pointer-events:none}.results-status{min-height:38px}.results-status .loading-indicator[hidden]{display:inline-block;visibility:hidden}.catalog-result-count{min-height:32px;display:flex;align-items:center}

.footer-author{margin:24px 0 8px;text-align:center}
.footer-author>a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:9px 20px;box-sizing:border-box;border:1px solid var(--line);border-radius:10px;background:var(--soft,#eee7eb);color:var(--accent,#784a65);font-size:17px;font-weight:600;line-height:1.4;text-decoration:none;transition:background .15s,border-color .15s}
.footer-author>a::after{content:'↗';font-size:19px;font-weight:400}
.footer-author>a:hover{background:var(--card);border-color:var(--accent)}
.footer-author>a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

#catalog-results-area{display:flow-root;min-height:460px;overflow-anchor:none}

.hero-stats{font-size:var(--text-small-size,16px);line-height:1.5}.hero-stats strong{font-size:24px}
@media(max-width:540px){.hero-stats{font-size:var(--text-small-size,16px)}.hero-stats strong{font-size:21px}}

:root body .one-size-layout>label.fiber-choice{align-items:center}
:root body .one-size-layout>label.fiber-choice>input[type="checkbox"]{margin:0;align-self:center}
.hero-stats strong{font-size:22px}
@media(max-width:540px){.hero-stats strong{font-size:19px}}

:root body label.fiber-choice:has(>input[type="checkbox"]){align-items:center}
:root body label.fiber-choice>input[type="checkbox"]{margin:0;align-self:center}

.filter-summary-value{font-size:var(--text-small-size,16px);line-height:1.55}
.filter-panel-body .subtle,.size-filters .subtle,.one-size-help{font-size:var(--text-small-size,16px);line-height:1.65}
.size-scale-label{font-size:var(--text-small-size,16px);line-height:1.5}
.filter-panel-body label,.filter-panel-body .fiber-choice{font-size:var(--text-small-size,16px)}
.filter-panel-body legend{font-size:var(--text-small-size,16px)}

.size-scales{grid-template-columns:repeat(3,minmax(272px,1fr))}

.profile-empty-illustration{display:block;width:220px;max-width:65%;height:auto;margin:0 auto 18px}.project-empty:has(.profile-empty-illustration){padding-top:30px;padding-bottom:36px}

.yarn-catalog-dialog[open]{box-sizing:border-box;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:26px!important;overflow:auto}.yarn-catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.yarn-catalog-heading h3{font-weight:500;margin:0;font-size:20px;line-height:1.4}.yarn-catalog-heading [data-close-catalog]{float:none;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;font-size:28px;line-height:1;margin:0}.yarn-catalog-dialog>label{display:grid;gap:8px;margin:0}.yarn-catalog-dialog>label input{box-sizing:border-box;width:100%;min-width:0}.yarn-catalog-dialog [data-results]{margin-top:16px}.yarn-catalog-dialog .yarn-warning-slot:has([hidden]){min-height:0}@media(max-width:480px){.yarn-catalog-dialog[open]{padding:20px!important}.yarn-catalog-heading{gap:12px}.yarn-catalog-heading h3{font-size:18px}}

/* Quiet shared brand illustration behind every page. */
body{isolation:isolate}body::before{content:"";position:fixed;top:32px;right:-140px;width:min(820px,76vw);aspect-ratio:1;background:url('/assets/hero-knitting-basket-transparent.webp') center/contain no-repeat;opacity:.14;pointer-events:none;z-index:-1}@media(max-width:760px){body::before{width:560px;max-width:120vw;right:-160px;top:64px;opacity:.10}}

/* Shared visible treatment for form validation errors. Empty messages take no space. */
:is([id$="-error"],.field-error,.input-error,.finder-field-error):not(:empty):not([hidden]){padding:12px 15px;border-left:3px solid #9b3c4c;border-radius:6px;background:#9b3c4c12;color:#942f46;font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
:is(input,select,textarea)[aria-invalid="true"]{border-color:#9b3c4c}

.notifications-page{max-width:900px;margin:40px auto;padding:0 24px 64px}.notifications-page h1{font-size:clamp(32px,4vw,48px);margin:28px 0}.notification-page-panel{position:static!important;width:100%!important;max-width:none!important;max-height:none!important;box-sizing:border-box;box-shadow:none!important}.notification-page-panel .notification-list{max-height:none;overflow:visible}.notification-page-panel .notification-heading{justify-content:flex-end}

.is-notifications-page>#main{display:none!important}.notification-page-panel .notification-link{font-size:16px}

.notification-heading{flex-wrap:wrap}.notification-heading h2{margin-right:auto}.notification-open-all{flex:none;font-size:var(--text-small-size,16px);font-weight:600;color:var(--accent);white-space:nowrap;text-decoration:underline;text-underline-offset:3px}.notification-heading [data-notification-read-all]{order:2;width:100%;text-align:right}

.notification-page-panel .notification-item{position:relative;padding-right:44px}.notification-remove{position:absolute;right:7px;top:9px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted);font:24px/1 Arial;cursor:pointer}.notification-remove:hover{background:var(--soft);color:var(--accent)}.notification-remove:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.notification-page-panel .notification-heading{padding:0 0 16px}.notification-page-panel .notification-heading [data-notification-read-all]{width:auto;font-size:16px;padding:10px 18px}.notification-page-panel [data-notification-read-all]:disabled{opacity:.5;cursor:default}

.notification-page-panel .notification-heading .notification-read-all{border:0;border-radius:0;background:transparent;color:var(--accent);font-size:var(--text-small-size,16px);font-weight:600;text-decoration:underline;text-underline-offset:3px;padding:4px;white-space:nowrap}

.notification-open-all,.notification-read-all{font-weight:400!important}.notifications-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:28px 0}.notifications-page-heading h1{margin:0}.notifications-page-heading .notification-read-all{width:auto;border:0;border-radius:0;background:transparent;color:var(--accent);font-size:var(--text-small-size,16px);font-weight:400;text-decoration:underline;text-underline-offset:3px;padding:4px;white-space:nowrap}.notifications-page-heading .notification-read-all:disabled{opacity:.5;cursor:default}

.notifications-page-actions{display:flex;justify-content:flex-end;margin:0 0 8px}.notifications-page-actions .notification-read-all{width:auto;border:0;border-radius:0;background:transparent;color:var(--accent);font-size:var(--text-small-size,16px);font-weight:400;text-decoration:underline;text-underline-offset:3px;padding:4px 0;white-space:nowrap}.notification-page-panel .notification-heading:has(h2[hidden]){display:none}

.notifications-page .notifications-page-heading{margin:24px 0 4px}
.notifications-page .notifications-page-heading h1{margin:0;line-height:1.15}
.notifications-page .notifications-page-actions{margin:0 0 6px;min-height:0;line-height:1.4}
.notifications-page .notifications-page-actions .notification-read-all{margin:0;padding:2px 0;line-height:1.4}

.notifications-page .notifications-page-heading h1{font-size:clamp(28px,3.2vw,40px);line-height:1.2;letter-spacing:-.02em}

.notification-list>.notification-item:last-child{border-bottom:0}

.notifications-page{width:100%;max-width:760px;margin-left:auto;margin-right:auto}

/* Keep catalogue controls compact when no reset action is needed. */
#filter-controls .filter-actions:not(:has(#reset-filters:not([hidden]))):not(:has(#filter-pending:not([hidden]))){display:none}
#catalog>.results-line{min-height:40px;margin:12px 0 6px}
#catalog>.sort-row{margin-top:8px;margin-bottom:18px}

/* Compact catalogue search, anchored to the right above the divider. */
.catalog-toolbar{display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line);margin-bottom:20px}
.catalog-toolbar>.tabs{border:0;margin:0;flex-shrink:0;align-self:stretch}
.catalog-search-slot{flex:1;min-width:160px;display:flex;justify-content:flex-end;padding:8px 0}
.catalog-toolbar .catalog-search{box-sizing:border-box;width:180px;max-width:100%;margin:0;min-height:44px;padding:8px 12px;gap:8px;transition:width .22s ease}
.catalog-toolbar .catalog-search:focus-within,.catalog-toolbar .catalog-search:has(input:not(:placeholder-shown)){width:420px}
.catalog-toolbar .catalog-search input{min-width:0;width:100%;font-size:16px;padding:0}
.catalog-toolbar .catalog-search svg{width:20px;height:20px;flex:none}
@media(max-width:760px){.catalog-toolbar{flex-wrap:wrap;gap:0}.catalog-toolbar>.tabs{width:100%}.catalog-search-slot{flex-basis:100%;padding:8px 0 12px}.catalog-toolbar .catalog-search:focus-within,.catalog-toolbar .catalog-search:has(input:not(:placeholder-shown)){width:100%}}
@media(prefers-reduced-motion:reduce){.catalog-toolbar .catalog-search{transition:none}}

.size-mode-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:4px}.size-mode-tabs button{border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);padding:12px 0;font:inherit}.size-mode-tabs button[aria-selected="true"]{color:var(--accent);border-bottom-color:var(--accent)}.simple-size-options{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%;max-width:380px}.simple-size-options .fiber-choice{justify-content:flex-start;align-items:center;gap:12px;min-height:52px;padding:12px 16px;border-radius:12px;transition:background .15s,border-color .15s}.simple-size-options .fiber-choice:hover{border-color:var(--accent)}.simple-size-options .fiber-choice:has(input:checked){background:var(--soft);border-color:var(--accent)}

/* Simple clothing sizes: plain checklist without individual cards. */
.simple-size-options{gap:2px}.simple-size-options .fiber-choice{background:transparent;border:0;border-radius:0;padding:8px 0;min-height:44px}.simple-size-options .fiber-choice:hover,.simple-size-options .fiber-choice:has(input:checked){background:transparent;border-color:transparent}.simple-size-options .fiber-choice:has(input:checked){color:var(--accent)}

/* Keep simple-size labels and checkbox centres aligned. */
:root body .simple-size-options label.fiber-choice:has(>input[type="checkbox"]){display:flex;align-items:center}
:root body .simple-size-options label.fiber-choice:has(>input[type="checkbox"])>input[type="checkbox"]{margin:0;align-self:center}
:root body .simple-size-options label.fiber-choice>span{line-height:1.4}

.child-size-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;max-width:880px}.child-size-panels>.size-scale{aspect-ratio:1;align-self:start;padding:20px}.child-size-panels .size-scale-label{font-weight:500;font-size:16px}.child-size-panels .fiber-options{grid-template-columns:repeat(auto-fit,minmax(86px,1fr))}@media(max-width:600px){.child-size-panels{grid-template-columns:1fr}.child-size-panels>.size-scale{aspect-ratio:auto;min-height:220px}}

.catalog-size-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}

#filter-controls>.filter-accordion{border-top:0;margin-top:0}

.category-multiselect{position:relative;margin-top:5px}.category-multiselect>summary{min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px}.category-multiselect #category-selection{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-multiselect .publication-menu{max-height:360px;overflow:auto}.category-multiselect #category-options{display:grid;gap:4px}.category-multiselect .fiber-choice{justify-content:flex-start}.category-multiselect #clear-categories{margin-bottom:8px}

/* A single clean heading for the size section inside the filters. */
.catalog-size-section>.size-filters{min-width:0;margin:0;padding:0;border:0;background:transparent}
.catalog-size-section>.size-filters>legend{display:none}
.catalog-size-section .size-option-group>legend{display:flex;align-items:center;gap:12px;padding:0;margin:0 0 18px;line-height:1.4}
.catalog-size-section .size-group-title{align-items:center;gap:10px}
.catalog-size-section .size-option-group>legend>.size-guide-button{margin:0;flex-shrink:0;vertical-align:middle}

#size-groups-guide-dialog{width:min(940px,calc(100vw - 32px));padding:28px}
#size-groups-guide-dialog .size-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
#size-groups-guide-dialog .size-guide-heading h2{margin:0;font-size:28px;line-height:1.2}
#size-groups-guide-dialog .size-guide-table-scroll{border:1px solid var(--line);border-radius:14px;overflow:auto}
#size-groups-guide-dialog table{width:100%;min-width:640px;border-collapse:collapse;table-layout:fixed;font-size:16px;line-height:1.5}
#size-groups-guide-dialog th,#size-groups-guide-dialog td{padding:18px 14px;text-align:center;vertical-align:middle;border:0;border-bottom:1px solid var(--line)}
#size-groups-guide-dialog thead th{background:var(--soft);color:var(--accent);font-size:var(--text-small-size,16px);font-weight:600}
#size-groups-guide-dialog tbody th{text-align:left;font-weight:600;padding-left:20px}
#size-groups-guide-dialog tbody tr:nth-child(even){background:color-mix(in srgb,var(--soft) 30%,var(--card))}
#size-groups-guide-dialog tbody tr:last-child>*{border-bottom:0}
#size-groups-guide-dialog th:nth-child(2){width:23%}
@media(max-width:540px){#size-groups-guide-dialog{padding:20px}#size-groups-guide-dialog .size-guide-heading h2{font-size:24px}}

/* Keep quick-navigator search results below the fixed header. */
#result-count{scroll-margin-top:110px}
@media(max-width:760px){#result-count{scroll-margin-top:200px}}

/* Colour the filter names while keeping selected values easy to scan. */
#filter-summary-general{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px 18px;padding-top:7px}
.filter-summary-entry{display:block;max-width:100%;min-width:0;color:var(--ink);line-height:2.2}
.filter-name-badge{display:inline-block;flex:none;padding:3px 9px;border-radius:6px;background:#eee5ee;color:#68466b;font-size:var(--text-small-size,16px);font-weight:600;line-height:1.5;white-space:nowrap}
.filter-name-badge--category{background:#e3ede2;color:#3b603e}
.filter-name-badge--technique{background:#f5e8d7;color:#79532b}
.filter-name-badge--sizes{background:#e1eaf5;color:#3e5c7c}
.filter-name-badge--jacquard{background:#f5e0e6;color:#8a4056}
.filter-name-badge--magazines,.filter-name-badge--issue{background:#f3e3d9;color:#82553c}
.filter-name-badge--years{background:#e0eeeb;color:#36645d}
.filter-name-badge--access,.filter-name-badge--download,.filter-name-badge--source{background:#ece8dc;color:#665e36}
.filter-summary-chosen{overflow-wrap:anywhere}


.filter-summary-values{min-width:0;max-width:100%;line-height:2.2}
.filter-summary-chosen{display:inline-block;max-width:100%;box-sizing:border-box;padding:3px 9px;border:1px solid var(--line,#e5dce0);border-radius:6px;background:#fff;color:var(--ink);font-size:var(--text-small-size,16px);line-height:1.5;vertical-align:baseline}
.filter-summary-mode{font-size:var(--text-small-size,16px);color:var(--muted)}

.filter-summary-chosen+.filter-summary-chosen{margin-left:4px}

.filter-summary-entry>.filter-name-badge{margin-right:6px}

.filter-summary-chosen{display:inline-flex;align-items:center;gap:4px;padding:3px 5px 3px 9px;vertical-align:middle}
.filter-chip-delete{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--muted);cursor:pointer}
.filter-chip-delete:hover{background:var(--soft);color:var(--accent)}
.filter-chip-delete:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.filter-chip-delete svg{display:block;pointer-events:none}
@media(pointer:coarse){.filter-chip-delete{width:30px;height:30px}}
/* Wrap individual chips naturally without moving a whole group to a new line. */
#filter-summary-general{display:block;min-width:0;max-width:100%;overflow:visible;padding-bottom:6px;line-height:2.8}
.filter-summary-entry{display:inline;max-width:100%;white-space:normal;line-height:inherit;margin-right:16px}
.filter-summary-entry>.filter-name-badge{margin-right:6px;vertical-align:middle}
.filter-summary-values{display:inline;max-width:100%;white-space:normal;line-height:inherit}
.filter-summary-chosen{max-width:100%;white-space:nowrap;overflow-wrap:normal;vertical-align:middle}
.filter-summary-chosen+.filter-summary-chosen{margin-left:4px}
.filter-chip-text,.filter-summary-mode{white-space:nowrap}

#filter-panel-general{scroll-margin-top:90px}
@media(max-width:760px){#filter-panel-general{scroll-margin-top:200px}}
/* Make the filter disclosure control easy to spot in both states. */
#filter-panel-general>summary>.filter-chevron{display:inline-flex;align-items:center;justify-content:center;align-self:start;grid-column:2;grid-row:1/span 2;width:36px;height:36px;margin-top:2px;border:1px solid #cbb5c2;border-radius:50%;background:#eee2e9;color:#68435a;font-size:28px;font-weight:700;line-height:1;transition:transform .18s,background-color .18s}
#filter-panel-general>summary:hover>.filter-chevron{background:#dfcad6;border-color:#a78299;color:#4c2b3f}
@media(prefers-reduced-motion:reduce){#filter-panel-general>summary>.filter-chevron{transition:none}}
#filter-panel-general>summary>.filter-chevron{position:relative;background:#fff;border-color:#dac9d3;color:#964c79;font-size:0;box-shadow:0 2px 6px #5434470d}
#filter-panel-general>summary>.filter-chevron::before{content:"";width:10px;height:10px;border-right:3px solid currentColor;border-bottom:3px solid currentColor;transform:translateY(-3px) rotate(45deg);border-radius:1px}
#filter-panel-general>summary:hover>.filter-chevron{background:#fff;border-color:#ad7396;color:#ae387c;box-shadow:0 2px 8px #79556820}

.filter-summary-heading{grid-column:1;grid-row:1;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0}

.filter-summary-heading>.results-status{display:inline-flex;align-items:center;gap:7px;min-height:0;margin:0;cursor:default}
.filter-summary-heading #result-count{margin:0;min-height:0;font-size:var(--text-small-size,16px);line-height:1.4}
.filter-summary-heading #loading-indicator[hidden]{display:none!important}

.tabs>.results-status.sr-only{min-height:0;margin:0}

:is(#filter-summary-general>#reset-filters,.magazine-filter-controls>#magazine-reset,#yarn-filter-panel>#yarn-reset-filters){display:inline;min-height:0;padding:0;margin:0 0 0 4px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--accent);font-size:var(--text-small-size,16px);line-height:inherit;vertical-align:baseline;white-space:nowrap;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
:is(#filter-summary-general>#reset-filters,.magazine-filter-controls>#magazine-reset,#yarn-filter-panel>#yarn-reset-filters):hover{color:#a23c75;background:none}
:is(#filter-summary-general>#reset-filters,.magazine-filter-controls>#magazine-reset,#yarn-filter-panel>#yarn-reset-filters)[hidden]{display:none!important}
/* Catalogue filters use direct chip pickers, with sizes in a separate dialog. */
.catalog-chip-filters{padding:12px 4px 18px;border-bottom:1px solid var(--line)}
.catalog-chip-filters .filter-summary-heading{margin-bottom:5px}
.catalog-filter-sources[hidden]{display:none!important}
.catalog-filter-picker{display:inline-block;position:relative;vertical-align:middle;max-width:100%}
.catalog-filter-picker>summary,.catalog-size-trigger{display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;min-height:34px;padding:5px 10px;list-style:none;border:0;font:600 var(--text-small-size,16px)/1.5 system-ui,sans-serif;cursor:pointer;vertical-align:middle;text-decoration:none}
.catalog-filter-picker>summary::-webkit-details-marker{display:none}
.catalog-filter-picker>summary:focus-visible,.catalog-size-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.catalog-filter-chevron{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border:1px solid #ffffffc9;border-radius:50%;background:#ffffffd9;color:inherit;box-shadow:0 1px 3px #39263312}
.catalog-filter-chevron svg{display:block}
.catalog-filter-picker[open]>summary>.catalog-filter-chevron{transform:rotate(180deg)}
.catalog-filter-menu{position:absolute;top:calc(100% + 7px);left:0;z-index:60;display:grid;gap:3px;min-width:220px;width:max-content;max-width:min(340px,calc(100vw - 48px));max-height:290px;overflow:auto;padding:7px;border:1px solid var(--line);border-radius:11px;background:var(--card);box-shadow:0 8px 28px #38232e1c;line-height:1.5}
.catalog-filter-menu>button{display:flex;align-items:center;gap:9px;border:0;border-radius:6px;background:transparent;text-align:left;padding:9px 12px;color:var(--ink);font:inherit;font-size:var(--text-small-size,16px);cursor:pointer}
.catalog-filter-menu>button:hover,.catalog-filter-menu>button:focus-visible{background:var(--soft);outline:0}
.catalog-filter-menu>button[aria-selected="true"]{background:var(--soft);color:var(--accent);font-weight:600}
.catalog-option-check{display:inline-flex;align-items:center;justify-content:center;flex:none;width:17px;height:17px;border:1px solid var(--line);border-radius:4px;color:var(--accent);font-size:var(--text-small-size,16px)}
.catalog-filter-menu [aria-selected="true"]>.catalog-option-check{border-color:var(--accent);background:#fff}
.catalog-size-dialog{width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink);box-shadow:0 18px 65px #39263330}
.catalog-size-dialog::backdrop{background:#30202c66}
.catalog-size-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.catalog-size-heading h2{margin:0;font:400 28px/1.25 Georgia,serif}
.catalog-size-heading .icon-button{font-size:28px;flex:none}
.catalog-size-dialog .size-filters{border:0;padding:0;margin:0}
.catalog-size-dialog .size-filters>legend{display:none}
.catalog-size-actions{display:flex;justify-content:flex-end;margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
@media(max-width:540px){.catalog-size-dialog{padding:18px;max-height:calc(100dvh - 28px)}.catalog-filter-menu{min-width:190px}}
.catalog-chip-filters{border-bottom:0}
/* Size grids fit the dialog instead of retaining full-page minimum widths. */
.catalog-size-dialog{width:min(960px,calc(100vw - 32px))}
.catalog-size-dialog #size-options{display:block;min-width:0}
.catalog-size-dialog .size-option-group{width:100%;min-width:0;box-sizing:border-box}
.catalog-size-dialog .size-scales{width:100%;max-width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;overflow:visible;box-sizing:border-box}
.catalog-size-dialog .size-scales>.size-scale{min-width:0;padding:12px;box-sizing:border-box}
.catalog-size-dialog .size-scales .fiber-options{grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:6px}
.catalog-size-dialog .size-scales .fiber-choice{white-space:nowrap;box-sizing:border-box}
.catalog-size-dialog .size-scales .fiber-choice span{white-space:nowrap}
.catalog-size-dialog .one-size-layout{margin-top:18px}
@media(max-width:720px){.catalog-size-dialog .size-scales{grid-template-columns:minmax(0,1fr)}.catalog-size-dialog .size-scales .fiber-options{grid-template-columns:repeat(auto-fit,minmax(68px,1fr))}}
/* A compact card layout for the simple size picker. */
.catalog-size-dialog .size-mode-tabs{display:inline-flex;gap:4px;width:auto;max-width:100%;padding:4px;margin:0 0 18px;border:0;border-radius:11px;background:var(--soft)}
.catalog-size-dialog .size-mode-tabs button{padding:9px 16px;border:0;border-radius:8px;font-size:var(--text-small-size,16px);line-height:1.4;cursor:pointer}
.catalog-size-dialog .size-mode-tabs button[aria-selected="true"]{background:#fff;color:var(--accent);box-shadow:0 1px 5px #39263314}
.catalog-size-dialog .simple-size-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:none}
.catalog-size-dialog .simple-size-options .fiber-choice{box-sizing:border-box;min-width:0;min-height:64px;padding:12px 14px;gap:10px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink)}
.catalog-size-dialog .simple-size-options .fiber-choice:hover{border-color:#b18c9f;background:#faf6f8}
.catalog-size-dialog .simple-size-options .fiber-choice:has(input:checked){border-color:var(--accent);background:var(--soft);color:var(--accent)}
.catalog-size-dialog .one-size-layout{grid-template-columns:auto minmax(0,1fr);gap:18px;margin-top:18px;padding:14px 16px;border:1px solid var(--line);border-radius:11px;background:var(--bg);box-sizing:border-box}
.catalog-size-dialog .one-size-layout>.fiber-choice{width:auto;min-height:32px;padding:0;border:0;background:transparent;gap:9px}
.catalog-size-dialog .one-size-help{margin:0;font-size:var(--text-small-size,16px);line-height:1.6}
@media(max-width:620px){.catalog-size-dialog .simple-size-options{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-size-dialog .one-size-layout{grid-template-columns:minmax(0,1fr);gap:9px}.catalog-size-dialog .size-mode-tabs button{padding:9px 12px}}

/* Catalogue title remains plain text in both search states. */
#all-tab{color:var(--accent);font-size:18px;font-weight:700}
#all-tab #catalog-heading-label{background:none;border-radius:0;padding:0;color:var(--accent);font-size:inherit;font-weight:400}

/* Larger, consistent filter labels and selected values on both catalogue pages. */
.catalog-filter-picker>summary,.catalog-size-trigger{font-size:16px}
.catalog-chip-filters .filter-summary-chosen,.finder-model-filters .filter-summary-chosen{font-size:16px}
.catalog-filter-menu>button{font-size:16px}

#all-tab #all-count{font-size:inherit}

/* Shared spacing for the catalogue and yarn selection filters. */
#filter-summary-general,.finder-model-filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;line-height:1.5}
#filter-summary-general>.filter-summary-entry{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;min-width:0;max-width:100%}
#filter-summary-general .filter-summary-values{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}
#filter-summary-general .filter-summary-chosen+.filter-summary-chosen{margin-left:0}

.catalog-toolbar .catalog-search input,.catalog-toolbar .catalog-search input::placeholder{font-size:16px}

.topbar .user-search-control input,.topbar .user-search-control input::placeholder{font-size:16px}

:is(#filter-summary-general>#reset-filters,.magazine-filter-controls>#magazine-reset,#yarn-filter-panel>#yarn-reset-filters){font-size:16px;min-height:44px;padding:8px 4px;line-height:1.5}


/* Consistent result counters outside the main model catalogue. */
:root body :is(#finder-status,#yarn-status,#magazine-status,#authors-status,[data-work-count],#pick-message){display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--muted);font-size:18px;line-height:1.5;min-height:32px}
:root body :is(#finder-status,#yarn-status,#magazine-status,#authors-status,[data-work-count],#pick-message)>strong{display:inline-flex;align-items:center;justify-content:center;min-width:30px;padding:3px 9px;border-radius:7px;background:var(--soft);color:var(--accent);font-size:inherit;font-weight:600;font-variant-numeric:tabular-nums}

/* Match search clearing controls to the main catalogue. */
#clear-search,.yarn-search-clear{font-size:26px;line-height:1}
input[type="search"]:not(#query):not(#yarn-query)::-webkit-search-cancel-button{-webkit-appearance:none;width:26px;height:26px;margin-left:8px;cursor:pointer;background-color:var(--muted);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}

/* Shared appearance for search fields and filter chips. */
:root{--search-height:48px;--search-radius:8px;--search-font:16px;--filter-height:40px;--filter-radius:8px;--search-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='6.5' fill='none' stroke='%237c7178' stroke-width='1.7'/%3E%3Cpath d='m15 15 5 5' stroke='%237c7178' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E")}
:root body :is(input[type="search"],#query,#yarn-query,#magazine-search,#authors-query):not(.catalog-search input,.user-search-control input){box-sizing:border-box;height:var(--search-height);min-height:var(--search-height);border:1px solid var(--line);border-radius:var(--search-radius);background:var(--card) var(--search-icon) 13px center/20px 20px no-repeat;color:var(--ink);font-family:inherit;font-size:var(--search-font);font-weight:400;line-height:1.5;padding:10px 12px 10px 42px;min-width:0}
:root body input[type="search"]::placeholder{font-size:var(--search-font);font-weight:400;color:var(--muted);opacity:1}
:root body :is(.catalog-search,.user-search-control){box-sizing:border-box;height:var(--search-height);min-height:var(--search-height);border:1px solid var(--line);border-radius:var(--search-radius);background:var(--card);padding:0 12px;gap:8px}
:root body :is(.catalog-search,.user-search-control) :is(input[type="search"],#query,#yarn-query,#magazine-search,#authors-query){height:100%;min-height:0;padding:0;border:0;border-radius:0;background:transparent;outline:none}
:root body :is(.catalog-search,.user-search-control)>svg{width:20px;height:20px;color:var(--muted);flex:none}
:root body :is(.catalog-search,.user-search-control):focus-within{outline:2px solid var(--accent);outline-offset:2px}
:root body input[type="search"]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
:root body :is(.catalog-search,.user-search-control) input[type="search"]:focus-visible{outline:none}
:root body .topbar .user-search{height:var(--search-height)}
:root body .user-search-control>button{order:-1;flex:0 0 20px;width:20px;height:44px;min-height:44px;padding:0;color:var(--muted)}
:root body .user-search-control>button svg{width:20px;height:20px}
:root body #yarn-query{padding-right:48px}
:root body .yarn-search-icon{display:none}
:root body .yarn-search-clear{top:5px;height:38px}
:root body :is(.catalog-filter-picker>summary,.catalog-size-trigger,.finder-filter-picker>summary){display:inline-flex;align-items:center;gap:8px;min-height:var(--filter-height);padding:6px 11px;border:0;border-radius:var(--filter-radius);font:600 16px/1.5 system-ui,sans-serif}
:root body :is(.catalog-filter-chevron,.finder-filter-chevron){display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;border:1px solid #ffffffc9;border-radius:50%;background:#ffffffd9;color:inherit;box-shadow:0 1px 3px #39263312}
:root body :is(.catalog-filter-chevron,.finder-filter-chevron) svg{width:14px;height:14px;stroke-width:2.5}
:root body :is(.catalog-chip-filters,.finder-model-filters,.child-size-category) .filter-summary-chosen{display:inline-flex;align-items:center;gap:6px;min-height:var(--filter-height);padding:4px 6px 4px 11px;border:1px solid var(--line);border-radius:var(--filter-radius);background:#fff;color:var(--ink);font:400 16px/1.5 system-ui,sans-serif}
:root body :is(.catalog-chip-filters,.finder-model-filters) .filter-chip-delete{width:26px;height:26px;flex:0 0 26px}
:root body :is(.catalog-filter-menu,.finder-filter-menu){padding:7px;border:1px solid var(--line);border-radius:11px;background:var(--card);box-shadow:0 8px 28px #38232e1c}
:root body :is(.catalog-filter-menu,.finder-filter-menu)>button{min-height:40px;padding:9px 12px;border-radius:6px;font-size:16px;line-height:1.5}

#all-tab.is-result-count{gap:8px;font-size:18px;line-height:1.5}
#all-tab.is-result-count #catalog-heading-label{color:var(--muted);font-weight:400}
#all-tab.is-result-count #all-count{display:inline-flex;align-items:center;justify-content:center;min-width:30px;padding:3px 9px;border-radius:7px;background:var(--soft);color:var(--accent);font-size:inherit;font-weight:600;font-variant-numeric:tabular-nums}

:root body .topbar .user-search{--search-height:40px;--search-expanded-width:230px}
:root body .topbar .user-search-control>button{height:36px;min-height:36px}

:root body :is(#yarn-status,#magazine-status,#authors-status){justify-content:flex-end;width:100%;text-align:right;margin:10px 0 0}
.catalog-toolbar:has(#all-tab.is-result-count){position:relative;padding-bottom:42px}
.catalog-toolbar #all-tab.is-result-count{position:absolute;right:0;bottom:4px;min-height:32px;margin:0;padding:0;border:0}

.finder-model-filters>#finder-reset-filters{display:inline;min-height:44px;padding:8px 4px;margin:0 0 0 4px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--accent);font-size:16px;line-height:1.5;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.finder-model-filters>#finder-reset-filters:hover{color:#a23c75}

/* Wrap each filter chip individually instead of keeping whole groups together. */
:root body :is(#filter-summary-general,.finder-model-filters){display:flex;flex-wrap:wrap;align-items:center;gap:10px}
:root body #filter-summary-general>.filter-summary-entry,
:root body #filter-summary-general .filter-summary-values,
:root body .finder-model-filters>.finder-filter-row,
:root body .finder-model-filters .finder-filter-values{display:contents}
:root body :is(#filter-summary-general,.finder-model-filters) .filter-summary-chosen{margin:0;max-width:100%}

.filter-summary-mode{font-size:16px;font-weight:600;color:var(--accent);line-height:1.5}

.filter-size-with-mode{display:inline-flex;align-items:center;gap:8px;max-width:100%;white-space:nowrap}
.filter-summary-mode{white-space:nowrap}

/* Place search result totals beside the search field. */
.catalog-toolbar:has(#all-tab.is-result-count){padding-bottom:0;gap:20px;flex-wrap:wrap}
.catalog-toolbar:has(#all-tab.is-result-count)>.tabs{order:2;align-self:center}
.catalog-toolbar:has(#all-tab.is-result-count)>.catalog-search-slot{order:1;flex:1 1 180px}
.catalog-toolbar #all-tab.is-result-count{position:static;min-height:32px;margin:0;padding:0;border:0}
:root body .authors-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px}
:root body .authors-search #authors-status{width:auto;margin:0;white-space:nowrap}


.catalog-toolbar>.catalog-search-slot{align-items:center;gap:16px}
.catalog-search-slot>.catalog-search-results{display:flex;align-items:center;gap:8px;min-height:32px;flex:none;margin:0}
.catalog-search-results #result-count{display:flex;align-items:center;gap:8px;min-height:32px;margin:0;color:var(--muted);font-size:18px;line-height:1.5;white-space:nowrap}
.catalog-search-results #result-count>strong{font-size:inherit;font-weight:600}
@media(max-width:540px){.catalog-toolbar>.catalog-search-slot{min-width:0;gap:12px}.catalog-search-slot .catalog-search{min-width:100px;flex:1}.catalog-search-results #result-count{font-size:16px}}

/* Main catalogue heading matches result counters on other pages. */
#all-tab{gap:8px;color:var(--muted);font-size:18px;font-weight:400;line-height:1.5;border-bottom:0}
#all-tab #catalog-heading-label{color:var(--muted);font-size:inherit;font-weight:400}
#all-tab #all-count{display:inline-flex;align-items:center;justify-content:center;min-width:30px;padding:3px 9px;border-radius:7px;background:var(--soft);color:var(--accent);font-size:inherit;font-weight:600;font-variant-numeric:tabular-nums}

.catalog-size-dialog .simple-size-options{gap:8px;margin:4px 0 8px}
.catalog-size-dialog .simple-size-options .simple-size-card{display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse;min-height:70px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:#fff;cursor:pointer;transition:border-color .15s,background-color .15s,box-shadow .15s}
.simple-size-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.simple-size-name{font-size:16px;font-weight:600;line-height:1.3}
.simple-size-range{font-size:var(--text-small-size,16px);line-height:1.4;color:var(--muted);letter-spacing:.4px}
.catalog-size-dialog .simple-size-card input{appearance:none;-webkit-appearance:none;display:block;flex:0 0 22px;width:22px;height:22px;margin:0;border:1.5px solid #baadb5;border-radius:50%;background:#fff;cursor:pointer}
.catalog-size-dialog .simple-size-card input:checked{border-color:var(--accent);background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat}
.catalog-size-dialog .simple-size-card:has(input:checked){border-color:var(--accent);background:var(--soft);box-shadow:inset 0 0 0 1px var(--accent)}
.catalog-size-dialog .simple-size-card:has(input:checked) .simple-size-range{color:var(--accent)}
.catalog-size-dialog .simple-size-card:hover{border-color:var(--accent)}
@media(max-width:480px){.catalog-size-dialog .simple-size-options .simple-size-card{padding:9px 10px;min-height:70px}.simple-size-name{font-size:var(--text-small-size,16px)}}
@media(prefers-reduced-motion:reduce){.catalog-size-dialog .simple-size-options .simple-size-card{transition:none}}

/* Size picker: compact header, no divider lines. */
.catalog-size-dialog{position:fixed}
.catalog-size-dialog .catalog-size-heading{margin:0;padding:0;border:0;min-height:0}
.catalog-size-dialog .catalog-size-heading .icon-button{position:absolute;right:16px;top:14px;z-index:2}
.catalog-size-dialog .catalog-size-section{padding-top:10px;margin-top:0;border:0}
.catalog-size-dialog .size-group-title{padding-right:0}
.catalog-size-dialog .size-filters,.catalog-size-dialog .size-match-layout,.catalog-size-dialog .size-option-group{border:0}
.catalog-size-dialog .size-match-layout{border-top:0;border-bottom:0}

.catalog-size-dialog .size-options-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;margin:8px 0 12px;flex-wrap:wrap}
.catalog-size-dialog .size-options-toolbar #size-hint{flex:1 1 280px;margin:0}
.catalog-size-dialog .size-options-toolbar>#clear-sizes{flex:0 0 auto;margin:0 0 0 auto;min-height:44px;padding:8px 4px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--accent);font-size:16px;line-height:1.5;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.catalog-size-dialog .size-options-toolbar>#clear-sizes:hover{color:#a23c75;background:none}
.catalog-size-dialog .size-options-toolbar>#clear-sizes[hidden]{display:inline-block!important;visibility:hidden;pointer-events:none}

.catalog-size-dialog{scrollbar-gutter:stable}

.catalog-size-dialog .size-option-group:has(.size-options-toolbar--heading)>legend{width:100%;box-sizing:border-box;padding-right:48px;margin-bottom:12px}
.catalog-size-dialog .size-options-toolbar--heading{flex:1;margin:0;gap:8px}
.catalog-size-dialog .child-size-panels{grid-template-columns:minmax(0,2fr) minmax(0,3fr);max-width:none;align-items:start}
.catalog-size-dialog .child-size-panels>.size-scale{aspect-ratio:auto;padding:16px}
.catalog-size-dialog .child-size-panels .fiber-options{grid-template-columns:repeat(auto-fit,minmax(74px,1fr))}
@media(max-width:600px){.catalog-size-dialog .child-size-panels{grid-template-columns:1fr}.catalog-size-dialog .size-option-group:has(.size-options-toolbar--heading)>legend{flex-wrap:wrap}.catalog-size-dialog .size-options-toolbar--heading{flex:1 1 auto}}

.catalog-size-dialog #size-options>.size-option-group+.size-option-group{margin-top:32px}

.catalog-size-dialog .size-match-layout{margin-top:32px}

.catalog-size-dialog .child-size-category{font-size:var(--text-small-size,16px);font-weight:400;color:var(--muted);line-height:1.5}

.catalog-size-dialog .child-size-category{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}
.catalog-size-dialog .child-size-category .filter-summary-chosen{margin:0;padding-right:11px}

.catalog-size-dialog .child-size-panels{align-items:stretch}
.catalog-size-dialog .child-size-panels>.size-scale{align-self:stretch}

:root body .catalog-size-dialog .child-size-category .filter-summary-chosen{min-height:36px;padding:5px 12px;margin:0;border:1px solid #88a78b;border-radius:8px;background:#edf4eb;color:#355d39;font-size:var(--text-small-size,16px);font-weight:500;line-height:24px;align-items:center}

.catalog-size-dialog .child-size-panels>.size-scale:first-child .fiber-options{grid-template-columns:repeat(3,minmax(0,1fr))}
.catalog-size-dialog .child-size-panels>.size-scale:first-child .fiber-choice{min-width:0;white-space:nowrap;gap:6px}
@media(max-width:380px){.catalog-size-dialog .child-size-panels>.size-scale:first-child .fiber-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

.yarn-picker-request-action{display:flex;justify-content:center;margin-top:20px}
.yarn-picker-request-action>.button{max-width:100%;white-space:normal;text-align:center}

.yarn-picker-request .yarn-request-description{margin:0 0 16px;color:var(--muted);font-size:var(--text-small-size,16px);line-height:1.6}
.yarn-picker-request [data-request-status]:empty{display:none}

.yarn-save-custom{display:block;max-width:100%;margin:10px auto 0;text-align:center;text-decoration:underline;text-underline-offset:3px;white-space:normal;overflow-wrap:anywhere}

/* Shared disclosure indicator. Action menus and comment help keep their own symbols. */
:root{--disclosure-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
:root body details:not(:is(.comment-help,.feed-post-menu,.feed-comment-menu,.project-card-menu,.collection-menu,.stash-card-menu))>summary{position:relative;list-style:none;padding-right:38px}
:root body details:not(:is(.comment-help,.feed-post-menu,.feed-comment-menu,.project-card-menu,.collection-menu,.stash-card-menu))>summary::-webkit-details-marker{display:none}
:root body details:not(:is(.comment-help,.feed-post-menu,.feed-comment-menu,.project-card-menu,.collection-menu,.stash-card-menu))>summary::marker{content:""}
:root body details:not(:is(.comment-help,.feed-post-menu,.feed-comment-menu,.project-card-menu,.collection-menu,.stash-card-menu))>summary::after{content:"";position:absolute;right:10px;top:50%;width:20px;height:20px;flex:none;background:var(--accent);mask:var(--disclosure-chevron) center/contain no-repeat;transform:translateY(-50%);pointer-events:none}
:root body details[open]:not(:is(.comment-help,.feed-post-menu,.feed-comment-menu,.project-card-menu,.collection-menu,.stash-card-menu))>summary::after{transform:translateY(-50%) rotate(180deg)}
:root body summary>:is(.filter-chevron,.catalog-filter-chevron,.finder-filter-chevron,.membership-chevron,.size-disclosure-arrow){display:none!important}

:root body .publication-select>summary>span[aria-hidden="true"]{display:none}

.notification-link>.notification-service-reply{white-space:pre-line;overflow-wrap:anywhere}

/* Shared yarn characteristics editor for stock and projects. */
.yarn-characteristics fieldset{min-width:0;margin:14px 0;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.yarn-characteristics legend{padding:0 6px;font-size:var(--text-small-size,16px);font-weight:600;color:var(--accent)}
.yarn-characteristics-title{margin:0 0 12px;font-size:var(--text-small-size,16px);font-weight:600}
.yarn-characteristics label{display:grid;gap:8px;margin:0;font-size:var(--text-small-size,16px);font-weight:400;line-height:1.5;color:var(--ink)}
.yarn-characteristics :is(input,select){box-sizing:border-box;width:100%;min-width:0;padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);font-family:inherit;font-size:16px;font-weight:400;line-height:1.5}
.yarn-characteristics input[type=number]{appearance:textfield;-moz-appearance:textfield}
.yarn-characteristics input[type=number]::-webkit-inner-spin-button,.yarn-characteristics input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.yarn-characteristics-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 40px;gap:10px;align-items:end;margin-bottom:12px}
.yarn-characteristics-row .yarn-characteristics-remove{display:grid;place-items:center;width:40px;height:40px;min-height:40px;margin-bottom:3px;padding:0;border-radius:50%;font-size:26px}
.yarn-characteristics-remove:hover{background:var(--soft)}
.yarn-characteristics-total{margin:6px 0 22px;padding-bottom:18px;font-size:var(--text-small-size,16px);color:var(--muted)}
.yarn-characteristics-meterage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:20px}
.yarn-characteristics-facts{display:grid;gap:12px;margin:12px 0 18px}
.yarn-characteristics-facts dt{color:var(--muted);font-size:var(--text-small-size,16px);margin-bottom:4px}
.yarn-characteristics-facts dd{margin:0;overflow-wrap:anywhere;font-size:16px;line-height:1.6}
.yarn-picked-entry{margin-bottom:16px}
.yarn-picked-entry>p{display:flex;align-items:center;gap:12px}
.yarn-picked-entry>p>:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
@media(max-width:540px){.yarn-characteristics fieldset{padding:14px}.yarn-characteristics-meterage{grid-template-columns:minmax(0,1fr);gap:16px}.yarn-characteristics-row{grid-template-columns:minmax(0,1fr) 80px 32px;gap:6px}.yarn-characteristics-row .yarn-characteristics-remove{width:32px;height:32px;min-height:32px}}

:root body .yarn-picker [data-selected] .yarn-picked-entry>p{display:flex;width:fit-content;max-width:100%;box-sizing:border-box;flex-wrap:nowrap;justify-content:flex-start;gap:12px}
:root body .yarn-picker [data-selected] .yarn-picked-entry>p>:first-child{flex:0 1 auto}
.yarn-characteristics .site-select{min-width:0;max-width:100%}

.yarn-picker-catalog-content>label{display:grid;gap:8px;margin:0}
.yarn-picker-source-tabs{display:inline-flex;gap:5px;max-width:100%;box-sizing:border-box;margin:0 0 18px;padding:5px;border:1px solid #e4d9df;border-radius:14px;background:var(--soft)}
.yarn-picker-source-tabs>.button{display:flex;align-items:center;justify-content:center;gap:9px;flex:1 1 auto;min-width:0;min-height:44px;margin:0;padding:10px 19px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:16px;line-height:1.4;box-shadow:none;transition:background .15s,color .15s,box-shadow .15s}
.yarn-picker-source-tabs>.button[aria-pressed="true"]{background:var(--card);color:var(--accent);font-weight:600;box-shadow:0 2px 7px #57364b16}
.yarn-picker-source-tabs>.button[aria-pressed="true"]::before{content:"";flex:0 0 15px;width:15px;height:15px;background:var(--accent);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.yarn-picker-source-tabs>.button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:420px){.yarn-picker-source-tabs{display:flex}.yarn-picker-source-tabs>.button{padding:10px 12px;font-size:var(--text-small-size,16px);white-space:normal}}

/* Keep the stash selector aligned with the catalogue search inside the picker. */
:is([data-yarn-picker],.yarn-picker) .yarn-catalog-dialog>[data-stash-panel]{display:grid;gap:8px;padding:0;margin:0;border:0;border-radius:0;background:transparent;min-width:0;width:100%;box-sizing:border-box}
.yarn-catalog-dialog>[data-stash-panel]>select,.yarn-catalog-dialog>[data-stash-panel]>.site-select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;margin:0}
.yarn-catalog-dialog>[data-stash-panel] .site-select-trigger{text-align:left;width:100%;box-sizing:border-box}

:root body .yarn-picker [data-selected] .yarn-picked-entry>p>:first-child{color:var(--accent);font-weight:700}
.project-form .project-field-error{display:block;margin-top:8px}
.project-form .project-field-error[hidden]{display:none}

.site-field-error{display:block;margin-top:8px;grid-column:1/-1}
.site-field-error[hidden]{display:none}
[aria-invalid="true"]:is(input,textarea,select,.site-select-trigger){border-color:#9b3c4c}
.site-upload{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:12px;width:100%;box-sizing:border-box;margin-top:8px;padding:18px;border:1px dashed var(--line);border-radius:14px;background:var(--bg);font-weight:400;cursor:default}
.site-upload .site-upload-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--card,#fff);color:var(--accent);font-family:inherit;font-size:16px;font-weight:600;line-height:1.4;cursor:pointer}
.site-upload .site-upload-button svg{flex:none}
.site-upload .site-upload-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.site-upload-requirement{flex-basis:100%;color:var(--muted);font-size:var(--text-small-size,16px)}
.site-upload-hint,.site-upload-chosen{flex-basis:100%;color:var(--muted);font-size:var(--text-small-size,16px);overflow-wrap:anywhere}
.site-upload-chosen:empty{display:none}
:root body .site-upload input.site-upload-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0;overflow:hidden;clip-path:inset(50%)}
:root body label:has(>.site-upload){width:auto;height:auto;max-width:100%;display:block;background:transparent;border:0;padding:0;border-radius:0}
:root body label:has(>.site-upload)>svg{display:none}

:is(.about-page-copy h1,.about-page>#info-title){font-size:clamp(26px,2.6vw,32px);line-height:1.25}

/* One selected-yarn heading style for stock and project editors. */
:root body .yarn-picker [data-selected] .yarn-picked-entry>p{padding:0;background:none;border:0;border-radius:0;font-size:16px;line-height:1.5}
:root body .yarn-picker [data-selected] .yarn-picked-entry>p>:first-child{font-size:16px;line-height:1.5;font-weight:700;color:var(--accent)}

.about-page>.about-page-image{display:block;max-width:760px;margin-inline:auto}

:root body .yarn-picker [data-selected] .yarn-picked-entry>p{gap:4px}
:root body .yarn-picker [data-selected] .yarn-picked-entry>p>[data-remove]{margin-left:0}

/* Destructive actions stay visually separate in every card action menu. */
:root body :is(.stash-card-menu-panel,.project-card-menu-panel,.collection-menu,.feed-post-menu>div)>:is([data-delete],[data-delete-project],[data-delete-description],.project-card-menu-delete,.danger-text,.collection-delete,.feed-delete-action){margin-top:12px;padding-top:16px;border-top:1px solid var(--line);border-radius:0 0 6px 6px;color:#9b3c4c}

.site-upload{min-width:0;max-width:100%}
.site-upload .site-upload-button{max-width:100%;box-sizing:border-box;white-space:normal;text-align:center;overflow-wrap:anywhere}

/* Small-text baseline, shared by desktop and mobile interfaces. */
:root{--text-small-size:16px;--text-small-line-height:1.5}
:where(small,.subtle,.site-upload-hint,.site-upload-requirement,.site-upload-chosen,.stash-optional,.project-notes-optional,.project-photos-optional,.quick-nav-status,.quick-nav-access-note,.viewer-hint):not(.magazine-ad){font-family:inherit;font-size:var(--text-small-size);line-height:var(--text-small-line-height);font-weight:400;color:var(--muted)}

:root body .yarn-picker.has-yarn-name-label [data-selected] .yarn-picked-entry>p>.yarn-picked-name-label{flex:none;color:var(--muted);font-size:var(--text-small-size);font-weight:400;line-height:1.5;margin-right:6px}
:root body .yarn-picker.has-yarn-name-label [data-selected] .yarn-picked-entry>p>:nth-child(2){flex:0 1 auto;min-width:0;overflow-wrap:anywhere;color:var(--accent);font-size:16px;font-weight:700;line-height:1.5}

:root body label.site-upload-host,:root body label.site-upload-host:focus-within{cursor:default;outline:none;box-shadow:none}

.about-page>.about-page-image{height:auto;max-height:none;object-fit:contain}

/* Shared primary heading and filter layout across all pages. */
:root{--page-title-size:clamp(28px,3.2vw,40px);--page-title-font:Georgia,serif;--filter-row-gap:12px;--filter-column-gap:22px}
:root body h1{font-family:var(--page-title-font)!important;font-size:var(--page-title-size)!important;font-weight:400!important;line-height:1.2!important;letter-spacing:-.02em!important}
:is(#filter-summary-general,.finder-model-filters,.magazine-filter-controls,.project-list-controls,.site-filter-controls){gap:var(--filter-row-gap) var(--filter-column-gap)}

:root body .site-filter-select{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;width:auto;min-width:0;max-width:100%}
:root body .site-filter-select>.site-select-trigger{width:auto;min-height:var(--filter-height);height:auto;padding:6px 11px;border:0;border-radius:var(--filter-radius);background:#eee5ee;color:#68466b;font:600 16px/1.5 system-ui,sans-serif}
:root body .site-filter-select .site-select-arrow{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border:1px solid #ffffffc9;border-radius:50%;background:#ffffffd9;box-shadow:0 1px 3px #39263312}
:root body .site-filter-select>.filter-summary-chosen{display:inline-flex;align-items:center;gap:6px;min-height:var(--filter-height);padding:4px 6px 4px 11px;border:1px solid var(--line);border-radius:var(--filter-radius);background:var(--card);font-size:16px;color:var(--ink)}
:root body .site-filter-select>.filter-summary-chosen[hidden]{display:none}
:root body .project-list-controls>label{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%}

.site-selected-filters{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}
:root body .site-filter-select:has(select:is([id*="category"],[data-description-filter="category"],[data-favorite-filter="category"]))>.site-select-trigger{background:#e3ede2;color:#3b603e}
:root body .site-filter-select:has(select:is([id*="status"],[data-description-filter="status"]))>.site-select-trigger{background:#e0eeeb;color:#36645d}
:root body .site-filter-select:has(select:is([data-favorite-filter="technique"],[data-description-filter="technique"]))>.site-select-trigger{background:#f3e8d7;color:#77532e}
:root body .site-filter-select:has(select[data-favorite-filter="sourceType"])>.site-select-trigger{background:#ece3ef;color:#66466c}
:root body .filter-toggle-chip{display:inline-flex;align-items:center;gap:8px;min-height:var(--filter-height);padding:6px 11px;border:0;border-radius:var(--filter-radius);background:var(--soft);color:var(--ink);font:600 16px/1.5 system-ui,sans-serif;cursor:pointer}
.filter-toggle-chip input{width:18px;height:18px;accent-color:var(--accent)}

/* Shared dropdown option typography, independent of the control implementation. */
:root body :is(.catalog-filter-menu,.finder-filter-menu,.site-select-menu) :is(button.catalog-filter-option,button.site-select-option,button[role="option"],label.magazine-filter,#yarn-country-filters>label,#yarn-weight-filters>label){font-family:inherit;font-size:16px;line-height:1.5;font-weight:400;color:var(--ink)}
:root body :is(.catalog-filter-menu,.finder-filter-menu,.site-select-menu) :is(button[aria-selected="true"],label:has(input:checked)){font-weight:600;color:var(--accent);background:var(--soft)}

/* Empty selection containers must not add a second gap between filters. */
:is(.magazine-selected-filters,.site-selected-filters,.filter-summary-values):empty{display:none!important}
:is(#filter-summary-general>#reset-filters,.magazine-filter-controls>#magazine-reset,#yarn-filter-panel>#yarn-reset-filters){width:auto;flex:0 0 auto;align-self:center}

/* Keep selected values attached to their own filter trigger. */
:root body :is(.site-filter-group,.filter-summary-entry,.site-filter-select){display:inline-flex;align-items:center;flex-wrap:nowrap;gap:8px;min-width:0;max-width:100%}
:root body :is(.site-filter-group,.filter-summary-entry)>.catalog-filter-picker{flex:none}
:root body :is(.magazine-selected-filters,.site-selected-filters,.filter-summary-values){display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
:root body .site-filter-select>.site-select-trigger{flex:none}
:root body .site-filter-select>.filter-summary-chosen{min-width:0;max-width:100%}
:root body .site-filter-select>.filter-summary-chosen>span{min-width:0;overflow-wrap:anywhere}

/* All filter disclosures use the same circular arrow, without a second chevron. */
:root body details:is(.catalog-filter-picker,.finder-filter-picker)>summary::after{display:none!important}
:root body details:is(.catalog-filter-picker,.finder-filter-picker)>summary{padding:6px 11px!important}
:root body summary>:is(.catalog-filter-chevron,.finder-filter-chevron){display:inline-flex!important}
:root body :is(.catalog-filter-chevron,.finder-filter-chevron,.site-filter-select .site-select-arrow){display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;border:1px solid #ffffffc9;border-radius:50%;background:#ffffffd9;box-shadow:0 1px 3px #39263312}
:root body :is(.catalog-filter-chevron,.finder-filter-chevron,.site-filter-select .site-select-arrow)>svg{display:block;width:14px;height:14px;stroke-width:2.5}
:root body .filter-chip-delete{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 26px;padding:0;min-height:26px;border:0;background:transparent;cursor:pointer}
:root body .filter-chip-delete>svg{width:16px;height:16px;display:block;pointer-events:none}

:root{--page-title-control-offset:calc(var(--page-title-size) * .4)}

:root body .sort-row .site-filter-select>.site-select-trigger{height:var(--filter-height)!important;min-height:var(--filter-height)!important;padding:6px 11px!important}
:root body .sort-row>.sort-choice:has(.site-filter-select),:root body .stash-list-toolbar>label:has(.site-filter-select){display:inline-flex;align-items:center;flex:0 1 auto;gap:8px}

.yarn-characteristics-row .yarn-characteristics-remove{width:40px;height:40px;min-height:40px;margin-bottom:5px;padding:0;line-height:1;align-self:end;justify-self:center;border-radius:50%}
.yarn-characteristics-remove svg{width:20px;height:20px;display:block}

.yarn-characteristics [data-fibers]>.yarn-characteristics-row:last-child{margin-bottom:4px}
.yarn-characteristics button[data-add]{margin-top:0;padding:0;min-height:0;line-height:1.5}
 .size-match-field .size-match-switch-host{margin:0;padding:0;border:0;background:none;border-radius:0}
.size-match-switch-host .size-system-switch{display:flex;width:100%;box-sizing:border-box}
.size-match-switch-host .size-system-switch label{flex:1 1 0;min-width:0;max-width:none}
.size-match-switch-host .size-system-switch span{padding:10px 8px;min-height:44px;text-align:center}

:root{--catalog-search-width:420px}
@media(min-width:761px){
 :root body.catalog-first-home .catalog-toolbar>.catalog-search-slot{flex:0 1 var(--catalog-search-width);width:var(--catalog-search-width);max-width:var(--catalog-search-width);min-width:0}
 :root body .magazines-heading>.magazine-search-toolbar .catalog-search-slot{flex:0 1 var(--catalog-search-width);width:var(--catalog-search-width);max-width:var(--catalog-search-width);min-width:0}
 :root body .magazines-heading .magazine-search-toolbar .catalog-search{width:100%;min-width:0;transition:none}
 :root body .yarn-catalog .yarn-intro>#yarn-search{flex:0 1 calc(var(--catalog-search-width) + 188px);width:calc(var(--catalog-search-width) + 188px);max-width:calc(var(--catalog-search-width) + 188px)}
 :root body .authors-page .authors-search{flex:0 0 auto;width:auto;max-width:none;min-width:0;grid-template-columns:var(--catalog-search-width) auto}
}

@media(min-width:761px){:root body .authors-page .authors-discovery>p{flex:1;min-width:0}}

/* Shared avatar frames keep the existing outer size on every screen. */
:root{--avatar-frame-color:#d7c6d0;--avatar-subscriber-gradient:linear-gradient(115deg,#a66185,#8972b0 52%,#5c9a7b)}
:root body img:is([src*="/api/avatars/"],[src*="avatar-default.svg"],.author-profile-avatar,.author-directory-avatar,.subscriber-avatar),
:root body :is(.header-avatar,.comment-avatar,.profile-avatar,.user-search-avatar,.avatar-presence,.feed-author,.feed-prompt,.person-row)>img{
 box-sizing:border-box;border:2px solid var(--avatar-frame-color);border-radius:50%;padding:0;background:var(--soft);outline:none;box-shadow:none;
}
:root body img.subscriber-avatar{
 border:4px solid transparent;padding:0;background:linear-gradient(var(--soft),var(--soft)) padding-box,var(--avatar-subscriber-gradient) border-box;outline:none;box-shadow:none;
}

:root{--collection-selection-gradient:linear-gradient(115deg,#f4e9f0,#ece8f3 52%,#e6f0eb)}
:root body :is(.header-avatar,.comment-avatar,.user-search-avatar,.feed-author,.feed-prompt,.person-row)>img.subscriber-avatar,
:root body :is(.header-avatar,.comment-avatar,.user-search-avatar,.feed-author,.feed-prompt,.person-row) .avatar-presence>img.subscriber-avatar{border-width:2.5px}

/* Touch and automatic dialog focus do not paint keyboard focus rings. */
:root:not([data-input-mode="keyboard"]) body :is(button,a,summary):focus{outline:none!important}
@media(max-width:760px){
 .sheet-swipe-enabled>header,.sheet-swipe-enabled>.streak-notice-kicker{touch-action:pan-x pinch-zoom}
 .sheet-swipe-enabled:not(.sheet-swipe-active){transition:transform .18s ease-out}
 .sheet-swipe-enabled.sheet-swipe-active{transition:none!important;user-select:none}
}
@media(prefers-reduced-motion:reduce){.sheet-swipe-enabled{transition:none!important}}

@media(max-width:760px){
 .catalog-size-dialog{
  inset:auto 0 0;
  width:100%;
  max-width:none;
  max-height:90dvh;
  margin:0;
  padding:0;
  overflow:hidden;
  border-radius:22px 22px 0 0;
  scrollbar-gutter:auto;
 }
 .catalog-size-dialog[open]{display:flex;flex-direction:column}
 .catalog-size-dialog::backdrop{background:#30272d66}
 .catalog-size-dialog .catalog-size-heading{
  flex:none;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
 }
 .catalog-size-dialog .catalog-size-heading h2{
  position:static;
  width:auto;
  height:auto;
  padding:0;
  overflow:visible;
  clip:auto;
  clip-path:none;
  font:600 22px/1.3 system-ui,sans-serif;
 }
 .catalog-size-dialog .catalog-size-heading .icon-button{
  position:static;
  width:40px;
  height:40px;
  min-width:40px;
  min-height:40px;
 }
 .catalog-size-dialog .catalog-size-section{
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:20px 20px calc(20px + env(safe-area-inset-bottom));
 }
}
@media(max-width:760px) and (prefers-reduced-motion:no-preference){
 .catalog-size-dialog[open]{animation:catalog-size-sheet-in .2s ease-out}
}
@keyframes catalog-size-sheet-in{from{transform:translateY(100%)}}

.feed-photo-viewer{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:64px 70px;border:0;background:rgba(12,15,18,.96);color:#fff;overflow:hidden}.feed-photo-viewer::backdrop{background:#101215e8}.feed-photo-viewer[open]{display:flex;align-items:center;justify-content:center}.feed-photo-viewer img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.feed-photo-viewer button{position:absolute;width:48px;height:48px;border:0;border-radius:50%;background:#ffffff20;color:white;font-size:32px}.feed-photo-viewer [data-photo-close]{top:12px;right:16px}.feed-photo-viewer [data-photo-prev]{left:12px;top:calc(50% - 24px)}.feed-photo-viewer [data-photo-next]{right:12px;top:calc(50% - 24px)}.feed-photo-viewer span{position:absolute;bottom:16px;left:0;width:100%;text-align:center;font-size:16px}.feed-photos a,.feed-comment-photo{cursor:zoom-in}@media(max-width:600px){.feed-photo-viewer{padding:64px 8px 72px}.feed-photo-viewer [data-photo-prev],.feed-photo-viewer [data-photo-next]{top:auto;bottom:8px}}

/* Photo controls keep a generous touch target without heavy circular backgrounds. */
.feed-photo-viewer button{display:flex;align-items:center;justify-content:center;padding:12px;border-radius:8px;background:transparent;color:#fff;touch-action:manipulation}
.feed-photo-viewer button svg{width:24px;height:24px;stroke-width:2;pointer-events:none}
.feed-photo-viewer button:active{background:#ffffff18}
@media(hover:hover){.feed-photo-viewer button:hover{background:#ffffff18}}
@media(max-width:600px){.feed-photo-viewer{padding-top:calc(64px + env(safe-area-inset-top,0px));padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}.feed-photo-viewer [data-photo-close]{top:calc(8px + env(safe-area-inset-top,0px));right:8px}.feed-photo-viewer [data-photo-prev]{left:16px;bottom:calc(8px + env(safe-area-inset-bottom,0px))}.feed-photo-viewer [data-photo-next]{right:16px;bottom:calc(8px + env(safe-area-inset-bottom,0px))}.feed-photo-viewer span{bottom:calc(20px + env(safe-area-inset-bottom,0px));pointer-events:none}}

.feed-gallery-controls{display:flex;align-items:center;justify-content:center;gap:12px}
.feed-gallery-controls button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;padding:10px;line-height:1}
.feed-gallery-controls button svg{display:block;width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.feed-gallery-controls [data-gallery-count]{display:inline-flex;align-items:center;justify-content:center;min-width:52px;line-height:1;font-variant-numeric:tabular-nums}

@media(min-width:601px){.feed-photo-viewer{padding-left:88px;padding-right:88px}.feed-photo-viewer [data-photo-prev]{left:24px}.feed-photo-viewer [data-photo-next]{right:24px}.feed-photo-viewer [data-photo-close]{top:20px;right:24px}}

:is(a[data-view-photo],a.comment-attached-photo,a.description-preview-slide,.project-photo-viewport a){cursor:zoom-in}

.about-page>#info-title{max-width:760px;margin:0 auto 24px}

/* Addition controls use the same typography as the photo upload button. */
:root body :is(.site-upload .site-upload-button,.yarn-picker-actions>[data-open-catalog],[data-add-instrument],[data-usage-add],.yarn-characteristics [data-add],.stash-photo-choose){
 font-family:inherit;font-size:var(--text-small-size,16px);font-weight:600;line-height:1.4;
}

/* Keep the existing secondary button design and unify only text weight. */
:root body .button.secondary{font-weight:600}
@media(min-width:761px){
 :root body .compact-detail-nav .project-detail-edit{font-weight:600}
}

/* Catalogue and stock identities share the same title-to-country spacing. */
:root body .yarn-identity-heading{display:grid;gap:6px;padding:0}
:root body .yarn-identity-heading>h1{margin:0}
:root body .yarn-identity-heading>:is(.yarn-detail-country,.stash-brand-country){display:block;margin:0;padding:0;border:0;font-size:16px;line-height:1.5;color:var(--accent)}

:root body .yarn-identity-heading>.yarn-detail-country>:is(dt,dd){display:inline;margin:0;padding:0;font:inherit;color:inherit}

/* Full-size photos never inherit avatar frames or circular cropping. */
:root body .feed-photo-viewer img{border:0;border-radius:0;padding:0;background:transparent;outline:none;box-shadow:none}

.avatar-photo-dialog{box-sizing:border-box;width:fit-content;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:12px;border:1px solid var(--line);border-radius:24px;background:var(--card);color:var(--ink);box-shadow:0 24px 90px #1c122944;overflow:auto}
.avatar-photo-dialog::backdrop{background:#241d2a99;backdrop-filter:blur(8px)}
.avatar-photo-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 12px;padding-left:8px}
.avatar-photo-dialog>header>h2{min-width:0;margin:0;font:600 18px/1.4 system-ui,sans-serif;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.avatar-photo-dialog>header>.icon-button{width:36px;height:36px;min-width:36px;padding:8px;border:0;background:var(--soft);color:var(--accent)}
.avatar-photo-dialog>header>.icon-button svg{width:20px;height:20px}
:root body .avatar-photo-dialog>img{display:block;width:min(456px,calc(100vw - 58px),calc(100dvh - 126px));height:auto;max-width:100%;margin:0;border:0;border-radius:16px;padding:0;background:transparent;outline:none;box-shadow:none;object-fit:contain}
.avatar-photo-error{margin:24px 8px;font-size:var(--text-small-size,16px)}

:root body .header-avatar .avatar-online-dot{display:none}
.atelier-brand-link .modeya-wordmark{display:block;width:144px;height:auto}.atelier-brand-link:has(.modeya-wordmark){display:inline-flex;align-items:center;gap:12px}@media(max-width:700px){.atelier-brand-link .modeya-wordmark{width:112px}}

/* The paired logo uses two windows onto the original artwork, at one scale. */
.atelier-brand-pair{align-items:center}.atelier-brand-pair .brand{display:flex;align-items:center;transform:none}.atelier-brand-link>span{margin-right:0;line-height:1}.atelier-brand-link span.modeya-wordmark{--modeya-logo-height:28px;display:inline-flex;align-items:center;gap:4px;width:auto;height:var(--modeya-logo-height);line-height:0;padding:0;margin:0;flex:none}.atelier-brand-link .modeya-wordmark>img{display:block;min-width:0;max-width:none;height:var(--modeya-logo-height);object-fit:cover;flex:none}.atelier-brand-link .modeya-wordmark>.modeya-brand-mark{width:calc(var(--modeya-logo-height) * 610 / 306);object-position:left center;transform:translateY(1px)}.atelier-brand-link .modeya-wordmark>.modeya-brand-name{filter:drop-shadow(.3px 0 0 #3f6253) drop-shadow(-.3px 0 0 #3f6253);width:calc(var(--modeya-logo-height) * .54 * 986 / 306);height:calc(var(--modeya-logo-height) * .54);object-position:right center;transform:translateY(calc(var(--modeya-logo-height) * .07))}

.atelier-brand-link .modeya-wordmark>span.modeya-brand-name{display:block;width:auto;height:auto;flex:none;margin:0;padding:0;font-family:ui-rounded,"Arial Rounded MT Bold",-apple-system,BlinkMacSystemFont,sans-serif;font-size:calc(var(--modeya-logo-height) * .77);font-weight:800;line-height:1;letter-spacing:.015em;color:#3f6253;filter:none;transform:translateY(calc(var(--modeya-logo-height) * .12))}

.atelier-brand-pair .atelier-brand-link .modeya-wordmark>img.modeya-drawn-name{width:auto;height:calc(var(--modeya-logo-height) * .71);object-fit:contain;filter:none;transform:translateY(calc(var(--modeya-logo-height) * .05))}

/* Shared zoom viewer: full screen on desktop, bottom sheet on mobile. */
#image-viewer.site-image-zoom[open],.feed-photo-viewer.site-image-zoom[open]{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);border:0;border-radius:0;display:flex;flex-direction:column;background:var(--card);color:var(--ink);overflow:hidden}
.site-image-zoom::backdrop{background:#0006}
.site-image-zoom .viewer-bar{display:flex;flex:none;width:100%;flex-wrap:wrap;align-items:center;gap:14px;padding:12px 16px;background:var(--bg);border-bottom:1px solid var(--line)}
.site-image-zoom .viewer-bar>p{flex:1;min-width:140px;margin:0;font-size:16px}
.site-image-zoom .viewer-bar>.viewer-zoom-controls{display:flex;position:static;transform:none;align-items:center;justify-content:center;gap:8px;flex:none;padding:0;background:transparent;color:var(--ink)}
.site-image-zoom .viewer-bar .viewer-zoom-controls button,.site-image-zoom .viewer-bar>[data-photo-close],#image-viewer #close-viewer{position:static;flex:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--accent);font-size:24px}
.site-image-zoom .viewer-bar>[data-photo-close],#image-viewer #close-viewer{order:3}
.site-image-zoom .viewer-bar .viewer-zoom-controls button svg,.site-image-zoom .viewer-bar>[data-photo-close] svg{width:22px;height:22px;pointer-events:none}
.site-image-zoom .viewer-zoom-controls output{min-width:50px;text-align:center;font-size:16px;font-variant-numeric:tabular-nums}
#image-viewer.site-image-zoom .viewer-scroll,.feed-photo-viewer.site-image-zoom>.viewer-scroll{flex:1;min-height:0;width:100%;height:auto;max-height:none;background:var(--card);overflow:auto;overscroll-behavior:contain;scroll-behavior:auto;touch-action:none;cursor:grab}
.site-image-zoom .viewer-scroll.is-dragging{cursor:grabbing}
.site-image-zoom .viewer-canvas{display:grid;place-items:center;min-width:100%;min-height:100%}
.site-image-zoom .viewer-canvas img{display:block;max-width:none;max-height:none;margin:0;user-select:none;-webkit-user-drag:none;touch-action:none}
.feed-photo-viewer.site-image-zoom.has-photo-gallery[open]{padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))}
.feed-photo-viewer.site-image-zoom>[data-photo-prev],.feed-photo-viewer.site-image-zoom>[data-photo-next]{position:absolute;top:auto;bottom:calc(4px + env(safe-area-inset-bottom,0px));z-index:2;color:var(--accent)}
.feed-photo-viewer.site-image-zoom>[role=status]{bottom:calc(16px + env(safe-area-inset-bottom,0px));color:var(--muted)}
@media(max-width:760px){
 #image-viewer.site-image-zoom[open],.feed-photo-viewer.site-image-zoom[open]{inset:auto 0 0;width:100%;height:95dvh;max-height:95dvh;border-radius:24px 24px 0 0;padding-top:18px}
 .site-image-zoom::before{content:"";position:absolute;top:7px;left:calc(50% - 20px);width:40px;height:4px;border-radius:4px;background:var(--line)}
}
@media(max-width:600px){
 .site-image-zoom .viewer-bar>p{min-width:0;flex-basis:calc(100% - 64px)}
 .site-image-zoom .viewer-bar>[data-photo-close],#image-viewer #close-viewer{order:0}
 .site-image-zoom .viewer-bar>.viewer-zoom-controls{width:100%;order:3}
}
@media(max-width:760px) and (prefers-reduced-motion:no-preference){#image-viewer.site-image-zoom[open],.feed-photo-viewer.site-image-zoom[open]{animation:catalog-size-sheet-in .2s ease-out}}
