/* Shared library utilities and source-detail dialog. */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.copy-primary{background:var(--accent);border-color:var(--accent);color:#fff}.copy-primary:hover{background:var(--accent-dark);color:#fff}
.library-teaser{padding-top:40px;margin-top:40px;border-top:1px solid var(--line)}
.library-section-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.library-section-heading h2{font-size:38px}.library-section-heading p:not(.eyebrow){color:var(--muted);max-width:620px;font-size:14px}.library-section-heading>.button{flex-shrink:0}
.library-detail{width:min(800px,calc(100vw - 40px));max-height:calc(100dvh - 40px);border:0;border-radius:14px;padding:0;color:var(--ink);box-shadow:0 30px 100px #24171c50;overflow:auto}.library-detail::backdrop{background:#261a2390;backdrop-filter:blur(5px)}body.library-open{overflow:hidden}.library-detail-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1;font-size:13px;color:var(--muted)}.library-detail-body{padding:27px 30px 30px}.library-detail h2{font-size:36px;margin-bottom:16px;overflow-wrap:anywhere}.library-detail .eyebrow{font-size:11px;letter-spacing:.6px;margin-bottom:10px}.library-detail-body>p{font-size:13px;line-height:1.7;color:var(--muted);margin-bottom:18px}.library-text-label{display:block;font-size:12px;font-weight:600;margin:17px 0 8px}.library-detail textarea{width:100%;height:300px;resize:vertical;border:1px solid #e0d4d9;border-radius:8px;background:#fcf9fa;color:#5f4b59;font-size:14px;line-height:1.8;padding:16px;font-family:var(--font);white-space:pre-wrap;overflow-wrap:anywhere}.library-text-versions{display:flex;flex-wrap:wrap;gap:6px 15px}.library-text-versions button{border:0;background:none;padding:7px 0;color:var(--muted);font-size:12px;border-bottom:2px solid transparent}.library-text-versions button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);font-weight:600}.library-detail-body>.library-integrity{font-size:11px;margin:7px 0 17px}.library-detail-actions{display:flex;gap:12px;flex-wrap:wrap}.library-detail-body>#library-copy-status{font-size:12px;color:var(--accent);margin:8px 0 0;min-height:20px}.library-provenance{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}.library-provenance h3{font-family:var(--font);font-size:12px;font-weight:600;margin:0 0 8px}.library-provenance p{font-size:13px;margin:0;color:var(--muted)}.library-provenance>div{display:flex;gap:20px;flex-wrap:wrap}.library-provenance .text-link{font-size:12px}.library-provenance small{display:block;color:var(--muted);font-size:10px;margin-top:8px;overflow-wrap:anywhere}.studio-empty-preview{min-height:320px;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;color:#9c858e;font-size:14px;text-align:center;padding:25px}.studio-empty-preview .icon{width:42px;height:42px;stroke-width:1}.studio-dialog.library-studio #style-view{height:100%}.studio-dialog.library-studio .studio-options{grid-template-columns:1fr}.main-nav{gap:20px}

/* A full-width creation header followed by one compact prompt library. */
body[data-page=library] .wrap{width:calc(100% - 80px);max-width:1440px}
body[data-page=library] .site-header{min-height:76px;border-bottom:0}
body[data-page=library] .main-nav{font-size:13px;gap:23px}
.library-hero{background:linear-gradient(115deg,#f8f1ed,#f8eff1 60%,#f2eeea);border-block:1px solid #ebdfe1;text-align:center;padding:36px 0 25px}
.library-hero>.wrap{display:flex;flex-direction:column;align-items:center}
.library-hero .eyebrow{font-size:10px;letter-spacing:1.7px;margin-bottom:12px}
.library-hero h1{font-size:clamp(46px,4.5vw,68px);line-height:1.02;letter-spacing:-1.7px;max-width:900px}
.library-hero h1 em{display:block}
.library-hero-description{font-size:14px;color:var(--muted);line-height:1.65;margin:16px 0 23px;max-width:620px}
.library-composer{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:10px;width:min(850px,100%);padding:10px;background:#fff;border:1px solid #dbc5cc;border-radius:14px;box-shadow:0 8px 24px #69414c0b;text-align:left}
.library-composer-input{display:flex;flex-direction:column;min-width:0;background:#fcf9fa;border:1px solid #eee4e7;border-radius:8px}
.library-composer textarea{width:100%;resize:vertical;min-height:94px;max-height:220px;padding:15px 16px;border:0;border-radius:8px;background:transparent;outline:none;font-size:15px;line-height:1.6;color:var(--ink)}
.library-composer-input:focus-within{border-color:#ba7182;box-shadow:0 0 0 2px #a92e430b}
.library-composer textarea::placeholder{color:#a18b95}
.library-composer-tools{display:flex;align-items:center;gap:7px;padding:0 10px 10px;flex-wrap:wrap}
.library-composer-tools>span{font-size:10px;color:var(--muted);margin-left:auto;max-width:145px;line-height:1.5}
.composer-tool{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 11px;border:1px solid #e3d5da;background:#fff;border-radius:6px;font-size:12px;line-height:1.4;color:#705361;white-space:nowrap}
.composer-tool>.icon{width:15px;height:15px}.composer-tool:hover,.composer-tool[aria-expanded=true]{background:#f8eff2;border-color:#c794a4;color:var(--accent)}
.library-compose-submit{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:146px;padding:14px;border:1px solid var(--accent);background:var(--accent);color:white;border-radius:8px;font-size:14px;font-weight:600;line-height:1.5;text-align:center}
.library-compose-submit>.icon:first-child{width:26px;height:26px}.library-compose-submit>.icon:last-child{width:18px;height:18px}.library-compose-submit:hover{background:var(--accent-dark)}
.library-compose-options{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:12px 4px 4px;border-top:1px solid var(--line)}
.library-compose-options label,.library-selects label{font-size:12px;display:flex;flex-direction:column;gap:7px;min-width:0}
.library-compose-options select,.library-selects select{width:100%;height:44px;padding:10px 42px 10px 13px;border:1px solid var(--line);border-radius:7px;background:#fff}
.library-intent-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 26px;margin-top:19px}
.library-intent-links a{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#835261;padding:3px 0}.library-intent-links .icon{width:13px;height:13px}.library-intent-links a>span:not([data-i18n]){padding:2px 6px;border-radius:4px;background:#eddee2;font-size:10px}
/* The old six full-size cards become a single visual shortcut row. */
.library-look-strip{padding-block:27px 30px}
.library-strip-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}
.library-strip-heading h2{font-size:27px}.library-strip-heading .text-link{font-size:12px}
.library-style-rail{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:15px}
.library-style-card{position:relative;overflow:hidden;padding:0;border:0;border-radius:9px;background:#e7dedc;aspect-ratio:1.48;text-align:left;isolation:isolate}
.library-style-card img{width:100%;height:100%;object-fit:cover;object-position:center 35%;transition:transform .2s}
.library-style-card::after{content:'';position:absolute;inset:25% 0 0;background:linear-gradient(transparent,#24151dc7);z-index:1;pointer-events:none}
.library-style-card:hover img{transform:scale(1.035)}
.library-style-card[data-open=royal] img,.library-style-card[data-open=golden] img{object-position:center 18%}
.library-style-label{position:absolute;left:12px;right:12px;bottom:25px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:14px;font-weight:500;color:white;z-index:2}
.library-style-label>.icon{width:15px;height:15px;flex-shrink:0}
.library-style-card>small{position:absolute;bottom:9px;left:12px;color:#e9dfe3;font-size:9px;z-index:2}
/* Search and categories sit together directly above the cards. */
.library-browser{padding-top:8px;scroll-margin-top:15px}
.library-filters{position:sticky;top:0;z-index:6;background:#fffefdf5;backdrop-filter:blur(12px);border-block:1px solid var(--line);padding-top:19px;scroll-margin-top:12px}
.library-all-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:17px}
.library-heading-title{display:flex;align-items:center;gap:12px}.library-all-heading h2{font-size:36px;line-height:1.1}.library-total{font-family:var(--font);font-size:12px;font-weight:500;padding:4px 8px;background:#f4e9ed;border-radius:5px;color:#986174}
.library-heading-tools{display:flex;align-items:center;gap:12px}.library-search{margin:0;width:330px;height:39px;padding:8px 12px;border-radius:7px;background:#fff}.library-search input{font-size:12px}

.library-browse-bar{display:flex;align-items:center;gap:12px;padding-block:0 14px}
.library-tabs{display:flex;align-items:center;gap:5px;flex:1;min-width:0;overflow:auto;scrollbar-width:none}.library-tabs::-webkit-scrollbar{display:none}.library-tabs>.filter{flex-shrink:0;white-space:nowrap;min-height:35px;font-size:12px;padding:8px 13px;border-radius:6px}
.library-sort-control{width:182px;flex:none}.library-sort-control label>span:not(.select-control){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.library-sort-control .select-trigger{height:36px;font-size:12px;padding-left:11px;padding-right:34px;border-radius:6px}.library-sort-control select{width:100%;height:36px;border:1px solid var(--line);border-radius:6px}
.library-filter-toggle{flex:none}.library-filter-toggle>span:last-child:not([data-i18n]){display:grid;place-items:center;width:17px;height:17px;border-radius:50%;color:#fff;background:var(--accent);font-size:10px}
.library-selects{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:16px;margin-bottom:15px;background:#f8f3f5;border:1px solid var(--line);border-radius:8px}
.library-results-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:16px 0}.library-results-heading p{font-size:11px;color:var(--muted);margin:0}.library-results-heading .text-link{font-size:11px}
/* Prompt cards share one compact, self-contained layout. */
.library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:stretch}
.library-card{min-width:0;display:flex;flex-direction:column;border:1px solid #e8dee2;border-radius:10px;background:#fff;overflow:hidden;transition:box-shadow .2s,border-color .2s}
.library-card:hover{border-color:#cfb3bd;box-shadow:0 5px 18px #69334909}
.library-placeholder{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1.65;background:#f3eeeb;color:#ab959e;border-bottom:1px solid #ebe1e5}
.library-card:nth-child(3n+2) .library-placeholder{background:#eeeee7}.library-card:nth-child(3n+3) .library-placeholder{background:#f2eaee}
.library-placeholder-center{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:10px}.library-placeholder-center>.icon{width:26px;height:26px;stroke-width:1}
.library-type{position:absolute;top:11px;left:11px;padding:3px 6px;border-radius:4px;background:#ffffffbc;font-size:9px;color:#89717b}.library-setting{position:absolute;bottom:11px;left:12px;font-size:9px;color:#917c85}
.library-card-body{padding:14px;display:flex;flex-direction:column;flex:1;min-width:0}
.library-card-source{display:flex;justify-content:space-between;align-items:start;gap:8px;font-size:9px;line-height:1.5;letter-spacing:.35px;text-transform:uppercase;color:#ae697d;margin:0 0 8px}.library-card-source>span{max-width:58%;text-align:right;color:var(--muted);text-transform:none;letter-spacing:0}
.library-card h3{font-family:var(--font);font-size:14px;line-height:1.5;font-weight:600;margin:0 0 12px;min-height:42px;overflow-wrap:anywhere}.library-card h3>a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.library-card h3 a:hover{color:var(--accent)}
.library-prompt-peek{display:block;overflow:hidden;background:#fcf9fa;border:1px solid #ebdfe4;border-radius:6px;margin-bottom:13px;color:#7f6472}
.library-prompt-peek>span{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border-bottom:1px solid #efe5e9;color:#a15c72;font-size:10px;font-weight:500}.library-prompt-peek .icon{width:12px;height:12px}
.library-prompt-peek p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.7;min-height:56px;margin:9px;overflow-wrap:anywhere}.library-prompt-peek:hover{border-color:#c999a9}
.library-card-actions{display:flex;align-items:stretch;gap:7px;margin-top:auto}.library-card-actions>.button{flex:1;min-height:36px;font-size:11px;line-height:1.4;padding:8px 7px;gap:6px;border-radius:6px}.library-card-actions .icon{width:13px;height:13px;flex:none}
.library-card-actions>.text-link{font-size:12px}.library-card-actions>.icon-button{min-height:36px;min-width:36px}
.library-pagination{display:flex;align-items:center;justify-content:center;gap:24px;margin:32px 0}.library-pagination span{font-size:12px;color:var(--muted)}.library-pagination .button{font-size:12px;min-height:39px}.library-pagination button:disabled{opacity:.4;cursor:default}
.library-guide{display:grid;grid-template-columns:1fr 1.1fr;gap:90px;margin-top:45px;padding-block:40px;border-top:1px solid var(--line)}.library-guide-intro h2{font-size:42px;margin-bottom:17px}.library-guide-intro>p:not(.eyebrow){max-width:450px;color:var(--muted);font-size:14px;line-height:1.8}.library-guide .eyebrow{font-size:10px}.library-guide .text-link{font-size:13px}.library-faq>h3{font-size:28px;margin-bottom:12px}.library-faq>details{border-bottom:1px solid var(--line)}.library-faq summary{font-size:13px;padding-block:15px}.library-faq summary::after{top:12px}.library-faq details p{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:16px;padding-right:20px}

@media(min-width:1700px){.library-hero h1{font-size:72px}.library-style-card{aspect-ratio:1.65}}
@media(max-width:1200px){body[data-page=library] .wrap{width:calc(100% - 48px)}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.library-composer-tools>span{display:none}.library-tabs>.filter{padding-inline:10px}.library-style-label{font-size:12px}.library-style-rail{gap:12px}.library-style-card{aspect-ratio:1.18}}
@media(max-width:900px){body[data-page=library] .site-header{flex-wrap:wrap;padding-top:15px;gap:10px}body[data-page=library] .main-nav{order:3;width:100%;overflow:auto;white-space:nowrap;gap:24px;min-height:42px}.library-hero h1{font-size:53px}.library-style-rail{display:grid;grid-auto-flow:column;grid-auto-columns:170px;grid-template-columns:none;overflow:auto;scroll-snap-type:x mandatory;padding-bottom:8px;scrollbar-width:thin;scrollbar-color:#dec6ce transparent}.library-style-card{scroll-snap-align:start;aspect-ratio:1.35}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-browse-bar{flex-wrap:wrap;gap:10px}.library-tabs{flex-basis:100%;padding-bottom:4px}.library-sort-control{margin-left:auto}.library-all-heading{gap:16px}.library-search{width:265px}.library-selects{grid-template-columns:repeat(2,minmax(0,1fr))}.library-guide{gap:35px}.library-guide-intro h2{font-size:35px}}
@media(max-width:640px){body[data-page=library] .wrap{width:calc(100% - 32px)}body[data-page=library] .site-header{padding-top:12px;gap:7px}.library-hero{padding-block:25px 18px}.library-hero .eyebrow{font-size:9px;letter-spacing:1.1px;margin-bottom:10px}.library-hero h1{font-size:42px;line-height:1.07;letter-spacing:-1px}.library-hero-description{font-size:12px;line-height:1.7;margin:13px 0 18px;max-width:325px}.library-composer{grid-template-columns:1fr;padding:8px;gap:8px;border-radius:11px}.library-composer textarea{font-size:16px;min-height:92px;padding:12px}.library-composer-tools{padding:0 8px 8px}.composer-tool{min-height:35px;padding:7px 9px;font-size:11px}.library-composer-tools>.composer-tool{flex:1}.library-compose-submit{min-height:43px;flex-direction:row;gap:10px;padding:10px;font-size:13px}.library-compose-submit>.icon:first-child{width:17px;height:17px}.library-compose-submit>.icon:last-child{margin-left:auto}.library-compose-submit>span{margin-left:auto}.library-compose-options{grid-template-columns:1fr;gap:12px}.library-intent-links{gap:6px 14px;margin-top:14px}.library-intent-links a{font-size:10px;gap:5px}.library-intent-links a:first-child{flex-basis:100%;justify-content:center}.library-look-strip{padding-block:22px}.library-strip-heading{margin-bottom:12px}.library-strip-heading h2{font-size:25px}.library-strip-heading .text-link{font-size:11px}.library-style-rail{grid-auto-columns:145px;gap:10px}.library-style-label{font-size:12px;left:10px;right:10px;bottom:25px}.library-style-card>small{font-size:8px;left:10px}.library-browser{padding-top:0}.library-filters{padding-top:15px}.library-all-heading{flex-wrap:wrap;gap:13px;padding-bottom:12px}.library-all-heading h2{font-size:30px}.library-heading-title{gap:10px}.library-total{font-size:11px}.library-heading-tools{width:100%;gap:8px}.library-search{flex:1;width:auto;height:40px}.library-search input{font-size:16px;min-width:0}.library-browse-bar{padding-bottom:11px}.library-tabs{gap:4px}.library-tabs>.filter{font-size:11px;min-height:34px;padding-inline:11px}.library-sort-control{width:185px;margin-left:0;flex:1}.library-sort-control .select-trigger{font-size:11px}.library-selects{gap:12px 10px;padding:12px}.library-selects label{font-size:11px}.library-results-heading{margin-block:12px}.library-results-heading p,.library-results-heading .text-link{font-size:10px}.library-grid{grid-template-columns:1fr;gap:17px}.library-placeholder{aspect-ratio:1.7}.library-card-body{padding:15px}.library-card-source{font-size:10px}.library-card h3{font-size:16px;min-height:0;line-height:1.5}.library-prompt-peek>span{font-size:11px}.library-prompt-peek p{font-size:12px;min-height:61px}.library-card-actions>.button{font-size:12px;min-height:40px}.library-pagination{justify-content:space-between;gap:8px;margin-block:25px}.library-pagination .button{font-size:11px;padding:9px 10px}.library-pagination span{font-size:11px;white-space:nowrap}.library-guide{grid-template-columns:1fr;gap:24px;margin-top:28px;padding-block:28px}.library-guide-intro h2{font-size:34px}.library-guide-intro>p:not(.eyebrow){font-size:13px}.library-detail{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.library-detail-header{padding:8px 13px}.library-detail-body{padding:21px 18px}.library-detail h2{font-size:29px}.library-detail textarea{font-size:16px;height:250px}.library-detail-actions{flex-direction:column}.library-detail-actions>.button{width:100%}.library-section-heading{flex-direction:column;align-items:start}.library-section-heading h2{font-size:32px}.studio-empty-preview{min-height:180px}html[lang=hi] .library-hero h1{font-size:35px;line-height:1.3}html[lang=hi] .library-style-label{font-size:11px}html[lang=hi] .library-all-heading h2{font-size:27px}}
@media(prefers-reduced-motion:reduce){.library-style-card img,.library-card{transition:none}}

/* The library is home; secondary destinations live in the footer. */
.site-header,body[data-page=library] .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;min-height:80px;padding-block:14px}
.brand-wordmark{min-width:0;line-height:1.2;text-wrap:balance}
.brand>.icon{flex:none}
.site-header>.brand{justify-self:start;min-width:0;max-width:100%;white-space:normal}
.header-create{justify-self:end;min-height:42px;padding:10px 15px;font-size:13px;line-height:1.5;white-space:nowrap;border-radius:8px;gap:8px}
.header-create .icon{width:16px;height:16px;flex:none}
.site-footer{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:'brand tagline language' 'links links links' 'disclaimer disclaimer disclaimer';gap:16px 28px;padding-block:28px}
.site-footer>.brand{grid-area:brand}.site-footer .footer-tagline{grid-area:tagline;order:0;width:auto}.site-footer .language-control{grid-area:language;margin:0;justify-self:end}.site-footer>p{grid-area:disclaimer;order:0}
.footer-nav{grid-area:links;display:flex;flex-wrap:wrap;align-items:center;gap:4px 28px;padding-block:6px;border-block:1px solid var(--line);font-size:13px;color:var(--muted)}
.footer-nav>a,.footer-nav>.saved-nav{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;margin:0;font:inherit;line-height:1.6;white-space:nowrap}
.footer-nav>a:hover,.footer-nav>.saved-nav:hover{color:var(--accent)}.footer-nav .icon{width:16px;height:16px}.footer-nav #saved-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:50%;background:#f4e6eb;color:var(--accent);font-size:11px;line-height:1}
/* Consistent control sizes, readable small text, and complete action labels. */
.library-hero-description{line-height:1.8;text-wrap:pretty}
.library-composer textarea{flex:1;min-height:100px;line-height:1.7}
.library-composer-tools{gap:8px;padding:0 12px 12px}
.library-composer-tools>span{font-size:11px;max-width:none;white-space:nowrap;line-height:1.5}
.library-composer-tools .composer-tool{min-height:38px;font-size:12px;padding:8px 11px}
.library-compose-submit{min-height:152px;gap:10px;font-size:14px;white-space:nowrap}
.library-compose-submit>span{line-height:1.6}
.library-intent-links{row-gap:10px}.library-intent-links a{font-size:12px;min-height:30px;white-space:nowrap}
.library-intent-links a>span:not([data-i18n]){font-size:11px}
.library-strip-heading{min-height:36px}.library-strip-heading .text-link{min-height:36px;white-space:nowrap}
.library-style-label{align-items:end;line-height:1.5;bottom:29px}
.library-style-label>[data-i18n]{min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:normal;text-wrap:pretty}
.library-style-label>.icon{margin-bottom:3px}
.library-style-card>small{font-size:10px;line-height:1.4;left:12px;right:12px;bottom:10px;white-space:nowrap}
.library-all-heading{align-items:center;min-height:62px}.library-heading-title{min-width:0}.library-heading-title h2{white-space:nowrap}
.library-heading-tools{min-width:0}.library-search{height:44px;min-height:44px;margin:0;padding:10px 13px;gap:9px}.library-search .icon{width:17px;height:17px;flex:none}.library-search input{min-width:0;width:100%;font-size:13px;line-height:22px;text-overflow:ellipsis}

.library-browse-bar{align-items:center;gap:12px}.library-tabs>.filter{min-height:40px;line-height:1.5;font-size:13px;padding:9px 13px}
.library-sort-control{width:180px}.library-sort-control .select-trigger{height:40px;line-height:22px;font-size:13px;padding:8px 42px 8px 13px}
.library-filter-toggle{height:40px;min-height:40px;padding:9px 12px;font-size:13px}
.library-selects{align-items:end}.library-selects label>span:not(.select-control){line-height:1.5}.library-selects .select-trigger,.library-compose-options .select-trigger{height:44px;padding:10px 44px 10px 14px;font-size:13px;line-height:22px}
.library-results-heading{min-height:28px;margin-block:14px}.library-results-heading p,.library-results-heading .text-link{font-size:12px;line-height:1.6}.library-results-heading .text-link{white-space:nowrap}
.library-card-body{padding:16px;gap:0}
.library-card-source{height:34px;min-height:34px;margin-bottom:7px;line-height:1.5;align-items:start;font-size:10px}
.library-card-source .library-source-name{max-width:42%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:left;color:var(--accent);font-size:10px;letter-spacing:.35px;text-transform:uppercase;min-width:0}
.library-card-source .library-model-name{max-width:56%;min-width:0;font-size:11px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-wrap:pretty;overflow-wrap:normal}
.library-card h3,html[lang=hi] .library-card h3{font-family:'DM Sans',sans-serif;font-size:15px;line-height:1.5;min-height:45px;margin:0 0 14px;letter-spacing:0;overflow-wrap:normal}
.library-card h3>a{line-height:1.5;overflow-wrap:anywhere;text-wrap:pretty}
.library-prompt-peek{margin-bottom:14px}.library-prompt-peek>span{font-size:11px;min-height:35px;line-height:1.5;padding:8px 10px}.library-prompt-peek>span>.icon{flex:none}
.library-prompt-peek p{font-family:'DM Sans',sans-serif;font-size:12px;line-height:1.7;height:61.2px;min-height:61.2px;margin:10px;overflow-wrap:anywhere}
.library-card-actions{gap:8px}.library-card-actions>.button{min-width:0;min-height:42px;font-size:12px;line-height:1.5;padding:10px 8px;gap:7px;white-space:nowrap}.library-card-actions .icon{width:14px;height:14px;flex:none}
.library-type,.library-setting{font-size:10px;line-height:1.5}.library-placeholder-center{font-size:11px;line-height:1.5}
.library-pagination{gap:22px}.library-pagination .button{min-height:42px;white-space:nowrap}.library-pagination span{line-height:1.5}
.library-detail-header>.icon-button{flex:none}.library-detail h2{line-height:1.25;text-wrap:pretty;overflow-wrap:anywhere}.library-detail .eyebrow{line-height:1.7}
.library-detail-actions>.button{min-height:44px;line-height:1.5}.library-provenance a{overflow-wrap:anywhere}.library-text-versions button{text-align:left;line-height:1.6}
.studio-header>strong{min-width:0;line-height:1.6}.studio-step-label>span{flex:none}.studio-step-label strong{line-height:1.5}.studio-dialog .dialog-content h2{overflow-wrap:anywhere;text-wrap:pretty}.studio-options{align-items:end}.studio-preview-tabs button{line-height:1.6}.reference-buttons button{line-height:1.5;text-wrap:balance}.prompt-label{flex-wrap:wrap}.upload-drop small{line-height:1.5;text-align:center}.studio-secondary-actions{align-items:center}
.library-style-card:focus-visible,.library-placeholder:focus-visible,.library-prompt-peek:focus-visible{outline:3px solid #b25066;outline-offset:3px}
@media(min-width:901px) and (max-width:1250px){.site-header,body[data-page=library] .site-header{gap:20px}.site-header .brand{font-size:26px}.library-browse-bar{flex-wrap:wrap}.library-tabs{flex-basis:100%}.library-sort-control{margin-left:auto}.library-card-actions>.button{font-size:11px;padding-inline:7px}}
@media(max-width:900px){
 .site-header,body[data-page=library] .site-header{gap:16px;min-height:70px;padding-block:13px}
 .site-header>.brand{font-size:25px}.header-create{min-height:42px;font-size:12px;padding:9px 12px}
 .site-footer{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'brand language' 'tagline tagline' 'links links' 'disclaimer disclaimer';gap:12px 20px}.site-footer>.brand{min-width:0;white-space:normal}.footer-nav{column-gap:24px}
 .library-style-rail{grid-auto-columns:calc((100% - 24px)/3);gap:12px;scroll-padding:0 2px}.library-style-card{aspect-ratio:1.5}
 .library-style-label{font-size:13px}.library-style-card>small{font-size:9px}
 .library-browse-bar{gap:10px}.library-tabs{overflow:visible;flex-wrap:wrap;flex-basis:100%;padding:0;gap:6px}.library-tabs>.filter{font-size:12px;min-height:38px;padding:8px 12px}.library-sort-control{margin-left:auto}
 .library-card-source{min-height:33px}.library-card-actions>.button{min-height:44px;font-size:12px}
}
@media(max-width:640px){
 .site-header,body[data-page=library] .site-header{gap:12px;min-height:64px;padding-block:10px}.site-header>.brand{font-size:20px;letter-spacing:-.6px;gap:8px}.site-header .brand>.icon{width:26px;height:26px}
 .site-footer{padding-block:22px;gap:10px 16px}.footer-nav{gap:0 20px;font-size:12px}.header-create{font-size:12px;padding:9px 11px;gap:6px}.header-create .icon{width:14px;height:14px}
 .library-hero-description{font-size:13px;line-height:1.8;max-width:330px;margin-bottom:20px}.library-composer textarea{font-size:16px;min-height:102px;padding:12px;line-height:1.7}.library-composer-tools{padding:0 9px 9px;gap:8px}.library-composer-tools .composer-tool{min-height:40px;font-size:12px;padding:9px 8px}.library-compose-submit{display:grid;grid-template-columns:20px 1fr 20px;min-height:46px;font-size:14px;padding:10px 14px;gap:8px;white-space:normal}.library-compose-submit>span,.library-compose-submit>.icon:last-child{margin:0}.library-compose-submit>.icon:first-child{width:18px;height:18px}.library-intent-links{column-gap:19px;row-gap:5px}.library-intent-links a{font-size:11px;min-height:28px}
 .library-strip-heading h2{font-size:26px}.library-strip-heading .text-link{font-size:12px}.library-style-rail{grid-auto-columns:calc((100% - 12px)/2);gap:12px;padding-bottom:9px}.library-style-card{aspect-ratio:1.28}.library-style-label{font-size:13px;left:12px;right:12px;bottom:29px}.library-style-card>small{font-size:9px;left:12px;right:12px}
 .library-filters{position:relative;top:auto;backdrop-filter:none;background:var(--paper)}.library-all-heading{min-height:0;gap:15px;padding-bottom:15px}.library-all-heading h2{font-size:31px}.library-heading-tools{gap:9px}.library-search{min-height:44px;height:44px}.library-search{padding:10px 12px}.library-search input{font-size:16px}
 .library-tabs{gap:6px;flex-wrap:wrap}.library-tabs>.filter{font-size:12px;min-height:36px;padding:8px 10px}.library-browse-bar{gap:12px;padding-bottom:14px}.library-sort-control{margin:0;flex:1;width:auto}.library-sort-control .select-trigger,.library-filter-toggle{height:44px;min-height:44px;font-size:12px}.library-selects{gap:14px 11px;padding:13px}.library-selects label{font-size:12px}.library-selects .select-trigger{font-size:13px}
 .library-results-heading{margin-block:12px;align-items:center;gap:10px}.library-results-heading p,.library-results-heading .text-link{font-size:11px}.library-card-body{padding:16px}.library-card-source{height:auto;min-height:0;margin-bottom:10px;font-size:10px}.library-card-source .library-source-name{font-size:10px}.library-card h3,html[lang=hi] .library-card h3{font-size:16px;min-height:48px;line-height:1.5;margin-bottom:13px}.library-card-actions>.button{font-size:13px;min-height:44px;white-space:nowrap}.library-prompt-peek p{font-size:13px;height:66.3px;min-height:66.3px;line-height:1.7}.library-placeholder-center{font-size:12px}.library-type,.library-setting{font-size:11px}
 .library-pagination{gap:10px}.library-pagination .button{font-size:12px;padding:10px 11px;min-height:44px}.library-pagination span{font-size:11px}.library-detail-header{min-height:55px}.library-detail h2{font-size:29px;line-height:1.3}.library-detail .eyebrow{font-size:11px}.library-guide-intro>p:not(.eyebrow),.library-faq details p{font-size:14px;line-height:1.85}.library-faq summary{font-size:14px;line-height:1.7;padding-right:30px}
 html[lang=hi] .library-style-label{font-size:12px;line-height:1.55}html[lang=hi] .header-create{font-size:12px}html[lang=hi] .library-intent-links a{font-size:11px}html[lang=hi] .library-card-actions>.button{font-size:13px}
}
@media(max-width:360px){.site-header>.brand{font-size:19px}.site-header .brand>.icon{width:23px;height:23px}.header-create{padding-inline:9px;font-size:11px}.header-create .icon{display:none}.library-intent-links{column-gap:11px}.library-style-label{font-size:12px}.library-style-card>small{font-size:8px}.library-selects{grid-template-columns:1fr}.library-pagination{gap:6px}.library-pagination .button{font-size:11px;padding:9px 8px}.library-card-actions>.button{font-size:12px}.library-card-source .library-model-name{max-width:58%}}

/* Original looks and customization stay inside the homepage flow. */
.library-style-tile{position:relative;min-width:0;scroll-snap-align:start}
.library-style-tile .library-style-card{display:block;width:100%}
.library-looks-caption{font-size:12px;line-height:1.6;color:var(--muted);margin:7px 0 0}
.library-strip-heading>div{min-width:0}.library-strip-heading #library-show-looks{flex:none;min-height:44px;margin:0;white-space:nowrap}
#library-show-looks[aria-expanded=true]>.icon{transform:rotate(-90deg)}
.style-save{position:absolute;top:7px;right:7px;z-index:3;display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:8px;border:1px solid #ffffff80;border-radius:50%;background:#fffdfbe8;color:#714956;box-shadow:0 2px 9px #27151b14}
.style-save .icon{width:18px;height:18px}.style-save:hover{background:#fff}.style-save[aria-pressed=true]{color:var(--accent);background:#fff1f4}.style-save[aria-pressed=true] .icon{fill:currentColor}
.library-looks-empty{padding:18px 0 5px;color:var(--muted);font-size:14px}.library-looks-empty p{margin-bottom:5px}
.library-faq [data-fix]{margin-bottom:15px;font-size:12px}
.studio-custom-options{border-top:1px solid var(--line);margin-top:18px}
.studio-custom-options summary{min-height:48px;padding-block:14px;line-height:20px;font-size:14px;color:#765462}
.studio-custom-options summary::after{top:12px}
.studio-custom-fields{display:grid;gap:16px;padding:4px 0 14px}
.studio-custom-fields input{width:100%;min-width:0;min-height:48px;border:1px solid #e0cfd7;background:var(--paper);color:#624e5b;border-radius:7px;padding:11px 14px;line-height:24px;font-size:14px}
.studio-custom-fields input::placeholder{color:#a18b95}
@media(max-width:900px){.library-style-rail.expanded{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}}
@media(max-width:640px){.library-style-rail.expanded{grid-template-columns:repeat(2,minmax(0,1fr))}.library-looks-caption{font-size:11px}.library-strip-heading{align-items:center;gap:12px}.library-strip-heading #library-show-looks{font-size:11px;gap:6px}.style-save{width:36px;height:36px;top:6px;right:6px}.studio-custom-fields input{font-size:16px}.library-faq [data-fix]{font-size:13px}}
@media(max-width:360px){.library-strip-heading{flex-wrap:wrap;gap:4px}.library-strip-heading #library-show-looks{margin-left:auto}.library-strip-heading h2{font-size:24px}}

/* Keep the preview disclosure once per gallery and leave room for longer translated headings. */
.library-preview-note{font-size:14px;line-height:1.65;color:var(--muted);margin:0 0 20px;max-width:760px}
.library-guide-intro h2{max-width:560px;text-wrap:balance}
.empty-state-title{font-family:var(--font);font-size:28px;line-height:1.3;margin-bottom:20px}
.library-hero-description{font-size:16px;line-height:1.7}
@media(max-width:600px){.library-preview-note{font-size:13px}.library-hero-description{font-size:16px;max-width:440px}.library-hero h1{font-size:clamp(36px,10vw,48px);line-height:1.12}}
