:root{--sage-800: #3f5c51;--sage-700: #4f6f62;--sage-600: #5f8172;--sage-100: #edf4ef;--terracotta: #b96a54;--blue: #6f8da8;--lavender: #9181a8;--ink: #25302b;--muted: #68746f;--line: #dbe2dd;--paper: #fbfaf7;--surface: #ffffff;--success: #2f7a55;--warning: #a66a1f;--error: #b34545;--shadow-sm: 0 1px 2px rgba(37, 48, 43, .08);--shadow-md: 0 8px 24px rgba(37, 48, 43, .1);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--paper)}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh}.topbar{min-height:76px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:18px;padding:0 28px;border-bottom:1px solid var(--line);background:#fffffff0;position:sticky;top:0;z-index:5}.brand{justify-self:start;display:flex;align-items:center;gap:12px;font-weight:760}.brand-mark{width:32px;height:32px;display:inline-grid;place-items:center;border-radius:8px;background:var(--sage-700);color:#fff}.main{max-width:1180px;margin:0 auto;padding:24px}.hero{display:grid;gap:12px;padding:28px 0 22px}.hero h1,.page-title{margin:0;font-family:Crimson Pro,Georgia,serif;font-size:38px;line-height:1.12}.eyebrow{margin:0;color:var(--sage-700);font-size:12px;font-weight:760;text-transform:uppercase;letter-spacing:0}.muted{color:var(--muted)}.surface,.card{background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow-sm)}.surface{padding:20px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.templates-gallery{display:grid;gap:14px}.templates-filters{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(180px,.6fr);gap:16px;align-items:end}.templates-filters-compact{grid-template-columns:minmax(260px,1fr) auto 40px;align-items:center;gap:10px;padding:10px}.templates-search{min-width:0}.templates-group-select{display:grid;grid-template-columns:auto minmax(150px,190px);gap:8px;align-items:center;color:var(--muted);font-size:13px;font-weight:800}.templates-group-select select{min-height:38px;padding-top:6px;padding-bottom:6px}.templates-advanced-filter{width:38px;height:38px;padding:0}.search-input-wrap{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:#fff}.search-input-wrap input{border:0;padding-left:0;box-shadow:none}.search-input-wrap input:focus{outline:0}.templates-tag-filter{grid-column:1 / -1;display:grid;gap:8px}.templates-group-list{display:grid;gap:14px}.template-group-section{display:grid;gap:10px}.template-group-header{min-height:42px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border:0;border-bottom:1px solid var(--line);padding:0 2px 8px;background:transparent;color:var(--ink);cursor:pointer;text-align:left}.template-group-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Crimson Pro,Georgia,serif;font-size:26px;font-weight:760}.template-group-count{min-width:28px;min-height:24px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:999px;padding:2px 8px;background:var(--surface);color:var(--muted);font-size:12px;font-weight:800}.template-group-shelf{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-inline:contain;padding:2px 2px 12px;scroll-snap-type:x proximity}.template-group-shelf .template-card{flex:0 0 252px;scroll-snap-align:start}.templates-filter-label{font-size:14px;font-weight:650}.template-card{display:grid;gap:9px;padding:10px;min-width:0}.template-card-clickable{width:100%;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.template-card-clickable:hover,.template-card-clickable:focus-visible{border-color:var(--sage-600);box-shadow:var(--shadow-md);transform:translateY(-1px);outline:0}.template-card-media{width:100%;aspect-ratio:16 / 9;display:grid;place-items:center;overflow:hidden;border-radius:8px;border:1px solid var(--line);color:var(--muted);background:#f7f5f1}.template-card-media img{width:100%;height:100%;object-fit:cover}.template-card h2{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;line-height:1.25}.template-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.template-card-content{display:grid;gap:6px;min-width:0}.template-card-group{min-height:22px;padding:2px 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.template-description{margin:0;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.template-rating{display:inline-flex;align-items:center;gap:3px;color:var(--warning);font-size:12px;font-weight:800;white-space:nowrap}.tag-chip{display:inline-flex;align-items:center;justify-content:center;min-height:28px;border:1px solid var(--line);border-radius:999px;padding:4px 10px;background:var(--surface);color:var(--muted);font-size:12px;font-weight:700}button.tag-chip{cursor:pointer}.tag-chip-active{border-color:var(--sage-600);background:var(--sage-100);color:var(--sage-800)}.templates-state,.selected-template-panel{display:grid;gap:10px;justify-items:start}.templates-state h2,.templates-state p,.selected-template-panel p{margin:0}.template-form-container{display:grid;gap:18px}.template-detail-header{display:grid;grid-template-columns:minmax(220px,360px) minmax(0,1fr);gap:20px;align-items:start}.template-detail-cover{width:100%;aspect-ratio:16 / 9;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#f7f5f1;color:var(--muted)}.template-detail-cover img{width:100%;height:100%;object-fit:cover}.template-detail-content,.template-form-placeholder{display:grid;gap:12px}.template-detail-content h2,.template-form-placeholder h2,.template-form-placeholder p{margin:0}.template-detail-description{max-height:96px;overflow:hidden;color:var(--muted);line-height:1.6}.template-detail-description.expanded{max-height:none}.template-description-toggle{justify-self:start}.skeleton-block,.skeleton-line,.skeleton-chip{overflow:hidden;position:relative;background:#ece8df}.skeleton-block:after,.skeleton-line:after,.skeleton-chip:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);animation:skeleton-shimmer 1.2s infinite}.skeleton-line{height:14px;border-radius:999px}.skeleton-line-short{width:44%}.skeleton-line-wide{width:72%}.skeleton-chip-row{display:flex;flex-wrap:wrap;gap:8px}.skeleton-chip{width:72px;height:28px;border-radius:999px}@keyframes skeleton-shimmer{to{transform:translate(100%)}}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.app-tabs{justify-self:center;display:inline-flex;align-items:center;gap:4px;border:0;border-radius:999px;padding:6px;background:#edf4efdb}.app-tab{min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:10px 18px;color:var(--muted);font-size:16px;font-weight:560;transition:background .18s ease,color .18s ease,box-shadow .18s ease}.app-tab.active{background:#fff;color:var(--sage-800);box-shadow:0 10px 28px #2c3e301a}.app-tab:hover,.app-tab:focus-visible{color:var(--sage-800);outline:0}.app-tab:focus-visible{box-shadow:0 0 0 3px #5c826238}.page-section{display:grid;gap:18px}.page-heading{display:grid;gap:10px;max-width:760px;padding:28px 0 10px}.page-heading h1,.page-heading p{margin:0}.stub-panel{display:grid;gap:12px;max-width:760px;border:1px dashed var(--line);border-radius:8px;padding:20px;background:var(--surface)}.stub-panel-title{margin:0;font-weight:760}.basic-request-form{display:grid;gap:16px;max-width:760px}.basic-request-input{min-height:180px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.template-flat-form{display:grid;gap:20px}.template-wizard-form{display:grid;gap:18px}.wizard-step-progress{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.wizard-step-button{min-height:48px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:var(--surface);color:var(--muted);cursor:pointer;text-align:left}.wizard-step-button:disabled{cursor:not-allowed;opacity:.55}.wizard-step-button.active{border-color:var(--sage-600);background:var(--sage-100);color:var(--sage-800)}.wizard-step-button.done{color:var(--sage-700)}.wizard-step-button.error{border-color:var(--error);color:var(--error)}.wizard-step-index{width:28px;height:28px;display:inline-grid;place-items:center;border-radius:999px;background:#f0eee9;font-size:13px;font-weight:800}.wizard-step-button.active .wizard-step-index,.wizard-step-button.done .wizard-step-index{background:var(--sage-700);color:#fff}.wizard-step-button.error .wizard-step-index{background:#fff2f2;color:var(--error)}.wizard-step-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.wizard-step-surface{display:grid;gap:16px}.template-form-group{display:grid;gap:14px}.field-wide{grid-column:1 / -1}.field{display:grid;gap:6px}.field label,.field>span{font-weight:650;font-size:14px}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fff;color:var(--ink);box-shadow:inset 0 1px 2px #25302b0a}.field textarea{min-height:104px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid rgba(95,129,114,.22);border-color:var(--sage-600)}.field-error,.error,.field-required{color:var(--error)}.choice-list{display:grid;gap:8px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fff}.choice-item{display:flex;align-items:center;gap:8px;color:var(--ink);font-weight:500}.choice-item input{width:auto;box-shadow:none}.choice-item-single{min-height:40px;border:1px solid var(--line);border-radius:8px;padding:8px 12px;background:#fff}.btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:8px;padding:8px 14px;background:#fff;color:var(--ink);cursor:pointer}.btn:disabled{opacity:.6;cursor:progress}.btn-primary{background:var(--sage-700);color:#fff;box-shadow:var(--shadow-sm)}.btn-primary:hover{background:var(--sage-800);box-shadow:var(--shadow-md)}.btn-secondary{border-color:var(--line)}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;background:var(--sage-100);color:var(--sage-700);font-size:12px;font-weight:700}.tag-list{display:flex;flex-wrap:wrap;gap:6px}.template-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.group{padding:18px;margin-bottom:14px}.group-header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.group-header h2{margin:0;font-size:20px}.repeatable-item{border:1px solid var(--line);border-radius:8px;padding:14px;margin-bottom:12px}.repeatable-item-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.template-form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:16px}.step-progress{display:grid;gap:10px}.step{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:center}.step-dot{width:28px;height:28px;border-radius:999px;display:inline-grid;place-items:center;background:#f0eee9;color:var(--muted);font-size:13px;font-weight:800}.step.active .step-dot,.step.done .step-dot{background:var(--sage-700);color:#fff}.result-box,.json-box{white-space:pre-wrap;border:1px solid var(--line);border-radius:8px;padding:14px;background:#f7f5f1}.request-result-page{height:calc(100vh - 112px);min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:14px;overflow:hidden}.request-result-hero{padding:10px 0 12px;gap:6px}.result-panel{display:grid;gap:18px}.result-panel-header{display:grid;gap:6px}.result-panel-header h2,.result-panel-header p,.result-banner h3,.result-banner p,.result-content h3,.result-content p,.result-materials h3,.result-materials p{margin:0}.result-banner{display:grid;gap:6px;border-radius:8px;padding:14px}.result-banner-soft{border:1px solid #e5d5a8;background:#fff9e8;color:var(--warning)}.result-banner-error{border:1px solid #edc8c8;background:#fff2f2;color:var(--error)}.result-content{display:grid;gap:12px;line-height:1.65}.result-materials{display:grid;gap:10px}.result-materials ul{display:grid;gap:10px;margin:0;padding:0;list-style:none}.result-materials li{display:grid;gap:6px;border:1px solid var(--line);border-radius:8px;padding:12px;background:#f7f5f1}.result-materials a{color:var(--sage-800);font-weight:760}.result-actions{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line);padding-top:16px}.template-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;padding:24px;background:#25302b6b}.template-modal{width:min(1040px,calc(100vw - 48px));height:min(90vh,860px);min-height:80vh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--paper);box-shadow:0 24px 80px #25302b38}.template-modal-header,.template-modal-simple-header{position:relative;display:grid;gap:18px;border-bottom:1px solid var(--line);background:var(--surface)}.template-modal-header{grid-template-columns:160px minmax(0,1fr);align-items:start;padding:18px 58px 16px 18px}.template-modal-simple-header{padding:20px 58px 20px 20px}.template-modal-simple-header h2,.template-modal-title-row h2{margin:0}.template-modal-cover{width:160px;aspect-ratio:16 / 9;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#f7f5f1;color:var(--muted)}.template-modal-cover img{width:100%;height:100%;object-fit:cover}.template-modal-info{min-width:0;display:grid;gap:8px}.template-modal-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start}.template-modal-title-row h2{font-family:Crimson Pro,Georgia,serif;font-size:30px;line-height:1.12}.template-modal-rating{display:inline-flex;align-items:center;gap:4px;color:var(--warning);font-weight:800}.template-modal-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.template-modal-description{position:relative;max-height:4.8em;overflow:hidden;color:var(--muted);line-height:1.6}.template-modal-description:after{content:"";position:absolute;right:0;bottom:0;left:0;height:28px;background:linear-gradient(rgba(255,255,255,0),var(--surface));pointer-events:none}.template-modal-description.expanded{max-height:180px;overflow:auto}.template-modal-description.expanded:after{display:none}.template-modal-description-toggle{justify-self:start;border:0;padding:0;background:transparent;color:var(--sage-800);cursor:pointer;font-weight:800}.template-modal-close{position:absolute;top:14px;right:14px;width:36px;height:36px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted);cursor:pointer}.template-modal-close:hover{color:var(--ink)}.template-modal-body{min-height:0;display:grid;align-content:start;gap:18px;overflow-y:auto;padding:18px}.template-modal-body .template-flat-form,.template-modal-body .template-wizard-form,.template-modal-body .result-panel{box-shadow:none}.template-modal-mobile-summary{display:none}.template-modal-mobile-summary-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.template-modal-mobile-summary p{margin:10px 0 0;color:var(--muted);line-height:1.55}.template-modal-footer{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:14px 18px;background:var(--surface)}.template-modal-status{color:var(--muted);font-weight:700}.template-modal-status-success{color:var(--success)}.template-modal-status-error{color:var(--error)}.processing-status{display:inline-flex;align-items:center;gap:8px}.loading-dots{display:inline-flex;align-items:center;gap:4px}.loading-dots span{width:6px;height:6px;border-radius:999px;background:currentColor;animation:pulse .9s infinite ease-in-out}.loading-dots span:nth-child(2){animation-delay:.15s}.loading-dots span:nth-child(3){animation-delay:.3s}.history-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.history-main{display:grid;gap:16px}.history-filters{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:14px;align-items:end}.history-search{grid-column:span 2}.history-reset-button{align-self:end}.history-list{display:grid;gap:12px}.history-row{width:100%;display:grid;grid-template-columns:84px minmax(0,1fr);gap:14px;padding:12px;color:var(--ink);cursor:pointer;text-align:left}button.history-row{font:inherit}.history-row:hover,.history-row:focus-visible,.history-row.active{border-color:var(--sage-600);box-shadow:var(--shadow-md);outline:0}.history-row-cover{width:84px;aspect-ratio:16 / 9;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#f7f5f1;color:var(--muted)}.history-row-cover img{width:100%;height:100%;object-fit:cover}.history-row-content{min-width:0;display:grid;gap:6px}.history-row-content h2,.history-row-content p{margin:0}.history-row-content h2{font-size:17px}.history-row-topline{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:13px}.history-status{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:760}.history-status-success{background:#eaf6ef;color:var(--success)}.history-status-failed{background:#fff2f2;color:var(--error)}.history-status-in_progress,.history-status-pending,.history-status-running{background:#fff9e8;color:var(--warning)}.history-empty-state,.history-detail-placeholder{display:grid;gap:10px;justify-items:start}.history-empty-state h2,.history-empty-state p,.history-detail-placeholder h2,.history-detail-placeholder p{margin:0}.history-detail{display:grid;gap:18px}.history-detail-template{display:grid;gap:12px}.history-detail-cover{width:100%;aspect-ratio:16 / 9;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#f7f5f1;color:var(--muted)}.history-detail-cover img{width:100%;height:100%;object-fit:cover}.history-detail-template-content,.history-detail-section,.history-detail-groups,.history-detail-group,.history-repeatable-list,.history-repeatable-row,.history-response-text{display:grid;gap:10px}.history-detail-template-content h2,.history-detail-section h3,.history-detail-group h4,.history-response-text p{margin:0}.history-definition-list{display:grid;gap:8px;margin:0}.history-definition-row{display:grid;gap:4px;border:1px solid var(--line);border-radius:8px;padding:10px;background:#f7f5f1}.history-definition-row dt{color:var(--muted);font-size:12px;font-weight:760}.history-definition-row dd{margin:0;overflow-wrap:anywhere}.history-repeatable-row{border:1px solid var(--line);border-radius:8px;padding:10px}.history-raw-json{display:grid;gap:10px}.history-raw-json summary{cursor:pointer;font-weight:760}.request-result-layout{height:100%;min-height:0;align-items:stretch;overflow:hidden}.result-surface,.request-runtime-surface{min-height:0;display:flex;flex-direction:column;gap:14px;overflow:hidden}.markdown-field{flex:1;min-height:0;overflow-y:auto;border:1px solid var(--line);border-radius:8px;padding:18px;background:#f7f5f1;line-height:1.65}.request-runtime-surface .json-box{flex:1;min-height:0;overflow:auto}.markdown-field>:first-child{margin-top:0}.markdown-field>:last-child{margin-bottom:0}.markdown-field h1,.markdown-field h2,.markdown-field h3{margin:1.1em 0 .55em;font-family:Crimson Pro,Georgia,serif;line-height:1.2}.markdown-field h1{font-size:30px}.markdown-field h2{font-size:24px}.markdown-field h3{font-size:20px}.markdown-field p,.markdown-field ul,.markdown-field ol,.markdown-field table,.markdown-field blockquote,.markdown-field pre{margin:0 0 14px}.markdown-field ul,.markdown-field ol{padding-left:24px}.markdown-field li+li{margin-top:6px}.markdown-field table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:14px}.markdown-field th,.markdown-field td{border:1px solid var(--line);padding:10px;vertical-align:top;overflow-wrap:anywhere}.markdown-field th{background:var(--sage-100);color:var(--sage-800);text-align:left}.markdown-field blockquote{border-left:4px solid var(--sage-600);padding:8px 0 8px 14px;color:var(--muted);background:#edf4efb3}.markdown-field a{color:var(--sage-800);font-weight:760;text-decoration:underline;text-underline-offset:3px}.markdown-field code{border-radius:6px;padding:2px 5px;background:#ece8df;font-family:JetBrains Mono,Consolas,monospace;font-size:.92em}.markdown-field pre{overflow-x:auto;border-radius:8px;padding:14px;background:#ece8df}.markdown-field pre code{padding:0;background:transparent}.result-metrics{display:flex;flex-wrap:wrap;gap:8px;margin:0}.result-metric{display:inline-grid;grid-template-columns:auto auto;gap:6px;align-items:baseline;border:1px solid var(--line);border-radius:8px;padding:6px 9px;background:#f7f5f1;color:var(--muted);font-size:12px}.result-metric dt,.result-metric dd{margin:0}.result-metric dt{font-weight:760}.result-metric dd{color:var(--ink);font-variant-numeric:tabular-nums}.history-metrics{margin-top:2px}.toast{border-left:4px solid var(--terracotta);padding:12px;background:#fff7f2;border-radius:8px}.loader-dots{display:inline-flex;gap:4px}.loader-dots span{width:6px;height:6px;border-radius:999px;background:var(--sage-700);animation:pulse .9s infinite ease-in-out}.loader-dots span:nth-child(2){animation-delay:.15s}.loader-dots span:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,80%,to{opacity:.35}40%{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 900px){.grid,.templates-grid,.templates-filters,.template-detail-header,.history-layout,.history-filters,.template-layout,.form-grid{grid-template-columns:1fr}.history-search{grid-column:auto}.topbar,.main{padding-left:16px;padding-right:16px}.request-result-page{height:auto;min-height:calc(100vh - 112px);overflow:visible}.request-result-layout{height:auto;overflow:visible}.result-surface{min-height:60vh}.markdown-field{min-height:0;max-height:65vh}.request-runtime-surface .json-box{max-height:40vh}.template-modal-overlay{padding:10px}.template-modal{width:calc(100vw - 20px);height:calc(100vh - 20px);min-height:0}.template-modal-header{grid-template-columns:1fr;padding:16px 58px 14px 16px}.template-modal-cover{width:min(220px,100%)}.template-modal-title-row{grid-template-columns:1fr;gap:8px}.template-modal-title-row h2{font-size:25px}.template-modal-body{padding:14px}.template-modal-footer{min-height:64px;align-items:stretch}.template-modal-status{display:inline-flex;align-items:center}.template-modal-footer .btn{width:100%}}@media (max-width: 768px){body{overflow-x:hidden}.templates-gallery{gap:12px}.templates-filters-compact{grid-template-columns:1fr;align-items:stretch;gap:9px;padding:10px}.templates-group-select{grid-template-columns:1fr;gap:5px}.templates-group-select select,.search-input-wrap{width:100%}.templates-advanced-filter{display:none}.templates-group-list{gap:16px}.template-group-header{min-height:38px;padding-bottom:7px}.template-group-title{font-size:22px}.template-group-shelf{display:grid;grid-template-columns:1fr;gap:10px;overflow-x:visible;padding:0;scroll-snap-type:none}.template-group-shelf .template-card{width:100%;flex:none;scroll-snap-align:none}.template-card{grid-template-columns:96px minmax(0,1fr);gap:10px;align-items:start;padding:8px}.template-card-media{width:96px;border-radius:7px}.template-card-content{position:relative;min-height:54px;padding-right:54px;gap:5px}.template-card-meta{display:block;min-height:0}.template-card-group{display:none}.template-card h2{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:14px;line-height:1.25}.template-description{font-size:12px}.template-card .template-rating{position:absolute;top:1px;right:0}.template-modal-overlay{padding:0}.template-modal{width:100vw;height:100vh;min-height:100vh;border:0;border-radius:0}.template-modal-header{min-height:58px;grid-template-columns:1fr;align-items:center;padding:12px 48px 12px 54px}.template-modal-cover,.template-modal-header .template-modal-rating,.template-modal-header .template-modal-meta,.template-modal-header .template-modal-description,.template-modal-header .template-modal-description-toggle{display:none}.template-modal-title-row{display:block}.template-modal-title-row h2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:20px}.template-modal-close{left:10px;right:auto;top:11px}.template-modal-body{gap:12px;padding:12px;overflow-y:auto}.template-modal-mobile-summary{display:block;padding:12px}.template-modal-body .template-flat-form,.template-modal-body .template-wizard-form,.template-modal-body .result-panel{padding:14px}.wizard-step-progress{grid-template-columns:1fr}.template-modal-footer{min-height:68px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}}@media (max-width: 380px){.template-card{grid-template-columns:84px minmax(0,1fr)}.template-card-media{width:84px}.template-card-content{padding-right:48px}}.history-showcase{display:grid;gap:18px}.history-filters-compact{display:grid;grid-template-columns:minmax(260px,1fr) minmax(150px,220px) minmax(140px,180px) minmax(140px,180px) 42px;gap:10px;align-items:center;padding:12px}.history-filters-compact-grouped{grid-template-columns:minmax(260px,1fr) minmax(140px,180px) minmax(140px,180px) 42px}.history-search-compact{min-height:42px}.history-filter-select{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;min-height:42px;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:#fff}.history-filter-select span{color:var(--muted);font-size:12px;font-weight:760}.history-filter-select select{min-width:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:14px;outline:0}.history-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:14px}.history-group-list{display:grid;gap:18px}.history-group-section{min-width:0;display:grid;gap:10px}.history-group-header{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:16px 18px;cursor:pointer;color:var(--ink);font:inherit;text-align:left;transition:border-color .18s ease,box-shadow .18s ease}.history-group-header:hover,.history-group-header:focus-visible{border-color:var(--sage-600);box-shadow:var(--shadow-md);outline:0}.history-group-title-block{min-width:0;display:grid;gap:4px}.history-group-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px;font-weight:820}.history-group-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:13px;font-weight:650}.history-group-caret{color:var(--sage-800);transition:transform .18s ease}.history-group-caret.collapsed{transform:rotate(-90deg)}.history-group-shelf{min-width:0;display:flex;gap:14px;overflow-x:auto;overflow-y:visible;padding:2px 2px 10px;scroll-snap-type:x proximity;scrollbar-color:rgba(92,130,98,.45) transparent}.history-group-shelf .history-card{flex:0 0 260px;scroll-snap-align:start}.history-card{position:relative;min-width:0;display:grid;gap:10px;padding:10px;cursor:pointer;color:var(--ink);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.history-card:hover,.history-card:focus-visible{border-color:var(--sage-600);box-shadow:var(--shadow-md);outline:0;transform:translateY(-1px)}.history-card-media{width:100%;aspect-ratio:16 / 9;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:linear-gradient(135deg,#f3efe7,#e5ece5);color:var(--sage-700)}.history-card-media img{width:100%;height:100%;object-fit:cover}.history-card-content{min-width:0;display:grid;gap:6px}.history-card-content h2,.history-card-content p{margin:0}.history-card-content h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:34px;font-size:16px;line-height:1.25}.history-card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-right:34px}.history-card-rating{display:inline-flex;align-items:center;gap:3px;color:var(--warning);font-size:13px;font-weight:800;white-space:nowrap}.history-card-date{color:var(--muted);font-size:13px}.history-card-excerpt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:14px}.history-card-menu{position:absolute;top:8px;right:8px;z-index:4}.history-card-menu-trigger{width:34px;height:34px;display:inline-grid;place-items:center;border:1px solid rgba(255,255,255,.72);border-radius:8px;background:#ffffffe0;color:var(--sage-800);cursor:pointer;box-shadow:0 8px 24px #2c3e301f}.history-card-menu-trigger:hover,.history-card-menu-trigger:focus-visible{background:#fff;outline:2px solid rgba(92,130,98,.25)}.history-card-menu-dropdown{position:absolute;top:calc(100% + 6px);right:0;min-width:160px;display:grid;gap:2px;border:1px solid var(--line);border-radius:8px;padding:6px;background:#fff;box-shadow:var(--shadow-lg)}.history-card-menu-dropdown button{border:0;border-radius:6px;padding:9px 10px;background:transparent;color:var(--ink);cursor:pointer;font:inherit;text-align:left}.history-card-menu-dropdown button:hover,.history-card-menu-dropdown button:focus-visible{background:var(--sage-100);outline:0}.history-modal{width:min(1100px,calc(100vw - 48px))}.history-modal-header{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;border-bottom:1px solid var(--line);padding:22px 58px 18px 22px}.history-modal-info{min-width:0;display:grid;gap:8px}.history-modal-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start}.history-modal-title-row h2{margin:0;font-family:Crimson Pro,Georgia,serif;font-size:30px;line-height:1.12}.history-modal-meta,.history-modal-tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.history-modal-date{color:var(--muted);font-weight:700}.history-modal-body{gap:16px}.history-modal-section{display:grid;gap:12px;box-shadow:none}.history-modal-section h3,.history-modal-section h4,.history-modal-section p{margin:0}.history-modal-section-title{display:flex;flex-wrap:wrap;gap:10px;align-items:baseline;justify-content:space-between}.history-modal-markdown{max-height:none;overflow:visible}.history-modal-metrics .result-metrics{margin:0}.history-modal-footer{gap:16px}.history-modal-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.markdown-table-scroll{max-width:100%;overflow-x:auto;margin:0 0 14px}.markdown-table-scroll table{margin:0}.markdown-field{overflow-wrap:anywhere}.markdown-field hr{border:0;border-top:1px solid var(--line);margin:18px 0}.markdown-field input[type=checkbox]{margin-right:8px}@media (max-width: 768px){.topbar{grid-template-columns:1fr;gap:10px;justify-items:center;padding-top:12px;padding-bottom:12px}.brand{justify-self:center}.app-tabs{width:100%;overflow-x:auto;justify-self:stretch;justify-content:flex-start}.app-tab{flex:0 0 auto;font-size:15px}.history-filters-compact{grid-template-columns:1fr}.history-filter-select{grid-template-columns:1fr;gap:2px;padding:8px 10px}.history-card-grid{grid-template-columns:1fr}.history-group-header{grid-template-columns:minmax(0,1fr) auto;padding:12px 14px}.history-group-title{font-size:16px}.history-group-meta{white-space:normal}.history-group-shelf{display:grid;gap:10px;overflow:visible;padding:0;scroll-snap-type:none}.history-group-shelf .history-card{flex-basis:auto;scroll-snap-align:none}.history-card{grid-template-columns:104px minmax(0,1fr);align-items:start}.history-card-media{width:104px}.history-card-content h2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}.history-card-topline{padding-right:40px}.history-modal-header{min-height:58px;grid-template-columns:1fr;align-items:center;padding:12px 48px 12px 54px}.history-modal-cover,.history-modal-header .template-modal-rating,.history-modal-tags{display:none}.history-modal-title-row{display:block}.history-modal-title-row h2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:20px}.history-modal-meta{margin-top:8px}.history-modal-actions,.history-modal-actions .btn{width:100%}.history-modal-footer{align-items:stretch}}@media (max-width: 380px){.history-card{grid-template-columns:92px minmax(0,1fr)}.history-card-media{width:92px}}.history-group-title-block{gap:3px}.history-group-title-row{min-width:0;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:baseline}.history-group-title{font-size:22px;font-weight:500;letter-spacing:0}.history-group-meta{font-weight:500}.history-group-subtitle{color:var(--muted);font-size:13px}.history-group-shelf .history-card{flex:0 0 252px}.history-card{min-height:196px;align-content:start;padding:14px}.history-card-content{gap:9px}.history-card-topline{min-width:0;padding-right:38px}.history-card-content h2{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:0;font-size:19px;font-weight:560;line-height:1.2}.history-card-birthdate{margin:0;color:var(--sage-800);font-size:13px;font-weight:620}.history-card-question{display:-webkit-box;overflow:hidden;min-height:4.35em;margin:0;color:var(--ink);line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:3}.history-card-meta{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-top:2px;color:var(--muted);font-size:12px;font-weight:650}.history-card-status-icon,.history-card-token-count,.history-card-rating{display:inline-flex;align-items:center;gap:3px}.history-card-status-icon.history-status-success{color:var(--success);background:transparent}.history-card-status-icon.history-status-failed{color:var(--error);background:transparent}.history-card-status-icon.history-status-in_progress,.history-card-status-icon.history-status-pending{color:var(--warning);background:transparent}.history-card-token-count{color:var(--muted)}.history-card-rating{color:var(--warning)}.history-card-status-spin{animation:spin 1.1s linear infinite}.history-modal-human-context{display:grid;gap:12px;box-shadow:none}.history-modal-human-context div{min-width:0;display:grid;gap:4px}.history-modal-human-context span{color:var(--muted);font-size:12px;font-weight:760}.history-modal-human-context strong,.history-modal-human-context p{margin:0;overflow-wrap:anywhere}.history-modal-human-context strong{font-size:18px;font-weight:560}.history-modal-human-question{grid-column:span 1}@media (max-width: 768px){.history-group-title-row{display:grid;gap:3px}.history-group-title{font-size:18px;white-space:normal}.history-card,.history-group-shelf .history-card{min-height:0;grid-template-columns:1fr;flex-basis:auto}.history-card-content h2{display:block;white-space:nowrap}.history-card-question{min-height:0;-webkit-line-clamp:2}.history-modal-human-context{grid-template-columns:1fr}}.history-group-header{grid-template-columns:58px minmax(0,1fr) auto auto;gap:14px;align-items:center;border-color:transparent;border-radius:999px;padding:12px 16px;background:#edf4efb8;box-shadow:none}.history-group-header:hover,.history-group-header:focus-visible{border-color:transparent;box-shadow:0 10px 28px #2c3e3014}.history-group-thumbnail{width:58px;aspect-ratio:16 / 9;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:linear-gradient(135deg,#f3efe7,#e5ece5);color:var(--sage-700)}.history-group-thumbnail img{width:100%;height:100%;object-fit:cover}.history-group-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:22px;font-weight:500}.history-group-meta{min-width:0;color:var(--muted);font-size:14px;font-weight:500;white-space:nowrap}.history-group-subtitle,.history-group-title-row{display:contents}@media (max-width: 768px){.history-group-header{grid-template-columns:48px minmax(0,1fr) auto auto;border-radius:14px;padding:10px 12px}.history-group-thumbnail{width:48px}.history-group-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}.page-section-clean>.page-heading{display:none}.basic-page{height:calc(100vh - 128px);min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;align-content:stretch;justify-items:center;gap:16px;overflow:hidden;padding:28px 0}.basic-dialog-panel{position:relative;width:min(860px,100%);box-sizing:border-box;height:100%;min-height:0;align-self:stretch;overflow:hidden;border:1px solid rgba(219,226,221,.9);border-radius:18px;padding:20px;background:#ffffffd1;box-shadow:0 18px 52px #2c3e3014;color:var(--ink);font-family:inherit;font-size:20px;line-height:1.55}.basic-message-list{height:100%;min-height:0;position:relative;display:flex;flex-direction:column;gap:14px;overflow-x:hidden;overflow-y:auto;padding-right:4px;overscroll-behavior:contain}.basic-message{position:relative;display:grid;gap:6px;max-width:78%;border:1px solid rgba(219,226,221,.65);border-radius:14px;padding:40px 14px 12px;background:#ffffffa8;font:inherit;font-size:16px;line-height:1.55;overflow-wrap:anywhere;word-break:break-word}.basic-message-user{align-self:end;background:#edf4efd1}.basic-message-assistant{width:100%;max-width:100%;align-self:center;border:0;background:transparent}.basic-message-pending{min-height:48px;align-content:start;padding:28px 14px 8px}.basic-message-copy{position:absolute;top:10px;right:10px;width:22px;height:22px;display:inline-grid;place-items:center;border:1px solid rgba(219,226,221,.78);border-radius:999px;padding:0;background:#ffffffe0;color:var(--sage-800);cursor:pointer;box-shadow:0 4px 12px #2c3e3014}.basic-message-copy:hover,.basic-message-copy:focus-visible{outline:0;border-color:#5f81726b;background:#fff;box-shadow:0 4px 12px #2c3e3014,0 0 0 3px #5c826224}.basic-message-scroll-spacer{flex:0 0 calc(100% - 1px);pointer-events:none}.basic-scroll-bottom-button{position:absolute;left:50%;bottom:20px;z-index:2;width:42px;height:42px;display:inline-grid;place-items:center;border:1px solid rgba(219,226,221,.78);border-radius:999px;padding:0;background:#fffffff0;color:var(--sage-800);cursor:pointer;opacity:.6;box-shadow:0 10px 28px #2c3e3029;transform:translate(-50%)}.basic-scroll-bottom-button:hover,.basic-scroll-bottom-button:focus-visible{outline:0;border-color:#5f81726b;background:#fff;box-shadow:0 10px 28px #2c3e3029,0 0 0 4px #5c826224}.basic-message p,.basic-dialog-empty,.basic-message .markdown-field,.basic-message .markdown-renderer{margin:0;border:0;padding:0;background:transparent;color:inherit;font:inherit;line-height:inherit}.basic-message .markdown-field>*:first-child{margin-top:0}.basic-message .markdown-field>*:last-child{margin-bottom:0}.basic-dialog-empty{height:100%;display:grid;place-items:center;color:var(--muted);text-align:center}.basic-request-form-clean{width:min(860px,100%);max-width:860px;box-sizing:border-box;position:relative;display:block;border:0;box-shadow:none;background:transparent;padding:0}.basic-request-input-clean{box-sizing:border-box;width:100%;min-height:134px;resize:vertical;border:1px solid rgba(219,226,221,.9);border-radius:18px;padding:24px 88px 24px 24px;background:#ffffffd1;box-shadow:0 18px 52px #2c3e3014;color:var(--ink);font-size:20px;line-height:1.55}.basic-request-input-clean:focus{border-color:#5c826280;outline:0;box-shadow:0 18px 52px #2c3e3014,0 0 0 4px #5c826224}.basic-submit-button{position:absolute;right:16px;bottom:16px;width:44px;min-width:44px;height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:0;background:#fff;color:var(--sage-800);box-shadow:0 10px 28px #2c3e301f;line-height:1}.basic-submit-button svg{flex:0 0 auto}.basic-result-card{width:min(860px,100%);border-color:transparent;border-radius:18px;box-shadow:0 14px 42px #2c3e3014}.basic-result-card .markdown-field{border:0;padding:0;background:transparent;overflow:visible}.templates-search-panel{grid-template-columns:minmax(260px,1fr) minmax(220px,320px) auto;align-items:center;border-color:transparent;border-radius:18px;padding:12px;background:#edf4efb8;box-shadow:none}.templates-groups-dropdown{position:relative;min-width:0}.templates-groups-trigger{width:100%;min-height:44px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;border:0;border-radius:999px;padding:10px 14px;background:#fff;color:var(--ink);cursor:pointer;font:inherit;text-align:left;box-shadow:0 8px 24px #2c3e3014}.templates-groups-trigger span{color:var(--muted);font-weight:560}.templates-groups-trigger strong{color:var(--sage-800);font-weight:560}.templates-groups-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:20;width:min(360px,calc(100vw - 48px));display:grid;gap:10px;border:1px solid var(--line);border-radius:16px;padding:12px;background:#fff;box-shadow:var(--shadow-lg)}.templates-groups-search{min-height:40px}.templates-groups-options{max-height:320px;display:grid;gap:4px;overflow-y:auto}.templates-group-option{width:100%;min-height:42px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:0;border-radius:10px;padding:8px 10px;background:transparent;color:var(--ink);cursor:pointer;font:inherit;text-align:left}.templates-group-option:hover,.templates-group-option:focus-visible{background:var(--sage-100);outline:0}.toggle-switch{width:38px;height:22px;display:inline-flex;align-items:center;border-radius:999px;padding:2px;background:#dbe2dd;transition:background .16s ease}.toggle-switch span{width:18px;height:18px;border-radius:999px;background:#fff;box-shadow:var(--shadow-sm);transition:transform .16s ease}.toggle-switch.active{background:var(--sage-700)}.toggle-switch.active span{transform:translate(16px)}.templates-clear-button{min-height:44px;border:0;border-radius:999px;background:#fff;color:var(--sage-800);box-shadow:0 8px 24px #2c3e3014;font-weight:560}.template-group-header{grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;border-color:transparent;border-radius:999px;padding:12px 16px;background:#edf4efb8;box-shadow:none}.template-group-thumbnail{display:none}.template-group-title{font-size:22px;font-weight:500}.template-group-count{min-width:0;min-height:0;display:block;border:0;border-radius:0;padding:0;background:transparent;color:var(--muted);font-size:14px;font-weight:500;white-space:nowrap}.template-card{border-color:transparent;border-radius:16px;padding:12px;box-shadow:0 10px 28px #2c3e300f}.template-card h2{font-size:18px;font-weight:560}@media (max-width: 768px){.basic-page{height:calc(100vh - 156px);min-height:0;align-content:stretch;padding:18px 0}.basic-dialog-panel{padding:16px;font-size:18px}.basic-message{max-width:100%}.basic-message-assistant{width:100%;max-width:100%}.basic-request-input-clean{min-height:109px;font-size:18px}.templates-search-panel{grid-template-columns:1fr}.templates-groups-menu{left:0;right:auto;width:min(100%,calc(100vw - 48px))}.template-group-header{grid-template-columns:minmax(0,1fr) auto;border-radius:14px;padding:10px 12px}.template-group-count{overflow:hidden;text-overflow:ellipsis}}:root{--shadow-lg: 0 20px 56px rgba(37, 48, 43, .14)}.topbar{display:flex;justify-content:center;position:sticky;min-height:78px;border-bottom:0;background:#fbfaf7e6;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.topbar-auth{position:absolute;right:24px;top:50%;transform:translateY(-50%)}.topbar-auth-button{max-width:220px;min-height:42px;display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:9px 14px;background:#ffffffeb;color:var(--sage-800);cursor:pointer;font:inherit;font-size:14px;font-weight:560;box-shadow:0 8px 24px #2c3e3014}.topbar-auth-button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-auth-button:hover,.topbar-auth-button:focus-visible{outline:0;box-shadow:0 8px 24px #2c3e3014,0 0 0 4px #5c826224}.app-tabs{justify-self:center;gap:6px;padding:7px;background:#edf4efe6;box-shadow:inset 0 0 0 1px #dbe2ddb8}.app-tab{min-height:48px;padding:12px 22px;font-size:17px;font-weight:520}.main{max-width:1280px;padding-top:28px}.templates-gallery,.history-showcase{gap:22px}.templates-search-panel{grid-template-columns:minmax(420px,1fr) minmax(220px,300px) 52px;gap:14px;align-items:center;border:0;border-radius:22px;padding:12px;background:#edf4efbd;box-shadow:none}.templates-search-panel .search-input-wrap,.templates-groups-trigger,.templates-clear-button{min-height:52px;border-radius:999px}.templates-search-panel .search-input-wrap{border:0;background:#fff;box-shadow:0 8px 24px #2c3e3014}.templates-groups-trigger{border:0;box-shadow:0 8px 24px #2c3e3014}.templates-clear-button{width:52px;height:52px;display:inline-grid;place-items:center;border:0;padding:0;background:#fff;color:var(--sage-800);cursor:pointer;box-shadow:0 8px 24px #2c3e3014}.templates-clear-button:hover,.templates-clear-button:focus-visible{color:var(--error);outline:0;box-shadow:0 8px 24px #2c3e3014,0 0 0 4px #b345451f}.templates-groups-menu{border:0;border-radius:18px;box-shadow:var(--shadow-lg)}.templates-groups-empty{margin:0;padding:10px;color:var(--muted);font-size:14px}.group-header-light.template-group-header,.group-header-light.history-group-header{width:100%;min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;border:0;border-radius:999px;padding:12px 18px;background:#edf4efbd;color:var(--ink);cursor:pointer;font:inherit;text-align:left;box-shadow:none}.templates-gallery .group-header-light.template-group-header{grid-template-columns:minmax(0,1fr) auto}.templates-gallery .group-header-light.template-group-header .group-header-copy{justify-self:start}.group-header-light:hover,.group-header-light:focus-visible{outline:0;box-shadow:0 10px 28px #2c3e3014}.group-header-copy{min-width:0;display:flex;gap:12px;align-items:baseline;justify-content:flex-start;white-space:nowrap}.group-header-title,.group-header-meta{display:inline-block;letter-spacing:0}.group-header-title{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-size:22px;font-weight:520}.group-header-meta{flex:0 0 auto;color:var(--muted);font-size:14px;font-weight:500}.group-header-caret{color:var(--sage-800);transition:transform .18s ease}.group-header-caret.collapsed{transform:rotate(-90deg)}.template-group-section,.history-group-section{gap:12px}.template-group-shelf,.history-group-shelf{gap:14px;padding:2px 2px 14px}.template-card,.history-card{border:0;border-radius:18px;box-shadow:0 10px 28px #2c3e300f;font-family:inherit}.template-card h2,.history-card-content h2{font-size:19px;font-weight:560;line-height:1.2}.template-description,.history-card-question,.history-card-birthdate,.history-card-meta{font-weight:500}.history-card{min-height:196px}.history-card-menu-trigger{border:0;border-radius:999px;background:#ffffffeb}@media (max-width: 768px){.topbar{min-height:72px;padding:10px 14px}.app-tabs{width:100%;justify-content:center}.app-tab{min-height:42px;padding:9px 13px;font-size:14px}.templates-search-panel{grid-template-columns:1fr 52px}.templates-search{grid-column:1 / -1}.group-header-light.template-group-header,.group-header-light.history-group-header{min-height:54px;border-radius:16px;padding:10px 12px}.group-header-copy{display:grid;gap:3px;white-space:normal}.group-header-title{white-space:nowrap;font-size:18px}.group-header-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.template-group-shelf,.history-group-shelf{display:grid;grid-template-columns:1fr;overflow:visible;padding:0;scroll-snap-type:none}.template-group-shelf .template-card,.history-group-shelf .history-card{width:100%;flex:none;scroll-snap-align:none}}.template-group-header-light{width:100%;min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;border:0;border-radius:999px;padding:12px 18px;background:#edf4efbd;color:var(--ink);cursor:pointer;font:inherit;text-align:left;box-shadow:none}.template-group-header-light:hover,.template-group-header-light:focus-visible,.history-group-header-light:hover,.history-group-header-light:focus-visible{outline:0;box-shadow:0 10px 28px #2c3e3014}.template-group-header-copy{min-width:0;display:flex;gap:12px;align-items:baseline;justify-self:start;white-space:nowrap}.template-group-header-title,.template-group-header-meta{display:inline-block;letter-spacing:0}.template-group-header-title{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-size:22px;font-weight:520}.template-group-header-meta{flex:0 0 auto;color:var(--muted);font-size:14px;font-weight:500}.template-group-header-caret,.history-group-header-caret{color:var(--sage-800);transition:transform .18s ease}.template-group-header-caret.collapsed,.history-group-header-caret.collapsed{transform:rotate(-90deg)}.history-group-header-light{width:100%;min-height:64px;display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:16px;align-items:center;border:0;border-radius:999px;padding:10px 18px 10px 10px;background:#edf4efbd;color:var(--ink);cursor:pointer;font:inherit;text-align:left;box-shadow:none}.history-group-header-light .history-group-thumbnail{width:72px;aspect-ratio:16 / 9;display:grid;place-items:center;overflow:hidden;border-radius:12px;background:#fff;color:var(--sage-700);box-shadow:inset 0 0 0 1px #dbe2ddb8}.history-group-header-light .history-group-thumbnail img{width:100%;height:100%;object-fit:cover}.history-group-header-copy{min-width:0;display:flex;gap:12px;align-items:baseline;justify-self:start;white-space:nowrap}.history-group-header-title{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-size:22px;font-weight:520}.history-group-header-meta{flex:0 0 auto;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:14px;font-weight:500}.history-search-panel{grid-template-columns:minmax(280px,1fr) minmax(190px,240px) minmax(170px,220px) 52px;gap:14px;align-items:center;border:0;border-radius:22px;padding:12px;background:#edf4efbd;box-shadow:none}.history-search-panel .search-input-wrap,.history-filter-trigger,.history-clear-button{min-height:52px;border-radius:999px}.history-search-panel .search-input-wrap{border:0;background:#fff;box-shadow:0 8px 24px #2c3e3014}.history-filter-dropdown{position:relative;min-width:0}.history-filter-trigger{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;border:0;padding:10px 14px;background:#fff;color:var(--ink);cursor:pointer;font:inherit;text-align:left;box-shadow:0 8px 24px #2c3e3014}.history-filter-trigger span{color:var(--muted);font-weight:560}.history-filter-trigger strong{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--sage-800);font-weight:560;white-space:nowrap}.history-filter-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:20;width:min(280px,calc(100vw - 48px));display:grid;gap:4px;border:0;border-radius:18px;padding:10px;background:#fff;box-shadow:var(--shadow-lg)}.history-filter-option{width:100%;min-height:42px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:0;border-radius:10px;padding:8px 10px;background:transparent;color:var(--ink);cursor:pointer;font:inherit;text-align:left}.history-filter-option:hover,.history-filter-option:focus-visible{background:var(--sage-100);outline:0}.history-clear-button{width:52px;height:52px;display:inline-grid;place-items:center;border:0;padding:0;background:#fff;color:var(--sage-800);cursor:pointer;box-shadow:0 8px 24px #2c3e3014}.history-clear-button:hover,.history-clear-button:focus-visible{color:var(--error);outline:0;box-shadow:0 8px 24px #2c3e3014,0 0 0 4px #b345451f}@media (max-width: 768px){.template-group-header-light,.history-group-header-light{min-height:54px;border-radius:16px;padding:10px 12px}.history-group-header-light{grid-template-columns:58px minmax(0,1fr) auto}.history-group-header-light .history-group-thumbnail{width:58px}.template-group-header-copy,.history-group-header-copy{display:grid;gap:3px;white-space:normal}.template-group-header-title,.history-group-header-title{white-space:nowrap;font-size:18px}.template-group-header-meta,.history-group-header-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.history-search-panel{grid-template-columns:1fr 52px}.history-search-compact{grid-column:1 / -1}.history-filter-menu{left:0;right:auto;width:min(100%,calc(100vw - 48px))}}.template-modal-overlay{padding:24px;background:#25302b5c;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.template-modal{width:min(1120px,calc(100vw - 48px));height:min(90vh,880px);min-height:min(760px,calc(100vh - 48px));border:0;border-radius:24px;background:#fbfaf7fa;box-shadow:0 28px 88px #25302b33}.template-modal-header,.template-modal-simple-header{border-bottom:0;background:linear-gradient(135deg,#edf4efe0,#ffffffeb 68%),var(--surface)}.template-modal-header{grid-template-columns:minmax(200px,28%) minmax(0,1fr);gap:22px;align-items:stretch;padding:22px 64px 18px 22px}.template-modal-cover{width:100%;min-height:132px;aspect-ratio:4 / 3;border:0;border-radius:20px;background:#ffffffd1;box-shadow:0 14px 38px #2c3e301a}.template-modal-cover img,.template-modal-mobile-cover img{width:100%;height:100%;object-fit:cover}.template-modal-info{align-content:center;gap:12px}.template-modal-title-row{gap:12px}.template-modal-title-row h2{font-family:inherit;font-size:26px;font-weight:560;line-height:1.2;letter-spacing:0}.template-modal-rating{min-height:34px;align-self:start;border-radius:999px;padding:6px 10px;background:#ffffffd1;box-shadow:0 8px 22px #2c3e3014;font-weight:560}.template-modal-meta{gap:7px}.template-modal-description{max-height:5.1em;color:var(--muted);font-size:15px;font-weight:500;line-height:1.55}.template-modal-description:after{background:linear-gradient(#fff0,#fafcf8f5)}.template-modal-description-toggle{min-height:34px;border-radius:999px;padding:6px 12px;background:#ffffffc7;font-weight:560}.template-modal-description-toggle:hover,.template-modal-description-toggle:focus-visible{outline:0;box-shadow:none}.template-modal-description-toggle:active{outline:0;box-shadow:none}.template-modal-close{top:18px;right:18px;width:40px;height:40px;border:0;border-radius:999px;background:#ffffffe0;box-shadow:0 8px 24px #2c3e3014}.template-modal-close:hover,.template-modal-close:focus-visible{color:var(--sage-800);outline:0;box-shadow:0 8px 24px #2c3e3014,0 0 0 4px #5c826224}.template-modal-body{gap:16px;padding:18px 22px}.template-modal-body .template-flat-form,.template-modal-body .template-wizard-form,.template-modal-body .result-panel,.template-modal-mobile-summary{border:0;border-radius:20px;background:#ffffffdb;box-shadow:0 12px 34px #2c3e3012}.template-modal-body .template-flat-form,.template-modal-body .template-wizard-form{padding:20px}.template-modal-body .field input,.template-modal-body .field select,.template-modal-body .field textarea,.template-modal-body .choice-list,.template-modal-body .choice-item-single{border-color:#dbe2dde6;border-radius:14px;background:#ffffffeb}.template-modal-footer{min-height:74px;border-top:0;padding:14px 22px 18px;background:#fbfaf7fa}.template-modal-footer .btn-primary{min-height:52px;border:0;border-radius:999px;padding:12px 26px;font-size:16px;font-weight:560}.template-modal-status{font-weight:560}.template-modal-mobile-cover{display:none}@media (max-width: 1024px){.template-modal{width:calc(100vw - 28px);height:calc(100vh - 28px);min-height:0}.template-modal-header{grid-template-columns:minmax(160px,26%) minmax(0,1fr);gap:18px;padding:18px 58px 16px 18px}.template-modal-cover{min-height:112px}.template-modal-title-row{grid-template-columns:minmax(0,1fr)}.template-modal-title-row h2{font-size:23px}}@media (max-width: 768px){.template-modal-overlay{padding:0}.template-modal{width:100vw;height:100vh;min-height:100vh;border-radius:0}.template-modal-header{min-height:66px;grid-template-columns:minmax(0,1fr);padding:12px 16px 12px 62px;background:#fbfaf7f5}.template-modal-title-row h2{font-size:19px;line-height:1.22}.template-modal-close{top:13px;left:12px;right:auto}.template-modal-body{gap:12px;padding:12px}.template-modal-mobile-summary{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px 12px;align-items:start;padding:12px}.template-modal-mobile-cover{grid-row:span 2;width:72px;aspect-ratio:1 / 1;display:grid;place-items:center;overflow:hidden;border-radius:16px;background:var(--sage-100);color:var(--muted)}.template-modal-mobile-summary-row{min-width:0;align-self:center}.template-modal-mobile-summary p{min-width:0;display:-webkit-box;overflow:hidden;margin:0;-webkit-box-orient:vertical;-webkit-line-clamp:3;font-size:14px;line-height:1.45}.template-modal-body .template-flat-form,.template-modal-body .template-wizard-form,.template-modal-body .result-panel{border-radius:18px;padding:14px}.template-modal-footer{min-height:72px;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.template-modal-footer .btn-primary{width:100%}}@media (max-width: 420px){.template-modal-mobile-summary{grid-template-columns:64px minmax(0,1fr)}.template-modal-mobile-cover{width:64px;border-radius:14px}}.auth-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:grid;place-items:center;padding:24px;background:#25302b5c;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.auth-modal{position:relative;width:min(460px,calc(100vw - 48px));max-height:calc(100vh - 48px);display:grid;grid-template-rows:auto minmax(0,auto) auto;overflow:auto;border:0;border-radius:24px;background:#fbfaf7fa;box-shadow:0 28px 88px #25302b33}.profile-modal{width:min(520px,calc(100vw - 48px))}.auth-modal-header{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;padding:24px 24px 16px;background:linear-gradient(135deg,#edf4efe0,#ffffffeb 68%),var(--surface)}.auth-modal-header h2,.auth-modal-header p{margin:0}.auth-modal-header h2{color:var(--ink);font-size:25px;font-weight:560;line-height:1.2}.auth-modal-header p{margin-top:8px;color:var(--muted);font-size:15px;font-weight:500;line-height:1.45}.auth-modal-close{width:40px;height:40px;display:inline-grid;place-items:center;border:0;border-radius:999px;background:#ffffffe0;color:var(--muted);cursor:pointer;box-shadow:0 8px 24px #2c3e3014}.auth-modal-close:hover,.auth-modal-close:focus-visible{color:var(--sage-800);outline:0;box-shadow:0 8px 24px #2c3e3014,0 0 0 4px #5c826224}.auth-form{display:grid;gap:14px;padding:20px 24px 8px}.auth-field{min-width:0;display:grid;gap:7px;color:var(--ink);font-size:14px;font-weight:650}.auth-field input{width:100%;min-height:48px;border:1px solid rgba(219,226,221,.9);border-radius:14px;padding:11px 14px;background:#fffffff0;color:var(--ink);box-shadow:inset 0 1px 2px #25302b0a}.auth-field input:focus{border-color:var(--sage-600);outline:3px solid rgba(95,129,114,.18)}.auth-field small,.auth-error{color:var(--error);font-size:13px;font-weight:560;line-height:1.35}.auth-field small,.auth-error,.auth-success,.auth-switch{margin:0}.auth-success{color:var(--success);font-size:13px;font-weight:650;line-height:1.35}.auth-submit{min-height:50px;border:0;border-radius:999px;margin-top:4px;font-size:16px;font-weight:560}.auth-oauth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 24px 4px}.auth-oauth-grid .btn,.profile-actions .btn,.auth-confirm-actions .btn{min-height:44px;border-radius:999px;font-weight:560}.auth-switch{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:16px 24px 24px;color:var(--muted);font-size:14px;font-weight:500}.auth-switch button{border:0;padding:0;background:transparent;color:var(--sage-800);cursor:pointer;font:inherit;font-weight:760}.auth-switch button:hover,.auth-switch button:focus-visible{outline:0;text-decoration:underline;text-underline-offset:3px}.profile-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:2px 0 0}.profile-meta div{min-width:0;border-radius:16px;padding:12px;background:#edf4efbd}.profile-meta dt,.profile-meta dd{margin:0}.profile-meta dt{color:var(--muted);font-size:12px;font-weight:700}.profile-meta dd{margin-top:4px;overflow:hidden;color:var(--ink);font-size:14px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.profile-actions{display:flex;justify-content:space-between;gap:12px;padding-top:6px}.auth-confirm-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:grid;place-items:center;padding:20px;background:#fbfaf7b8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.auth-confirm{width:min(360px,100%);display:grid;gap:10px;border-radius:20px;padding:20px;background:#fff;box-shadow:0 22px 56px #25302b2e}.auth-confirm h3,.auth-confirm p{margin:0}.auth-confirm h3{font-size:18px;font-weight:650}.auth-confirm p{color:var(--muted);font-size:14px;line-height:1.45}.auth-confirm-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:8px}@media (max-width: 768px){.topbar-auth{right:12px}.topbar-auth-button{width:42px;height:42px;justify-content:center;padding:0}.topbar-auth-button span{display:none}.auth-modal-overlay{padding:12px}.auth-modal,.profile-modal{width:min(100%,520px);max-height:calc(100vh - 24px);border-radius:20px}.auth-modal-header,.auth-form,.auth-oauth-grid,.auth-switch{padding-left:18px;padding-right:18px}.profile-actions,.auth-confirm-actions{display:grid;grid-template-columns:1fr}}
