.templates-page{max-width:1120px;color:var(--text);margin:36px auto 80px}.templates-page h1{letter-spacing:-.03em;text-wrap:balance;margin:12px 0;font-size:clamp(28px,4vw,42px);line-height:1.15}.templates-page h2{letter-spacing:-.02em;margin:0 0 10px;font-size:23px}.templates-page h3{margin:8px 0;font-size:17px}.templates-page p{max-width:70ch;line-height:1.65}.templates-page small,.template-control small{color:var(--muted);line-height:1.5}.template-actions,.template-row-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.template-gallery{margin-top:0}.template-gallery .btn,.create-hero-actions .btn{font-family:inherit}.template-gallery-heading{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px;display:flex}.template-gallery-heading>div:first-child{flex:360px;min-width:0}.template-gallery-heading h1{margin:0;font-size:36px;line-height:1.1}.template-gallery-heading p,.template-subtitle{color:var(--muted);margin:12px 0 0}.create-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:48px;margin-bottom:28px;padding:12px 0;display:grid}.create-hero h1{max-width:17ch;margin:0;font-size:clamp(34px,3.5vw,48px);font-weight:750;line-height:1.02}.create-hero h1 span{color:var(--primary);display:block}.create-hero-copy>p{color:var(--muted);max-width:38ch;margin:20px 0 0;font-size:16px}.create-hero-actions{justify-items:start;gap:12px;margin-top:24px;display:grid}.create-secondary-actions{flex-wrap:wrap;align-items:center;gap:8px 24px;display:flex}.create-secondary-action{min-height:28px;color:var(--muted-strong);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:0;font-size:13px;text-decoration:none;display:inline-flex}.create-secondary-action:hover{color:var(--primary-strong);text-decoration:none}.create-secondary-action:focus-visible{outline:2px solid var(--primary-strong);outline-offset:3px}.create-showcase{gap:10px;margin:0;padding:8px 0 8px 8px;list-style:none;display:grid}.create-showcase li{background:var(--surface-muted);border-radius:12px;align-items:center;gap:14px;padding:14px;animation:6s ease-in-out infinite create-possibility;display:flex}.create-showcase li:nth-child(2){animation-delay:-2s}.create-showcase li:nth-child(3){animation-delay:-4s}.create-showcase i{width:36px;height:36px;color:var(--primary);flex-shrink:0;place-items:center;font-size:22px;display:grid}.create-showcase strong{font-size:16px;line-height:1.3;display:block}.create-showcase p{color:var(--muted);margin:4px 0 0;font-size:13px;line-height:1.45}@keyframes create-possibility{0%,to{transform:translate(0)}50%{transform:translate(-8px)}}.template-sort{border-bottom:1px solid var(--border);gap:16px;margin:0 0 20px;display:flex}.template-sort button{min-height:56px;color:var(--muted-strong);font:inherit;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;justify-content:center;align-items:center;padding:8px 0;font-size:13px;font-weight:600;display:inline-flex}.template-sort button:hover:not(:disabled){color:var(--primary-strong)}.template-sort [aria-pressed=true]{color:var(--primary-strong);border-bottom-color:currentColor;font-weight:750}.template-sort button:focus-visible{outline:2px solid var(--primary-strong);outline-offset:3px}.template-sort button:disabled{opacity:.55;cursor:wait}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.template-card{border:1px solid var(--border-strong);height:100%;color:var(--text);background:var(--surface);border-radius:14px;grid-template-columns:112px minmax(0,1fr);align-content:start;gap:14px;padding:16px;text-decoration:none;transition:border-color .18s;display:grid;overflow:hidden}.template-card[href]:hover{border-color:var(--primary);text-decoration:none}.template-card-preview .template-card{grid-template-columns:80px minmax(0,1fr);gap:12px;height:auto;padding:14px}.template-card>.template-cover{aspect-ratio:4/3;border-radius:6px}.template-card .template-cover-fallback i{font-size:30px}.template-cover{aspect-ratio:16/9;background:var(--surface-panel-alt);flex-shrink:0;overflow:hidden}.template-cover img{object-fit:cover;width:100%;height:100%}.template-cover-fallback{height:100%;color:var(--primary);background:var(--primary-tint);flex-direction:column;justify-content:center;align-items:center;gap:18px;display:flex}.template-cover-fallback i{font-size:44px}.template-cover-fallback span{letter-spacing:.02em;font-size:13px;font-weight:700}.template-cover-ask .template-cover-fallback{background:var(--surface-strong);color:var(--text)}.template-cover-create_plugin .template-cover-fallback{background:var(--ok-soft);color:var(--ok)}.template-cover-diagram{grid-template-columns:1fr 18px 1fr;align-items:center;gap:12px;width:min(260px,100% - 36px);display:grid}.template-cover-diagram>i{font-size:16px}.template-cover-file{background:var(--surface);border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-radius:8px;flex-direction:column;gap:9px;padding:14px 10px;font-size:12px;display:flex}.template-cover-file small{color:inherit;font-size:11px}.template-cover-file span{text-align:center;background:var(--primary-tint);border-radius:4px;padding:3px 5px;font-size:11px}.template-cover-create_plugin .template-cover-file span{background:var(--ok-soft)}.template-card-copy{min-width:0}.template-card-copy h3{overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0 0 6px;font-size:17px;line-height:1.35;display:-webkit-box;overflow:hidden}.template-card-copy p{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:14px;display:-webkit-box;overflow:hidden}.template-card-meta{color:var(--muted);flex-wrap:wrap;grid-column:1/-1;align-items:center;gap:8px 12px;font-size:12px;display:flex}.template-card-action{color:var(--primary);margin-left:auto;font-weight:600}.template-card .template-creator{min-width:0;max-width:100%;font-size:12px}.template-card .template-creator>span:last-child{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.template-card .template-creator img,.template-card .template-avatar{width:20px;height:20px;font-size:9px}.template-search{align-items:stretch;gap:8px;margin-bottom:8px;display:flex}.template-search .btn{font-size:inherit}.template-search input[type=search]{border:1px solid var(--border-strong);background:var(--surface);min-width:0;color:var(--text);font:inherit;caret-color:var(--primary);border-radius:8px;flex:1;padding:9px 12px}.template-card-action i{margin-left:5px}.template-purpose{color:var(--muted);font-size:12px;font-weight:700}.template-creator{color:var(--muted);align-items:center;gap:8px;font-size:13px;display:inline-flex}.template-creator img{object-fit:cover;border-radius:50%}.template-creator>span:last-child{flex-direction:column;display:flex}.template-creator-name{color:var(--text)}.template-avatar{background:var(--primary-tint);width:30px;height:30px;color:var(--primary);border-radius:50%;flex:none;place-items:center;font-size:11px;font-weight:600;display:inline-grid}.template-empty{background:var(--surface-muted);text-align:center;border-radius:14px;padding:56px 24px}.template-empty>i{color:var(--muted);margin-bottom:16px;font-size:32px}.template-empty p{color:var(--muted);max-width:48ch;margin:8px auto 0}.template-row-actions{justify-content:space-between;padding:12px 0;font-size:12px}.template-grid>div:has(.template-row-actions) .template-card{height:auto}.template-use-heading{border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1fr);align-items:center;gap:18px;margin:28px 0;padding-bottom:24px;display:grid}.template-use-heading:has(>.template-cover){grid-template-columns:88px minmax(0,1fr)}.template-use-heading h1{text-wrap:pretty;margin:0 0 8px;font-size:clamp(24px,2.4vw,30px);line-height:1.2}.template-use-heading>div{min-width:0}.template-use-heading p{color:var(--muted);margin:0 0 12px;font-size:14px}.template-use-heading .template-actions{font-size:12px}.template-use-heading .template-cover{border-radius:8px}.template-document-column{grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:28px 32px;display:grid}.template-use-layout>*,.template-document-column>*{min-width:0}.template-setup{border:1px solid var(--border-strong);border-radius:14px;grid-area:1/2;padding:24px}.template-setup-ready{top:calc(var(--social-shell-search-height,72px) + 24px);position:sticky}.template-setup h2{margin:0 0 20px;font-size:18px}.template-setup>.btn{justify-content:center;width:100%;min-height:44px;font-family:inherit;font-size:14px}.template-setup .template-notice{margin:16px 0 0}.template-setup .template-fields+.template-notice{margin:0 0 16px}.template-instructions{grid-area:1/1}.template-prompt-content{display:flow-root}.template-prompt-expand{display:none}.template-instructions-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;display:flex}.template-instructions-toolbar h2{scroll-margin-top:calc(var(--social-shell-search-height,68px) + 16px);margin:0;font-size:18px}.template-view-switch{gap:4px;display:flex}.template-view-switch .btn{font-family:inherit}.template-view-switch [aria-pressed=true]{background:var(--surface-muted);border-color:var(--border-strong)}.template-instructions .md{overflow-wrap:anywhere;font-size:16px;line-height:1.7}.template-instructions .md p{line-height:inherit}.template-instructions .md h1{margin:1.2em 0 .5em;font-size:1.5rem;line-height:1.25}.template-instructions .md h2{margin:1.1em 0 .45em;font-size:1.25rem;line-height:1.3}.template-instructions .md h3{margin:1em 0 .45em;font-size:1.1rem;line-height:1.35}.template-instructions .md>:first-child{margin-top:0}.template-instructions-raw,.template-handoff pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.template-instructions-raw{background:var(--surface-muted);border-radius:10px;margin:0;padding:20px}.template-handoff{border-top:1px solid var(--border);grid-column:1;margin:0;padding-top:16px}.template-handoff summary{cursor:pointer;padding:4px 0;font-size:14px;font-weight:600}.template-handoff p{color:var(--muted);font-size:13px}.template-use-details{grid-column:1}.template-with-introduction{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start;gap:32px;display:grid}.template-with-introduction>.template-document-column{flex-direction:column;grid-area:1/1;gap:24px;display:flex}.template-post-column{border-left:1px solid var(--border);grid-area:1/2;min-width:0;padding-left:24px}.template-with-introduction .template-setup{border:0;border-bottom:1px solid var(--border);border-radius:0;order:-1;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;width:100%;padding:0 0 20px;display:grid;position:static}.template-with-introduction .template-setup h2{grid-area:1/1;margin:0}.template-with-introduction .template-setup>.btn{grid-area:1/2;width:auto;min-width:160px}.template-with-introduction .template-setup>.template-notice{grid-column:1/-1;margin:0}.template-with-introduction .template-fields{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:16px;display:grid}.template-with-introduction .template-fields>.template-control{margin:0}.template-with-introduction .template-fields>.template-control:has(textarea){grid-column:1/-1}.template-control{flex-direction:column;gap:8px;min-width:0;margin-bottom:22px;display:flex}.template-control label{font-size:14px;font-weight:600}.template-control input:not([type=checkbox]),.template-control select,.template-control textarea{background:var(--surface);width:100%;color:var(--text);border:1px solid var(--border-strong);font:inherit;box-sizing:border-box;caret-color:var(--primary);border-radius:8px;padding:11px 12px;font-size:14px}.template-control textarea{resize:vertical;min-height:90px}.templates-page :focus-visible{outline:2px solid var(--primary);outline-offset:3px}.templates-page ::selection{background:var(--primary-soft)}.templates-page .btn:disabled{opacity:.55;cursor:not-allowed}.template-preview{background:var(--surface-muted);border-radius:14px;padding:24px}.template-preview pre,.template-source pre{white-space:pre-wrap;overflow-wrap:anywhere;scrollbar-color:var(--border-strong)transparent;max-height:560px;margin:16px 0;font-size:13px;line-height:1.7;overflow-y:auto}.template-preview p{color:var(--muted);font-size:13px}.template-source{border-top:1px solid var(--border);margin-top:30px;padding:22px 0}.template-source summary,.template-preview summary{cursor:pointer;padding:4px 0;font-weight:600}.template-source>p{color:var(--muted);font-size:14px}.template-source>pre{background:var(--surface-muted);border-radius:10px;padding:20px}.template-notice{color:var(--muted);font-size:13px;line-height:1.65}.template-error{color:var(--danger,#b42318);background:var(--surface-muted);overflow-wrap:anywhere;border-radius:8px;padding:12px}.template-back{color:var(--muted);align-items:center;gap:8px;margin-bottom:20px;display:inline-flex}.template-editor-body{border:0;min-width:0;margin:0;padding:0}.template-about{grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:40px;display:grid}.template-about>*,.template-trial>*{min-width:0}.template-card-preview h2{margin:0 0 16px;font-size:18px}.template-instruction-head,.template-editor-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.template-instruction-head>label{font-weight:600}.template-editor textarea#template-instructions{font-family:ui-monospace,SFMono-Regular,monospace;font-size:14px}.template-add-blank{background:var(--surface-muted);border-radius:8px;flex-wrap:wrap;align-items:end;gap:12px;margin:18px 0;padding:18px;display:flex}.template-add-blank .template-control{flex:240px;margin:0}.template-syntax summary{cursor:pointer;font-size:13px}.template-question-editor,.template-trial{margin-top:28px}.template-check{align-items:center;gap:8px;display:inline-flex}.template-field-editor .template-actions{margin-top:16px}.template-editor-footer{border-top:1px solid var(--border);margin-top:32px;padding-top:20px}.template-field-editor{border:1px solid var(--border-strong);border-radius:12px;min-width:0;margin:16px 0;padding:18px}.template-field-editor legend{padding:0 6px;font-size:14px;font-weight:600}.template-field-editor .template-control{margin-bottom:14px}.template-field-row{grid-template-columns:1fr 1fr;gap:14px;display:grid}#create-composer{text-align:left;max-width:720px;margin:0 0 28px}#create-composer h2{margin:0 0 8px;font-size:18px}@media (max-width:850px){.create-hero{gap:24px}.create-hero h1{font-size:36px}.template-about{grid-template-columns:1fr;gap:28px}.template-use-layout,.template-document-column,.template-with-introduction>.template-document-column{flex-direction:column;gap:24px;display:flex}.template-use-layout>*,.template-document-column>*{grid-area:auto;width:100%}.template-with-introduction .template-setup{order:0;display:block}.template-with-introduction .template-setup h2{margin-bottom:16px}.template-with-introduction .template-setup>.btn{width:100%}.template-with-introduction .template-setup>.template-notice{margin-top:12px}.template-with-introduction .template-fields{grid-template-columns:1fr;margin-bottom:16px}.template-post-column{border:0;padding:0}.template-prompt-body:not(.is-expanded){max-height:280px;overflow:hidden}.template-prompt-expand{min-height:44px;color:var(--link);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;margin-top:12px;padding:0;font-size:14px;display:inline-flex}.template-setup-ready{position:static}.template-use-details{width:100%}}@media (max-width:760px){.create-hero{grid-template-columns:1fr;gap:20px;padding:0}.create-hero h1{max-width:22ch;font-size:34px}.create-hero-copy>p{max-width:48ch;margin-top:12px;font-size:14px}.create-hero-actions{gap:8px;margin-top:20px}.create-hero-actions .btn,.create-secondary-action{min-height:44px}.template-sort{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.template-sort button{min-height:44px;font-size:12px}.create-showcase{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px 0}.create-showcase li{text-align:center;flex-direction:column;gap:8px;padding:12px 6px}.create-showcase i{width:28px;height:28px;font-size:22px}.create-showcase strong{font-size:12px}.create-showcase p{display:none}.template-grid{grid-template-columns:1fr}.template-card{grid-template-columns:96px minmax(0,1fr);gap:12px;padding:14px}}@media (max-width:560px){.templates-page{margin:24px auto 48px}.template-search{font-size:16px}.template-use-heading:has(>.template-cover){grid-template-columns:56px minmax(0,1fr);gap:12px}.template-field-row{grid-template-columns:1fr;gap:0}.template-preview{padding:18px}.template-gallery-heading h1{font-size:30px}.template-card-preview{max-width:360px}.template-control input:not([type=checkbox]),.template-control select,.template-control textarea{font-size:16px}}@media (prefers-reduced-motion:reduce){.template-card{transition:none}.create-showcase li{animation:none}}.template-post-attachment{min-width:0;margin-block:12px}.template-post-summary,.template-post-attachment.is-unavailable{border:1px solid var(--border);background:var(--surface-panel);border-radius:12px;padding:12px}.template-post-summary{min-height:44px;color:var(--text);align-items:center;gap:12px;text-decoration:none;display:flex}.template-post-summary:hover{border-color:var(--border-strong);background:var(--surface-muted);color:var(--text);text-decoration:none}.template-post-summary:focus-visible{outline:2px solid var(--primary-strong);outline-offset:2px}.template-post-summary>.template-cover{border-radius:8px;flex:0 0 40px;width:40px;height:40px;overflow:hidden}.template-post-summary .template-cover-fallback i{font-size:22px}.template-post-summary .template-post-kind{align-items:center;gap:6px;display:flex}.template-post-kind>i{font-size:10px}.template-post-summary>span{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.template-post-summary strong{color:var(--text);overflow-wrap:anywhere;font-size:14px;line-height:1.35}.template-post-summary small,.template-post-summary span>span{color:var(--muted);font-size:12px;line-height:1.4}.template-post-summary strong,.template-post-summary span>span{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.template-post-attachment p{font-size:13px;line-height:1.6}.template-post-attachment details{margin:12px 0}.template-post-attachment pre{max-height:360px;overflow:auto}.social-shell:has(.template-detail-page) .social-workspace{width:100%;max-width:none}.social-shell.is-utility-route .social-workspace .social-main>.social-utility-page:has(>.template-detail-page){padding-top:0;padding-inline:0}.template-detail-page>.templates-page,.template-detail-page>.template-notice{width:calc(100% - 2*var(--social-page-gutter,20px));max-width:1120px;margin-inline:auto}.template-detail-page>.templates-page{margin-top:28px}.template-detail-page>.template-notice{margin-top:28px;margin-bottom:0}.template-detail-page>.template-notice+.templates-page{margin-top:16px}.template-owner-strip{min-height:64px;padding:10px var(--social-page-gutter,20px);border-bottom:1px solid color-mix(in srgb,var(--primary)28%,var(--border));background:color-mix(in srgb,var(--primary)8%,var(--bg));color:var(--text);flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0;display:flex}.template-owner-info{flex-wrap:wrap;flex:1;align-items:center;gap:6px 14px;min-width:0;font-size:13px;display:flex}.template-owner-state{border:1px solid var(--border);background:var(--bg);border-radius:6px;padding:3px 8px;font-size:12px;font-weight:650}.template-owner-access{color:var(--muted-strong);font-size:12px}.template-owner-actions{flex:none;align-items:center;gap:8px;display:flex}.template-owner-actions>.btn{white-space:nowrap;min-height:36px}.template-owner-settings{background:var(--bg);width:36px;height:36px;padding:0}.template-owner-settings i{font-size:16px}.template-owner-strip .template-owner-settings:hover{background:var(--surface-muted)}.template-owner-menu{flex:none}.template-owner-strip>p{flex-basis:100%;margin:0;font-size:13px}.template-owner-unavailable{color:var(--muted-strong)}.template-owner-strip [role=alert]{color:var(--danger)}.template-deletion-copy{gap:12px;display:grid}.template-deletion-copy strong{color:var(--text)}.template-deletion-notice{color:var(--text);margin:0 0 20px;font-size:13px;line-height:1.6}@media (max-width:700px){.template-owner-strip{padding:10px 16px}.template-owner-access{flex-basis:100%}.template-owner-settings{width:44px;height:44px}.template-owner-actions>.btn{min-height:44px}}.template-post-column .social-focused-body{min-height:0}.template-editor-heading{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.template-access-badge{background:var(--primary-tint);color:var(--primary);border-radius:6px;align-items:center;padding:5px 10px;font-size:13px;font-weight:600;display:inline-flex}.template-editor-section{border-top:1px solid var(--border);margin-top:32px;padding-top:24px}.template-publication-notice{background:var(--surface-muted);color:var(--text);border-radius:8px;margin:16px 0;padding:12px 16px;font-size:13px;line-height:1.6}.template-publication-notice p{margin:0}.template-publication-notice details{margin-top:6px}.template-publication-notice summary{cursor:pointer}.template-publication-notice details p{margin-top:8px}
