.template-entry-actions{grid-template-columns:1fr 1fr;gap:20px;display:grid}.template-entry-actions>div{align-content:start;gap:10px;min-width:0;display:grid}.template-entry-actions p,.template-entry-actions small{color:#66727e;margin:0;font-size:13px;line-height:1.6}.template-entry-actions button{color:#fff;cursor:pointer;background:#d63c32;border:1px solid #d63c32;border-radius:4px;min-height:44px;padding:10px;font-weight:600}.template-entry-actions button.template-discuss-button{color:#b53028;background:#fff}.template-entry-actions button:disabled{opacity:.5;cursor:not-allowed}.template-discussion-details textarea{resize:vertical;width:100%;min-height:88px;font:inherit;border:1px solid #cbd3d9;border-radius:4px;padding:10px}.template-extra-sources>summary{cursor:pointer;padding:12px 0;font-weight:600}.template-extra-sources .glacier-panel{margin-bottom:12px}@media (max-width:600px){.template-entry-actions{grid-template-columns:1fr}.template-entry-actions>div+div{border-top:1px solid #d9dfe3;padding-top:16px}}.glacier-actions{flex-wrap:wrap}.glacier-actions button{color:#c8332c;font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.template-history-item{text-align:left;align-items:center;gap:12px;width:100%;min-height:82px;display:flex}.template-history-item img,.template-history-placeholder{object-fit:contain;background:#f6f6f7;border-radius:4px;flex:none;width:60px;height:72px}.template-history-placeholder{color:#66727e;place-items:center;font-size:12px;display:grid}.template-history-item>span:last-child{gap:4px;min-width:0;display:grid}.template-history-item small{color:#66727e;line-height:1.35}.template-save-dialog{gap:12px;display:grid}.template-save-dialog>img{object-fit:contain;background:#f6f6f7;width:120px;max-height:160px}.template-save-dialog label{gap:6px;font-size:13px;display:grid}.template-save-dialog label span{color:#c8332c}.template-save-dialog input,.template-save-dialog select{min-height:40px;font:inherit;background:#fff;border:1px solid #cbd3d9;border-radius:4px;padding:8px}.template-load-state{border:1px solid var(--gpt-border);background:#fff;border-radius:12px;max-width:640px;margin:32px auto;padding:32px}.template-load-state h1{margin:0 0 12px;font-size:24px;line-height:1.5}.template-load-state p{color:var(--gpt-muted);margin:0 0 20px;font-size:15px;line-height:1.8}.template-load-state>div{flex-wrap:wrap;gap:12px;display:flex}.template-load-state :is(button,a){border:1px solid var(--gpt-border);border-radius:7px;justify-content:center;align-items:center;min-height:44px;padding:10px 16px;font-size:14px;text-decoration:none;display:inline-flex}.template-load-state button{background:var(--meiji-red);border-color:var(--meiji-red);color:#fff}@media (max-width:600px){.template-load-state{padding:24px 18px}.template-load-state h1{font-size:22px}.template-load-state>div{flex-direction:column}}.glacier-sample{top:96px}.template-sample-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.glacier-sample .template-sample-heading h2{margin:0}.template-sample-heading>button{color:#b53028;min-height:36px;font:inherit;cursor:pointer;background:0 0;border:0;flex:none;padding:6px 0;font-size:13px}.template-sample-image{cursor:zoom-in;background:#f6f7f8;border:0;width:100%;padding:0;display:block}.template-sample-image>img{object-fit:contain;width:100%;height:auto;max-height:clamp(160px,100svh - 480px,610px);display:block}.glacier-sample>p{margin:12px 0 0}.template-sample-dialog{background:0 0;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:20px;position:fixed;inset:0;overflow:hidden}.template-sample-dialog::backdrop{background:#152334b8}.template-sample-dialog-content{background:#fff;border-radius:4px;width:fit-content;max-width:100%;margin:auto;padding:16px}.template-sample-dialog .template-sample-heading{margin-bottom:10px}.template-sample-dialog h2{margin:0;font-size:16px}.template-sample-dialog img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 130px);margin:auto;display:block}.template-sample-image:focus-visible,.template-sample-heading>button:focus-visible{outline-offset:3px;outline:2px solid #b53028}@media (max-width:900px){.glacier-sample{position:static}.template-sample-image>img{max-height:min(420px,65svh)}}@media (max-width:560px){.template-sample-dialog,.template-sample-dialog-content{padding:12px}}@media (min-width:901px) and (max-height:640px){.glacier-sample{position:static}}
