/* Scope every rule: interface palettes never alter provider image pixels. */
.xhs-replica{max-width:1680px;margin:0 auto;color:var(--r-text,var(--ink));font:inherit;--r-danger:var(--ui-danger,var(--danger,#a13d35));--r-success:var(--ui-success,#377b5b);--r-radius:var(--ui-radius-md,12px);container-type:inline-size}.xhs-replica *{box-sizing:border-box}.xhs-replica [hidden]{display:none!important}.xhs-replica h2{font-size:1.3rem;margin:0}.xhs-replica h3{font-size:1.05rem;margin:0 0 14px}.xhs-replica h4{margin:12px 0}.xhs-replica p{line-height:1.75;margin:8px 0 14px}.xhs-replica .r-muted,.xhs-replica small{color:var(--r-muted);font-size:.85rem}.xhs-replica .r-top{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:20px}.xhs-replica .r-top>div{margin-right:auto}.xhs-replica .r-top p{margin:6px 0 0}.xhs-replica .r-top nav,.xhs-replica .r-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.xhs-replica .r-save{font-size:.82rem;color:var(--r-muted)}.xhs-replica .r-btn{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:.88rem;line-height:1.5;min-height:38px;padding:8px 13px;border:1px solid var(--r-border);border-radius:8px;background:var(--r-surface);color:inherit;cursor:pointer;text-decoration:none}.xhs-replica .r-btn:hover{border-color:var(--r-accent)}.xhs-replica .r-btn:focus-visible,.xhs-replica summary:focus-visible{outline:2px solid var(--r-accent);outline-offset:3px}.xhs-replica .r-btn:disabled{opacity:.5;cursor:not-allowed}.xhs-replica .r-btn[aria-current=page],.xhs-replica .r-btn[aria-current=step]{outline:1px solid var(--r-accent);background:var(--r-input)}.xhs-replica .r-primary{background:var(--r-accent);border-color:var(--r-accent);color:var(--r-on-accent,#fff)}.xhs-replica .r-panel{background:var(--r-surface);border:1px solid var(--r-border);border-radius:var(--r-radius);padding:20px;margin:0 0 16px;min-width:0}.xhs-replica .r-heading,.xhs-replica .r-work-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}.xhs-replica .r-heading h3{margin:0}.xhs-replica .r-work-heading small{display:block;margin-top:7px;overflow-wrap:anywhere}.xhs-replica .r-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0 22px}.xhs-replica .r-steps .r-btn{padding-block:12px}.xhs-replica .r-alert{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:13px 16px;border:1px solid var(--r-border);border-radius:10px;margin-bottom:16px;line-height:1.7}.xhs-replica .r-error,.xhs-replica .r-warning{border:1px solid var(--r-danger);border-radius:8px;padding:14px;margin:12px 0;overflow-wrap:anywhere}.xhs-replica .r-error{color:var(--r-danger)}.xhs-replica .r-notice,.xhs-replica .r-callout{border:1px solid var(--r-accent);background:var(--r-surface);border-radius:10px;padding:16px;margin-bottom:18px}.xhs-replica .r-callout p{margin:0 0 12px}.xhs-replica .r-busy{color:var(--r-muted);font-size:.86rem;padding:8px 0}.xhs-replica .r-field{display:flex;flex-direction:column;gap:7px;margin:0 0 17px;min-width:0}.xhs-replica .r-field>span{font-size:.9rem}.xhs-replica input:not([type=radio]):not([type=checkbox]):not([type=file]),.xhs-replica textarea,.xhs-replica select{display:block;width:100%;font:inherit;font-size:.93rem;line-height:1.75;color:inherit;background:var(--r-input);border:1px solid var(--r-border);padding:10px 12px;border-radius:8px}.xhs-replica textarea{resize:vertical}.xhs-replica .r-field input:focus,.xhs-replica textarea:focus,.xhs-replica select:focus{outline:2px solid var(--r-accent);outline-offset:1px}.xhs-replica .r-two{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:18px}.xhs-replica .r-choice{display:grid;grid-template-columns:20px minmax(0,1fr);gap:6px 9px;border:1px solid var(--r-border);border-radius:9px;padding:13px;margin:10px 0;line-height:1.65;cursor:pointer}.xhs-replica .r-choice input{width:18px;height:18px;margin:4px 0 0;grid-row:span 2}.xhs-replica .r-choice strong{font-size:.9rem;font-weight:500}.xhs-replica .r-choice small{grid-column:2}.xhs-replica .r-connection{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.xhs-replica .r-connection p{margin:6px 0 0}.xhs-replica .r-connection details{flex-basis:100%}.xhs-replica summary{cursor:pointer;line-height:1.7;margin-bottom:12px;font-size:.92rem}.xhs-replica details[open]>summary{margin-bottom:16px}.xhs-replica code{font-size:.9em;overflow-wrap:anywhere}.xhs-replica ol,.xhs-replica ul{padding-left:1.5em;line-height:1.85}.xhs-replica .r-original{font:inherit;font-size:.9rem;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;max-height:55vh;overflow:auto;margin:12px 0}.xhs-replica .r-reference-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px;margin:18px 0}.xhs-replica .r-reference{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;border:1px solid var(--r-border);border-radius:9px;padding:8px;cursor:pointer;font-size:.8rem;line-height:1.5}.xhs-replica .r-reference.is-selected{outline:2px solid var(--r-accent)}.xhs-replica .r-reference>input{position:absolute;top:12px;left:12px;width:20px;height:20px;z-index:1}.xhs-replica .r-reference img,.xhs-replica .r-reference-grid figure>img{width:100%;height:180px;object-fit:contain;border-radius:5px;background:var(--r-input)}.xhs-replica img[data-r-image-error=true]{border:1px dashed var(--r-danger)}.xhs-replica .r-reference-grid figure{margin:0}.xhs-replica .r-reference-grid figcaption{font-size:.85rem;padding:9px 0}.xhs-replica .r-upload{display:block;border:1px dashed var(--r-border);padding:16px;border-radius:9px;line-height:1.7}.xhs-replica .r-upload input{display:block;max-width:100%;margin-top:10px}.xhs-replica .r-design{display:grid;grid-template-columns:160px minmax(0,1fr) 310px;gap:18px;align-items:start}.xhs-replica .r-design>main,.xhs-replica .r-design>aside{min-width:0}.xhs-replica .r-page-rail{padding:12px;position:sticky;top:14px}.xhs-replica .r-page-rail h3{font-size:.92rem;padding:4px}.xhs-replica .r-page{display:flex;align-items:center;gap:9px;width:100%;margin-bottom:9px;padding:7px;border:1px solid var(--r-border);border-radius:8px;color:inherit;background:var(--r-input);font:inherit;font-size:.8rem;text-align:left;cursor:pointer}.xhs-replica .r-page.is-selected{outline:2px solid var(--r-accent)}.xhs-replica .r-page>img{width:40px;height:54px;object-fit:contain;flex:none}.xhs-replica .r-page small{display:block;font-size:.72rem;line-height:1.4;margin-top:5px}.xhs-replica .r-page-rail .r-actions>.r-btn{width:100%;font-size:.8rem}.xhs-replica .r-placeholder{width:40px;height:54px;display:grid;place-items:center;background:var(--r-surface);font-size:.7rem}.xhs-replica .r-subject-selection{border:1px solid var(--r-border);border-radius:9px;margin:14px 0;padding:14px}.xhs-replica .r-subject-selection label{display:flex;align-items:center;gap:9px;margin:10px 0;line-height:1.7;font-size:.86rem}.xhs-replica .r-subject-selection input{height:18px;width:18px}.xhs-replica .r-candidate{padding:14px;border:1px solid var(--r-border);border-radius:8px;margin:12px 0;min-width:0}.xhs-replica .r-image-stage{display:flex;justify-content:center;max-height:78vh;overflow:auto;background:var(--r-input);border:1px solid var(--r-border);border-radius:9px;padding:8px;margin:12px 0 18px}.xhs-replica .r-image-stage img{width:100%;max-width:650px;height:auto;object-fit:contain;align-self:flex-start}.xhs-replica .r-render-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.xhs-replica .r-render-grid .r-candidate{margin:0}.xhs-replica .r-render-grid img{width:100%;height:auto;max-height:400px;object-fit:contain}.xhs-replica .r-quality{border:1px solid var(--r-border);border-radius:8px;padding:14px;margin-bottom:14px}.xhs-replica .r-quality.is-passed{border-color:var(--r-success)}.xhs-replica .r-badge{font-size:.78rem;margin-left:10px;padding:3px 7px;border:1px solid var(--r-border);border-radius:5px}.xhs-replica .r-export{border-top:1px solid var(--r-border);margin-top:16px;padding-top:16px}.xhs-replica .r-empty{text-align:center;padding:34px 20px;color:var(--r-muted);line-height:1.8}.xhs-replica .r-works>article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-top:1px solid var(--r-border)}.xhs-replica .r-works>article>div:first-child{min-width:0;overflow-wrap:anywhere}.xhs-replica .r-works p{margin:7px 0 0}.xhs-replica .r-jobs article{padding:14px 0;border-top:1px solid var(--r-border)}.xhs-replica .r-jobs .r-heading{margin-bottom:5px}.xhs-replica .r-jobs p{margin:5px 0 10px}.xhs-replica .r-admin{margin-top:20px}.xhs-replica .r-admin hr{border:0;border-top:1px solid var(--r-border);margin:18px 0}.xhs-replica .r-modal-backdrop{position:fixed;inset:0;z-index:3000;background:#0006;display:flex;align-items:center;justify-content:center;padding:24px}.xhs-replica .r-modal{width:min(100%,1000px);max-height:94vh;overflow:auto;background:var(--r-surface);border:1px solid var(--r-border);border-radius:12px;padding:24px;box-shadow:0 16px 64px #0004}.xhs-replica .r-manual-compare{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.xhs-replica .r-manual-compare img{width:100%;height:auto;max-height:60vh;object-fit:contain}.xhs-replica .r-manual-compare pre{border:1px solid var(--r-border);padding:14px;margin:0;max-height:60vh}.xhs-replica a:not(.r-btn){color:var(--r-accent)}
@container(max-width:1180px){.xhs-replica .r-design{grid-template-columns:140px minmax(0,1fr)}.xhs-replica .r-design>aside:last-child{grid-column:2}.xhs-replica .r-page-rail{grid-row:span 2}}@container(max-width:760px){.xhs-replica .r-design,.xhs-replica .r-two{display:block}.xhs-replica .r-page-rail{position:static;display:flex;overflow-x:auto;gap:8px;align-items:center}.xhs-replica .r-page-rail h3{display:none}.xhs-replica .r-page{flex:0 0 135px;margin:0}.xhs-replica .r-page-rail .r-actions{flex:none}.xhs-replica .r-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.xhs-replica .r-panel{padding:16px}.xhs-replica .r-top{gap:12px}.xhs-replica .r-top nav{order:3;width:100%}.xhs-replica .r-top nav>.r-btn{flex:1}.xhs-replica .r-works>article{align-items:flex-start;flex-direction:column}.xhs-replica .r-reference-grid{grid-template-columns:repeat(auto-fill,minmax(115px,1fr))}.xhs-replica .r-btn{min-height:44px}.xhs-replica .r-field>input,.xhs-replica .r-field>textarea,.xhs-replica .r-field>select{font-size:16px}}@media(max-width:700px){.xhs-replica .r-manual-compare{grid-template-columns:1fr}.xhs-replica .r-modal-backdrop{padding:10px}.xhs-replica .r-modal{padding:18px;max-height:96vh}.xhs-replica .r-actions>.r-btn{flex:1 1 auto}.xhs-replica .r-save{margin-left:auto}}

.xhs-replica h2,.xhs-replica h3,.xhs-replica h4{color:var(--r-heading,var(--r-text))}.xhs-replica input:not([type=radio]):not([type=checkbox]):not([type=file]),.xhs-replica textarea,.xhs-replica select{color:var(--r-input-text,var(--r-text))}.xhs-replica .r-field>span,.xhs-replica .r-choice strong{color:var(--r-text)}

.xhs-replica .r-candidate-notice{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0;color:var(--r-accent);font-size:.86rem}.xhs-replica [data-r-candidate-id]{scroll-margin-top:24px}

/* One-screen workbench. All dimensions and colors are confined to this module. */
.xhs-replica.r-workbench {
  --r-wb-red: #ff2442;
  --r-wb-gold: #f0d375;
  --r-wb-toolbar: #191919;
  --r-wb-paper: color-mix(in srgb, var(--r-surface, #fff) 96%, #fff0d2);
  --r-wb-line: color-mix(in srgb, var(--r-border, #d8d4cc) 80%, #252525);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: var(--r-workbench-height, calc(100dvh - 32px));
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--r-text, #272722);
  background: var(--r-wb-paper, #fffdf7);
  border: 1px solid var(--r-wb-line);
  border-radius: 11px;
  isolation: isolate;
}
.xhs-replica.r-workbench > [data-r-content] {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.xhs-replica.r-workbench .r-wb-top {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 11px 20px;
  padding: 13px 18px 12px;
  color: #f7f2e7;
  background: var(--r-wb-toolbar);
  border-bottom: 1px solid #090909;
}
.xhs-replica.r-workbench .r-wb-brand { grid-column: 1; grid-row: 1; min-width: 0; }
.xhs-replica.r-workbench .r-wb-brand :is(h2, h3, strong) { color: var(--r-wb-gold); }
.xhs-replica.r-workbench .r-wb-brand h2 { font-size: 1.04rem; line-height: 1.45; }
.xhs-replica.r-workbench .r-wb-brand p { margin: 3px 0 0; color: #c7c4bc; font-size: .76rem; line-height: 1.5; }
.xhs-replica.r-workbench .r-wb-tools { display: flex; grid-column: 2; grid-row: 1; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.xhs-replica.r-workbench .r-wb-identity { display: flex; grid-column: 1; grid-row: 2; align-items: center; gap: 8px; min-width: 0; color: #d8d4cb; font-size: .76rem; line-height: 1.5; }
.xhs-replica.r-workbench .r-wb-identity > strong { flex: 1 1 auto; min-width: 0; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.xhs-replica.r-workbench .r-wb-identity .r-save { flex: 0 0 auto; }
.xhs-replica.r-workbench .r-brand-dot { color: var(--r-wb-red); padding-left: 3px; }
.xhs-replica.r-workbench .r-wb-brand .r-muted { color: #c7c4bc; font-size: .72rem; }
.xhs-replica.r-workbench .r-task-summary { grid-column: 1 / -1; grid-row: 3; min-height: 0; color: #c5c1b7; font-size: .71rem; line-height: 1.5; }
.xhs-replica.r-workbench .r-wb-top .r-save { color: #d8d4cb; font-size: .76rem; }
.xhs-replica.r-workbench .r-wb-top .r-btn {
  min-height: 32px;
  padding: 5px 10px;
  color: var(--r-wb-gold);
  background: #222;
  border-color: #706543;
  font-size: .78rem;
}
.xhs-replica.r-workbench .r-wb-top .r-btn:hover:not(:disabled) { color: #fff4c5; border-color: var(--r-wb-gold); background: #302c22; }
.xhs-replica.r-workbench .r-wb-steps {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  margin: 0;
}
.xhs-replica.r-workbench .r-wb-steps .r-btn { gap: 7px; min-height: 36px; border-radius: 6px; line-height: 1.5; }
.xhs-replica.r-workbench .r-wb-steps .r-btn[aria-current="step"] {
  color: #201c10;
  background: var(--r-wb-gold);
  border-color: var(--r-wb-gold);
  outline: none;
}
.xhs-replica.r-workbench .r-wb-top .r-btn:focus-visible { outline-color: var(--r-wb-gold); }
.xhs-replica.r-workbench :is(.r-toggle-left, .r-toggle-right) { display: none; }
.xhs-replica.r-workbench .r-wb-alerts { flex: 0 0 auto; min-height: 0; max-height: 126px; overflow: auto; }
.xhs-replica.r-workbench .r-wb-alerts:empty { display: none; }
.xhs-replica.r-workbench .r-wb-alerts .r-alert { margin: 8px 12px; padding: 8px 11px; border-radius: 6px; font-size: .8rem; line-height: 1.65; }
.xhs-replica.r-workbench .r-wb-alerts .r-alert .r-btn { flex: 0 0 auto; min-height: 27px; padding: 2px 8px; }
.xhs-replica.r-workbench .r-wb-alerts .r-busy { padding: 5px 14px; }
.xhs-replica.r-workbench .r-workspace-alerts { flex: 0 1 auto; min-height: 0; max-height: 22%; margin: 0 10px; overflow: auto; }
.xhs-replica.r-workbench .r-workspace-alerts:empty { display: none; }
.xhs-replica.r-workbench .r-wb-body {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: 216px minmax(0, 1fr) 318px;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
}
.xhs-replica.r-workbench :is(.r-wb-left, .r-wb-center, .r-wb-right) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--r-surface, #fff);
  border: 1px solid var(--r-wb-line);
  border-radius: 7px;
}
.xhs-replica.r-workbench .r-pane-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 43px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--r-border);
  color: var(--r-heading, var(--r-text));
  background: var(--r-wb-paper, #fffdf7);
  font-size: .84rem;
}
.xhs-replica.r-workbench .r-pane-heading :is(h3, h4, p) { margin: 0; font-size: inherit; line-height: 1.55; }
.xhs-replica.r-workbench .r-scroll,
.xhs-replica.r-workbench .r-editor-scroll {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--r-border) transparent;
}
.xhs-replica.r-workbench .r-scroll:focus-visible { outline: 2px solid var(--r-wb-red); outline-offset: -3px; }
.xhs-replica.r-workbench .r-wb-center > .r-editor-scroll:has(> .r-preview) { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.xhs-replica.r-workbench :is(.r-scroll, .r-editor-scroll) > :last-child { margin-bottom: 0; }
.xhs-replica.r-workbench .r-panel { padding: 13px; margin-bottom: 12px; border-radius: 7px; }
.xhs-replica.r-workbench .r-panel h3 { margin-bottom: 10px; font-size: .91rem; }
.xhs-replica.r-workbench p { font-size: .84rem; line-height: 1.75; margin: 6px 0 11px; }
.xhs-replica.r-workbench .r-field { gap: 5px; margin-bottom: 13px; }
.xhs-replica.r-workbench .r-field > span { font-size: .82rem; }
.xhs-replica.r-workbench .r-field small { line-height: 1.6; font-size: .75rem; }
.xhs-replica.r-workbench :is(textarea, select, input:not([type="radio"]):not([type="checkbox"]):not([type="file"])) {
  padding: 8px 10px;
  font-size: .85rem;
  border-radius: 6px;
}
.xhs-replica.r-workbench textarea { min-height: 76px; }
.xhs-replica.r-workbench .r-btn { min-height: 34px; padding: 6px 10px; font-size: .8rem; border-radius: 6px; }
.xhs-replica.r-workbench .r-btn:hover:not(:disabled) { border-color: var(--r-wb-red); }
.xhs-replica.r-workbench .r-primary { color: #fff; background: var(--r-wb-red); border-color: var(--r-wb-red); }
.xhs-replica.r-workbench .r-primary:hover:not(:disabled) { color: #fff; background: #e91d3b; border-color: #e91d3b; }
.xhs-replica.r-workbench :is(.r-btn, textarea, select, input):focus-visible { outline-color: var(--r-wb-red); }
.xhs-replica.r-workbench .r-choice { margin: 8px 0; padding: 10px; gap: 4px 7px; border-radius: 6px; }
.xhs-replica.r-workbench .r-choice strong { font-size: .82rem; }
.xhs-replica.r-workbench .r-choice small { font-size: .75rem; }
.xhs-replica.r-workbench .r-callout {
  padding: 10px 12px;
  margin: 10px 0;
  color: var(--r-text);
  background: color-mix(in srgb, var(--r-surface, #fff) 87%, #ffe8a4);
  border-color: color-mix(in srgb, var(--r-border) 45%, #c8aa54);
  border-radius: 6px;
}
.xhs-replica.r-workbench .r-callout p { margin-bottom: 8px; }
.xhs-replica.r-workbench .r-warning { padding: 10px 12px; margin: 9px 0; font-size: .8rem; }
.xhs-replica.r-workbench .r-original { max-height: none; font-size: .82rem; line-height: 1.8; }
.xhs-replica.r-workbench .r-two { grid-template-columns: minmax(0, 1fr); gap: 0; }
.xhs-replica.r-workbench .r-tool-tabs { display: flex; flex: 0 0 auto; gap: 4px; padding: 8px; overflow-x: auto; border-bottom: 1px solid var(--r-border); }
.xhs-replica.r-workbench .r-tool-tabs .r-btn { flex: 1 0 auto; min-height: 31px; padding: 4px 8px; font-size: .76rem; }
.xhs-replica.r-workbench .r-tool-tabs .r-btn[aria-current="page"],
.xhs-replica.r-workbench .r-tool-tabs .r-btn[aria-selected="true"] { color: var(--r-text); border-color: #b8973f; background: color-mix(in srgb, var(--r-surface, #fff) 80%, #f0d375); outline: none; }
.xhs-replica.r-workbench [data-r-tool-panel] { min-width: 0; }
.xhs-replica.r-workbench .r-reference-list { display: grid; gap: 10px; }
.xhs-replica.r-workbench .r-source-item { display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 7px; border: 1px solid var(--r-border); border-radius: 6px; }
.xhs-replica.r-workbench .r-source-item.is-selected { border-color: var(--r-wb-red); box-shadow: inset 0 0 0 1px var(--r-wb-red); }
.xhs-replica.r-workbench .r-source-item > label { display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 2px 1px; font-size: .76rem; line-height: 1.6; cursor: pointer; }
.xhs-replica.r-workbench .r-source-item input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: #1677ff; }
.xhs-replica.r-workbench .r-source-item > button { min-width: 0; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: zoom-in; font: inherit; }
.xhs-replica.r-workbench .r-source-item img { display: block; width: 100%; height: 132px; object-fit: contain; background: var(--r-input); border-radius: 3px; }
.xhs-replica.r-workbench .r-source-item :is(small, figcaption) { display: block; padding-top: 6px; font-size: .73rem; line-height: 1.55; }
.xhs-replica.r-workbench .r-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.xhs-replica.r-workbench .r-reference-status { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--r-border); font-size: .8rem; }
.xhs-replica.r-workbench .r-reference-status p { margin: 4px 0 0; font-size: .75rem; }
.xhs-replica.r-workbench .r-page-rail { display: block; position: static; overflow: visible; padding: 0; border: 0; background: transparent; }
.xhs-replica.r-workbench .r-page { flex: none; width: 100%; min-width: 0; margin-bottom: 8px; font-size: .76rem; }
.xhs-replica.r-workbench .r-page.is-selected { outline: 1px solid var(--r-wb-red); border-color: var(--r-wb-red); }
.xhs-replica.r-workbench .r-heading { gap: 8px; margin-bottom: 10px; }
.xhs-replica.r-workbench .r-heading .r-actions { gap: 5px; }
.xhs-replica.r-workbench .r-heading .r-btn { padding: 4px 7px; font-size: .74rem; min-height: 29px; }
.xhs-replica.r-workbench .r-preview { display: flex; flex: 1 1 0; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.xhs-replica.r-workbench .r-preview-toolbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px 11px; border-bottom: 1px solid var(--r-border); background: var(--r-surface); font-size: .77rem; }
.xhs-replica.r-workbench .r-preview-toolbar > strong { flex: 1 1 90px; font-size: .78rem; }
.xhs-replica.r-workbench .r-preview-toolbar .r-actions { gap: 5px; }
.xhs-replica.r-workbench .r-zoom-actions { display: flex; flex: 1 1 210px; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 4px; }
.xhs-replica.r-workbench [data-r-zoom-label] { min-width: 40px; text-align: center; font-size: .7rem; color: var(--r-muted); }
.xhs-replica.r-workbench .r-preview-toolbar .r-btn { min-height: 28px; min-width: 29px; padding: 3px 7px; font-size: .73rem; }
.xhs-replica.r-workbench .r-preview-viewport { flex: 1 1 0; min-width: 0; min-height: 0; padding: 14px; overflow: auto; overscroll-behavior: contain; background: color-mix(in srgb, var(--r-input, #f5f3ef) 86%, #d9d3c5); }
.xhs-replica.r-workbench .r-preview-canvas { display: grid; place-items: center; width: max-content; min-width: 100%; min-height: 100%; padding: 0; }
.xhs-replica.r-workbench .r-preview-canvas > .r-preview-image { display: block; flex: none; max-width: none; max-height: none; object-fit: initial; border-radius: 0; box-shadow: 0 3px 18px #0002; }
.xhs-replica.r-workbench img[data-r-asset] { filter: none; mix-blend-mode: normal; }
.xhs-replica.r-workbench .r-preview-caption { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 8px 11px; border-top: 1px solid var(--r-border); font-size: .75rem; }
.xhs-replica.r-workbench .r-preview-caption > span { flex: 1 1 auto; }
.xhs-replica.r-workbench .r-center-editor-actions { position: sticky; top: -12px; z-index: 1; padding: 0 0 10px; background: var(--r-surface); }
.xhs-replica.r-workbench .r-wb-body.r-loading > .r-empty { grid-column: 1 / -1; align-self: center; }
.xhs-replica.r-workbench .r-wb-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 15px; border-top: 1px solid var(--r-wb-line); background: var(--r-surface, #fff); }
.xhs-replica.r-workbench .r-footer-status { flex: 1 1 0; min-width: 0; color: var(--r-muted); font-size: .76rem; line-height: 1.6; overflow-wrap: anywhere; }
.xhs-replica.r-workbench .r-footer-status :is(p, small) { margin: 0; font-size: inherit; }
.xhs-replica.r-workbench .r-footer-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.xhs-replica.r-workbench .r-footer-actions .r-primary { min-width: 126px; }
.xhs-replica.r-workbench .r-drawer-backdrop { position: absolute; inset: 0; z-index: 3100; display: flex; justify-content: flex-end; background: #0007; }
.xhs-replica.r-workbench .r-drawer { display: flex; flex-direction: column; width: min(460px, 94%); height: 100%; min-height: 0; color: var(--r-text); background: var(--r-surface); box-shadow: -12px 0 42px #0003; }
.xhs-replica.r-workbench .r-drawer-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; color: var(--r-wb-gold); background: var(--r-wb-toolbar); }
.xhs-replica.r-workbench .r-drawer-heading :is(h3, h4) { margin: 0; color: inherit; font-size: .95rem; }
.xhs-replica.r-workbench .r-drawer-heading .r-btn { color: #fff1c2; background: #262626; border-color: #706543; }
.xhs-replica.r-workbench .r-drawer-body { flex: 1 1 0; min-height: 0; padding: 15px; overflow: auto; overscroll-behavior: contain; }
.xhs-replica.r-workbench .r-drawer-body > .r-scroll { flex: initial; padding: 0; overflow: visible; }
.xhs-replica.r-workbench .r-drawer :is(.r-wb-left, .r-wb-right) { display: flex !important; min-height: 0; height: 100%; border: 0; }
.xhs-replica.r-workbench .r-drawer-footer { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--r-border); }
.xhs-replica.r-workbench .r-modal { color: var(--r-text); }
.xhs-replica.r-workbench .r-modal-backdrop { z-index: 3400; }
.xhs-replica.r-workbench .r-modal .r-original { max-height: 60vh; }
.xhs-replica.r-workbench .r-library { flex: 1 1 0; min-height: 0; padding: 18px; overflow: auto; }

@container (max-width: 1060px) {
  .xhs-replica.r-workbench .r-wb-body { grid-template-columns: 192px minmax(0, 1fr) 286px; gap: 8px; padding: 8px; }
  .xhs-replica.r-workbench .r-scroll,
  .xhs-replica.r-workbench .r-editor-scroll { padding: 10px; }
  .xhs-replica.r-workbench .r-pane-heading { padding-inline: 10px; }
  .xhs-replica.r-workbench .r-wb-top { padding-inline: 13px; gap: 9px 12px; }
}
@container (max-width: 880px) {
  .xhs-replica.r-workbench .r-wb-body { grid-template-columns: 180px minmax(0, 1fr); }
  .xhs-replica.r-workbench .r-wb-body > .r-wb-right { display: none; }
  .xhs-replica.r-workbench .r-toggle-right { display: inline-flex; }
  .xhs-replica.r-workbench .r-wb-identity { display: none; }
  .xhs-replica.r-workbench .r-wb-steps { grid-column: 1 / -1; }
  .xhs-replica.r-workbench .r-wb-steps .r-btn { padding-inline: 5px; font-size: .76rem; }
  .xhs-replica.r-workbench .r-footer-status { font-size: .72rem; }
}
@container (max-width: 620px) {
  .xhs-replica.r-workbench .r-wb-body { grid-template-columns: minmax(0, 1fr); padding: 6px; }
  .xhs-replica.r-workbench .r-wb-body > .r-wb-left { display: none; }
  .xhs-replica.r-workbench .r-toggle-left { display: inline-flex; }
  .xhs-replica.r-workbench .r-wb-top { gap: 8px; padding: 10px; }
  .xhs-replica.r-workbench .r-wb-brand h2 { font-size: .95rem; }
  .xhs-replica.r-workbench .r-wb-brand p { display: none; }
  .xhs-replica.r-workbench .r-wb-tools { gap: 5px; }
  .xhs-replica.r-workbench .r-wb-top .r-btn { min-height: 31px; padding-inline: 7px; font-size: .72rem; }
  .xhs-replica.r-workbench .r-wb-steps { gap: 4px; }
  .xhs-replica.r-workbench .r-wb-steps .r-btn { min-height: 37px; white-space: normal; font-size: .69rem; line-height: 1.5; }
  .xhs-replica.r-workbench .r-wb-footer { align-items: stretch; gap: 5px; flex-direction: column; padding: 7px 9px; }
  .xhs-replica.r-workbench .r-footer-status { flex: 0 0 auto; }
  .xhs-replica.r-workbench .r-footer-actions { width: 100%; flex: 0 0 auto; }
  .xhs-replica.r-workbench .r-footer-actions .r-primary { flex: 1 1 auto; min-width: 0; }
  .xhs-replica.r-workbench .r-preview-toolbar { flex-wrap: wrap; }
  .xhs-replica.r-workbench .r-preview-viewport { padding: 10px; }
  .xhs-replica.r-workbench :is(textarea, select, input:not([type="radio"]):not([type="checkbox"]):not([type="file"])) { font-size: 16px; }
}
@media (max-height: 760px) and (min-width: 900px) {
  .xhs-replica.r-workbench .r-wb-top { padding-top: 9px; padding-bottom: 9px; gap: 8px 16px; }
  .xhs-replica.r-workbench .r-wb-top .r-wb-brand p { display: none; }
  .xhs-replica.r-workbench .r-wb-footer { min-height: 51px; padding-top: 7px; padding-bottom: 7px; }
}

/* Reference → outline cards → result cards. Keep the legacy workbench intact. */
.xhs-replica.r-workbench.r-redya-flow {
  --r-flow-red: #ed2644;
  --r-flow-red-hover: #d51c39;
  --r-flow-yellow: #f2d16d;
  --r-flow-black: #171717;
  --r-flow-line: color-mix(in srgb, var(--r-border, #d8d4cc) 85%, #242424);
  background: color-mix(in srgb, var(--r-input, #f8f7f4) 96%, #f2d16d);
  border-color: var(--r-flow-line);
  border-radius: 12px;
}
.xhs-replica.r-redya-flow > [data-r-content] { overflow: hidden; }
.xhs-replica.r-redya-flow .r-flow-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-width: 0;
  padding: 18px 24px;
  color: #fff9e8;
  background: var(--r-flow-black);
  border-bottom: 2px solid var(--r-flow-yellow);
}
.xhs-replica.r-redya-flow .r-flow-heading { flex: 1 1 260px; min-width: 0; }
.xhs-replica.r-redya-flow .r-flow-heading h2 { margin: 0; color: var(--r-flow-yellow); font-size: 1.18rem; line-height: 1.5; }
.xhs-replica.r-redya-flow .r-flow-heading :is(p, small, .r-save) { color: #d8d4c9; line-height: 1.6; }
.xhs-replica.r-redya-flow .r-flow-heading p { margin: 4px 0 0; font-size: .8rem; overflow-wrap: anywhere; }
.xhs-replica.r-redya-flow .r-flow-heading .r-save { display: block; margin-top: 5px; font-size: .75rem; }
.xhs-replica.r-redya-flow .r-flow-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.xhs-replica.r-redya-flow .r-flow-header .r-btn {
  min-height: 36px;
  padding: 7px 12px;
  color: #fff1c0;
  background: #242424;
  border-color: #726344;
  font-size: .82rem;
}
.xhs-replica.r-redya-flow .r-flow-header .r-btn:hover:not(:disabled) { color: #fff8dc; background: #302a1f; border-color: var(--r-flow-yellow); }
.xhs-replica.r-redya-flow .r-flow-header select { width: auto; max-width: 220px; min-height: 36px; color: #fff5d4; background: #242424; border-color: #726344; }
.xhs-replica.r-redya-flow .r-flow-header option { color: #fff5d4; background: #242424; }
.xhs-replica.r-redya-flow .r-flow-header .r-field { margin: 0; }
.xhs-replica.r-redya-flow .r-flow-header .r-field > span { color: #e1d7bb; }
.xhs-replica.r-redya-flow .r-flow-scroll {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 26px clamp(16px, 3vw, 42px) 42px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--r-border) transparent;
  scroll-padding-block: 18px;
}
.xhs-replica.r-redya-flow :is(.r-flow-home, .r-flow-outline, .r-flow-results) { width: 100%; min-width: 0; margin: 0 auto; }
.xhs-replica.r-redya-flow .r-flow-home { max-width: 1000px; }
.xhs-replica.r-redya-flow :is(.r-flow-outline, .r-flow-results) { max-width: 1240px; }
.xhs-replica.r-redya-flow .r-panel { padding: 22px; margin-bottom: 18px; border-radius: 10px; }
.xhs-replica.r-redya-flow .r-panel h3 { margin: 0 0 14px; font-size: 1rem; line-height: 1.6; }
.xhs-replica.r-redya-flow p { font-size: .9rem; line-height: 1.8; }
.xhs-replica.r-redya-flow .r-btn { min-height: 38px; padding: 8px 13px; font-size: .85rem; border-radius: 7px; }
.xhs-replica.r-redya-flow .r-btn:hover:not(:disabled) { border-color: var(--r-flow-red); }
.xhs-replica.r-redya-flow .r-primary,
.xhs-replica.r-redya-flow .r-flow-header .r-primary { color: #fff; background: var(--r-flow-red); border-color: var(--r-flow-red); }
.xhs-replica.r-redya-flow .r-primary:hover:not(:disabled),
.xhs-replica.r-redya-flow .r-flow-header .r-primary:hover:not(:disabled) { color: #fff; background: var(--r-flow-red-hover); border-color: var(--r-flow-red-hover); }
.xhs-replica.r-redya-flow :is(.r-btn, textarea, select, input, summary):focus-visible { outline: 2px solid var(--r-flow-red); outline-offset: 3px; }
.xhs-replica.r-redya-flow .r-flow-header :is(.r-btn, select):focus-visible { outline-color: var(--r-flow-yellow); }
.xhs-replica.r-redya-flow .r-field { gap: 7px; margin-bottom: 18px; }
.xhs-replica.r-redya-flow .r-field > span { font-size: .88rem; line-height: 1.6; }
.xhs-replica.r-redya-flow .r-field small { font-size: .77rem; line-height: 1.7; }
.xhs-replica.r-redya-flow :is(textarea, select, input:not([type="radio"]):not([type="checkbox"]):not([type="file"])) { padding: 10px 12px; font-size: .91rem; line-height: 1.8; border-radius: 7px; }
.xhs-replica.r-redya-flow textarea { min-height: 112px; }
.xhs-replica.r-redya-flow .r-flow-source-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.xhs-replica.r-redya-flow .r-flow-source-row > .r-field { margin: 0; }
.xhs-replica.r-redya-flow .r-flow-source-row > .r-btn { min-height: 46px; white-space: nowrap; }
.xhs-replica.r-redya-flow [data-r-flow-source-actions] { display: flex; align-items: center; justify-content: flex-end; }
.xhs-replica.r-redya-flow [data-r-flow-source-actions] > .r-btn { min-height: 46px; white-space: nowrap; }
.xhs-replica.r-redya-flow .r-flow-references {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 140px;
  justify-content: start;
  gap: 12px;
  margin: 18px 0;
  padding: 3px 2px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.xhs-replica.r-redya-flow .r-flow-references .r-source-item { width: 140px; padding: 8px; border-radius: 8px; }
.xhs-replica.r-redya-flow .r-flow-references .r-source-item img { height: 150px; }
.xhs-replica.r-redya-flow .r-flow-references .r-source-item input[type="checkbox"] { accent-color: var(--r-flow-red); }
.xhs-replica.r-redya-flow .r-flow-references .r-source-item.is-selected { border-color: var(--r-flow-red); box-shadow: inset 0 0 0 1px var(--r-flow-red); }
.xhs-replica.r-redya-flow .r-flow-original { padding: 16px; background: var(--r-input); border: 1px solid var(--r-border); border-radius: 8px; }
.xhs-replica.r-redya-flow .r-flow-original .r-original { max-height: 300px; margin-bottom: 0; font-size: .86rem; }
.xhs-replica.r-redya-flow .r-flow-home-settings { margin-top: 18px; }
.xhs-replica.r-redya-flow .r-flow-home-settings > summary { padding: 4px 0; margin-bottom: 10px; font-weight: 600; }
.xhs-replica.r-redya-flow .r-outline-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); align-items: start; gap: 20px; }
.xhs-replica.r-redya-flow .r-outline-card { min-width: 0; padding: 18px; color: var(--r-text); background: var(--r-surface); border: 1px solid var(--r-border); border-radius: 10px; }
.xhs-replica.r-redya-flow .r-page-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 13px; margin-bottom: 15px; border-bottom: 1px solid var(--r-border); }
.xhs-replica.r-redya-flow .r-page-card-heading h3 { margin: 0; font-size: .96rem; }
.xhs-replica.r-redya-flow .r-page-card-heading .r-actions { gap: 5px; }
.xhs-replica.r-redya-flow .r-page-card-heading .r-btn { min-height: 31px; padding: 4px 8px; font-size: .75rem; }
.xhs-replica.r-redya-flow .r-outline-card textarea { min-height: 180px; }
.xhs-replica.r-redya-flow .r-outline-card .r-field:last-child { margin-bottom: 0; }
.xhs-replica.r-redya-flow .r-outline-card img { display: block; width: 100%; max-height: 230px; object-fit: contain; background: var(--r-input); border-radius: 6px; }
.xhs-replica.r-redya-flow .r-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); align-items: start; gap: 22px; }
.xhs-replica.r-redya-flow .r-result-card { min-width: 0; padding: 16px; color: var(--r-text); background: var(--r-surface); border: 1px solid var(--r-border); border-radius: 10px; }
.xhs-replica.r-redya-flow .r-result-card > img,
.xhs-replica.r-redya-flow .r-result-card > a > img,
.xhs-replica.r-redya-flow .r-result-card > .r-result-preview > img { display: block; width: 100%; height: auto; max-height: 600px; object-fit: contain; background: var(--r-input); border-radius: 6px; }
.xhs-replica.r-redya-flow .r-result-preview { display: block; width: 100%; margin: 0; padding: 0; color: inherit; background: var(--r-input); border: 0; border-radius: 6px; cursor: zoom-in; }
.xhs-replica.r-redya-flow .r-result-status { padding: 11px 0; font-size: .81rem; line-height: 1.7; overflow-wrap: anywhere; }
.xhs-replica.r-redya-flow .r-result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding-top: 12px; border-top: 1px solid var(--r-border); }
.xhs-replica.r-redya-flow .r-result-actions .r-btn { flex: 1 1 auto; }
.xhs-replica.r-redya-flow .r-callout { background: color-mix(in srgb, var(--r-surface, #fff) 90%, #f2d16d); border-color: color-mix(in srgb, var(--r-border) 60%, #c8a23b); }
.xhs-replica.r-redya-flow .r-workspace-alerts { flex: 0 0 auto; max-height: 24%; margin: 0 14px; overflow: auto; }
.xhs-replica.r-redya-flow .r-workspace-alerts:empty { display: none; }
.xhs-replica.r-redya-flow .r-drawer-heading { color: var(--r-flow-yellow); background: var(--r-flow-black); }
.xhs-replica.r-redya-flow .r-drawer-heading .r-btn { color: #fff2c9; }
.xhs-replica.r-redya-flow .r-flow-preview { display: flex; flex-direction: column; width: min(100%, 1200px); height: min(90dvh, 1050px); min-height: 0; overflow: hidden; }
.xhs-replica.r-redya-flow .r-flow-preview > :is(.r-heading, .r-zoom-actions, p) { flex: 0 0 auto; }
.xhs-replica.r-redya-flow .r-flow-preview > .r-zoom-actions { padding-bottom: 12px; }
.xhs-replica.r-redya-flow .r-flow-preview .r-preview-viewport { flex: 1 1 0; width: 100%; min-height: 0; height: auto; overflow: auto; }
.xhs-replica.r-redya-flow .r-flow-preview .r-preview-canvas > .r-preview-image { display: block; max-width: none; max-height: none; object-fit: initial; }
.xhs-replica.r-redya-flow .r-modal-backdrop { z-index: 3400; }
.xhs-replica.r-redya-flow img[data-r-asset] { filter: none; mix-blend-mode: normal; }

@container (max-width: 880px) {
  .xhs-replica.r-redya-flow .r-flow-header { flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 15px 18px; }
  .xhs-replica.r-redya-flow .r-flow-heading { flex-basis: 100%; }
  .xhs-replica.r-redya-flow .r-flow-actions { width: 100%; justify-content: flex-start; }
  .xhs-replica.r-redya-flow .r-flow-scroll { padding: 20px 18px 32px; }
}
@container (max-width: 620px) {
  .xhs-replica.r-redya-flow .r-flow-header { padding: 12px; gap: 10px; }
  .xhs-replica.r-redya-flow .r-flow-heading h2 { font-size: 1.03rem; }
  .xhs-replica.r-redya-flow .r-flow-heading p { font-size: .75rem; }
  .xhs-replica.r-redya-flow .r-flow-actions { gap: 6px; }
  .xhs-replica.r-redya-flow .r-flow-actions .r-btn { flex: 1 1 auto; min-height: 40px; }
  .xhs-replica.r-redya-flow .r-flow-header select { flex: 1 1 150px; max-width: 100%; }
  .xhs-replica.r-redya-flow .r-flow-scroll { padding: 14px 11px 26px; }
  .xhs-replica.r-redya-flow .r-panel { padding: 16px; }
  .xhs-replica.r-redya-flow .r-flow-source-row { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .xhs-replica.r-redya-flow .r-flow-source-row > .r-btn { width: 100%; min-height: 44px; }
  .xhs-replica.r-redya-flow [data-r-flow-source-actions] > .r-btn { width: 100%; min-height: 44px; white-space: normal; }
  .xhs-replica.r-redya-flow .r-flow-references { grid-auto-columns: 126px; gap: 10px; }
  .xhs-replica.r-redya-flow .r-flow-references .r-source-item { width: 126px; }
  .xhs-replica.r-redya-flow .r-flow-references .r-source-item img { height: 136px; }
  .xhs-replica.r-redya-flow :is(.r-outline-pages, .r-result-grid) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .xhs-replica.r-redya-flow :is(.r-outline-card, .r-result-card) { padding: 14px; }
  .xhs-replica.r-redya-flow .r-btn { min-height: 40px; }
  .xhs-replica.r-redya-flow :is(textarea, select, input:not([type="radio"]):not([type="checkbox"]):not([type="file"])) { font-size: 16px; }
}

/* Three real creation modes share the same outline and result renderer. */
.xhs-replica.r-redya-flow .r-mode-picker{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px;padding:7px;background:var(--r-surface);border:1px solid var(--r-border);border-radius:10px}
.xhs-replica.r-redya-flow .r-mode-picker .r-btn{flex:1 1 150px}
.xhs-replica.r-redya-flow .r-mode-picker .r-btn[aria-current=page]{color:#211c10;background:var(--r-flow-yellow);border-color:var(--r-flow-yellow);outline:none;font-weight:600}
.xhs-replica.r-redya-flow :is(.r-product-gallery,.r-product-list){display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:14px;margin:14px 0;align-items:start}
.xhs-replica.r-redya-flow .r-product-gallery>article{min-width:0;padding:13px;background:var(--r-surface);border:1px solid var(--r-border);border-radius:8px}
.xhs-replica.r-redya-flow .r-product-gallery img{display:block;width:100%;height:180px;object-fit:contain;margin-bottom:12px;background:var(--r-input)}
.xhs-replica.r-redya-flow .r-product-gallery label:not(.r-field){display:block;margin:9px 0;font-size:.85rem;line-height:1.7}
.xhs-replica.r-redya-flow .r-product-gallery input[type=checkbox]{accent-color:var(--r-flow-red);margin-right:6px}
.xhs-replica.r-redya-flow .r-product-thumbnails{display:flex;gap:10px;overflow:auto;margin:12px 0}
.xhs-replica.r-redya-flow .r-product-thumbnails img{width:110px;height:140px;object-fit:contain;flex:0 0 110px}
.xhs-replica.r-redya-flow .r-product-modal{width:min(100%,1080px);max-height:92dvh;overflow:auto}
.xhs-replica.r-redya-flow .r-product-modal>.r-heading{position:sticky;top:-24px;z-index:2;padding:14px 0;background:var(--r-surface);border-bottom:1px solid var(--r-border)}
.xhs-replica.r-redya-flow .r-product-modal [data-r-product-feedback]:empty{display:none}
.xhs-replica.r-redya-flow .r-subject-selection label>img{width:100%;height:140px;object-fit:contain;margin:7px 0}
@container(max-width:620px){.xhs-replica.r-redya-flow .r-product-modal{padding:15px}.xhs-replica.r-redya-flow .r-mode-picker .r-btn{flex-basis:100px}.xhs-replica.r-redya-flow .r-product-modal>.r-heading{top:-15px}}
/* 2026-10-22: independent creation shell, confined to this module. */
.xhs-replica.r-rebuild-shell{position:fixed;inset:0;z-index:1600;display:grid;grid-template-columns:216px minmax(0,1fr);max-width:none;width:100%;height:100dvh;margin:0;border:0;border-radius:0;background:#fcfcfc;color:#202020;overflow:hidden;isolation:isolate;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;--r-radius:12px;--r-danger:#d72740;--r-success:#348d60;--r-border:#e8e8e8;--r-accent:#f32443}
.xhs-replica.r-rebuild-shell *{box-sizing:border-box}.r-rebuild-shell .rr-icon{width:20px;height:20px;flex:0 0 20px;vertical-align:middle}.r-rebuild-shell button{font-family:inherit}.r-rebuild-shell .r-btn{gap:7px;min-height:36px;padding:7px 13px;border-radius:8px;font-size:13px;font-weight:500;line-height:1.45;white-space:nowrap;box-shadow:none;transition:background .15s,border-color .15s}.r-rebuild-shell .r-btn:hover:not(:disabled){background:#fff4f5;border-color:#f4a4b0}.r-rebuild-shell .r-primary{background:#f32443;color:white;border-color:#f32443}.r-rebuild-shell .r-primary:hover:not(:disabled){background:#dc1735;border-color:#dc1735}.r-rebuild-shell .r-btn[aria-current=page]{background:#fff1da;border-color:#e9c77d;color:#6f4c10;outline:none}.r-rebuild-shell .rr-tool{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:6px;background:transparent;border:0;border-radius:7px;color:#757575;cursor:pointer}.r-rebuild-shell .rr-tool:hover:not(:disabled){background:#fff1da;color:#1d1d1d}.r-rebuild-shell .rr-tool:disabled{opacity:.3;cursor:default}.r-rebuild-shell :is(button,input,textarea,select):focus-visible{outline:2px solid #f32443;outline-offset:3px}.r-rebuild-shell .rr-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.r-rebuild-shell :is(h1,h2,h3,h4){color:#202020}.r-rebuild-shell .r-field{gap:8px;margin:0 0 17px}.r-rebuild-shell .r-field>span{font-size:13px;color:#5f5f5f}.r-rebuild-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),textarea,select){font-size:14px;line-height:1.8;border:1px solid #e5e5e5;border-radius:8px;background:white;color:#242424;padding:10px 12px;box-shadow:none}.r-rebuild-shell :is(textarea,input)::placeholder{color:#aaa}.r-rebuild-shell textarea{resize:vertical}.r-rebuild-shell textarea:focus{border-color:#f4a8b3;outline:none;box-shadow:0 0 0 3px #fff0f3}.r-rebuild-shell .rr-sidebar{display:flex;flex-direction:column;min-width:0;height:100%;padding:25px 16px 15px;background:#18191b;color:#d0d0d2;border-right:1px solid #0a0a0b}.r-rebuild-shell .rr-brand{display:flex;align-items:center;gap:11px;margin:0 10px 37px;font-size:18px;font-weight:700;letter-spacing:1px;color:#fff}.r-rebuild-shell .rr-brand-mark{display:grid;place-items:center;width:34px;height:34px;background:#f32443;border-radius:10px;color:#fff;font-size:22px;box-shadow:4px 4px 0 #d5b26d}.r-rebuild-shell .rr-sidebar nav{display:flex;flex-direction:column;gap:8px}.r-rebuild-shell .rr-sidebar .r-btn{display:flex;justify-content:flex-start;width:100%;border-color:transparent;background:transparent;color:#bfbfc3;min-height:44px;padding-left:15px;font-size:14px}.r-rebuild-shell .rr-sidebar .r-btn[aria-current=page]{background:#f4db97;color:#24211b;font-weight:650}.r-rebuild-shell .rr-sidebar .r-btn:hover:not(:disabled):not([aria-current=page]){background:#292a2e;color:#fff}.r-rebuild-shell .rr-sidebar-tools{display:flex;flex-direction:column;gap:3px;margin-top:30px;padding-top:20px;border-top:1px solid #323338}.r-rebuild-shell .rr-sidebar-tools .r-btn{font-size:12px;color:#9c9ca2;min-height:35px}.r-rebuild-shell .rr-sidebar-tools .rr-icon{width:17px;height:17px;flex-basis:17px}.r-rebuild-shell .rr-sidebar footer{margin-top:auto;padding-top:20px;display:flex;flex-wrap:wrap;align-items:center;gap:6px}.r-rebuild-shell .rr-sidebar footer>small{color:#6b6b72;font-size:10px;flex:1;text-align:right}.r-rebuild-shell .rr-sidebar footer>.r-btn{width:auto;flex:1;font-size:12px;padding-left:5px}.r-rebuild-shell .rr-user{display:flex;align-items:center;gap:10px;padding:15px 7px;border-top:1px solid #323338;width:100%;font-size:12px}.r-rebuild-shell .rr-user>span{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:#404147;color:#e5d59b}.r-rebuild-shell .rr-user strong{font-weight:500;color:#ddd;display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis}.r-rebuild-shell .rr-user small{display:block;font-size:10px;margin-top:3px;color:#73737b}.r-rebuild-shell .rr-sidebar footer .rr-tool{color:#8c8c93}.r-rebuild-shell .rr-main{min-height:0;min-width:0;display:flex;flex-direction:column;background:#fcfcfc}.r-rebuild-shell .rr-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:0 0 auto;min-height:86px;padding:22px 36px;background:#fcfcfc}.r-rebuild-shell .rr-topbar h2{font-size:22px;font-weight:650;line-height:1.35}.r-rebuild-shell .rr-topbar p{font-size:12px;color:#929292;margin:6px 0 0}.r-rebuild-shell .rr-breadcrumb{font-size:13px;color:#a1a1a1}.r-rebuild-shell .r-flow-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.r-rebuild-shell .r-save{color:#9a9a9a;font-size:11px}.r-rebuild-shell .r-wb-alerts{padding:0 36px;flex:none}.r-rebuild-shell .r-alert{margin:0 0 10px;padding:9px 12px;font-size:12px;border-radius:8px;align-items:center;line-height:1.6}.r-rebuild-shell .r-error{background:#fff3f4;border-color:#f4c8cf;color:#ac1830}.r-rebuild-shell .r-notice{background:#fff9eb;border-color:#f0dfb4;color:#776337}.r-rebuild-shell .r-busy{padding:2px 0 8px;color:#999;font-size:12px}.r-rebuild-shell [data-r-content]{min-height:0;min-width:0;display:flex;flex:1;overflow:hidden}.r-rebuild-shell .rr-scroll{display:block;flex:1;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 36px 45px;scrollbar-width:thin}.r-rebuild-shell .rr-work-status{max-width:1080px;margin:0 auto}.r-rebuild-shell .rr-work-status:empty{display:none}.r-rebuild-shell .rr-home{max-width:950px;margin:30px auto 0}.r-rebuild-shell .rr-hero{text-align:center;margin:0 0 39px}.r-rebuild-shell .rr-kicker{display:inline-flex;align-items:center;padding:5px 11px;border-radius:5px;background:#fff1da;color:#9d7a35;font-size:10px;letter-spacing:1px}.r-rebuild-shell .rr-hero h1{margin:20px 0 14px;font-size:clamp(25px,2.5vw,39px);font-weight:750;line-height:1.5;letter-spacing:-1px}.r-rebuild-shell .rr-hero h1>span{color:#f32443}.r-rebuild-shell .rr-hero p{margin:0;color:#939393;font-size:14px;line-height:1.7}.r-rebuild-shell .rr-hero>small{display:block;margin-top:12px;font-size:11px;color:#b1b1b1}.r-rebuild-shell .rr-compose{border:1px solid #e5e5e5;box-shadow:0 7px 30px #00000005;border-radius:17px;background:#fff;overflow:hidden}.r-rebuild-shell .rr-link-row{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid #f0f0f0;color:#aaa}.r-rebuild-shell .rr-link-row>input{flex:1;min-width:0;border:0;padding:2px 0;background:transparent;box-shadow:none;font-size:13px}.r-rebuild-shell .rr-link-row>.rr-icon{width:16px;height:16px;flex-basis:16px}.r-rebuild-shell .rr-parse{font-size:12px;min-height:30px;padding:5px 15px;color:#888;background:#f5f5f5;border:0}.r-rebuild-shell .rr-prompt{display:block;width:100%;height:173px;min-height:130px;border:0;border-radius:0;padding:23px 24px;resize:vertical;font-size:15px;line-height:1.85;background:#fff;box-shadow:none!important}.r-rebuild-shell .rr-compose-footer{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:14px 17px 15px;border-top:1px solid #f5f5f5}.r-rebuild-shell .rr-compose-footer>.r-btn{background:#fafafa;border:1px solid #eee;color:#777;font-size:11px;min-height:31px;padding:5px 10px}.r-rebuild-shell .rr-compose-footer>.r-btn>.rr-icon{width:14px;height:14px;flex-basis:14px}.r-rebuild-shell .rr-select select,.r-rebuild-shell .rr-model select{min-width:103px;max-width:190px;border:0;background:#f5f5f5;padding:6px 24px 6px 10px;font-size:11px;line-height:1.6;border-radius:6px;height:31px}.r-rebuild-shell .rr-model select{max-width:180px;background:white;color:#999}.r-rebuild-shell .rr-compose-icons{display:flex;align-items:center;gap:3px;margin-left:auto}.r-rebuild-shell .rr-compose-icons>.rr-tool{width:29px;flex-basis:29px;height:31px;padding:6px;color:#9b9b9b}.r-rebuild-shell .rr-compose-icons>.rr-tool>.rr-icon{width:17px;height:17px;flex-basis:17px}.r-rebuild-shell .rr-send{width:37px;height:33px;display:grid;place-items:center;margin-left:7px;background:#f32443;color:#fff;border:0;border-radius:8px;cursor:pointer}.r-rebuild-shell .rr-send:disabled{background:#f1a0ad;cursor:default}.r-rebuild-shell .rr-send .rr-icon{width:20px;height:20px}.r-rebuild-shell .rr-hint{font-size:12px;line-height:1.7;color:#a0a0a0;margin:15px 0}.r-rebuild-shell .rr-home>.rr-hint{text-align:center;margin-top:21px}.r-rebuild-shell .rr-home-bottom{display:flex;justify-content:center;gap:32px;margin:65px 0 20px;color:#bebebe;font-size:11px}.r-rebuild-shell .rr-home-bottom>span{display:flex;align-items:center;gap:7px}.r-rebuild-shell .rr-home-bottom .rr-icon{width:16px;height:16px;flex-basis:16px}.r-rebuild-shell .rr-resume{display:flex;align-items:center;gap:9px;font-size:12px;color:#8a7444;margin:0 0 16px;padding:10px 14px;background:#fff9ea;border:1px solid #f3e6c4;border-radius:8px}.r-rebuild-shell .rr-resume>span{flex:1}.r-rebuild-shell .rr-resume .r-btn{font-size:11px;min-height:28px;padding:3px 9px}.r-rebuild-shell .rr-old-drafts{color:#999;font-size:11px}.r-rebuild-shell .rr-old-drafts>summary{font-size:11px}.r-rebuild-shell .rr-attached{display:flex;gap:9px;padding:0 22px 18px}.r-rebuild-shell .rr-attached button{position:relative;display:block;width:64px;border:1px solid #ddd;border-radius:6px;padding:3px;background:#fff;overflow:hidden}.r-rebuild-shell .rr-attached img{width:100%;height:53px;object-fit:cover}.r-rebuild-shell .rr-attached small{font-size:9px;color:#999}.r-rebuild-shell .rr-parsed{display:flex;align-items:center;justify-content:space-between;padding:12px 22px;border-top:1px solid #f3f3f3}.r-rebuild-shell .rr-parsed strong{font-size:12px}.r-rebuild-shell .rr-parsed small{display:block;margin-top:5px;font-size:10px;color:#aaa}.r-rebuild-shell .rr-center-actions{display:flex;justify-content:center;gap:10px;margin-top:20px}.r-rebuild-shell .rr-product-context{margin:18px 0;padding:14px 18px;border:1px solid #eee;border-radius:10px;background:white}.r-rebuild-shell .rr-product-context .r-product-linked strong{font-size:12px}.r-rebuild-shell .rr-product-context .r-product-linked p{font-size:11px;color:#aaa}.r-rebuild-shell .rr-product-thumbnails,.r-rebuild-shell .r-product-thumbnails{display:flex;gap:6px}.r-rebuild-shell .r-product-thumbnails img{width:42px;height:50px;object-fit:contain}.r-rebuild-shell .rr-inline{display:flex;align-items:center;gap:8px;margin:10px 0}.r-rebuild-shell .rr-inline>span{font-size:11px;color:#999}.r-rebuild-shell .rr-document{max-width:1080px;margin:4px auto 0}.r-rebuild-shell .r-panel{border:1px solid #e8e8e8;border-radius:12px;background:white;padding:25px;margin-bottom:20px;box-shadow:none}.r-rebuild-shell .rr-publication>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.r-rebuild-shell .rr-publication h3{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;margin:0}.r-rebuild-shell .rr-publication h3 .rr-icon{color:#b6a578;width:18px;height:18px}.r-rebuild-shell .rr-publication textarea{min-height:140px}.r-rebuild-shell .rr-word-count{text-align:right;font-size:11px;color:#b3b3b3;margin-top:-10px}.r-rebuild-shell .rr-tags{font-size:12px;color:#a18853;margin-top:12px}.r-rebuild-shell .rr-series{display:grid;grid-template-columns:150px minmax(0,1fr);gap:25px;padding:23px 25px}.r-rebuild-shell .rr-series>div>h3{font-size:13px;margin:0 0 8px}.r-rebuild-shell .rr-series>div>small{display:block;font-size:10px;color:#aaa;margin-bottom:13px}.r-rebuild-shell .rr-series .r-btn{font-size:10px;min-height:28px;padding:4px 8px}.r-rebuild-shell .rr-series .r-field{margin-bottom:8px}.r-rebuild-shell .rr-series .r-field>span{display:none}.r-rebuild-shell .rr-series textarea{font-size:12px;background:#fdfdfd}.r-rebuild-shell .rr-color-setting{display:flex;align-items:center;gap:7px;font-size:11px;color:#999}.r-rebuild-shell .rr-color-setting>input[type=color]{width:28px;height:23px;padding:2px;border:1px solid #ddd;border-radius:4px;background:white}.r-rebuild-shell .rr-outline-pages{display:grid;gap:0}.r-rebuild-shell .rr-outline-page>header{display:flex;align-items:center;justify-content:space-between;margin:-2px 0 20px}.r-rebuild-shell .rr-outline-page>header>div:first-child{display:flex;align-items:center;gap:10px}.r-rebuild-shell .rr-outline-page>header strong{font-size:14px}.r-rebuild-shell .rr-outline-page>header span{font-size:11px;color:#9d9d9d}.r-rebuild-shell .rr-page-tools{display:flex;gap:2px}.r-rebuild-shell .rr-page-tools .rr-tool{width:29px;height:29px;flex-basis:29px}.r-rebuild-shell .rr-page-tools .rr-tool .rr-icon{width:16px;height:16px}.r-rebuild-shell .rr-page-tools [data-direction="-1"] .rr-icon{transform:rotate(-90deg)}.r-rebuild-shell .rr-page-tools [data-direction="1"] .rr-icon{transform:rotate(90deg)}.r-rebuild-shell .rr-page-brief{width:100%;padding:16px;font-size:13px;line-height:1.9;min-height:240px;background:#fdfdfd}.r-rebuild-shell .rr-outline-page>.rr-word-count{margin-top:8px}.r-rebuild-shell .rr-page-assets{display:flex;gap:12px;margin:0 0 18px}.r-rebuild-shell .rr-page-assets button{display:flex;align-items:center;gap:8px;padding:6px 9px;border:1px solid #e7e7e7;background:white;border-radius:7px;cursor:pointer}.r-rebuild-shell .rr-page-assets small{font-size:10px;color:#999}.r-rebuild-shell .rr-page-assets img{width:40px;height:52px;object-fit:contain}.r-rebuild-shell .rr-add-page{width:100%;border-style:dashed;background:transparent;min-height:48px;margin-bottom:22px;color:#999}.r-rebuild-shell .rr-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;align-items:start}.r-rebuild-shell .rr-result-card{padding:15px;min-width:0}.r-rebuild-shell .rr-result-card>header{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;font-size:12px}.r-rebuild-shell .rr-result-card>header>span{color:#aaa;font-size:10px}.r-rebuild-shell .rr-result-image{display:block;width:100%;padding:0;border:0;border-radius:8px;overflow:hidden;background:#f5f5f5;cursor:zoom-in}.r-rebuild-shell .rr-result-image img{display:block;width:100%;height:auto;max-height:660px;object-fit:contain}.r-rebuild-shell .rr-result-toolbar{display:flex;align-items:center;justify-content:space-around;gap:3px;padding:10px 0 3px}.r-rebuild-shell .rr-result-toolbar .rr-tool{width:31px;height:31px;flex-basis:31px}.r-rebuild-shell .rr-result-toolbar .rr-icon{width:17px;height:17px}.r-rebuild-shell .rr-qc-note{font-size:10px;color:#aaa;text-align:center;margin:8px 0}.r-rebuild-shell .rr-result-copy{border-top:1px solid #eee;margin-top:12px;padding-top:12px}.r-rebuild-shell .rr-result-copy>summary{font-size:11px;color:#8f8f8f;margin-bottom:12px}.r-rebuild-shell .rr-result-copy textarea{width:100%;font-size:12px;margin-bottom:10px}.r-rebuild-shell .rr-result-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:340px;background:#f8f8f8;border-radius:8px;color:#b5b5b5}.r-rebuild-shell .rr-result-empty>.rr-icon{width:42px;height:42px}.r-rebuild-shell .rr-result-empty p{font-size:12px;margin:12px}.r-rebuild-shell .rr-library{max-width:1260px;margin:10px auto 0}.r-rebuild-shell .rr-work-controls{display:flex;align-items:center;gap:8px;margin-bottom:25px}.r-rebuild-shell .rr-search{display:flex;align-items:center;gap:9px;width:min(450px,100%);border:1px solid #e6e6e6;background:white;border-radius:9px;padding:0 12px;color:#a1a1a1}.r-rebuild-shell .rr-search>input{border:0;box-shadow:none;padding:8px 0;min-width:0;font-size:12px}.r-rebuild-shell .rr-search>.rr-icon{width:17px;height:17px}.r-rebuild-shell .rr-filters{display:flex;gap:10px;padding-bottom:20px;border-bottom:1px solid #ededed;margin-bottom:25px}.r-rebuild-shell .rr-filters>.r-btn{border:0;background:transparent;color:#969696;padding:6px 14px;min-height:32px}.r-rebuild-shell .rr-filters>.r-btn[aria-current=page]{background:#fff0d3;color:#87641e}.r-rebuild-shell .rr-work-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:23px}.r-rebuild-shell .rr-work-card{min-width:0;border:1px solid #ededed;border-radius:11px;overflow:hidden;background:white;transition:box-shadow .2s}.r-rebuild-shell .rr-work-card:hover{box-shadow:0 6px 18px #00000006}.r-rebuild-shell .rr-work-cover{display:block;width:100%;height:230px;border:0;padding:0;background:#f5f4f1;cursor:pointer;overflow:hidden}.r-rebuild-shell .rr-work-cover>img{width:100%;height:100%;object-fit:cover;object-position:top}.r-rebuild-shell .rr-work-cover>div{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#c9c3b6;font-size:11px}.r-rebuild-shell .rr-work-cover .rr-icon{width:45px;height:45px;flex-basis:45px}.r-rebuild-shell .rr-work-info{padding:15px 14px}.r-rebuild-shell .rr-work-info h3{font-size:13px;line-height:1.6;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.r-rebuild-shell .rr-work-info p{font-size:10px;color:#aaa;margin:7px 0 8px}.r-rebuild-shell .rr-work-actions{display:flex;justify-content:flex-end;gap:3px}.r-rebuild-shell .rr-work-actions .rr-tool{width:27px;height:27px;flex-basis:27px}.r-rebuild-shell .rr-work-actions .rr-icon{width:15px;height:15px}.r-rebuild-shell .rr-pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin:30px 0;font-size:11px;color:#aaa}.r-rebuild-shell .rr-pagination .r-btn{font-size:11px;min-height:31px}.r-rebuild-shell .r-modal-backdrop{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:28px;background:#1118;backdrop-filter:blur(2px)}.r-rebuild-shell .r-modal{position:relative;display:flex;flex-direction:column;width:min(840px,100%);max-height:90dvh;background:white;border-radius:15px;border:1px solid #eee;padding:0;overflow:hidden;box-shadow:0 20px 90px #0003}.r-rebuild-shell .rr-modal-heading{display:flex;align-items:center;justify-content:space-between;flex:none;padding:19px 25px;border-bottom:1px solid #efefef;background:#fff}.r-rebuild-shell .rr-modal-heading h3{font-size:16px;font-weight:600;margin:0}.r-rebuild-shell .rr-modal-body{min-height:0;overflow:auto;padding:23px 25px}.r-rebuild-shell .rr-modal-footer{display:flex;justify-content:flex-end;gap:9px;flex:none;padding:15px 25px;border-top:1px solid #eee}.r-rebuild-shell .rr-modal-wide{width:min(1330px,100%)}.r-rebuild-shell .rr-material-kind{display:flex;align-items:center;gap:8px;margin-bottom:20px}.r-rebuild-shell .rr-material-columns{display:grid;grid-template-columns:120px minmax(0,1fr) minmax(240px,30%);gap:20px;min-height:470px}.r-rebuild-shell .rr-material-pages{border-right:1px solid #eee;padding-right:15px}.r-rebuild-shell .rr-material-pages>strong,.r-rebuild-shell .rr-material-preview>strong{display:block;font-size:12px;margin-bottom:14px}.r-rebuild-shell .rr-material-pages .r-btn{display:block;white-space:normal;width:100%;margin-bottom:7px;font-size:11px;text-align:left;padding:8px 9px}.r-rebuild-shell .rr-material-picker{min-width:0}.r-rebuild-shell .rr-material-picker h4{font-size:14px;margin:0 0 10px}.r-rebuild-shell .rr-material-picker>.rr-hint{font-size:11px;margin:0 0 15px}.r-rebuild-shell .rr-material-sources{display:flex;gap:3px;flex-wrap:wrap;margin:10px 0 20px}.r-rebuild-shell .rr-material-sources>.r-btn{padding:6px 10px;font-size:11px;border:0}.r-rebuild-shell .rr-material-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:12px;margin-top:18px}.r-rebuild-shell .rr-material-item{position:relative;min-width:0;padding:7px;text-align:left;border:1px solid #e6e6e6;border-radius:8px;background:white;color:#666;cursor:pointer}.r-rebuild-shell .rr-material-item.is-selected{border:2px solid #f32443;padding:6px}.r-rebuild-shell .rr-material-item>img{width:100%;height:125px;object-fit:contain;border-radius:4px;background:#fafafa}.r-rebuild-shell .rr-material-item strong{display:block;font-size:10px;line-height:1.5;margin:7px 0;max-height:30px;overflow:hidden}.r-rebuild-shell .rr-material-item small{display:block;font-size:9px;line-height:1.5;max-height:42px;overflow:hidden;color:#aaa}.r-rebuild-shell .rr-material-item>.rr-icon{position:absolute;top:10px;right:10px;background:#f32443;color:white;border-radius:50%;width:20px;height:20px;padding:3px}.r-rebuild-shell .rr-material-preview{border-left:1px solid #eee;padding-left:20px;min-width:0}.r-rebuild-shell .rr-material-preview>small{display:block;margin-top:-7px;margin-bottom:12px;font-size:10px;line-height:1.6;color:#aaa}.r-rebuild-shell .rr-material-preview>textarea{width:100%;font-size:11px;line-height:1.8;background:#fdfdfd;resize:vertical}.r-rebuild-shell .rr-preview-bindings{display:flex;gap:5px;margin:8px 0}.r-rebuild-shell .rr-preview-bindings img{width:60px;height:75px;object-fit:contain;background:#fafafa;border:1px solid #eee;border-radius:5px}.r-rebuild-shell .rr-resource-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:20px}.r-rebuild-shell .rr-resource-toolbar>.r-btn{font-size:11px}.r-rebuild-shell .rr-import{font-size:11px;margin:0;padding:6px 10px;border:1px solid #ddd;cursor:pointer;border-radius:7px}.r-rebuild-shell .rr-import input{max-width:130px;font-size:10px;margin-top:3px}.r-rebuild-shell .rr-resource-list>article{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #eee}.r-rebuild-shell .rr-resource-list>article>div:first-child{min-width:0}.r-rebuild-shell .rr-resource-list strong{font-size:13px}.r-rebuild-shell .rr-resource-list p{font-size:11px;line-height:1.8;color:#999;margin:6px 0;overflow-wrap:anywhere;max-width:540px}.r-rebuild-shell .rr-resource-list small{font-size:10px}.r-rebuild-shell .rr-resource-list .r-btn{font-size:11px;min-height:29px}.r-rebuild-shell .rr-folders{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.r-rebuild-shell .rr-folders>div{display:flex;align-items:center;gap:3px;padding:3px 7px;border:1px solid #eee;border-radius:6px;font-size:11px;background:#fafafa}.r-rebuild-shell .rr-folders strong{font-weight:500;margin-right:10px}.r-rebuild-shell .rr-folders .rr-tool{width:25px;height:25px;flex-basis:25px}.r-rebuild-shell .rr-folders .rr-icon{width:13px;height:13px}.r-rebuild-shell .rr-association-grid{display:grid;grid-template-columns:145px minmax(0,1fr);gap:20px;margin-top:22px}.r-rebuild-shell .rr-association-grid>aside{display:flex;flex-direction:column;gap:6px}.r-rebuild-shell .rr-association-grid>aside .r-btn{font-size:11px;justify-content:flex-start}.r-rebuild-shell .rr-document-choice{display:flex;gap:10px;border:1px solid #e9e9e9;border-radius:8px;padding:14px;margin:0 0 10px;cursor:pointer}.r-rebuild-shell .rr-document-choice>input{align-self:flex-start;flex:none;margin-top:4px}.r-rebuild-shell .rr-document-choice strong{font-size:12px}.r-rebuild-shell .rr-document-choice p{font-size:11px;line-height:1.8;color:#999;margin:6px 0;overflow-wrap:anywhere}.r-rebuild-shell .rr-edit-kinds{display:flex;gap:8px;margin-bottom:18px}.r-rebuild-shell .r-product-modal{padding:22px;display:block}.r-rebuild-shell .r-product-modal>.r-heading{margin-bottom:15px}.r-rebuild-shell .r-product-modal h3{font-size:16px}.r-rebuild-shell .r-product-modal p{font-size:12px}.r-rebuild-shell .r-product-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:15px}.r-rebuild-shell .r-product-gallery>article{min-width:0;border:1px solid #eee;border-radius:8px;padding:12px}.r-rebuild-shell .r-product-gallery img{width:100%;height:160px;object-fit:contain}.r-rebuild-shell .r-product-gallery label{font-size:11px}.r-rebuild-shell .r-flow-preview{padding:22px;display:block}.r-rebuild-shell .r-flow-preview .r-preview-viewport{height:60vh;overflow:auto;background:#f2f2f2;border-radius:8px}.r-rebuild-shell .r-preview-canvas{display:flex;justify-content:center;align-items:flex-start;min-height:100%;min-width:100%}.r-rebuild-shell .r-preview-image{display:block;max-width:100%;height:auto;object-fit:contain}.r-rebuild-shell .r-zoom-actions{display:flex;gap:8px;margin:14px 0;align-items:center;font-size:11px}.r-rebuild-shell .r-zoom-actions .r-btn{font-size:11px;min-height:28px;padding:4px 9px}.r-rebuild-shell .rr-sidebar.is-collapsed{padding-inline:10px}.r-rebuild-shell .rr-sidebar.is-collapsed :is(.rr-brand strong,.r-btn>span,.rr-user>div,footer>small){display:none}.r-rebuild-shell:has(.rr-sidebar.is-collapsed){grid-template-columns:70px minmax(0,1fr)}.r-rebuild-shell .rr-sidebar.is-collapsed .rr-brand{margin-inline:6px}.r-rebuild-shell .rr-sidebar.is-collapsed .r-btn{padding:10px;justify-content:center}.r-rebuild-shell .rr-sidebar.is-collapsed .rr-user{padding-inline:3px}.r-rebuild-shell .r-drawer{position:fixed;right:0;top:0;bottom:0;width:min(520px,95vw);z-index:2010;background:white;padding:24px;overflow:auto;box-shadow:-12px 0 50px #0002}.r-rebuild-shell .r-drawer-backdrop{position:fixed;inset:0;z-index:2000;background:#0006}
@media(min-width:1550px){.r-rebuild-shell .rr-home{margin-top:70px}.r-rebuild-shell .rr-work-cover{height:270px}}
@media(max-width:1100px){.xhs-replica.r-rebuild-shell{grid-template-columns:185px minmax(0,1fr)}.r-rebuild-shell .rr-topbar{padding-inline:25px}.r-rebuild-shell .rr-scroll{padding-inline:25px}.r-rebuild-shell .r-wb-alerts{padding-inline:25px}.r-rebuild-shell .rr-home{margin-top:25px}.r-rebuild-shell .rr-compose-footer{gap:5px}.r-rebuild-shell .rr-model select{max-width:140px}.r-rebuild-shell .rr-material-columns{grid-template-columns:95px minmax(0,1fr) 240px;gap:13px}.r-rebuild-shell .rr-material-preview{padding-left:13px}.r-rebuild-shell .rr-hero h1{font-size:30px}.r-rebuild-shell .rr-series{grid-template-columns:115px minmax(0,1fr)}}
@media(max-width:800px){.xhs-replica.r-rebuild-shell{grid-template-columns:70px minmax(0,1fr)}.r-rebuild-shell .rr-sidebar{padding-inline:10px}.r-rebuild-shell .rr-sidebar :is(.rr-brand strong,.r-btn>span,.rr-user>div,footer>small){display:none}.r-rebuild-shell .rr-sidebar .rr-brand{margin-inline:6px}.r-rebuild-shell .rr-sidebar .r-btn{padding:10px;justify-content:center}.r-rebuild-shell .rr-sidebar .rr-user{padding-inline:3px}.r-rebuild-shell .rr-topbar{padding:17px 20px;min-height:75px;flex-wrap:wrap;gap:12px}.r-rebuild-shell .rr-topbar h2{font-size:19px}.r-rebuild-shell .rr-scroll{padding:0 20px 30px}.r-rebuild-shell .r-wb-alerts{padding-inline:20px}.r-rebuild-shell .rr-hero{margin:20px 0 27px}.r-rebuild-shell .rr-hero h1{font-size:25px;letter-spacing:0}.r-rebuild-shell .rr-hero p{font-size:12px}.r-rebuild-shell .rr-hero>small{font-size:10px}.r-rebuild-shell .rr-compose-footer .rr-model{display:none}.r-rebuild-shell .rr-home-bottom{gap:13px;font-size:9px;margin-top:35px}.r-rebuild-shell .rr-home-bottom>.span{gap:4px}.r-rebuild-shell .rr-series{display:block}.r-rebuild-shell .rr-series>div:first-child{display:flex;align-items:center;gap:10px;margin-bottom:14px}.r-rebuild-shell .rr-series>div:first-child :is(h3,small){margin:0}.r-rebuild-shell .rr-series>div:first-child .r-btn{margin-left:auto}.r-rebuild-shell .rr-material-columns{grid-template-columns:90px minmax(0,1fr)}.r-rebuild-shell .rr-material-preview{grid-column:1/-1;border-left:0;border-top:1px solid #eee;padding:15px 0 0}.r-rebuild-shell .rr-material-preview>textarea{max-height:170px}.r-rebuild-shell .rr-association-grid{grid-template-columns:110px minmax(0,1fr);gap:12px}.r-rebuild-shell .rr-resource-toolbar{flex-wrap:wrap}.r-rebuild-shell .rr-resource-list>article{flex-direction:column;gap:8px}.r-rebuild-shell .rr-work-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:15px}.r-rebuild-shell .rr-work-cover{height:215px}}
@media(max-width:520px){.xhs-replica.r-rebuild-shell{display:flex;flex-direction:column}.r-rebuild-shell .rr-sidebar{height:54px;flex:0 0 54px;display:flex;flex-direction:row;align-items:center;padding:8px 13px;border-bottom:1px solid #000}.r-rebuild-shell .rr-sidebar .rr-brand{margin:0 12px 0 0}.r-rebuild-shell .rr-brand-mark{width:27px;height:27px;font-size:18px;border-radius:7px;box-shadow:3px 3px 0 #b7985b}.r-rebuild-shell .rr-sidebar nav{display:flex;flex-direction:row;gap:6px}.r-rebuild-shell .rr-sidebar nav .r-btn{min-height:32px;font-size:10px;padding:6px 9px;gap:5px}.r-rebuild-shell .rr-sidebar nav .r-btn>span{display:inline}.r-rebuild-shell .rr-sidebar nav .rr-icon{width:15px;height:15px;flex-basis:15px}.r-rebuild-shell .rr-sidebar-tools{display:none}.r-rebuild-shell .rr-sidebar footer{margin:0 0 0 auto;padding:0;display:block}.r-rebuild-shell .rr-sidebar footer>.r-btn{min-height:30px;padding:5px}.r-rebuild-shell .rr-sidebar footer>.r-btn>span{display:none}.r-rebuild-shell .rr-sidebar footer>:not(.r-btn){display:none}.r-rebuild-shell .rr-main{flex:1}.r-rebuild-shell .rr-topbar{padding:15px 16px;min-height:48px;gap:10px}.r-rebuild-shell .rr-topbar .r-flow-actions{gap:5px}.r-rebuild-shell .rr-topbar .r-btn{font-size:10px;padding:5px 9px;min-height:30px}.r-rebuild-shell .rr-topbar .r-btn .rr-icon{width:14px;height:14px;flex-basis:14px}.r-rebuild-shell .rr-topbar h2{font-size:18px}.r-rebuild-shell .rr-topbar p{font-size:10px}.r-rebuild-shell .rr-breadcrumb{font-size:11px}.r-rebuild-shell .rr-scroll{padding:0 13px 25px}.r-rebuild-shell .r-wb-alerts{padding-inline:13px}.r-rebuild-shell .rr-home{margin-top:15px}.r-rebuild-shell .rr-hero{margin:15px 0 25px}.r-rebuild-shell .rr-hero h1{font-size:22px;line-height:1.6;margin:14px 0 10px}.r-rebuild-shell .rr-hero p{font-size:11px}.r-rebuild-shell .rr-hero>small{max-width:260px;margin:8px auto 0;line-height:1.7}.r-rebuild-shell .rr-link-row{padding:12px;gap:7px}.r-rebuild-shell .rr-link-row>input{font-size:11px}.r-rebuild-shell .rr-parse{font-size:10px;min-height:27px;padding:4px 11px}.r-rebuild-shell .rr-prompt{font-size:14px;min-height:155px;height:180px;padding:18px 15px}.r-rebuild-shell .rr-compose-footer{padding:11px 10px;gap:6px}.r-rebuild-shell .rr-select select{min-width:92px;font-size:10px;padding:5px 18px 5px 8px}.r-rebuild-shell .rr-compose-footer>.r-btn{font-size:10px;padding:5px 7px}.r-rebuild-shell .rr-compose-footer>.r-btn>.rr-icon{display:none}.r-rebuild-shell .rr-compose-icons{gap:0}.r-rebuild-shell .rr-compose-icons>.rr-tool{width:25px;flex-basis:25px;padding:4px}.r-rebuild-shell .rr-send{margin-left:3px;width:31px;height:31px}.r-rebuild-shell .rr-compose-icons>.rr-tool>.rr-icon{width:15px;height:15px}.r-rebuild-shell .rr-home-bottom{flex-wrap:wrap;margin-top:35px;gap:10px 20px}.r-rebuild-shell .rr-home-bottom .rr-icon{width:13px;height:13px;flex-basis:13px}.r-rebuild-shell .rr-hint{font-size:10px}.r-rebuild-shell .rr-resume{flex-wrap:wrap;gap:6px;padding:8px 10px}.r-rebuild-shell .rr-resume .rr-icon{width:15px;height:15px}.r-rebuild-shell .rr-resume>span{font-size:10px}.r-rebuild-shell .rr-parsed{padding:10px 13px;gap:7px}.r-rebuild-shell .rr-parsed strong{font-size:10px}.r-rebuild-shell .rr-parsed .r-btn{font-size:10px;padding:5px 7px;min-height:28px}.r-rebuild-shell .rr-parsed .r-btn .rr-icon{display:none}.r-rebuild-shell .r-panel{padding:17px;border-radius:10px;margin-bottom:15px}.r-rebuild-shell .rr-publication>header{margin-bottom:17px}.r-rebuild-shell .rr-publication h3{font-size:13px}.r-rebuild-shell .r-field>span{font-size:11px}.r-rebuild-shell .rr-outline-page>header{margin-bottom:14px}.r-rebuild-shell .rr-outline-page>header strong{font-size:12px}.r-rebuild-shell .rr-page-tools .rr-tool{width:25px;height:25px;flex-basis:25px}.r-rebuild-shell .rr-page-tools .rr-icon{width:14px;height:14px}.r-rebuild-shell .rr-page-brief{font-size:13px;padding:12px}.r-rebuild-shell .rr-result-grid{display:block}.r-rebuild-shell .rr-result-card{margin-bottom:18px}.r-rebuild-shell .rr-work-controls{margin-bottom:17px}.r-rebuild-shell .rr-search>input{font-size:11px}.r-rebuild-shell .rr-filters{gap:3px;padding-bottom:14px;margin-bottom:17px}.r-rebuild-shell .rr-filters>.r-btn{padding:5px 11px;font-size:10px}.r-rebuild-shell .rr-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.r-rebuild-shell .rr-work-cover{height:180px}.r-rebuild-shell .rr-work-info{padding:10px}.r-rebuild-shell .rr-work-info h3{font-size:11px}.r-rebuild-shell .rr-work-info p{font-size:8px;line-height:1.6}.r-rebuild-shell .rr-work-actions .rr-tool{width:24px;height:24px;flex-basis:24px}.r-rebuild-shell .rr-pagination{gap:10px;font-size:10px}.r-rebuild-shell .r-modal-backdrop{padding:10px}.r-rebuild-shell .r-modal{max-height:94dvh;border-radius:11px}.r-rebuild-shell .rr-modal-heading{padding:14px 16px}.r-rebuild-shell .rr-modal-heading h3{font-size:14px}.r-rebuild-shell .rr-modal-body{padding:16px}.r-rebuild-shell .rr-modal-footer{padding:12px 16px}.r-rebuild-shell .rr-modal-footer .r-btn{font-size:11px;min-height:33px}.r-rebuild-shell .rr-material-columns{display:block;min-height:0}.r-rebuild-shell .rr-material-pages{display:flex;align-items:center;gap:5px;border:0;border-bottom:1px solid #eee;padding:0 0 12px;margin-bottom:17px;overflow-x:auto}.r-rebuild-shell .rr-material-pages>strong{display:none}.r-rebuild-shell .rr-material-pages>.r-btn{width:auto;white-space:nowrap;margin:0;flex:none;padding:7px 10px}.r-rebuild-shell .rr-material-kind .r-btn{font-size:11px;min-height:31px}.r-rebuild-shell .rr-material-sources{gap:2px}.r-rebuild-shell .rr-material-sources>.r-btn{font-size:10px;padding:5px 8px}.r-rebuild-shell .rr-material-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}.r-rebuild-shell .rr-material-preview>textarea{max-height:170px;font-size:12px}.r-rebuild-shell .rr-association-grid{display:block}.r-rebuild-shell .rr-association-grid>aside{flex-direction:row;overflow-x:auto;margin-bottom:16px}.r-rebuild-shell .rr-document-choice strong{font-size:11px}.r-rebuild-shell .rr-resource-toolbar>.r-btn{font-size:10px}.r-rebuild-shell .r-product-modal,.r-rebuild-shell .r-flow-preview{padding:16px}.r-rebuild-shell .rr-series textarea{font-size:12px}.r-rebuild-shell .rr-product-context{padding:12px}.r-rebuild-shell .rr-product-context .rr-inline{align-items:flex-start}.r-rebuild-shell .rr-product-context .rr-inline>span{font-size:10px}.r-rebuild-shell .r-drawer{padding:17px}.r-rebuild-shell .r-flow-preview .r-preview-viewport{height:58vh}}
.r-rebuild-shell .rr-product-archives>article{display:flex;gap:15px;align-items:flex-start;justify-content:space-between;padding:16px 0;border-bottom:1px solid #eee}.r-rebuild-shell .rr-product-select{min-width:0}.r-rebuild-shell .rr-product-select label{display:flex;gap:10px;align-items:center;font-size:13px}.r-rebuild-shell .rr-product-select label input{flex:none}.r-rebuild-shell .rr-product-select p{font-size:11px;line-height:1.6;margin:7px 0;color:#999}.r-rebuild-shell .rr-product-select small{display:block;font-size:10px;line-height:1.8;color:#aaa;max-width:500px;overflow-wrap:anywhere}.r-rebuild-shell .rr-product-pick-images{margin:25px 0}.r-rebuild-shell .rr-product-pick-images h4,.r-rebuild-shell .rr-skill-picker h4{font-size:13px;margin:0}.r-rebuild-shell .rr-product-pick-images .r-product-gallery strong{display:block;font-size:11px;margin:10px 0 6px}.r-rebuild-shell .rr-product-pick-images .r-product-gallery small{display:block;font-size:10px;line-height:1.8}.r-rebuild-shell .rr-product-pick-images .r-product-gallery label{display:flex;align-items:center;gap:7px;margin-top:10px}.r-rebuild-shell .rr-skill-picker{border-top:1px solid #eee;padding-top:22px}.r-rebuild-shell .rr-skill-choice{display:flex;align-items:flex-start;gap:10px;padding:15px 0;border-bottom:1px solid #eee}.r-rebuild-shell .rr-skill-choice>input{flex:none;margin-top:4px}.r-rebuild-shell .rr-skill-choice>div{flex:1;min-width:0}.r-rebuild-shell .rr-skill-choice strong{font-size:12px}.r-rebuild-shell .rr-skill-choice p{font-size:11px;color:#999;margin:5px 0}.r-rebuild-shell .rr-skill-choice small{font-size:10px}.r-rebuild-shell .rr-skill-choice>.r-btn{font-size:10px;min-height:29px;padding:5px 9px}.r-rebuild-shell .rr-product-confirm{justify-content:flex-end;margin-top:23px}.r-rebuild-shell .rr-rule-section{margin-bottom:21px}.r-rebuild-shell .rr-rule-section h4{font-size:12px;color:#999;margin:0 0 10px}.r-rebuild-shell .rr-rule-section pre{font:inherit;font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;background:#fafafa;border:1px solid #eee;border-radius:8px;padding:14px;margin:0}.r-rebuild-shell .rr-web-item{min-width:0;border:1px solid #e7e7e7;border-radius:8px;padding:9px}.r-rebuild-shell .rr-web-item>img{width:100%;height:130px;object-fit:contain;border-radius:5px;background:#fafafa}.r-rebuild-shell .rr-web-placeholder{display:grid;place-items:center;height:130px;background:#f6f6f6;color:#bcbcbc}.r-rebuild-shell .rr-web-item>strong{display:block;font-size:11px;margin:8px 0;line-height:1.6}.r-rebuild-shell .rr-web-item>small{display:block;font-size:9px;color:#aaa;overflow:hidden;text-overflow:ellipsis;margin-bottom:8px}.r-rebuild-shell .rr-web-item>.r-btn{font-size:9px;min-height:27px;padding:4px 7px;margin:3px 3px 3px 0}.r-rebuild-shell .rr-web-item>.r-btn .rr-icon{width:12px;height:12px;flex-basis:12px}.r-rebuild-shell .rr-strategy-options{display:grid;gap:12px}.r-rebuild-shell .rr-strategy-option{position:relative;display:block;padding:20px 23px;background:white;border:1px solid #e7e7e7;border-radius:10px;text-align:left;cursor:pointer;color:#202020}.r-rebuild-shell .rr-strategy-option.is-selected{border:2px solid #f32443;padding:19px 22px;background:#fffafb}.r-rebuild-shell .rr-strategy-option>div{display:flex;align-items:center;gap:10px}.r-rebuild-shell .rr-strategy-option strong{font-size:14px}.r-rebuild-shell .rr-strategy-option span{font-size:10px;border-radius:4px;background:#fff0d3;color:#947334;padding:3px 6px}.r-rebuild-shell .rr-strategy-option p{font-size:12px;color:#888;line-height:1.8;margin:10px 0 5px}.r-rebuild-shell .rr-strategy-option small{font-size:10px;color:#aaa}.r-rebuild-shell .rr-strategy-option>.rr-icon{position:absolute;right:20px;top:20px;color:#f32443}.r-rebuild-shell .rr-examples{margin:55px 0 25px}.r-rebuild-shell .rr-examples>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.r-rebuild-shell .rr-examples h2{font-size:17px;font-weight:600;margin:0}.r-rebuild-shell .rr-examples p{font-size:11px;color:#aaa;margin:8px 0 0}.r-rebuild-shell .rr-examples>header .r-btn{font-size:10px;min-height:30px;background:transparent;border:0;color:#999}.r-rebuild-shell .rr-example-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:17px}.r-rebuild-shell .rr-example-card{min-width:0;border:1px solid #eaeaea;border-radius:10px;overflow:hidden;background:white}.r-rebuild-shell .rr-example-image{position:relative;display:block;width:100%;height:210px;border:0;padding:0;background:#f6f4ef;overflow:hidden;cursor:pointer}.r-rebuild-shell .rr-example-image>img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}.r-rebuild-shell .rr-example-image>span{position:absolute;left:0;right:0;bottom:0;padding:14px 8px 10px;background:linear-gradient(transparent,#0007);color:white;font-size:10px;opacity:0;transition:opacity .2s}.r-rebuild-shell .rr-example-image:hover>span{opacity:1}.r-rebuild-shell .rr-example-card>div{padding:13px}.r-rebuild-shell .rr-example-card>div>small{font-size:9px;color:#a9a9a9}.r-rebuild-shell .rr-example-card h3{font-size:12px;line-height:1.7;font-weight:500;margin:8px 0;max-height:42px;overflow:hidden}.r-rebuild-shell .rr-example-card p{font-size:9px;color:#bbb;margin:7px 0 10px}.r-rebuild-shell .rr-example-card .r-btn{font-size:10px;min-height:28px;padding:4px 9px;background:#fff6e5;border-color:#f2e5c8;color:#917038;width:100%}.r-rebuild-shell .rr-example-card .r-btn .rr-icon{width:12px;height:12px;flex-basis:12px}.r-rebuild-shell .rr-example-preview{display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,1fr);gap:25px}.r-rebuild-shell .rr-example-preview>img{display:block;width:100%;height:auto;max-height:67vh;object-fit:contain;object-position:top;background:#f7f7f7;border-radius:8px}.r-rebuild-shell .rr-example-preview>div{font-size:12px;line-height:1.9;color:#aaa}.r-rebuild-shell .rr-example-preview>div>small{display:block;font-size:11px;color:#aaa}
@media(max-width:520px){.r-rebuild-shell .rr-product-archives>article{gap:10px;padding:13px 0}.r-rebuild-shell .rr-product-select label{font-size:11px}.r-rebuild-shell .rr-product-select small{font-size:9px}.r-rebuild-shell .rr-product-pick-images .r-product-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.r-rebuild-shell .rr-product-pick-images .r-product-gallery>article{padding:9px}.r-rebuild-shell .rr-product-pick-images .r-product-gallery img{height:125px}.r-rebuild-shell .rr-skill-choice>.r-btn .rr-icon{display:none}.r-rebuild-shell .rr-skill-choice>.r-btn{font-size:9px;padding:4px 7px}.r-rebuild-shell .rr-strategy-option{padding:17px}.r-rebuild-shell .rr-strategy-option.is-selected{padding:16px}.r-rebuild-shell .rr-strategy-option strong{font-size:12px}.r-rebuild-shell .rr-strategy-option p{font-size:11px}.r-rebuild-shell .rr-strategy-option small{font-size:9px}.r-rebuild-shell .rr-examples{margin-top:35px}.r-rebuild-shell .rr-examples>header{margin-bottom:18px}.r-rebuild-shell .rr-examples h2{font-size:15px}.r-rebuild-shell .rr-example-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.r-rebuild-shell .rr-example-image{height:190px}.r-rebuild-shell .rr-example-card>div{padding:10px}.r-rebuild-shell .rr-example-card>div>small{font-size:8px}.r-rebuild-shell .rr-example-card h3{font-size:11px}.r-rebuild-shell .rr-example-preview{display:block}.r-rebuild-shell .rr-example-preview>div{margin-top:15px}.r-rebuild-shell .rr-example-preview>img{max-height:56vh}.r-rebuild-shell .rr-examples>header .r-btn{font-size:9px;padding:5px}.r-rebuild-shell .rr-examples>header .r-btn .rr-icon{width:13px;height:13px;flex-basis:13px}}
.r-rebuild-shell .rr-modal-feedback{padding:10px 13px;border:1px solid #efdcaf;background:#fff9ea;border-radius:7px;color:#8b702f;font-size:12px;line-height:1.8;margin:0 0 17px;overflow-wrap:anywhere}.r-rebuild-shell .rr-modal-feedback.is-error{border-color:#f2c3cc;background:#fff3f5;color:#b12b43}.r-rebuild-shell .rr-association-extra{margin-top:25px;padding-top:20px;border-top:1px solid #eee}.r-rebuild-shell .rr-association-extra>details>summary{font-size:12px;color:#999}.r-rebuild-shell .rr-association-extra .r-field>small{font-size:10px;line-height:1.7}.r-rebuild-shell .rr-association-extra select{font-size:12px}
/* Measured alignment with the archived reference at the same desktop viewport. */
.xhs-replica.r-rebuild-shell{grid-template-columns:260px minmax(0,1fr)}
.r-rebuild-shell .rr-topbar[data-r-screen=home]{position:relative;min-height:0;height:0;padding:0 36px;overflow:visible;z-index:2}
.r-rebuild-shell .rr-topbar[data-r-screen=home]>.r-flow-actions{position:absolute;right:32px;top:24px}
.r-rebuild-shell .rr-topbar[data-r-screen=home]>.rr-breadcrumb{display:none}
.r-rebuild-shell .rr-home{max-width:930px;margin:80px auto 0}
.r-rebuild-shell .rr-hero{margin:0 0 34px}
.r-rebuild-shell .rr-kicker{font-size:13px;padding:5px 12px;line-height:1.5;letter-spacing:0}
.r-rebuild-shell .rr-hero h1{font-size:54px;line-height:1.35;letter-spacing:-1.5px;font-weight:750;margin:20px 0 13px}
.r-rebuild-shell .rr-hero p{font-size:16px;line-height:1.75}
.r-rebuild-shell .rr-hero>small{font-size:13px;line-height:1.8;margin-top:16px;color:#999}
.r-rebuild-shell .rr-compose-footer{padding:15px 17px;gap:10px;min-height:70px}
.r-rebuild-shell .rr-compose-footer>.r-btn{font-size:14px;line-height:1.5;min-height:40px;padding:8px 12px;box-sizing:border-box}
.r-rebuild-shell .rr-select select,.r-rebuild-shell .rr-model select{font-size:14px;line-height:22px;height:40px;min-height:40px;padding:8px 25px 8px 11px;box-sizing:border-box;max-width:230px;min-width:125px}
.r-rebuild-shell .rr-model select{min-width:190px;max-width:220px}
.r-rebuild-shell .rr-compose-icons>.rr-tool{width:34px;height:40px;flex-basis:34px;padding:7px}
.r-rebuild-shell .rr-compose-icons>.rr-tool>.rr-icon{width:19px;height:19px;flex-basis:19px}
.r-rebuild-shell .rr-send{width:42px;height:40px;border-radius:9px}
.r-rebuild-shell .rr-link-row>input{font-size:14px;line-height:24px;height:32px;padding:4px 0}
.r-rebuild-shell .rr-parse{font-size:14px;line-height:22px;min-height:36px;height:36px;padding:6px 16px}
.r-rebuild-shell .rr-prompt{font-size:16px;line-height:1.9;height:230px;padding:23px 24px}
.r-rebuild-shell .rr-examples{margin-top:55px}
.r-rebuild-shell .rr-examples h2{font-size:20px}
.r-rebuild-shell .rr-examples p{font-size:14px}
.r-rebuild-shell .rr-examples>header .r-btn{font-size:13px;min-height:36px}
@media(max-width:1200px) and (min-width:801px){.r-rebuild-shell .rr-hero h1{font-size:43px}.r-rebuild-shell .rr-compose-footer{gap:6px}.r-rebuild-shell .rr-select select{min-width:110px;font-size:13px}.r-rebuild-shell .rr-model select{min-width:160px;font-size:12px}.r-rebuild-shell .rr-compose-footer>.r-btn{font-size:12px;padding-inline:8px}.r-rebuild-shell .rr-compose-icons>.rr-tool{width:30px;flex-basis:30px}.r-rebuild-shell .rr-send{width:37px;margin-left:3px}}
@media(max-width:800px){.xhs-replica.r-rebuild-shell{grid-template-columns:70px minmax(0,1fr)}.r-rebuild-shell .rr-home{margin-top:60px}.r-rebuild-shell .rr-hero h1{font-size:34px;letter-spacing:-1px}.r-rebuild-shell .rr-hero p{font-size:13px}.r-rebuild-shell .rr-hero>small{font-size:11px;line-height:1.8}.r-rebuild-shell .rr-compose-footer>.r-btn{font-size:12px}.r-rebuild-shell .rr-select select{font-size:12px}.r-rebuild-shell .rr-prompt{font-size:15px;height:210px}.r-rebuild-shell .rr-compose-footer{gap:6px;padding-inline:12px}.r-rebuild-shell .rr-model{display:none}.r-rebuild-shell .rr-compose-icons>.rr-tool{width:28px;flex-basis:28px}}
@media(max-width:520px){.xhs-replica.r-rebuild-shell{display:flex;flex-direction:column}.r-rebuild-shell .rr-home{margin-top:40px}.r-rebuild-shell .rr-hero h1{font-size:25px;line-height:1.45;letter-spacing:-1px;margin-top:17px}.r-rebuild-shell .rr-kicker{font-size:11px}.r-rebuild-shell .rr-hero p{font-size:11px;line-height:1.8}.r-rebuild-shell .rr-hero>small{font-size:10px;line-height:1.8;max-width:310px;margin-top:14px}.r-rebuild-shell .rr-hero{margin-bottom:25px}.r-rebuild-shell .rr-topbar[data-r-screen=home]>.r-flow-actions{top:8px;right:12px}.r-rebuild-shell .rr-topbar[data-r-screen=home] .rr-tool{width:26px;height:26px}.r-rebuild-shell .rr-link-row>input{font-size:11px}.r-rebuild-shell .rr-parse{font-size:11px;height:30px;min-height:30px;padding:4px 10px}.r-rebuild-shell .rr-prompt{font-size:14px;height:200px;padding:17px 14px}.r-rebuild-shell .rr-compose-footer{padding:10px;gap:5px;min-height:57px}.r-rebuild-shell .rr-compose-footer>.r-btn{font-size:11px;min-height:34px;padding:6px 8px}.r-rebuild-shell .rr-select select{font-size:11px;min-width:95px;height:34px;min-height:34px;line-height:20px;padding:6px 16px 6px 8px}.r-rebuild-shell .rr-compose-icons>.rr-tool{width:25px;flex-basis:25px;height:34px;padding:4px}.r-rebuild-shell .rr-compose-icons>.rr-tool>.rr-icon{width:16px;height:16px;flex-basis:16px}.r-rebuild-shell .rr-send{width:32px;height:34px;margin-left:2px}.r-rebuild-shell .rr-examples{margin-top:35px}.r-rebuild-shell .rr-examples h2{font-size:16px}.r-rebuild-shell .rr-examples p{font-size:11px}.r-rebuild-shell .rr-examples>header .r-btn{font-size:11px}}
/* Exact desktop input geometry; outranks inherited generic form selectors. */
.xhs-replica.r-rebuild-shell .rr-home{margin-top:95px}
.xhs-replica.r-rebuild-shell .rr-hero{width:min(1400px,calc(100vw - 320px));position:relative;left:50%;transform:translateX(-50%);margin-bottom:62px}
.xhs-replica.r-rebuild-shell .rr-hero h1{font-weight:800;font-size:56px;line-height:67.2px;letter-spacing:-1.5px}
.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-link-row{padding:16px 18px;gap:20px;border-bottom:0;min-height:84px}
.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-link-row input[data-r-field]{height:52px;min-height:52px;font:400 15px/24px Inter,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;padding:0 18px;border:0;background:#fafafa;border-radius:9px;box-shadow:none;width:0;flex:1;min-width:0}
.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-link-row .rr-parse{width:100px;flex:0 0 100px;height:52px;min-height:52px;font-size:15px;line-height:24px;padding:14px 16px;box-sizing:border-box}
.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-prompt-wrap{padding:10px 18px 30px}
.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-prompt-wrap textarea.rr-prompt{width:100%;height:140px;min-height:140px;font-size:16px;line-height:25.6px;border:0;padding:0;border-radius:0;box-shadow:none!important;resize:vertical;background:white}
.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-select select[data-r-field],.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-model select[data-r-field]{height:40px;min-height:40px;font-size:14px;line-height:22px;padding:8px 25px 8px 11px;box-sizing:border-box}
@media(max-width:1200px) and (min-width:801px){.xhs-replica.r-rebuild-shell .rr-hero h1{font-size:43px;line-height:1.3}.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-model select[data-r-field]{font-size:12px;min-width:160px}.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-select select[data-r-field]{font-size:13px;min-width:110px}}
@media(max-width:800px){.xhs-replica.r-rebuild-shell .rr-home{margin-top:65px}.xhs-replica.r-rebuild-shell .rr-hero{width:calc(100vw - 110px);margin-bottom:35px}.xhs-replica.r-rebuild-shell .rr-hero h1{font-size:34px;line-height:1.4}.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-link-row{padding:14px 15px;gap:10px}.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-link-row .rr-parse{width:75px;flex-basis:75px}.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-link-row input[data-r-field]{font-size:13px;padding-inline:12px}.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-prompt-wrap{padding-inline:15px}.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-select select[data-r-field]{font-size:12px}}
@media(max-width:520px){.xhs-replica.r-rebuild-shell .rr-home{margin-top:42px}.xhs-replica.r-rebuild-shell .rr-hero{width:calc(100vw - 35px);margin-bottom:28px}.xhs-replica.r-rebuild-shell .rr-hero h1{font-size:25px;line-height:1.45;letter-spacing:-1px}.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-link-row{min-height:66px;padding:12px;gap:8px}.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-link-row input[data-r-field]{font-size:11px;line-height:20px;height:42px;min-height:42px;padding:0 9px}.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-link-row .rr-parse{font-size:12px;line-height:20px;height:42px;min-height:42px;width:60px;flex-basis:60px;padding:10px}.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-prompt-wrap{padding:8px 13px 20px}.xhs-replica.r-rebuild-shell .rr-home .rr-compose .rr-prompt-wrap textarea.rr-prompt{font-size:14px;line-height:1.8;height:155px;min-height:155px}.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-select select[data-r-field]{font-size:11px;height:34px;min-height:34px;line-height:20px;padding:6px 16px 6px 8px;min-width:95px}}
/* Reference examples expand beyond the narrower input card. */
.xhs-replica.r-rebuild-shell .rr-examples{position:relative;left:50%;transform:translateX(-50%);width:min(1400px,calc(100vw - 320px));margin-top:45px}
.xhs-replica.r-rebuild-shell .rr-examples>header{margin-bottom:25px;align-items:center}
.xhs-replica.r-rebuild-shell .rr-examples h2{font-size:24px;line-height:38.4px;font-weight:600}
.xhs-replica.r-rebuild-shell .rr-examples p{font-size:14px;line-height:22.4px;margin-top:8px}
.xhs-replica.r-rebuild-shell .rr-example-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
.xhs-replica.r-rebuild-shell .rr-example-image{width:100%;height:auto;aspect-ratio:3/4}
.xhs-replica.r-rebuild-shell .rr-example-card>div>small{font-size:11px}
.xhs-replica.r-rebuild-shell .rr-example-card h3{font-size:14px;line-height:1.65;max-height:47px}
.xhs-replica.r-rebuild-shell .rr-example-card p{font-size:10px;line-height:1.6;margin-top:7px}
.xhs-replica.r-rebuild-shell .rr-example-card .r-btn{font-size:12px;min-height:33px}
@media(max-width:1200px) and (min-width:801px){.xhs-replica.r-rebuild-shell .rr-example-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.xhs-replica.r-rebuild-shell .rr-example-card h3{font-size:12px}}
@media(max-width:800px){.xhs-replica.r-rebuild-shell .rr-examples{width:100%;left:auto;transform:none;margin-top:40px}.xhs-replica.r-rebuild-shell .rr-example-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.xhs-replica.r-rebuild-shell .rr-example-card h3{font-size:12px}}
@media(max-width:520px){.xhs-replica.r-rebuild-shell .rr-examples{margin-top:35px}.xhs-replica.r-rebuild-shell .rr-examples h2{font-size:18px;line-height:1.6}.xhs-replica.r-rebuild-shell .rr-examples p{font-size:11px;line-height:1.8;margin-top:7px}.xhs-replica.r-rebuild-shell .rr-example-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.xhs-replica.r-rebuild-shell .rr-example-card>div>small{font-size:9px}.xhs-replica.r-rebuild-shell .rr-example-card h3{font-size:11px}.xhs-replica.r-rebuild-shell .rr-example-card .r-btn{font-size:10px;min-height:30px}}
.r-rebuild-shell .rr-qc-details{font-size:11px;color:#999;margin:8px 0}.r-rebuild-shell .rr-qc-details>summary{font-size:11px;margin:0;cursor:pointer}.r-rebuild-shell .rr-qc-details ul{list-style:none;padding:0;margin:10px 0}.r-rebuild-shell .rr-qc-details li{display:flex;flex-direction:column;gap:4px;padding:9px 11px;background:#fff9eb;border:1px solid #f1e5c8;border-radius:6px;margin:7px 0;font-size:11px;line-height:1.7}.r-rebuild-shell .rr-qc-details li strong{font-weight:500;color:#8f7547}.r-rebuild-shell .rr-qc-details li small{font-size:10px;color:#af9b78}.r-rebuild-shell .rr-qc-details p{font-size:11px;line-height:1.8;color:#a88d59}
.r-rebuild-shell .rr-back-link{display:inline-flex;align-items:center;gap:5px;border:0;padding:0;background:transparent;color:#999;font-size:11px;line-height:1.7;margin:0 0 7px;cursor:pointer}.r-rebuild-shell .rr-back-link .rr-icon{width:13px;height:13px;flex-basis:13px}.r-rebuild-shell .rr-result-style{border:1px solid #e8e8e8;border-radius:10px;background:white;margin-bottom:20px;overflow:hidden}.r-rebuild-shell .rr-result-style>summary{display:flex;align-items:center;gap:12px;min-height:58px;padding:17px 24px;margin:0;list-style:none;cursor:pointer}.r-rebuild-shell .rr-result-style>summary::-webkit-details-marker{display:none}.r-rebuild-shell .rr-result-style>summary>strong{font-size:13px;font-weight:550}.r-rebuild-shell .rr-result-style>summary>span{font-size:11px;color:#aaa}.r-rebuild-shell .rr-result-style>summary>small{font-size:11px;margin-left:auto;color:#aaa}.r-rebuild-shell .rr-result-style[open]>summary{border-bottom:1px solid #eee}.r-rebuild-shell .rr-result-style>.rr-series{border:0;border-radius:0;margin:0;padding:22px}.r-rebuild-shell .rr-secondary-actions{margin-top:10px;padding-top:10px;border-top:1px solid #f2f2f2}.r-rebuild-shell .rr-secondary-actions>summary{font-size:10px;color:#aaa;margin:0}.r-rebuild-shell .rr-secondary-actions .r-actions{padding-top:10px;gap:6px}.r-rebuild-shell .rr-secondary-actions .r-btn{font-size:10px;min-height:28px;padding:4px 7px}.r-rebuild-shell .rr-secondary-actions .r-btn .rr-icon{width:13px;height:13px;flex-basis:13px}.r-rebuild-shell .rr-product-context .rr-inline{flex-wrap:wrap}
/* My creations: measured Redya desktop geometry with truthful local storage and task states. */
.xhs-replica.r-rebuild-shell .rr-topbar[data-r-screen=works]{display:none}
.xhs-replica.r-rebuild-shell .rr-library{width:100%;max-width:1336px;margin:64px auto 0}
.xhs-replica.r-rebuild-shell .rr-library-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;min-height:108px}
.xhs-replica.r-rebuild-shell .rr-library-heading h1{font-size:36px;line-height:57.6px;font-weight:800;letter-spacing:-.8px;margin:0}
.xhs-replica.r-rebuild-shell .rr-library-heading>div>p{font-size:16px;line-height:25.6px;margin:8px 0 0;color:#919191}
.xhs-replica.r-rebuild-shell .rr-library-top-actions{display:flex;align-items:center;gap:12px;padding-top:12px}
.xhs-replica.r-rebuild-shell .rr-library-top-actions>.r-btn{height:44px;min-height:44px;font-size:14px;line-height:22px;padding:10px 16px;border-radius:8px}
.xhs-replica.r-rebuild-shell .rr-library .rr-search{width:252px;height:44px;gap:8px;padding:0 10px 0 14px;border-radius:8px}
.xhs-replica.r-rebuild-shell .rr-library .rr-search>input[data-r-field]{width:100%;min-width:0;flex:1;height:42px;font-size:14px;line-height:22px;padding:10px 0;border:0;background:transparent;box-shadow:none;border-radius:0}
.xhs-replica.r-rebuild-shell .rr-library .rr-search>.rr-tool{width:28px;height:30px;flex-basis:28px;padding:5px}
.xhs-replica.r-rebuild-shell .rr-storage-notice{display:flex;align-items:center;gap:12px;height:60px;margin:48px 0 31px;padding:0 20px;background:#fff8e8;border:1px solid #f3e6c4;border-radius:10px;color:#aa8d45}
.xhs-replica.r-rebuild-shell .rr-storage-notice>p{font-size:14px;line-height:22px;margin:0;flex:1;color:#a68b4e}
.xhs-replica.r-rebuild-shell .rr-storage-notice>.r-btn{font-size:13px;line-height:20px;min-height:32px;padding:5px 9px;border:0;background:transparent;color:#987b3e}
.xhs-replica.r-rebuild-shell .rr-storage-notice>.r-btn .rr-icon{width:16px;height:16px;flex-basis:16px}
.xhs-replica.r-rebuild-shell .rr-work-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;height:112px;margin-bottom:49px}
.xhs-replica.r-rebuild-shell .rr-work-stats>button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:0;height:112px;padding:17px;border:1px solid #e8e8e8;border-radius:12px;background:#fff;cursor:pointer;transition:background .15s,border-color .15s}
.xhs-replica.r-rebuild-shell .rr-work-stats>button>strong{font-size:28px;line-height:36px;font-weight:700;color:#252525}
.xhs-replica.r-rebuild-shell .rr-work-stats>button>span{font-size:14px;line-height:22px;color:#8d8d8d}
.xhs-replica.r-rebuild-shell .rr-work-stats>button[aria-current=page]{border-color:#f32443;background:#fff6f7}
.xhs-replica.r-rebuild-shell .rr-work-stats>button[aria-current=page]>strong,.xhs-replica.r-rebuild-shell .rr-work-stats>button[aria-current=page]>span{color:#ee2543}
.xhs-replica.r-rebuild-shell .rr-work-stats>button:hover{border-color:#efabb6}
.xhs-replica.r-rebuild-shell .rr-work-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.xhs-replica.r-rebuild-shell .rr-work-card{height:511px;min-width:0;border:0;box-shadow:0 0 0 1px #e9e9e9;border-radius:12px;overflow:visible;background:#fff;transition:box-shadow .2s}
.xhs-replica.r-rebuild-shell .rr-work-card:hover{box-shadow:0 0 0 1px #e4e4e4,0 10px 28px #0000000b}
.xhs-replica.r-rebuild-shell .rr-work-visual{position:relative;width:100%;aspect-ratio:3/4;overflow:hidden;border-radius:12px 12px 0 0;background:#f5f4f1}
.xhs-replica.r-rebuild-shell .rr-work-cover{display:block;width:100%;height:100%;margin:0;border-radius:0;background:#f5f4f1;cursor:zoom-in}
.xhs-replica.r-rebuild-shell .rr-work-cover:disabled{cursor:default;opacity:.6}
.xhs-replica.r-rebuild-shell .rr-work-cover>img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.xhs-replica.r-rebuild-shell .rr-work-status-badge{position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;min-height:26px;padding:4px 10px;border-radius:6px;font-size:12px;line-height:18px;font-weight:500;background:#fffef4eF;color:#978057;box-shadow:0 1px 5px #00000008;pointer-events:none}
.xhs-replica.r-rebuild-shell .rr-work-status-badge.is-completed{background:#f1faf0ed;color:#499b53}
.xhs-replica.r-rebuild-shell .rr-work-status-badge:is(.is-running,.is-queued){background:#fff4d9ed;color:#aa7b1d}
.xhs-replica.r-rebuild-shell .rr-work-status-badge:is(.is-failed,.is-uncertain){background:#fff0f1ed;color:#ce4b60}
.xhs-replica.r-rebuild-shell .rr-work-status-badge.is-deleted{background:#f4f4f4ed;color:#888}
.xhs-replica.r-rebuild-shell .rr-work-hover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;background:#17171745;opacity:0;transition:opacity .18s;pointer-events:none}
.xhs-replica.r-rebuild-shell .rr-work-card:is(:hover,:focus-within) .rr-work-hover{opacity:1;pointer-events:auto}
.xhs-replica.r-rebuild-shell .rr-work-hover>.r-btn{background:#fffffff5;color:#333;border-color:transparent;border-radius:8px;font-size:14px;line-height:22px;min-height:40px;padding:9px 16px}
.xhs-replica.r-rebuild-shell .rr-work-hover>.r-btn .rr-icon{width:17px;height:17px;flex-basis:17px}
.xhs-replica.r-rebuild-shell .rr-work-info{height:90px;min-height:89px;padding:11px 14px 10px}
.xhs-replica.r-rebuild-shell .rr-work-info h3{font-size:14px;line-height:22px;font-weight:600;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xhs-replica.r-rebuild-shell .rr-work-bottom{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:7px}
.xhs-replica.r-rebuild-shell .rr-work-bottom>div:first-child{min-width:0}
.xhs-replica.r-rebuild-shell .rr-work-info .rr-work-bottom p{font-size:11px;line-height:17px;color:#969696;margin:0;white-space:nowrap}
.xhs-replica.r-rebuild-shell .rr-work-info time{display:block;font-size:10px;line-height:16px;color:#b0b0b0;margin-top:1px}
.xhs-replica.r-rebuild-shell .rr-work-actions{position:relative;display:flex;align-items:center;gap:3px;flex:none}
.xhs-replica.r-rebuild-shell .rr-work-actions>.rr-tool{width:27px;height:28px;flex-basis:27px;color:#ababab}
.xhs-replica.r-rebuild-shell .rr-work-actions>.rr-tool:hover{color:#e1455c;background:#fff0f2}
.xhs-replica.r-rebuild-shell .rr-work-more{position:relative;margin:0;padding:0;border:0}
.xhs-replica.r-rebuild-shell .rr-work-more>summary{display:grid;place-items:center;width:27px;height:28px;padding:5px;list-style:none;cursor:pointer;border-radius:6px;color:#aaa;margin:0}
.xhs-replica.r-rebuild-shell .rr-work-more>summary::-webkit-details-marker{display:none}
.xhs-replica.r-rebuild-shell .rr-work-more>summary:hover{background:#fff1da;color:#777}
.xhs-replica.r-rebuild-shell .rr-work-more>summary>.rr-icon{width:16px;height:16px}
.xhs-replica.r-rebuild-shell .rr-work-more>div{position:absolute;right:0;bottom:33px;z-index:2;padding:5px;background:white;border:1px solid #e8e8e8;border-radius:8px;box-shadow:0 6px 22px #0001}
.xhs-replica.r-rebuild-shell .rr-work-more>div>.r-btn{font-size:12px;min-height:34px;border:0}
.xhs-replica.r-rebuild-shell .rr-recycle-heading{margin:-20px 0 24px;display:flex;align-items:center;gap:16px}
.xhs-replica.r-rebuild-shell .rr-recycle-heading h2{font-size:18px;line-height:28px;margin:0}
.xhs-replica.r-rebuild-shell .rr-recycle-heading p{font-size:13px;color:#999;margin:0}
.xhs-replica.r-rebuild-shell .rr-work-preview{display:flex;align-items:center;justify-content:center;background:#f5f5f5;border-radius:8px;min-height:250px}
.xhs-replica.r-rebuild-shell .rr-work-preview>img{display:block;width:auto;max-width:100%;max-height:70dvh;object-fit:contain}
@media(max-width:1500px){.xhs-replica.r-rebuild-shell .rr-library-heading{flex-wrap:wrap;gap:20px}.xhs-replica.r-rebuild-shell .rr-library-top-actions{padding-top:0;width:100%;flex-wrap:wrap}.xhs-replica.r-rebuild-shell .rr-storage-notice{margin-top:28px}.xhs-replica.r-rebuild-shell .rr-work-card{height:auto}.xhs-replica.r-rebuild-shell .rr-work-info{height:auto;min-height:89px}}
@media(max-width:1200px){.xhs-replica.r-rebuild-shell .rr-work-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.xhs-replica.r-rebuild-shell .rr-library{margin-top:35px}.xhs-replica.r-rebuild-shell .rr-work-stats{margin-bottom:30px}}
@media(max-width:800px){.xhs-replica.r-rebuild-shell .rr-library{margin-top:28px}.xhs-replica.r-rebuild-shell .rr-library-heading h1{font-size:28px;line-height:44px}.xhs-replica.r-rebuild-shell .rr-library-heading>div>p{font-size:14px;line-height:23px;margin-top:5px}.xhs-replica.r-rebuild-shell .rr-library-top-actions{gap:8px}.xhs-replica.r-rebuild-shell .rr-library-top-actions>.r-btn{font-size:12px;padding-inline:11px;height:40px;min-height:40px}.xhs-replica.r-rebuild-shell .rr-library .rr-search{width:100%;height:42px}.xhs-replica.r-rebuild-shell .rr-storage-notice{padding:12px;gap:8px;height:auto;min-height:60px;margin:24px 0}.xhs-replica.r-rebuild-shell .rr-storage-notice>p{font-size:12px;line-height:20px}.xhs-replica.r-rebuild-shell .rr-storage-notice>.rr-icon{display:none}.xhs-replica.r-rebuild-shell .rr-work-stats{height:92px;gap:9px;margin-bottom:28px}.xhs-replica.r-rebuild-shell .rr-work-stats>button{height:92px;gap:4px}.xhs-replica.r-rebuild-shell .rr-work-stats>button>strong{font-size:24px;line-height:30px}.xhs-replica.r-rebuild-shell .rr-work-stats>button>span{font-size:12px}.xhs-replica.r-rebuild-shell .rr-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.xhs-replica.r-rebuild-shell .rr-work-info{padding-inline:11px}.xhs-replica.r-rebuild-shell .rr-work-hover{opacity:1;pointer-events:auto;align-items:flex-end;padding-bottom:14px;background:linear-gradient(transparent 75%,#0003)}.xhs-replica.r-rebuild-shell .rr-work-hover>.r-btn{font-size:12px;min-height:32px;padding:5px 10px}.xhs-replica.r-rebuild-shell .rr-work-hover>.r-btn .rr-icon{display:none}}
@media(max-width:520px){.xhs-replica.r-rebuild-shell .rr-work-grid{gap:12px}.xhs-replica.r-rebuild-shell .rr-work-info h3{font-size:12px;line-height:20px}.xhs-replica.r-rebuild-shell .rr-work-info .rr-work-bottom p{font-size:10px}.xhs-replica.r-rebuild-shell .rr-work-info time{font-size:9px}.xhs-replica.r-rebuild-shell .rr-work-actions{gap:0}.xhs-replica.r-rebuild-shell .rr-work-actions>.rr-tool,.xhs-replica.r-rebuild-shell .rr-work-more>summary{width:23px;flex-basis:23px}.xhs-replica.r-rebuild-shell .rr-work-info{padding-inline:9px}.xhs-replica.r-rebuild-shell .rr-work-bottom{gap:3px}.xhs-replica.r-rebuild-shell .rr-work-status-badge{top:8px;right:8px;font-size:10px;min-height:22px;padding:2px 7px}}
.xhs-replica.r-rebuild-shell nav.rr-folders{align-items:center}
.xhs-replica.r-rebuild-shell .rr-folders>.r-btn,.xhs-replica.r-rebuild-shell .rr-folders>div>.r-btn{font-size:12px;line-height:20px;min-height:32px;padding:5px 9px;background:transparent;border-color:transparent}
.xhs-replica.r-rebuild-shell .rr-folders>div:has(>.r-btn[aria-current=page]){background:#fff1da;border-color:#e9c77d}
.xhs-replica.r-rebuild-shell .rr-folders .r-btn[aria-current=page]{color:#87641e;background:#fff1da}
/* Outline and result pages share the measured full-width document and page heading. */
.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=outline],[data-r-screen=results]){height:188px;min-height:188px;padding:32px 32px 54px;align-items:flex-start}
.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=outline],[data-r-screen=results]) h1{font-size:36px;line-height:57.6px;font-weight:800;letter-spacing:-.8px;margin:0}
.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=outline],[data-r-screen=results]) p{font-size:16px;line-height:25.6px;color:#919191;margin:18.4px 0 0}
.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=outline],[data-r-screen=results])>.r-flow-actions{padding-top:0;gap:12px}
.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=outline],[data-r-screen=results]) .r-flow-actions>.r-btn{font-size:14px;line-height:22px;min-height:44px;padding:10px 18px;border-radius:8px}
.xhs-replica.r-rebuild-shell .rr-results-heading p>.rr-back-link{margin:0 0 0 20px;vertical-align:middle;font-size:12px;line-height:22px}
.xhs-replica.r-rebuild-shell .rr-document{width:100%;max-width:1336px;margin:32px auto 0}
.xhs-replica.r-rebuild-shell .rr-results>.rr-storage-notice{height:58px;min-height:58px;margin:0 0 23px}
.xhs-replica.r-rebuild-shell .rr-document>.rr-publication{display:flex;flex-direction:column;height:462px;min-height:462px;padding:24px;margin-bottom:32px}
.xhs-replica.r-rebuild-shell .rr-document>.rr-publication>header{height:24px;min-height:24px;margin:0 0 24px}
.xhs-replica.r-rebuild-shell .rr-document>.rr-publication>header h3{font-size:16px;line-height:24px;font-weight:600}
.xhs-replica.r-rebuild-shell .rr-document>.rr-publication>.r-field{display:flex;flex-direction:column;gap:8px;min-height:0;margin:0 0 20px;flex:none}
.xhs-replica.r-rebuild-shell .rr-document>.rr-publication>.r-field>span{font-size:14px;line-height:22px}
.xhs-replica.r-rebuild-shell .rr-document>.rr-publication>.r-field>input[data-r-field]{height:48px;min-height:48px;font-size:16px;line-height:24px;padding:11px 14px}
.xhs-replica.r-rebuild-shell .rr-document>.rr-publication>.r-field:has(>textarea){flex:1;margin:0}
.xhs-replica.r-rebuild-shell .rr-document>.rr-publication>.r-field>textarea[data-r-field]{flex:1;width:100%;height:auto;min-height:0;font-size:15px;line-height:25px;padding:12px 14px;resize:none}
.xhs-replica.r-rebuild-shell .rr-document>.rr-publication>.rr-word-count{font-size:12px;line-height:18px;margin:10px 0 0;flex:none}
.xhs-replica.r-rebuild-shell .rr-results>.rr-result-style{margin-bottom:16px}
.xhs-replica.r-rebuild-shell .rr-results>.rr-result-style>summary{height:56px;min-height:56px;padding:16px 24px}
.xhs-replica.r-rebuild-shell .rr-result-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.xhs-replica.r-rebuild-shell .rr-result-card{position:relative;padding:0;margin:0;min-width:0;border:0;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px #e8e8e8;background:white}
.xhs-replica.r-rebuild-shell .rr-result-card>header{position:absolute;top:11px;left:11px;right:11px;z-index:1;margin:0;pointer-events:none}
.xhs-replica.r-rebuild-shell .rr-result-card>header>strong,.xhs-replica.r-rebuild-shell .rr-result-card>header>span{display:inline-flex;padding:4px 8px;background:#ffffffed;border-radius:5px;box-shadow:0 1px 5px #00000008;font-size:11px;line-height:18px;color:#777}
.xhs-replica.r-rebuild-shell .rr-result-card>header>strong{font-weight:600;color:#555}
.xhs-replica.r-rebuild-shell .rr-result-image{width:100%;aspect-ratio:3/4;display:block;border-radius:0;background:#f6f6f6}
.xhs-replica.r-rebuild-shell .rr-result-image>img{display:block;width:100%;height:100%;max-height:none;object-fit:contain}
.xhs-replica.r-rebuild-shell .rr-result-empty{aspect-ratio:3/4;min-height:0;border-radius:0;padding:32px 18px;gap:10px}
.xhs-replica.r-rebuild-shell .rr-result-empty>p{margin:3px 0;font-size:13px;line-height:22px}
.xhs-replica.r-rebuild-shell .rr-result-empty>.r-btn{font-size:12px;min-height:34px;padding:6px 10px}
.xhs-replica.r-rebuild-shell .rr-result-toolbar{height:48px;padding:7px 9px 5px;gap:3px}
.xhs-replica.r-rebuild-shell .rr-result-toolbar>.rr-tool{width:34px;height:34px;flex-basis:34px}
.xhs-replica.r-rebuild-shell .rr-result-card>.rr-qc-note{font-size:10px;line-height:18px;margin:0 12px 8px}
.xhs-replica.r-rebuild-shell .rr-result-card>.rr-qc-details{margin:8px 14px}
.xhs-replica.r-rebuild-shell .rr-result-card>.rr-secondary-actions{margin:0 14px;padding:9px 0}
.xhs-replica.r-rebuild-shell .rr-result-card>.rr-result-copy{padding:10px 14px 14px;margin:0}
.xhs-replica.r-rebuild-shell .rr-result-card>.rr-result-copy>summary{margin:0;font-size:11px;line-height:18px}
.xhs-replica.r-rebuild-shell .rr-result-card>.rr-result-copy[open]>summary{margin-bottom:12px}
.xhs-replica.r-rebuild-shell .rr-result-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;align-self:stretch;min-height:511px;border:2px dashed #e1e1e1;border-radius:12px;background:#fafafa;color:#bbb;cursor:pointer;padding:24px;transition:background .15s,border-color .15s}
.xhs-replica.r-rebuild-shell .rr-result-add:hover:not(:disabled){background:#fff8f0;border-color:#dfc68f;color:#b69a63}
.xhs-replica.r-rebuild-shell .rr-result-add>.rr-icon{width:38px;height:38px;flex-basis:38px;stroke-width:1.4}
.xhs-replica.r-rebuild-shell .rr-result-add>strong{font-size:16px;line-height:25px;font-weight:500}
.xhs-replica.r-rebuild-shell .rr-result-add>span{font-size:12px;line-height:20px;color:#bbb}
.xhs-replica.r-rebuild-shell .rr-result-add:disabled{opacity:.45;cursor:default}
/* Compose footer controls keep native select semantics with the original light appearance. */
.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-select,.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-model{position:relative;display:inline-flex;align-items:center}
.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-select:after,.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-model:after{content:'';position:absolute;right:10px;top:16px;width:5px;height:5px;border-right:1.4px solid #999;border-bottom:1.4px solid #999;transform:rotate(45deg);pointer-events:none}
.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-select select[data-r-field],.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-model select[data-r-field]{appearance:none;-webkit-appearance:none;border:0;border-radius:0;background:transparent;box-shadow:none;padding-right:27px;font-weight:400;color:#777}
.xhs-replica.r-rebuild-shell .rr-send{width:44px;height:44px;flex:0 0 44px;border-radius:50%;padding:10px}
.xhs-replica.r-rebuild-shell .rr-style-swatch{display:grid;grid-template-columns:repeat(2,8px);grid-template-rows:repeat(2,8px);gap:3px;width:19px;height:19px}
.xhs-replica.r-rebuild-shell .rr-style-swatch>i{display:block;border-radius:2px;background:#f3d5d8}
.xhs-replica.r-rebuild-shell .rr-style-swatch>i:nth-child(2){background:#ecd99e}
.xhs-replica.r-rebuild-shell .rr-style-swatch>i:nth-child(3){background:#d2d0ce}
.xhs-replica.r-rebuild-shell .rr-style-swatch>i:nth-child(4){background:#f4ebd9}
@media(max-width:1200px){.xhs-replica.r-rebuild-shell .rr-result-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=outline],[data-r-screen=results]){height:170px;min-height:170px;padding:26px 24px 38px}.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=outline],[data-r-screen=results]) h1{font-size:30px;line-height:48px}.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=outline],[data-r-screen=results]) p{font-size:14px;margin-top:12px}.xhs-replica.r-rebuild-shell .rr-document{margin-top:26px}.xhs-replica.r-rebuild-shell .rr-result-add{min-height:440px}}
@media(max-width:800px){.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=outline],[data-r-screen=results]){height:auto;min-height:170px;padding:24px 20px;flex-wrap:wrap;gap:20px}.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=outline],[data-r-screen=results]) h1{font-size:26px;line-height:42px}.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=outline],[data-r-screen=results]) p{font-size:12px;line-height:22px;margin-top:8px}.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=outline],[data-r-screen=results]) .r-flow-actions>.r-btn{font-size:12px;line-height:20px;min-height:36px;padding:7px 12px}.xhs-replica.r-rebuild-shell .rr-document{margin-top:20px}.xhs-replica.r-rebuild-shell .rr-results>.rr-storage-notice{height:auto;min-height:58px;margin-bottom:20px}.xhs-replica.r-rebuild-shell .rr-document>.rr-publication{height:440px;min-height:440px;padding:20px;margin-bottom:24px}.xhs-replica.r-rebuild-shell .rr-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.xhs-replica.r-rebuild-shell .rr-result-add{min-height:350px}.xhs-replica.r-rebuild-shell .rr-result-card>.rr-result-copy{padding-inline:11px}.xhs-replica.r-rebuild-shell .rr-results-heading p>.rr-back-link{font-size:10px;margin-left:10px}.xhs-replica.r-rebuild-shell .rr-result-toolbar>.rr-tool{width:28px;height:30px;flex-basis:28px}}
@media(max-width:520px){.xhs-replica.r-rebuild-shell .rr-result-grid{gap:12px}.xhs-replica.r-rebuild-shell .rr-result-add{min-height:290px}.xhs-replica.r-rebuild-shell .rr-result-card>header{left:7px;right:7px;top:8px;gap:5px}.xhs-replica.r-rebuild-shell .rr-result-card>header>strong,.xhs-replica.r-rebuild-shell .rr-result-card>header>span{font-size:9px;line-height:15px;padding:3px 5px}.xhs-replica.r-rebuild-shell .rr-result-toolbar{gap:0;padding-inline:3px}.xhs-replica.r-rebuild-shell .rr-result-toolbar>.rr-tool{width:25px;height:29px;flex-basis:25px}.xhs-replica.r-rebuild-shell .rr-result-toolbar>.rr-tool>.rr-icon{width:15px;height:15px;flex-basis:15px}.xhs-replica.r-rebuild-shell .rr-send{width:38px;height:38px;flex-basis:38px;padding:8px}.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-select:after,.xhs-replica.r-rebuild-shell .rr-compose-footer .rr-model:after{top:13px}}
/* Stable material dialog: top aligned, separate browse/confirm/save stages. */
.xhs-replica.r-rebuild-shell .r-modal-backdrop[data-rr-modal=material]{align-items:flex-start;padding:24px}
.xhs-replica.r-rebuild-shell [data-rr-modal=material]>.r-modal{width:min(1440px,100%);height:min(972px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);border-radius:10px}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-modal-heading{height:54px;min-height:54px;padding:16px 24px;border:0}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-modal-heading h3{font-size:14px;line-height:22px}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-modal-body{display:flex;flex:1;flex-direction:column;padding:0 24px 0;overflow:hidden}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-modal-footer{height:64px;min-height:64px;padding:12px 24px;border:0}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-modal-footer .r-btn{font-size:14px;line-height:22px;height:40px;min-height:40px;padding:8px 18px}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-kind{justify-content:center;align-self:center;gap:3px;border-radius:9px;background:#f5f5f7;padding:4px;margin:0 0 22px;flex:none}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-kind>.r-btn{height:38px;min-height:38px;padding:8px 21px;font-size:14px;line-height:22px;border:0;background:transparent;color:#999}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-kind>.r-btn[aria-current=page]{background:#fff;color:#ee6d82;box-shadow:0 1px 7px #00000008}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-columns{display:grid;grid-template-columns:90px minmax(0,1fr) 300px;gap:20px;min-height:0;flex:1;padding-bottom:6px}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-pages{padding:0 14px 0 0;min-height:0;overflow:auto;border-color:#f0f0f0}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-pages>strong{font-size:13px;line-height:21px;font-weight:500;margin-bottom:12px}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-pages>.r-btn{display:block;font-size:12px;line-height:20px;min-height:38px;padding:8px;white-space:nowrap;border-radius:7px;border-color:#eee;color:#999}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-pages>.r-btn[aria-current=page]{border-color:#eeb0bd;background:#fff7f9;color:#d36a81}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-picker{min-height:0;overflow:auto;padding:18px 16px 14px;border:1px solid #eaeaea;border-radius:12px;scrollbar-width:thin}
.xhs-replica.r-rebuild-shell .rr-material-bound>header{display:flex;align-items:baseline;gap:9px;margin-bottom:13px}
.xhs-replica.r-rebuild-shell .rr-material-bound h4,.xhs-replica.r-rebuild-shell .rr-material-selection h4{font-size:14px;line-height:22px;font-weight:600;margin:0}
.xhs-replica.r-rebuild-shell .rr-material-bound>header>p{font-size:12px;line-height:20px;color:#aaa;margin:0}
.xhs-replica.r-rebuild-shell .rr-material-bound-row{display:flex;gap:12px;align-items:stretch;min-height:90px;margin-bottom:14px}
.xhs-replica.r-rebuild-shell .rr-material-bound-card{position:relative;flex:none;width:105px;height:90px;border:1px solid #eee;border-radius:8px;padding:5px;background:#fafafa}
.xhs-replica.r-rebuild-shell .rr-material-bound-card>img{display:block;width:100%;height:100%;object-fit:contain}
.xhs-replica.r-rebuild-shell .rr-material-bound-card>.rr-tool{position:absolute;top:3px;right:3px;width:22px;height:22px;flex-basis:22px;padding:4px;background:#fff;border:1px solid #eee;border-radius:50%}
.xhs-replica.r-rebuild-shell .rr-material-bound-card>.rr-tool>.rr-icon{width:12px;height:12px;flex-basis:12px}
.xhs-replica.r-rebuild-shell .rr-material-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;width:50%;max-width:440px;min-width:130px;min-height:90px;border:1px dashed #e4a8b6;border-radius:10px;background:#fffdfd;color:#c86a82;padding:14px;cursor:pointer}
.xhs-replica.r-rebuild-shell .rr-material-add>span{font-size:12px;line-height:20px;color:#aaa}
.xhs-replica.r-rebuild-shell .rr-material-add>.rr-icon{width:22px;height:22px;flex-basis:22px}
.xhs-replica.r-rebuild-shell .rr-material-selection{border-top:1px solid #eee;padding-top:15px}
.xhs-replica.r-rebuild-shell .rr-material-selection>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:11px}
.xhs-replica.r-rebuild-shell .rr-material-selection>header>small{font-size:11px;line-height:19px;color:#aaa}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-sources{display:inline-flex;gap:0;flex-wrap:wrap;margin:0 0 14px;background:#f5f5f7;border-radius:7px;padding:3px}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-sources>.r-btn{font-size:12px;line-height:20px;min-height:32px;padding:6px 12px;border:0;color:#888;background:transparent}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-sources>.r-btn[aria-current=page]{background:#fff;color:#df7b90;box-shadow:0 1px 5px #00000008}
.xhs-replica.r-rebuild-shell .rr-material-product-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:9px}
.xhs-replica.r-rebuild-shell .rr-material-product-heading>strong{font-size:12px;line-height:20px;font-weight:500}
.xhs-replica.r-rebuild-shell .rr-material-product-heading>.r-btn{font-size:11px;line-height:18px;min-height:28px;padding:4px 8px;color:#d66d86;border-color:#ecd3db;background:#fff8fa}
.xhs-replica.r-rebuild-shell .rr-material-product-heading>.r-btn>.rr-icon{width:12px;height:12px;flex-basis:12px}
.xhs-replica.r-rebuild-shell .rr-material-product-heading>small{font-size:10px;line-height:18px;color:#aaa}
.xhs-replica.r-rebuild-shell .rr-material-product-cards{display:flex;gap:10px;overflow:auto;padding:2px 2px 13px;border-bottom:1px solid #eee;scrollbar-width:thin}
.xhs-replica.r-rebuild-shell .rr-material-product-card{display:flex;align-items:center;gap:9px;text-align:left;flex:0 0 215px;min-width:0;padding:8px;border:1px solid #e7e7e7;border-radius:9px;background:white;cursor:pointer}
.xhs-replica.r-rebuild-shell .rr-material-product-card.is-selected{border-color:#e899ac;box-shadow:0 0 0 2px #fff0f4}
.xhs-replica.r-rebuild-shell .rr-material-product-card>img{width:49px;height:49px;object-fit:cover;border-radius:5px;flex:none}
.xhs-replica.r-rebuild-shell .rr-material-product-card>.rr-icon{width:40px;height:40px;flex-basis:40px;color:#c6bca8}
.xhs-replica.r-rebuild-shell .rr-material-product-card>span{display:block;min-width:0}
.xhs-replica.r-rebuild-shell .rr-material-product-card strong{display:block;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:20px;font-weight:500;color:#555}
.xhs-replica.r-rebuild-shell .rr-material-product-card small{display:block;font-size:10px;line-height:18px;color:#bbb}
.xhs-replica.r-rebuild-shell .rr-material-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px}
.xhs-replica.r-rebuild-shell .rr-material-gallery-heading>strong{font-size:12px;line-height:20px;font-weight:500;color:#777}
.xhs-replica.r-rebuild-shell .rr-material-gallery-heading>small{font-size:10px;line-height:18px;color:#bbb}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-grid{grid-template-columns:repeat(auto-fill,170px);gap:12px;margin-top:14px;min-height:200px}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-item{display:block;position:relative;min-width:0;padding:6px;border:1px solid #ececec;border-radius:9px;background:#fff;cursor:pointer}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-item.is-selected{padding:5px;border:2px solid #e6879d}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-item>img{display:block;width:100%;height:160px;object-fit:contain;border-radius:5px;background:#faf7ed}
.xhs-replica.r-rebuild-shell .rr-material-item>input[type=checkbox]{position:absolute;top:12px;right:12px;accent-color:#ef5273;width:16px;height:16px;margin:0;z-index:1}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-item>.rr-material-asset-index{font-size:10px;line-height:17px;color:#d8758e;margin-top:6px}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-item>strong{font-size:11px;line-height:18px;font-weight:500;margin:4px 0}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-item>small{font-size:10px;line-height:16px}
.xhs-replica.r-rebuild-shell .rr-material-confirm-row{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:14px}
.xhs-replica.r-rebuild-shell .rr-material-confirm-row>.r-btn{font-size:12px;line-height:20px;min-height:36px;padding:7px 10px}
.xhs-replica.r-rebuild-shell .rr-material-confirm-row>small{flex:1;font-size:10px;line-height:18px;color:#bbb}
.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-preview{min-height:0;overflow:auto;padding:0 0 0 14px;border-color:#eee;scrollbar-width:thin}
.xhs-replica.r-rebuild-shell .rr-material-preview>header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.xhs-replica.r-rebuild-shell .rr-material-preview>header>strong{font-size:12px;line-height:20px;font-weight:500}
.xhs-replica.r-rebuild-shell .rr-material-preview>header>small{font-size:10px;line-height:18px;color:#bbb}
.xhs-replica.r-rebuild-shell .rr-material-preview-card{border:1px solid #e8e8e8;border-radius:12px;padding:14px;background:#fff}
.xhs-replica.r-rebuild-shell .rr-material-preview-page{display:flex;align-items:center;gap:10px;border-bottom:1px solid #eee;padding-bottom:12px;margin-bottom:13px;font-size:12px;line-height:20px;color:#aaa}
.xhs-replica.r-rebuild-shell .rr-material-preview-page>span{padding:3px 8px;background:#f1d8b3;border-radius:5px;font-size:11px;line-height:18px;color:#8d6743}
.xhs-replica.r-rebuild-shell .rr-preview-reference,.xhs-replica.r-rebuild-shell .rr-preview-subjects{border:1px solid #eee;border-radius:8px;padding:10px;background:#fffcf6;margin-bottom:12px}
.xhs-replica.r-rebuild-shell .rr-preview-reference>small,.xhs-replica.r-rebuild-shell .rr-preview-subjects>small{display:block;color:#bbb;font-size:10px;line-height:18px;margin-bottom:6px}
.xhs-replica.r-rebuild-shell .rr-preview-reference>img,.xhs-replica.r-rebuild-shell .rr-preview-subjects>div>img{display:block;width:45px;height:55px;object-fit:contain;border-radius:3px}
.xhs-replica.r-rebuild-shell .rr-preview-subjects>div{display:flex;gap:7px}
.xhs-replica.r-rebuild-shell .rr-material-preview-card>textarea{display:block;width:100%;height:610px;min-height:350px;font-size:12px;line-height:22px;padding:12px;background:#fafafa;border-color:#e9e9e9;border-radius:8px;resize:vertical}
.xhs-replica.r-rebuild-shell .rr-material-preview-card>.r-field{margin-bottom:12px}
.xhs-replica.r-rebuild-shell .rr-material-preview-card>.r-field>span{font-size:10px}
.xhs-replica.r-rebuild-shell .rr-material-preview-card>.r-field>select{font-size:11px;padding:6px 9px}
@media(max-width:1100px){.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-columns{grid-template-columns:75px minmax(0,1fr) 260px;gap:13px}.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-modal-body{padding-inline:17px}.xhs-replica.r-rebuild-shell .rr-material-selection>header{align-items:flex-start;flex-direction:column;gap:5px}.xhs-replica.r-rebuild-shell .rr-material-confirm-row{flex-wrap:wrap}.xhs-replica.r-rebuild-shell .rr-material-confirm-row>small{order:3;flex-basis:100%}.xhs-replica.r-rebuild-shell .rr-material-product-heading>small{display:none}}
@media(max-width:800px){.xhs-replica.r-rebuild-shell .r-modal-backdrop[data-rr-modal=material]{padding:12px}.xhs-replica.r-rebuild-shell [data-rr-modal=material]>.r-modal{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-modal-body{overflow:auto}.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-columns{grid-template-columns:65px minmax(0,1fr);gap:12px;display:grid;flex:none}.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-preview{grid-column:2;padding:15px 0 0;border-left:0}.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-picker{overflow:visible;padding:13px}.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.xhs-replica.r-rebuild-shell .rr-material-bound>header{flex-direction:column;gap:4px}.xhs-replica.r-rebuild-shell .rr-material-bound-card{width:80px}.xhs-replica.r-rebuild-shell .rr-material-add{width:auto;flex:1;min-width:90px}.xhs-replica.r-rebuild-shell .rr-material-preview-card>textarea{height:350px;min-height:220px}.xhs-replica.r-rebuild-shell .rr-material-product-card{flex-basis:180px}.xhs-replica.r-rebuild-shell [data-rr-modal=material] .rr-material-kind>.r-btn{padding-inline:15px;font-size:12px}}
/* Result card tools stay visible in the white header, above the image. */
.xhs-replica.r-rebuild-shell .rr-result-card>header{position:static;inset:auto;z-index:auto;display:flex;align-items:center;justify-content:space-between;gap:6px;height:56px;min-height:56px;margin:0;padding:10px 12px;background:#fff;border-bottom:1px solid #f0f0f0;pointer-events:auto}
.xhs-replica.r-rebuild-shell .rr-result-page-label{display:flex;align-items:center;gap:7px;min-width:0;flex:none}
.xhs-replica.r-rebuild-shell .rr-result-page-label>strong{font-size:12px;line-height:20px;font-weight:500;color:#aaa}
.xhs-replica.r-rebuild-shell .rr-result-page-label>.rr-result-role{display:inline-flex;align-items:center;padding:3px 7px;font-size:10px;line-height:16px;border-radius:4px;color:#8e7c56;background:#f9f0dc}
.xhs-replica.r-rebuild-shell .rr-result-page-label>.rr-result-role.is-cover{background:#7e2937;color:#fff}
.xhs-replica.r-rebuild-shell .rr-result-card>header>.rr-result-toolbar{position:static;display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;gap:3px;height:32px;margin:0;padding:0;opacity:1;visibility:visible;transform:none}
.xhs-replica.r-rebuild-shell .rr-result-card>header>.rr-result-toolbar>.rr-tool{display:inline-grid;position:static;place-items:center;width:28px;height:32px;flex:0 0 28px;margin:0;padding:6px;opacity:1;visibility:visible;color:#929292}
.xhs-replica.r-rebuild-shell .rr-result-card>header>.rr-result-toolbar>.rr-tool>.rr-icon{width:16px;height:16px;flex-basis:16px}
.xhs-replica.r-rebuild-shell .rr-result-card>header>.rr-result-toolbar>.rr-tool[data-r-action=download-image]{color:#db7185}
.xhs-replica.r-rebuild-shell .rr-result-card>header>.rr-result-toolbar>.rr-tool:disabled{opacity:.3;cursor:default}
.xhs-replica.r-rebuild-shell .rr-result-card>.rr-result-image{width:calc(100% - 24px);margin:12px;border-radius:7px}
.xhs-replica.r-rebuild-shell .rr-result-card>.rr-qc-note{position:static;font-size:10px;line-height:18px;margin:4px 12px 8px;color:#aaa;text-align:center}
@media(max-width:800px){.xhs-replica.r-rebuild-shell .rr-result-card>header{padding-inline:9px;gap:3px}.xhs-replica.r-rebuild-shell .rr-result-page-label{gap:4px}.xhs-replica.r-rebuild-shell .rr-result-card>header>.rr-result-toolbar{gap:0}.xhs-replica.r-rebuild-shell .rr-result-card>header>.rr-result-toolbar>.rr-tool{width:24px;flex-basis:24px;padding:4px}.xhs-replica.r-rebuild-shell .rr-result-card>header>.rr-result-toolbar>.rr-tool>.rr-icon{width:15px;height:15px;flex-basis:15px}.xhs-replica.r-rebuild-shell .rr-result-page-label>strong{font-size:11px}.xhs-replica.r-rebuild-shell .rr-result-page-label>.rr-result-role{font-size:9px;padding:2px 5px}}
@media(max-width:520px){.xhs-replica.r-rebuild-shell .rr-result-card>header{flex-wrap:wrap;height:auto;min-height:70px;padding:8px}.xhs-replica.r-rebuild-shell .rr-result-card>header>.rr-result-toolbar{width:100%;justify-content:space-between;flex-basis:100%}.xhs-replica.r-rebuild-shell .rr-result-card>.rr-result-image{width:calc(100% - 16px);margin:8px}}
/* Product archive is an independent management page; creation linking remains a modal. */
.xhs-replica.r-rebuild-shell .rr-topbar:is([data-r-screen=products],[data-r-screen=knowledge]){display:none}
.xhs-replica.r-rebuild-shell .rr-products-page{max-width:1032px;margin:64px auto 0;width:100%}
.xhs-replica.r-rebuild-shell .rr-products-page>.rr-back-link{font-size:13px;line-height:22px;color:#919191;margin-bottom:18px}
.xhs-replica.r-rebuild-shell .rr-products-page>header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.xhs-replica.r-rebuild-shell .rr-products-page h1{font-size:24px;line-height:38.4px;font-weight:700;margin:0}
.xhs-replica.r-rebuild-shell .rr-products-page>header p{font-size:14px;line-height:22px;color:#999;margin:7px 0 0}
.xhs-replica.r-rebuild-shell .rr-products-page>header .r-btn{font-size:13px;line-height:22px;min-height:42px;padding:9px 14px}
.xhs-replica.r-rebuild-shell .rr-products-page>header .r-btn[data-r-action=rr-product-page-trash]{background:transparent;border:0;color:#aaa;font-size:11px}
.xhs-replica.r-rebuild-shell .rr-products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.xhs-replica.r-rebuild-shell .rr-product-page-card{min-height:260px;border:1px solid #e9e9e9;border-radius:17px;padding:18px;background:#fff;min-width:0}
.xhs-replica.r-rebuild-shell .rr-product-card-summary{display:flex;align-items:flex-start;gap:13px;min-height:83px}
.xhs-replica.r-rebuild-shell .rr-product-card-summary>img,.xhs-replica.r-rebuild-shell .rr-product-no-image{width:60px;height:60px;flex:none;object-fit:cover;border-radius:7px;background:#f6f2e7}
.xhs-replica.r-rebuild-shell .rr-product-no-image{display:grid;place-items:center;color:#bbad91}
.xhs-replica.r-rebuild-shell .rr-product-card-summary>div{min-width:0}
.xhs-replica.r-rebuild-shell .rr-product-card-summary h2{font-size:15px;line-height:24px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 4px}
.xhs-replica.r-rebuild-shell .rr-product-card-summary strong{display:block;font-size:12px;line-height:19px;color:#d8788d;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xhs-replica.r-rebuild-shell .rr-product-card-summary p{font-size:11px;line-height:18px;color:#999;margin:5px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.xhs-replica.r-rebuild-shell .rr-product-card-facts{font-size:11px;line-height:19px;color:#aaa;background:#fafafa;border:1px solid #eee;border-radius:5px;padding:4px 7px;margin:11px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xhs-replica.r-rebuild-shell .rr-product-page-card>small{font-size:11px;line-height:20px;color:#aaa}
.xhs-replica.r-rebuild-shell .rr-product-page-card>footer{display:flex;gap:8px;padding-top:12px;margin-top:12px;border-top:1px solid #f1f1f1}
.xhs-replica.r-rebuild-shell .rr-product-page-card>footer>.r-btn{flex:1;font-size:12px;line-height:20px;min-height:36px;padding:7px 12px}
.xhs-replica.r-rebuild-shell [data-r-product-modal]>.rr-product-editor{width:min(1180px,100%);height:min(880px,calc(100dvh - 56px));max-height:calc(100dvh - 56px);display:flex;flex-direction:column;padding:0;border-radius:18px}
.xhs-replica.r-rebuild-shell .rr-product-editor-heading{display:flex;align-items:center;gap:18px;min-height:100px;padding:23px 27px;border-bottom:1px solid #eee;flex:none}
.xhs-replica.r-rebuild-shell .rr-product-editor-heading>div{flex:1;min-width:0}
.xhs-replica.r-rebuild-shell .rr-product-editor-heading h3{font-size:20px;line-height:30px;font-weight:600;margin:0}
.xhs-replica.r-rebuild-shell .rr-product-editor-heading p{font-size:12px;line-height:20px;color:#aaa;margin:5px 0 0}
.xhs-replica.r-rebuild-shell .rr-product-editor-heading>nav{display:flex;align-items:center;gap:18px}
.xhs-replica.r-rebuild-shell .rr-product-editor-heading>nav>.r-btn{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:8px 3px;font-size:14px;line-height:22px;min-height:42px;color:#888}
.xhs-replica.r-rebuild-shell .rr-product-editor-heading>nav>.r-btn[aria-current=page]{color:#f32443;border-bottom-color:#f32443}
.xhs-replica.r-rebuild-shell .rr-product-editor>[data-r-product-body]{flex:1;min-height:0;padding:22px 27px;overflow:hidden}
.xhs-replica.r-rebuild-shell .rr-product-editor>.rr-product-feedback{margin:0;padding:0 27px;flex:none;font-size:12px;line-height:22px}
.xhs-replica.r-rebuild-shell .rr-product-editor>.rr-product-feedback:empty{display:none}
.xhs-replica.r-rebuild-shell .rr-product-editor-columns{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;height:100%;min-height:0}
.xhs-replica.r-rebuild-shell .rr-product-photo-panel{display:flex;flex-direction:column;min-height:0;overflow:auto;border:1px solid #e8e8e8;border-radius:12px;padding:18px}
.xhs-replica.r-rebuild-shell .rr-product-photo-panel h4,.xhs-replica.r-rebuild-shell .rr-product-editor-facts h4{font-size:15px;line-height:24px;font-weight:600;margin:0 0 16px}
.xhs-replica.r-rebuild-shell .rr-product-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:15px}
.xhs-replica.r-rebuild-shell .rr-product-edit-image{position:relative;min-width:0;border:1px solid #e8e8e8;border-radius:8px;overflow:hidden;background:#fafafa}
.xhs-replica.r-rebuild-shell .rr-product-edit-image>img{display:block;width:100%;height:104px;object-fit:contain}
.xhs-replica.r-rebuild-shell .rr-product-edit-image>label{display:flex;align-items:center;gap:3px;margin:4px;font-size:9px;line-height:15px;color:#999}
.xhs-replica.r-rebuild-shell .rr-product-edit-image>label>input{margin:0;accent-color:#f32443}
.xhs-replica.r-rebuild-shell .rr-product-edit-image>.rr-tool{position:absolute;top:4px;right:4px;width:20px;height:20px;flex-basis:20px;padding:4px;border-radius:50%;background:#fff;color:#888}
.xhs-replica.r-rebuild-shell .rr-product-edit-image>.rr-tool>.rr-icon{width:12px;height:12px;flex-basis:12px}
.xhs-replica.r-rebuild-shell .rr-product-photo-upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:130px;border:1px dashed #ddd;border-radius:8px;color:#aaa;cursor:pointer;font-size:11px}
.xhs-replica.r-rebuild-shell .rr-product-photo-upload>input{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}
.xhs-replica.r-rebuild-shell .rr-product-photo-panel>.r-btn{flex:none;font-size:14px;line-height:22px;min-height:43px;background:#fff8e7;border-color:#ead5a0;color:#947020}
.xhs-replica.r-rebuild-shell .rr-product-photo-panel>p{font-size:11px;line-height:19px;color:#aaa;text-align:center;margin:14px 0}
.xhs-replica.r-rebuild-shell .rr-product-editor-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:auto;padding:15px 5px 0;border-top:1px solid #eee}
.xhs-replica.r-rebuild-shell .rr-product-editor-stats>span{font-size:9px;line-height:17px;text-align:center;color:#bbb}
.xhs-replica.r-rebuild-shell .rr-product-editor-stats strong{display:block;font-size:12px;line-height:21px;font-weight:600;color:#555}
.xhs-replica.r-rebuild-shell .rr-product-editor-facts{min-width:0;min-height:0;overflow:auto;padding-right:5px;scrollbar-width:thin}
.xhs-replica.r-rebuild-shell .rr-product-editor-facts>h4{border-left:3px solid #f32443;padding-left:10px}
.xhs-replica.r-rebuild-shell .rr-product-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:30px}
.xhs-replica.r-rebuild-shell .rr-product-types>.r-btn{font-size:14px;line-height:22px;min-height:48px;border-radius:9px;color:#999}
.xhs-replica.r-rebuild-shell .rr-product-types>.r-btn[aria-current=page]{background:#fff8e7;border-color:#d4ad53;color:#80601f}
.xhs-replica.r-rebuild-shell .rr-product-fact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.xhs-replica.r-rebuild-shell .rr-product-fact-fields>.r-field{display:flex;flex-direction:column;margin:0;gap:7px}
.xhs-replica.r-rebuild-shell .rr-product-fact-fields>.r-field>span{font-size:12px;line-height:20px;color:#555}
.xhs-replica.r-rebuild-shell .rr-product-fact-fields>.r-field:nth-child(n+4){grid-column:1/-1}
.xhs-replica.r-rebuild-shell .rr-product-fact-fields>.r-field>input,.xhs-replica.r-rebuild-shell .rr-product-fact-fields>.r-field>textarea{font-size:13px;line-height:22px;background:#fcfcfc;padding:10px 12px}
.xhs-replica.r-rebuild-shell .rr-product-image-tab-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.xhs-replica.r-rebuild-shell .rr-product-image-tab-heading h4{margin:0}
.xhs-replica.r-rebuild-shell .rr-product-full-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.xhs-replica.r-rebuild-shell .rr-product-edit-image.is-full{padding:11px}
.xhs-replica.r-rebuild-shell .rr-product-edit-image.is-full>img{height:210px}
.xhs-replica.r-rebuild-shell .rr-product-edit-image.is-full>.r-field{margin:14px 0 0}
.xhs-replica.r-rebuild-shell .rr-product-edit-image.is-full>.r-field>span{font-size:11px}
.xhs-replica.r-rebuild-shell .rr-product-edit-image.is-full>.r-field>input,.xhs-replica.r-rebuild-shell .rr-product-edit-image.is-full>.r-field>textarea{font-size:12px;line-height:21px}
.xhs-replica.r-rebuild-shell .rr-product-editor-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-height:76px;padding:16px 27px;border-top:1px solid #eee;flex:none}
.xhs-replica.r-rebuild-shell .rr-product-editor-footer>small{margin-right:auto;font-size:11px;line-height:19px;color:#ba9e58}
.xhs-replica.r-rebuild-shell .rr-product-editor-footer>.r-btn{font-size:13px;line-height:22px;min-height:42px;padding:9px 16px}
@media(max-width:1100px){.xhs-replica.r-rebuild-shell .rr-products-page{margin-top:40px}.xhs-replica.r-rebuild-shell .rr-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.xhs-replica.r-rebuild-shell .rr-product-editor-columns{grid-template-columns:220px minmax(0,1fr);gap:17px}.xhs-replica.r-rebuild-shell .rr-product-editor-heading>nav{gap:9px}.xhs-replica.r-rebuild-shell .rr-product-editor-heading p{max-width:330px}.xhs-replica.r-rebuild-shell .rr-product-photo-panel{padding:13px}}
@media(max-width:800px){.xhs-replica.r-rebuild-shell .rr-products-page>header{align-items:flex-start;flex-direction:column;gap:15px}.xhs-replica.r-rebuild-shell .rr-product-editor-heading{flex-wrap:wrap;min-height:100px;padding:17px;gap:10px}.xhs-replica.r-rebuild-shell .rr-product-editor-heading>div{flex-basis:75%}.xhs-replica.r-rebuild-shell .rr-product-editor-heading>nav{order:3;flex-basis:100%}.xhs-replica.r-rebuild-shell .rr-product-editor>[data-r-product-body]{overflow:auto;padding:17px}.xhs-replica.r-rebuild-shell .rr-product-editor-columns{height:auto;grid-template-columns:1fr}.xhs-replica.r-rebuild-shell .rr-product-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.xhs-replica.r-rebuild-shell .rr-product-editor-stats{margin-top:10px}.xhs-replica.r-rebuild-shell .rr-product-editor-facts{overflow:visible}.xhs-replica.r-rebuild-shell .rr-product-editor-footer{flex-wrap:wrap;padding:14px 17px}.xhs-replica.r-rebuild-shell .rr-product-editor-footer>small{display:none}.xhs-replica.r-rebuild-shell .rr-product-full-gallery{grid-template-columns:1fr}}
@media(max-width:520px){.xhs-replica.r-rebuild-shell .rr-products-grid{grid-template-columns:1fr}.xhs-replica.r-rebuild-shell .rr-product-fact-fields{grid-template-columns:1fr}.xhs-replica.r-rebuild-shell .rr-product-fact-fields>.r-field{grid-column:1}.xhs-replica.r-rebuild-shell .rr-products-page{margin-top:28px}.xhs-replica.r-rebuild-shell .rr-product-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Knowledge management is a full page; selected document snapshots remain a separate modal flow. */
.xhs-replica.r-rebuild-shell .rr-knowledge-page{width:100%;max-width:1336px;margin:64px auto 0}
.xhs-replica.r-rebuild-shell .rr-knowledge-page>.rr-back-link{font-size:13px;line-height:22px;height:22px;margin:0 0 18px;color:#929292}
.xhs-replica.r-rebuild-shell .rr-knowledge-page>h1{font-size:36px;line-height:57.6px;font-weight:800;letter-spacing:-.8px;margin:0}
.xhs-replica.r-rebuild-shell .rr-knowledge-subtitle{font-size:16px;line-height:25.6px;color:#999;margin:8px 0 0}
.xhs-replica.r-rebuild-shell .rr-knowledge-usage{height:161px;border:1px solid #eadcb6;border-radius:15px;background:linear-gradient(110deg,#fff8e8,#fffdf6 65%,#fff);padding:20px;margin-top:22.8px}
.xhs-replica.r-rebuild-shell .rr-knowledge-usage>header{display:flex;align-items:center;gap:14px}
.xhs-replica.r-rebuild-shell .rr-knowledge-usage>header>strong{font-size:14px;line-height:22px;font-weight:500;color:#62512d}
.xhs-replica.r-rebuild-shell .rr-knowledge-usage>header>small{font-size:11px;line-height:20px;color:#a58a49}
.xhs-replica.r-rebuild-shell .rr-knowledge-usage>div{display:flex;align-items:center;gap:50px;margin:14px 0}
.xhs-replica.r-rebuild-shell .rr-knowledge-usage>div>span{font-size:12px;line-height:27px;color:#aaa}
.xhs-replica.r-rebuild-shell .rr-knowledge-usage>div>span>strong{font-size:24px;line-height:30px;font-weight:650;color:#87641e;margin-right:7px}
.xhs-replica.r-rebuild-shell .rr-knowledge-usage>footer{border-top:1px solid #eee0bc;padding-top:11px;font-size:11px;line-height:18px;color:#9a8c6b}
.xhs-replica.r-rebuild-shell .rr-knowledge-content{margin-top:50px}
.xhs-replica.r-rebuild-shell .rr-knowledge-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:424px;padding:40px;border:1px dashed #eaeaea;background:#fff;border-radius:16px}
.xhs-replica.r-rebuild-shell .rr-knowledge-empty>span{display:grid;place-items:center;width:104px;height:104px;border-radius:50%;background:#fff1cd;color:#c8a44a;margin-bottom:25px}
.xhs-replica.r-rebuild-shell .rr-knowledge-empty>span>.rr-icon{width:42px;height:42px;stroke-width:1.5}
.xhs-replica.r-rebuild-shell .rr-knowledge-empty>h2{font-size:22px;line-height:35px;font-weight:550;margin:0}
.xhs-replica.r-rebuild-shell .rr-knowledge-empty>p{font-size:14px;line-height:23px;color:#999;margin:13px 0 25px}
.xhs-replica.r-rebuild-shell .rr-knowledge-empty>.r-btn{font-size:14px;line-height:22px;min-height:42px;padding:10px 18px}
.xhs-replica.r-rebuild-shell .rr-knowledge-empty>div{display:flex;gap:12px;align-items:center;margin-top:17px}
.xhs-replica.r-rebuild-shell .rr-knowledge-empty>div>.r-btn{background:transparent;color:#aaa;border:0;font-size:11px;min-height:28px;padding:4px 8px}
.xhs-replica.r-rebuild-shell .rr-knowledge-import{position:relative;display:inline-flex;align-items:center;gap:6px;margin:0;overflow:hidden;font-size:12px;line-height:20px;min-height:36px;padding:7px 12px;background:white;border:1px solid #e5e5e5;border-radius:8px;color:#888;cursor:pointer}
.xhs-replica.r-rebuild-shell .rr-knowledge-import>.rr-icon{width:16px;height:16px;flex-basis:16px}
.xhs-replica.r-rebuild-shell .rr-knowledge-import>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.xhs-replica.r-rebuild-shell .rr-knowledge-empty .rr-knowledge-import{font-size:11px;line-height:18px;min-height:28px;padding:4px 8px;background:transparent;border:0;color:#aaa}
.xhs-replica.r-rebuild-shell .rr-knowledge-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.xhs-replica.r-rebuild-shell .rr-knowledge-toolbar>div:first-child{display:flex;align-items:center;gap:16px}
.xhs-replica.r-rebuild-shell .rr-knowledge-toolbar h2{font-size:20px;line-height:32px;font-weight:600;margin:0}
.xhs-replica.r-rebuild-shell .rr-knowledge-toolbar .r-btn{font-size:12px;line-height:20px;min-height:36px;padding:7px 12px}
.xhs-replica.r-rebuild-shell .rr-knowledge-search{display:flex;align-items:center;gap:10px;margin:0 0 24px}
.xhs-replica.r-rebuild-shell .rr-knowledge-search>input{width:min(420px,100%);font-size:13px;line-height:22px;height:42px;padding:9px 13px}
.xhs-replica.r-rebuild-shell .rr-knowledge-folders{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.xhs-replica.r-rebuild-shell .rr-knowledge-folders>article{min-width:0;border:1px solid #e8e8e8;border-radius:13px;background:#fff;overflow:hidden}
.xhs-replica.r-rebuild-shell .rr-knowledge-folder-open{display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:100%;padding:22px;border:0;background:transparent;cursor:pointer;text-align:left}
.xhs-replica.r-rebuild-shell .rr-knowledge-folder-open>.rr-icon{width:33px;height:33px;color:#c8a44a;stroke-width:1.5}
.xhs-replica.r-rebuild-shell .rr-knowledge-folder-open>strong{max-width:100%;font-size:16px;line-height:25px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xhs-replica.r-rebuild-shell .rr-knowledge-folder-open>small{font-size:11px;line-height:18px;color:#aaa}
.xhs-replica.r-rebuild-shell .rr-knowledge-folders>article>footer{display:flex;justify-content:flex-end;gap:5px;padding:8px 15px;border-top:1px solid #f2f2f2}
.xhs-replica.r-rebuild-shell .rr-knowledge-documents{background:#fff;border:1px solid #e8e8e8;border-radius:13px;padding:0 23px}
.xhs-replica.r-rebuild-shell .rr-knowledge-documents>article{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0;border-bottom:1px solid #eee}
.xhs-replica.r-rebuild-shell .rr-knowledge-documents>article:last-child{border:0}
.xhs-replica.r-rebuild-shell .rr-knowledge-documents>article>div:first-child{display:flex;align-items:flex-start;gap:14px;min-width:0}
.xhs-replica.r-rebuild-shell .rr-knowledge-documents>article>div:first-child>.rr-icon{color:#d3b36c;width:24px;height:24px;flex-basis:24px}
.xhs-replica.r-rebuild-shell .rr-knowledge-documents h3{font-size:15px;line-height:24px;font-weight:550;margin:0}
.xhs-replica.r-rebuild-shell .rr-knowledge-documents p{font-size:12px;line-height:21px;color:#999;margin:5px 0 7px;overflow-wrap:anywhere}
.xhs-replica.r-rebuild-shell .rr-knowledge-documents small{font-size:10px;line-height:18px;color:#bbb}
.xhs-replica.r-rebuild-shell [data-rr-modal=folder]>.r-modal{width:min(440px,100%)}
@media(max-width:1100px){.xhs-replica.r-rebuild-shell .rr-knowledge-folders{grid-template-columns:repeat(3,minmax(0,1fr))}.xhs-replica.r-rebuild-shell .rr-knowledge-page{margin-top:40px}}
@media(max-width:800px){.xhs-replica.r-rebuild-shell .rr-knowledge-page{margin-top:28px}.xhs-replica.r-rebuild-shell .rr-knowledge-page>h1{font-size:28px;line-height:45px}.xhs-replica.r-rebuild-shell .rr-knowledge-subtitle{font-size:13px;line-height:22px}.xhs-replica.r-rebuild-shell .rr-knowledge-usage{margin-top:22px;padding:17px;height:160px}.xhs-replica.r-rebuild-shell .rr-knowledge-usage>div{gap:22px}.xhs-replica.r-rebuild-shell .rr-knowledge-usage>div>span{font-size:10px}.xhs-replica.r-rebuild-shell .rr-knowledge-usage>div>span>strong{font-size:20px}.xhs-replica.r-rebuild-shell .rr-knowledge-folders{grid-template-columns:repeat(2,minmax(0,1fr))}.xhs-replica.r-rebuild-shell .rr-knowledge-toolbar{flex-wrap:wrap}.xhs-replica.r-rebuild-shell .rr-knowledge-content{margin-top:32px}.xhs-replica.r-rebuild-shell .rr-knowledge-empty{padding:25px;min-height:390px}.xhs-replica.r-rebuild-shell .rr-knowledge-empty>p{font-size:12px;text-align:center}.xhs-replica.r-rebuild-shell .rr-knowledge-documents{padding-inline:15px}.xhs-replica.r-rebuild-shell .rr-knowledge-documents>article{gap:12px}.xhs-replica.r-rebuild-shell .rr-knowledge-usage>footer{font-size:10px}}

.xhs-replica.r-rebuild-shell .rr-products-page>.rr-back-link,.xhs-replica.r-rebuild-shell .rr-knowledge-page>.rr-back-link{display:flex;width:fit-content}

/* The observed outline uses page cards and its add action in one grid. */
.xhs-replica.r-rebuild-shell .rr-series{display:block;padding:16px;margin:0 0 16px;background:#fff9e8;border:1px solid #f0e2b9;border-radius:12px}
.xhs-replica.r-rebuild-shell .rr-series>header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:25px;margin-bottom:6px}
.xhs-replica.r-rebuild-shell .rr-series>header>div{display:flex;align-items:center;gap:9px;min-width:0}
.xhs-replica.r-rebuild-shell .rr-series>header h3{font-size:14px;line-height:23px;font-weight:600;margin:0}
.xhs-replica.r-rebuild-shell .rr-series>header small{font-size:10px;line-height:18px;background:#f7edca;color:#927525;border-radius:4px;padding:1px 7px}
.xhs-replica.r-rebuild-shell .rr-series>header .rr-tool{height:24px;width:24px;flex-basis:24px;padding:4px}
.xhs-replica.r-rebuild-shell .rr-series>header .rr-tool>.rr-icon{height:14px;width:14px;flex-basis:14px}
.xhs-replica.r-rebuild-shell .rr-series>p{font-size:11px;line-height:19px;color:#a49a80;margin:0 0 8px}
.xhs-replica.r-rebuild-shell .rr-series>.r-field{margin:0}
.xhs-replica.r-rebuild-shell .rr-series>.r-field>span{display:none}
.xhs-replica.r-rebuild-shell .rr-series>.r-field>textarea[data-r-field]{width:100%;font-size:13px;line-height:23px;min-height:106px;padding:10px 12px;background:#fff;resize:vertical}
.xhs-replica.r-rebuild-shell .rr-outline-pages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:24px}
.xhs-replica.r-rebuild-shell .rr-outline-page{display:flex;flex-direction:column;min-width:0;padding:16px;margin:0;min-height:360px;border-radius:12px}
.xhs-replica.r-rebuild-shell .rr-outline-page>header{flex:none;min-height:27px;margin:0 0 10px;padding-bottom:10px;border-bottom:1px solid #f1f1f1}
.xhs-replica.r-rebuild-shell .rr-outline-page>header>div:first-child{gap:8px}
.xhs-replica.r-rebuild-shell .rr-outline-page>header strong{font-size:12px;line-height:20px;font-weight:500;color:#b1b1b1}
.xhs-replica.r-rebuild-shell .rr-outline-page>header span{font-size:10px;line-height:18px;background:#f4eddb;color:#8e7137;padding:2px 6px;border-radius:4px}
.xhs-replica.r-rebuild-shell .rr-outline-page>header span.is-cover{background:#8c2329;color:#fff3da}
.xhs-replica.r-rebuild-shell .rr-outline-page .rr-page-tools .rr-tool{width:22px;height:22px;flex-basis:22px;padding:4px}
.xhs-replica.r-rebuild-shell .rr-outline-page .rr-page-tools .rr-icon{width:14px;height:14px;flex-basis:14px}
.xhs-replica.r-rebuild-shell .rr-outline-page>.rr-page-assets{display:flex;flex-direction:column;flex:none;gap:7px;margin:0 0 10px}
.xhs-replica.r-rebuild-shell .rr-outline-page>.rr-page-assets>button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:74px;padding:9px 10px;background:#fffcf5;border-color:#eee8da}
.xhs-replica.r-rebuild-shell .rr-outline-page>.rr-page-assets>button>div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.xhs-replica.r-rebuild-shell .rr-outline-page>.rr-page-assets small{font-size:10px;line-height:17px;color:#b0a794}
.xhs-replica.r-rebuild-shell .rr-outline-page>.rr-page-assets img{width:28px;height:28px;object-fit:contain;border-radius:4px;background:white}
.xhs-replica.r-rebuild-shell .rr-outline-page>.rr-page-assets>button>div>span{display:flex;gap:5px}
.xhs-replica.r-rebuild-shell .rr-outline-page>.rr-page-assets>button>.rr-icon{width:15px;height:15px;flex-basis:15px;color:#b8b0a1}
.xhs-replica.r-rebuild-shell .rr-outline-page>.rr-page-brief{flex:1;width:100%;min-height:180px;height:180px;padding:10px 12px;font-size:14px;line-height:24px;resize:vertical;overflow:auto;background:#fafafa}
.xhs-replica.r-rebuild-shell .rr-outline-page>.rr-word-count{font-size:10px;line-height:17px;flex:none;margin:5px 0 -5px}
.xhs-replica.r-rebuild-shell .rr-outline-pages>.rr-add-page{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:100%;height:100%;min-height:360px;padding:25px;border:2px dashed #e6e6e6;border-radius:12px;background:transparent;color:#a6b0bb;cursor:pointer;margin:0}
.xhs-replica.r-rebuild-shell .rr-outline-pages>.rr-add-page>.rr-icon{width:25px;height:25px;flex-basis:25px;stroke-width:1.5}
.xhs-replica.r-rebuild-shell .rr-outline-pages>.rr-add-page>span{font-size:14px;line-height:24px}
.xhs-replica.r-rebuild-shell .rr-outline-pages>.rr-add-page:hover:not(:disabled){background:#fff9e8;border-color:#ddc378;color:#98782d}
.xhs-replica.r-rebuild-shell .rr-outline-pages>.rr-add-page:disabled{opacity:.4;cursor:default}
.xhs-replica.r-rebuild-shell .rr-outline>.rr-outline-pages+details.r-panel{margin-top:24px}
@media(max-width:1200px){.xhs-replica.r-rebuild-shell .rr-outline-pages{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
@media(max-width:800px){.xhs-replica.r-rebuild-shell .rr-outline-pages{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.xhs-replica.r-rebuild-shell .rr-series>header{gap:8px}.xhs-replica.r-rebuild-shell .rr-series>header small{display:none}.xhs-replica.r-rebuild-shell .rr-series>.r-field>textarea[data-r-field]{min-height:120px;font-size:12px;line-height:21px}.xhs-replica.r-rebuild-shell .rr-outline-page{padding:12px}.xhs-replica.r-rebuild-shell .rr-outline-page>.rr-page-brief{font-size:13px;line-height:23px}}
@media(max-width:520px){.xhs-replica.r-rebuild-shell .rr-outline-pages{grid-template-columns:1fr}.xhs-replica.r-rebuild-shell .rr-series>header .rr-color-setting{font-size:10px;gap:4px}}

/* Current Redya works reference: inset three-tab strip, left badge and inline metadata. */
.xhs-replica.r-rebuild-shell .rr-library .rr-search>.rr-tool{order:-1;width:20px;flex-basis:20px;height:28px;padding:2px}
.xhs-replica.r-rebuild-shell .rr-library .rr-search>.rr-tool>.rr-icon{width:16px;height:16px;flex-basis:16px;color:#b5b5b5}
.xhs-replica.r-rebuild-shell .rr-work-stats{gap:0;height:112px;padding:7px;border:1px solid #e9e9e9;border-radius:16px;background:#fafafa}
.xhs-replica.r-rebuild-shell .rr-work-stats>button{position:relative;height:96px;border:0;border-radius:12px;background:transparent;padding:12px}
.xhs-replica.r-rebuild-shell .rr-work-stats>button[aria-current=page]{background:#fff;border:0;box-shadow:0 2px 5px #0000000c}
.xhs-replica.r-rebuild-shell .rr-work-stats>button[aria-current=page]:after{content:'';position:absolute;left:20%;right:20%;bottom:0;height:2px;border-radius:2px;background:#f32443}
.xhs-replica.r-rebuild-shell .rr-work-stats>button:hover:not([aria-current=page]){background:#fffdf6}
.xhs-replica.r-rebuild-shell .rr-work-status-badge{left:12px;right:auto;top:12px;border-radius:3px;min-height:25px;padding:4px 8px;font-size:11px;line-height:17px;box-shadow:none}
.xhs-replica.r-rebuild-shell .rr-work-status-badge.is-completed{background:#e4c364ed;color:#292316}
.xhs-replica.r-rebuild-shell .rr-work-status-badge:is(.is-running,.is-queued){background:#33353beD;color:#f5dc8c}
.xhs-replica.r-rebuild-shell .rr-work-bottom{margin-top:9px}
.xhs-replica.r-rebuild-shell .rr-work-bottom>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.xhs-replica.r-rebuild-shell .rr-work-info .rr-work-bottom p{display:flex;align-items:center;gap:8px;font-size:10px;line-height:18px}
.xhs-replica.r-rebuild-shell .rr-work-info .rr-work-mode{background:#f5f5f5;color:#666;padding:0 5px;border-radius:3px}
.xhs-replica.r-rebuild-shell .rr-work-info time{margin:0;font-size:10px;line-height:18px;white-space:nowrap}
.xhs-replica.r-rebuild-shell .rr-outline-page>.rr-page-assets>button>.rr-icon{transform:rotate(-90deg)}
@media(max-width:800px){.xhs-replica.r-rebuild-shell .rr-work-stats{height:92px;padding:6px}.xhs-replica.r-rebuild-shell .rr-work-stats>button{height:78px;padding:8px}.xhs-replica.r-rebuild-shell .rr-work-status-badge{left:8px;top:8px;font-size:10px;padding:3px 7px}.xhs-replica.r-rebuild-shell .rr-work-bottom>div:first-child{gap:4px 8px}}
/* Keep the background control on one line without shrinking the style heading. */
.xhs-replica.r-rebuild-shell .rr-series>header>div{flex:1;flex-wrap:wrap}
.xhs-replica.r-rebuild-shell .rr-series>header h3,.xhs-replica.r-rebuild-shell .rr-series>header small{white-space:nowrap}
.xhs-replica.r-rebuild-shell .rr-series>header>.rr-color-setting{display:inline-flex;flex:0 0 auto;flex-direction:row;align-items:center;width:auto;min-width:132px;gap:7px;white-space:nowrap;margin:0}
.xhs-replica.r-rebuild-shell .rr-series>header>.rr-color-setting>input[type=checkbox]{flex:0 0 14px;width:14px;height:14px;min-width:14px;margin:0}
.xhs-replica.r-rebuild-shell .rr-series>header>.rr-color-setting>input[type=color]{flex:0 0 28px;width:28px;min-width:28px;height:23px;margin:0}
@media(max-width:800px){.xhs-replica.r-rebuild-shell .rr-series>header>.rr-color-setting{min-width:118px;gap:5px;font-size:10px}}
@media(max-width:520px){.xhs-replica.r-rebuild-shell .rr-series>header{flex-wrap:wrap}.xhs-replica.r-rebuild-shell .rr-series>header>div{flex-basis:100%}.xhs-replica.r-rebuild-shell .rr-series>header>.rr-color-setting{margin-left:auto}}
/* Independent next-generation choices retain the red/black/yellow creation UI. */
.xhs-replica.r-rebuild-shell .rr-generation-settings{border:1px solid var(--r-border,#e7d9b8);border-radius:12px;background:var(--r-surface,#fffdf6);padding:14px 16px;margin:0 0 18px;color:var(--r-text,#28251f)}
.xhs-replica.r-rebuild-shell .rr-generation-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.xhs-replica.r-rebuild-shell .rr-generation-choice{display:flex;flex-direction:column;gap:5px;min-width:150px;max-width:100%;font-size:12px;font-weight:600}
.xhs-replica.r-rebuild-shell .rr-generation-choice>span{color:var(--r-muted,#776e5e)}
.xhs-replica.r-rebuild-shell .rr-generation-choice select{min-height:36px;max-width:100%;border:1px solid var(--r-border,#dfd2b5);border-radius:8px;background:var(--r-input,#fff);color:inherit;font:inherit;padding:6px 28px 6px 10px;cursor:pointer}
.xhs-replica.r-rebuild-shell .rr-generation-choice select:focus-visible{outline:2px solid var(--r-accent,#ffdd6c);outline-offset:2px}
.xhs-replica.r-rebuild-shell .rr-generation-choice select:disabled{cursor:default;opacity:.65}
.xhs-replica.r-rebuild-shell .rr-generation-hint{font-size:12px;line-height:1.7;color:var(--r-muted,#827665);margin:9px 0 0}
.xhs-replica.r-rebuild-shell .rr-generation-settings.is-compose{flex-basis:100%;width:100%;border:0;border-top:1px solid var(--r-border,#eee0bd);border-radius:0;background:transparent;padding:12px 0 0;margin:0;order:10}
.xhs-replica.r-rebuild-shell .rr-generation-settings.is-compose .rr-generation-fields{gap:8px}
.xhs-replica.r-rebuild-shell .rr-generation-settings.is-compose .rr-generation-choice{flex:1;min-width:150px}
.xhs-replica.r-rebuild-shell .rr-generation-rule{white-space:pre-wrap;overflow-wrap:anywhere;max-height:62vh;overflow:auto;font:14px/1.9 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;padding:16px;border:1px solid var(--r-border,#e7d9b8);border-radius:10px;background:var(--r-surface,#fffdf6);color:var(--r-text,#28251f)}
.xhs-replica.r-rebuild-shell .rr-generation-actual{font-size:12px;line-height:1.7;background:var(--r-surface,#fff8df);color:var(--r-text,#51452e);border-left:3px solid var(--r-accent,#e2b73d);padding:8px 11px;margin:0 12px 10px;overflow-wrap:anywhere}
.xhs-replica.r-rebuild-shell .rr-generation-actual.is-history{color:var(--r-muted,#8a8173);background:transparent;border-left-color:var(--r-border,#e7deca)}
@media(max-width:700px){.xhs-replica.r-rebuild-shell .rr-generation-settings{padding:12px}.xhs-replica.r-rebuild-shell .rr-generation-choice,.xhs-replica.r-rebuild-shell .rr-generation-settings.is-compose .rr-generation-choice{flex:1 1 100%;min-width:0}.xhs-replica.r-rebuild-shell .rr-generation-settings .r-btn{min-height:36px}.xhs-replica.r-rebuild-shell .rr-generation-hint{font-size:11px}}

/* Reference tools: keep Redya's vertical home with the site's red / black / yellow palette. */
.xhs-replica.r-rebuild-shell .rr-home.rr-home-compact{max-width:1000px;margin:clamp(22px,5vh,64px) auto 0}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-hero{margin-bottom:25px;width:auto;max-width:none}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-hero h1{font-size:clamp(30px,3.2vw,46px);line-height:1.35;margin:15px 0 10px;letter-spacing:-1px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-hero>p{font-size:15px;line-height:1.7;margin:0 0 10px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-hero>small{font-size:12px;line-height:1.7;margin-top:7px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose .rr-link-row{min-height:68px;padding:12px 16px;gap:12px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose .rr-link-row input[data-r-field]{height:42px;min-height:42px;font-size:14px;padding:0 12px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose .rr-link-row .rr-parse{height:42px;min-height:42px;width:86px;flex-basis:86px;font-size:14px;padding:8px 12px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose .rr-prompt-wrap{padding:6px 17px 16px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose .rr-prompt-wrap textarea.rr-prompt{min-height:90px;height:108px;font-size:15px;line-height:1.8;resize:vertical}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-attached{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;padding:0 16px 12px;margin:0;scrollbar-width:thin}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-attached>button{flex:0 0 62px;width:62px;margin:0;min-height:75px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-attached img{height:57px;width:52px;object-fit:contain}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-attached small{font-size:10px;line-height:16px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-parsed{display:flex;gap:12px;align-items:center;padding:10px 16px;min-height:60px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-parsed>div:first-child{min-width:0;flex:1}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-parsed strong{font-size:13px;line-height:1.6;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-parsed small{font-size:11px;line-height:1.7}
.xhs-replica.r-rebuild-shell .rr-reference-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-parsed .r-btn{font-size:12px;padding:6px 9px;min-height:33px;gap:5px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose-primary{display:flex;flex-wrap:nowrap;align-items:center;padding:10px 16px;gap:10px;min-height:62px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose-primary>.rr-generation-choice{flex:1;min-width:150px;max-width:255px;position:relative}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose-primary>.rr-generation-choice>span{position:absolute;top:-8px;left:9px;background:#fff;padding:0 4px;font-size:10px;line-height:14px;color:#888}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose-primary>.r-btn{font-size:13px;min-height:38px;padding:7px 10px;white-space:nowrap}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose-primary .rr-select select[data-r-field]{font-size:14px;min-height:38px;height:38px;min-width:100px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose-icons{display:flex;align-items:center;margin-left:auto;gap:5px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose-icons>.rr-tool{width:32px;height:36px;flex-basis:32px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose-icons>.rr-tool>.rr-icon{width:18px;height:18px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-send{width:40px;height:40px;min-width:40px;flex-basis:40px;margin-left:4px}
.xhs-replica.r-rebuild-shell .rr-compose-secondary{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:12px 16px;border-top:1px solid #eee}
.xhs-replica.r-rebuild-shell .rr-compose-secondary .rr-generation-choice{flex:1;min-width:170px;font-size:11px;gap:4px}
.xhs-replica.r-rebuild-shell .rr-compose-secondary .rr-generation-choice select{font-size:13px;min-height:35px}
.xhs-replica.r-rebuild-shell .rr-compose-secondary>.r-btn{font-size:12px;min-height:35px;padding:6px 9px;white-space:nowrap}
.xhs-replica.r-rebuild-shell .rr-compose-secondary>small{flex-basis:100%;font-size:11px;line-height:16px;color:#999;margin-top:-2px}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-examples{max-width:1200px;width:min(1200px,calc(100vw - 290px));margin:38px 0 0;position:relative;left:50%;transform:translateX(-50%)}
.xhs-replica.r-rebuild-shell .rr-home-compact .rr-product-context{margin-top:14px}
.xhs-replica.r-rebuild-shell [data-rr-modal=source]>.r-modal,.xhs-replica.r-rebuild-shell [data-rr-modal=reference-text]>.r-modal{width:min(1280px,100%);height:calc(100dvh - 40px);max-height:calc(100dvh - 40px);display:flex;flex-direction:column}
.xhs-replica.r-rebuild-shell [data-rr-modal=source] .rr-modal-heading,.xhs-replica.r-rebuild-shell [data-rr-modal=reference-text] .rr-modal-heading{padding:15px 20px;flex:none}
.xhs-replica.r-rebuild-shell [data-rr-modal=source] .rr-modal-body{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;padding:0 20px 12px}
.xhs-replica.r-rebuild-shell [data-rr-modal=source] .rr-modal-footer,.xhs-replica.r-rebuild-shell [data-rr-modal=reference-text] .rr-modal-footer{flex:none;display:flex;align-items:center;gap:10px;padding:12px 20px;border-top:1px solid #eee;background:#fff}
.xhs-replica.r-rebuild-shell .rr-source-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0 15px;flex:none}
.xhs-replica.r-rebuild-shell .rr-source-heading strong{font-size:14px;line-height:22px}
.xhs-replica.r-rebuild-shell .rr-source-heading small{font-size:12px;line-height:20px;display:block;color:#999}
.xhs-replica.r-rebuild-shell .rr-source-heading .r-btn{font-size:12px;min-height:35px;padding:6px 10px}
.xhs-replica.r-rebuild-shell .rr-source-columns{display:grid;grid-template-columns:170px minmax(0,1fr);gap:16px;min-height:0;flex:1}
.xhs-replica.r-rebuild-shell .rr-source-thumbnails{overflow:auto;min-height:0;padding-right:7px;scrollbar-width:thin}
.xhs-replica.r-rebuild-shell .rr-source-thumbnails .r-source-item{display:block;position:relative;padding:8px;border:1px solid #e7e7e7;border-radius:9px;margin:0 0 10px;background:#fff}
.xhs-replica.r-rebuild-shell .rr-source-thumbnails .r-source-item.is-selected{border-color:#f32443;background:#fff9f8}
.xhs-replica.r-rebuild-shell .rr-source-thumbnails .r-source-item.is-previewed{box-shadow:0 0 0 2px #efd37b inset}
.xhs-replica.r-rebuild-shell .rr-source-check{display:flex;gap:7px;align-items:center;font-size:11px;line-height:20px;margin-bottom:6px;cursor:pointer}
.xhs-replica.r-rebuild-shell .rr-source-check input{width:16px;height:16px;margin:0;accent-color:#f32443}
.xhs-replica.r-rebuild-shell .rr-source-thumbnail{border:0;padding:0;background:none;width:100%;cursor:pointer;color:#777}
.xhs-replica.r-rebuild-shell .rr-source-thumbnail img{width:100%;height:132px;object-fit:contain;display:block;background:#fafafa;border-radius:4px}
.xhs-replica.r-rebuild-shell .rr-source-thumbnail span{font-size:10px;line-height:18px;display:block;margin-top:5px}
.xhs-replica.r-rebuild-shell [data-rr-source-preview-slot]{display:flex;min-height:0;min-width:0}
.xhs-replica.r-rebuild-shell .rr-source-preview{display:flex;flex-direction:column;min-width:0;min-height:0;flex:1;border:1px solid #e7e7e7;border-radius:9px;overflow:hidden}
.xhs-replica.r-rebuild-shell .rr-source-preview>header{display:flex;gap:10px;align-items:center;justify-content:space-between;flex:none;padding:9px 12px;border-bottom:1px solid #eee}
.xhs-replica.r-rebuild-shell .rr-source-preview>header>strong{font-size:13px;white-space:nowrap}
.xhs-replica.r-rebuild-shell .rr-source-preview>header .r-actions{gap:5px;align-items:center}
.xhs-replica.r-rebuild-shell .rr-source-preview>header .r-btn{font-size:11px;min-height:29px;padding:4px 7px}
.xhs-replica.r-rebuild-shell .rr-source-preview>header [data-r-zoom-label]{font-size:11px;min-width:66px;text-align:center;color:#999}
.xhs-replica.r-rebuild-shell .rr-source-preview .r-preview-viewport{flex:1;min-height:0;height:auto;overflow:auto;display:grid;place-items:center;background:#f7f6f2;padding:8px}
.xhs-replica.r-rebuild-shell .rr-source-preview .r-preview-canvas{flex:none;line-height:0;max-width:none;max-height:none;margin:auto}
.xhs-replica.r-rebuild-shell .rr-source-preview .r-preview-image{max-width:none;max-height:none;object-fit:contain;display:block}
.xhs-replica.r-rebuild-shell .rr-source-selection{margin-right:auto;color:#888;font-size:12px}
.xhs-replica.r-rebuild-shell [data-rr-modal=reference-text] .rr-modal-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;padding:0 20px 14px}
.xhs-replica.r-rebuild-shell .rr-text-status{font-size:13px;line-height:1.8;border:1px solid #eddfb4;border-radius:9px;background:#fffaf0;padding:12px 15px;margin-bottom:12px;flex:none}
.xhs-replica.r-rebuild-shell .rr-text-status>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:7px}
.xhs-replica.r-rebuild-shell .rr-text-status span{font-size:12px;color:#8e8165}
.xhs-replica.r-rebuild-shell .rr-text-status .r-btn{margin:2px 7px 2px 0;font-size:12px;min-height:33px;padding:6px 11px}
.xhs-replica.r-rebuild-shell .rr-text-status .rr-hint{font-size:11px;line-height:1.7;margin:6px 0 0}
.xhs-replica.r-rebuild-shell .rr-text-history{display:inline-flex;align-items:center;gap:8px;font-size:11px;color:#888}
.xhs-replica.r-rebuild-shell .rr-text-history select{font:inherit;max-width:300px;min-height:31px;padding:4px 6px;border:1px solid #e6dfcc;border-radius:5px;background:white;color:#665d4b}
.xhs-replica.r-rebuild-shell .rr-text-tabs{display:flex;gap:5px;border-bottom:1px solid #eee;padding:0 0 10px;flex:none}
.xhs-replica.r-rebuild-shell .rr-text-tabs .r-btn{font-size:13px;min-height:33px;padding:6px 15px}
.xhs-replica.r-rebuild-shell .rr-text-tabs [aria-current=page]{border-color:#d5b24d;background:#fff7da;color:#473b1f}
.xhs-replica.r-rebuild-shell .rr-text-complete{display:flex;flex:1;min-height:200px;flex-direction:column}
.xhs-replica.r-rebuild-shell .rr-text-complete[hidden],.xhs-replica.r-rebuild-shell .rr-text-pages[hidden]{display:none}
.xhs-replica.r-rebuild-shell .rr-text-complete>p{font-size:12px;line-height:1.7;color:#999;margin:10px 0}
.xhs-replica.r-rebuild-shell .rr-text-complete>textarea{flex:1;min-height:180px;width:100%;font:14px/1.9 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;padding:14px;border:1px solid #ddd;border-radius:9px;resize:none;background:#fff;box-sizing:border-box;color:#333}
.xhs-replica.r-rebuild-shell .rr-text-complete>.r-actions{flex:none;display:flex;gap:10px;align-items:center;margin-top:9px}
.xhs-replica.r-rebuild-shell .rr-text-complete>.r-actions .r-btn{min-height:33px;font-size:12px;padding:6px 11px}
.xhs-replica.r-rebuild-shell [data-rr-text-save-status]{font-size:11px;line-height:1.7;color:#999;margin-right:auto}
.xhs-replica.r-rebuild-shell .rr-text-pages{overflow:auto;min-height:0;padding-top:10px}
.xhs-replica.r-rebuild-shell .rr-text-pages article{padding:14px;border:1px solid #e7e7e7;border-radius:8px;margin-bottom:12px}
.xhs-replica.r-rebuild-shell .rr-text-pages article>header{display:flex;gap:12px;align-items:center;font-size:13px}
.xhs-replica.r-rebuild-shell .rr-text-pages article>header span{font-size:11px;color:#999}
.xhs-replica.r-rebuild-shell .rr-text-pages pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.9 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;margin:12px 0 0}
.xhs-replica.r-rebuild-shell .rr-text-pages ul{color:#b55a36;font-size:12px;line-height:1.8}
@media(min-width:1000px) and (max-height:820px){.xhs-replica.r-rebuild-shell .rr-home.rr-home-compact{margin-top:14px}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-hero{margin-bottom:17px}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-hero h1{font-size:34px;margin:10px 0 6px}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-hero>p{font-size:13px;margin-bottom:4px}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-hero>small{font-size:11px}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose .rr-prompt-wrap textarea.rr-prompt{height:76px;min-height:76px}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-attached img{height:45px}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-attached>button{min-height:62px}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-examples{margin-top:28px}}
@media(max-width:1100px){.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose-primary{gap:6px}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose-primary>.rr-generation-choice{min-width:135px;max-width:200px}.xhs-replica.r-rebuild-shell .rr-compose-secondary .rr-generation-choice{min-width:140px}.xhs-replica.r-rebuild-shell .rr-source-columns{grid-template-columns:145px minmax(0,1fr)}.xhs-replica.r-rebuild-shell .rr-source-preview>header{flex-wrap:wrap}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-parsed{align-items:flex-start;flex-direction:column;gap:7px}}
@media(max-width:800px){.xhs-replica.r-rebuild-shell .rr-home.rr-home-compact{margin-top:24px}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-hero h1{font-size:30px}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose-primary{flex-wrap:wrap}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-compose-primary>.rr-generation-choice{min-width:160px;max-width:none}.xhs-replica.r-rebuild-shell .rr-home-compact .rr-examples{width:100%;left:auto;transform:none}.xhs-replica.r-rebuild-shell [data-rr-modal=source]>.r-modal,.xhs-replica.r-rebuild-shell [data-rr-modal=reference-text]>.r-modal{height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}.xhs-replica.r-rebuild-shell [data-rr-modal=source] .rr-modal-body{padding:0 12px 9px}.xhs-replica.r-rebuild-shell .rr-source-heading{flex-wrap:wrap}.xhs-replica.r-rebuild-shell .rr-source-columns{grid-template-columns:105px minmax(0,1fr);gap:8px}.xhs-replica.r-rebuild-shell .rr-source-thumbnail img{height:105px}.xhs-replica.r-rebuild-shell .rr-source-check{font-size:10px}.xhs-replica.r-rebuild-shell .rr-source-preview>header .r-actions{gap:3px}.xhs-replica.r-rebuild-shell .rr-source-preview>header .r-btn{font-size:10px;padding-inline:5px}.xhs-replica.r-rebuild-shell [data-rr-modal=source] .rr-modal-footer,.xhs-replica.r-rebuild-shell [data-rr-modal=reference-text] .rr-modal-footer{flex-wrap:wrap;padding:10px 12px}.xhs-replica.r-rebuild-shell [data-rr-modal=source] .rr-modal-footer .r-btn,.xhs-replica.r-rebuild-shell [data-rr-modal=reference-text] .rr-modal-footer .r-btn{font-size:12px;min-height:35px;padding:6px 10px}}
.xhs-replica.r-rebuild-shell .rr-source-thumbnails .r-source-item{width:auto;min-width:0}
.xhs-replica.r-rebuild-shell .rr-text-composition-notes:empty{display:none}
.xhs-replica.r-rebuild-shell .rr-text-composition-notes{font-size:11px;line-height:1.7;color:#9a7845;background:#fffbef;padding:6px 10px;margin-bottom:9px;border-radius:5px}
.xhs-replica.r-rebuild-shell .rr-text-composition-notes p{margin:3px 0}
.xhs-replica.r-rebuild-shell .rr-reference-download-ready:empty,.xhs-replica.r-rebuild-shell .rr-text-download-ready:empty{display:none}
.xhs-replica.r-rebuild-shell .rr-reference-download-ready,.xhs-replica.r-rebuild-shell .rr-text-download-ready{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px;width:100%;flex-basis:100%;margin-top:6px}
.xhs-replica.r-rebuild-shell .rr-ready-download{color:#96681e;border-color:#ead392;background:#fff9e7;font-size:12px;min-height:33px;text-decoration:none;padding:6px 10px}
.xhs-replica.r-rebuild-shell .rr-ready-filename{font-size:11px;line-height:1.7;color:#8c7b5a;overflow-wrap:anywhere;max-width:100%}
.xhs-replica.r-rebuild-shell .rr-source-heading>.r-actions,.xhs-replica.r-rebuild-shell [data-rr-modal=reference-text] .rr-modal-footer{flex-wrap:wrap}
.xhs-replica.r-rebuild-shell .rr-source-heading>.r-actions{justify-content:flex-end;max-width:65%}
.xhs-replica.r-rebuild-shell .rr-source-heading .rr-reference-download-ready{justify-content:flex-end}
