.gallery-commercial .gallery-retention-note{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--paper-deep);color:var(--ink-soft)}.gallery-commercial .gallery-retention-note svg{flex:none;margin-top:2px;color:var(--muted)}.gallery-commercial .gallery-retention-note p{margin:0;font-size:12px;line-height:1.7}.gallery-commercial .gallery-commercial-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.gallery-commercial .gallery-commercial-filters .gallery-search{grid-column:span 2}.gallery-commercial .gallery-commercial-filters input,.gallery-commercial .gallery-commercial-filters select{min-height:42px}.gallery-commercial .gallery-folder-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.gallery-commercial .gallery-folder-tools>div{display:flex;align-items:center;flex-wrap:wrap;gap:9px;min-width:0}.gallery-commercial .gallery-folder-tools strong{color:var(--ink-soft);font-size:13px;overflow-wrap:anywhere}.gallery-commercial .gallery-folder-tools span{color:var(--muted);font-size:11px}.gallery-commercial .gallery-folder-tools button{min-height:38px;padding:8px 11px;font-size:12px}.gallery-commercial .gallery-notice{margin:0;padding:11px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--sage-soft);color:var(--sage);font-size:12px;line-height:1.65;overflow-wrap:anywhere}.gallery-commercial .gallery-selection-bar{justify-content:space-between;padding:15px;border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--paper-raised)}.gallery-commercial .gallery-selection-bar,.gallery-commercial .gallery-selection-bar>div{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.gallery-commercial .gallery-selection-bar label{display:flex;align-items:center;gap:8px;cursor:pointer}.gallery-commercial .gallery-selection-bar span{color:var(--ink-soft);font-size:12px}.gallery-commercial .gallery-selection-bar>p{flex-basis:100%;margin:0;color:var(--muted);font-size:11px;line-height:1.65}.gallery-commercial .gallery-selection-bar .gallery-selection-hint{color:var(--danger)}.gallery-commercial input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--ink);cursor:pointer;flex:none}.gallery-commercial input[type=checkbox]:disabled{cursor:not-allowed;opacity:.45}.gallery-commercial .gallery-danger-text{color:var(--danger)}.gallery-commercial .gallery-grid{align-items:stretch}.gallery-commercial .gallery-card{display:flex;flex-direction:column;cursor:default;min-width:0}.gallery-commercial .gallery-card:has(input[type=checkbox]:checked){border-color:var(--ink-soft);box-shadow:0 0 0 1px var(--ink-soft)}.gallery-commercial .gallery-preview{display:block;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;color:inherit;cursor:pointer}.gallery-commercial .gallery-preview:disabled{cursor:default}.gallery-commercial .gallery-preview:focus-visible{outline:3px solid var(--ink-soft);outline-offset:-3px}.gallery-commercial .gallery-preview .job-placeholder{min-height:0}.gallery-commercial .gallery-preview .job-placeholder small{max-width:24ch;color:var(--muted);font-size:11px;line-height:1.6}.gallery-commercial .gallery-card-check{display:flex;position:absolute;right:10px;top:10px;width:34px;height:34px;align-items:center;justify-content:center;border-radius:8px;background:rgba(251,248,242,.95);box-shadow:0 1px 5px #0001;cursor:pointer}.gallery-commercial .gallery-card-check input{position:absolute;inset:0;margin:auto;width:20px;height:20px;z-index:1}.gallery-commercial .gallery-card-check svg{display:none}.gallery-commercial .gallery-card-check:has(input:disabled){opacity:.5;cursor:not-allowed}.gallery-commercial .gallery-info{display:flex;flex-direction:column;flex:1 1;min-width:0}.gallery-commercial .gallery-title-row{display:flex;align-items:center;gap:8px;min-width:0}.gallery-commercial .gallery-title-row h3{margin:0;min-width:0;flex:1 1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:var(--ink);font-size:14px;font-weight:600;line-height:1.55}.gallery-commercial .gallery-favorite{flex:none;width:34px;height:34px;color:var(--muted)}.gallery-commercial .gallery-favorite[aria-pressed=true]{color:var(--gold)}.gallery-commercial .gallery-description{min-height:0;margin-top:6px;font-size:11.5px}.gallery-commercial .gallery-lifecycle{display:flex;flex-direction:column;gap:4px;margin:12px 0;padding:9px 10px;border-radius:var(--radius-sm);background:var(--paper-deep);color:var(--ink-soft)}.gallery-commercial .gallery-lifecycle strong{font-size:11px;font-weight:500;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.gallery-commercial .gallery-lifecycle time{color:var(--muted);font-size:10px;line-height:1.5;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.gallery-commercial .gallery-lifecycle small{color:var(--muted);font-size:10px;line-height:1.5}.gallery-commercial .gallery-lifecycle[data-urgency=week]{background:#f7edda}.gallery-commercial .gallery-lifecycle[data-urgency=day]{background:#f6e3dd}.gallery-commercial .gallery-lifecycle[data-urgency=day] small,.gallery-commercial .gallery-lifecycle[data-urgency=day] strong{color:var(--danger)}.gallery-commercial .gallery-move-label{display:flex;align-items:center;gap:8px;margin-top:auto}.gallery-commercial .gallery-move-label>span{flex:none;color:var(--muted);font-size:10.5px}.gallery-commercial .gallery-move-label select{width:100%;min-width:0;min-height:36px;padding:7px 8px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--paper-raised);color:var(--ink-soft);font:inherit;font-size:11px}.gallery-commercial .gallery-card-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.gallery-commercial .gallery-card-actions .outline-button{justify-content:center;flex-grow:1;flex-shrink:1;flex-basis:calc(50% - 7px);min-height:37px;padding:8px 7px;font-size:11px}.gallery-commercial button:disabled,.gallery-commercial select:disabled{cursor:not-allowed}.gallery-commercial .icon-button:disabled{opacity:.4}.gallery-commercial .gallery-card[data-lifecycle=deleted] .gallery-image,.gallery-commercial .gallery-card[data-lifecycle=expired] .gallery-image{background:var(--paper-deep)}.gallery-commercial .gallery-manage-dialog{margin:auto;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:24px;overflow-y:auto;border:1px solid var(--line-strong);border-radius:var(--radius-lg);background:var(--paper-raised);color:var(--ink);box-shadow:var(--shadow-lg)}.gallery-commercial .gallery-manage-dialog::backdrop{background:rgba(36,31,25,.48)}.gallery-commercial .gallery-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.gallery-commercial .gallery-dialog-heading h2{margin:0;font-family:var(--serif);font-size:21px;font-weight:500}.gallery-commercial .gallery-dialog-heading .icon-button{flex:none}.gallery-commercial .gallery-dialog-field{display:flex;flex-direction:column;gap:9px;font-size:12px;color:var(--ink-soft)}.gallery-commercial .gallery-dialog-field input{width:100%;min-height:44px;padding:11px 12px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--paper);color:var(--ink);font:inherit;font-size:16px}.gallery-commercial .gallery-dialog-field small{color:var(--muted);font-size:11px;line-height:1.65}.gallery-commercial .gallery-dialog-copy{margin:0;color:var(--ink-soft);font-size:13px;line-height:1.9;overflow-wrap:anywhere}.gallery-commercial .gallery-dialog-copy strong{color:var(--danger);font-weight:600}.gallery-commercial .gallery-delete-confirmation{display:flex;align-items:flex-start;gap:10px;margin:18px 0 0;padding:12px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--paper-deep);color:var(--ink-soft);font-size:12px;line-height:1.7;cursor:pointer}.gallery-commercial .gallery-delete-confirmation input{margin-top:2px}.gallery-commercial .gallery-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.gallery-commercial .gallery-dialog-actions button{min-height:42px}.gallery-commercial .gallery-dialog-actions .gallery-delete-button{background:var(--danger)}.gallery-commercial .gallery-manage-dialog .inline-error{margin-top:14px;font-size:12px}@media (max-width:1100px){.gallery-commercial .gallery-commercial-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-commercial .gallery-commercial-filters .gallery-search{grid-column:1/-1}}@media (max-width:640px){.gallery-commercial .gallery-retention-note{padding:11px}.gallery-commercial .gallery-retention-note p{font-size:11px}.gallery-commercial .gallery-commercial-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-commercial .gallery-commercial-filters label:last-child{grid-column:auto}.gallery-commercial .gallery-commercial-filters input,.gallery-commercial .gallery-commercial-filters select{font-size:16px}.gallery-commercial .gallery-folder-tools{align-items:flex-start}.gallery-commercial .gallery-folder-tools>div:last-child{gap:7px}.gallery-commercial .gallery-folder-tools button{min-height:42px;padding:9px 10px;font-size:11px}.gallery-commercial .gallery-selection-bar{padding:12px}.gallery-commercial .gallery-selection-bar>div{width:100%;gap:10px}.gallery-commercial .gallery-selection-bar>div:nth-child(2) button{flex:1 1;justify-content:center;min-height:42px;padding:9px;font-size:12px}.gallery-commercial .gallery-selection-bar label{min-height:30px}.gallery-commercial .gallery-selection-bar label span{font-size:11px}.gallery-commercial .gallery-grid{grid-template-columns:minmax(0,1fr)}.gallery-commercial .gallery-card-check{width:40px;height:40px}.gallery-commercial .gallery-card-check input{width:22px;height:22px}.gallery-commercial .gallery-info{padding:14px}.gallery-commercial .gallery-title-row h3{font-size:15px}.gallery-commercial .gallery-favorite{width:42px;height:42px}.gallery-commercial .gallery-card-actions .outline-button{min-height:44px;font-size:12px}.gallery-commercial .gallery-move-label select{min-height:42px;font-size:16px}.gallery-commercial .gallery-lifecycle strong{font-size:12px}.gallery-commercial .gallery-lifecycle small,.gallery-commercial .gallery-lifecycle time{font-size:11px}.gallery-commercial .gallery-manage-dialog{padding:20px}.gallery-commercial .gallery-dialog-heading h2{font-size:19px}.gallery-commercial .gallery-dialog-actions button{min-height:44px}}@media (prefers-reduced-motion:reduce){.gallery-commercial .gallery-card{transition:none}.gallery-commercial .gallery-card:hover{transform:none}}.template-library{display:flex;flex-direction:column;gap:18px;min-width:0;color:var(--ink)}.template-library button,.template-library input,.template-library select{font:inherit}.template-library :is(button,input,select,[tabindex]):focus-visible{outline:3px solid var(--accent);outline-offset:4px}.template-library :is(button,input,select):disabled{cursor:not-allowed;opacity:.5}.template-library button svg{flex:none}.template-toolbar{justify-content:space-between;gap:14px}.template-toolbar,.template-toolbar>div{display:flex;align-items:center;flex-wrap:wrap}.template-toolbar>div{gap:10px}.template-toolbar>div>svg{color:var(--accent)}.template-toolbar strong{font-size:15px}.template-toolbar span{color:var(--muted);font-size:12px}.template-toolbar>button{min-height:42px}.template-views{display:flex;align-self:flex-start;gap:6px;max-width:100%;padding:6px;border-radius:22px;background:var(--paper-deep);box-shadow:var(--clay-in,var(--shadow-sm))}.template-categories button,.template-views button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid transparent;color:var(--ink-soft);background:transparent;cursor:pointer}.template-views button{padding:11px 20px;border-radius:18px;font-size:13px;font-weight:650}.template-views button[aria-pressed=true]{background:linear-gradient(145deg,var(--paper-raised),var(--accent-soft));border-color:var(--line);color:var(--accent-deep);box-shadow:var(--clay-out,var(--shadow-sm))}.template-categories{display:flex;flex-wrap:wrap;gap:9px}.template-categories button{min-height:40px;padding:9px 15px;border:1px solid var(--line);border-radius:16px;background:var(--paper-raised);font-size:12px;box-shadow:var(--clay-out,var(--shadow-sm))}.template-categories button[aria-pressed=true]{color:var(--accent-deep);border-color:var(--line-strong);background:var(--accent-soft);box-shadow:var(--clay-in,var(--shadow-sm))}.template-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(175px,240px) auto;align-items:end;gap:14px}.template-filters label{display:flex;flex-direction:column;gap:8px;min-width:0;color:var(--ink-soft);font-size:12px}.template-filters label>span{padding-left:3px}.template-filters input,.template-filters select,.template-pagination select{width:100%;min-width:0;min-height:46px;padding:11px 13px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--paper-raised);color:var(--ink)}.template-filters select{text-overflow:ellipsis}.template-search>div{position:relative}.template-search>div>svg{position:absolute;left:14px;top:15px;pointer-events:none;color:var(--muted)}.template-search input{padding-left:42px;padding-right:43px}.template-search input::-webkit-search-cancel-button{-webkit-appearance:none}.template-search .icon-button{position:absolute;right:6px;top:5px;width:36px;height:36px}.template-filters>button{min-height:46px;padding-inline:22px}.template-filter-note{margin:-7px 0 0;color:var(--muted);font-size:11px;line-height:1.7}.template-result-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:3px}.template-result-summary h2{margin:0;color:var(--ink-soft);font-size:14px;font-weight:650}.template-result-summary .text-link{min-height:36px}.template-error{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:0;padding:12px 15px;font-size:12px;line-height:1.75;overflow-wrap:anywhere}.template-error .text-link{min-height:34px}.template-notice{display:flex;align-items:center;gap:9px;margin:0;padding:12px 15px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--sage-soft);color:var(--sage);font-size:12px;line-height:1.7}.template-notice svg{flex:none}.template-results{min-width:0}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}.template-card{display:flex;flex-direction:column;min-width:0;padding:9px;border:1px solid #ffffffb8;border-radius:28px;background:linear-gradient(145deg,var(--paper-raised),var(--paper-deep));box-shadow:var(--clay-out,var(--shadow))}.template-preview{position:relative;display:block;width:100%;aspect-ratio:4/3;padding:0;overflow:hidden;border:0;border-radius:21px;background:var(--paper-deep);color:var(--muted);cursor:pointer}.template-preview-open{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer;z-index:1}.template-preview-open:focus-visible{outline-offset:-4px}.template-preview .template-image-placeholder .text-link{position:relative;z-index:2}.template-preview>.template-image{height:100%}.template-preview-label{position:absolute;left:11px;bottom:11px;padding:5px 9px;border:1px solid #ffffffb8;border-radius:11px;background:var(--paper-raised);color:var(--ink-soft);font-size:10px;box-shadow:var(--clay-out,var(--shadow-sm));pointer-events:none}.template-image{position:relative;display:grid;place-items:center;width:100%;min-width:0;overflow:hidden;background:var(--paper-deep)}.template-image img{display:block;width:100%;height:100%;max-height:100%;object-fit:cover}.template-image-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;height:100%;min-height:170px;padding:22px;color:var(--muted)}.template-image-placeholder>span{max-width:30ch;font-size:11px;line-height:1.7;text-align:center;overflow-wrap:anywhere}.template-image-placeholder .text-link{min-height:36px}.template-unavailable{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;aspect-ratio:4/3;border-radius:21px;background:var(--paper-deep);color:var(--muted);box-shadow:var(--clay-in,var(--shadow-sm))}.template-unavailable strong{font-size:14px;font-weight:600}.template-unavailable span{font-size:11px}.template-card-content{display:flex;flex-direction:column;gap:9px;flex:1 1;min-width:0;padding:16px 9px 10px}.template-category-label{color:var(--accent-deep);font-size:10px;font-weight:650;line-height:1.6;letter-spacing:.03em}.template-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:7px}.template-card-title h3{min-width:0;margin:0;color:var(--ink);font-size:15px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}.template-card-title h3 button{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;width:100%;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.template-card-title .template-favorite{flex:none;width:38px;height:38px;margin-top:-6px;color:var(--muted)}.template-favorite[aria-pressed=true]{color:var(--gold)}.template-card-prompt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0;color:var(--ink-soft);font-size:12px;line-height:1.85;overflow-wrap:anywhere;white-space:pre-wrap}.template-card-meta{margin:0;color:var(--muted);font-size:10px;line-height:1.8;overflow-wrap:anywhere}.template-compatibility-badge{display:flex;align-items:center;gap:5px;align-self:flex-start;margin:0;padding:5px 9px;border-radius:11px;background:#fff2d9;color:#7a5a2f;font-size:10px}.template-detail-button{justify-content:space-between;width:100%;margin-top:auto;min-height:42px;font-size:12px}.template-unavailable-note{margin:0;color:var(--muted);font-size:12px;line-height:1.8}.template-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;min-height:280px;padding:35px 22px;border:1px solid #ffffffb8;border-radius:28px;background:linear-gradient(145deg,var(--paper-raised),var(--paper-deep));color:var(--muted);box-shadow:var(--clay-out,var(--shadow));text-align:center}.template-state h2{margin:0;color:var(--ink);font-size:20px;font-weight:700}.template-state p{max-width:54ch;margin:0;font-size:12px;line-height:1.8}.template-state .empty-symbol{display:grid;place-items:center;width:80px;height:80px;margin-bottom:5px}.template-state>button{min-height:44px;margin-top:3px}.template-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;padding-top:2px;color:var(--muted);font-size:11px}.template-pagination>div,.template-pagination>label{display:flex;align-items:center;gap:11px}.template-pagination select{width:auto;min-height:40px;padding:8px 11px;font-size:12px}.template-pagination button{min-height:42px;font-size:12px}.template-pagination>div>span{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;white-space:nowrap}.template-library-dialog{width:min(1100px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:27px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #ffffffc9;border-radius:32px;background:linear-gradient(145deg,var(--paper-raised),var(--paper-deep));color:var(--ink);box-shadow:var(--shadow-lg)}.template-library-dialog::backdrop{background:#34254385;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.template-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.template-dialog-heading>div{min-width:0}.template-dialog-heading h2{margin:6px 0 0;color:var(--ink);font-size:24px;font-weight:750;line-height:1.55;overflow-wrap:anywhere}.template-dialog-heading>button{flex:none;width:42px;height:42px}.template-dialog-description{margin:12px 0 24px;color:var(--muted);font-size:12px;line-height:1.8}.template-detail-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr);gap:22px;align-items:start}.template-detail-aside,.template-detail-main{display:flex;flex-direction:column;gap:20px;min-width:0}.template-detail-section{min-width:0;padding:20px;border:1px solid #ffffffb8;border-radius:24px;background:var(--paper-raised);box-shadow:var(--clay-out,var(--shadow-sm))}.template-detail-section h3{margin:0;color:var(--ink);font-size:14px;font-weight:700;line-height:1.7}.template-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-bottom:15px}.template-section-heading>span{color:var(--muted);font-size:10px}.template-section-heading>button{min-height:38px;padding:8px 12px;font-size:11px}.template-full-prompt{min-height:160px;max-height:440px;padding:16px;overflow-y:auto;border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink-soft);box-shadow:var(--clay-in,var(--shadow-sm));font-size:13px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}.template-detail-section>small{display:block;margin-top:10px;color:var(--muted);font-size:10px}.template-detail-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.template-detail-images figure{min-width:0;margin:0}.template-detail-images .template-image{aspect-ratio:4/3;border-radius:15px}.template-detail-images img{object-fit:contain}.template-detail-images .template-image-placeholder{min-height:0;padding:14px}.template-detail-images figcaption{margin-top:7px;color:var(--muted);font-size:10px;line-height:1.7}.template-reference-images .template-image{border:1px dashed var(--line-strong)}.template-section-empty{margin:0;padding:16px;border-radius:15px;background:var(--paper);color:var(--muted);font-size:12px;line-height:1.8}.template-parameters{margin:17px 0 0}.template-parameters>div{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-top:14px;font-size:12px;line-height:1.75}.template-parameters dt{flex:none;color:var(--muted)}.template-parameters dd{min-width:0;margin:0;color:var(--ink-soft);overflow-wrap:anywhere;text-align:right}.template-compatibility-note{margin:17px 0 0;padding:13px;border:1px solid #e8d3a9;border-radius:17px;background:#fff2d9;color:#7a5a2f;font-size:11px;line-height:1.8;overflow-wrap:anywhere}.template-compatibility-note>strong{display:flex;align-items:center;gap:6px;font-weight:650}.template-compatibility-note ul{margin:10px 0;padding-left:18px}.template-compatibility-note li+li{margin-top:7px}.template-compatibility-note p{margin:8px 0 0}.template-compatibility-note .text-link{min-height:38px;margin-left:9px;color:inherit}.template-source dl{margin:16px 0 0}.template-source dl>div+div{margin-top:16px}.template-source dt{color:var(--muted);font-size:10px}.template-source dd{margin:5px 0 0;color:var(--ink-soft);font-size:12px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}.template-detail-error{min-height:220px}.template-detail-error .inline-error{padding:12px}.template-library-dialog>.template-error,.template-library-dialog>.template-notice{margin-top:20px}.template-dialog-actions{position:sticky;bottom:-27px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:24px -27px -27px;padding:18px 27px;border-top:1px solid var(--line);border-radius:0 0 31px 31px;background:var(--paper-raised);z-index:2}.template-dialog-actions>p{flex:1 1 220px;margin:0;color:var(--muted);font-size:11px;line-height:1.8}.template-dialog-actions>div{display:flex;flex-wrap:wrap;gap:10px}.template-dialog-actions button{min-height:44px;font-size:12px}@media (min-width:1500px){.template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (max-width:1100px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.template-detail-layout{grid-template-columns:minmax(0,1fr) minmax(240px,.85fr);gap:16px}.template-detail-section{padding:16px}}@media (max-width:760px){.template-detail-layout{grid-template-columns:minmax(0,1fr)}.template-detail-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.template-detail-aside .template-detail-section{min-width:0}}@media (max-width:600px){.template-library{gap:16px}.template-toolbar>div{gap:8px;flex:1 1 200px}.template-toolbar strong{font-size:14px}.template-toolbar span{flex-basis:100%;font-size:11px}.template-toolbar>button{padding-inline:12px}.template-views{align-self:stretch}.template-views button{flex:1 1;padding-inline:12px}.template-categories{gap:8px}.template-categories button{min-height:42px;padding:9px 12px;font-size:11px}.template-filters{grid-template-columns:minmax(0,1fr) auto;gap:12px}.template-filters .template-search{grid-column:1/-1}.template-filters :is(input,select),.template-pagination select{font-size:16px}.template-grid{grid-template-columns:minmax(0,1fr);gap:18px}.template-card-content{padding:15px 10px 10px}.template-card-title h3{font-size:16px}.template-card-title .template-favorite{width:44px;height:44px}.template-card-meta{font-size:11px}.template-detail-button{min-height:44px}.template-state{min-height:280px;padding-inline:18px}.template-state h2{font-size:18px}.template-pagination{justify-content:flex-start}.template-pagination>div{flex-basis:100%;justify-content:space-between;gap:7px}.template-pagination>div button{min-height:44px;padding-inline:11px}.template-library-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:18px;border-radius:26px}.template-dialog-heading h2{font-size:20px}.template-dialog-description{margin-bottom:18px}.template-detail-section{padding:16px;border-radius:20px}.template-detail-aside{display:flex}.template-section-heading>button{min-height:42px}.template-full-prompt{max-height:370px;font-size:13px;padding:13px}.template-detail-images{gap:10px}.template-detail-images .template-image-placeholder>span{font-size:10px}.template-dialog-actions{bottom:-18px;margin:20px -18px -18px;padding:15px 18px;border-radius:0 0 25px 25px;gap:10px}.template-dialog-actions>div{flex-basis:100%}.template-dialog-actions button{flex:1 1;justify-content:center;min-height:46px}}@media (prefers-reduced-motion:reduce){.template-library *{scroll-behavior:auto}.template-library .spin,.template-library button{animation:none;transition:none}}.artwork-organizer{padding:12px 0;color:var(--ink-soft);font-size:12px;text-align:left}.artwork-organizer-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.artwork-organizer .outline-button,.artwork-organizer .primary-button{min-height:36px;padding:7px 11px;gap:6px;font-size:12px;white-space:nowrap}.artwork-organizer .artwork-organizer-favorite.is-favorite{color:var(--gold);border-color:#e8d3a9;background:linear-gradient(145deg,#fff9e9,#f2e6ce);box-shadow:var(--clay-in)}.artwork-organizer-folder{display:flex;flex:1 1 150px;min-width:0;align-items:center;gap:7px}.artwork-organizer-folder label{flex-shrink:0;color:var(--muted)}.artwork-organizer-folder select{min-width:0;width:100%;min-height:36px;padding:6px 26px 6px 10px;border:1px solid var(--line);border-radius:13px;background-color:var(--paper-raised);color:var(--ink);box-shadow:var(--clay-in);font:inherit;text-overflow:ellipsis}.artwork-organizer .artwork-organizer-cancel,.artwork-organizer .artwork-organizer-refresh{width:36px;padding:7px;justify-content:center}.artwork-organizer-create{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin-top:10px}.artwork-organizer-name{display:flex;flex:1 1 150px;flex-direction:column;gap:5px;min-width:0;color:var(--muted)}.artwork-organizer-name input{width:100%;min-height:36px;padding:7px 10px;border:1px solid var(--line);border-radius:13px;background:var(--paper-raised);color:var(--ink);box-shadow:var(--clay-in);font:inherit}.artwork-organizer-note{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.artwork-organizer-error{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;margin-top:8px;color:var(--danger);line-height:1.6}.artwork-organizer-error .text-link{font-size:12px}.artwork-organizer button:disabled,.artwork-organizer input:disabled,.artwork-organizer select:disabled{cursor:not-allowed;opacity:.55}@media (max-width:600px){.artwork-organizer-folder select,.artwork-organizer-name input{font-size:16px}}