/* Preview controls belong to the portfolio; the Forbes document is isolated in an iframe. */
.uc-viewer { border:1px solid #d8d8d1; border-radius:10px; overflow:hidden; background:#e8e8e2; }
.uc-viewer-bar { display:flex; align-items:center; gap:24px; padding:14px 20px; border-bottom:1px solid #d8d8d1; font-size:12px; background:#f1f1ec; }
.uc-viewer-bar strong { font-weight:500; }.uc-viewer-bar span { color:#67675f; margin-left:14px; }.uc-viewer-bar a { margin-left:auto; color:inherit; text-decoration:none; }
.uc-viewer-actions { display:flex; padding:3px; border:1px solid #d8d8d1; border-radius:6px; }.uc-viewer-actions :is(button, a) { box-sizing:border-box; display:block; height:24px; border:0; background:transparent; color:#62625b; padding:0 12px; font:inherit; line-height:24px; border-radius:3px; cursor:pointer; text-decoration:none; }.uc-viewer-actions :is(button[aria-pressed="true"], a[aria-current]) { background:#fff; color:#171713; box-shadow:0 1px 3px #0001; }.uc-viewer-actions :is(button, a):hover { color:#171713; }
.uc-viewer-viewport { height:760px; max-height:80vh; min-height:500px; position:relative; overflow:hidden; }
.uc-viewer-frame { position:absolute; border:0; background:#fff; top:0; left:50%; transform-origin:top left; transform:translateX(-50%); }
.uc-viewer-caption { padding:12px 20px; font-size:11px; color:#66665f; background:#f1f1ec; }
@media(max-width:650px) { .uc-viewer-bar { padding:12px; gap:12px; flex-wrap:wrap; }.uc-viewer-bar span { font-size:11px; }.uc-viewer-caption { padding:12px; } }
.uc-viewer-bar .uc-viewer-library-link { margin-left:auto; }.uc-viewer-bar .uc-viewer-library-link + a { margin-left:0; }
.uc-viewer-screen-label { display:flex; align-items:center; gap:8px; font-size:11px; }
.uc-viewer .uc-viewer-screen-label select { appearance:none; -webkit-appearance:none; box-sizing:border-box; height:32px; min-width:0; max-width:190px; margin:0; padding:0 32px 0 11px; font:inherit; font-size:12px; line-height:30px; color:#171713; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2362625b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 12px 12px; border:1px solid #d8d8d1; border-radius:6px; box-shadow:none; cursor:pointer; transition:border-color .15s ease; }
.uc-viewer .uc-viewer-screen-label select:hover { border-color:#b9b9b0; }
.uc-viewer .uc-viewer-screen-label select:focus-visible,.uc-viewer-actions :is(button, a):focus-visible { outline:2px solid #171713; outline-offset:2px; }
@media(max-width:1000px) { .uc-viewer-bar { gap:12px; flex-wrap:wrap; } }

.uc-viewer .uc-viewer-publisher-label select { width:180px; max-width:100%; }

/* Keep phone controls in deliberate rows instead of uneven flex wrapping. */
@media(max-width:650px){
 .uc-viewer-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 12px;padding:16px}
 .uc-viewer-screen-label{display:flex;flex-direction:column;align-items:stretch;gap:6px;font-size:11px;min-width:0}
 .uc-viewer .uc-viewer-screen-label select{width:100%;max-width:100%;height:40px;font-size:12px}
 .uc-viewer-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .uc-viewer-actions button{height:34px;line-height:34px;padding-inline:8px}
 .uc-viewer-bar .uc-viewer-library-link,.uc-viewer-bar [data-uc-open]{margin:0;min-height:36px;display:flex;align-items:center;font-size:12px}
 .uc-viewer-bar [data-uc-open]{justify-content:flex-end}
 .uc-viewer-caption{margin:0;padding:14px 16px;line-height:1.6}
}
