:root{--yellow:#f6d24d;--yellow-light:#ffe487;--white:#f7fbff;--muted:#9ba9bb;--line:rgba(255,255,255,.1);--green:#8be0ae;--red:#ff9595}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;font-family:"Segoe UI",Arial,sans-serif}
body.overlay-page{background:transparent;overflow:hidden;color:var(--white);font-variant-numeric:tabular-nums}
.scene{position:relative;width:1080px;height:1920px;transform-origin:top left;overflow:hidden;background:transparent}
.demo-tag,.empty-tag{position:absolute;left:34px;bottom:398px;height:24px;max-width:1012px;display:flex;align-items:center;padding:0 12px;border-radius:8px;border:1px solid var(--line);font-size:11px;letter-spacing:.05em;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.demo-tag{color:var(--yellow-light);background:#403619f2}
.empty-tag{background:#172333f2;color:#c2cedd}
.widget{position:absolute;height:540px;padding:20px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(155deg,rgba(16,28,43,.97),rgba(8,16,27,.95));box-shadow:0 16px 32px #0003;overflow:hidden;display:grid;gap:8px}
.around-panel{left:34px;top:34px;width:410px;grid-template-rows:56px minmax(0,1fr) 42px}
.stats-panel{right:34px;top:34px;width:582px;grid-template-rows:40px 34px minmax(0,1fr) 42px}
.stats-panel.no-footer{grid-template-rows:40px 34px minmax(0,1fr)}
.stats-panel.no-footer .widget-foot{display:none}
.widget-head{min-width:0}
.widget-kicker{display:block;font-size:10px;letter-spacing:.18em;font-weight:800;color:var(--yellow);margin-bottom:5px}
.widget h2{margin:0;font-size:29px;line-height:1.1;letter-spacing:-.6px;font-weight:800}
.widget-foot{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-top:1px solid var(--line);padding-top:5px;font-size:10px;line-height:1.35;font-weight:700;color:var(--muted);text-align:center}
.widget-foot>span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.block-status{font-size:11px;font-weight:800;letter-spacing:.025em;line-height:1.4;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.block-status[data-state="online"]{color:var(--green)}
.block-status[data-state="demo"],.block-status[data-state="stale"],.block-status[data-state="pending"]{color:var(--yellow-light)}
.block-status[data-state="error"],.block-status[data-state="offline"]{color:var(--red)}
.stat-head,.stat-row{display:grid;grid-template-columns:minmax(0,1fr) 190px minmax(0,1fr);align-items:center;text-align:center;gap:8px;padding:0 10px;border-radius:12px}
.stat-head{font-size:11px;font-weight:700;color:#b6c3d5;background:#ffffff06}
.stat-head span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.stat-rows{display:grid;grid-template-rows:repeat(7,minmax(0,1fr));gap:6px;min-height:0}
.stat-row{min-height:0;border:1px solid #ffffff08;background:linear-gradient(90deg,#ffffff08,#ffffff03,#ffffff08)}
.stat-row span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stat-row span:first-child,.stat-row span:last-child{font-size:20px;font-weight:800;color:var(--white)}
.stat-row span:nth-child(2){font-size:13px;font-weight:600;color:#b7c4d5}
.stat-rows>.no-data{grid-row:1/-1;align-self:stretch;display:grid;place-items:center}
.around-rows{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:10px;min-height:0}
.around-item{min-height:0;padding:10px;border:1px solid #ffffff0b;border-radius:16px;background:#ffffff04;overflow:hidden}
.around-head{display:flex;align-items:center;justify-content:space-between;gap:8px;height:20px;margin-bottom:4px;font-size:10px;line-height:1;font-weight:700;color:var(--muted)}
.around-head>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.around-head>span:first-child{flex:1}.around-head>span:last-child{max-width:145px}
.around-head .playing{color:var(--yellow)}
.around-grid-head,.around-player{display:grid;grid-template-columns:minmax(0,1fr) repeat(var(--sets,3),29px);gap:3px;align-items:center}
.around-grid-head{height:14px;font-size:8px;color:#8d9bb0;text-align:center}
.around-grid-head span:first-child{text-align:left}
.around-player{height:28px;font-size:15px;font-weight:700}
.around-player>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:4px}
.around-player .tally{text-align:center;font-size:16px;font-weight:800;letter-spacing:-.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.around-player .tally.long-score{font-size:11px;letter-spacing:-.6px}
.around-player.dim{color:#bcc8d8}
.around-player .tally.active{color:var(--yellow-light)}
.no-data{padding:18px;border-radius:16px;background:#ffffff03;border:1px dashed #ffffff18;text-align:center;color:var(--muted);font-size:14px;line-height:1.6}
.around-rows>.no-data{grid-row:1/-1;display:grid;place-items:center}
.camera-space{position:absolute;left:34px;right:34px;top:604px;height:890px;pointer-events:none}
.camera-shell{position:relative;width:100%;height:100%;background:transparent}
.camera-corner{position:absolute;width:42px;height:42px;border-color:#f6d24da8;border-style:solid}
.camera-corner.tl{top:0;left:0;border-width:2px 0 0 2px;border-top-left-radius:20px}
.camera-corner.tr{top:0;right:0;border-width:2px 2px 0 0;border-top-right-radius:20px}
.camera-corner.bl{bottom:0;left:0;border-width:0 0 2px 2px;border-bottom-left-radius:20px}
.camera-corner.br{bottom:0;right:0;border-width:0 2px 2px 0;border-bottom-right-radius:20px}
.scorecard{position:absolute;left:34px;bottom:34px;width:1012px;height:360px;padding:20px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(150deg,rgba(17,29,43,.98),rgba(7,15,26,.98));box-shadow:0 16px 32px #0003;overflow:hidden;display:grid;grid-template-rows:36px 28px minmax(0,1fr) 34px;gap:8px;--sets:3}
.score-top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.score-top-left{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.live-chip{display:flex;align-items:center;height:34px;max-width:225px;flex-shrink:0;padding:0 13px;border:1px solid #f6d24d45;border-radius:12px;background:#f6d24d14;color:var(--yellow-light);font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.round-pill{height:34px;line-height:34px;padding:0 12px;max-width:370px;min-width:0;border-radius:12px;background:#ffffff06;color:#b5c3d4;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.freshness{flex-shrink:0;max-width:280px;font-size:11px;font-weight:700;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.view-score .freshness{color:var(--yellow-light)}
.score-grid-head,.player-row{display:grid;grid-template-columns:minmax(0,1fr) 52px repeat(var(--sets),64px) 84px;align-items:center;gap:8px;padding:0 12px}
.score-grid-head{border:1px solid transparent;font-size:10px;letter-spacing:.035em;font-weight:700;color:var(--muted)}
.score-grid-head span{text-align:center}.score-grid-head span:first-child{text-align:left}
.score-area{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;min-height:0}
.player-row{min-height:0;border-radius:18px;border:1px solid #ffffff0b;background:linear-gradient(90deg,#ffffff07,#ffffff03)}
.player-name{display:flex;align-items:center;gap:10px;min-width:0;font-size:32px;font-weight:800;line-height:1.2;letter-spacing:-.6px}
.player-name .name-text{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-name.doubles{font-size:23px;letter-spacing:-.3px}
.serve-indicator{width:8px;height:8px;flex-shrink:0;border-radius:50%;background:var(--yellow);box-shadow:0 0 13px #f6d24d55}
.serve-indicator.off{visibility:hidden}
.set-cell,.points-cell,.sets-won{height:62px;display:flex;align-items:center;justify-content:center;min-width:0;font-size:35px;line-height:1;font-weight:800;letter-spacing:-1px;border-radius:13px}
.set-cell{color:#d5deea;background:#ffffff04}
.set-cell.active{background:#f6d24d16;border:1px solid #f6d24d55;color:var(--yellow-light)}
.set-cell.long-score{font-size:24px;letter-spacing:-1px}
.sets-won{font-size:24px;color:#93a6bf}
.points-cell{color:#182332;background:linear-gradient(180deg,var(--yellow-light),var(--yellow))}
.score-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:6px;min-width:0}
.score-bottom>span:first-child{max-width:52%;font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.score-bottom .block-status{max-width:48%}
body.single-widget .scene{width:auto;height:auto;background:transparent;overflow:visible}
body.single-widget .demo-tag,body.single-widget .empty-tag,body.single-widget .camera-space,body.single-widget .scorecard,body.single-widget .widget{display:none}
body.single-widget.view-score .scorecard,body.single-widget.view-stats .stats-panel,body.single-widget.view-around .around-panel{display:grid;position:relative;top:auto;left:auto;right:auto;bottom:auto;box-shadow:none;margin:0}
