.rep-page{max-width:1180px;margin:0 auto;padding:34px 42px 70px;color:var(--ink,#242321)}
.rep-top{display:flex;align-items:flex-start;gap:26px;margin-bottom:28px}.rep-top h1{margin:5px 0 6px;font-size:32px;letter-spacing:-.03em}.rep-top p{margin:0;color:var(--ink-3,#8a857d);font-size:14px}.rep-eyebrow{color:var(--accent,#6d5dfc);font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:800}.rep-back{flex:none;margin-top:3px;border-radius:999px;padding:9px 15px}.rep-intro{display:flex;justify-content:space-between;align-items:center;padding:19px 22px;border:1px solid var(--line,#e9e6df);border-radius:16px;background:linear-gradient(110deg,#f5f3ff,#fbfaf8);margin-bottom:22px}.rep-intro div{display:flex;flex-direction:column;gap:5px}.rep-intro span{font-size:13px;color:var(--ink-3,#89847b)}.rep-count{font-size:13px;color:var(--accent,#6d5dfc);font-weight:700}.rep-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.rep-card{border:1px solid var(--line,#e9e6df);border-radius:18px;overflow:hidden;background:#fff;cursor:pointer;transition:.2s box-shadow,.2s transform}.rep-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(35,29,20,.1)}.rep-card-media{position:relative;aspect-ratio:16/9;background:#f1f0ed}.rep-card-media video{width:100%;height:100%;object-fit:cover}.rep-card-play{position:absolute;right:13px;bottom:12px;background:#fff;color:#5e4cf0;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:700;box-shadow:0 3px 12px #0002}.rep-card-body{padding:16px}.rep-card-body h3{margin:0 0 7px;font-size:17px}.rep-card-body p{margin:0;color:var(--ink-3,#89847b);font-size:12px}.rep-card-link{display:block;margin-top:15px;color:var(--accent,#6d5dfc);font-size:12px;font-weight:700}.rep-card-empty,.rep-empty-state{display:grid;place-items:center;height:100%;color:#aaa}.rep-empty-state{grid-column:1/-1;min-height:300px;border:1px dashed #d7d2ca;border-radius:18px;text-align:center;padding:35px}.rep-empty-icon{font-size:38px;color:#b5acee}.rep-empty-state h2{margin:8px 0;font-size:20px}.rep-empty-state p{margin:0;color:#999;font-size:13px}.rep-error{margin:0 0 16px;padding:12px 15px;border-radius:10px;background:#fff1ef;color:#b9473b;font-size:13px}.rep-steps{display:flex;gap:26px;padding:0;margin:0 0 24px;list-style:none;color:#aaa;font-size:13px}.rep-steps li{display:flex;align-items:center;gap:8px}.rep-steps b{display:grid;place-items:center;width:24px;height:24px;border:1px solid #d8d4cc;border-radius:50%;font-size:12px;font-weight:600}.rep-steps .done,.rep-steps .on{color:#5d4ce7}.rep-steps .done b,.rep-steps .on b{border-color:#6d5dfc;background:#6d5dfc;color:#fff}.rep-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start}.rep-template{position:sticky;top:24px;border:1px solid var(--line,#e9e6df);border-radius:17px;padding:14px;background:#fff}.rep-template-video{aspect-ratio:9/14;background:#f1f0ed;border-radius:11px;overflow:hidden}.rep-template-video video{width:100%;height:100%;object-fit:cover}.rep-template h2{font-size:17px;margin:15px 3px 5px}.rep-template p{margin:0 3px 14px;color:#928d85;font-size:12px}.rep-template .btn{width:100%}.rep-form{display:grid;gap:15px}.rep-section{border:1px solid var(--line,#e9e6df);border-radius:16px;background:#fff;padding:20px 22px}.rep-section>header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}.rep-section>header>div{display:flex;align-items:center;gap:10px}.rep-section h2{margin:0;font-size:17px}.rep-section header small{color:#969087;font-size:12px;line-height:1.6;max-width:440px;text-align:right}.rep-num{color:#6d5dfc;font-size:11px;font-weight:800;letter-spacing:.1em}.rep-upload-row{display:flex;align-items:center;gap:10px}.rep-selected{display:flex;align-items:center;gap:9px;min-height:48px;flex:1;padding:7px 10px;border-radius:10px;background:#f7f6f3;color:#777;font-size:13px}.rep-selected img{width:36px;height:36px;border-radius:7px;object-fit:cover}.rep-upload{white-space:nowrap}.rep-assets{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.rep-asset{position:relative;display:flex;flex-direction:column;gap:5px;width:76px;padding:0;border:1px solid transparent;background:transparent;color:#777;font-size:11px;cursor:pointer;text-align:center}.rep-asset img{width:76px;height:58px;object-fit:cover;border-radius:9px;background:#eee}.rep-asset.on{color:#5d4ce7}.rep-asset.on img{outline:2px solid #6d5dfc;outline-offset:2px}.rep-asset i{position:absolute;right:-3px;top:-4px;width:18px;height:18px;border-radius:50%;background:#6d5dfc;color:#fff;font-style:normal;font-size:11px}.rep-textarea{width:100%;min-height:86px;resize:vertical;border:1px solid #e4e0d8;border-radius:10px;padding:12px;font:inherit;font-size:13px;box-sizing:border-box;outline:none}.rep-textarea:focus{border-color:#8a7df2;box-shadow:0 0 0 3px #7464eb18}.rep-hint{font-size:12px;color:#999;margin-top:8px}.rep-options{display:flex;align-items:flex-end;gap:34px}.rep-options label{display:block;color:#8d887f;font-size:12px;margin-bottom:8px}.rep-choice-row{display:flex;gap:8px}.rep-choice{border:1px solid #ddd8d0;border-radius:8px;background:#fff;padding:9px 16px;color:#777;cursor:pointer}.rep-choice.on{border-color:#6d5dfc;background:#f0eeff;color:#5d4ce7;font-weight:700}.rep-select-label select{display:block;border:1px solid #ddd8d0;border-radius:8px;padding:9px 28px 9px 11px;background:#fff;color:#444;font:inherit}.rep-submit{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 4px 0}.rep-submit div{display:flex;flex-direction:column;gap:5px}.rep-submit span{color:#999;font-size:12px}.rep-submit .btn-primary{padding:12px 19px}
@media(max-width:850px){.rep-page{padding:24px 18px}.rep-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rep-layout{grid-template-columns:1fr}.rep-template{position:static;display:grid;grid-template-columns:150px 1fr;gap:0 14px}.rep-template-video{grid-row:span 3}.rep-template h2{margin-top:8px}.rep-template .btn{width:auto}.rep-section>header{display:block}.rep-section header small{display:block;text-align:left;margin-top:5px}.rep-submit{display:block}.rep-submit .btn-primary{margin-top:14px;width:100%}}
@media(max-width:560px){.rep-grid{grid-template-columns:1fr}.rep-intro{display:block}.rep-count{display:block;margin-top:10px}.rep-steps{gap:10px;font-size:11px}.rep-options{gap:15px}.rep-choice{padding:8px 10px}.rep-template{grid-template-columns:110px 1fr}}
.rep-framework{display:grid;gap:5px;margin:12px 3px 14px;padding:11px;border-radius:10px;background:#f7f6f3;font-size:12px}.rep-framework b{font-size:11px;color:#6d5dfc}.rep-framework span{color:#777;line-height:1.45}.rep-framework a{color:#6d5dfc;text-decoration:none}
.rep-card-media video{object-fit:contain;background:#151515}
.rep-template-video{aspect-ratio:16/9;min-height:220px;background:#111;display:grid;place-items:center}
.rep-template-video video{object-fit:contain;background:#111}
.rep-template{min-width:0;overflow:hidden}
.rep-template-video{width:100%;min-width:0;min-height:0;max-width:100%;box-sizing:border-box}
.rep-template-video video{display:block;max-width:100%;min-width:0}
dialog[data-template-dialog]:not(.rep-library-dialog) input:not([type=file]),dialog[data-template-dialog]:not(.rep-library-dialog) textarea{color:#242321!important;background:#fff!important;border-color:#ddd8d0!important}
dialog[data-template-dialog]:not(.rep-library-dialog) input::placeholder,dialog[data-template-dialog]:not(.rep-library-dialog) textarea::placeholder{color:#8a857d!important}
dialog[data-template-dialog]:not(.rep-library-dialog) .btn{color:#4b5160!important;background:#fff!important;border-color:#ddd8d0!important}
dialog[data-template-dialog]:not(.rep-library-dialog) label.upload-button{display:flex;align-items:center;justify-content:center;min-height:38px;color:#4b5160!important;background:#fff!important;border:1px solid #ddd8d0!important;border-radius:999px;cursor:pointer}
dialog[data-template-dialog]:not(.rep-library-dialog) video{height:auto!important;aspect-ratio:auto!important;max-height:360px;object-fit:contain;background:transparent!important}
dialog[data-template-dialog]:not(.rep-library-dialog) .file-pick{display:flex!important;align-items:center;gap:10px;min-height:58px;padding:8px 12px;color:#242321!important;background:#fff!important;border:1px solid #ddd8d0!important;border-radius:12px;cursor:pointer;text-align:left;transition:border-color .15s,background .15s}
dialog[data-template-dialog]:not(.rep-library-dialog) .file-pick:hover{border-color:#8a7df2!important;background:#faf9ff!important}
dialog[data-template-dialog]:not(.rep-library-dialog) .file-pick.ready{border-color:#35a66f!important;background:#f1fbf5!important}
dialog[data-template-dialog]:not(.rep-library-dialog) .file-pick.missing{border-color:#d94b4b!important;background:#fff4f3!important;animation:file-pick-shake .2s ease-in-out 0s 2}
dialog[data-template-dialog]:not(.rep-library-dialog) .file-icon{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:9px;background:#ece9ff;color:#5d4ce7;font-size:12px;font-weight:800;letter-spacing:-.04em}
dialog[data-template-dialog]:not(.rep-library-dialog) .file-pick.ready .file-icon{background:#d9f5e5;color:#18834e}
dialog[data-template-dialog] .file-copy{display:grid;gap:3px;min-width:0}
dialog[data-template-dialog] .file-copy b{font-size:13px;font-weight:700}
dialog[data-template-dialog] .file-copy small{display:block;max-width:100%;overflow:hidden;color:#8a857d;font-size:11px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
dialog[data-template-dialog] .file-pick.ready .file-copy small{color:#18834e}
@keyframes file-pick-shake{25%{transform:translateX(-2px)}75%{transform:translateX(2px)}}
.rep-grid{grid-template-columns:repeat(auto-fill,minmax(210px,220px));justify-content:start;gap:16px}
.rep-card-media{aspect-ratio:auto;min-height:110px;background:#151515;display:grid;place-items:center}
.rep-card-body{padding:12px}.rep-card-body h3{font-size:15px}.rep-card-link{margin-top:11px}
.rep-card-media video{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;background:transparent}
.rep-script-preview{margin-top:14px;border:1px solid #e8e4dc;border-radius:10px;padding:10px 12px;background:#faf9f6;font-size:12px}
.rep-script-preview summary{cursor:pointer;color:#5d4ce7;font-weight:700}
.rep-script-preview pre{white-space:pre-wrap;max-height:280px;overflow:auto;color:#555;line-height:1.55;margin:10px 0 0}
.rep-dialogue-fields{display:grid;gap:10px}.rep-dialogue-fields label{display:grid;gap:5px;font-weight:600}.rep-dialogue-fields input{padding:10px;border:1px solid #ddd8d0;border-radius:8px;font:inherit}.rep-dialogue-fields .rep-textarea{margin-top:0}
.rep-clear-upload{margin-left:8px;padding:3px 8px;border:1px solid #e0b7b7;border-radius:999px;background:#fff;color:#b84b4b;font-size:12px;cursor:pointer}
.rep-library-label{margin:12px 0 6px;color:#68627a;font-size:12px;font-weight:700}
.rep-multi-role .rep-role-assets{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.rep-multi-role .rep-role-pick{width:92px;height:112px;padding:6px;border:1px solid #e3e7ef;border-radius:10px;background:#fff;cursor:pointer;color:#4b5160}.rep-multi-role .rep-role-pick img{display:block;width:72px;height:72px;object-fit:cover;border-radius:8px;margin:0 auto 5px}.rep-multi-role .rep-role-pick span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.rep-multi-role .rep-role-pick.on{border:2px solid #1769ff;background:#eef5ff;color:#1257d6}.rep-assets img{max-width:76px;max-height:76px;object-fit:cover}
.rep-role-pick img,.rep-assets img,.rep-selected img{width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;object-fit:cover!important;display:block!important}
.rep-dynamic-slots .rep-dynamic-slot{padding:12px 0;border-top:1px solid #eee9e2}.rep-dynamic-slots .rep-dynamic-slot:first-of-type{border-top:0}.rep-dynamic-slot-title{display:flex;align-items:baseline;gap:10px}.rep-dynamic-slot-title small{color:#969087;font-size:12px}.rep-dynamic-fields .rep-dynamic-field{display:flex;flex-direction:column;gap:6px;margin-top:14px;color:#6f6a62;font-size:12px}.rep-dynamic-fields .rep-dynamic-field input,.rep-dynamic-fields .rep-dynamic-field textarea{box-sizing:border-box;width:100%;border:1px solid #e4e0d8;border-radius:10px;padding:10px 12px;background:#fff;color:#242321;font:inherit;font-size:13px}.rep-dynamic-fields .rep-dynamic-field textarea{min-height:58px;resize:vertical}.rep-fixed-duration{align-self:center;color:#6f6a62;font-size:12px;padding:9px 12px;border-radius:9px;background:#f7f6f3}

/* 标黄模板沿用全站设计令牌、按钮与素材表单。 */
.rep-library-dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;width:min(960px,calc(100vw - 32px));max-height:88vh;padding:24px;overflow:auto;font-size:13px;line-height:1.6}
.rep-library-dialog::backdrop{background:#17203340}
.rep-library-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}
.rep-library-header h2{margin:0;font-size:20px;font-weight:600;line-height:1.4}.rep-library-header p{margin:6px 0 0;color:var(--ink-2);font-size:13px}.rep-library-header button{flex:none}
.rep-library-dialog .btn,.rep-library-dialog .btn-primary{min-height:38px;padding:8px 16px;white-space:normal}.rep-library-dialog .btn{border-color:var(--line);background:var(--surface);color:var(--ink-2)}
.rep-library-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.rep-library-list article{border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0}.rep-library-list h3{font-size:14px;margin:12px 0 4px}.rep-library-list p{color:var(--ink-2);margin:4px 0 12px}.rep-library-list video{width:100%;aspect-ratio:16/9;object-fit:contain;background:var(--ink);border-radius:8px}
.rep-template-upload{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid var(--line)}.rep-template-upload>label:first-child,.rep-template-upload>[data-upload-status]{grid-column:1/-1}.rep-template-upload>button{justify-self:start}
.rep-template-editor{display:grid;gap:16px}.rep-template-editor>.rep-library-header{margin:0}.rep-template-upload label,.rep-template-editor label,.rep-highlight-select,.rep-highlight-field{display:grid;gap:6px;min-width:0;font-size:13px;color:var(--ink-2)}
.rep-library-dialog .file-pick{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:64px;background:var(--surface-hi);border:1px dashed var(--line-hi);border-radius:10px;justify-content:flex-start;cursor:pointer}.rep-library-dialog .file-pick:hover,.rep-library-dialog .file-pick:focus-within{border-color:var(--accent);background:var(--accent-soft)}.rep-library-dialog .file-pick.ready{border-style:solid;border-color:var(--line)}.rep-library-dialog .file-pick .file-copy small{color:var(--ink-2);font-size:12px}
.rep-source-files{color:var(--ink-2)}.rep-source-files summary{cursor:pointer}.rep-source-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.rep-library-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.rep-template-editor>.rep-library-actions{padding-top:16px;border-top:1px solid var(--line)}
.rep-config-head{margin:8px 0 0}.rep-config-head h3,.rep-config-section h3{margin:0;font-size:15px;font-weight:600;color:var(--ink)}.rep-library-dialog .rep-hint{font-size:12px;color:var(--ink-2);line-height:1.6;margin:6px 0 0}
.rep-highlight-row{padding:20px 0;border-bottom:1px solid var(--line);display:grid;gap:12px}.rep-highlight-row-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.rep-highlight-row-head strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.rep-occurrence-count{flex:none;font-size:12px;color:var(--ink-2)}
.rep-highlight-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rep-asset-config{display:flex;align-items:flex-end;gap:12px}.rep-asset-config>label{flex:1}.rep-asset-config>img{width:42px;height:42px;object-fit:cover;border-radius:6px}
.rep-template-editor .rep-replaceable,.rep-template-editor .rep-model-check{display:flex;align-items:center;gap:8px}.rep-template-editor input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:var(--accent)}
.rep-highlight-row blockquote{margin:0;padding:10px 12px;border-radius:6px;background:var(--surface-hi);color:var(--ink-2);white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.rep-occurrences{font-size:12px;color:var(--ink-2)}.rep-occurrences summary{cursor:pointer;min-height:28px;line-height:28px}.rep-occurrence{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:8px;padding:8px 12px;background:var(--surface-hi);border-radius:6px}.rep-occurrence p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;min-width:0}.rep-occurrence button{flex:none}.rep-occurrences>label{margin-top:12px}
.rep-highlight-locked .rep-highlight-row-head{color:var(--ink-2)}.rep-config-section{padding-top:24px}.rep-highlight-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 20px}.rep-model-options{margin:0;padding:0;border:0;min-width:0}.rep-model-options legend{font-size:13px;color:var(--ink-2);margin-bottom:8px}.rep-model-options>.chiprow{margin-bottom:16px;gap:16px}.rep-model-options>label{max-width:280px}
.rep-template-editor input:not([type=checkbox]):not([type=file]),.rep-template-editor select,.rep-template-upload input:not([type=file]),.rep-highlight-select select,.rep-highlight-field textarea{width:100%;box-sizing:border-box;background:var(--surface);color:var(--ink);border:1px solid var(--line-hi);border-radius:8px;padding:10px 12px;font:inherit;font-size:13px;min-height:40px;caret-color:var(--accent)}
.rep-library-dialog .rep-script-preview{margin:20px 0 0;background:var(--surface-hi);border-color:var(--line);font-size:12px}.rep-library-dialog .rep-script-preview summary{color:var(--ink-2);font-weight:500}.rep-script-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink-2)}
.rep-highlight-editor .rep-top h1{font-size:24px;font-weight:600;letter-spacing:normal}.rep-highlight-editor .rep-top p{color:var(--ink-2);line-height:1.6}.rep-highlight-editor .rep-section{border-color:var(--line);padding:20px;border-radius:12px}.rep-highlight-editor .rep-section h2{font-size:15px;font-weight:600}.rep-highlight-editor .rep-template{border-radius:12px}.rep-highlight-editor .rep-template-video{background:var(--surface-hi);color:var(--ink-2)}.rep-highlight-editor .rep-template-video video{object-fit:contain}.rep-highlight-editor .rep-template p{color:var(--ink-2)}
.rep-highlight-select{margin:14px 0}.rep-highlight-field{margin-top:16px}.rep-highlight-field textarea{resize:vertical}.rep-highlight-field small,.rep-highlight-editor .rep-hint{color:var(--ink-2);font-size:12px;line-height:1.6}.rep-highlight-editor .rep-selected{background:var(--surface-hi);color:var(--ink-2)}.rep-highlight-editor .rep-choice{background:var(--surface);border-color:var(--line);color:var(--ink-2)}.rep-highlight-editor .rep-choice.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.rep-highlight-editor .rep-choice-row{flex-wrap:wrap}.rep-highlight-editor .rep-submit{border-color:var(--line)}.rep-highlight-editor .rep-submit span{color:var(--ink-2)}
.rep-result-video{display:block;width:100%;max-height:520px;margin:16px 0;background:var(--ink)}.rep-form progress{width:100%;accent-color:var(--accent)}
.rep-library-dialog :focus-visible,.rep-highlight-editor :focus-visible{outline:2px solid var(--accent);outline-offset:3px}.rep-library-dialog button:disabled,.rep-highlight-editor button:disabled{opacity:.55;cursor:not-allowed}.rep-library-dialog ::selection,.rep-highlight-editor ::selection{background:var(--accent-soft);color:var(--ink)}
@media(max-width:600px){.rep-library-dialog{padding:16px}.rep-highlight-controls,.rep-highlight-settings,.rep-source-grid,.rep-template-upload{grid-template-columns:1fr}.rep-library-actions button{flex:1}.rep-library-list{grid-template-columns:1fr}.rep-model-options>label{max-width:none}.rep-highlight-editor .rep-top h1{font-size:21px}.rep-occurrence{flex-wrap:wrap;gap:6px}}

.rep-highlight-settings small{color:var(--ink-2);font-size:12px;line-height:1.5}.rep-template-editor input[readonly]{background:var(--surface-hi);border-color:var(--line);cursor:default}

.wall-generated{margin-top:28px}.wall-generated>header{display:flex;align-items:baseline;gap:12px;margin-bottom:16px}.wall-generated h2{font-size:18px;font-weight:600;margin:0;color:var(--ink)}.wall-generated>header span{font-size:12px;color:var(--ink-2)}.wall-generated>.btn{display:block;margin:20px auto 0}

.wall-generated .wall-grid{grid-template-columns:repeat(auto-fill,minmax(180px,220px));gap:20px}.wall-generated .case-card .cap{opacity:1}.rep-library-dialog [data-view-template][hidden]{display:none}
@media(max-width:600px){.wall-hero-pair .wall-hero{height:auto;min-height:250px}.wall-hero-pair .wall-hero-body{padding:24px;gap:18px}.wall-hero-pair .wall-hero h2{font-size:22px}.wall-hero-pair .wall-hero-go{max-width:100%;margin-left:0}.wall-generated .wall-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wall-title{flex-wrap:wrap}}

/* Script context and image selection use the existing workspace surfaces. */
.rep-highlight-editor .rep-script-context{margin:12px 0;color:var(--ink-2);max-width:75ch}
.rep-highlight-editor .rep-script-context small{display:block;color:var(--ink-2);font-size:12px;margin-bottom:5px}
.rep-highlight-editor .rep-script-context p{margin:0;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.rep-highlight-editor .rep-script-context mark{background:#fff1b8;color:#46370b;padding:1px 2px;border-radius:2px}
.rep-highlight-editor .rep-context-more{margin:8px 0 16px}
.rep-highlight-editor .rep-context-more summary{cursor:pointer;color:var(--accent);font-size:13px}
.rep-highlight-editor .rep-material-selected{display:flex;align-items:center;gap:18px;margin-top:18px}
.rep-highlight-editor .rep-material-selected p{font-size:13px;color:var(--ink-2);margin:8px 0 12px}
.rep-highlight-editor .rep-material-preview{width:160px;height:160px;flex:0 0 160px;border:1px solid var(--line);border-radius:10px;padding:6px;background:var(--surface-hi);cursor:zoom-in}
.rep-highlight-editor .rep-material-preview img{width:100%;height:100%;object-fit:contain;display:block}
.rep-highlight-editor .rep-material-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;margin-top:16px;max-height:440px;overflow:auto;padding:3px}
.rep-highlight-editor .rep-material-option{display:flex;flex-direction:column;gap:8px;text-align:left;padding:9px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);cursor:pointer;font:inherit;min-width:0}
.rep-highlight-editor .rep-material-option img{width:100%;height:130px;object-fit:contain;background:var(--surface-hi);border-radius:5px}
.rep-highlight-editor .rep-material-option span{overflow-wrap:anywhere;font-size:13px}
.rep-highlight-editor .rep-material-option small{color:var(--accent);font-size:12px}
.rep-highlight-editor .rep-material-option:hover,.rep-highlight-editor .rep-material-option.is-selected{border-color:var(--accent);background:var(--accent-soft)}
.rep-highlight-editor .rep-material-option:disabled{opacity:.55;cursor:wait}
.rep-highlight-editor .rep-material-option:focus-visible,.rep-highlight-editor .rep-material-preview:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.rep-highlight-editor .rep-variable-context+.rep-variable-context{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}
.rep-highlight-editor [data-rep-highlight-seconds]{width:180px;max-width:100%;padding:10px 12px;border:1px solid var(--line-hi);border-radius:8px;font:inherit;color:var(--ink);background:var(--surface)}
.rep-highlight-editor .rep-section h3{font-size:14px;margin:20px 0 10px}
.rep-material-dialog{width:min(850px,94vw);max-height:90vh;padding:20px;border:1px solid var(--line);border-radius:14px;color:var(--ink);background:var(--surface)}
.rep-material-dialog::backdrop{background:rgb(20 25 35 / .55)}
.rep-material-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.rep-material-dialog h2{font-size:18px;margin:0}
.rep-material-dialog>img{display:block;width:100%;height:70vh;object-fit:contain}
@media(max-width:600px){.rep-highlight-editor .rep-material-preview{width:120px;height:140px;flex-basis:120px}.rep-highlight-editor .rep-material-options{grid-template-columns:repeat(2,minmax(0,1fr))}.rep-highlight-editor .rep-material-selected{gap:12px}.rep-material-dialog{padding:12px}}

.wall-generated .case-template-source{font-size:12px;line-height:1.5;margin:5px 0;color:#fff;white-space:normal;overflow-wrap:anywhere}
