.ui-phone{aspect-ratio:1054/2048;border-radius:16px}
.capture-screen{position:absolute;inset:0;touch-action:pan-x}
.capture-screen img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}
.ui-phone:has(.capture-screen)>.ui-status,.ui-phone:has(.capture-screen)>.ui-homebar{display:none}
.ui-phone:has(.capture-screen)>.ui-header{position:absolute;inset:0 0 auto;height:5.4%;margin:0;background:transparent}
.ui-phone:has(.capture-screen)>.ui-header button{position:absolute;left:4%;top:0;width:12%;height:100%;min-height:0}
.ui-phone:has(.capture-screen)>.ui-header svg{visibility:hidden}
.capture-filter{position:absolute;left:5%;bottom:20%;z-index:5}
.capture-filter .ui-mode-row{margin:0}
.ui-phone .capture-hotspot{position:absolute;right:3%;width:16%;min-height:0;z-index:3}
.ui-phone .capture-community{position:absolute;left:34%;top:81.5%;width:11%;height:3.5%;min-width:0;min-height:0;z-index:3}
.capture-caption-mask{position:absolute;left:4%;right:20%;top:80%;bottom:7.2%;background:#080606;z-index:4;pointer-events:none}
.ui-phone .capture-caption{left:5.5%;right:20%;bottom:7.3%;padding:0;background:#080606;z-index:6}
.capture-caption .ui-caption{font-size:2.9cqw;line-height:1.4;margin:0;word-break:normal}
.ui-phone .capture-caption .ui-more{display:block;font-size:2.8cqw;line-height:1.5;min-height:0;height:5.5cqw;margin:1px 0 0;padding:0;color:#bdb7bd}
.ui-phone .capture-expanded{padding:0;background:#080606;border-radius:0}
.capture-caption .ui-inline-body p{margin:0;word-break:normal}
.capture-expanded .ui-inline-body.is-expanded{font-size:2.9cqw;line-height:1.4;max-height:7em;overflow-y:auto;overscroll-behavior:contain}
.capture-profile{display:flex;align-items:center;gap:1.5cqw;height:12cqw;margin-bottom:1.5cqw;white-space:nowrap}
.capture-profile strong{font-size:4cqw;color:white}
.capture-avatar{position:relative;display:block;overflow:hidden;border-radius:50%;width:11cqw;height:11cqw;flex-shrink:0}
.capture-avatar img{position:absolute;width:100cqw;max-width:none;left:-5.5cqw;top:-156.2cqw}
.ui-phone .capture-badge{display:inline-block;font-size:2.8cqw;font-weight:700;color:#e66b89;background:#ffe7ee;border-radius:1.5cqw;padding:.4cqw 1.5cqw;min-height:0;min-width:0}
.ui-phone:has(.capture-expanded) .capture-filter{bottom:calc(7.3% + 40cqw)}
.capture-caption:has(.ui-inline-body.is-expanded):before{display:none}
.capture-note{margin-top:14px;line-height:1.8}
/* TikTok-inspired caption treatment; keep the requested five-line expansion cap. */
.capture-caption-mask{left:0;right:17%;top:72%;background:linear-gradient(180deg,transparent,#080606 36%);mask-image:linear-gradient(90deg,#000 94%,transparent)}
.ui-phone .capture-caption,.ui-phone .capture-expanded{background:transparent;text-shadow:0 1px 3px #000b}
.capture-profile{height:10cqw;gap:2cqw;margin-bottom:2cqw}
.capture-avatar{width:10cqw;height:10cqw}
.capture-profile strong{font-size:4cqw;font-weight:750}
.capture-caption .ui-caption{font-size:3.4cqw;line-height:1.5}
.capture-expanded .ui-inline-body.is-expanded{font-size:3.4cqw;line-height:1.5;max-height:7.5em;scrollbar-width:thin;scrollbar-color:#ffffff70 transparent}
.ui-phone .capture-caption .ui-more{font-size:3.3cqw;font-weight:650;color:#fff;height:5.1cqw;line-height:1.5;min-width:0}
.ui-phone .capture-caption:not(.capture-expanded) .ui-more{position:absolute;bottom:0;right:0;margin:0;padding-left:5cqw;background:linear-gradient(90deg,transparent,#080606 27%);border-radius:0}
.ui-phone .capture-expanded .ui-more{margin-top:1.2cqw;color:#ddd}
.ui-phone:has(.capture-expanded) .capture-caption-mask{top:65%}
.ui-phone:has(.capture-expanded) .capture-filter{bottom:calc(7.3% + 47cqw)}
.capture-expanded .ui-inline-body.is-expanded{overflow:clip;scrollbar-width:none;touch-action:pan-y}
.capture-expanded .ui-inline-body.is-expanded p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
.capture-mode-bar{display:flex;align-items:center;gap:8px;height:44px}
.capture-mode-toggle{display:flex;align-items:center;padding:3px;border:1px solid #ffffff30;border-radius:24px;background:#17171a80;backdrop-filter:blur(14px);box-shadow:0 2px 10px #0002}
.ui-phone .capture-mode-toggle button{min-width:47px;min-height:30px;padding:0 12px;border-radius:20px;font-size:11px;font-weight:750;letter-spacing:.06em;color:#ffffffb5;line-height:30px;transition:background .15s,color .15s}
.ui-phone .capture-mode-toggle button[aria-pressed=true]{background:#fff;color:#26232a;box-shadow:0 1px 5px #0002}
.ui-phone .capture-manage{display:grid;place-items:center;min-width:36px;min-height:36px;border:1px solid #ffffff25;border-radius:50%;background:#17171a70;backdrop-filter:blur(14px);color:#fff}
.capture-manage svg{width:16px;height:16px;stroke-width:1.7}
.ui-phone .capture-mode-toggle button{font-size:9px;min-width:40px;min-height:25px;line-height:25px;padding:0 10px}
.ui-phone .capture-manage{min-width:30px;min-height:30px}
.capture-manage svg{width:14px;height:14px}
.ui-phone .capture-mode-mini{display:flex;align-items:center;justify-content:flex-start;width:44px;height:44px;min-width:44px;min-height:44px;background:transparent;padding:0}
.capture-mode-mini span{display:flex;align-items:center;gap:4px;border:1px solid #ffffff25;border-radius:9px;background:#17171a66;color:#ffffffe0;font-size:8px;line-height:15px;padding:0 6px;letter-spacing:.04em;backdrop-filter:blur(8px)}
.capture-mode-mini i{font-style:normal;font-size:9px;color:#ffffff90}
.capture-mode-bar{height:44px}
.capture-mode-toggle{flex-direction:column;gap:3px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none}
.ui-phone .capture-mode-toggle button{min-width:30px;width:30px;min-height:16px;height:16px;line-height:14px;font-size:8px;padding:0 5px;border:1px solid #ffffff25;border-radius:8px;background:#17171a66;color:#ffffff90;letter-spacing:.04em;backdrop-filter:blur(8px)}
.ui-phone .capture-mode-toggle button[aria-pressed=true]{background:#ffffffdf;color:#27232b;border-color:#ffffff90;box-shadow:none}
.capture-mode-toggle{flex-direction:row;gap:4px}
.capture-bias-alert{position:absolute;inset:0;margin:auto;width:80%;max-width:310px;height:max-content;border:0;border-radius:15px;padding:22px 18px 0;background:#fff;color:#222;box-shadow:0 12px 45px #0005;text-align:center}
.capture-bias-alert::backdrop{background:#0007}
.capture-bias-alert h3{font-size:15px;line-height:1.5;margin:0 0 8px}
.capture-bias-alert p{font-size:12px;line-height:1.6;color:#777;margin:0 0 20px}
.capture-bias-alert>div{display:grid;grid-template-columns:1fr 1fr;margin:0 -18px;border-top:1px solid #eee}
.ui-phone .capture-bias-alert button{color:#777;min-height:46px;border-radius:0;font-size:14px}
.ui-phone .capture-bias-alert button[data-answer=yes]{color:#ed526e;font-weight:700;border-left:1px solid #eee}
.capture-bias-alert{position:fixed;inset:auto;margin:0;transform:translate(-50%,-50%)}
.capture-bias-alert::backdrop{background:transparent}
.ui-phone:has(.capture-bias-alert[open]):after{content:'';position:absolute;inset:0;background:#0007;z-index:40;pointer-events:none}
