/* Compact ScreenBox site and workspaces. */
[hidden] { display: none !important; }
body { font-family: Inter, Manrope, system-ui, sans-serif; }
button, input, select { font: inherit; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid #ffac54; outline-offset: 4px; }
.compact-site { min-height: 100dvh; display: flex; flex-direction: column; }
.compact-site .site-header { padding: 0 4vw; gap: 24px; }
.site-nav a[aria-current] { color: #ff9e43; }
.public-content { width: min(1240px, 100%); margin: auto; padding: 42px 28px; flex: 1; }
.public-content h1 { font-size: clamp(32px,4.4vw,62px); line-height: 1.12; letter-spacing: -.045em; }
.public-content h1 em { font-style: normal; color: #ff882b; }
.product-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; min-height: min(570px,70vh); }
.hero-lead { font-size: 17px; line-height: 1.65; margin-top: 20px; }
.hero-facts { margin-top: 32px; }
.product-preview { background: radial-gradient(ellipse at top right,#63311455,transparent 65%),#1b1e24; padding: 30px; border: 1px solid #ffffff15; border-radius: 24px; box-shadow: 0 20px 60px #0003; }
.product-preview>img { display: block; width: 90px; height: 90px; object-fit: contain; margin-bottom: 24px; }
.product-preview h2 { font: 600 24px/1.3 system-ui; margin: 22px 0; }
.preview-row { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; border-top: 1px solid #ffffff10; font-size: 13px; }
.preview-row span { color: #aeb4c0; }
.compact-site .feature-grid { gap: 14px; border: 0; background: none; margin-top: 26px; }
.compact-site .feature-grid article { min-height: 180px; padding: 24px; border-radius: 18px; border: 1px solid #ffffff12; }
.compact-site .feature-grid h3 { margin: 22px 0 10px; font-size: 21px; }
.compact-site .plan-grid { margin-top: 25px; }
.compact-site .plan-card { min-height: 0; padding: 26px; }
.compact-site .plan-card h3 { margin-top: 22px; font-size: 25px; }
.compact-site .plan-card p { line-height: 1.55; font-size: 14px; }
.compact-site .plan-card ul { margin: 12px 0 24px; }
.compact-site .site-footer { padding: 20px 4vw; grid-template-columns: 1fr auto auto; gap: 20px; }
.compact-site .site-footer small { grid-column: auto; }
.start-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 32px 0; }
.start-grid h2 { margin-top: 24px; font: 600 22px/1.3 system-ui; }
.start-grid p { color: #aeb4c0; font-size: 14px; line-height: 1.65; }
.notice { padding: 16px 18px; border: 1px solid #ff880025; border-radius: 12px; background: #ff880009; color: #c4c7cf; font-size: 13px; line-height: 1.65; }
.auth-wrap { padding: 30px 24px; gap: 56px; }
.auth-wrap h1 { font: 700 clamp(30px,3.4vw,48px)/1.14 system-ui; letter-spacing: -.04em; }
.auth-card { border-radius: 20px; background: #1b1e24; box-shadow: 0 18px 60px #0002; padding: 26px; }
.password-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.password-pair input { width: 100%; min-width: 0; }
.check-label { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; font-size: 12px; }
.check-label input { margin: 3px 0 0; accent-color: #ff8800; }
.workspace { background: #111317; }
.workspace .noise { display: none; }
.workspace .top { min-height: 70px; padding: 15px 28px; background: #16191f; border-color: #ffffff0c; }
.workspace h1, .workspace h2 { font-family: system-ui, sans-serif; }
.workspace h1 { font-size: 30px; }
.workspace h2 { font-size: 21px; font-weight: 650; }
.workspace .panel { background: #1a1d24; border: 1px solid #ffffff0d; box-shadow: none; border-radius: 16px; padding: 22px; }
.workspace .cab-tabs { margin: 0; max-width: none; padding: 14px 28px; border-bottom: 1px solid #ffffff0c; background: #16191f; gap: 8px; overflow-x: auto; display: flex; }
.workspace .cab-tab { border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
.workspace .cab { max-width: 1500px; margin: 0 auto; padding: 24px 28px; grid-template-columns: 265px minmax(0,1fr); gap: 22px; }
.workspace .cab.single { grid-template-columns: minmax(0,1fr); }
.workspace .rail { position: static; max-height: none; }
.workspace .stage-col { min-width: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(135px,1fr)); gap: 12px; margin: 22px 0; }
.metric { min-width: 0; padding: 20px; border-radius: 14px; border: 1px solid #ffffff0d; background: #20242c; }
.metric strong { display: block; font-size: 32px; font-weight: 650; color: #f5f6f8; font-variant-numeric: tabular-nums; }
.metric span { display: block; margin-top: 8px; color: #aab1bd; font-size: 12px; }
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.table-scroll { overflow-x: auto; margin-top: 18px; }
.data-table { border-collapse: collapse; width: 100%; font-size: 14px; text-align: left; }
.data-table th { color: #aab1bd; font-size: 12px; font-weight: 500; padding: 12px 14px; border-bottom: 1px solid #ffffff15; white-space: nowrap; }
.data-table td { padding: 15px 14px; border-bottom: 1px solid #ffffff09; }
.data-table td:first-child { overflow-wrap: anywhere; min-width: 150px; }
.data-table small { display: block; color: #969daa; margin-top: 5px; }
.data-table .ghost { white-space: nowrap; }
.online-count { color: #6fddb0; font-weight: 650; }
.device-table td { white-space: nowrap; }
.device-table td:first-child { white-space: normal; }
.status-tag { display: inline-block; border-radius: 6px; background: #ffffff08; padding: 6px 9px; font-size: 12px; white-space: nowrap; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 18px; color: #aab1bd; font-size: 12px; }
.inline-form { display: grid; grid-template-columns: 180px minmax(180px,1fr) auto; gap: 14px; margin-top: 16px; align-items: end; }
.inline-form button { min-height: 44px; }
.add-point { margin-top: 22px; color: #ffac54; }
.add-point summary { cursor: pointer; font-size: 14px; }
.stand-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.stand-filters select { max-width: 330px; }
.workspace .stand-carousel { scrollbar-width: thin; scrollbar-color: #ff880066 #111317; }
.workspace .stand-meter { flex-basis: 100%; }
.workspace .stand-sides { grid-template-columns: 1fr 1fr; }
.workspace .stand-side { overflow-x: auto; }
.workspace .stand-grid { min-width: 480px; }
.workspace .phone-content, .workspace .lib, .workspace .air-list { max-height: 58vh; overflow-y: auto; scrollbar-width: thin; padding-right: 8px; }
.workspace .phone-media-card > img, .workspace .phone-media-card video { max-height: 170px; object-fit: contain; }
.profile-form { max-width: 540px; margin-top: 24px; }
.workspace-error { margin: 0 28px; color: #ff9b9b; }
.workspace .cab-tabs { padding: 10px 22px; gap: 6px; }
.workspace .cab-tab { min-height: 38px; padding: 0 12px; border-radius: 9px; font-size: 12px; }
.workspace .ghost, .workspace .primary, .workspace button.tab { min-height: 36px; padding: 8px 12px; font-size: 12px; }
.workspace .primary { width: auto; }
.workspace .profile-form .primary { width: 100%; }
.workspace .phone-content-form button { min-height: 38px; padding: 9px 14px; border-radius: 10px; font-size: 12px; }
.workspace .inline-form button { min-height: 38px; }
.workspace .quick-actions { gap: 8px; margin: 16px 0; }
.workspace .preview-mode { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.workspace .preview-controls { gap: 10px; margin-top: 12px; }
.admin-main { max-width: 1400px; padding: 28px; margin: auto; }
.admin-main>.panel { margin-bottom: 18px; }
.stand-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 18px 0 4px; color: #aab1bd; font-size: 12px; }
.stand-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; background: #656d79; }
.legend-dot.active { background: #48d69b; box-shadow: 0 0 9px #48d69b88; }
.legend-seat { width: 19px; height: 19px; border: 1px dashed #58606d; border-radius: 5px; }
.workspace .stand-shop { padding: 16px; border-color: #ffffff12; }
.workspace .stand-shop-title { margin-bottom: 14px; }
.workspace .stand-shop-title strong { font-size: 17px; }
.workspace .stand-shop-title span { font-size: 12px; }
.stand-actions { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)); gap: 10px; margin-bottom: 14px; }
.stand-action { min-height: 68px; display: grid; align-content: center; gap: 4px; padding: 12px 16px; border: 1px solid #ffffff16; border-radius: 12px; background: #22262f; color: #f5f6f8; cursor: pointer; text-align: left; }
.stand-action:hover { border-color: #ff8800; background: #292831; }
.stand-action b { font-size: 14px; }
.stand-action small { color: #9da4b1; font-size: 11px; }
.stand-action.primary-action { border-color: #ff880066; background: linear-gradient(135deg,#ff880020,#ff4d0010); }
.stand-action.danger-action { color: #ffb3ad; }
.workspace .stand-carousel { gap: 12px; margin-top: 0; padding-bottom: 8px; }
.workspace .stand-meter { flex: 0 0 min(760px,100%); padding: 16px; border: 1px solid #ffffff12; border-radius: 14px; background: #15181e; }
.workspace .stand-meter-title { margin-bottom: 12px; }
.workspace .stand-meter-title>div { display: flex; align-items: baseline; gap: 10px; }
.workspace .stand-meter-title strong { font-size: 17px; }
.workspace .stand-meter-title span { font-size: 11px; }
.meter-delete, .stand-side-head button { border: 0; background: transparent; color: #8e949e; cursor: pointer; font-size: 11px; }
.meter-delete:hover, .stand-side-head button:hover { color: #ff8980; }
.workspace .stand-sides { grid-template-columns: 1fr 1fr; gap: 10px; }
.workspace .stand-side { padding: 10px; border-color: #ffffff10; border-radius: 11px; background: #0f1217; }
.stand-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.workspace .stand-side h3 { margin: 0; color: #ff9c42; }
.add-side-card { min-height: 112px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1px dashed #ff880055; border-radius: 11px; background: #ff880008; color: #d9dce2; cursor: pointer; }
.add-side-card:hover { border-color: #ff8800; background: #ff880014; }
.add-side-card span { color: #ff8800; font-size: 24px; line-height: 1; }
.add-side-card b { font-size: 12px; }
.workspace .stand-grid { gap: 4px; min-width: 0; }
.workspace .stand-axis { font-size: 9px; min-height: 16px; }
.workspace .stand-axis.row-axis { font-size: 9px; }
.workspace .stand-seat { min-height: 34px; padding: 0; display: grid; place-items: center; border-radius: 6px; overflow: visible; }
.workspace .stand-seat.empty-seat { border: 1px dashed #3c434e; background: transparent; }
.workspace .stand-seat.occupied { border: 1px solid #777f8c; background: #272c35; color: #e7e9ed; }
.workspace .stand-seat.seat-online { border-color: #36bc88; background: #173229; box-shadow: inset 0 0 0 1px #48d69b1f; }
.workspace .stand-seat i { width: 7px; height: 7px; top: 4px; right: 4px; background: #7b838f; box-shadow: none; }
.workspace .stand-seat.seat-online i { background: #48d69b; box-shadow: 0 0 7px #48d69b; }
.workspace .stand-seat .device-glyph { color: #dce0e6; font-size: 21px; line-height: 1; }
.workspace .stand-seat b { position: absolute; left: 3px; bottom: 1px; padding: 0; color: #fff; font-size: 8px; }
@media(max-width:1000px) {
 .compact-site .site-header { height: auto; min-height: 72px; grid-template-columns: 1fr auto; padding: 14px 20px; gap: 14px; }
 .compact-site .site-nav { display: flex; grid-row: 2; grid-column: 1/-1; justify-content: flex-start; overflow-x: auto; white-space: nowrap; padding: 5px 0; }
 .product-intro { gap: 28px; }
 .workspace .cab { grid-template-columns: 220px minmax(0,1fr); }
 .workspace .stand-sides { grid-template-columns: 1fr; }
 .stand-actions { grid-template-columns: 1fr 1fr; }
 .workspace .rail { grid-template-columns: 1fr; }
 .start-grid { grid-template-columns: 1fr; }
 .start-grid .panel { padding: 20px; }
 .start-grid h2 { margin-top: 12px; }
}
@media(max-width:700px) {
 .public-content { padding: 28px 18px; }
 .product-intro { grid-template-columns: 1fr; min-height: 0; }
 .product-preview { padding: 22px; }
 .product-preview>img { width: 54px; height: 54px; }
 .hero-facts { grid-template-columns: repeat(3,1fr); }
 .hero-actions { gap: 18px; }
 .compact-site .site-footer { grid-template-columns: 1fr; }
 .compact-site .feature-grid, .compact-site .plan-grid { grid-template-columns: 1fr; }
 .auth-wrap { grid-template-columns: 1fr; gap: 18px; padding: 22px 16px; }
 .auth-wrap .hero .lead, .auth-wrap .hero .notice { display: none; }
 .auth-wrap h1 { font-size: 28px; }
 .auth-card { padding: 20px; }
 .workspace .top { padding: 14px 16px; flex-wrap: wrap; }
 .workspace .top-actions { display: flex; flex-wrap: wrap; }
 .workspace .cab-tabs { padding: 12px 16px; }
 .workspace .cab { padding: 16px; grid-template-columns: 1fr; }
 .workspace .panel { padding: 18px; }
 .workspace .rail { display: grid; grid-template-columns: 1fr; }
 .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
 .metric { padding: 15px; }
 .metric strong { font-size: 26px; }
 .workspace .rail .device-brands { max-height: 120px; overflow: auto; }
 .inline-form { grid-template-columns: 1fr; }
 .stand-filters { width: 100%; }
 .stand-filters label { flex: 1; min-width: 0; }
 .stand-filters input, .stand-filters select { width: 100%; min-width: 0; }
 .stand-actions { grid-template-columns: 1fr; }
 .stand-action { min-height: 58px; }
 .workspace .stand-meter { padding: 10px; }
 .workspace .stand-sides { grid-template-columns: 1fr; }
 .workspace .stand-side { overflow-x: auto; }
 .workspace .stand-grid { min-width: max(310px,calc(var(--places, 6) * 39px)); }
 .pager { justify-content: center; gap: 8px; }
 .pager .ghost { padding: 10px; }
 .admin-main { padding: 20px 14px; }
 .admin-main h1 { font-size: 26px; }
}
/* Android TV transition chooser */
.tv-transition-group { margin-top: 22px; }
.tv-transition-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tv-transition-option { min-height: 142px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #171a20; color: #f4f6f8; text-align: left; cursor: pointer; }
.tv-transition-option:hover, .tv-transition-option.on { border-color: #d6ff4b; background: #20252c; }
.tv-transition-option strong, .tv-transition-option small { display: block; }
.tv-transition-option strong { margin-top: 8px; font-size: 12px; }
.tv-transition-option small { margin-top: 3px; color: #8e949e; font-size: 10px; line-height: 1.3; }
.tv-transition-demo { position: relative; display: block; height: 60px; overflow: hidden; border-radius: 8px; background: #07080c; }
.tv-transition-demo i, .tv-transition-demo b { position: absolute; display: block; width: 58%; height: 72%; top: 14%; border-radius: 5px; }
.tv-transition-demo i { left: 8%; background: #303640; }
.tv-transition-demo b { right: 8%; background: #d6ff4b; }
.demo-none b { opacity: 1; }
.demo-fade b { animation: cab-fade 1.5s infinite alternate ease-in-out; }
.demo-slide-left b { animation: cab-slide-left 1.5s infinite alternate ease-in-out; }
.demo-slide-up b { animation: cab-slide-up 1.5s infinite alternate ease-in-out; }
.demo-zoom b { animation: cab-zoom 1.5s infinite alternate ease-in-out; }
.demo-blur b { animation: cab-blur 1.5s infinite alternate ease-in-out; }
.demo-flip b { animation: cab-flip 1.5s infinite alternate ease-in-out; }
.demo-wipe b { animation: cab-wipe 1.5s infinite alternate ease-in-out; }
@keyframes cab-fade { from { opacity: .08; } to { opacity: 1; } }
@keyframes cab-slide-left { from { transform: translateX(46px); opacity: .1; } to { transform: translateX(0); opacity: 1; } }
@keyframes cab-slide-up { from { transform: translateY(38px); opacity: .1; } to { transform: translateY(0); opacity: 1; } }
@keyframes cab-zoom { from { transform: scale(.45); opacity: .1; } to { transform: scale(1); opacity: 1; } }
@keyframes cab-blur { from { filter: blur(7px); opacity: .1; } to { filter: blur(0); opacity: 1; } }
@keyframes cab-flip { from { transform: perspective(300px) rotateY(-70deg); opacity: .1; } to { transform: perspective(300px) rotateY(0); opacity: 1; } }
@keyframes cab-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 900px) { .tv-transition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Compact Android TV content controls */
#laptop-content-form { gap: 8px; margin-top: 10px; }
#laptop-content-form .form-field > span { font-size: 10px; }
#laptop-content-form .form-field input { min-height: 32px; height: 32px; padding: 5px 8px; font-size: 11px; border-radius: 8px; }
#laptop-content-form button { min-height: 32px; padding: 6px 10px; border-radius: 8px; font-size: 11px; }
#laptop-content > .content-group { gap: 8px; padding-top: 8px; }
#laptop-content > .content-group:first-child { border-top: 0; padding-top: 0; }
#laptop-content .row-between { gap: 8px; }
#laptop-content #laptop-air-clear { min-height: 30px; padding: 6px 9px; font-size: 11px; border-radius: 8px; }
#laptop-content .tv-transition-group { margin-top: 16px; }
#laptop-content .tv-transition-grid { width: min(100%, 760px); gap: 8px; margin-top: 10px; }
#laptop-content .tv-transition-option { min-height: 100px; padding: 8px; border-radius: 10px; }
#laptop-content .tv-transition-option strong { margin-top: 6px; font-size: 11px; }
#laptop-content .tv-transition-option small { margin-top: 2px; font-size: 9px; }
#laptop-content .tv-transition-demo { height: 42px; border-radius: 6px; }
#laptop-content .phone-media-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
#laptop-content .tv-content-card .media-preview { width: 100%; aspect-ratio: 16 / 9; padding: 0; background: #11141b; }
#laptop-content .tv-content-card .media-preview img, #laptop-content .tv-content-card .media-preview video { width: 100%; height: 100%; object-fit: contain; }
#laptop-content .tv-content-card .media-settings { display: block; }
#laptop-content .phone-media-card.portrait-card { grid-template-columns: minmax(86px, 30%) minmax(0, 1fr); min-height: 150px; border-radius: 10px; }
#laptop-content .portrait-card .media-preview { padding: 6px; }
#laptop-content .phone-media-meta { padding: 7px; font-size: 11px; }
#laptop-content .banner-flags { padding: 6px 7px 0; }
#laptop-content .media-actions { gap: 6px; padding: 0 7px 7px; }
#laptop-content .duration-control span { font-size: 9px; }
#laptop-content .duration-control select, #laptop-content .media-actions .tiny { min-height: 32px; padding: 6px 8px; border-radius: 8px; font-size: 11px; }
#overview-stats { max-width: 270px; }
