/* ROIHYOU RH163: unified curated positions + operational CMS. */
.rh163-editorial{margin:1.5rem 0 2.5rem;clear:both;}
.rh163-editorial-heading{display:flex;align-items:baseline;gap:1rem;margin-bottom:1rem;border-bottom:1px solid #c7c1b6;padding-bottom:1rem}
.rh163-editorial-heading small{font-size:.66rem;letter-spacing:.16em;color:#78726b}.rh163-editorial-heading h2{font-size:1.45rem;font-weight:400;margin:0}
.rh163-editorial-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.rh163-feature{border:1px solid #c6c0b5;padding:22px;min-height:180px;display:flex;flex-direction:column;justify-content:space-between;text-decoration:none!important;color:inherit!important;background:rgba(255,255,255,.16)}
.rh163-feature:hover{background:rgba(0,0,0,.035)}.rh163-feature-top{font-size:10px;letter-spacing:.12em;color:#777168}
.rh163-feature img{max-height:130px;width:100%;object-fit:cover;margin:12px 0}.rh163-feature h3{font-family:serif;font-weight:400;font-size:1.45rem;margin:8px 0}.rh163-feature>span{text-align:right}.rh163-feature-ad{background:rgba(165,150,113,.09)}
.rh163-executive{margin:1rem 0 2rem}.rh163-panel-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin:0 0 1.25rem}.rh163-panel-title small{font-size:.65rem;letter-spacing:.14em;color:#908777}.rh163-panel-title h2{font-weight:400;font-size:1.7rem;margin:.25rem 0}.rh163-panel-title p{color:#77716a;line-height:1.5;margin:0}
.rh163-toolbar{display:flex;align-items:end;gap:.7rem;flex-wrap:wrap}.rh163-toolbar label{display:flex;flex-direction:column;font-size:.8rem;gap:.25rem}.rh163-toolbar select,.rh163-toolbar button{min-height:38px;border:1px solid #c9c3b8;background:#faf9f6;padding:8px 12px;color:inherit}
.rh163-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:20px 0}
.rh163-stat{border:1px solid #cec8bd;background:#faf9f6;min-height:125px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;color:#25221f;cursor:pointer}.rh163-stat strong{font-size:2rem;font-weight:500}.rh163-stat span{color:#676057;font-size:.8rem}.rh163-stat small{font-size:.7rem;color:#989085}
.rh163-block-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rh163-block-grid>.card{min-width:0;padding:20px}.rh163-block-grid h3{font-size:1.15rem;font-weight:400;margin:0 0 15px}
.rh163-pipe,.rh163-topitem{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #ded9d0;font-size:.85rem}.rh163-pipe span,.rh163-topitem span{flex:1;min-width:0;overflow-wrap:anywhere}.rh163-pipe small,.rh163-topitem small{color:#8b837b;font-size:.7rem}
.rh163-trend-bars{display:flex;height:175px;align-items:end;gap:3px}.rh163-day{flex:1;min-width:2px;display:flex;flex-direction:column;align-items:center;height:100%;justify-content:end}.rh163-day i{background:#668a82;display:block;width:100%;max-width:20px}.rh163-day small{font-size:8px;color:#8b8177;writing-mode:vertical-rl;margin-top:4px}
.rh163-dashboard-preferences{border-top:1px solid #d7d0c5;margin-top:20px;padding:16px 0}.rh163-dashboard-preferences summary{cursor:pointer}.rh163-dashboard-preferences label{margin-right:12px}.rh163-checks{display:flex;gap:16px;flex-wrap:wrap;margin:16px 0}.rh163-dashboard-preferences button{border:1px solid #888;background:#171717;color:white;padding:10px 14px;cursor:pointer}
/* Avoid duplicate old dashboard widgets, while keeping the legacy analytical detail page intact. */
[data-view-panel="dashboard"]:has(#rh163Executive)>.dashboard-hero,[data-view-panel="dashboard"]:has(#rh163Executive)>#metricGrid,[data-view-panel="dashboard"]:has(#rh163Executive)>.dashboard-grid{display:none}
.rh163-settings,.rh163-slot-form{margin:16px 0}.rh163-form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:12px 0}
.rh163-form-row label,#rh163SlotForm>div>label{font-size:.83rem;display:flex;flex-direction:column;gap:8px}
.rh163-form-row input,.rh163-form-row select,#rh163SlotForm input,#rh163SlotForm select{width:100%;min-height:42px;padding:9px;border:1px solid #c9c3b8;background:white;color:#222;box-sizing:border-box}
.rh163-form-row .rh163-check{display:flex;flex-direction:row;align-items:center}.rh163-form-row .rh163-check input{width:auto;min-height:auto}
.rh163-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:10px}.rh163-slot{border:1px solid #d0c9bd;padding:12px;display:flex;justify-content:space-between;gap:8px;background:#f7f5f0}
.rh163-slot>div:first-child{display:flex;flex-direction:column;gap:5px;min-width:0}.rh163-slot small{color:#887f75;font-size:.67rem}.rh163-slot strong{font-size:.95rem}.rh163-slot span{font-size:.75rem;color:#68635b;overflow-wrap:anywhere}.rh163-slot-actions{display:flex;flex-direction:column;gap:5px}.rh163-slot button,.rh163-reorder button{border:1px solid #ccc1b4;background:white;padding:5px 10px;cursor:pointer}.rh163-muted{opacity:.55}
.rh163-slot-form{border-top:1px solid #ccc3b7;padding-top:20px}.rh163-slot-form h3{font-size:1.15rem;font-weight:400}
#rh163SlotContentFields,#rh163SlotAdFields{margin:12px 0}#rh163SlotContentFields>label{display:block;margin-bottom:12px}#rh163SlotContentFields input,#rh163SlotContentFields select{display:block;width:100%;margin-top:7px;padding:10px;border:1px solid #c9c3b8}
.rh163-reorder{display:flex;gap:12px;padding:9px 6px;align-items:center;border-bottom:1px solid #ddd6cc}.rh163-reorder b{flex:1;font-size:.87rem}.rh163-reorder span,.rh163-reorder small{color:#8f877c;font-size:.8rem}
.rh163-notice{border:1px solid #b8b29f;background:#eeeee5;padding:12px;margin:12px 0}.rh163-error{color:#a12e27;border-color:#bd6b60;background:#fff4f2}.rh163-help{font-size:.8rem;line-height:1.6;color:#77716a}
@media(max-width:780px){.rh163-block-grid{grid-template-columns:1fr}.rh163-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.rh163-editorial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rh163-feature{min-height:155px;padding:15px}.rh163-form-row{grid-template-columns:1fr}}

/* Analytics is a set of short, focused tabs rather than one endless dashboard. */
.rh163-analytics-tabs{display:flex;gap:8px;overflow-x:auto;padding:14px 0;white-space:nowrap;border-bottom:1px solid #cfc8bc;margin:12px 0 18px}
.rh163-analytics-tabs button{padding:10px 14px;background:transparent;border:1px solid #d0c9bd;cursor:pointer;color:#59524b}
.rh163-analytics-tabs button.active{background:#26231e;color:#f5f1eb;border-color:#26231e}
.rh163-analysis-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.rh163-analysis-panel[hidden]{display:none!important}
.rh163-analysis-panel>.card{min-width:0;margin:0}
.rh163-analysis-panel>.analytics-wide,.rh163-analysis-panel>.rh153-performance,.rh163-analysis-panel>.rh154-content-inspector,.rh163-analysis-panel>.analytics-inspector{grid-column:1/-1}
@media(max-width:780px){.rh163-analysis-panel{grid-template-columns:1fr}.rh163-analysis-panel>.card{grid-column:1/-1}}

/* RH164: selected works and promotions occupy the existing numbered cards. */
.rh164-inline-slot{min-width:0;min-height:0;height:100%;}
.rh164-inline-slot .rh164-inline-card{position:relative;display:flex;flex-direction:column;justify-content:center;min-width:0;width:100%;height:100%;margin:0;box-sizing:border-box;overflow:hidden;gap:12px;}
.rh164-inline-slot .rh164-inline-card h3{overflow-wrap:anywhere;margin:8px 0;font-weight:400;}
.rh164-inline-slot .rh164-inline-card .card-num{position:absolute;top:22px;right:22px;}
.rh164-inline-slot .rh164-inline-card .eyebrow{max-width:80%;}
.rh164-inline-slot .rh164-inline-media{display:block;width:100%;max-height:42%;object-fit:cover;}
.rh164-inline-slot .poem-card{min-height:390px;}
.rh164-inline-slot .work-card,.rh164-inline-slot .photo-card,.rh164-inline-slot .music-card,.rh164-inline-slot .art-now-card,.rh164-inline-slot .book-card{min-height:260px;border:1px solid var(--line);padding:30px;}
.rh164-inline-slot .project-row,.rh164-inline-slot .exhibition-row{min-height:180px;border-top:1px solid var(--line);padding:30px 20px;}
@media(max-width:640px){.rh164-inline-slot .poem-card{min-height:320px;}}

/* RH164: compact operational drill-down, consistent with the existing CMS aesthetic. */
.rh164-action-panel{margin:16px 0 24px;padding:18px;border:1px solid #d1cbc1;background:#f8f6f1}
.rh164-day-head,.rh164-quality-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 14px}
.rh164-day-head h3,.rh164-quality-head h3{margin:0;font-size:1.12rem;font-weight:500}
.rh164-day-head button,.rh164-quality-grid button{padding:8px 12px;border:1px solid #c8c2b7;background:transparent;cursor:pointer;font:inherit}
.rh164-day-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:22px}
.rh164-day-kpi{border:1px solid #d7d2cb;padding:12px;background:#fff;display:flex;flex-direction:column;gap:12px;min-width:0}
.rh164-day-kpi span{font-size:11px;color:#79746c}.rh164-day-kpi strong{font-size:25px;font-weight:500}
.rh164-quality-head span,.rh164-note{font-size:12px;color:#79746c}
.rh164-quality-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.rh164-quality-grid>div{border:1px solid #d5d0c8;background:#fff;padding:12px;min-width:0}
.rh164-quality-grid h4{margin:0 0 12px;font-weight:500}
.rh164-issue{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #e5e1db;font-size:12px}
.rh164-issue span{overflow-wrap:anywhere}.rh164-issue label{display:flex;align-items:center;gap:6px;white-space:nowrap}
@media(max-width:1100px){.rh164-day-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.rh164-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rh164-quality-grid{grid-template-columns:1fr}.rh164-day-head,.rh164-quality-head{align-items:flex-start;flex-direction:column}}
/* RH165 · editorial operations without a second showcase module */
.rh163-slot-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-content:start;max-width:155px}
.rh163-slot-actions button{padding:5px 8px;font-size:.73rem;min-width:32px}
.rh163-slot-actions button:disabled{opacity:.35;cursor:not-allowed}
.rh163-slot[data-position]{scroll-margin-block:160px}
.rh165-editor-pin{border:1px solid #cfc7bd;background:#f9f7f2;padding:16px;margin:10px 0}
.rh165-editor-pin h3{margin:0 0 6px;font-weight:500}
.rh165-pin-row{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.rh165-pin-row label{display:flex;align-items:center;gap:8px;font-size:13px}
.rh165-pin-row label:first-child{flex-direction:column;align-items:flex-start}
.rh165-pin-row select{padding:10px;min-width:155px;border:1px solid #d0c7bc}
.rh165-analytics-picker{grid-column:1/-1;display:flex;gap:12px;flex-wrap:wrap;border:1px solid #d7d0c5;padding:12px;background:#f8f6f1}
.rh165-analytics-picker label{display:flex;flex-direction:column;gap:6px;max-width:420px;flex:1;min-width:190px}
.rh165-analytics-picker select{width:100%;min-height:41px;max-width:100%;border:1px solid #c9c2b6;background:white;padding:8px}
.rh165-analytics-picker small{width:100%;font-size:12px;color:#797168}
.rh165-link-manager summary{cursor:pointer;font-size:16px;padding:16px 0}
.rh165-link-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:12px 0}
.rh165-link-list{display:grid;gap:8px;max-height:620px;overflow:auto}
.rh165-link-row{display:grid;grid-template-columns:minmax(120px,.9fr) minmax(220px,2fr) minmax(130px,1fr);gap:8px;padding:12px;border:1px solid #ddd4c9;background:#fdfcfb;min-width:0}
.rh165-link-row small{overflow-wrap:anywhere;align-self:center}
.rh165-link-row>input{width:100%;min-width:0;padding:8px;border:1px solid #cac2b7}
.rh165-link-actions{grid-column:2/-1;display:flex;flex-wrap:wrap;gap:8px}
.rh165-link-status{grid-column:1/-1;color:#6c665e}
.rh165-date-review{padding:22px;margin:20px 0;border:1px solid #d2cabe;background:#f8f6f1}
.rh165-date-review h3{font-weight:500;margin:0 0 12px}
.rh165-date-row{display:flex;gap:10px;align-items:flex-start;padding:9px;border-bottom:1px solid #ded8ce;font-size:13px}
.rh165-date-review button{margin:10px 12px 10px 0}
@media(max-width:760px){.rh165-link-row{grid-template-columns:1fr}.rh165-link-actions,.rh165-link-status{grid-column:1/-1}}
