.cabinet{padding-top:36px;padding-bottom:60px}.cabinet.narrow{max-width:650px}.cabinet h1{font-size:38px;letter-spacing:-1px}.cabinet h2{font-family:Georgia,serif;font-weight:400;font-size:26px;margin:24px 0 16px}.cabinet form{display:grid;gap:15px}.cabinet label{display:grid;gap:6px;font-size:var(--text-small-size,16px);color:var(--muted)}.cabinet input:not([type=checkbox]),.cabinet textarea{width:100%;padding:11px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:var(--card);font:inherit;font-size:16px}.cabinet textarea{min-height:100px;resize:vertical}.cabinet input[type=file]{font-size:var(--text-small-size,16px)}.cabinet-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0}.cabinet-actions .text-button{font-size:var(--text-small-size,16px)}.cabinet p[role=status]{white-space:pre-line;color:var(--accent)}.admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.admin-card{border:1px solid var(--line);padding:14px;border-radius:9px;background:var(--card)}.admin-card img{width:100%;height:180px;object-fit:contain}.admin-card h3{font-size:16px;margin:10px 0}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.editor-wide{grid-column:1/-1}.editor-photo{max-width:200px;max-height:200px;object-fit:contain}.fiber-editor{display:flex;flex-wrap:wrap;gap:12px}.fiber-editor label{display:flex;align-items:center;gap:7px}.yarn-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;align-items:end}.pattern-editor-row{display:flex;gap:12px;align-items:center;margin:10px 0}.pattern-editor-row img{width:100px;height:90px;object-fit:contain}.editor-section{border-top:1px solid var(--line);padding-top:20px;margin-top:15px}.admin-search{display:flex;gap:12px;margin:20px 0}.admin-search input{flex:1}.danger-text{color:#954d4d}.topbar-actions{display:flex;align-items:center;gap:14px}.topbar-actions a{font-size:var(--text-small-size,16px);text-decoration:none}@media(max-width:600px){.editor-grid{grid-template-columns:1fr}.editor-wide{grid-column:auto}.admin-grid{grid-template-columns:1fr 1fr}.yarn-row{grid-template-columns:1fr 1fr}.topbar-actions{gap:8px}.topbar-actions a{font-size:var(--text-small-size,16px)}.cabinet h1{font-size:31px}.admin-card img{height:130px}}

.comments-section{margin-top:48px;padding-top:28px;border-top:1px solid #e3dcd8}.comments-section form{display:grid;gap:14px;max-width:760px;margin:20px 0}.comments-section label{display:grid;gap:8px}.comments-section textarea{width:100%;min-height:120px;padding:12px;font:inherit;border:1px solid #ddd5d9;border-radius:8px}.comment-card{padding:18px 0;border-bottom:1px solid #e3dcd8}.comment-card header{display:flex;gap:15px;flex-wrap:wrap}.comment-card time{color:#746d72;font-size:var(--text-small-size,16px)}.comment-text{white-space:pre-wrap;overflow-wrap:anywhere}.comment-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:16px 0}.danger-text{color:#a13649!important}.danger-button{background:#a13649!important;color:white}.moderation-panel{margin:32px 0;padding:20px;border:1px solid #ddd5d9;border-radius:10px}.moderation-panel>summary{font-size:22px;cursor:pointer}.delete-issue-panel{margin:28px 0}.delete-issue-panel label{display:grid;gap:8px;margin-bottom:16px}.delete-dialog{width:min(680px,90vw);max-height:85vh;overflow:auto;border:1px solid #ddd5d9;border-radius:12px;padding:24px;background:#f8f6f3;color:#383238}.delete-dialog::backdrop{background:#0006}.delete-dialog label{display:grid;gap:8px}.delete-dialog input{padding:12px;font:inherit}.delete-dialog ul{max-height:230px;overflow:auto}.delete-dialog li{margin:8px 0}

.comment-avatar,.profile-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#eee6ec;color:#73576a;border-radius:50%;overflow:hidden;font-weight:600}
.comment-avatar{width:40px;height:40px;font-size:18px}.profile-avatar{width:96px;height:96px;font-size:36px;margin-bottom:12px}
.comment-avatar img,.profile-avatar img{width:100%;height:100%;object-fit:cover}.comment-card header{align-items:center;gap:10px}.comment-card time{margin-left:auto;font-size:var(--text-small-size,16px);color:var(--muted,#777)}
.comment-replies{margin:14px 0 0 22px;padding-left:14px;border-left:2px solid #e5dce2}.comment-replies:empty{display:none}.comment-replies .comment-card{padding:12px 0;border:0;border-bottom:1px solid #eee6ec;border-radius:0}.comment-like[aria-pressed=true]{color:#a64c6c}
[data-reply-context]{padding:10px 12px;margin-bottom:12px;border-left:3px solid #a98099;background:#f6f0f4}[data-reply-prefix]{white-space:pre-wrap;overflow-wrap:anywhere}
#avatar-form{margin-bottom:28px}#delete-account{margin-top:28px}#delete-account-dialog{max-width:520px;width:calc(100% - 32px);padding:28px;border:1px solid #dfd1da;border-radius:20px;color:inherit}#delete-account-dialog::backdrop{background:#32273270}#delete-account-error{color:#a32944}
@media(max-width:560px){.comment-replies{margin-left:8px;padding-left:10px}.comment-card header{flex-wrap:wrap}.comment-card time{font-size:var(--text-small-size,16px)}.comment-actions{gap:12px}}

.profile-section{padding:20px 0;border-bottom:1px solid var(--line)}.profile-summary{display:flex;align-items:center;gap:18px}.profile-summary>.text-button{margin-left:auto;flex-shrink:0}.profile-summary .profile-avatar{margin:0;width:80px;height:80px}.profile-summary-label{font-size:var(--text-small-size,16px)}.profile-name-display{margin:2px 0 0;font-size:20px;font-weight:500;overflow-wrap:anywhere}.profile-summary>div:not(.profile-avatar){min-width:0}.cabinet .profile-editor{margin:20px 0 0;padding:18px;background:var(--card);border:1px solid var(--line);border-radius:12px}.profile-editor .cabinet-actions{margin:0}.profile-editor .subtle{margin:0}#avatar-status:empty{display:none}#avatar-status{margin:12px 0 0}.profile-section #avatar-form{margin-bottom:0}@media(max-width:480px){.profile-summary{gap:12px}.profile-summary .profile-avatar{width:64px;height:64px}.profile-summary-label{font-size:var(--text-small-size,16px)}}

#email-status:empty{display:none}#email-status{margin:12px 0 0}#pending-email{margin-top:16px;padding:12px;border-radius:8px;background:var(--soft);overflow-wrap:anywhere}#pending-email p{margin:0;font-size:var(--text-small-size,16px)}#member-email{font-size:17px}

.brand-links{display:flex;align-items:center;gap:24px;min-width:0}.about-link{border:0;background:none;padding:10px 0;font-size:var(--text-small-size,16px);white-space:nowrap;color:var(--muted)}.about-link:hover{color:var(--ink)}.account-menu{position:relative}.account-menu-toggle{display:flex;align-items:center;gap:8px;border:0;background:none;padding:10px 0 10px 12px;font-size:var(--text-small-size,16px);max-width:220px}.account-menu-panel{position:absolute;top:100%;right:0;z-index:30;min-width:220px;padding:8px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.topbar-actions .account-menu-panel a{display:block;padding:12px;border-radius:7px;font-size:var(--text-small-size,16px);white-space:nowrap}.account-menu-panel a:hover,.account-menu-panel a:focus-visible{background:var(--soft)}@media(max-width:560px){.brand-links{gap:14px}.about-link{font-size:var(--text-small-size,16px)}.account-menu-toggle{max-width:110px;font-size:var(--text-small-size,16px)}.topbar{gap:10px}.brand-links .brand{font-size:16px;gap:7px}.brand-links .brand img{width:30px;height:30px}}

.topbar{position:sticky;top:0;z-index:40;background:var(--bg,#f8f6f3)}.topbar-actions{margin-left:auto}.about-link{text-decoration:none}.account-menu-panel button{display:block;width:100%;text-align:left;padding:12px;border:0;border-radius:7px;background:none;font:inherit;font-size:var(--text-small-size,16px);color:inherit;cursor:pointer}.account-menu-panel button:hover,.account-menu-panel button:focus-visible{background:var(--soft)}#header-error{font-size:var(--text-small-size,16px);max-width:220px;padding:0 12px}.favorites-heading{padding:36px 0 12px}.favorites-heading h1{font-family:Georgia,serif;font-size:42px;margin:24px 0 12px}.favorites-page .hero,.favorites-page .tabs,.favorites-page .search,.favorites-page #filter-controls,.favorites-page #reset-filters,.favorites-page .footer{display:none}.favorites-page #catalog-view>.catalog{padding-top:0}@media(max-width:480px){.topbar{padding-left:16px;padding-right:16px}.brand-links{gap:10px}.account-menu-toggle{max-width:90px}.favorites-heading h1{font-size:34px}}

.magazine-options{display:grid;gap:12px;max-height:280px;overflow:auto;padding:4px}.magazine-options .fiber-choice{display:flex;align-items:center;gap:10px}

.magazine-filter{border:0;padding:0;margin:0;min-width:0}.magazine-filter legend{font-size:var(--text-small-size,16px);margin-bottom:10px}.magazine-filter .subtle{font-size:var(--text-small-size,16px);margin:8px 0 0}

.publication-filters{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.publication-filters .fiber-choice{font-size:var(--text-small-size,16px)}

.publication-select{position:relative}.publication-select>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;background:var(--card);border:1px solid var(--line);border-radius:6px;padding:12px;font-size:var(--text-small-size,16px);min-height:46px}.publication-select>summary::-webkit-details-marker{display:none}.publication-select>summary span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.publication-select>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.publication-menu{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:25;padding:14px;background:var(--card);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);max-height:320px;overflow:auto}.publication-menu>.fiber-choice{display:flex;gap:10px;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:10px}.publication-menu .magazine-options{max-height:none;overflow:visible}

/* Publication menus extend beyond their accordion panel. */
#filter-panel-general{overflow:visible;position:relative}
#filter-panel-general:has(.publication-select[open]){z-index:26}

.favorite-count{font-size:var(--text-small-size,16px);color:var(--muted);margin:10px 0}.detail-copy .favorite-count{font-size:var(--text-small-size,16px)}

.sort-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:20px 0 8px}.sort-row label{font-size:var(--text-small-size,16px);color:var(--muted)}.sort-row select{width:auto;max-width:100%;min-width:200px}@media(max-width:480px){.sort-row{flex-wrap:wrap}.sort-row select{min-width:0;flex:1}}

.comment-text a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.comment-text a:hover{text-decoration-thickness:2px}

.usage-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:8px}@media(max-width:600px){.usage-row{grid-template-columns:1fr 1fr}}
.finder-entry{display:inline-block;margin:24px 0 0;text-decoration:none;max-width:100%;text-align:center}
.billing-consent{display:flex!important;align-items:center;gap:12px;line-height:1.5;cursor:pointer}.billing-consent input{width:22px!important;min-width:22px;height:22px;margin:0;accent-color:var(--accent);cursor:pointer}#billing-status{margin-bottom:12px}#billing-error{color:var(--accent)}#billing-admin .subtle{overflow-wrap:anywhere}
.subscription-promo{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:40px;align-items:center;margin:0 0 40px;padding:32px 36px;background:#eee6ec;border:1px solid #e1d5de;border-radius:14px}.subscription-promo .eyebrow{margin-bottom:12px}.subscription-promo h2{font:400 clamp(25px,3vw,34px)/1.18 Georgia,serif;letter-spacing:-.5px;margin-bottom:16px}.subscription-promo-copy>p:not(.eyebrow){max-width:620px;font-size:var(--text-small-size,16px);line-height:1.7;margin-bottom:12px}.subscription-promo-copy>.subscription-promo-note{font-size:var(--text-small-size,16px)!important;color:var(--muted);margin-bottom:0!important}.subscription-promo-action{text-align:center}.subscription-promo-price{display:flex;align-items:baseline;justify-content:center;gap:9px;margin-bottom:16px}.subscription-promo-price strong{font:400 42px Georgia,serif;color:var(--accent)}.subscription-promo-price span{font-size:var(--text-small-size,16px);color:var(--muted)}.subscription-promo-action .button{display:block;text-decoration:none}.subscription-promo-action>p:last-child{font-size:var(--text-small-size,16px);line-height:1.6;color:var(--muted);margin:12px 0 0}@media(max-width:650px){.subscription-promo{grid-template-columns:1fr;gap:24px;padding:24px;margin-bottom:28px}.subscription-promo-action{text-align:left}.subscription-promo-price{justify-content:flex-start}.subscription-promo-action .button{text-align:center}}

.subscription-teaser{margin-top:24px;padding:20px 22px;background:var(--soft);border:1px solid #e1d5de;border-radius:12px;max-width:460px}.subscription-teaser h2{font:400 25px/1.2 Georgia,serif;margin-bottom:10px}.subscription-teaser p{font-size:var(--text-small-size,16px);line-height:1.6;margin-bottom:10px}.subscription-teaser .button{background:var(--card)}
.subscription-dialog{width:min(850px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #e1d5de;background:#eee6ec;color:var(--ink);overflow:auto}.subscription-dialog::backdrop{background:#30232c80}.subscription-dialog .subscription-promo{margin:0;border:0;padding-top:58px;gap:28px}.subscription-close{position:absolute;right:12px;top:12px}.subscription-active{padding:56px 28px 28px}.subscription-active h2{font:400 30px Georgia,serif}.subscription-active .button{display:inline-block;text-decoration:none}
@media(max-width:540px){.hero:has(.subscription-teaser:not([hidden])){grid-template-columns:1fr}.subscription-teaser{max-width:none}.subscription-teaser h2{font-size:24px}}

#subscription-dialog,#yarn-access-dialog{width:min(1080px,calc(100% - 32px))}
:is(#subscription-dialog,#yarn-access-dialog) .subscription-promo{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);padding:0;gap:0;align-items:stretch}
.subscription-yarn-photo{width:100%;height:100%;min-height:520px;object-fit:cover;object-position:center}
.subscription-promo-body{padding:64px 40px 32px;align-self:center}
.subscription-promo-body .subscription-promo-action{margin-top:24px;text-align:left}
.subscription-promo-body .subscription-promo-price{justify-content:flex-start}
.subscription-promo-body .button{text-align:center}
@media(max-width:700px){:is(#subscription-dialog,#yarn-access-dialog) .subscription-promo{grid-template-columns:1fr}.subscription-yarn-photo{height:180px;min-height:0;object-position:center 45%}.subscription-promo-body{padding:24px}.subscription-promo-body .subscription-promo-action{margin-top:20px}}

.owner-details{margin-top:0;padding-top:0;font-style:normal;font-size:var(--text-small-size,16px);line-height:1.8;color:var(--muted)}.owner-details p{margin:0 0 4px}.owner-details a{font-size:16px;color:var(--accent);text-underline-offset:3px;overflow-wrap:anywhere}

.legal-page{max-width:860px;padding-top:40px;padding-bottom:60px;line-height:1.8}.legal-page h1{font-size:42px;letter-spacing:-1px}.legal-page h2{font-size:23px;margin-top:32px;line-height:1.3}.legal-page p{margin-bottom:16px}.legal-page dt{font-weight:600}.legal-page dd{margin:0 0 16px;overflow-wrap:anywhere}.legal-page a,.legal-links a{color:var(--accent);text-underline-offset:3px}.legal-links{margin-top:18px;font-size:var(--text-small-size,16px)}@media(max-width:540px){.legal-page h1{font-size:32px}.legal-page{padding-top:24px}}

.offer-summary{margin:24px 0;padding:20px 24px;border:1px solid var(--line);border-radius:10px}.offer-summary h2{margin-top:0}.offer-summary ul{margin-bottom:0;padding-left:20px}.offer-contents{display:flex;flex-wrap:wrap;gap:10px 22px;padding:16px 0;border-bottom:1px solid var(--line);font-size:var(--text-small-size,16px)}.legal-page h2[id]{scroll-margin-top:28px}@media print{.legal-page{max-width:none}.offer-contents,.legal-page~footer{display:none}}
/* Keep brand navigation usable on small screens. */
@media(max-width:680px){.topbar{flex-wrap:wrap}.brand-links{flex-wrap:wrap;gap:6px 16px;flex:1}.brand-links .brand{flex-basis:100%}.topbar-actions{align-self:flex-start;padding-top:7px}}
.model-yarn-links{padding:16px 0;border-bottom:1px solid var(--line);line-height:1.8}.model-yarn-links p{margin:0;font-size:var(--text-small-size,16px);color:var(--muted)}
.yarn-picker{width:min(640px,90vw);max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:18px;background:var(--bg);padding:24px;color:var(--ink)}.yarn-picker::backdrop{background:#30232b66}.yarn-picker label{display:grid;gap:8px;margin-bottom:16px}.yarn-picker input{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px}#pick-results{display:grid;gap:8px;margin:16px 0}#pick-results button{padding:12px;text-align:left;border:1px solid var(--line);background:var(--card);border-radius:8px;font:inherit}

#yarn-access-dialog .subscription-promo-action{display:flex;flex-wrap:wrap;gap:12px}#yarn-access-dialog .subscription-promo-action .button{flex:1}

#subscription-dialog .subscription-yarn-photo{height:auto;min-height:0;object-fit:contain;align-self:center;background:#f8f0e2}@media(max-width:700px){#subscription-dialog .subscription-yarn-photo{max-height:330px}}

@media(max-width:760px){
 #subscription-dialog{
  position:fixed;
  inset:auto 0 0;
  width:100%;
  max-width:none;
  max-height:90dvh;
  margin:0;
  border:1px solid var(--line);
  border-radius:22px 22px 0 0;
  background:var(--card);
  overflow:hidden;
 }
 #subscription-dialog[open]{display:flex;flex-direction:column}
 #subscription-dialog::backdrop{background:#30272d66}
 #subscription-dialog .subscription-promo{
  display:block;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
 }
 #subscription-dialog .subscription-yarn-photo{
  display:block;
  width:100%;
  height:clamp(160px,48vw,260px);
  max-height:none;
  object-fit:cover;
  object-position:center 24%;
 }
 #subscription-dialog .subscription-promo-body{
  padding:20px 20px calc(20px + env(safe-area-inset-bottom));
 }
 #subscription-dialog .subscription-close{
  z-index:1;
  width:40px;
  height:40px;
  background:var(--card);
 }
}
@media(max-width:760px) and (prefers-reduced-motion:no-preference){
 #subscription-dialog[open]{animation:subscription-sheet-in .2s ease-out}
}
@keyframes subscription-sheet-in{from{transform:translateY(100%)}}

#subscription.membership-card{padding:0;overflow:hidden;border:1px solid #e1d5de;border-radius:22px;background:linear-gradient(145deg,#fffdfa,#f3ecf1);box-shadow:0 10px 32px #704b6010;margin:28px 0}
.membership-art{width:100%;height:160px;display:block;object-fit:cover;object-position:center 65%}.membership-body{padding:28px}.membership-heading{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap}.membership-heading>div{flex:1;min-width:200px}.membership-heading .eyebrow{font-size:var(--text-small-size,16px);line-height:1.7;margin:0 0 8px}.cabinet .membership-heading h2{font-size:30px;line-height:1.15;margin:0}.membership-badge{display:inline-block;padding:6px 11px;border-radius:20px;background:#eae1e8;color:var(--accent);font-size:var(--text-small-size,16px);font-weight:600;white-space:nowrap}.membership-active .membership-badge{background:#e4ebdf;color:#526b4e}.membership-intro{font-size:var(--text-small-size,16px);line-height:1.75;color:var(--muted);margin:18px 0 24px}.membership-features{display:grid;gap:18px}.membership-features article{display:flex;gap:14px;align-items:flex-start}.membership-features article>span{font-size:var(--text-small-size,16px);padding:8px;border-radius:10px;background:var(--soft);color:var(--accent);font-variant-numeric:tabular-nums}.membership-features h3{font-size:16px;margin:0 0 7px;line-height:1.4}.membership-features p{font-size:var(--text-small-size,16px);line-height:1.7;color:var(--muted);margin:0}.membership-price{display:flex;align-items:baseline;gap:10px;margin:24px 0 14px}.membership-price strong{font:36px Georgia,serif;color:var(--accent)}.membership-price span{font-size:var(--text-small-size,16px);color:var(--muted)}.membership-body #billing-status{padding:14px 16px;background:#ffffff99;border:1px solid var(--line);border-radius:12px;font-size:var(--text-small-size,16px);line-height:1.7;margin-top:20px}.membership-body #billing-mode:empty,.membership-body #billing-error:empty{display:none}.membership-body #billing-checkout{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.membership-body>.subtle{font-size:var(--text-small-size,16px)}.membership-body .cabinet-actions{margin-bottom:0}.membership-body .billing-consent{font-size:16px;font-weight:600;color:var(--ink);min-height:40px;margin:0 0 28px}@media(max-width:540px){.membership-body{padding:22px}.cabinet .membership-heading h2{font-size:27px}.membership-body .cabinet-actions>.button{width:100%}}

.nav-yarn-link{display:inline-flex;align-items:center;gap:6px}.nav-yarn-lock{display:none;width:15px;height:15px;flex-shrink:0}.nav-yarn-link.is-locked{color:var(--muted)}.nav-yarn-link.is-locked .nav-yarn-lock{display:block}.nav-yarn-link.is-locked:hover{color:var(--accent)}
@media(max-width:900px){.brand-links{gap:14px}.topbar{padding-inline:20px}.account-menu-toggle{max-width:140px}}
.site-navigation{display:flex;align-items:center;gap:24px}@media(max-width:900px){.site-navigation{gap:14px}}
@media(max-width:680px){.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.brand-links{display:contents}.brand-links .brand{grid-column:1;grid-row:1}.topbar-actions{grid-column:2;grid-row:1;align-self:center;padding:0}.site-navigation{grid-column:1/-1;grid-row:2;justify-content:space-between;gap:10px}.site-navigation .about-link{font-size:var(--text-small-size,16px)}.nav-yarn-link{gap:4px}.nav-yarn-lock{width:13px;height:13px}}

@media(max-width:540px){.membership-art{height:120px}}

.membership-active .membership-heading .eyebrow,
.membership-active .membership-intro,
.membership-active .membership-features,
.membership-active .membership-body>.subtle,
.membership-active #billing-finder,
.membership-active #billing-yarns,
.membership-active #billing-checkout{display:none!important}
.membership-active .membership-body #billing-status{margin:18px 0 0;padding:0;background:none;border:0;font-size:var(--text-small-size,16px);color:var(--muted)}

.nav-finder-link{display:inline-flex;align-items:center;gap:6px}.nav-finder-lock{display:none;width:15px;height:15px;flex-shrink:0}.nav-finder-link.is-locked{color:var(--muted)}.nav-finder-link.is-locked .nav-finder-lock{display:block}.nav-finder-link.is-locked:hover{color:var(--accent)}
@media(max-width:680px){.site-navigation{flex-wrap:wrap;justify-content:flex-start;gap:10px 18px}.nav-finder-link{gap:4px}.nav-finder-lock{width:13px;height:13px}}


.subscription-promo-copy .catalog-access-note{margin:0 0 22px;color:var(--accent);font-size:17px;line-height:1.5;letter-spacing:0}.catalog-access-note strong{font-weight:650}

/* Quiet, compact account subscription card. */
#subscription.membership-card{border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:none;margin:24px 0}
.membership-art{height:96px;object-position:center 65%}
.membership-body{padding:22px 24px}
.membership-heading{align-items:center;gap:10px}
.membership-heading .eyebrow,.membership-intro,.membership-features article>span{display:none}
.cabinet .membership-heading h2{font-family:inherit;font-size:21px;font-weight:600;line-height:1.35;letter-spacing:-.3px}
.membership-badge,.membership-active .membership-badge{padding:0;background:none;color:var(--muted);font-size:var(--text-small-size,16px);font-weight:400}
.membership-active .membership-badge{color:#526b4e}
.membership-features{grid-template-columns:1fr 1fr;gap:20px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.membership-features h3{font-size:var(--text-small-size,16px);font-weight:600;margin-bottom:6px}
.membership-features p{font-size:var(--text-small-size,16px);line-height:1.55}
.membership-price{margin:20px 0 10px;gap:7px}
.membership-price strong{font-family:inherit;font-size:25px;font-weight:600;color:var(--ink)}
.membership-body #billing-status,.membership-active .membership-body #billing-status{padding:0;border:0;border-radius:0;background:none;margin:12px 0 0;font-size:var(--text-small-size,16px);line-height:1.6;color:var(--muted)}
.membership-body #billing-renew{margin-top:18px}
.membership-body #billing-checkout{margin-top:18px;padding-top:16px}
@media(max-width:540px){.membership-body{padding:20px}.membership-art{height:80px}.cabinet .membership-heading h2{font-size:20px}.membership-features{grid-template-columns:1fr;gap:16px}.membership-heading>div{min-width:100%}}

.membership-body #billing-start{margin-top:18px}

.membership-body #billing-status:empty{display:none}

.topbar-actions .account-menu-panel a,.account-menu-panel button{display:flex;align-items:center;gap:10px}.account-menu-panel .account-menu-icon{width:18px;height:18px;flex:0 0 18px;color:var(--muted)}

:is(#account-message,#registration-verification-notice).verification-notice{padding:16px 20px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:10px;background:var(--soft);color:var(--ink);font-size:var(--text-small-size,16px);line-height:1.65}

.merge-favorites-prompt{display:flex;align-items:center;gap:8px;margin:16px 0}.merge-favorites-prompt[hidden]{display:none}.merge-favorites-prompt>.button{min-width:0;white-space:normal}.merge-favorites-prompt>.icon-button{flex:none}

.legal-history-list{list-style:none;padding:0}.legal-history-list li{padding:14px 0;border-bottom:1px solid var(--line)}.legal-history-list a{display:inline-block;line-height:1.6}

/* Full-width sticky background; keep the navigation aligned with its original content width. */
.topbar{max-width:none}
@media(min-width:1120px){.topbar{padding-inline:calc((100% - 1064px)/2)}}






.catalog-list-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.page-size-control{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;font-size:var(--text-small-size,16px);color:var(--muted)}
.page-size-control select{width:auto;min-width:72px;padding:8px 28px 8px 10px}
.sort-row>.page-size-control{margin-right:auto}
.sort-row{flex-wrap:wrap}
.sort-row .page-size-control select{min-width:72px;flex:none}

.back-to-top{position:fixed;right:auto;left:24px;bottom:24px;bottom:max(24px,env(safe-area-inset-bottom));z-index:40;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--accent);border-radius:12px;background:var(--accent);color:#fff;font:inherit;font-size:var(--text-small-size,16px);cursor:pointer;box-shadow:0 4px 16px rgba(60,32,49,.2)}
.back-to-top[hidden]{display:none}
.back-to-top span{font-size:22px;line-height:1}
.back-to-top:hover{filter:brightness(1.1)}
.back-to-top:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
@media(max-width:600px){.back-to-top{right:auto;left:12px;bottom:max(16px,env(safe-area-inset-bottom));padding:8px 12px}}

.account-menu-toggle{padding:6px 12px 6px 6px;gap:10px;max-width:260px;border:1px solid var(--line);border-radius:30px;background:var(--card);box-shadow:0 2px 8px rgba(60,32,49,.06);cursor:pointer}
.account-menu-toggle:hover,.account-menu-toggle[aria-expanded="true"]{background:var(--soft);border-color:var(--accent)}
.account-menu-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#account-menu-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;min-width:0}
.header-avatar{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;overflow:hidden;background:var(--soft);color:var(--accent);font-size:19px;font-weight:600}
.header-avatar img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:680px){.account-menu-toggle{max-width:190px;padding:5px 9px 5px 5px;gap:7px;font-size:var(--text-small-size,16px)}.header-avatar{width:34px;height:34px;flex-basis:34px;font-size:17px}}
@media(max-width:380px){.account-menu-toggle{max-width:150px}}

/* Align the logo, navigation and account in one row when space permits. */
.topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:12px 40px}
.topbar .brand-links{display:contents}
.topbar .brand{white-space:nowrap;flex:none}
.topbar .topbar-actions{align-self:center;margin-left:0;padding:0;flex:none}
.topbar .site-navigation{display:flex;align-items:center;justify-content:center;flex:1 0 auto;flex-wrap:wrap;gap:8px 18px;min-width:0}
.topbar .site-navigation .about-link{flex:none;padding:6px 0;font-size:var(--text-small-size,16px)}
.topbar .account-menu-toggle{max-width:210px}
@media(max-width:1200px){.topbar .site-navigation{order:3;flex-basis:100%;justify-content:flex-start}}
@media(max-width:540px){.topbar{padding:10px 20px;gap:10px}.topbar .site-navigation{gap:4px 14px}.topbar .site-navigation .about-link{font-size:var(--text-small-size,16px)}.topbar .account-menu-toggle{max-width:160px}.topbar .brand{font-size:16px;gap:6px}}
@media(max-width:380px){.topbar .account-menu-toggle{max-width:132px}}

.brand-caption{display:flex;flex-direction:column;gap:2px;line-height:1.15}
.brand-caption small{font:400 var(--text-small-size,16px)/1.2 Inter,Arial,sans-serif;letter-spacing:0;color:var(--muted)}

.site-navigation a[href="https://t.me/fainascreating"]{display:inline-flex;align-items:center;gap:6px}.telegram-icon{width:18px;height:18px;flex-shrink:0}

.personal-collections{padding:24px;margin:0 0 28px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.personal-collections h2,.collections-dialog h2{font-family:Georgia,serif;font-weight:400;font-size:26px;margin:0 0 16px}
.collections-controls{display:flex;flex-wrap:wrap;gap:16px;align-items:end}.collections-controls label,.collections-dialog form label{display:grid;gap:8px}
.collections-controls select,.collections-dialog input[name=name]{font:inherit;color:var(--ink);background:var(--bg);padding:12px;border:1px solid var(--line);border-radius:7px;max-width:100%;min-width:0}
.collections-dialog{padding:26px;width:min(480px,calc(100vw - 32px))}.collections-dialog-heading{display:flex;justify-content:space-between;gap:16px;align-items:start}.collection-options{display:grid;gap:14px;margin:24px 0}.collection-options label{display:flex;align-items:center;gap:10px}.collection-options input{width:18px;height:18px;accent-color:var(--accent)}.collections-error{color:#942f46}.collect-card{position:absolute;right:10px;top:56px;width:40px;height:40px;margin:0;background:#fffdf9ed;color:var(--accent);border-color:#fffdf9b0}.detail-save-actions{display:flex;align-items:center;gap:8px}.personal-collections p{line-height:1.6}
@media(max-width:540px){.personal-collections{padding:18px}.collections-controls{align-items:stretch;flex-direction:column}.collections-dialog{padding:20px}}

/* Personal collections share the catalogue cards, with a compact folder shelf. */
.collections-page .favorites-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;padding:40px 0 24px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.collections-page .favorites-heading h1{font-weight:400;margin:0 0 12px}
.collections-page .favorites-heading>.button{flex-shrink:0}
.collections-intro{color:var(--muted);font-size:var(--text-small-size,16px);line-height:1.65;margin:0;max-width:520px}
.collections-page .personal-collections{padding:0;border:0;background:transparent;border-radius:0;margin-bottom:24px}
.collections-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
.collections-toolbar h2{line-height:1.4;margin:0;font-family:inherit;font-size:19px;font-weight:600}
.collections-toolbar p{margin:5px 0 0;color:var(--muted);font-size:var(--text-small-size,16px)}
.collections-toolbar .button{display:inline-flex;gap:8px;align-items:center;flex-shrink:0}
.collection-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.collection-tile{display:flex;align-items:center;gap:14px;padding:18px;text-align:left;min-width:0;min-height:96px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink);font:inherit;cursor:pointer;transition:border-color .15s,background .15s}
.collection-tile:hover{border-color:var(--accent)}
.collection-tile.is-selected{border-color:var(--accent);background:var(--accent-soft,#eee6ea);box-shadow:inset 0 0 0 1px var(--accent)}
.collection-tile-icon,.collections-welcome-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;background:#efe8ec;color:var(--accent);border-radius:14px}
.collection-tile-icon svg{width:26px;height:26px}
.collection-tile.is-selected .collection-tile-icon{background:var(--card)}
.collection-tile-copy{display:grid;gap:5px;min-width:0}
.collection-tile-copy strong{font-size:16px;font-weight:600;overflow-wrap:anywhere;line-height:1.35}
.collection-tile-copy>span{font-size:var(--text-small-size,16px);color:var(--muted)}
.collection-selection{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:59px;box-sizing:border-box;margin-top:30px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.collection-selection>div{display:flex;align-items:baseline;gap:12px;min-width:0;flex-wrap:wrap}
.collection-selection h3{font-size:23px;margin:0;overflow-wrap:anywhere}
.collection-selection>div>span{color:var(--muted);font-size:var(--text-small-size,16px);white-space:nowrap}
.collection-menu{position:relative;flex:none}
.collection-menu-space{display:block;flex:none;width:40px;height:40px}
.collection-menu summary{display:grid;place-items:center;list-style:none;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--accent);cursor:pointer;font-size:25px;line-height:1}
.collection-menu summary::-webkit-details-marker{display:none}
.collection-menu[open]>div{position:absolute;z-index:20;right:0;top:48px;min-width:220px;max-width:calc(100vw - 48px);padding:8px;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 32px #33202b1a}
.collection-menu button{display:block;width:100%;text-align:left;padding:12px;border:0;background:transparent;color:var(--ink);font:inherit;cursor:pointer;border-radius:8px}
.collection-menu button:hover{background:#f0eaed}
.collection-menu .collection-delete{color:#a2374e;border-top:1px solid var(--line);margin-top:6px;border-radius:0 0 8px 8px}
.collections-help{color:var(--muted);font-size:var(--text-small-size,16px);max-width:550px}
.collections-error:empty{display:none}
.collections-welcome{display:flex;align-items:flex-start;gap:24px;max-width:760px;border:1px solid var(--line);border-radius:24px;background:var(--card);padding:32px}
.collections-welcome-icon{width:64px;height:64px;border-radius:20px}
.collections-welcome-icon svg{width:34px;height:34px}
.collections-welcome h2{margin:0 0 12px;font-size:28px}
.collections-welcome p{margin:0 0 24px;color:var(--muted);max-width:480px}
.collections-free-link{display:block;width:fit-content;margin-top:18px;color:var(--accent);font-size:var(--text-small-size,16px)}
.collections-unavailable #catalog-view>.collection{display:none}
.collections-page #saved-note{display:none!important}
.collections-page .sort-row{display:none}
@media(max-width:600px){
 .collections-page .favorites-heading{padding-top:26px;gap:18px}
 .collections-intro{margin:0}
 .collections-toolbar{align-items:flex-start;flex-direction:column;gap:14px}
 .collection-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .collection-tile{flex-direction:column;align-items:flex-start;padding:14px;gap:12px;min-height:140px;border-radius:16px}
 .collection-tile-copy strong{font-size:var(--text-small-size,16px)}
 .collection-selection h3{font-size:20px}
 .collections-welcome{padding:24px;gap:18px;flex-direction:column}
 .collections-welcome h2{font-size:25px}
 .collections-welcome .button{max-width:100%;font-size:var(--text-small-size,16px)}
}

@media(max-width:540px){.collect-card{right:8px;top:54px}}

.projects-page{max-width:1160px;margin:auto;padding:36px 24px var(--detail-bottom-space)}.projects-page h1{font-size:clamp(36px,5vw,58px);line-height:1.12;margin:20px 0}.projects-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:20px 0}.projects-heading .eyebrow{margin:0}.projects-heading h1{margin:12px 0}.project-public-note{background:var(--soft);border-radius:9px;padding:16px 20px;font-size:var(--text-small-size,16px);line-height:1.6;margin:22px 0}.project-filters{display:flex;flex-wrap:wrap;gap:10px;margin:28px 0}.project-filters span{margin-left:7px;opacity:.75}.projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-content:start;align-items:start}.project-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--card);min-width:0}.project-card-main{display:block;text-decoration:none}:is(.project-card-main,.project-card-photo)>img,.project-placeholder{width:100%;height:260px;object-fit:cover;background:var(--soft)}.project-placeholder{display:grid;place-items:center;font-size:70px;color:var(--accent)}.project-card-copy{padding:20px}.project-card h2{font-family:Georgia,serif;font-weight:400;font-size:25px;line-height:1.25;margin:14px 0}.project-card-copy p{font-size:var(--text-small-size,16px);margin:0}.project-status{display:inline-block;border-radius:20px;padding:5px 12px;font-size:var(--text-small-size,16px);line-height:1.5;background:var(--soft);color:var(--accent)}.status-knitting{background:#eee3cf;color:#715323}.status-finished{background:#e0e9df;color:#3c6348}.project-source{display:grid;gap:6px;position:relative;padding:18px 40px 18px 20px;margin:18px 0;border:1px solid var(--line);border-radius:9px;text-decoration:none}.project-source>span:first-child{font-size:var(--text-small-size,16px);text-transform:uppercase;letter-spacing:.8px;color:var(--muted)}.project-source>span:last-child{position:absolute;right:18px;top:40%}.project-source strong{font-weight:500}.project-source small{color:var(--muted);line-height:1.5}.project-card .project-source{border-radius:0;border-width:1px 0 0;margin:0;font-size:var(--text-small-size,16px)}.project-card>.text-button{margin:12px 20px}.project-form{display:grid;gap:24px;max-width:900px}.project-fields{display:grid;grid-template-columns:1fr 1fr;gap:22px}.project-full{grid-column:1/-1}.project-form label{display:grid;gap:8px;font-size:var(--text-small-size,16px)}.project-form input:not([type=file]),.project-form select,.project-form textarea{font:inherit;color:var(--ink);width:100%;padding:12px 14px;background:var(--card);border:1px solid var(--line);border-radius:8px;min-width:0}.project-form textarea{resize:vertical;line-height:1.7}#pattern-section > h2,#model-comments > .site-discussion-open,.project-form h2,.project-journal h2,.projects-page .project-private-notes-heading,.projects-page .project-posts-heading > h2,.projects-page .project-public-layout ~ .project-comments > .site-discussion-open{font:400 27px Georgia,serif}.project-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.project-photos figure{margin:0;min-width:0}.project-photos img{width:100%;height:180px;object-fit:cover;border-radius:8px}.project-file-label{max-width:440px}.project-file-label input{font:inherit;max-width:100%}.project-public-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:36px;margin-top:30px}.project-gallery{display:grid;gap:20px}.project-gallery img{display:block;width:100%;height:auto;border-radius:10px}.project-notes{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.project-journal{min-width:0}.project-empty{grid-column:1/-1;padding:40px 0;color:var(--muted)}.project-empty h2{font:400 26px Georgia,serif}
@media(max-width:760px){.projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.projects-heading{align-items:start;flex-direction:column}.project-public-layout{grid-template-columns:1fr}.projects-page{padding:30px 20px var(--detail-bottom-space)}}
@media(max-width:480px){.projects-page{padding:24px 16px var(--detail-bottom-space)}.projects-grid,.project-fields{grid-template-columns:1fr}.project-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.project-full{grid-column:auto}:is(.project-card-main,.project-card-photo)>img{height:300px}.project-filters .button{font-size:var(--text-small-size,16px);padding:10px 12px}}

.projects-page h1,.project-card h2,.project-source strong{overflow-wrap:anywhere}

.projects-page .projects-heading h1.author-projects-title{font-family:inherit;font-size:16px;line-height:1.4;letter-spacing:0;margin:8px 0}

.projects-page .projects-heading h1.author-projects-title{font-size:20px}
.project-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:350px;padding:64px 24px;margin:20px 0 0}
.project-empty-icon{display:grid;place-items:center;width:80px;height:80px;border-radius:50%;background:var(--soft);color:var(--accent);margin-bottom:24px}
.project-empty-icon svg{width:43px;height:43px}
.project-empty h2{font-family:Georgia,serif;font-size:30px;font-weight:400;line-height:1.25;color:var(--ink);margin:0 0 12px}
.project-empty p{font-size:var(--text-small-size,16px);line-height:1.6;color:var(--muted);margin:0;max-width:360px}
@media(max-width:480px){.project-empty{min-height:300px;padding:48px 16px}.project-empty h2{font-size:27px}}

.author-navigation{display:flex;gap:28px;border-bottom:1px solid var(--line);margin:0 0 28px}.author-navigation a{padding:12px 0;text-decoration:none;font-size:var(--text-small-size,16px);color:var(--muted);border-bottom:2px solid transparent}.author-navigation a[aria-current=page]{color:var(--accent);border-bottom-color:var(--accent)}

.project-like{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}.project-like.is-liked svg{fill:currentColor}.project-creator{display:block;padding:0 20px 16px;font-size:var(--text-small-size,16px);color:var(--accent)}.author-navigation{flex-wrap:wrap;gap:10px 28px}

.project-public-note{position:relative;padding-right:56px}.project-public-note p{margin:0}.project-notice-close{position:absolute;top:6px;right:6px;width:40px;height:40px;display:grid;place-items:center;border:0;background:transparent;color:var(--accent);border-radius:7px;font-size:25px;cursor:pointer}.project-notice-close:hover{background:var(--card)}

.projects-page .projects-heading h1.my-projects-title{font-size:30px;line-height:1.25;letter-spacing:-.5px}
.project-public-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.project-gallery img.project-category-placeholder{max-width:380px;max-height:460px;object-fit:contain}
@media(max-width:760px){.project-public-layout{grid-template-columns:1fr}.project-gallery img.project-category-placeholder{max-width:300px;max-height:360px}}

.project-size-field{display:grid;align-content:start;gap:8px}.project-size-control{position:relative}.project-form .project-size-control input{padding-right:44px}.project-size-control>button{position:absolute;top:3px;right:3px;width:38px;height:38px;border:0;background:transparent;color:var(--accent);font-size:23px;border-radius:6px;cursor:pointer}.project-size-options{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:5;max-height:230px;overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 24px #4a344018;padding:5px}.project-size-options[hidden]{display:none}.project-size-options button{display:block;width:100%;text-align:left;font:inherit;padding:11px 14px;border:0;border-radius:5px;background:transparent;color:var(--ink);cursor:pointer}.project-size-options button:hover,.project-size-options button:focus-visible,.project-size-options button[aria-selected=true]{background:var(--soft)}.project-size-options>span{display:block;padding:12px;font-size:var(--text-small-size,16px);color:var(--muted)}


.project-list-controls{display:flex;flex-wrap:wrap;gap:16px 24px;margin:24px 0}.project-list-controls label{display:grid;gap:7px;font-size:var(--text-small-size,16px);color:var(--muted)}.project-list-controls select{font:inherit;font-size:var(--text-small-size,16px);padding:10px 34px 10px 12px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:var(--card);min-height:42px}@media(max-width:480px){.project-list-controls label{flex:1;min-width:140px}.project-list-controls select{width:100%}}

.status-frozen{background:#e1eaf0;color:#4a6577}

:is(.project-card-main,.project-card-photo)>img.project-category-placeholder{object-fit:contain;background:#fff;padding:18px}.project-gallery img.project-category-placeholder{background:#fff;padding:16px;border:1px solid var(--line)}

.model-user-projects{padding:28px 0 36px;border-top:1px solid var(--line)}.model-user-projects>h2{font:400 28px Georgia,serif;margin:0 0 14px}.model-user-projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:22px 0}.model-user-project{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--card)}.model-user-project-main{display:flex;gap:14px;padding:16px;text-decoration:none;align-items:center}.model-user-project-main img{width:85px;height:100px;object-fit:cover;border-radius:6px;flex-shrink:0}.model-user-project-main img.is-placeholder{object-fit:contain;background:#fff}.model-user-project-main h3{font-size:16px;font-weight:500;line-height:1.4;margin:10px 0 0}.model-user-project-author{display:block;padding:0 16px 16px;font-size:var(--text-small-size,16px);color:var(--accent)}@media(max-width:760px){.model-user-projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.model-user-projects-grid{grid-template-columns:1fr}}

.author-profile-heading{display:flex;align-items:center;gap:16px;min-width:0}.author-profile-avatar{width:64px;height:64px;flex-shrink:0;object-fit:cover;border-radius:50%;background:var(--soft);color:var(--accent)}.author-profile-initial{display:grid;place-items:center;font-size:25px}.author-joined{font-size:var(--text-small-size,16px);line-height:1.5;color:var(--muted);margin:4px 0 0}.author-profile-heading h1.author-projects-title{margin:0}
.author-social{margin:18px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:14px}.author-social nav{display:flex;flex-wrap:wrap;gap:18px;font-size:var(--text-small-size,16px)}.author-social nav span{color:var(--muted);margin-left:4px}.author-social small{flex-basis:100%;color:var(--muted);font-size:var(--text-small-size,16px)}.author-social .button{font-size:var(--text-small-size,16px);padding:9px 14px}.people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:28px 0}.person-card{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:10px;text-decoration:none}.person-card img,.person-card>span{width:48px;height:48px;flex-shrink:0;object-fit:cover;border-radius:50%;background:var(--soft);color:var(--accent)}.person-card>span{display:grid;place-items:center;font-size:21px}.person-card strong{font-size:var(--text-small-size,16px);font-weight:500;overflow-wrap:anywhere}.project-comments{border-top:1px solid var(--line);margin:36px 0 0;padding:28px 0}.project-comments>h2{font:400 28px Georgia,serif}.project-comment-form{display:grid;gap:14px;max-width:720px;margin:24px 0}.project-comment-form label{display:grid;gap:8px;font-size:var(--text-small-size,16px)}.project-comment-form textarea{padding:14px;font:inherit;line-height:1.6;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);resize:vertical}.project-comment-form button{justify-self:start}.project-comment{padding:22px 0;border-bottom:1px solid var(--line)}.project-comment-author{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:var(--text-small-size,16px)}.project-comment-author img{border-radius:50%;object-fit:cover}.project-comment time{font-size:var(--text-small-size,16px);color:var(--muted)}.project-comment>p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:14px 0}.model-user-projects-entry{margin:24px 0;font-size:var(--text-small-size,16px)}.projects-page h1.model-projects-title{font-size:30px;letter-spacing:-.5px}@media(max-width:760px){.people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.people-grid{grid-template-columns:1fr}}

.project-list-controls label.project-photo-filter{display:flex;align-items:center;align-self:end;gap:9px;min-height:42px;color:var(--ink);font-size:var(--text-small-size,16px)}.project-photo-filter input{width:17px;height:17px;accent-color:var(--accent)}
.model-yarn-links a,.model-user-projects-entry a{color:var(--accent);text-decoration-line:underline;text-decoration-thickness:1px;text-underline-offset:4px;cursor:pointer}
.model-yarn-links a:hover,.model-user-projects-entry a:hover{text-decoration-thickness:2px}
.model-yarn-links a:focus-visible,.model-user-projects-entry a:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:2px}

.project-card{position:relative}.project-card-menu{position:absolute;top:12px;right:12px;z-index:2}.project-card-menu>summary{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--ink);font-size:26px;line-height:1;cursor:pointer;list-style:none}.project-card-menu>summary::-webkit-details-marker{display:none}.project-card-menu>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.project-card-menu-panel{position:absolute;right:0;top:46px;min-width:235px;padding:8px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #0002}.project-card-menu-panel>a,.project-card-menu-panel>span,.project-card-menu-panel>button{display:block;padding:10px 12px;font:inherit;font-size:var(--text-small-size,16px);text-align:left;white-space:nowrap}.project-card-menu-panel>a{color:var(--ink);text-decoration:none;border-radius:6px}.project-card-menu-panel>a:hover{background:var(--soft)}.project-card-menu-panel .project-card-menu-delete{width:100%;margin-top:18px;border:0;border-top:1px solid var(--line);background:transparent;color:#9b3c4c;cursor:pointer;padding-top:14px}

.username-feedback:empty{display:none}.username-feedback p{margin:6px 0 12px;font-size:var(--text-small-size,16px)}.username-unavailable>p{color:var(--accent)}.username-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.username-suggestions .button{padding:8px 12px;font-size:var(--text-small-size,16px);overflow-wrap:anywhere;min-width:0}

.membership-body .membership-magazine-note{margin:18px 0;padding:12px 0 12px 14px;border-left:2px solid var(--line);color:var(--muted);font-size:var(--text-small-size,16px);font-weight:400;line-height:1.6}

.membership-body .membership-features{display:grid;grid-template-columns:minmax(0,1fr);gap:0;list-style:none;counter-reset:membership-feature;padding:0;margin:0;border-top:0}.membership-features>li{counter-increment:membership-feature;display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;align-items:start;padding:18px 0}.membership-features>li+li{border-top:1px solid var(--line)}.membership-features>li::before{content:counter(membership-feature);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--soft);color:var(--accent);font-size:var(--text-small-size,16px);font-weight:600}.membership-features>li h3{margin-top:3px}.membership-features>li>div{min-width:0}

details.membership-card{display:block;border-radius:14px;box-shadow:none;margin:20px 0;background:var(--card)}.membership-summary{display:flex;align-items:center;gap:14px;padding:18px 20px;cursor:pointer;list-style:none}.membership-summary::-webkit-details-marker{display:none}.membership-summary h2{flex:1;margin:0;font-family:inherit;font-size:19px;font-weight:500;line-height:1.4;letter-spacing:0}.membership-summary .membership-badge:empty{display:none}.membership-chevron{font-size:22px;color:var(--accent);transition:transform .15s}details.membership-card[open]>.membership-summary{border-bottom:1px solid var(--line)}details.membership-card[open] .membership-chevron{transform:rotate(180deg)}details.membership-card>.membership-art{display:none}details.membership-card>.membership-body{padding:18px 20px}.membership-summary:focus-visible{outline:2px solid var(--accent);outline-offset:-3px;border-radius:12px}@media(max-width:540px){.membership-summary{gap:10px;padding:16px}.membership-summary h2{font-size:17px}.membership-summary .membership-badge{font-size:var(--text-small-size,16px)}details.membership-card>.membership-body{padding:16px}}


.membership-features>li:first-child{padding-top:0}

/* Preserve the original subscription card for active members. */
.membership-active-heading{display:none}
details.membership-card.membership-active>.membership-summary{display:none}
details.membership-card.membership-active[open]>.membership-art:not([hidden]){display:block;height:96px}
details.membership-card.membership-active>.membership-body{padding:22px 24px}
.membership-active .membership-active-heading{display:flex}
@media(max-width:540px){details.membership-card.membership-active[open]>.membership-art:not([hidden]){height:80px}details.membership-card.membership-active>.membership-body{padding:20px}}

.membership-active .membership-magazine-note{display:none}

.membership-capabilities{margin:0;padding:0;white-space:nowrap;text-decoration:underline;text-underline-offset:3px;font-size:var(--text-small-size,16px)}
.membership-active-heading>div{min-width:0}
.membership-active-heading .membership-capabilities{margin-left:auto}
.membership-features-dialog{position:relative;width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;padding:32px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink)}
.membership-features-dialog::backdrop{background:#30232c80}
.membership-features-dialog h2{margin:0 32px 16px 0;font:400 28px Georgia,serif}
.membership-features-copy h3{font-size:16px;margin:24px 0 8px}
.membership-features-dialog p{font-size:var(--text-small-size,16px);line-height:1.7}
.membership-features-dialog>.button{margin-top:16px}
@media(max-width:540px){.membership-features-dialog{padding:24px}}

@media(max-width:540px){.membership-active .membership-active-heading>div{min-width:0}}

.membership-features-dialog .membership-features-copy{display:grid;grid-template-columns:minmax(0,1fr);gap:0;list-style:none;counter-reset:membership-feature;padding:0;margin:24px 0 0;border:0}
.membership-features-dialog .membership-features-copy h3{margin:3px 0 8px}
.membership-features-dialog .membership-features-copy p{margin:0}

.billing-promo{margin-bottom:20px}.billing-promo-controls{display:flex;align-items:center;gap:10px;margin-top:8px}.billing-promo-controls input{min-width:0;flex:1}.billing-promo-controls .button{flex:none;padding:11px 16px}.billing-promo #billing-promo-status{font-size:var(--text-small-size,16px);line-height:1.6;margin:10px 0 0}.billing-promo #billing-promo-status:empty{display:none}@media(max-width:420px){.billing-promo-controls{align-items:stretch;flex-direction:column}}

.consent-option{display:flex;align-items:flex-start;gap:10px;margin:18px 0;font-size:var(--text-small-size,16px);line-height:1.5}.consent-option input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin-top:2px}

.billing-today{font-size:24px;font-weight:600;margin:12px 0;color:var(--ink)}
#billing-checkout{scroll-margin-top:160px}
.subscription-teaser > .button{background:var(--accent);color:#fff}.subscription-teaser > .text-button{display:block;margin-top:12px}

.project-card-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.project-card-likes{display:inline-flex;align-items:center;gap:6px;color:var(--accent);font-size:var(--text-small-size,16px);line-height:1;white-space:nowrap}.project-card-likes svg{flex-shrink:0}

.projects-page h1.project-detail-title{font-size:clamp(26px,3vw,36px);line-height:1.2;letter-spacing:-.5px}

.project-comment-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;margin-top:16px}.project-comment-author .comment-avatar{width:40px;height:40px;text-decoration:none}.project-comment-author .comment-avatar img{width:100%;height:100%;object-fit:cover}

.yarn-access-compact{position:relative;width:calc(100% - 36px);max-width:500px;padding:42px 28px 28px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--ink)}.yarn-access-compact::backdrop{background:#38323866}.yarn-access-compact h2{font:400 25px/1.35 Georgia,serif;margin:0 0 24px;padding-right:18px}.yarn-access-compact .detail-actions{display:flex;flex-wrap:wrap;gap:12px}

.projects-guest-welcome{max-width:740px;padding:30px 32px;border:1px solid var(--line);border-radius:16px;background:var(--card);margin:28px 0 0}.projects-guest-welcome h2{font:400 27px/1.35 Georgia,serif;margin:0 0 14px;letter-spacing:-.3px}.projects-guest-intro{max-width:580px;font-size:16px;line-height:1.7;color:var(--muted);margin-bottom:22px}.projects-guest-welcome ul{padding-left:20px;margin:0 0 28px;font-size:var(--text-small-size,16px);line-height:1.7}.projects-guest-welcome li{padding-left:5px;margin:8px 0}.projects-guest-welcome li::marker{color:var(--accent)}.projects-guest-welcome .detail-actions{display:flex;flex-wrap:wrap;gap:12px;margin:0}.projects-guest-note{font-size:var(--text-small-size,16px);color:var(--muted);margin:18px 0 0}@media(max-width:540px){.projects-guest-welcome{padding:24px 20px}.projects-guest-welcome h2{font-size:24px}.projects-guest-welcome .button{width:100%;text-align:center}}

.start-project-dialog{position:relative;width:calc(100% - 36px);max-width:680px;max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:38px 32px 28px;background:var(--card);color:var(--ink)}.start-project-dialog::backdrop{background:#38323866}.start-project-dialog h2{font:400 29px/1.3 Georgia,serif;padding-right:25px;margin-bottom:18px}.start-project-dialog ul{padding-left:20px;font-size:var(--text-small-size,16px);line-height:1.7;margin:0 0 24px}.start-project-dialog li{padding-left:5px;margin:9px 0}.start-project-dialog li::marker{color:var(--accent)}.start-project-dialog .detail-actions{display:flex;flex-wrap:wrap;gap:12px}@media(max-width:540px){.start-project-dialog{padding:38px 22px 24px}.start-project-dialog h2{font-size:25px}.start-project-dialog .button{width:100%;text-align:center}}

.filter-panel-body>.general-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.general-filters>.account-filter-group{gap:20px}.account-filter-group:not(.is-locked){padding:0;border:0;background:transparent}.account-filter-group .publication-filters{gap:20px}.general-filters>label,.account-filter-group>label{display:grid;gap:10px;min-width:0;font-size:var(--text-small-size,16px);font-weight:400;letter-spacing:0}.general-filters .magazine-filter>legend{padding:0;font-size:var(--text-small-size,16px);font-weight:400;line-height:1.5;margin-bottom:10px}.general-filters select,.general-filters .publication-select>summary{width:100%;min-height:46px;padding:12px;font-size:var(--text-small-size,16px);line-height:1.5;border-radius:6px}.general-filters>label select,.account-filter-group>label select{margin:0}@media(max-width:540px){.filter-panel-body>.general-filters,.general-filters>.account-filter-group,.account-filter-group .publication-filters{grid-template-columns:1fr}.general-filters>label,.account-filter-group>label{grid-column:auto}}

#billing-consent:focus:not(:focus-visible){outline:none;box-shadow:none}#billing-consent:focus-visible{outline:none;box-shadow:none}.billing-consent:has(#billing-consent:focus-visible){outline:none;box-shadow:none}

#favorite-access-dialog,#account-filter-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;max-height:calc(100dvh - 36px);overflow:auto}

#project-like-access-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;max-height:calc(100dvh - 36px);overflow:auto}

.auth-login-prompt{flex-basis:100%;width:100%;margin:16px 0 0;font-size:var(--text-small-size,16px);line-height:1.6;color:var(--muted)}.auth-login-prompt .auth-login-link{display:inline;padding:0;min-height:0;background:none;border:0;color:var(--accent);font-size:inherit;text-decoration:underline;text-underline-offset:3px}.subscription-promo-action .auth-login-prompt{font-size:var(--text-small-size,16px);text-align:center;margin-top:8px}

.filter-name{display:inline-flex;align-items:center;gap:8px;line-height:1.5}.filter-name .filter-name-icon{width:18px;height:18px;flex-shrink:0;stroke-width:1.5;color:var(--accent)}

details.membership-card.membership-active>.membership-summary{display:flex}.membership-expand-hint{display:block;font-size:var(--text-small-size,16px);font-weight:400;color:var(--muted);margin-top:5px}details.membership-card[open] .membership-expand-hint{display:none}

details.membership-card:not([open])>.membership-body,details.membership-card:not([open])>.membership-art{display:none!important}

.membership-body #billing-card-note{font-size:16px;line-height:1.6}

.project-model-picker{padding:20px;border:1px solid var(--line);border-radius:12px;margin-bottom:24px}.project-model-picker h2{font:400 23px Georgia,serif;margin-bottom:10px}.project-model-picker label{display:block;margin-bottom:8px}.project-model-picker input{width:100%}#project-model-results{max-height:320px;overflow:auto}.project-model-result{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%;padding:12px;background:var(--card);border:0;border-bottom:1px solid var(--line)}.project-model-result span{font-size:var(--text-small-size,16px);color:var(--muted)}.project-model-result:hover{background:var(--soft)}

.project-form .project-model-picker{grid-column:2;grid-row:1;min-width:0;padding:0;margin:0;border:0;border-radius:0}.project-model-picker h2{font-family:inherit;font-size:var(--text-small-size,16px);line-height:1.5;color:var(--muted);margin:0 0 8px}.project-model-picker label{font-size:var(--text-small-size,16px);color:var(--muted)}#project-selected-model>p{margin:0 0 10px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}#project-selected-model .text-button{font-size:var(--text-small-size,16px)}#project-selected-model>p.subtle{display:none}@media(max-width:540px){.project-form .project-model-picker{grid-column:1;grid-row:auto}}

.project-form .project-fields{align-items:start}
.project-form .project-model-picker{position:relative;align-self:start}
.project-fields label{align-content:start}
.project-model-picker #project-model-results{position:absolute;top:100%;left:0;right:0;z-index:30;max-height:320px;overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}
.project-model-picker #project-model-results:empty{display:none}

#profile-about{width:100%;max-width:680px;padding:12px;font:inherit;line-height:1.6;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);resize:vertical}.author-about{max-width:720px;margin-top:22px}.author-about h2{font-size:var(--text-small-size,16px);font-weight:600;line-height:1.5;margin:0 0 8px}.author-about p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--text-small-size,16px);line-height:1.7;margin:0;color:var(--muted)}

.author-sections-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:28px 0 24px;border-bottom:1px solid var(--line)}.author-sections-bar .author-navigation{margin:0;border:0;flex:1;min-width:0}.author-sections-bar>.button,.author-sections-bar #author-write-post{flex-shrink:0;margin-bottom:12px}.author-sections-bar .feed-write-button{margin:0}.author-sections-bar .author-navigation{flex-wrap:wrap}@media(max-width:760px){.author-sections-bar{flex-wrap:wrap;gap:14px}.author-sections-bar .author-navigation{flex-basis:100%}.author-sections-bar>.button,.author-sections-bar #author-write-post{margin-left:auto}}

.author-about textarea{width:100%;font:inherit;border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--card);color:var(--ink);resize:vertical}.author-about [data-about-copy]{white-space:pre-wrap}

.author-about{width:100%;margin:24px 0}.author-about-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.author-about-heading h2{font-family:inherit;font-weight:600;font-size:var(--text-small-size,16px);line-height:1.4;text-transform:uppercase;margin:0}.author-about-pencil svg{width:24px;height:24px}.author-about-card{border:1px solid var(--line);border-radius:18px;background:var(--card);padding:20px}.author-about-card p{margin:0;line-height:1.6}.author-about-card .button{margin-top:18px}.author-about-card .detail-actions{display:flex;gap:16px}.author-about-card textarea{margin-bottom:10px}

.author-profile-block{width:100%;min-width:0}.author-about{max-width:none}.author-about-card p{color:var(--ink)}.author-about-card p.subtle{color:var(--muted)}

.author-about-heading{justify-content:flex-end}

.author-about{max-width:640px}

/* Keep the description and its edit control together without an empty heading row. */
.author-about{position:relative;margin:14px 0 0}
.author-about-heading{position:absolute;top:12px;right:12px;margin:0;z-index:1}
.author-about-heading:empty{display:none}
.author-about-pencil{display:grid;place-items:center;width:28px;height:28px;padding:2px}
.author-about-pencil svg{width:20px;height:20px}
.author-about:has(.author-about-pencil) .author-about-card{padding:14px 48px 14px 16px}
.author-about-card{padding:14px 16px;border-radius:14px}
.author-about-card .button{margin-top:12px}
.author-profile-block .author-social{margin-top:12px}
.author-sections-bar{margin-top:16px;margin-bottom:18px;gap:12px}

.people-list{list-style:none;margin:24px 0;padding:0;max-width:720px}
.people-list>li{margin:0;border-bottom:1px solid var(--line)}
.person-row{display:flex;align-items:center;gap:14px;min-height:72px;padding:12px 0;text-decoration:none;color:var(--ink)}
.person-row>img,.person-row>span,.person-row>span>img{width:44px;height:44px;flex-shrink:0;object-fit:cover;border-radius:50%;background:var(--soft)}
.person-row strong{font-size:var(--text-small-size,16px);font-weight:500;overflow-wrap:anywhere}
.person-row:hover strong{text-decoration:underline;text-underline-offset:3px}
.person-row:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

#import-items:has(.import-package-preview){display:block}.import-package-preview{margin:24px 0}.import-package-preview>h3{font-size:16px;overflow-wrap:anywhere}

.service-email-option{display:flex;align-items:center;gap:12px;margin:12px 0;color:var(--muted)}.service-email-option input{width:auto;accent-color:#969396;cursor:not-allowed}.service-email-note{font-size:var(--text-small-size,16px);margin:0 0 16px 28px;max-width:480px}

#email-notifications-form input[type="checkbox"]{accent-color:var(--accent)}
#email-notifications-form .service-email-option input[type="checkbox"]{appearance:none;-webkit-appearance:none;flex:0 0 18px;width:18px;height:18px;margin:0;border:1px solid #b49aa8;border-radius:3px;background:#b49aa8;opacity:1;position:relative}
#email-notifications-form .service-email-option input[type="checkbox"]:checked::after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid var(--card);border-width:0 2px 2px 0;transform:rotate(45deg)}

.onboarding-reward-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}.onboarding-reward-row p{margin:5px 0;overflow-wrap:anywhere}.onboarding-reward-row small{color:var(--muted)}@media(max-width:600px){.onboarding-reward-row{align-items:flex-start;flex-direction:column}}

.hero-side-panel>.subscription-teaser,.hero-side-panel>.free-account-invitation{width:100%;max-width:none;margin-inline:0}

.guest-reward-steps{max-width:760px;margin:20px auto;padding:30px;border:1px solid var(--line);border-radius:18px;background:var(--card)}.projects-page .guest-reward-steps h1{font-size:34px;margin:12px 0 18px}.guest-reward-lead{font-size:17px;line-height:1.65}.guest-reward-steps ol{padding-left:24px;margin:24px 0}.guest-reward-steps li{padding-left:6px;margin-bottom:12px;font-size:var(--text-small-size,16px);line-height:1.6}.guest-reward-steps li::marker{color:var(--accent);font-weight:600}.guest-reward-steps p{line-height:1.7}.guest-reward-steps .subtle{font-size:var(--text-small-size,16px)}.guest-reward-steps .detail-actions{margin-top:24px}.onboarding-campaign-control{padding:16px 0;border-bottom:1px solid var(--line);margin-bottom:20px}@media(max-width:540px){.guest-reward-steps{padding:22px}.projects-page .guest-reward-steps h1{font-size:28px}}

#author-feed,.projects-page .projects-grid{min-height:65dvh}

.project-photos .project-photo-category{display:block;margin:12px 0;font-size:var(--text-small-size,16px);color:var(--muted)}
.project-photo-category select{display:block;width:100%;margin-top:6px}
.project-photo-tag{display:block;margin-top:8px;font-size:var(--text-small-size,16px);color:var(--accent)}

.project-photos figure{position:relative}
.project-photo-drag{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;right:8px;width:36px;height:36px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--accent);font-size:24px;cursor:grab;touch-action:none;z-index:1}
.project-photo-drag:active{cursor:grabbing}.project-photos .is-dragging{opacity:.55}.project-photos .is-drop-target{outline:2px solid var(--accent);outline-offset:4px;border-radius:10px}

.project-photo-viewer{min-width:0}

.project-instruments-field{grid-column:1/-1;min-width:0;padding-block:16px;border-block:1px solid var(--line)}
.project-instruments-field>h3{margin:0 0 8px}
.project-instruments-field>#project-instruments:not(:empty){display:grid;width:fit-content;max-width:100%;margin-bottom:6px}
.project-instrument-summary{display:flex;align-items:center;min-width:0;gap:8px}
.project-instrument-copy{
 display:flex;align-items:center;gap:6px;flex:1;min-width:0;min-height:44px;
 padding:0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;
}
button.project-instrument-copy{cursor:pointer;border-radius:8px}
button.project-instrument-copy:hover .project-instrument-name{text-decoration:underline;text-underline-offset:3px}
.project-instrument-name{font-weight:500;overflow-wrap:anywhere}
.project-instrument-size{flex:none;color:var(--muted);white-space:nowrap}
.project-instrument-size::before{content:"·";margin-inline-end:6px}
.project-instrument-summary>.icon-button{
 display:grid;place-items:center;width:44px;height:44px;padding:0;flex:none;border:0;background:transparent;color:var(--accent);
}
.project-instrument-summary>.icon-button:hover{background:var(--soft)}
:is(.project-instruments-field>#project-add-instrument,.editor-yarn-section:is([data-yarn-picker],[data-description-yarn-picker],[data-alternative-picker])>.yarn-picker-actions>[data-open-catalog]){
 display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;
 background:transparent;border:1px solid var(--line);border-radius:10px;
}
:is(.project-instruments-field>#project-add-instrument,.editor-yarn-section:is([data-yarn-picker],[data-description-yarn-picker],[data-alternative-picker])>.yarn-picker-actions>[data-open-catalog]):hover{background:var(--soft)}
:is(.project-instruments-field>#project-add-instrument,.editor-yarn-section:is([data-yarn-picker],[data-description-yarn-picker],[data-alternative-picker])>.yarn-picker-actions>[data-open-catalog])>svg{flex:none}

.project-gauge{border:0;padding:0;margin:0;min-width:0}.project-gauge legend{padding:0;margin-bottom:8px;font-size:var(--text-small-size,16px)}.project-gauge-counts{display:flex;align-items:center;gap:12px}.project-form .project-gauge-counts label{display:flex;align-items:center;gap:8px;min-width:0}.project-gauge-counts input{max-width:140px}.project-gauge p{font-size:var(--text-small-size,16px);color:var(--muted);margin:8px 0 0}


.project-dates{display:grid;grid-template-rows:subgrid;grid-column:2;grid-row:3 / span 3;gap:22px;min-width:0}

.project-status-size{display:grid;grid-template-rows:subgrid;grid-column:1;grid-row:3 / span 3;gap:22px;min-width:0}

@media(max-width:540px){.project-fields{grid-template-columns:1fr}.project-dates,.project-status-size{grid-template-rows:none;grid-column:1;grid-row:auto;gap:18px}}

.project-fields input:not([type=file]),.project-fields .site-select-trigger{box-sizing:border-box;height:46px;min-height:46px;font-size:var(--text-small-size,16px);line-height:20px}

.project-category-field{grid-column:1;grid-row:2}.project-audience-field{grid-column:2;grid-row:2}
@media(max-width:540px){.project-category-field,.project-audience-field{grid-column:1;grid-row:auto}}

.project-status-dialog h2{margin:0 0 16px}.project-status-dialog p{line-height:1.6}.project-status-actions{display:grid;gap:12px;margin-top:24px}.project-status-actions .button{white-space:normal;text-align:center}


.admin-user-subscription{margin:12px 0;padding:12px 14px;border-radius:10px;background:var(--soft);font-size:var(--text-small-size,16px)}.admin-user-subscription p{margin:4px 0;line-height:1.5}

.projects-grid>.project-empty{grid-column:1/-1;width:100%}
.projects-page #author-feed:has(.feed-publications-empty:not([hidden])){max-width:none}

#account-menu-toggle{font-size:16px;font-weight:500;line-height:1.4}

.author-avatar-wrap{position:relative;display:inline-flex;flex:none}.author-online-dot{position:absolute;right:1px;bottom:1px;width:13px;height:13px;border:3px solid var(--bg);border-radius:50%;background:#639270;box-sizing:content-box}

.avatar-presence{position:relative;display:inline-flex;flex:none;vertical-align:middle;line-height:0}
.avatar-presence>img{display:block;border-radius:50%;object-fit:cover}.avatar-online-dot{position:absolute;right:0;bottom:0;width:9px;height:9px;box-sizing:content-box;border:2px solid var(--card);border-radius:50%;background:#639270;z-index:1}
.header-avatar>.avatar-presence,.user-search-avatar>.avatar-presence{width:100%;height:100%}
.header-avatar:has(.avatar-presence),.comment-avatar:has(.avatar-presence),.user-search-avatar:has(.avatar-presence){overflow:visible}

.topbar .brand img.brand-logo{display:block;width:155px;height:auto;max-width:100%;object-fit:contain}
@media(max-width:540px){.topbar .brand img.brand-logo{width:135px}}

/* Match the wordmark baseline to the header navigation text. */
@media(min-width:1201px){.topbar .brand{transform:translateY(-3px)}}

.admin-yarn-request{padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.admin-yarn-request p{margin:6px 0 0}

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


.topbar .site-navigation{gap:12px 30px}
@media(max-width:540px){.topbar .site-navigation{gap:10px 22px}}

.topbar .site-navigation{gap:12px 26px}.topbar .site-navigation .about-link{font-size:17px;font-weight:500;line-height:1.4;padding:8px 3px;color:var(--ink);text-decoration:none;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}.topbar .site-navigation .about-link:hover{color:var(--accent);border-bottom-color:var(--accent)}.topbar .site-navigation .about-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
@media(max-width:540px){.topbar .site-navigation{gap:8px 20px}.topbar .site-navigation .about-link{font-size:var(--text-small-size,16px);padding:6px 2px}}

.profile-pin-tab{border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:var(--card);color:var(--muted);font:inherit;font-size:var(--text-small-size,16px);line-height:1.4;cursor:pointer}.profile-pin-tab:hover,.profile-pin-tab.is-pinned{background:var(--soft);color:var(--accent)}.profile-pin-tab:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.topbar .site-navigation .nav-feed-link{display:inline-flex;align-items:center;gap:8px}.nav-feed-link svg{flex-shrink:0}@media(max-width:540px){.topbar .site-navigation .nav-feed-link{gap:6px}}

.topbar .site-navigation .about-link{font-size:19px}
@media(max-width:540px){.topbar .site-navigation .about-link{font-size:16px}}

.topbar .site-navigation .about-link{font-size:18px}
@media(max-width:540px){.topbar .site-navigation .about-link{font-size:var(--text-small-size,16px)}}

.profile-tabs-settings{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--accent);cursor:pointer}.profile-tabs-settings:hover{background:var(--soft)}.profile-tabs-dialog{width:560px;padding:24px;box-sizing:border-box}.profile-tabs-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.profile-tabs-dialog-heading h2{font-size:23px;margin:0}.profile-tabs-dialog-heading button{font-size:28px}.profile-tabs-dialog>p{font-size:var(--text-small-size,16px);line-height:1.6;color:var(--muted)}.profile-tab-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.profile-tab-setting label{display:flex;align-items:center;gap:10px;font-size:var(--text-small-size,16px);cursor:pointer}.profile-tab-setting input{accent-color:var(--accent);width:18px;height:18px;flex-shrink:0}.profile-tab-setting small{display:block;font-size:var(--text-small-size,16px);color:var(--muted);line-height:1.5;margin-top:4px}.profile-tab-setting>div{display:flex;gap:6px}.profile-tab-setting button{width:34px;height:36px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--accent);font-size:20px;cursor:pointer}.profile-tab-setting button:disabled{opacity:.35;cursor:default}.profile-tabs-dialog .detail-actions{margin-top:22px;display:flex;gap:14px}

.author-description-list{display:grid;gap:22px;margin:24px 0}.author-description-card{padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--card)}.description-card-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;flex-wrap:wrap}.description-card-heading h2{font-size:24px;line-height:1.35;margin:0}.description-status{padding:5px 10px;border-radius:7px;background:var(--soft);color:var(--accent);font-size:var(--text-small-size,16px)}.description-summary,.description-review-comment p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--text-small-size,16px);line-height:1.7}.description-downloads{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.description-moderation-note,.description-review-comment{padding:14px 16px;border-radius:9px;background:var(--soft);font-size:var(--text-small-size,16px);line-height:1.6}.author-description-editor{width:720px;padding:26px;box-sizing:border-box}.author-description-editor form{display:grid;gap:22px}.author-description-editor label{display:grid;gap:8px;font-size:var(--text-small-size,16px)}.author-description-editor input:not([type=checkbox]),.author-description-editor textarea,.author-description-editor select,.description-admin-comment{box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font:inherit;font-size:16px}.author-description-editor textarea{resize:vertical}.description-source{border-top:1px solid var(--line);padding-top:18px;display:grid;gap:14px}.description-source h3{font-size:18px;margin:0}.description-source p{margin:0}.author-description-editor .detail-actions{display:flex;gap:12px;flex-wrap:wrap}.author-description-editor [role=alert]{color:#943b50;margin:0}.description-admin-card{border-top:1px solid var(--line);padding:24px 0}.description-admin-card .detail-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}@media(max-width:540px){.author-description-editor{padding:20px}.author-description-card{padding:18px}.description-card-heading h2{font-size:21px}}

.author-sections-bar{justify-content:flex-start;gap:12px}.author-sections-bar .author-navigation{flex:0 1 auto;min-width:0}.author-sections-bar .profile-tabs-settings{margin-left:0}.author-sections-bar>.button,.author-sections-bar>#author-write-post{margin-left:auto}.description-search-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.author-description-card{scroll-margin-top:110px}@media(max-width:540px){.description-search-fields{grid-template-columns:1fr}}

.author-sections-bar{display:grid;grid-template-columns:minmax(0,max-content) auto;align-items:center;gap:0 12px}.author-sections-bar .author-navigation{flex-basis:auto;min-width:0}.author-sections-bar .profile-tabs-settings{justify-self:start}.profile-tab-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;min-height:60px;padding:8px 0;box-sizing:border-box}.profile-tab-actions .button,.profile-tab-actions .feed-write-button{margin:0;min-height:44px}.author-description-list{min-height:65dvh}.projects-page :is(.project-empty,.feed-publications-empty){box-sizing:border-box;min-height:400px;margin-top:20px;padding:30px 24px 36px}.projects-page :is(.project-empty,.feed-publications-empty) .profile-empty-illustration{width:220px;height:170px;object-fit:contain;margin-bottom:18px}@media(max-width:760px){.author-sections-bar{grid-template-columns:minmax(0,1fr) auto}.author-sections-bar .author-navigation{gap:8px 20px}.profile-tab-actions{min-height:60px}}

.sort-row .sort-choice{display:grid;gap:7px;flex:0 1 240px;min-width:0;margin:0}.sort-row .sort-choice .site-select,.sort-row .sort-choice select{width:100%;max-width:100%;min-width:0}.sort-row .sort-choice .site-select-trigger{text-align:left}.is-source-disabled{opacity:.45}.is-source-disabled .publication-select>summary{cursor:default;pointer-events:none}.publication-filters>.catalog-source-field{display:grid;align-content:start;gap:8px}.publication-filters fieldset[hidden]{display:none}@media(max-width:540px){.sort-row .sort-choice{flex-basis:100%}}

.authors-page{max-width:1120px;margin:auto;padding:36px 24px 70px}.authors-page h1{font:400 40px/1.2 Georgia,serif}.authors-page>input{width:100%;box-sizing:border-box;padding:14px 16px;border:1px solid var(--line);border-radius:10px;font:inherit;background:var(--card);color:var(--ink)}.authors-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}@media(width > 760px){.authors-grid{grid-auto-rows:1fr}}.author-directory-card{padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--card);text-decoration:none;color:var(--ink)}.author-directory-card h2{font-size:21px;margin:0 0 12px}.author-directory-card p{font-size:var(--text-small-size,16px);line-height:1.6;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.author-directory-card:hover{border-color:var(--accent)}.authors-page>#authors-status{font-size:var(--text-small-size,16px);color:var(--muted);min-height:24px}@media(max-width:760px){.authors-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.authors-grid{grid-template-columns:1fr}.authors-page{padding:26px 18px 50px}}

.general-filters .publication-filters{align-items:end}.general-filters .publication-filters>.catalog-source-field{gap:10px;margin:0;font-size:var(--text-small-size,16px);line-height:1.5}.general-filters .filter-name{min-height:24px;align-items:center}.general-filters .magazine-filter{margin:0;padding:0;min-width:0}.general-filters .magazine-filter>legend{height:24px;line-height:24px;margin:0 0 10px;padding:0}.general-filters .site-select-trigger,.general-filters .publication-select>summary{height:46px;min-height:46px;box-sizing:border-box;display:flex;align-items:center;padding:12px;font-size:var(--text-small-size,16px);line-height:20px}

.author-sections-bar{grid-template-columns:minmax(0,max-content) auto minmax(0,1fr);min-height:64px}
.author-sections-bar>.profile-tab-actions{grid-column:3;grid-row:1;justify-self:stretch;justify-content:flex-end;min-height:64px;padding:8px 0 8px 16px}
.author-sections-bar .author-navigation{grid-column:1;grid-row:1}
.author-sections-bar>.profile-tabs-settings{grid-column:2;grid-row:1}
@media(max-width:1050px){.author-sections-bar{grid-template-columns:minmax(0,1fr) auto}.author-sections-bar>.profile-tab-actions{grid-column:1/-1;grid-row:2;padding:8px 0;min-height:60px}}

:is(.author-description-editor,.project-editor-page).description-editor-page{box-sizing:border-box;width:100%;max-width:840px;margin:20px 0 40px;padding:28px;border:1px solid var(--line);border-radius:16px;background:var(--card)}.description-editor-page .profile-tabs-dialog-heading h1{font:400 32px/1.25 Georgia,serif;margin:0}.description-editor-page .profile-tabs-dialog-heading{margin-bottom:4px}@media(max-width:540px){:is(.author-description-editor,.project-editor-page).description-editor-page{padding:20px}.description-editor-page .profile-tabs-dialog-heading h1{font-size:28px}}

.comment-avatar>.avatar-presence,.profile-avatar>.avatar-presence{width:100%;height:100%;max-width:100%;max-height:100%;flex:0 0 100%}.avatar-presence>img{width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;object-fit:cover}.project-comment-author .comment-avatar{flex:0 0 40px;width:40px;height:40px;max-width:40px;max-height:40px}

.description-submission-history{border:1px solid var(--line);border-radius:12px;padding:16px;margin:20px 0}.description-submission-history>summary{font-size:var(--text-small-size,16px);font-weight:600;cursor:pointer}.description-submission-version{padding:18px 0;border-top:1px solid var(--line);font-size:var(--text-small-size,16px);line-height:1.6}.description-submission-version:first-of-type{margin-top:14px}.description-submission-version p{margin:8px 0}.description-submission-version .button{font-size:var(--text-small-size,16px);padding:9px 14px}

.profile-author-label{display:table;margin:8px 0;padding:4px 10px;border-radius:7px;background:var(--soft);color:var(--accent);font-size:var(--text-small-size,16px);font-weight:600;line-height:1.5}

/* Keep the profile panel stable without stretching individual description cards. */
.author-description-list{align-content:start;grid-auto-rows:max-content}
.author-description-card{padding:24px 28px;min-height:0;box-shadow:0 3px 14px rgba(65,40,55,.025)}
.description-card-heading{align-items:center;flex-wrap:nowrap;margin-bottom:16px}
.description-card-heading h2{font-size:23px;overflow-wrap:anywhere}
.description-status{flex-shrink:0;border-radius:20px;padding:6px 12px;font-size:var(--text-small-size,16px);font-weight:500;line-height:1.5}
.description-summary{margin:0 0 18px;max-width:75ch;font-size:16px;line-height:1.65}
.description-downloads:empty{display:none}
.description-edit-button{display:inline-flex;align-items:center;gap:20px;margin-top:4px;font-size:var(--text-small-size,16px);padding:10px 16px}
@media(max-width:540px){.author-description-card{padding:20px}.description-card-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.description-card-heading h2{font-size:21px}.description-edit-button{font-size:var(--text-small-size,16px)}}

.description-success{position:fixed;box-sizing:border-box;width:min(500px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:38px 28px 30px;border:1px solid var(--line);border-radius:22px;background:var(--card);color:var(--ink);text-align:center;overflow:auto;box-shadow:0 20px 80px #342a3426}
.description-success::backdrop{background:#293b3299;backdrop-filter:blur(3px)}
.description-success h2{position:relative;font-size:26px;line-height:1.3;margin:20px 0 12px}.description-success p{position:relative;font-size:16px;line-height:1.6;margin:12px 0}.description-success .button{position:relative;margin-top:14px;min-width:150px}.description-success-mark{position:relative;display:grid;place-items:center;width:76px;height:76px;margin:auto;border-radius:50%;background:var(--soft);color:var(--accent);font-size:38px;animation:description-success-pop .55s ease-out both}.description-success-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;border-radius:inherit}.description-success-confetti i{position:absolute;left:var(--x);top:-12px;width:7px;height:12px;border-radius:3px;background:#ad8098;animation:description-confetti 2.3s ease-out both;animation-delay:calc(var(--i)*.035s)}.description-success-confetti i:nth-child(3n){background:#92af9b}.description-success-confetti i:nth-child(3n + 1){background:#d8b67e}
@keyframes description-success-pop{from{transform:scale(.5);opacity:0}70%{transform:scale(1.12)}to{transform:scale(1);opacity:1}}@keyframes description-confetti{from{transform:translateY(-10px) rotate(0);opacity:1}to{transform:translateY(360px) rotate(var(--turn));opacity:0}}
@media(prefers-reduced-motion:reduce){.description-success-mark{animation:none}.description-success-confetti{display:none}}

.description-moderation-note{background:transparent;border-radius:0;padding:0;color:var(--muted);line-height:1.6}

.author-description-list{grid-template-columns:minmax(0,1fr)}.author-description-card{box-sizing:border-box;width:100%;max-width:820px;justify-self:start}

.description-card-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;margin:20px 0;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.description-card-facts>div{min-width:0}.description-card-facts dt{font-size:var(--text-small-size,16px);color:var(--muted);margin-bottom:5px}.description-card-facts dd{margin:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.description-card-facts>div:last-child{grid-column:1/-1}@media(max-width:420px){.description-card-facts{gap:14px 18px}}

.author-description-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}.author-description-card{max-width:none;min-width:0;padding:20px;border-radius:12px}.description-card-heading{flex-wrap:wrap;gap:12px}.description-card-heading h2{font:400 25px/1.25 Georgia,serif;width:100%}.description-card-facts{gap:14px 16px}.description-downloads .button{white-space:normal;line-height:1.5;max-width:100%;box-sizing:border-box}.author-description-list>.project-empty{grid-column:1/-1}
@media(max-width:760px){.author-description-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.author-description-list{grid-template-columns:1fr}}

.author-description-card .description-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.description-cover{display:block;width:calc(100% + 40px);margin:16px -20px 20px;padding:0;border:0;background:var(--soft);cursor:pointer}.description-cover img{display:block;width:100%;height:260px;object-fit:cover}.description-view-button,.description-withdraw-button{display:block;text-align:left;margin:12px 0;font-size:var(--text-small-size,16px)}.description-preview{box-sizing:border-box;width:min(850px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:28px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink);overflow:auto}.description-preview::backdrop{background:#293b3299}.description-preview .profile-tabs-dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:18px}.description-preview h2{font-size:27px;line-height:1.3;margin:0 0 20px}.description-preview [data-close-preview]{font-size:30px;line-height:1;min-width:40px;min-height:40px}.description-preview .description-summary{display:block;overflow:visible;white-space:pre-wrap}.description-preview-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.description-preview-photos img{display:block;width:100%;height:auto;border-radius:10px}.description-photo-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.description-photo-editor figure{margin:0;min-width:0}.description-photo-editor img{width:100%;height:150px;object-fit:cover;border-radius:8px}.description-photo-editor figcaption{font-size:var(--text-small-size,16px);margin:6px 0}.description-photo-editor .text-button{font-size:var(--text-small-size,16px)}@media(max-width:540px){.description-preview{padding:20px}.description-preview-photos{grid-template-columns:1fr}.description-photo-editor{grid-template-columns:repeat(2,minmax(0,1fr))}}
.author-description-card[data-view-description]{cursor:pointer;transition:border-color .18s,box-shadow .18s}.author-description-card[data-view-description]:hover{border-color:var(--accent);box-shadow:0 5px 18px #51394a0c}.author-description-card[data-view-description]:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.description-photo-editor figure{position:relative}.description-photo-handle{display:block;cursor:grab;touch-action:none;font-size:25px;line-height:1;margin:0 0 8px}.description-photo-handle:active{cursor:grabbing}.description-photo-editor .is-drop-target{outline:2px dashed var(--accent);outline-offset:4px;border-radius:8px}
.description-photo-editor .description-photo-handle{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;right:8px;width:36px;height:36px;box-sizing:border-box;margin:0;padding:0;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--accent);font-size:24px;line-height:1;cursor:grab;touch-action:none;z-index:1}.description-photo-editor .description-photo-handle:active{cursor:grabbing}
.description-success.description-success-modest{width:min(420px,calc(100vw - 32px));padding:26px}.description-success-modest h2{font-size:23px;margin:0 0 12px}.description-success-modest p{font-size:var(--text-small-size,16px)}.description-success-modest .button{margin-top:8px;min-width:120px}
.description-version-facts{display:grid;gap:14px;margin:20px 0}.description-version-facts>div{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,3fr);gap:16px}.description-version-facts dt{color:var(--muted);font-size:var(--text-small-size,16px)}.description-version-facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.6}.description-submission-version .description-preview-photos figure{margin:0}.description-submission-version figcaption{margin-top:6px;font-size:var(--text-small-size,16px);color:var(--muted)}@media(max-width:540px){.description-version-facts>div{grid-template-columns:1fr;gap:4px}}
.description-comment-indicator{font-size:var(--text-small-size,16px);font-weight:500;line-height:1.5;color:var(--accent);margin:16px 0}
.description-published-title{color:inherit;text-decoration:none}.description-published-title:hover{text-decoration:underline}.published-description-page .detail-copy h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(32px,4vw,48px);line-height:1.15;margin:18px 0 22px}.published-description-summary{white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px;line-height:1.7}.published-description-thumbnails{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:18px 0}.published-description-thumbnails button{padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:var(--soft);cursor:pointer}.published-description-thumbnails button[aria-pressed=true]{border-color:var(--accent)}.published-description-thumbnails img{display:block;width:100%;height:75px;object-fit:cover}.published-description-page .description-downloads{align-items:center;gap:18px}.description-photo-viewer{width:min(1000px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:16px;border:1px solid var(--line);background:var(--card)}.description-photo-viewer::backdrop{background:#293b32b3}.description-photo-viewer img{display:block;max-width:100%;height:auto;margin:16px auto 0}.description-photo-viewer button{display:block;margin-left:auto}
.description-yarn-details{margin:28px 0}.description-yarn-details h2{font:400 26px/1.3 Georgia,serif;margin:0 0 14px}.description-yarn-details ul{padding-left:20px}.description-yarn-details p,.description-admin-consumption{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.published-description-page .comments-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.description-usage-yarn{border:1px solid var(--line);border-radius:12px;margin:22px 0;padding:18px;min-width:0}.description-usage-yarn legend{font-size:17px;font-weight:600;padding:0 8px}.description-usage-options{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}.description-usage-amounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:14px;margin:20px 0}.description-usage-number{display:flex;align-items:center;gap:8px}.description-usage-number input{min-width:0}.description-usage-number>span{font-size:var(--text-small-size,16px);color:var(--muted);flex-shrink:0}.description-usage-add{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.description-usage-add .text-button{font-size:var(--text-small-size,16px);text-align:left}.description-usage-yarn>p{font-size:var(--text-small-size,16px);margin-top:4px}.description-usage-yarn .text-button{font-size:var(--text-small-size,16px)}@media(max-width:600px){.description-usage-options{grid-template-columns:1fr 1fr}.description-usage-options>label:first-child{grid-column:1/-1}.description-usage-yarn{padding:14px}.description-usage-amounts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.description-usage-alternatives{display:grid;gap:18px;margin:22px 0}
.description-consumption-scroll{max-width:100%;overflow:auto;margin:18px 0}.description-consumption-table{border-collapse:collapse;width:100%;font-size:var(--text-small-size,16px);line-height:1.5}.description-consumption-table th,.description-consumption-table td{border-bottom:1px solid var(--line);padding:12px 10px;text-align:left;vertical-align:top;white-space:nowrap}.description-consumption-table th:first-child{min-width:160px;white-space:normal}.description-consumption-table thead th{color:var(--muted);font-weight:500}.description-consumption-table tbody th{font-weight:500}.description-consumption-table th>span{display:block;font-weight:400;color:var(--muted);margin-top:4px}.description-yarn-details h3{font-size:17px;margin-top:22px}
.description-usage-options,.description-usage-amounts{align-items:end}.description-usage-yarn legend{max-width:100%;overflow-wrap:anywhere}
.description-alternative-group{padding:18px 0;border-top:1px solid var(--line)}.description-alternative-group h2{font-size:19px;line-height:1.4;margin:0 0 14px}.description-alternative-group [data-selected]>p{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:var(--text-small-size,16px);line-height:1.5}.description-alternative-group [data-selected] .text-button{flex-shrink:0}.description-alternative-group [data-alternative-meta]>p{font-size:var(--text-small-size,16px);line-height:1.5;margin:14px 0}.description-alternative-group [data-usage-meta]{display:block;color:var(--muted);margin-top:4px}.description-legacy-alternatives{margin-top:16px;font-size:var(--text-small-size,16px)}.description-legacy-alternatives summary{cursor:pointer;color:var(--muted)}.description-admin-alternatives li{margin:6px 0}

.description-preview-carousel{margin:20px 0;min-width:0}.description-preview-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:12px;background:var(--soft);overscroll-behavior-x:contain}.description-preview-track::-webkit-scrollbar{display:none}.description-preview-slide{display:flex;align-items:center;justify-content:center;flex:0 0 100%;min-width:0;height:min(50dvh,420px);scroll-snap-align:start;scroll-snap-stop:always}.description-preview-slide img{display:block;width:100%;height:100%;object-fit:contain}.description-preview-controls{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:12px}.description-preview-controls .button{min-width:44px;min-height:44px;padding:8px 14px}.description-preview-controls [role=status]{min-width:48px;text-align:center;font-variant-numeric:tabular-nums}.description-preview-track:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.description-preview-title{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;min-width:0;margin-bottom:20px}.description-preview .description-preview-title h2{margin:0;overflow-wrap:anywhere}.description-preview .description-preview-status{margin:0;font-size:var(--text-small-size,16px);flex-shrink:0}

.description-moderation-actions{margin:18px 0 24px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}.description-moderation-actions h4{margin:0 0 12px;font-size:18px}.description-moderation-actions>.subtle{margin:0 0 14px}.description-moderation-actions>label{display:block;margin-top:16px}.description-moderation-actions [role=alert]:empty{display:none}

.publication-filters .catalog-download-field{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:46px;margin:0;font-size:var(--text-small-size,16px);line-height:1.5}.catalog-download-field input{width:18px;height:18px;margin:0;flex:0 0 18px;accent-color:var(--accent)}


.publication-filters>.magazine-filter{grid-column:1}

.publication-filters>.catalog-description-options{grid-column:2;grid-row:1/span 2;display:grid;gap:12px;align-self:start;padding-top:34px}@media(max-width:540px){.publication-filters>.catalog-description-options{grid-column:1;grid-row:auto;padding-top:0}}

/* Uniform description cards, independent of title and summary lengths. */
.author-description-list{grid-auto-rows:1fr;align-items:stretch}.author-description-card{display:flex;flex-direction:column;height:100%}.author-description-card .description-card-heading{display:flex;flex-direction:column;align-items:flex-start;flex-wrap:nowrap;gap:10px;margin-bottom:0;flex-shrink:0}.author-description-card .description-card-heading h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;height:2.5em;line-height:1.25;overflow:hidden}.author-description-card .description-cover{height:260px;flex-shrink:0;overflow:hidden}.author-description-card .description-cover img{height:100%}.author-description-card .description-summary{min-height:4.95em;flex-shrink:0}.author-description-card .description-delete-button{margin-top:auto;align-self:flex-start}
/* Consumption table. */
.description-consumption-scroll{border:1px solid var(--line);border-radius:12px;background:var(--card);overflow:auto}.description-consumption-table{border-collapse:separate;border-spacing:0;font-size:var(--text-small-size,16px);font-variant-numeric:tabular-nums}.description-consumption-table th,.description-consumption-table td{padding:16px 18px;border-bottom:1px solid var(--line);text-align:center;vertical-align:middle}.description-consumption-table th:first-child{width:44%;min-width:200px;text-align:left}.description-consumption-table thead th{background:var(--soft);color:var(--ink);font-size:var(--text-small-size,16px);font-weight:600;letter-spacing:.01em}.description-consumption-table tbody th{font-weight:500}.description-consumption-table tbody th a{color:var(--accent);text-decoration:none;text-underline-offset:3px}.description-consumption-table tbody th a:hover{text-decoration:underline}.description-consumption-table tbody td{min-width:70px;border-left:1px solid var(--line)}.description-consumption-table tbody tr:last-child>*{border-bottom:0}.description-consumption-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--soft) 32%,var(--card))}.description-consumption-table th>span{margin-top:6px;font-size:var(--text-small-size,16px);line-height:1.5}.description-usage-note{padding:12px 16px;border-left:3px solid var(--line);color:var(--muted);font-size:var(--text-small-size,16px)}@media(max-width:540px){.description-consumption-table th,.description-consumption-table td{padding:13px 12px}.description-consumption-table th:first-child{min-width:170px}}

.description-yarn-prose>p{margin:0 0 12px}.description-yarn-prose>p:last-child{margin-bottom:0}.description-yarn-prose a{color:var(--accent);text-underline-offset:3px}

/* Shared comment layout for models, projects, descriptions and feed posts. */
:root :is(.comment-card,.project-comment,.feed-comment){padding:12px 0;border:0;border-bottom:1px solid var(--line);min-width:0}
:root :is(.comment-card,.project-comment,.feed-comment)>:is(header,.project-comment-author,div:first-child){display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:0;min-height:32px;font-size:var(--text-small-size,16px);line-height:1.45}
:root :is(.comment-card,.project-comment,.feed-comment) :is(.comment-avatar,.feed-author>img,.feed-author>.avatar-presence){width:32px;height:32px;min-width:32px;max-width:32px;max-height:32px;flex:0 0 32px;border-radius:50%;margin:0}
:root :is(.comment-card,.project-comment,.feed-comment) .comment-avatar img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
:root :is(.comment-card,.project-comment,.feed-comment) :is(header,.project-comment-author)>:is(a:not(.comment-avatar),strong),.feed-comment .feed-author{font-size:var(--text-small-size,16px);font-weight:600;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
:root :is(.comment-card,.project-comment,.feed-comment) header strong a{color:inherit;text-decoration:none}
:root :is(.comment-card,.project-comment,.feed-comment) :is(header,.project-comment-author) a:hover,.feed-comment .feed-author:hover strong{text-decoration:underline;text-underline-offset:3px}
:root :is(.comment-card,.project-comment,.feed-comment) time{margin:0;font-size:var(--text-small-size,16px);font-weight:400;color:var(--muted);white-space:nowrap}
:root :is(.comment-card,.project-comment,.feed-comment)>:is(.comment-text,p){margin:3px 0 0 42px;font-size:var(--text-small-size,16px);line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
:root :is(.comment-card,.project-comment,.feed-comment)>:is(.comment-actions,.project-comment-actions,.feed-comment-actions){display:flex;align-items:center;flex-wrap:wrap;gap:2px 14px;margin:3px 0 0 42px}
:root :is(.comment-card,.project-comment,.feed-comment)>:is(.comment-actions,.project-comment-actions,.feed-comment-actions) .text-button{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:1px 0;font-size:var(--text-small-size,16px);line-height:1.5;text-align:left;text-decoration:none}
:root :is(.comment-card,.project-comment,.feed-comment)>:is(.comment-actions,.project-comment-actions,.feed-comment-actions) .text-button:hover{text-decoration:underline;text-underline-offset:3px}
.comment-card>.comment-replies{margin:10px 0 0 14px;padding-left:20px;border-left:2px solid var(--line)}
.comment-replies>.comment-card:last-child{border-bottom:0;padding-bottom:0}
:is(.comments-section,.project-comments,.feed-comments) textarea{width:100%;min-height:100px;padding:12px 14px;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.65;resize:vertical}
@media(max-width:540px){:root :is(.comment-card,.project-comment,.feed-comment){padding:10px 0}:root :is(.comment-card,.project-comment,.feed-comment) time{font-size:var(--text-small-size,16px)}.comment-card>.comment-replies{margin-left:6px;padding-left:12px}:root :is(.comment-card,.project-comment,.feed-comment)>:is(.comment-actions,.project-comment-actions,.feed-comment-actions){gap:4px 12px}}


.auth-mode-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:14px;background:var(--soft);max-width:100%;margin:0 0 24px}.auth-mode-switch [data-mode]{min-height:44px;padding:10px 24px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:18px;font-weight:600;line-height:1.3}.auth-mode-switch [data-mode][aria-pressed="true"]{background:var(--card);color:var(--accent);box-shadow:0 2px 8px #342b3310}#auth-form #terms-notice>.consent-option:last-child{margin-bottom:0}.auth-submit-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}.auth-submit-row>#submit-auth{flex:none}.auth-forgot-password{margin-left:auto;text-align:right;text-decoration:underline;text-underline-offset:3px;flex:none}@media(max-width:760px){.auth-submit-row>#submit-auth{flex:1;min-width:0}}@media(max-width:540px){.auth-mode-switch{display:flex;width:100%}.auth-mode-switch [data-mode]{flex:1;padding-inline:12px;font-size:16px}}

.comment-reply-editor{min-height:110px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font:inherit;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.comment-reply-editor:focus{outline:2px solid var(--accent);outline-offset:2px}.comment-reply-editor a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}

.feed-comment-input-wrap{position:relative}.feed-comment-input-wrap textarea,.feed-comment-input-wrap .comment-reply-editor{width:100%;box-sizing:border-box;padding-right:60px;padding-bottom:52px;margin:0}.comment-send-arrow{position:absolute;right:12px;bottom:12px;width:36px;height:36px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:var(--accent);color:white;cursor:pointer}.comment-send-arrow:hover{filter:brightness(.92)}.comment-send-arrow:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.comment-send-arrow:disabled{opacity:.5;cursor:wait}.comment-send-arrow svg{display:block;pointer-events:none}

.feed-photo-label.photo-attach-plus{position:relative;display:inline-grid;place-items:center;flex:none;width:38px;height:38px;min-height:38px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--accent);cursor:pointer}.photo-attach-plus>span{font-size:28px;font-weight:400;line-height:1}.feed-photo-label.photo-attach-plus input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.photo-attach-plus:focus-within{outline:2px solid var(--accent);outline-offset:3px}

.photo-attach-plus>svg{display:block;align-self:center;justify-self:center;pointer-events:none}


.author-description-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start;grid-auto-rows:auto}.author-description-card.project-card{display:block;height:auto;padding:0;position:relative}.author-description-card :is(.project-card-main,.project-card-photo)>img{display:block}.author-description-card .description-actions-menu{margin:0;align-self:auto}.author-description-card .project-card-likes[aria-pressed="true"]{color:var(--accent)}.author-description-card .project-card-likes[aria-pressed="true"] svg{fill:currentColor}.author-description-card .project-card-likes:disabled{opacity:1;cursor:default}
@media(max-width:760px){.author-description-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.author-description-list{grid-template-columns:1fr}}

.project-card-menu-panel>button{box-sizing:border-box;width:100%;min-height:40px;margin:0;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:var(--ink);font:inherit;font-size:var(--text-small-size,16px);line-height:1.4;text-align:left;cursor:pointer}.project-card-menu-panel>button:hover{background:var(--soft)}.project-card-menu-panel>button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.project-card-menu-panel>button.danger-text{color:#9b3c4c}

.description-actions-menu .project-card-menu-panel>button.project-card-menu-delete{margin-top:12px;padding-top:14px;border-top:1px solid var(--line);border-radius:0 0 6px 6px;color:#9b3c4c}

.comment-permalink-target{scroll-margin-top:110px;animation:comment-permalink-flash 2.5s ease-out both}@keyframes comment-permalink-flash{0%,25%{background:#784a6510}100%{background:transparent}}@media(prefers-reduced-motion:reduce){.comment-permalink-target{animation:none}}

.description-changed-value{background:#f2e2af;color:inherit;padding:2px 5px;border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.description-change-notes{margin:16px 0;padding:14px 16px;background:#f9f0d7;border-left:3px solid #b58b35;border-radius:8px;font-size:var(--text-small-size,16px);line-height:1.6}.description-change-notes ul{margin:6px 0 0;padding-left:20px}

.admin-mailing-form{display:grid;gap:16px;max-width:820px;padding:20px 0}.admin-mailing-form label{display:grid;gap:8px}.admin-mailing-form input:not([type=checkbox]),.admin-mailing-form textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font:inherit;box-sizing:border-box}.admin-mailing-form .mailing-checkbox{display:flex;align-items:center;gap:10px}.mailing-checkbox input{width:18px;height:18px;flex:none}.admin-mailing-form fieldset{border:1px solid var(--line);border-radius:12px;padding:16px;min-width:0}.mailing-recipients{max-height:280px;overflow:auto;margin-top:12px;display:grid;gap:10px}.mailing-recipients span{overflow-wrap:anywhere}.admin-mailing-form [data-mailing-button]{display:grid;gap:16px}.admin-mailing-form [data-mailing-button][hidden]{display:none}.mailing-preview-dialog{width:min(860px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--bg);color:var(--ink)}.mailing-preview-dialog::backdrop{background:#30232b88}.mailing-preview-dialog iframe{display:block;width:100%;height:min(60vh,650px);border:1px solid var(--line);border-radius:12px;background:white}.mailing-preview-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;font:var(--text-small-size,16px)/1.5 monospace}.mailing-preview-dialog .editor-heading h2{font-size:26px}.mailing-preview-dialog [data-close]{font-size:28px}
.mailing-preview-dialog .editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.mailing-preview-dialog .editor-heading h2{margin:0}.mailing-preview-dialog [data-close]{display:grid;place-items:center;width:32px;height:32px;flex:none;padding:0}.mailing-preview-dialog iframe{height:min(52vh,620px)}

.admin-user-card .admin-user-mailing{display:flex;align-items:center;justify-content:space-between;gap:14px 24px;flex-wrap:wrap;margin-top:18px;padding:16px 0;border-top:1px solid var(--line)}.admin-user-mailing-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.admin-user-mailing-badge{display:inline-flex;align-items:center;gap:7px;padding:4px 10px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:var(--text-small-size,16px);line-height:1.4}.admin-user-mailing-badge::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.admin-user-mailing-badge.is-enabled{color:#496d55;background:#edf2ec}.admin-user-mailing .text-button{padding:4px 0;white-space:normal}.admin-user-account-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:8px}.admin-user-account-actions>.subtle{font-size:var(--text-small-size,16px);line-height:1.5}.admin-array-pagination{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:18px}.admin-array-pagination span{color:var(--muted);font-size:var(--text-small-size,16px)}
:root .admin-user-card>p{margin:6px 0 0;font-size:var(--text-small-size,16px);line-height:1.5}

:root #users-panel .admin-user-card>p{margin:6px 0 0}

/* Compact admin user rows: use the available width instead of stacking full-width panels. */
:root #users-panel .admin-user-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,.9fr);gap:10px 24px;padding:20px 0;align-items:start}
:root #users-panel .admin-user-identity{display:block;grid-column:1;grid-row:1;min-width:0;min-height:0;margin:0;font-size:16px;line-height:1.5}
.admin-user-identity strong{display:block;overflow-wrap:anywhere}.admin-user-identity p{margin:5px 0 0;font-size:var(--text-small-size,16px);line-height:1.5;overflow-wrap:anywhere;color:var(--muted)}
:root #users-panel .admin-user-card .admin-user-subscription{grid-column:2;grid-row:1/span 2;margin:0;padding:0 0 0 20px;border-left:1px solid var(--line);border-radius:0;background:transparent;min-width:0}
:root #users-panel .admin-user-card .admin-user-subscription p{margin:0 0 5px}
:root #users-panel .admin-user-card .admin-user-mailing{grid-column:3;grid-row:1/span 2;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;margin:0;padding:0 0 0 20px;border-top:0;border-left:1px solid var(--line);min-width:0}
:root #users-panel .admin-user-mailing-status{align-items:flex-start;flex-direction:column;gap:6px;font-size:var(--text-small-size,16px)}
:root #users-panel .admin-user-account-actions{grid-column:1;grid-row:2;margin:0;gap:6px;align-self:start}
:root #users-panel .admin-user-account-actions .text-button{padding:2px 0;text-align:left}
@media(max-width:900px){:root #users-panel .admin-user-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 20px}:root #users-panel .admin-user-card .admin-user-mailing{grid-column:2;grid-row:2;border-left:1px solid var(--line)}:root #users-panel .admin-user-card .admin-user-subscription{grid-row:1}:root #users-panel .admin-user-account-actions{grid-row:2}}
@media(max-width:560px){:root #users-panel .admin-user-card{grid-template-columns:minmax(0,1fr);gap:12px;padding:18px 0}:root #users-panel .admin-user-identity,:root #users-panel .admin-user-card .admin-user-subscription,:root #users-panel .admin-user-card .admin-user-mailing,:root #users-panel .admin-user-account-actions{grid-column:1;grid-row:auto}:root #users-panel .admin-user-card .admin-user-subscription,:root #users-panel .admin-user-card .admin-user-mailing{padding:0;border:0}:root #users-panel .admin-user-mailing-status{flex-direction:row;align-items:center;gap:10px}}

/* Profile avatars and explicit, local-only crop confirmation. */
.author-profile-avatar,.author-avatar-button{width:128px;height:128px}
.author-profile-heading{gap:24px;align-items:center}.author-profile-heading>div{min-width:0}.author-profile-heading h1{overflow-wrap:anywhere}
.author-avatar-button{display:block;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:zoom-in;flex:none}.author-avatar-button img{display:block;width:100%;height:100%}.author-avatar-button:focus-visible,#profile-avatar:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
.author-avatar-wrap .author-online-dot{width:16px;height:16px;right:4px;bottom:4px}
.profile-summary #profile-avatar{width:112px;height:112px;border:0;padding:0;cursor:zoom-in}.profile-summary #profile-avatar:disabled{opacity:1;cursor:default}
.avatar-crop-dialog,.avatar-viewer-dialog{width:min(540px,calc(100vw - 32px));max-height:90dvh;overflow:auto;box-sizing:border-box;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--card);color:var(--ink);box-shadow:var(--shadow)}
.avatar-crop-dialog::backdrop,.avatar-viewer-dialog::backdrop{background:#30232b99}
.avatar-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.avatar-dialog-heading h2{font:500 24px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:0;overflow-wrap:anywhere}.avatar-dialog-close{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--accent);font:30px/1 Arial;cursor:pointer}.avatar-dialog-close:hover{background:var(--soft)}
.avatar-crop-dialog>p{font-size:var(--text-small-size,16px);line-height:1.5;margin:10px 0 16px}.avatar-crop-viewport{position:relative;width:min(320px,100%);aspect-ratio:1;margin:0 auto 20px;overflow:hidden;border-radius:12px;background:var(--soft)}
.avatar-crop-viewport canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}.avatar-crop-viewport canvas.is-dragging{cursor:grabbing}.avatar-crop-viewport canvas:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.avatar-crop-mask{position:absolute;inset:0;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 180px #30232b77;pointer-events:none}
.avatar-crop-zoom{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:16px;font-size:var(--text-small-size,16px)}.avatar-crop-zoom input{width:100%;height:26px;margin:0;padding:0;border:0;accent-color:var(--accent);cursor:pointer}.avatar-crop-reset{display:block;margin:8px auto 0;padding:4px 8px}.avatar-crop-dialog .avatar-crop-note{margin:12px 0;font-size:var(--text-small-size,16px);color:var(--muted)}.avatar-crop-error:empty{display:none}.avatar-crop-error{color:#942f46}.avatar-dialog-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin-top:16px}.avatar-dialog-actions .button{flex:1}
.avatar-viewer-dialog{width:min(600px,calc(100vw - 32px))}.avatar-viewer-dialog>img{display:block;width:min(512px,65dvh,100%);height:auto;aspect-ratio:1;object-fit:contain;border-radius:50%;margin:20px auto 0}.avatar-viewer-dialog>p:empty{display:none}
@media(max-width:560px){.author-profile-avatar,.author-avatar-button{width:96px;height:96px}.author-profile-heading{gap:16px}.profile-summary #profile-avatar{width:88px;height:88px}.avatar-crop-dialog,.avatar-viewer-dialog{padding:20px}.avatar-dialog-heading h2{font-size:21px}.avatar-dialog-actions .button{flex-basis:100%}.avatar-crop-zoom{gap:12px}}

[data-author-presence].is-online::before{content:"";display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#639270;vertical-align:middle}

/* Compact confirmation for the profile photo. */
#delete-avatar-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;border:1px solid var(--line);border-radius:20px;background:var(--card);box-shadow:0 20px 70px #30232c26}
#delete-avatar-dialog::backdrop{background:#30232c66;backdrop-filter:blur(3px)}
#delete-avatar-dialog h2{margin:0;font:500 23px/1.3 var(--font-body,Arial,sans-serif);letter-spacing:-.3px}
#delete-avatar-error:empty{display:none}
#delete-avatar-dialog .cabinet-actions{display:flex;justify-content:flex-end;gap:10px;margin:26px 0 0;flex-wrap:wrap}
#delete-avatar-dialog .button{min-height:44px;margin:0;padding:11px 18px;font-size:var(--text-small-size,16px);line-height:1.3;border-radius:12px}
@media(max-width:480px){#delete-avatar-dialog{padding:24px}#delete-avatar-dialog h2{font-size:21px}#delete-avatar-dialog .cabinet-actions .button{flex:1}}

.authors-page .authors-intro{max-width:640px;margin-bottom:30px}.authors-intro .eyebrow{font-size:var(--text-small-size,16px);color:var(--accent);letter-spacing:1px;text-transform:uppercase;margin:0 0 14px}.authors-page .authors-intro h1{font-size:clamp(28px,3.2vw,40px);line-height:1.2;margin:0 0 16px;letter-spacing:-.02em}.authors-intro .subtle{line-height:1.7;margin:0;font-size:16px}
.authors-page .author-directory-card{display:flex;flex-direction:column;align-items:flex-start;padding:28px;transition:border-color .2s,box-shadow .2s}.author-directory-avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;margin-bottom:20px}.authors-page .author-directory-card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 22px}.author-directory-card>.author-directory-count{margin-top:auto;font-size:var(--text-small-size,16px);color:var(--muted)}.author-directory-arrow{font-size:var(--text-small-size,16px);color:var(--accent);margin-top:18px}.author-directory-card:hover{box-shadow:0 8px 28px #4a34400c}.author-directory-card:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

.site-navigation a[href="/authors"][aria-current="page"]{color:var(--accent);text-decoration:underline;text-underline-offset:6px}

.authors-page .author-directory-card>.author-directory-avatar{display:block;flex:none;margin:0 0 24px}
.authors-page .author-directory-card>h2{margin-top:0}

/* Avatar badges wrap the image after loading; space the wrapper as well. */
.authors-page .author-directory-card>.avatar-presence{flex:none;margin-bottom:24px}
.authors-page .author-directory-card>.avatar-presence>.author-directory-avatar{margin:0}

.avatar-viewer-dialog>img{box-sizing:border-box;display:block;width:min(512px,60dvh,100%);height:auto;aspect-ratio:1;object-fit:cover;margin:20px auto 0;flex:none}

.avatar-viewer-dialog .avatar-dialog-heading h2{font-size:20px;line-height:1.35}
.avatar-viewer-dialog>p{font-size:var(--text-small-size,16px);line-height:1.5}
@media(max-width:560px){.avatar-viewer-dialog .avatar-dialog-heading h2{font-size:18px}}

.author-social nav{gap:10px}
.author-social nav>a{display:inline-flex;align-items:center;gap:10px;padding:9px 13px;border:1px solid transparent;border-radius:12px;background:var(--soft);color:var(--accent);text-decoration:none;font-size:var(--text-small-size,16px);line-height:1.4;transition:background .15s,border-color .15s}
.author-social nav>a>span{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;box-sizing:border-box;padding:0 6px;margin:0;border-radius:8px;background:var(--card);color:var(--accent);font-size:var(--text-small-size,16px);font-weight:600;font-variant-numeric:tabular-nums}
.author-social nav>a:hover{border-color:var(--accent)}
.author-social nav>a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:380px){.author-social nav{gap:8px}.author-social nav>a{gap:7px;padding:8px 10px;font-size:var(--text-small-size,16px)}}

.authors-page .author-directory-card>p{font-size:var(--text-small-size,16px);line-height:1.55}

.author-profile-block .author-social{margin-top:24px}
.author-social nav{gap:24px}
.author-social nav>a{gap:7px;padding:0;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:var(--text-small-size,16px);line-height:1.6;text-decoration:none}
.author-social nav>a>span{display:inline;min-width:0;height:auto;padding:0;border-radius:0;background:transparent;color:var(--ink);font-size:var(--text-small-size,16px);font-weight:500}
.author-social nav>a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
@media(max-width:380px){.author-social nav{gap:18px}.author-social nav>a{gap:6px;padding:0;font-size:var(--text-small-size,16px)}.author-social nav>a>span{font-size:var(--text-small-size,16px)}}

.author-social nav>a>span{font-weight:700;color:var(--accent)}

.author-profile-heading{align-items:flex-start}
.author-profile-heading>div{display:flex;flex-direction:column;align-items:flex-start;min-height:128px;justify-content:flex-start}
.author-profile-heading h1.author-projects-title{margin-top:0;line-height:1.25}
.author-profile-heading .author-joined:not([data-author-presence]){margin-top:auto;padding-top:10px}
.author-profile-heading [data-author-presence]{margin-top:3px}
@media(max-width:560px){.author-profile-heading>div{min-height:96px}}

.author-profile-heading :is(.author-profile-avatar,.author-avatar-button){width:104px;height:104px}
.author-profile-heading>div{min-height:104px}
@media(max-width:560px){.author-profile-heading :is(.author-profile-avatar,.author-avatar-button){width:80px;height:80px}.author-profile-heading>div{min-height:80px}}

.profile-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;max-width:100%}.profile-name-row .profile-author-label{margin:0;white-space:nowrap;font-size:var(--text-small-size,16px);padding:3px 9px}

.authors-page>#authors-status{margin:16px 0 22px;line-height:1.5}

.authors-page>#authors-query{display:block;width:100%;max-width:420px}

.authors-page .authors-intro{margin-bottom:18px;max-width:none}
.authors-discovery{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:0}
.authors-discovery>p{margin:0;max-width:590px;font-size:var(--text-small-size,16px);line-height:1.7;color:var(--muted)}
.authors-search{flex:0 1 360px;min-width:220px}
.authors-search input{width:100%;box-sizing:border-box;padding:13px 16px;border:1px solid var(--line);border-radius:10px;font:inherit;background:var(--card);color:var(--ink)}
.authors-grid>.project-empty{grid-column:1/-1}
@media(max-width:700px){.authors-discovery{flex-direction:column;align-items:stretch;gap:18px}.authors-search{flex:auto;min-width:0;max-width:420px}.authors-discovery>p{max-width:none}}

.authors-search #authors-status{margin:12px 0 0;min-height:21px;font-size:var(--text-small-size,16px);line-height:1.5;color:var(--muted)}
.authors-discovery{margin-bottom:24px}

.description-field-error{display:block;color:#ad3953;font-size:16px;line-height:1.4;margin-top:6px}.description-field-error[hidden]{display:none}#projects-content [aria-invalid="true"]{border-color:#ad3953}

/* Keep long comment lines and separators within a comfortable reading width. */
:is(.comments-section,.project-comments){width:100%;max-width:760px;min-width:0}
:is(.comments-section,.project-comments) :is(.project-comment-list,.comment-list,[data-comment-list],[data-comments]){min-width:0;max-width:100%}
:is(.comments-section,.project-comments) form{width:100%;max-width:none;min-width:0}
:is(.comments-section,.project-comments) :is([data-comment-form],textarea){min-width:0;max-width:100%;width:100%}

#form-title.yarn-registration-title{font-size:clamp(23px,3vw,28px);line-height:1.3;text-wrap:balance;margin-bottom:22px}

/* Matching size for catalogue pagination and sorting controls. */
.sort-row>.page-size-control,.sort-row>.sort-choice{display:grid;align-content:start;gap:7px;flex:0 1 260px;min-width:0;font-size:16px}
.sort-row .page-size-control .site-select,.sort-row .page-size-control select,.sort-row .sort-choice .site-select,.sort-row .sort-choice select{width:100%;min-width:0;max-width:100%}
.sort-row .page-size-control select,.sort-row .sort-choice select{height:50px;min-height:50px;margin:0;padding:10px 14px;font-size:16px}
.sort-row .site-select-trigger{height:50px!important;min-height:50px!important;font-size:16px!important;padding:10px 14px!important}
@media(max-width:540px){.sort-row>.page-size-control,.sort-row>.sort-choice{flex:1 1 100%;margin-right:0}}

.sort-row>.page-size-control{flex:0 0 160px;width:160px;max-width:100%}

#authors-query,#authors-query::placeholder{font-size:16px}

.size-display-settings{margin-top:24px;padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.size-display-settings h2{margin-top:0}.size-display-settings label{max-width:340px}.size-display-settings .subtle{margin:12px 0 0}

.size-display-settings>select,.size-display-settings>.site-select{max-width:340px}

.size-display-settings .size-system-switch{display:inline-flex;flex-wrap:wrap;gap:5px;max-width:100%;margin:0;padding:5px;border:1px solid #e4d9df;border-radius:14px;background:var(--soft)}
.size-display-settings .size-system-switch label{position:relative;display:block;margin:0;cursor:pointer;flex:1 1 auto}
.size-display-settings .size-system-switch input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.size-display-settings .size-system-switch span{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 19px;border-radius:10px;color:var(--muted);font-size:16px;line-height:1.4;transition:background .15s,color .15s,box-shadow .15s}
.size-display-settings .size-system-switch input:checked+span{background:var(--card);color:var(--accent);font-weight:600;box-shadow:0 2px 7px #57364b16}
.size-display-settings .size-system-switch input:checked+span::before{content:"";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}
.size-display-settings .size-system-switch input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.size-display-settings .size-system-switch:disabled{opacity:.6;cursor:wait}
.size-display-settings #size-display-status{margin:10px 0 0;font-size:var(--text-small-size,16px);color:var(--accent)}
.size-display-settings #size-display-status:empty{display:none}
@media(max-width:420px){.size-display-settings .size-system-switch{display:flex}.size-display-settings .size-system-switch span{padding:10px 12px;font-size:var(--text-small-size,16px)}}

#email-notifications.profile-section{border-bottom:0}

.membership-summary>.membership-chevron.catalog-filter-chevron{flex:0 0 36px;width:36px;height:36px;border:1px solid #b48ba2;background:var(--soft);color:var(--accent);box-shadow:0 2px 6px #54344718}
.membership-summary>.membership-chevron svg{width:20px;height:20px;stroke-width:2.8}
.membership-summary:hover>.membership-chevron.catalog-filter-chevron{border-color:var(--accent);background:#e5d4df}

.profile-avatar-copy{display:grid;justify-items:start;gap:6px}
.profile-avatar-copy>#edit-avatar{margin:0;padding:0;text-align:left}
.profile-email-copy{width:100%}
.profile-email-row{display:flex;align-items:baseline;gap:12px 20px;flex-wrap:wrap}
.profile-email-row>#member-email{min-width:0;margin:2px 0 0}
.profile-email-row>#edit-email{flex:none;margin:0;padding:0}

.admin-yarn-request>strong{white-space:pre-wrap;overflow-wrap:anywhere}
.yarn-request-reply-label{display:grid;gap:8px;font-size:var(--text-small-size,16px);margin-top:16px}
.yarn-request-reply-label textarea{width:100%;box-sizing:border-box;resize:vertical;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font:inherit;line-height:1.5}

.project-form .project-model-picker>label{display:block;margin:0 0 8px;color:var(--ink);font-size:var(--text-small-size,16px);line-height:21px}
.project-form .project-fields>label,.project-form .project-status-size>label,.project-form .project-dates>label{line-height:21px}
.project-form .project-dates>label{grid-template-columns:minmax(0,1fr);min-width:0}
.project-date-control{position:relative;display:block;min-width:0}
.project-date-face{display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;height:46px;padding:0 14px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);font-size:var(--text-small-size,16px);pointer-events:none}
.project-date-face svg{flex:none}
.project-form .project-date-control input[type=date]{position:absolute;inset:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.project-date-control:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.project-date-control.is-keyboard-editing>.project-date-face{visibility:hidden}
.project-form .project-date-control.is-keyboard-editing input[type=date]{opacity:1}
.project-form #project-selected-model:not(:empty){margin-top:10px}
.project-form .project-fields input:not([type=file]),.project-form .project-fields select,.project-form .project-fields .site-select-trigger{height:46px;min-height:46px;box-sizing:border-box}

.yarn-reply-templates{margin:16px 0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.yarn-reply-templates>summary{cursor:pointer;color:var(--accent);font-weight:600}
.yarn-reply-templates section{padding-top:16px}
.yarn-reply-templates section+section{margin-top:16px;border-top:1px solid var(--line)}
.yarn-reply-templates [data-template-text]{font-size:var(--text-small-size,16px);line-height:1.6;white-space:pre-wrap;user-select:text}
.yarn-template-actions{display:flex;flex-wrap:wrap;gap:12px 20px;margin:10px 0 6px}
.yarn-template-actions .text-button{text-decoration:underline;text-underline-offset:3px}

.topbar .site-navigation a.about-link,.topbar .site-navigation a.about-link[aria-current="page"]{text-decoration:none;text-underline-offset:initial}
.topbar .site-navigation a.about-link[aria-current="page"],.topbar .site-navigation a.about-link:hover{color:var(--accent);border-bottom-color:var(--accent)}

.collections-dialog{box-sizing:border-box;max-height:calc(100dvh - 40px);overflow:auto}
.collections-dialog-heading{align-items:center;margin-bottom:22px}
.collections-dialog-heading h2{margin:0;min-width:0}
#collection-name-form{display:grid;gap:20px}
#collection-name-form>label{min-width:0;margin:0}
#collection-name-form input[name=name]{width:100%;box-sizing:border-box}
#collection-name-form>.collections-error:empty{display:none}
#collection-name-form>.collections-error{margin:0}
#collection-name-form>.button{justify-self:start;margin:0}

.project-form .project-file-label{margin-top:4px;max-width:100%;justify-self:start}
.project-form .project-file-label .site-upload{margin:0;padding:0;border:0;border-radius:0;background:transparent;justify-content:flex-start}
.project-form .project-file-label .site-upload-hint{display:none}
.project-form .project-file-label .site-upload-requirement{order:2;flex-basis:auto}
.project-form .project-file-label .site-upload-chosen{order:3}
.project-form #project-photos:empty{display:none}

#project-photo-title .project-photos-optional{margin-left:8px;color:var(--muted);font-family:var(--font-body,system-ui,sans-serif);font-size:var(--text-small-size,16px);font-weight:400;white-space:nowrap}
.project-form .project-file-label .site-upload-requirement{display:none}

.project-form .project-notes-heading{font:400 27px Georgia,serif;line-height:normal}
.project-form .project-notes-optional{margin-left:8px;color:var(--muted);font-family:var(--font-body,system-ui,sans-serif);font-size:var(--text-small-size,16px);font-weight:400;white-space:nowrap}

.description-source h3>.description-section-optional,.author-description-editor .description-section-optional{margin-left:8px;color:var(--muted);font-family:var(--font-body,system-ui,sans-serif);font-size:var(--text-small-size,16px);font-weight:400;white-space:nowrap}

/* Description attachments use the same plain, left-aligned actions as projects. */
.author-description-editor .description-source .site-upload{display:flex;flex-direction:column;align-items:flex-start;justify-self:start;width:auto;max-width:100%;margin:0;padding:0;border:0;border-radius:0;background:none}
.author-description-editor .description-source .site-upload-button{align-self:flex-start;margin:0}
.description-link-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(200px,1fr);align-items:start;gap:20px}
.description-link-fields>label{min-width:0}
@media(max-width:540px){.description-link-fields{grid-template-columns:minmax(0,1fr)}}

.description-photo-editor:empty{display:none}
.author-description-editor .description-link-notes{display:grid;gap:6px}
.author-description-editor .description-link-notes .description-moderation-note{margin:0;padding:0;background:none;border:0;border-radius:0;color:var(--muted)}

.author-description-editor .description-source>h3,.author-description-editor [data-description-usage]>h3,.author-description-editor [data-description-yarn-picker]>h2{font:400 27px/1.3 Georgia,serif;margin:0 0 8px;color:var(--ink)}
.author-description-editor [data-description-usage]:not([hidden]){display:grid;gap:16px}
.author-description-editor .description-usage-yarn{margin-bottom:0}
.author-description-editor .description-usage-add{margin:0}
.author-description-editor .description-usage-mode{justify-self:start;max-width:100%}
.author-description-editor .description-usage-mode[hidden]{display:none}

.description-size-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:end}
.description-size-fields>label{min-width:0}
.author-description-editor .description-size-help-link{justify-self:start;min-height:46px;padding:0;text-decoration:underline;text-underline-offset:4px;font:inherit;color:var(--accent)}
.description-size-help{max-width:calc(100vw - 32px)}
.description-size-help-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.description-size-help-heading h2{margin:0;font:400 27px/1.3 Georgia,serif}
.description-size-help>p{margin:20px 0 0;line-height:1.7;font-size:var(--text-small-size,16px)}
@media(max-width:540px){.description-size-fields{grid-template-columns:minmax(0,1fr);gap:8px}.author-description-editor .description-size-help-link{min-height:36px}}

.description-size-help{width:660px;box-sizing:border-box;max-height:calc(100dvh - 40px);overflow-y:auto}
.description-size-help-copy{display:grid;gap:14px;margin-top:20px;font-size:var(--text-small-size,16px);line-height:1.65}
.description-size-help-copy p{margin:0}
.description-size-help-copy strong{font-weight:700}

.description-size-help-copy{list-style:none;padding:0}
.description-size-help-copy>li{position:relative;margin:0;padding-left:22px}
.description-size-help-copy>li::before{content:"";position:absolute;left:2px;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--accent)}

.author-description-editor .description-consent-divider{width:100%;margin:0;border:0;border-top:1px solid var(--line)}

/* Числа в расходе описания вводятся без стрелок. */
.author-description-editor [data-description-usage] input[type=number]{appearance:textfield;-moz-appearance:textfield}
.author-description-editor [data-description-usage] input[type=number]::-webkit-inner-spin-button,.author-description-editor [data-description-usage] input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* Отступы окна выбора не должны смещать поля относительно удаления волокна. */
.yarn-picker .yarn-characteristics .yarn-characteristics-row>label{margin:0}

.comment-attached-photo{display:block;width:min(240px,calc(100% - 42px));margin:10px 0 8px 42px}
.comment-attached-photo img{display:block;width:100%;height:180px;object-fit:contain;object-position:left center;border-radius:12px}
/* Settings: a quiet subscription summary and documents after the settings. */
.account-documents{margin:36px 0 12px;padding:24px 0 0;border-top:1px solid var(--line);text-align:left}
.cabinet .account-documents h2{font:600 18px/1.4 system-ui,sans-serif;margin:0 0 14px;color:var(--muted)}
.account-documents nav{display:flex;flex-wrap:wrap;gap:10px 24px}
.account-documents a{font-size:var(--text-small-size,16px);color:var(--muted);text-underline-offset:4px;line-height:1.6}
.profile-avatar-copy{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.profile-avatar-copy .profile-edit-icon,.profile-email-row .profile-edit-icon{width:36px;height:36px;min-width:36px;min-height:36px;padding:8px;background:transparent;border:1px solid var(--line);color:var(--accent)}
.profile-avatar-copy .profile-edit-icon:hover,.profile-email-row .profile-edit-icon:hover{background:var(--soft)}
#subscription.membership-card{margin:24px 0;border:1px solid var(--line);border-radius:20px;background:var(--card);box-shadow:0 5px 24px #704b6009}
#subscription>.membership-summary{display:grid;grid-template-columns:48px minmax(0,1fr) auto 36px;gap:12px 16px;align-items:center;padding:24px;background:linear-gradient(110deg,var(--soft),var(--card) 80%)}
#subscription .membership-summary h2{font:600 21px/1.4 system-ui,sans-serif;margin:0;color:var(--ink)}
#subscription .membership-symbol{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:14px;background:var(--card);color:var(--accent)}
#subscription .membership-symbol svg{width:26px;height:26px}
#subscription .membership-expand-hint{display:block;margin-top:5px;font:400 16px/1.5 system-ui,sans-serif;color:var(--muted)}
#subscription .membership-summary>.membership-badge:not(:empty){padding:6px 10px;border-radius:9px;background:var(--card);color:var(--accent);font-size:16px;line-height:1.4;white-space:normal;text-align:center}
#subscription.membership-active .membership-summary>.membership-badge:not(:empty){background:#e7eee3;color:#43613e}
#subscription .membership-summary>.membership-chevron{grid-column:4;grid-row:1;box-shadow:none;border-color:var(--line);background:var(--card)}
#subscription[open]>.membership-summary{border-bottom:1px solid var(--line)}
#subscription>.membership-body,#subscription.membership-active>.membership-body{padding:24px}
#subscription>.membership-art{display:none!important}
#subscription .membership-active-heading>div,#subscription .membership-active-heading #billing-active-badge{display:none}
#subscription .membership-active-heading{justify-content:flex-end}
#subscription .membership-features{gap:12px}
#subscription .membership-features>li{min-width:0;padding:0}
#subscription .membership-features>li+li{padding-top:12px}
#subscription .membership-features h3{margin:0 0 4px;font:600 16px/1.5 system-ui,sans-serif}
#subscription .membership-features p{font-size:16px;line-height:1.5}
#subscription .membership-body #billing-status{margin-top:18px;color:var(--ink)}
#subscription.membership-active .membership-body #billing-status{margin-top:12px}
#subscription .membership-body>.cabinet-actions{gap:12px;align-items:center;flex-wrap:wrap}
#subscription .membership-body>.cabinet-actions>.text-button{font-size:16px}
#subscription #billing-cancel{color:var(--muted);text-decoration:underline;text-underline-offset:4px}
#subscription .membership-magazine-note{margin:20px 0 0;padding:14px 0 0;border:0;border-top:1px solid var(--line);line-height:1.6}
@media(max-width:600px){
 #subscription>.membership-summary{grid-template-columns:40px minmax(0,1fr) 32px;gap:8px 12px;padding:18px 16px}
 #subscription .membership-symbol{width:40px;height:40px;border-radius:12px}
 #subscription .membership-summary h2{font-size:19px}
 #subscription .membership-summary>.membership-chevron{grid-column:3;grid-row:1;width:32px;height:32px;flex-basis:32px}
 #subscription .membership-summary>.membership-badge:not(:empty){grid-column:2;grid-row:2;justify-self:start;text-align:left}
 #subscription .membership-expand-hint{font-size:16px;line-height:1.5}
 #subscription>.membership-body,#subscription.membership-active>.membership-body{padding:20px 16px}
 #subscription .membership-body>.cabinet-actions{display:flex;align-items:flex-start;gap:16px}
 .account-documents nav{flex-direction:column;align-items:flex-start;gap:12px}
}
#subscription>.membership-summary::after{display:none!important}
#subscription.membership-active>.membership-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px}
#subscription.membership-active .membership-active-heading{grid-column:2;grid-row:1;align-items:flex-start;margin:0}
#subscription.membership-active .membership-body #billing-status{grid-column:1;grid-row:1;margin:0;align-self:start}
#subscription.membership-active .membership-body>.cabinet-actions{grid-column:1/-1;grid-row:2;margin:0}
#subscription .membership-body>.cabinet-actions:not(:has(>:not([hidden]))){display:none}
@media(max-width:600px){
 #subscription.membership-active>.membership-body{grid-template-columns:minmax(0,1fr);gap:14px}
 #subscription.membership-active .membership-active-heading{grid-column:1;grid-row:2;justify-content:flex-start}
 #subscription.membership-active .membership-active-heading .membership-capabilities{margin:0}
 #subscription.membership-active .membership-body>.cabinet-actions{grid-column:1;grid-row:3}
}
/* Compact subscription card on phones; keep all text at least 16px. */
@media(max-width:600px){
 #subscription.membership-card{margin:18px 0;border-radius:16px}
 #subscription>.membership-summary{grid-template-columns:32px minmax(0,1fr) 30px;gap:5px 10px;padding:14px}
 #subscription .membership-symbol{width:32px;height:32px;border-radius:10px}
 #subscription .membership-symbol svg{width:22px;height:22px}
 #subscription .membership-summary h2{font-size:18px;line-height:1.35}
 #subscription .membership-summary>.membership-chevron{width:30px;height:30px;flex-basis:30px}
 #subscription .membership-expand-hint{margin-top:4px;line-height:1.35}
 #subscription.membership-active .membership-expand-hint{display:none}
 #subscription .membership-summary>.membership-badge:not(:empty){padding:3px 8px;line-height:1.35}
 #subscription>.membership-body,#subscription.membership-active>.membership-body{padding:14px}
 #subscription.membership-active>.membership-body{grid-template-columns:auto minmax(0,1fr);gap:12px 16px}
 #subscription.membership-active .membership-body #billing-status{grid-column:1/-1;grid-row:1;line-height:1.5}
 #subscription.membership-active .membership-active-heading{grid-column:1;grid-row:2;align-self:center}
 #subscription.membership-active .membership-body>.cabinet-actions{grid-column:2;grid-row:2;justify-content:flex-end;align-items:center;align-self:center}
 #subscription.membership-active #billing-cancel{padding:0;line-height:1.5;text-align:right}
 #subscription .membership-magazine-note{padding-top:12px;margin-top:14px;line-height:1.5}
 #subscription .membership-body #billing-start,#subscription .membership-body #billing-renew{margin-top:14px}
}
/* Desktop settings use the page width and a separate subscription column. */
.account-settings{width:100%;max-width:1240px;padding-left:28px;padding-right:28px}
.account-settings #member{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.9fr);gap:24px 40px;align-items:start}
.settings-primary,.settings-sidebar{min-width:0}
.settings-primary>.profile-section:first-child{margin-top:0}
.settings-sidebar>#subscription.membership-card{margin-top:0}
.settings-sidebar>.size-display-settings{padding:22px 24px;border:1px solid var(--line);border-radius:16px;background:var(--card);margin-top:20px}
.settings-sidebar>.size-display-settings h2{font-size:20px;margin:0 0 16px}
.account-settings #member>.account-documents{grid-column:1/-1;margin-top:0}
@media(max-width:760px){
 .account-settings{padding-left:18px;padding-right:18px}
 .account-settings #member{display:flex;flex-direction:column;gap:0}
 .settings-primary,.settings-sidebar{display:contents}
 .settings-primary>*{order:1;width:100%;box-sizing:border-box}
 .settings-sidebar>#subscription{order:0;width:100%;box-sizing:border-box}
 .settings-sidebar>.size-display-settings{order:2;width:100%;box-sizing:border-box}
 .settings-primary>#email-notifications{order:3}
 .settings-primary>#delete-account{order:4;width:auto}
 .account-settings #member>.account-documents{order:5;width:100%;margin-top:28px}
}
.settings-sidebar>.account-documents{margin:24px 0 0;padding-top:0;border-top:0}
.settings-sidebar>.account-documents nav{flex-direction:column;align-items:flex-start;gap:10px}
@media(max-width:760px){.settings-sidebar>.account-documents{order:5;width:100%;box-sizing:border-box;margin-top:28px}}
.account-settings:has(#member[hidden]){max-width:650px}
@media(min-width:761px){
 .account-settings:has(#member[hidden]){max-width:496px}
 #auth-form .auth-submit-row>#submit-auth{min-width:144px;padding-inline:24px}
 #auth-form>#resend{justify-self:start;text-align:left}
}

@media(min-width:761px){
 .settings-sidebar #subscription>.membership-summary{grid-template-columns:40px minmax(0,1fr) 36px;gap:6px 14px;padding:20px}
 .settings-sidebar #subscription .membership-symbol{width:40px;height:40px}
 .settings-sidebar #subscription .membership-summary>.membership-chevron{grid-column:3;grid-row:1}
 .settings-sidebar #subscription .membership-summary>.membership-badge:not(:empty){grid-column:2;grid-row:2;justify-self:start;text-align:left}
 .settings-sidebar #subscription .membership-summary h2{font-size:20px}
}
@media(min-width:761px){
 .account-settings:has(#member:not([hidden])){max-width:1120px;padding-left:40px;padding-right:40px}
 .account-settings #member{grid-template-columns:minmax(0,.82fr) minmax(320px,.92fr);column-gap:24px;width:calc(100% - 96px);max-width:100%;margin-left:auto;margin-right:auto}
}
/* A static, compact subscription block in settings. */
#subscription>.membership-summary{cursor:default;border-bottom:1px solid var(--line);grid-template-columns:40px minmax(0,1fr);padding:16px;gap:6px 12px}
#subscription .membership-summary h2{font-size:18px;line-height:1.35}
#subscription .membership-summary>.membership-badge:not(:empty){grid-column:2;grid-row:2;padding:3px 8px;justify-self:start}
#subscription .membership-symbol{width:36px;height:36px;border-radius:10px}
#subscription .membership-expand-hint{font-size:16px;line-height:1.4;margin-top:4px}
#subscription>.membership-body,#subscription.membership-active>.membership-body{padding:16px;gap:12px}
#subscription .membership-body #billing-status{line-height:1.5}
.settings-sidebar>.size-display-settings{padding:16px;margin-top:16px;border-radius:14px}
.settings-sidebar>.size-display-settings h2{font-size:18px;margin-bottom:12px}
.settings-sidebar>.account-documents{margin-top:20px}
@media(min-width:761px){
 .account-settings:has(#member:not([hidden])){max-width:1000px}
 .account-settings #member{width:100%;max-width:860px;grid-template-columns:minmax(0,.88fr) minmax(300px,1fr);column-gap:24px;margin-left:0;margin-right:auto}
 .settings-sidebar #subscription>.membership-summary{grid-template-columns:36px minmax(0,1fr);padding:16px;gap:6px 12px}
 .settings-sidebar #subscription .membership-summary h2{font-size:18px}
 .settings-sidebar #subscription .membership-symbol{width:36px;height:36px}
}
@media(max-width:760px){
 #subscription>.membership-summary{grid-template-columns:32px minmax(0,1fr);padding:14px}
 #subscription .membership-symbol{width:32px;height:32px}
 #subscription>.membership-body,#subscription.membership-active>.membership-body{padding:14px}
}
@media(min-width:761px){
 .account-settings #member{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:36px;margin-left:auto;margin-right:auto}
 .account-settings #member-heading{max-width:860px;margin-left:auto;margin-right:auto}
}
.settings-sidebar>.size-display-settings{padding:0;border:0;border-radius:0;background:none;margin-top:22px}
/* Consistent settings typography on desktop and mobile. */
.account-settings :is(#email-notifications,.size-display-settings,.account-documents)>h2{font:600 20px/1.4 system-ui,sans-serif;letter-spacing:0;color:var(--ink);margin:0 0 14px}
.account-settings :is(#profile-name-display,#member-email){font:500 18px/1.5 system-ui,sans-serif;letter-spacing:0;color:var(--ink)}
/* Profile tabs and filters must never widen the mobile page. */
@media(max-width:760px){
 .projects-page,.projects-page #projects-content,.projects-page .projects-heading,.projects-page .author-profile-block,.projects-page .profile-main-column,.projects-page .profile-side-column{min-width:0;max-width:100%;box-sizing:border-box}
 .projects-page .author-sections-bar{width:100%;min-width:0;grid-template-columns:minmax(0,1fr) 42px;column-gap:10px;row-gap:0;margin:20px 0 16px}
 .projects-page .author-sections-bar .author-navigation{display:flex;flex-wrap:nowrap;align-items:center;gap:20px;overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;scrollbar-width:thin;padding:0 0 4px;min-width:0}
 .projects-page .author-navigation>a{flex:none;white-space:nowrap;margin:0;font-size:16px}
 .projects-page .author-sections-bar>.profile-tabs-settings{align-self:start;margin-top:4px;width:40px;height:40px}
 .projects-page .profile-tab-actions{min-width:0;min-height:54px;padding:8px 0;justify-content:flex-end}
 .projects-page .profile-tab-actions .button{max-width:100%;min-width:0;white-space:normal;text-align:center}
 :root body .projects-page .project-list-controls{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0;min-width:0;max-width:100%}
 :root body .projects-page .project-list-controls>label{flex:0 1 auto;min-width:0;max-width:100%;margin:0}
 :root body .projects-page .project-list-controls .site-filter-select{flex-wrap:wrap;width:auto;max-width:100%;min-width:0;gap:8px}
 :root body .projects-page .project-list-controls .site-filter-select>.site-select-trigger{flex:0 1 auto;max-width:100%;min-width:0}
 .projects-page .project-list-controls .site-select-trigger>span:first-child{white-space:normal;overflow-wrap:anywhere}
 .projects-page .project-list-controls .site-select-menu{max-width:calc(100vw - 36px);box-sizing:border-box}
 .projects-page .projects-grid,.projects-page .author-description-list{min-width:0;max-width:100%}
}
@media(max-width:760px){.author-about-card [data-about-display]>button[data-about-edit]{display:none}}

/* Keep description form tracks inside the card, including long labels and usage tables. */
.author-description-editor form,.author-description-editor .description-source{grid-template-columns:minmax(0,1fr);min-width:0}
.author-description-editor form>*,.author-description-editor .description-source>*,.author-description-editor label,.author-description-editor fieldset{min-width:0;max-width:100%;box-sizing:border-box}
.author-description-editor :is(input:not([type=checkbox]),textarea,select,.site-select){min-width:0;max-width:100%}
.author-description-editor .description-search-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.author-description-editor :is(h1,h2,h3,legend){overflow-wrap:anywhere}
@media(max-width:540px){
 :is(.author-description-editor,.project-editor-page).description-editor-page{padding:20px;min-width:0;max-width:100%}
 .author-description-editor .description-search-fields{grid-template-columns:minmax(0,1fr)}
 .author-description-editor .description-source>h3{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 8px}
 .author-description-editor .description-source>h3>.description-section-optional{margin-left:0}
}

.author-about [data-about-copy].about-copy-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.author-about-expand{display:block;margin-top:8px;min-height:36px;text-decoration:underline;text-underline-offset:4px;font-size:var(--text-small-size,16px)}
.author-about-expand[hidden]{display:none}

.mobile-create-project{display:none}
@media(max-width:760px){
 .projects-page .author-navigation>a:not([href$="view=projects"]){display:none}
 .projects-page .author-sections-bar .profile-tabs-settings{display:none}
 .projects-page .author-sections-bar{grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
 .projects-page .author-sections-bar>.profile-tab-actions{grid-column:2;grid-row:1;min-height:0;padding:0;justify-self:end}
 .projects-page .profile-tab-actions>.mobile-create-project{display:inline-flex}
 .projects-page .author-sections-bar .profile-tab-actions .button{padding:10px 12px;min-height:44px}
 .projects-page .projects-grid:has(>.project-card){grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
 .projects-page :is(.project-card-main,.project-card-photo)>img{height:auto;aspect-ratio:3/4;object-fit:cover}
 .projects-page :is(.project-card-main,.project-card-photo)>img.project-category-placeholder{padding:10px;object-fit:contain;box-sizing:border-box}
 .projects-page .project-card-copy{padding:10px}
 .projects-page .project-card h2{font-size:16px;line-height:1.4;margin:10px 0}
 .projects-page .project-card-meta{flex-wrap:wrap;gap:8px}
 .projects-page .project-status{padding:3px 7px;border-radius:8px}
 .projects-page .project-card-menu{top:8px;right:8px}
 .projects-page .project-card-menu>summary{width:34px;height:34px}
}
@media(max-width:760px){
 .favorites-page .favorites-heading>.back-link{display:none!important}
 .projects-page .profile-tab-actions>a[href="/projects?new=1"]{display:none}
 .projects-page .author-sections-bar>.profile-tab-actions:has(>a[href="/projects?new=1"]:only-child){display:none}
}
@media(max-width:760px){
 #projects-content:has(>#project-form)>[data-project-back],
 #projects-content:has(>.description-editor-page)>[data-description-back],
 .notifications-page>.back-link{display:none!important}
}

@media(max-width:760px){
 .projects-page .author-sections-bar[data-mobile-descriptions="true"] .author-navigation>a[href$="view=descriptions"]{display:block}
 .projects-page .author-sections-bar[data-mobile-default="descriptions"] .author-navigation>a[href$="view=descriptions"]{order:-1}
 .projects-page .author-sections-bar:has(>.mobile-filter-open){grid-template-columns:minmax(0,1fr) auto 42px}
 .projects-page .author-sections-bar>.mobile-filter-open{grid-column:3;grid-row:1;position:relative;width:42px;height:42px;min-width:42px;padding:0;margin:0;border-radius:50%}
 .projects-page .author-sections-bar>.mobile-filter-open>span:not([data-mobile-filter-count]){display:none}
 .projects-page .author-sections-bar>.mobile-filter-open>[data-mobile-filter-count]:not([hidden]){position:absolute;top:-6px;right:-5px;min-width:20px;height:20px}
 .projects-page .author-sections-bar .author-navigation{overflow:visible;flex-wrap:wrap;gap:18px}
 #add-yarn{display:none!important}
}
/* Comments use the feed's author row, quiet actions and compact composer. */
:root body :is(.comment-card,.project-comment)>:is(header,.project-comment-author){position:relative;padding-right:34px}
:root body :is(.comment-card,.project-comment)>:is(.comment-actions,.project-comment-actions){color:var(--muted);gap:4px 14px}
:root body :is(.comment-card,.project-comment)>:is(.comment-actions,.project-comment-actions) .text-button{color:var(--muted);font-weight:400}
:root body :is(.comment-card,.project-comment)>:is(.comment-actions,.project-comment-actions) .comment-like{margin-left:auto;order:2}
:root body :is(.comment-card,.project-comment) .comment-like[aria-pressed=true]{color:var(--accent)}
.comment-actions-menu{position:absolute;top:0;right:0;z-index:3}
.comment-actions-menu>summary{display:grid;place-items:center;width:30px;height:30px;padding:0;list-style:none;border:0;border-radius:50%;color:var(--muted);font-size:22px;line-height:1;cursor:pointer}
.comment-actions-menu>summary::-webkit-details-marker{display:none}
.comment-actions-menu>summary::after{display:none!important}
.comment-actions-menu>summary:hover{background:var(--soft)}
.comment-actions-menu-panel{position:absolute;right:0;top:34px;width:220px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);box-shadow:0 10px 28px #30232b22;box-sizing:border-box}
:root body .comment-actions-menu-panel>button{display:block;width:100%;min-height:42px;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--ink);text-align:left;font:400 16px/1.4 system-ui,sans-serif;cursor:pointer}
.comment-actions-menu-panel>button:hover{background:var(--soft)}
:root body .comment-actions-menu-panel>.comment-delete-action{color:#a44451}
.comment-actions-menu-panel>button+.comment-delete-action{margin-top:10px;padding-top:16px;border-top:1px solid var(--line);border-radius:0 0 8px 8px}
:root body :is(.project-card-menu-panel,.comment-actions-menu-panel):popover-open{position:fixed;inset:auto;right:auto;bottom:auto;margin:0;width:max-content;min-width:220px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}
:root body .project-card-menu-panel:popover-open>:is(a,button,span){white-space:normal;overflow-wrap:anywhere}
:root body :is(.comments-section,.project-comments) form{position:relative;gap:8px;margin:16px 0}
:root body :is(.comments-section,.project-comments) .feed-comment-input-wrap textarea{min-height:44px;max-height:144px;padding:10px 82px 10px 14px;border-radius:18px;line-height:1.5;resize:none;box-sizing:border-box}
:root body :is(.comments-section,.project-comments) .comment-send-arrow{right:6px;bottom:5px;width:34px;height:34px}
:root body :is(.comments-section,.project-comments) .comment-field-heading{position:absolute;right:48px;bottom:9px;z-index:2;margin:0}
:root body :is(.comments-section,.project-comments) .comment-field-heading>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:root body :is(.comments-section,.project-comments) .comment-help>summary{width:26px;height:26px;border:0;color:var(--muted)}
:root body :is(.comments-section,.project-comments) .comment-help>p{left:auto;right:0;top:auto;bottom:34px;max-width:calc(100vw - 80px);box-sizing:border-box}
:root body :is([data-reply-context],[data-project-reply-context]):not([hidden]){margin:0;padding:0 4px;border:0;background:none;font-size:16px;color:var(--accent)}
:root body :is([data-reply-context],[data-project-reply-context])>.text-button{min-height:28px;margin-left:10px;font-size:16px;color:var(--muted)}

@media(max-width:760px){
 .projects-page .project-detail-heading.is-own{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:12px;align-items:center}
 .projects-page .project-detail-heading .project-detail-title{margin:0;overflow-wrap:anywhere}
 .projects-page .profile-tab-actions>a[href="/projects?new-description=1"]{display:none!important}
 .projects-page .author-description-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
 .projects-page .author-description-card .project-card-copy{padding:10px}
 .projects-page .author-description-card h2{font-size:16px;line-height:1.4;margin:10px 0;overflow-wrap:anywhere}
 .projects-page .author-description-card .project-status{padding:4px 7px;font-size:var(--text-small-size,16px);line-height:1.3}
}
@media(max-width:760px){
 .projects-page .author-description-card .project-card-meta>.project-status{min-width:0;overflow-wrap:anywhere}
 .projects-page .author-description-card h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
}
@media(max-width:760px){
 :root body.favorites-page:not(.collections-page)>main{padding-top:var(--page-heading-offset,20px)}
 .favorites-page:not(.collections-page) #catalog-view>.favorites-heading{margin-top:0;padding-top:0}
 .favorites-page:not(.collections-page) .favorites-heading>h1{margin-top:0}
}
.collections-page .favorites-heading{flex-wrap:nowrap;border-bottom:0;padding-bottom:0;align-items:center}
.collections-page .collections-heading-copy{min-width:0}
.collections-page .favorites-heading h1{margin-bottom:0}
.collections-page .favorites-heading>.collection-add-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border-radius:50%;margin-left:auto}
.collections-page .collection-selection{border-bottom:0;margin-top:18px;padding-bottom:0}
@media(max-width:760px){
 .collections-page .collection-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .collections-page .collection-tile{display:flex;flex-direction:row;align-items:center;min-height:76px;padding:10px;gap:8px;border-radius:12px}
 .collections-page .collection-tile-icon{width:32px;height:36px;border-radius:10px;background:transparent}
 .collections-page .collection-tile-icon svg{width:26px;height:26px}
 .collections-page .collection-tile-copy{gap:3px}
 .collections-page .collection-tile-copy strong,.collections-page .collection-tile-copy>span{font-size:16px;line-height:1.35}
 .collections-page .collection-tile.is-selected{background:linear-gradient(115deg,#f4e9f0,#ece8f3 52%,#e6f0eb);box-shadow:none;border-color:#c4a9ba}
}
.collections-dialog .collection-cancel{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-left:12px;padding:8px 4px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--accent);font:inherit;font-size:16px;text-decoration:none}

/* Keep confirmation and cancellation actions clearly separated on every screen. */
:root body .detail-actions:has(>:is(.stash-cancel,.collection-cancel,[data-project-back],[data-description-close],[data-about-cancel],[data-close-tabs])){column-gap:28px;row-gap:12px}
:root body .detail-actions>.collection-cancel{margin-left:0}

/* Collection folders share the compact mobile appearance on desktop too. */
.collections-page .collection-tile{display:flex;flex-direction:row;align-items:center;min-height:76px;padding:10px;gap:8px;border-radius:12px}
.collections-page .collection-tile-icon{width:32px;height:36px;border-radius:10px;background:transparent}
.collections-page .collection-tile-icon svg{width:26px;height:26px}
.collections-page .collection-tile-copy{gap:3px}
.collections-page .collection-tile-copy strong,.collections-page .collection-tile-copy>span{font-size:16px;line-height:1.35}
.collections-page .collection-tile.is-selected{background:var(--collection-selection-gradient);box-shadow:none;border-color:#c4a9ba}

.collections-page .collection-tile-card{position:relative;min-width:0}
.collections-page .collection-tile-card>.collection-tile{width:100%;height:100%;padding-right:48px}
.collections-page .collection-tile-card>.collection-menu{position:absolute;right:6px;top:18px}
.collections-page .collection-tile-card>.collection-menu summary{box-sizing:border-box;width:36px;height:36px;font-size:24px;background:var(--card)}
.collections-page .collection-tile-card:has(.collection-menu[open]){z-index:21}
.collections-page .collection-menu[open]>div{top:42px}
/* Keep names away from the menu and give every folder the same structure. */
.collections-page .collection-tile-card>.collection-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px;padding:12px;min-height:116px;text-align:left}
.collections-page .collection-tile-card>.collection-tile .collection-tile-icon{width:32px;height:32px}
.collections-page .collection-tile-card>.collection-tile .collection-tile-copy{width:100%;gap:4px}
.collections-page .collection-tile-card .collection-tile-copy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:normal;word-break:normal;hyphens:none}
.collections-page .collection-tile-card>.collection-menu{top:10px;right:10px}
.collections-page .collection-tile-card>.collection-menu summary{width:32px;height:32px;font-size:22px}
@media(max-width:760px){
 .collections-page .collection-tile-card>.collection-tile{min-height:132px}
 .collections-page .collection-tile-card .collection-tile-copy strong{min-height:43.2px}
}

@media(min-width:761px){
 :root body.collections-page .favorites-heading>.collection-add-icon{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:auto;height:auto;min-height:48px;padding:12px 20px;border-radius:12px;white-space:nowrap;background:var(--soft);color:var(--accent)}
}
@media(max-width:760px){.collection-add-label{display:none}}
/* The whole collection card is a folder; no separate folder pictogram. */
.collections-page .collection-tiles{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:22px 12px;padding-top:12px}
.collections-page .collection-tile-card>.collection-tile{position:relative;min-height:88px;padding:14px 46px 14px 14px;border-radius:0 12px 12px 12px;overflow:visible;justify-content:center}
.collections-page .collection-tile-card>.collection-tile::before{content:"";position:absolute;top:-11px;left:-1px;width:54px;height:11px;border:1px solid var(--line);border-bottom:0;border-radius:8px 8px 0 0;background:var(--card)}
.collections-page .collection-tile-card>.collection-tile.is-selected::before{border-color:#c4a9ba;background:#f1e9f1}
.collections-page .collection-tile-card>.collection-tile .collection-tile-icon{display:none}
.collections-page .collection-tile-card>.collection-tile .collection-tile-copy{gap:6px}
.collections-page .collection-tile-card>.collection-menu{top:12px;right:8px}
.collections-page .collection-tile-card .collection-tile-copy strong{min-height:0}
@media(max-width:760px){
 .collections-page .collection-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 10px}
 .collections-page .collection-tile-card>.collection-tile{min-height:104px;padding:12px 12px 12px 12px;justify-content:flex-start}
 .collections-page .collection-tile-card:has(.collection-menu) .collection-tile-copy strong{padding-right:27px}
 .collections-page .collection-tile-card>.collection-menu{top:8px;right:6px}
 .collections-page .collection-tile-card>.collection-menu summary{width:28px;height:28px;font-size:20px}
 .collections-page .collection-tile-card .collection-tile-copy{height:100%}
 .collections-page .collection-tile-card .collection-tile-copy>span{margin-top:auto}
}
@media(max-width:760px){
 .collections-page .collection-tile-card>.collection-tile{min-height:84px;padding:10px;justify-content:center}
 .collections-page .collection-tile-card .collection-tile-copy{height:auto;display:grid;gap:5px}
 .collections-page .collection-tile-card .collection-tile-copy>span{margin-top:0}
 .collections-page .collection-tile-card>.collection-menu{top:7px;right:5px}
}
/* Primary creation actions share one desktop treatment. */
@media(min-width:761px){
 :root body :is(a.button:not(.mobile-create-project)[href="/projects?new=1"],a.button[href="/projects?new-description=1"],.feed-write-button,.favorites-heading>.collection-add-icon){display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;width:auto;height:auto;padding:12px 20px;border:1px solid var(--accent);border-radius:12px;background:var(--accent);color:#fff;font:500 16px/1.4 var(--font-body,system-ui,sans-serif);text-decoration:none;white-space:nowrap}
 :root body :is(a.button:not(.mobile-create-project)[href="/projects?new=1"],a.button[href="/projects?new-description=1"],.feed-write-button):not(:has(svg))::before{content:"";display:block;flex:none;width:22px;height:22px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
 :root body :is(a.button:not(.mobile-create-project)[href="/projects?new=1"],a.button[href="/projects?new-description=1"],.feed-write-button,.favorites-heading>.collection-add-icon):hover{filter:brightness(.94)}
}

.author-profile-heading .author-social{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:10px 0 0;padding:0;border:0}
.author-profile-heading .author-social nav{display:flex;align-items:center;gap:22px}
.author-profile-heading .author-social nav>a{display:inline-flex;align-items:center;gap:7px;min-height:32px;color:var(--accent);text-decoration:none}
.author-profile-heading .author-social nav>a>svg{width:23px;height:23px;flex:none}
.author-profile-heading .author-social nav>a:hover{opacity:.8}
.author-profile-heading .author-social [data-follow-author]{min-height:36px;padding:6px 12px}
@media(min-width:761px){
 :root body :is(a.button:not(.mobile-create-project)[href="/projects?new=1"],a.button[href="/projects?new-description=1"],.feed-write-button,.favorites-heading>.collection-add-icon){box-sizing:border-box;height:48px;min-height:48px;max-height:48px;align-self:center}
 :root body .favorites-heading>.collection-add-icon svg{width:22px;height:22px}
}

@media(min-width:761px){
 :root body .profile-tab-actions>.mobile-create-project{display:none}
 :root body .profile-tab-actions{gap:20px;align-items:center}
 :root body.collections-page .favorites-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px}
 :root body.collections-page .favorites-heading h1{margin:0}
 :root body.collections-page .favorites-heading>.collection-add-icon{align-self:center;justify-self:end;margin:0;box-sizing:border-box;height:48px;min-height:48px;max-height:48px;background:var(--accent);color:#fff;border:1px solid var(--accent)}
}

.author-profile-heading .author-social nav>a>.social-count-label{font-weight:400;color:var(--muted)}
@media(max-width:760px){.author-social .social-count-label{display:none!important}}
.profile-social-sheet .shared-mobile-filter-body{min-height:300px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.profile-social-sheet h2{font-size:19px}
.profile-social-sheet .people-list{margin:0;padding:0;list-style:none}
.profile-social-sheet .person-row{display:flex;align-items:center;gap:12px;padding:12px 0}
.profile-social-sheet .person-row>img{width:48px;height:48px;flex:none;object-fit:cover}
.profile-social-empty:not([hidden]){display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;text-align:center;gap:12px}
.profile-social-empty img{width:200px;height:160px;object-fit:contain}
.profile-social-empty h3{margin:0;font:600 20px/1.35 system-ui,sans-serif}
.profile-social-empty p{margin:0;max-width:300px;color:var(--muted);font-size:16px;line-height:1.5}
.profile-social-sheet [data-social-more]{display:block;margin:16px auto 0}
.profile-social-sheet [data-social-more][hidden]{display:none}

.profile-social-tabs{display:flex;gap:6px;margin:0;padding:12px 20px 0}
.profile-social-tabs>button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:44px;padding:10px 12px;border:0;border-radius:12px;background:transparent;color:var(--muted);font:500 16px/1.4 system-ui,sans-serif;cursor:pointer}
.profile-social-tabs>button[aria-selected="true"]{background:var(--collection-selection-gradient);color:var(--accent)}
.profile-social-tabs>button>span{font-weight:600}
@media(max-width:760px){.profile-social-tabs{display:none}}
@media(min-width:761px){
 :root body .profile-social-sheet{inset:0;margin:auto;width:min(560px,calc(100vw - 48px));max-height:min(680px,85dvh);height:520px;border-radius:22px;box-shadow:0 20px 70px #30232c26}
 .profile-social-sheet .shared-mobile-filter-body{flex:1;min-height:0}
 .profile-social-sheet .profile-social-empty{min-height:300px}
 .profile-social-sheet h2{font-size:22px}
}
@media(min-width:761px){
 :root body.collections-page .favorites-heading{row-gap:8px}
 :root body.collections-page .favorites-heading>.collections-heading-copy{display:contents}
 :root body.collections-page .favorites-heading .collections-heading-copy>h1{grid-column:1;grid-row:1;align-self:center}
 :root body.collections-page .favorites-heading .collections-intro{grid-column:1;grid-row:2;margin:0}
 :root body.collections-page .favorites-heading>.collection-add-icon{grid-column:2;grid-row:1;align-self:center}
}

#avatar-form .avatar-photo-choose{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);cursor:pointer;overflow:hidden}#avatar-form .avatar-photo-input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}#avatar-form .avatar-photo-choose:focus-within{outline:3px solid var(--accent);outline-offset:3px}#avatar-form .avatar-photo-choose svg{width:22px;height:22px;flex:none}

#avatar-form .avatar-photo-choose{width:max-content;max-width:100%;align-self:start;justify-self:start;flex:none;padding:10px 14px}

#avatar-form.profile-editor{position:relative;gap:10px;padding:20px;margin-top:18px;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--soft) 45%,var(--card));box-shadow:none}
#avatar-form .avatar-photo-choose{gap:10px;min-height:48px;padding:10px 16px;border-color:transparent;border-radius:12px;background:var(--card);color:var(--ink);box-shadow:0 2px 8px #30232d08;font-weight:500;transition:background .15s,border-color .15s}
#avatar-form .avatar-photo-choose svg{width:20px;height:20px;color:var(--accent);stroke-width:1.8}
#avatar-form>.subtle{margin:0;color:var(--muted);font-size:var(--text-small-size,16px);line-height:1.5}
#avatar-form>.cabinet-actions{display:flex;align-items:center;gap:16px;margin:2px 0 0;padding:0}
#avatar-form #close-avatar-editor{min-height:40px;padding:4px 0;font-size:var(--text-small-size,16px)}
@media(hover:hover){#avatar-form .avatar-photo-choose:hover{border-color:var(--line);background:var(--bg)}}
@media(max-width:480px){#avatar-form.profile-editor{padding:16px;border-radius:16px}#avatar-form .avatar-photo-choose{padding:10px 12px}}
.avatar-choice-dialog{width:min(400px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:20px;background:var(--card);color:var(--ink);box-shadow:var(--shadow)}.avatar-choice-dialog::backdrop{background:#201b245c;backdrop-filter:blur(3px)}.avatar-choice-dialog #avatar-form{margin:0;padding:24px;border:0;border-radius:0;background:var(--card);gap:14px}.avatar-choice-dialog #avatar-choice-title{margin:0 0 6px;font-family:inherit;font-size:22px;font-weight:600;letter-spacing:0}.avatar-choice-dialog #avatar-form .avatar-photo-choose{width:100%;justify-content:center;background:var(--soft);box-shadow:none}.avatar-choice-dialog #avatar-form>.subtle{text-align:center}.avatar-choice-dialog #avatar-form>.cabinet-actions{justify-content:space-between;margin-top:4px}

.avatar-choice-dialog #avatar-choice-title{padding-right:40px}.avatar-choice-dialog #avatar-form #close-avatar-editor{position:absolute;top:14px;right:14px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:var(--muted)}.avatar-choice-dialog #close-avatar-editor svg{display:block;width:24px;height:24px;stroke-width:1.8}.avatar-choice-dialog #avatar-form>.cabinet-actions:not(:has(#remove-avatar:not([hidden]))){margin:0;height:0;min-height:0;gap:0}

.avatar-crop-dialog .avatar-dialog-actions{margin-top:28px}
.avatar-save-mobile{display:none}
@media(max-width:600px){.avatar-save-desktop{display:none}.avatar-save-mobile{display:inline}.avatar-crop-dialog .avatar-dialog-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:16px}.avatar-crop-dialog .avatar-dialog-actions>[data-crop-save]{flex:1;min-width:0;width:auto}.avatar-crop-dialog .avatar-dialog-actions>[data-crop-cancel]{flex:0 0 auto;width:auto;white-space:nowrap}}

@media(min-width:601px){.avatar-crop-dialog .avatar-dialog-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:20px}.avatar-crop-dialog .avatar-dialog-actions>[data-crop-save]{flex:0 0 auto;width:auto;min-width:0;padding-inline:24px}.avatar-crop-dialog .avatar-dialog-actions>[data-crop-cancel]{flex:0 0 auto;width:auto}}

#subscription>.membership-summary{background:var(--collection-selection-gradient)}

#subscription .membership-summary>#billing-badge:not(:empty){background:transparent;padding:0;border-radius:0}
#subscription .membership-summary>#billing-badge:not(:empty){color:var(--ink)}

.project-photo-main{
 display:grid;
 grid-template: minmax(0,1fr) / minmax(0,1fr);
 place-items:center;
 width:min(100%,560px);
 aspect-ratio:1;
 background:var(--soft);
 border-radius:12px;
 overflow:hidden;
 cursor:zoom-in;
}
.project-photo-main img{width:100%;height:100%;min-height:0;object-fit:contain}
.project-photo-thumbnails{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.project-photo-thumbnails button{
 display:grid;
 width:60px;
 height:60px;
 padding:2px;
 border:2px solid transparent;
 border-radius:9px;
 background:var(--card);
 overflow:hidden;
}
.project-photo-thumbnails button[aria-pressed="true"]{border-color:var(--accent)}
.project-photo-thumbnails img{width:100%;height:100%;object-fit:cover;border-radius:5px}
.project-photo-caption{margin:8px 0 0;color:var(--muted);font-size:var(--text-small-size,16px)}

.author-description-editor,.project-form{
 --editor-content-gap:14px;
 --editor-section-gap:22px;
}
.author-description-editor form,.project-form{row-gap:var(--editor-section-gap)}
.author-description-editor .description-source,
.author-description-editor [data-description-usage]:not([hidden]),
.author-description-editor .description-source > [data-pdf-upload]:not([hidden]),
.editor-yarn-section.yarn-picker,
.project-form > section[aria-labelledby="project-photo-title"]{
 display:grid;
 row-gap:var(--editor-content-gap);
}
.author-description-editor .description-source > h3,
.author-description-editor [data-description-usage] > h3,
.author-description-editor .description-usage-yarn,
.author-description-editor .description-usage-alternatives,
:is(.author-description-editor,.project-form) .yarn-picker-actions,
.project-form > section[aria-labelledby="project-photo-title"] > :is(h2,p,.project-photos,.project-file-label){
 margin-block:0;
}
:is(.author-description-editor,.project-form) :is([data-selected],[data-photo-error],[data-description-error],#project-photos,#project-save-status):empty{
 display:none;
}

.author-description-editor .detail-actions .button[value="submit"]:is(:disabled,[aria-disabled="true"]){
 background:#e9e5e7;
 border-color:#ddd7db;
 color:#645d64;
 box-shadow:none;
 opacity:1;
 cursor:not-allowed;
}

:is(.author-description-editor,.project-form) .editor-yarn-section.yarn-picker{
 width:100%;
 min-width:0;
 max-width:none;
 max-height:none;
 box-sizing:border-box;
 overflow:visible;
}
.editor-yarn-section.yarn-picker:is([data-yarn-picker],[data-description-yarn-picker],[data-alternative-picker]){
 padding:0;border:0;border-radius:0;background:transparent;
}
:is(.author-description-editor,.project-form) .editor-yarn-section > h2{margin:0}
:is(.author-description-editor,.project-form) .editor-yarn-section > h2,
.project-form .project-instruments-field > h3{
 font:400 27px/1.3 Georgia,serif;
 color:var(--ink);
}
@media(max-width:760px){
 :is(.author-description-editor,.project-editor-page) .profile-tabs-dialog-heading h1{
  font-size:var(--page-title-size);font-family:var(--page-title-font);
 }
 .author-description-editor :is(.description-source,[data-description-usage])>h3,
 .author-description-editor .editor-yarn-section>h2,
 .project-editor-page .project-editor-section>h2,
 .project-editor-page .editor-yarn-section>h2,
 .project-editor-page .project-instruments-field>h3{font-size:22px}
}
.editor-yarn-section > [data-selected]:not(:empty){
 display:grid;
 gap:var(--editor-content-gap);
}
.editor-yarn-section > [data-selected] > .yarn-picked-entry,
.editor-yarn-section > [data-selected] > .yarn-picked-entry > p{
 margin:0;
}
:is(.author-description-editor,.project-form) .editor-yarn-section label{
 margin:0;
}
:is(.author-description-editor,.project-form) .editor-yarn-section input:not([type=checkbox]),
:is(.author-description-editor,.project-form) .editor-yarn-section select{
 font-size:var(--text-small-size,16px);
}

.author-description-editor :is(.description-usage-alternatives,.description-alternative-group){
 display:grid;
 gap:var(--editor-content-gap);
 min-width:0;
}
.description-alternative-facts{margin:0;overflow-wrap:anywhere}

.editor-yarn-section > [data-selected] .yarn-characteristics-facts:not([hidden]){
 display:block;
 margin:0;
 padding:0;
 border:0;
 background:none;
 color:var(--muted);
 font-size:var(--text-small-size,16px);
 line-height:1.6;
}
.editor-yarn-section > [data-selected] .yarn-characteristics-facts > div,
.editor-yarn-section > [data-selected] .yarn-characteristics-facts dd{display:inline}
.editor-yarn-section > [data-selected] .yarn-characteristics-facts dt{
 position:absolute;
 width:1px;
 height:1px;
 overflow:hidden;
 clip-path:inset(50%);
}
.editor-yarn-section > [data-selected] .yarn-characteristics-facts div:has([data-meterage]:empty){display:none}
.editor-yarn-section > [data-selected] .yarn-characteristics-facts div:has([data-meterage]:not(:empty))::after{content:" · "}
.description-alternative-facts{line-height:1.6}

.project-editor-page .project-form{max-width:none;min-width:0}
.project-editor-page .project-editor-section{
 display:grid;
 gap:var(--editor-content-gap);
 min-width:0;
 padding-top:18px;
 border-top:1px solid var(--line);
}
.project-editor-page .project-editor-section > h2{
 margin:0 0 8px;
 font:400 27px/1.3 Georgia,serif;
 color:var(--ink);
}
.project-editor-page .profile-tabs-dialog-heading{margin-bottom:22px}
@media(max-width:540px){
 .project-editor-page .project-editor-section > h2{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:6px 8px;
 }
 .project-editor-page .project-editor-section > h2 > span{margin-left:0}
}

.project-notes-edit:not([hidden]){display:grid;gap:14px}
.project-notes-edit textarea{
 width:100%;box-sizing:border-box;resize:vertical;padding:12px 14px;
 font:inherit;color:var(--ink);background:var(--card);
 border:1px solid var(--line);border-radius:8px;
}
.project-notes-edit [role="alert"]{margin:0;color:#943b50}

.project-notes-heading-with-edit{display:flex;align-items:center;gap:8px}
.project-notes-heading-with-edit>button{width:44px;height:44px;padding:0;flex:none;display:grid;place-items:center}

.projects-page .project-public-layout,.model-photo-layout.detail-layout{
 display:grid;
 grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
 gap:36px;
}
.projects-page .project-photo-main,.model-photo-layout .project-photo-main{
 box-sizing:border-box;
 border:0;
 padding:0;
}
@media(max-width:760px){
 .projects-page .project-public-layout,.model-photo-layout.detail-layout{grid-template-columns:minmax(0,1fr);gap:24px}
}

.project-private-notes-heading{margin-bottom:0}
.project-private-notes-heading > span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-private-notes-caption{margin:-4px 0 12px;margin-inline-start:30px}

.project-journal{display:grid;align-content:start;gap:24px}
.project-detail-section{display:grid;gap:12px;min-width:0}
.project-journal .project-detail-section > :is(h2,p,.facts){margin-block:0}
.project-private-notes-header{min-width:0}
.project-private-notes-header > h2{margin-block:0}
.project-private-notes-header > .project-private-notes-caption{margin-block:-4px 0}

.project-yarn-sheet .project-yarn-sheet-illustration{display:none}
.project-yarn-sheet>[data-stash-panel].is-empty>:is(.yarn-stash-title,.yarn-stash-empty-link){display:none}
.project-yarn-sheet>[data-stash-panel].is-empty>p{margin:0}

.project-instrument-sheet>.project-form{
 display:flex;flex-direction:column;max-width:none;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;
}
.project-instrument-sheet .shared-mobile-filter-body{display:grid;gap:16px}
.project-instrument-sheet :is(select,input){box-sizing:border-box}
@media(min-width:761px){
 dialog.project-instrument-sheet{inset:0;width:min(440px,calc(100% - 40px));margin:auto;border-radius:20px}
}
.project-editor-page .project-notes-sheet-section+.project-notes-sheet-section{padding-top:0;border-top:0}
.project-notes-sheet-section>:is(.project-notes-group-heading,.project-notes-sheet-open,.project-notes-preview){display:none}
@media(max-width:760px){
 .project-notes-sheet-section>:is(.project-notes-inline-heading,.project-notes-edit,textarea),
 .project-editor-page .project-notes-sheet-section>.project-notes-inline-heading{display:none}
 .project-notes-sheet-section>.project-notes-group-heading{
  display:block;margin:0;font:400 27px/1.3 Georgia,serif;color:var(--ink);
 }
 .project-notes-sheet-section>.project-notes-sheet-open{
  display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;text-align:left;
 }
 .project-notes-sheet-section>:is(.project-notes,.project-notes-preview:not([hidden])){
  display:block;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;
 }
 .project-notes-sheet-open svg{flex:none}
 .project-notes-sheet .shared-mobile-filter-body{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
 .project-notes-sheet:has(>footer) .shared-mobile-filter-body{padding-bottom:20px}
 .project-notes-sheet .project-notes{margin:0;overflow-wrap:anywhere}
 .project-notes-sheet .project-private-notes-caption{margin:0 0 8px}
 .project-notes-sheet .project-notes-edit-trigger:not([hidden]){display:grid;place-items:center;margin:0 0 8px auto;width:44px;height:44px;padding:0}
 .project-notes-sheet textarea{display:block;width:100%;box-sizing:border-box}
 .yarn-catalog-dialog.project-yarn-sheet[open]{
  position:fixed;inset:auto 0 0;width:100%;max-width:none;height:90svh;max-height:90dvh;margin:0;
  display:flex;flex-direction:column;overflow:hidden;
  padding:0 0 calc(20px + env(safe-area-inset-bottom))!important;
  border:1px solid var(--line);border-radius:22px 22px 0 0;background:var(--card);color:var(--ink);
 }
 .project-yarn-sheet::backdrop{background:#30272d66}
 .project-yarn-sheet>.yarn-catalog-heading{
  flex:none;gap:16px;margin:0 0 20px;padding:18px 20px;
  border-bottom:1px solid var(--line);background:var(--card);
 }
 .project-yarn-sheet>.yarn-catalog-heading h3{font:600 22px/1.3 system-ui,sans-serif}
 .project-yarn-sheet [data-close-catalog]{
  border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--accent);
 }
 .project-yarn-sheet>.yarn-picker-source-tabs{display:flex;flex:none;margin-inline:20px}
 .project-yarn-sheet>:is(.yarn-picker-catalog-content,[data-stash-panel]){
  flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;
 }
 .project-yarn-sheet>.yarn-picker-catalog-content{margin-inline:20px}
 :root body .project-yarn-sheet input[type="search"]:focus-visible{outline-offset:-2px}
 .project-yarn-sheet>.yarn-picker-catalog-content:has([data-search]:placeholder-shown):not([hidden]){
  display:flex;flex-direction:column;
 }
 .project-yarn-sheet .yarn-picker-catalog-content:has([data-search]:placeholder-shown)>.project-yarn-sheet-illustration{
  display:grid;flex:1;place-items:center;min-height:0;
 }
 .project-yarn-sheet>[data-stash-panel].is-empty:not([hidden]){align-content:center;justify-items:center;text-align:center}
 .project-yarn-sheet>[data-stash-panel].is-empty>.project-yarn-sheet-illustration{display:block}
 .project-yarn-sheet-illustration img{display:block;width:min(220px,60vw);height:auto;max-height:24svh;object-fit:contain}

 :is([data-yarn-picker],.yarn-picker) .project-yarn-sheet>[data-stash-panel]{
  width:auto;margin-inline:20px;
 }


}



.published-description-page .description-yarn-details{margin-block:0}

.projects-page .project-yarn-line{font-size:var(--text-small-size,16px);line-height:1.65}
.projects-page .project-yarn-link{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.projects-page .project-yarn-facts{color:var(--muted);font-size:inherit;line-height:inherit}

.model-pattern-heading{display:flex;align-items:center;gap:8px}
.model-pattern-heading > svg{flex:none}

:root{--detail-bottom-space:80px}
#detail-view{padding-block-end:var(--detail-bottom-space)}
@media(max-width:760px){
 :root{--detail-bottom-space:60px}
}
@media(max-width:480px){
 :root{--detail-bottom-space:50px}
}

.detail-share-button.icon-button{display:none}
#detail-share-status{position:fixed;z-index:100;bottom:calc(76px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:10px 16px;border-radius:12px;background:var(--ink);color:var(--card);font-size:var(--text-small-size,16px)}
@media(max-width:760px){
 .detail-share-button.icon-button{display:grid;place-items:center;flex:none;width:44px;height:44px}
 .detail-nav .detail-save-actions{justify-content:flex-end;flex-wrap:wrap}
}

.detail-title-layout .project-photo-main{
 display:grid;
 width:min(100%,560px);
 aspect-ratio:1;
 border-radius:12px;
}
.detail-title-layout .project-photo-main img{
 display:block;
 width:100%;
 height:100%;
 max-height:none;
 object-fit:cover;
}

body .compact-detail-nav{
 display:grid;
 grid-template-columns:max-content minmax(0,1fr);
 grid-template-rows:44px;
 align-items:center;
 margin:0;
 padding:18px 0 8px;
}
body .compact-detail-nav>a.back-link{height:44px;margin:0;white-space:nowrap}
.compact-detail-nav>.detail-save-actions{
 display:flex;
 justify-content:flex-end;
 align-items:center;
 flex-wrap:nowrap;
 gap:6px;
 margin:0;
}
.compact-detail-nav>.detail-save-actions>.icon-button{box-sizing:border-box;height:44px;margin:0}
.compact-detail-nav .detail-heart{width:auto;min-width:44px;height:44px;padding:0 10px;gap:5px;border-radius:22px;font-size:var(--text-small-size,16px);font-variant-numeric:tabular-nums}
.detail-heart svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}
.detail-heart[aria-pressed="true"] svg{fill:currentColor}
@media(max-width:480px){
 .compact-detail-nav{gap:6px}
 body .compact-detail-nav>a.back-link{padding-inline:9px!important}
}

.detail-title-layout>.detail-title-column>h1{
 font:400 clamp(32px,4vw,48px)/1.15 Georgia,serif;
 letter-spacing:-1px;
 color:var(--ink);
 margin:18px 0 22px;
}
@media(max-width:760px){
 .detail-title-layout>.detail-title-column{display:contents}
 .projects-page:has(#projects-content>.compact-detail-nav),
 :root body.favorites-page:not(.collections-page)>main:has(>#detail-view:not([hidden])){padding-top:0}
 body .compact-detail-nav{padding-top:16px}
 .detail-title-layout>.detail-title-column>h1{grid-row:1;margin:0;overflow-wrap:anywhere}
 .detail-title-layout>.detail-photo-column{grid-row:2}
}

.detail-favorite-label{white-space:nowrap}
@media(max-width:760px){
 .detail-favorite-label{display:none}
}

.published-description-page .detail-title-layout{padding-bottom:0}
.published-description-page .detail-copy>p:last-child{margin-bottom:0}

#project-comments,#model-comments{margin-top:24px;padding-top:20px}
.model-photo-layout.detail-layout{padding-bottom:0}

@media(width > 760px){
 .projects-page .project-detail-heading .project-detail-title{margin:0}
}

@media(width > 760px){
 .compact-detail-nav :is(#detail-save,[data-description-favorite],[data-like-project]){
  border:0;
  border-radius:7px;
  padding-inline:16px;
  gap:8px;
  background:var(--soft);
  color:var(--accent);
 }
}

.project-detail-edit>span{display:none}
@media(width > 760px){
 .compact-detail-nav .project-detail-edit{
  width:auto;
  padding-inline:16px;
  border:0;
  border-radius:7px;
  background:var(--soft);
  color:var(--accent);
  font-size:var(--text-small-size,16px);
  text-decoration:none;
 }
 .project-detail-edit>svg{display:none}
 .project-detail-edit>span{display:inline}
}

.project-card-photo{position:relative}
.project-card-photo>img{display:block}

.projects-page .project-card-photo>img{
 display:block;
 width:100%;
 height:auto;
 aspect-ratio:1;
 object-fit:cover;
}
.projects-page .project-card-photo>img.project-category-placeholder{
 box-sizing:border-box;
 object-fit:contain;
}

.projects-page .project-card-meta>.project-status,
.projects-page .project-status-field>dd{
 display:block;
 box-sizing:border-box;
 min-width:0;
 max-width:100%;
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
}

.projects-page .project-card .project-card-meta{flex-wrap:nowrap}
.projects-page .project-card-meta>.project-card-likes{flex:none;margin-inline-start:auto}
.author-description-card .project-card-meta>.project-card-likes{padding:0;border:0;background:transparent}

:root body>main:has(>#detail-view:not([hidden]),>#projects-content>.project-detail-layout,>#projects-content.published-description-page){
 box-sizing:border-box;
 width:100%;
 max-width:1120px;
 margin:0 auto;
 padding-top:0;
 padding-inline:28px;
}
@media(max-width:760px){
 :root body>main:has(>#detail-view:not([hidden]),>#projects-content>.project-detail-layout,>#projects-content.published-description-page){
  padding-inline:18px;
 }
}

.compact-detail-nav+.project-detail-heading{margin:0 0 18px}
.project-detail-layout>.detail-photo-column{grid-row:auto;min-width:0}
.project-detail-layout .project-gallery>.project-category-placeholder{
 display:block;
 width:min(100%,560px);
 height:auto;
 max-width:none;
 max-height:none;
 aspect-ratio:1;
 object-fit:contain;
 border-radius:12px;
}

/* Reserve the header control row before its buttons mount. */
@media(min-width:761px){
 :root body:has(#detail-view:not([hidden])) .topbar{grid-template-rows:minmax(44px,auto) auto}
}
@media(max-width:760px){
 :root body:has(#detail-view:not([hidden])) .topbar{grid-template-rows:minmax(44px,auto)}
}

.collections-page .collection-tile-card:has(>.collection-menu)>.collection-tile{
 padding-bottom:54px;
}
.projects-page .project-card-photo>.project-card-menu,
.collections-page .collection-tile-card>.collection-menu{
 top:auto;
 right:8px;
 bottom:8px;
}
:is(.project-card-menu,.collection-tile-card>.collection-menu)>.project-card-menu-panel{
 top:auto;
 bottom:calc(100% + 6px);
}

.project-preview-image-link,.project-preview-title-link{display:block;color:inherit;text-decoration:none}
.projects-page .project-preview-image-link>img{display:block;width:100%;height:auto;aspect-ratio:var(--catalog-photo-ratio);object-fit:cover;object-position:center top}
.projects-page .project-preview-image-link>.project-category-placeholder{box-sizing:border-box;object-fit:contain;object-position:center}


@media(min-width:761px){#detail-save .detail-favorite-label{display:inline;white-space:nowrap}}

.project-list-controls>.profile-filter-reset{align-self:center;text-decoration:underline;text-underline-offset:3px}
.project-list-controls:not(:has(select option:checked:not([value=""])))>.profile-filter-reset{display:none}

@media(max-width:760px){
 .compact-detail-nav .detail-save-actions:has(>[data-like-project])>.detail-share-button{order:-1}
}

/* All project editor sections share one heading scale. */
.project-editor-page{--project-section-title-size:27px}
.project-editor-page :is(.project-editor-section>h2,.editor-yarn-section>h2,.project-instruments-field>h3){
 font:400 var(--project-section-title-size)/1.3 Georgia,serif;
 color:var(--ink);
}
.project-editor-page .project-editor-section>h2>label{font:inherit;color:inherit}
@media(max-width:760px){
 .project-editor-page{--project-section-title-size:22px}
}

@media(min-width:761px){
 .project-editor-page .project-editor-section>h2.project-private-editor-heading{font-size:22px}
 .project-private-editor-heading .project-private-editor-caption{font:400 var(--text-small-size,16px)/1.5 system-ui,sans-serif;color:var(--muted)}
}

.project-editor-page .project-editor-section>h2:is(#project-notes-title,.project-notes-group-heading,.project-private-editor-heading){font-size:18px}
.project-editor-page .project-editor-section>h2.project-private-editor-heading>label{display:flex;flex-direction:row;align-items:baseline;gap:0 6px;flex-wrap:wrap}
.project-private-editor-heading .project-private-editor-caption{font:400 var(--text-small-size,16px)/1.5 system-ui,sans-serif;color:var(--muted)}

.authors-page .author-directory-card>.avatar-presence{margin-top:0;align-self:flex-start}
.authors-page .author-directory-card>.author-directory-about{min-height:4.65em}

.authors-page .author-directory-card img.author-directory-avatar{width:72px;height:72px;max-width:72px;max-height:72px;object-fit:cover}

/* Icon-only edit actions match the profile settings control. */
.author-about-pencil,.project-notes-edit-trigger{display:grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:8px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--accent)}
.author-about-pencil:hover,.project-notes-edit-trigger:hover{background:var(--soft)}
.author-about:has(.author-about-pencil) .author-about-card{padding-right:60px}
.site-edit-pencil{width:20px;height:20px;flex:none;stroke-width:1.8}

:root body :is(.author-about-pencil,.profile-edit-icon,.project-notes-edit-trigger){display:inline-grid;place-items:center;padding:0;line-height:1}
:root body :is(.author-about-pencil,.profile-edit-icon,.project-notes-edit-trigger)>.site-edit-pencil{display:block;margin:0}

.author-about-heading{top:min(12px,calc((100% - 36px)/2))}

/* Companion app link keeps its own identity beside the main brand. */
.topbar .atelier-brand-pair{display:flex;align-items:center;gap:24px;flex:none;min-width:0}.topbar .atelier-brand-pair .brand{transform:none}.topbar .atelier-brand-link{color:#3f6e5f;font:27px Georgia,serif;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;gap:7px;min-height:44px}.topbar .atelier-brand-link span{font-size:22px}.topbar .atelier-brand-link:hover{color:#315548}.topbar .atelier-brand-link:focus-visible{outline:2px solid #3f6e5f;outline-offset:4px}@media(max-width:540px){.topbar .atelier-brand-pair{gap:18px}.topbar .atelier-brand-link{font-size:24px}.topbar .atelier-brand-link span{font-size:20px}.topbar .atelier-brand-pair .brand img.brand-logo{width:135px}}

/* Match the visible letter centres in the shared header. */
.topbar .atelier-brand-link span.modeya-wordmark{transform:translateY(1px)}.topbar .atelier-brand-link .modeya-wordmark>.modeya-brand-name{transform:translateY(calc(var(--modeya-logo-height) * .07))}
