/* A single bounded preview row; detailed reading belongs to /works/ and /cases/. */
html #selected [data-r184-single-row] [data-r78-stage]{display:grid!important;grid-template-columns:repeat(var(--r80-columns,4),minmax(0,1fr))!important;grid-auto-flow:column!important;grid-template-rows:1fr!important;gap:18px!important;align-items:stretch!important;width:100%!important;min-width:0!important;margin:16px 0!important;}
html #selected [data-r184-single-row] [data-r78-stage]>.r184-home-work{display:flex!important;flex-direction:column!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important;border:1px solid #e2d9ef!important;border-radius:14px!important;overflow:hidden!important;background:#fff!important;grid-column:auto!important;grid-row:1!important;}
html #selected [data-r184-single-row] [data-r78-stage]>.r184-home-work[hidden],
html #selected [data-r184-single-row]:not([data-r78-ready]) [data-r78-stage]>.r184-home-work:not(:first-child){display:none!important;}
html #selected .r184-preview{display:block!important;flex:0 0 240px!important;height:240px!important;min-height:0!important;overflow:hidden!important;background:#f1eef7!important;}
html #selected .r184-preview>video,html #selected .r184-preview>a,html #selected .r184-preview img{display:block!important;width:100%!important;height:240px!important;max-height:240px!important;min-height:0!important;object-fit:contain!important;margin:0!important;padding:0!important;border:0!important;}
html #selected .r184-preview-copy{display:flex!important;flex-direction:column!important;gap:10px!important;padding:17px!important;flex:1!important;min-width:0!important;}
html #selected .r184-preview-copy h3{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;margin:0!important;min-height:2.8em!important;font-size:18px!important;line-height:1.4!important;color:#2d2448!important;}
html #selected .r184-preview-copy p{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden!important;margin:0!important;height:4.8em!important;font-size:13px!important;line-height:1.6!important;color:#7b6d88!important;}
html #selected .r184-work-details{display:inline-block!important;margin-top:auto!important;font-size:13px!important;font-weight:600!important;color:#68459b!important;text-decoration:none!important;}
html #selected .r184-all-works{display:block;margin:15px 0 0;text-align:right;color:#68459b;font-size:14px;font-weight:600;text-decoration:none;}
html #selected [data-r184-single-row] .r153-project-variants,
html #selected [data-r184-single-row] .r86-bottom-controls,
html #selected [data-r184-single-row] [data-r78-view="report"],
html #selected [data-r184-single-row] [data-r78-view="writing"]{display:none!important;}
html #selected [data-r184-single-row] [data-r78-index]{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow:hidden!important;}
html #selected [data-r184-single-row] [data-r78-index]>button{flex:1 1 0!important;min-width:0!important;}
html #selected .r184-library-link{display:inline-flex;align-items:center;padding:10px 14px;color:#775c95;text-decoration:none;font-size:14px;white-space:nowrap;}
html[data-r182-works] .r184-work-reading{margin-top:10px;border-top:1px solid #e8e0f1;padding-top:10px;}
html[data-r182-works] .r184-work-reading>summary{display:flex;justify-content:space-between;cursor:pointer;list-style:none;color:#68459b;font-size:13px;font-weight:600;}
html[data-r182-works] .r184-work-reading .folio-detail{display:block!important;margin:12px 0 0!important;padding:0!important;max-height:none!important;overflow:visible!important;}
html[data-r182-works] .r184-work-reading .folio-detail h4{font-size:14px;line-height:1.5;margin:14px 0 6px;}
html[data-r182-works] .r184-work-reading .folio-detail p{font-size:13px;line-height:1.7;margin:8px 0;}
html[data-r182-works] .r182-project-card[data-r184-focused]{border-color:#9c7fc2;box-shadow:0 0 0 2px #eee7f7;}
html[data-r182-works] main #case-studies{display:none!important;}
html[data-r182-cases-page] main #portfolio-browser,
html[data-r182-cases-page] main #writing-samples,
html[data-r182-cases-page] main #r36-report-library{display:none!important;}
html[data-r182-cases-page] main #case-studies{display:block!important;}
html[data-r182-cases-page] #case-studies [data-r93-case-stage]{display:block!important;}
html[data-r182-cases-page] #case-studies [data-r93-case-stage]>[data-record][hidden],
html[data-r182-cases-page] #case-studies:not([data-r93-ready]) [data-r93-case-stage]>[data-record]:not(:first-child){display:none!important;}
html[data-r182-cases-page] #case-studies .r95-detail-content{height:auto!important;max-height:none!important;overflow:visible!important;}
@media(max-width:760px){html #selected [data-r184-single-row] [data-r78-stage]{--r80-columns:1;gap:12px!important;}html #selected .r184-preview-copy{padding:14px!important;}}
