.super-admin-body-render-library { min-width: 0; }
.rl-panel { background: #ecf3ef; border: 1px solid #d4e0da; border-radius: 16px; padding: 20px; min-width: 0; }
.rl-heading, .rl-inspector-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; flex-wrap: wrap; }
.rl-heading h2 { margin: 4px 0 6px; }
.rl-heading p, .rl-inspector-heading p { color: var(--muted); font-size: 13px; margin: 5px 0; }
.rl-readonly { color: var(--teal); font-size: 12px; padding: 6px 8px; border: 1px solid #ceded8; border-radius: 6px; background: #f7fbf9; }
.rl-view-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding: 16px 0 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rl-view-tabs a, .rl-view-tabs span { padding: 8px 11px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; border-radius: 7px; }
.rl-view-tabs span { background: var(--surface); color: var(--teal); border: 1px solid var(--line); }
.rl-filters { display: grid; grid-template-columns: minmax(160px,1fr) minmax(130px,180px) auto auto; align-items: end; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.rl-filters label { display: grid; gap: 5px; min-width: 0; }
.rl-filters label > span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.rl-filters input, .rl-filters select { width: 100%; min-width: 0; height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; color: var(--ink); }
.rl-scope { display:flex; gap: 10px; flex-wrap:wrap; align-items:center; font-size:12px; color:var(--muted); margin:12px 0; }
.rl-scope > span:last-child { margin-left:auto; }
.rl-scope button { padding:4px 0; border:0; background:transparent; color:var(--teal); font-weight:700; }
.rl-layout { display:grid; grid-template-columns:minmax(190px,.27fr) minmax(0,1fr); gap:14px; align-items:start; }
.rl-tree, .rl-inspector { background:var(--surface); border:1px solid var(--line); border-radius:11px; min-width:0; }
.rl-tree { padding:12px 8px; }
.rl-tree-heading { font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; padding:3px 7px 10px; }
.rl-tree button { display:block; width:100%; border:0; background:transparent; text-align:left; border-radius:6px; color:var(--ink); white-space:normal; overflow-wrap:anywhere; }
.rl-tree .rl-tenant { font-size:13px; font-weight:800; padding:10px 7px; }
.rl-tree .rl-tenant:hover { background:var(--soft); }
.rl-client { font-size:12px; padding:7px 10px 4px 18px; color:var(--muted); overflow-wrap:anywhere; }
.rl-tree .rl-room { padding:8px 8px 8px 28px; font-size:12px; }
.rl-room span, .rl-room small { display:block; }
.rl-room small { font-size:11px; color:var(--muted); margin-top:3px; }
.rl-tree .rl-room.active { background:var(--teal-soft); box-shadow:inset 3px 0 #72a89a; }
.rl-inspector { padding:18px; }
.rl-breadcrumb { display:flex; gap:7px; flex-wrap:wrap; color:var(--muted); font-size:12px; margin-bottom:12px; overflow-wrap:anywhere; }
.rl-inspector-heading { margin-bottom:15px; }
.rl-inspector-heading h3 { margin:0; font-size:19px; }
.rl-inspector-heading div { min-width:0; overflow-wrap:anywhere; }
.rl-status { background:var(--teal-soft); color:var(--teal); font-size:11px; border-radius:5px; padding:4px 7px; }
.rl-comparison { position:relative; aspect-ratio:16/9; border-radius:8px; overflow:hidden; background:var(--soft); border:1px solid var(--line); }
.rl-image { position:absolute; inset:0; background:var(--soft); }
.rl-image img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.rl-image .content-ledger-placeholder { position:absolute; inset:0; display:grid; place-items:center; }
.rl-cut { position:absolute; top:0; bottom:0; width:2px; background:#fff; pointer-events:none; }
.rl-cut span { position:absolute; top:45%; left:-14px; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:#fff; color:#206d68; box-shadow:0 2px 8px #0003; }
.rl-image-label { position:absolute; top:10px; left:10px; background:#142a24cc; color:#fff; padding:4px 7px; border-radius:4px; font-size:11px; }
.rl-image-label.rl-right { left:auto; right:10px; }
.rl-slider { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12px; margin:10px 0 18px; }
.rl-slider input { flex:1; min-width:30px; accent-color:var(--teal); }
.rl-history-heading { display:flex; gap:10px; flex-wrap:wrap; justify-content:space-between; margin:16px 0 10px; font-size:13px; }
.rl-history-heading > span { color:var(--muted); font-size:11px; }
.rl-attempts { display:grid; grid-template-columns:repeat(auto-fill,minmax(116px,1fr)); gap:8px; }
.rl-attempt { background:var(--surface); border:1px solid var(--line); border-radius:7px; padding:0 0 8px; overflow:hidden; text-align:left; min-width:0; color:var(--ink); }
.rl-attempt.active { border-color:var(--teal); box-shadow:0 0 0 1px var(--teal); }
.rl-attempt strong,.rl-attempt small { display:block; padding:0 8px; overflow-wrap:anywhere; font-size:11px; margin-top:4px; }
.rl-attempt small { color:var(--muted); }
.rl-attempt-media { position:relative; aspect-ratio:16/9; overflow:hidden; background:var(--soft); margin-bottom:7px; }
.rl-attempt-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.rl-attempt-media .content-ledger-placeholder { position:absolute; inset:0; display:grid; place-items:center; font-size:11px; padding:6px; }
.rl-tabs { display:flex; flex-wrap:wrap; gap:18px; border-bottom:1px solid var(--line); margin-top:20px; }
.rl-tabs button { background:transparent; color:var(--muted); border:0; border-bottom:2px solid transparent; padding:10px 0; font-size:13px; }
.rl-tabs button[aria-pressed=true] { border-bottom-color:var(--teal); color:var(--teal); font-weight:700; }
.rl-tab-content { padding:15px 0; }
.rl-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; margin:0; }
.rl-facts dt { font-size:11px; color:var(--muted); margin-bottom:4px; }
.rl-facts dd { font-size:13px; margin:0; overflow-wrap:anywhere; }
.rl-unknown { font-size:11px; color:var(--muted); margin:0; }
.rl-prompt-heading { display:flex; gap:12px; justify-content:space-between; align-items:center; flex-wrap:wrap; font-size:13px; margin-bottom:10px; }
.rl-prompt { white-space:pre-wrap; overflow-wrap:anywhere; background:#f6f8f5; padding:13px; border:1px solid var(--line); border-radius:7px; font-size:13px; line-height:1.65; margin-bottom:16px; }
.rl-empty,.rl-no-output { display:grid; gap:12px; place-items:center; text-align:center; padding:36px 18px; font-size:13px; color:var(--muted); }
.rl-no-output { background:var(--soft); border-radius:8px; }
.rl-source-only { width:100%; aspect-ratio:16/9; position:relative; overflow:hidden; }
.rl-source-only img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.rl-source-only .content-ledger-placeholder { position:absolute; inset:0; display:grid; place-items:center; }
.rl-load { margin-top:12px; }
.rl-tree .rl-load { border:1px solid var(--line); padding:9px; background:var(--surface); }
@media(max-width:1100px) { .rl-panel{padding:14px}.rl-layout{grid-template-columns:180px minmax(0,1fr)}.rl-filters{grid-template-columns:minmax(130px,1fr) minmax(100px,140px) auto}.rl-filters>button:last-child{grid-column:3}.rl-inspector{padding:14px} }
@media(max-width:800px) { .rl-layout{grid-template-columns:1fr}.rl-tree{display:flex;flex-wrap:wrap;gap:5px}.rl-tree-heading{width:100%}.rl-tree .rl-tenant,.rl-tree .rl-room{width:auto;max-width:100%;padding:8px}.rl-client{padding:8px}.rl-room small{display:none}.rl-tree .rl-load{width:auto}.rl-filters{grid-template-columns:1fr 1fr}.rl-filters label:first-child{grid-column:1/-1}.rl-filters>button:last-child{grid-column:auto} }
@media(max-width:480px) { .rl-panel{padding:10px}.rl-inspector{padding:10px}.rl-facts{grid-template-columns:1fr}.rl-attempts{grid-template-columns:repeat(2,minmax(0,1fr))}.rl-breadcrumb{font-size:11px}.rl-heading h2{font-size:22px}.rl-tabs{gap:14px}.rl-filters{padding:9px}.rl-comparison{aspect-ratio:4/3} }
@media(pointer:coarse) { .rl-tree button,.rl-tabs button {min-height:44px}.rl-filters input,.rl-filters select {font-size:16px;min-height:44px} }
/* Tenant card library. Counts are deliberately scoped to loaded records. */
.rl-cards { background:transparent; border:0; padding:8px 0 28px; }
.rl-cards .rl-heading { margin-bottom:22px; align-items:center; }
.rl-cards .rl-heading h2 { font-size:28px; letter-spacing:-.7px; }
.rl-cards .rl-filters { grid-template-columns:minmax(180px,400px) auto auto; justify-content:start; background:transparent; border:0; padding:0; margin-bottom:18px; }
.rl-tenant-grid,.rl-render-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.rl-tenant-card,.rl-render-card { display:block; min-width:0; width:100%; padding:0; overflow:hidden; text-align:left; border:1px solid #dce5e1; border-radius:12px; background:var(--surface); color:var(--ink); cursor:pointer; }
.rl-tenant-card:hover,.rl-render-card:hover { border-color:#83b09d; box-shadow:0 5px 20px #16412e14; }
.rl-tenant-card:focus-visible,.rl-render-card:focus-visible { outline:3px solid var(--teal); outline-offset:3px; }
.rl-collage { display:grid; grid-template-columns:2fr 1fr; grid-template-rows:100px 100px; gap:3px; background:var(--soft); overflow:hidden; }
.rl-collage>div { position:relative; min-width:0; overflow:hidden; }
.rl-collage>div:first-child { grid-row:1/3; }
.rl-collage>div:only-child { grid-column:1/-1; }
.rl-collage>div:nth-child(2):last-child { grid-row:1/3; }
.rl-cover-placeholder { grid-area:1/1/3/3; display:grid; place-items:center; color:var(--muted); font-size:12px; }
.rl-collage img,.rl-card-image img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.rl-collage .content-ledger-placeholder,.rl-card-image .content-ledger-placeholder { position:absolute; inset:0; display:grid; place-items:center; font-size:11px; background:var(--soft); }
.rl-card-body { padding:16px; overflow-wrap:anywhere; }
.rl-card-title { display:flex; gap:10px; align-items:center; }
.rl-card-title h3 { flex:1; }
.rl-avatar { display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; background:#e1ebe5; color:#466459; border-radius:8px; font-size:12px; font-weight:700; }
.rl-card-body h3 { margin:0; font-size:14px; line-height:1.5; }
.rl-card-body p { font-size:11px; color:var(--muted); margin:8px 0 0; }
.rl-card-body footer { display:flex; justify-content:space-between; gap:10px; margin-top:16px; padding-top:12px; border-top:1px solid var(--line); font-size:10px; color:var(--muted); }
.rl-card-body footer span { min-width:0; }
.rl-project { margin:30px 0; }
.rl-project>header { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:13px; }
.rl-project>header p { font-size:10px; letter-spacing:.06em; color:var(--muted); margin:0 0 5px; }
.rl-project>header h3 { margin:0; font-size:17px; overflow-wrap:anywhere; }
.rl-project>header>span { font-size:11px; color:var(--muted); flex-shrink:0; }
.rl-card-image { height:195px; position:relative; background:var(--soft); overflow:hidden; }
.rl-card-image>.rl-status { position:absolute; top:10px; left:10px; }
.rl-status-review { background:#fbf2df; color:#89672e; }
.rl-status-approved { background:#e5f0e8; color:#48725a; }
.rl-status-failed { background:#f6e8e4; color:#9d6556; }
.rl-status-processing { background:#e5edf2; color:#5b7d93; }
.rl-card-count { position:absolute; bottom:10px; right:10px; padding:5px 7px; border-radius:4px; background:#203c39cc; color:white; font-size:10px; }
.rl-source-label { position:absolute; top:45%; left:10px; right:10px; padding:8px; text-align:center; font-size:11px; background:#f4f6f0ed; color:#50695a; }
.rl-status-tabs { display:flex; flex-wrap:wrap; gap:5px; padding:12px 0; border-block:1px solid var(--line); }
.rl-status-tabs button { border:0; background:transparent; border-radius:7px; padding:10px 13px; font-size:12px; color:var(--muted); }
.rl-status-tabs button[aria-pressed=true] { background:#e1ece6; color:#2b6757; font-weight:700; }
.rl-library-note { margin-top:24px; line-height:1.6; }
.rl-dialog { width:calc(100% - 60px); max-width:1220px; max-height:calc(100dvh - 60px); border:1px solid var(--line); padding:0; border-radius:14px; background:var(--surface); color:var(--ink); box-shadow:0 20px 80px #132e3540; overflow:auto; }
.rl-dialog::backdrop { background:#102d29a8; backdrop-filter:blur(3px); }
.rl-dialog-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 22px; border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--surface); z-index:2; }
.rl-dialog-bar strong { font-size:13px; }
.rl-dialog .rl-inspector { border:0; padding:22px; }
.rl-dialog .rl-comparison { max-height:55vh; }
.rl-dialog .rl-attempts { display:flex; overflow:auto; padding:2px 2px 8px; }
.rl-dialog .rl-attempt { flex:0 0 124px; }
@media(max-width:1150px) { .rl-tenant-grid,.rl-render-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } }
@media(max-width:700px) { .rl-tenant-grid,.rl-render-grid { grid-template-columns:1fr; } .rl-cards .rl-filters { grid-template-columns:1fr auto; } .rl-cards .rl-filters label:first-child { grid-column:1/-1; } .rl-dialog { width:calc(100% - 24px); max-height:calc(100dvh - 24px); } .rl-dialog .rl-inspector { padding:14px; } .rl-project>header { align-items:start; } }
.rl-inspection-content { display:grid; grid-template-columns:minmax(0,1fr) 265px; gap:22px; }
.rl-inspection-main,.rl-inspection-facts { min-width:0; }
.rl-inspection-facts { padding-left:22px; border-left:1px solid var(--line); }
.rl-inspection-facts .rl-tabs { gap:12px; margin-top:0; }
.rl-inspection-facts .rl-tabs button { font-size:11px; }
.rl-inspection-facts .rl-facts { grid-template-columns:1fr; gap:18px; }
@media(max-width:1100px) { .rl-inspection-content { grid-template-columns:minmax(0,1fr) 225px; gap:16px; } .rl-inspection-facts { padding-left:16px; } }
@media(max-width:700px) { .rl-inspection-content { grid-template-columns:1fr; } .rl-inspection-facts { border-left:0; border-top:1px solid var(--line); padding:18px 0 0; } }

.rl-history-status { padding:10px 22px 0; color:var(--muted); font-size:11px; }

.rl-pagination {display:flex;align-items:center;justify-content:center;gap:18px;padding:22px 0;flex-wrap:wrap;}
.rl-expired-filter {display:flex;align-items:center;gap:8px;margin:12px 0;color:var(--text-muted);font-size:13px;}
.rl-expired-filter input {width:auto;}
