:root { --accent: #ff4f32; --ink: #f5f5f2; --muted: #8e9297; --black: rgba(5, 6, 7, .94); --rule: rgba(245, 245, 242, .78); }
* { box-sizing: border-box; }
.widget-shell { width: 100%; height: 100%; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
.widget-shell svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.widget-card { position: relative; width: 100%; height: 100%; color: var(--ink); background: var(--black); border: 1px solid var(--rule); border-radius: 0; box-shadow: none; }
.widget-card::before, .widget-card::after { content: ""; position: absolute; z-index: 3; width: 18px; height: 18px; pointer-events: none; }
.widget-card::before { left: -3px; top: -3px; border-left: 4px solid var(--accent); border-top: 4px solid var(--accent); }
.widget-card::after { right: -3px; bottom: -3px; border-right: 4px solid var(--accent); border-bottom: 4px solid var(--accent); }
.micro-label, .eyebrow { color: #c9c9c5; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow > span { display: inline-block; width: 28px; height: 2px; border-radius: 0; background: var(--accent); box-shadow: none; }
.eyebrow.centered { justify-content: center; }
.title-card { display: flex; align-items: center; overflow: visible; padding: 20px 26px; gap: 22px; border: 0; background: transparent; }
.title-card::before { left: 0; top: 10%; width: 3px; height: 80%; border: 0; background: var(--accent); }
.title-card::after { right: 0; bottom: 0; width: 58%; height: 1px; border: 0; background: rgba(255,255,255,.72); }
.title-accent { display: none; }
.display-title { margin-top: 8px; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(30px, 3vw, 54px); line-height: .94; font-weight: 900; letter-spacing: .015em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subtitle { margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock-card { display: flex; flex-direction: column; justify-content: center; padding: 15px 19px; }
.clock-card::before { width: 24px; height: 0; top: -3px; border: 0; border-top: 4px solid var(--accent); }.clock-card::after { width: 24px; height: 0; border: 0; border-bottom: 4px solid var(--accent); }
.clock-value { margin-top: 4px; font-family: Impact, Haettenschweiler, sans-serif; font-variant-numeric: tabular-nums; font-size: 31px; line-height: 1; font-weight: 900; letter-spacing: .03em; }
.goal-card { display: flex; flex-direction: column; justify-content: center; padding: 18px 22px; }
.goal-row { display: flex; align-items: baseline; justify-content: space-between; color: #d5d5d1; font-size: 11px; letter-spacing: .16em; font-weight: 900; text-transform: uppercase; }
.goal-row b { color: white; font-family: Impact, Haettenschweiler, sans-serif; font-size: 19px; letter-spacing: .04em; }.goal-row i { color: #5e6267; font-style: normal; padding: 0 3px; }
.goal-track { position: relative; height: 8px; margin-top: 15px; overflow: visible; border: 1px solid rgba(255,255,255,.5); border-radius: 0; background: transparent; }
.goal-track::before, .goal-track::after { content: ""; position: absolute; top: -4px; width: 1px; height: 14px; background: white; }.goal-track::before { left: 3px; }.goal-track::after { right: 3px; }
.goal-track > div { height: 100%; border-radius: 0; background: var(--accent); box-shadow: none; }
.music-card { display: flex; align-items: center; padding: 11px 15px; gap: 15px; }
.album-art { width: 78px; height: 78px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid white; border-radius: 0; color: white; background: #0b0c0d; font-family: Impact, sans-serif; font-size: 24px; font-weight: 900; letter-spacing: .04em; }
.music-copy { min-width: 0; display: flex; flex-direction: column; flex: 1; }.music-copy strong { margin-top: 5px; font-size: 18px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.music-copy span { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.equalizer { height: 31px; display: flex; align-items: end; gap: 3px; margin: 0 5px; }.equalizer i { width: 2px; height: 45%; border-radius: 0; background: var(--accent); }.equalizer.playing i { animation: equalize 1s steps(5, end) infinite alternate; }.equalizer i:nth-child(2) { height: 90%; animation-delay: -.6s; }.equalizer i:nth-child(3) { height: 65%; animation-delay: -.2s; }.equalizer i:nth-child(4) { height: 35%; animation-delay: -.8s; }
@keyframes equalize { to { height: 100%; } }
.lower-card { display: flex; align-items: center; padding: 15px 18px; gap: 16px; border-left: 5px solid var(--accent); }
.avatar { width: 80px; height: 80px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid white; border-radius: 0; color: white; background: transparent; font-family: Impact, sans-serif; font-size: 35px; font-weight: 900; }
.lower-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }.lower-copy strong { font-family: Impact, sans-serif; font-size: 30px; letter-spacing: .03em; text-transform: uppercase; }.lower-copy span { margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pill { padding: 7px 11px; border-radius: 0; color: white; background: var(--accent); font-size: 9px; letter-spacing: .16em; font-weight: 900; }
.alert-card { display: flex; align-items: center; gap: 22px; padding: 24px 29px; border-width: 1px; animation: alertIn .55s cubic-bezier(.2,.8,.2,1); }
.alert-burst { width: 104px; height: 104px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid white; border-radius: 0; color: var(--accent); background: transparent; font-size: 46px; box-shadow: none; transform: none; }
.alert-card strong, .alert-card span { display: block; }.alert-card strong { margin-top: 6px; font-family: Impact, sans-serif; font-size: 34px; letter-spacing: .025em; text-transform: uppercase; }.alert-card span { margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@keyframes alertIn { from { clip-path: inset(0 100% 0 0); opacity: 0; } to { clip-path: inset(0); opacity: 1; } }
.countdown-card { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; text-shadow: none; }
.countdown-card::before, .countdown-card::after { content: ""; position: absolute; top: 50%; width: 20%; height: 1px; background: rgba(255,255,255,.7); }.countdown-card::before { left: 0; }.countdown-card::after { right: 0; }
.countdown-value { margin: 16px 0 10px; font-family: Impact, Haettenschweiler, sans-serif; font-size: clamp(78px, 11vw, 156px); line-height: .85; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--ink); background: none; text-transform: uppercase; }
.countdown-message { color: #9a9da1; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.social-card { display: flex; align-items: center; padding: 14px 20px; gap: 15px; }.social-dot { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid white; border-radius: 0; color: var(--accent); background: transparent; font-family: Impact, sans-serif; font-size: 24px; font-weight: 900; }.social-card strong { font-family: Impact, sans-serif; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }.social-card span { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.camera-frame-card { position: relative; width: 100%; height: 100%; border: 1px solid rgba(255,255,255,.8); background: transparent; }
.camera-frame-top { position: absolute; left: -1px; top: -43px; height: 43px; min-width: 250px; display: flex; align-items: center; gap: 14px; padding: 0 15px; color: white; background: var(--black); border-left: 1px solid white; border-top: 1px solid white; border-right: 1px solid white; }.camera-frame-top strong { font-size: 11px; letter-spacing: .17em; }.camera-frame-top span { padding-left: 13px; border-left: 1px solid #5a5d61; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.camera-frame-footer { position: absolute; left: 4%; right: 4%; bottom: -39px; height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: white; background: var(--black); border: 1px solid white; }.camera-frame-footer strong { font-size: 10px; letter-spacing: .15em; }.camera-frame-footer span { display: flex; align-items: center; gap: 7px; color: #aaa; font-size: 9px; font-weight: 900; letter-spacing: .13em; }.camera-frame-footer span i { width: 6px; height: 6px; background: var(--accent); }
.frame-corner { position: absolute; width: 23px; height: 23px; border-color: var(--accent); border-style: solid; }.corner-tl { left: -4px; top: -4px; border-width: 4px 0 0 4px; }.corner-tr { right: -4px; top: -4px; border-width: 4px 4px 0 0; }.corner-bl { left: -4px; bottom: -4px; border-width: 0 0 4px 4px; }.corner-br { right: -4px; bottom: -4px; border-width: 0 4px 4px 0; }
.online { background: #36e39a !important; box-shadow: 0 0 9px rgba(54,227,154,.7); }
.stat-card { display: flex; flex-direction: column; justify-content: center; padding: 17px 20px; }.stat-card > strong { margin-top: 3px; font-family: Impact, Haettenschweiler, sans-serif; font-size: 52px; line-height: .95; letter-spacing: .035em; }.data-source { position: absolute; right: 15px; bottom: 13px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }.data-source i, .feed-header i, .stream-state i { width: 6px; height: 6px; display: inline-block; background: #55595e; }
.feed-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }.feed-header { min-height: 53px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.35); }.feed-header strong { font-size: 12px; letter-spacing: .16em; }.feed-header > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .13em; }.feed-rows { min-height: 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding: 10px 17px; }.chat-row { display: grid; grid-template-columns: minmax(90px, 28%) 1fr; gap: 13px; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.1); }.chat-row:last-child { border-bottom: 0; }.chat-row b { overflow: hidden; color: var(--accent); font-size: 11px; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }.chat-row span { overflow: hidden; color: #d1d2d0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.feed-empty { flex: 1; display: grid; place-items: center; color: #686c70; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.event-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid rgba(255,255,255,.1); }.event-row:last-child { border-bottom: 0; }.event-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); color: var(--accent); font-size: 9px; font-weight: 900; }.event-row > div { min-width: 0; }.event-row b, .event-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.event-row b { font-size: 12px; }.event-row div span { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .12em; }.event-row time { color: #777b80; font-size: 9px; font-weight: 800; }
.stream-info-card { display: flex; flex-direction: column; justify-content: center; padding: 21px 25px; }.stream-state { display: flex; align-items: center; gap: 8px; color: #c7c8c5; font-size: 9px; font-weight: 900; letter-spacing: .18em; }.stream-info-card > strong { margin-top: 9px; overflow: hidden; font-family: Impact, Haettenschweiler, sans-serif; font-size: 31px; letter-spacing: .035em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }.stream-meta { display: flex; gap: 18px; margin-top: 10px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }.stream-meta span + span { padding-left: 18px; border-left: 1px solid #44474b; }
.system-card { display: grid; grid-template-columns: minmax(160px, 1.4fr) repeat(3, 1fr); align-items: center; padding: 15px 20px; gap: 18px; }.system-card > div:first-child strong { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 12px; letter-spacing: .12em; }.system-card > div:first-child strong i { width: 6px; height: 6px; background: #36e39a; box-shadow: 0 0 9px rgba(54,227,154,.65); }.system-metric { padding-left: 17px; border-left: 1px solid rgba(255,255,255,.22); }.system-metric span, .system-metric b { display: block; }.system-metric span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .15em; }.system-metric b { margin-top: 4px; font-family: Impact, sans-serif; font-size: 24px; letter-spacing: .04em; }
.ticker-card { display: grid; grid-template-columns: 175px 1fr auto; align-items: center; padding: 0 20px; gap: 20px; }.ticker-label { align-self: stretch; display: flex; align-items: center; margin: -1px 0 -1px -21px; padding: 0 20px; color: white; background: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .13em; }.ticker-copy { min-width: 0; display: flex; align-items: baseline; gap: 13px; }.ticker-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }.ticker-copy span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; white-space: nowrap; }.ticker-card time { color: #777b80; font-size: 9px; font-weight: 900; }
.missing-widget { width: 100%; height: 100%; display: grid; place-items: center; color: #fca5a5; border: 1px dashed #ef4444; }

/* Layout themes */
[data-theme="signal"] { --ink: #f5f5f2; --muted: #8e9297; --black: rgba(5,6,7,.94); --rule: rgba(245,245,242,.78); }
[data-theme="neon"] { --ink: #f8f5ff; --muted: #a99fbd; --black: rgba(9,5,20,.9); --rule: rgba(91,213,255,.72); }
[data-theme="neon"] .widget-card { border-radius: 14px; border-color: color-mix(in srgb, var(--accent) 58%, #53d8ff); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, rgba(7,4,16,.94)), rgba(5,8,20,.92)); box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 25%, transparent), inset 0 0 30px rgba(83,216,255,.025); }
[data-theme="neon"] .widget-card::before, [data-theme="neon"] .widget-card::after { border-color: #55d9ff; filter: drop-shadow(0 0 6px #55d9ff); }
[data-theme="neon"] .title-card::before, [data-theme="neon"] .title-card::after { box-shadow: 0 0 14px var(--accent); }
[data-theme="neon"] .camera-frame-card { border-radius: 16px; border-color: rgba(117,221,255,.82); box-shadow: inset 0 0 45px rgba(155,92,255,.08), 0 0 30px rgba(83,216,255,.12); }
[data-theme="neon"] .camera-frame-top, [data-theme="neon"] .camera-frame-footer { border-color: rgba(117,221,255,.75); border-radius: 8px; }
[data-theme="neon"] .goal-track { overflow: hidden; border-radius: 99px; }
[data-theme="neon"] .goal-track > div { border-radius: inherit; box-shadow: 0 0 12px var(--accent); }

[data-theme="glass"] { --ink: #f4fbff; --muted: #9eb3c2; --black: rgba(8,20,31,.68); --rule: rgba(186,230,253,.42); }
[data-theme="glass"] .widget-card { overflow: hidden; border-radius: 18px; border-color: rgba(186,230,253,.38); background: linear-gradient(145deg, rgba(186,230,253,.15), rgba(8,20,31,.72)); box-shadow: 0 20px 45px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.16); backdrop-filter: blur(18px) saturate(135%); }
[data-theme="glass"] .widget-card::before { left: 14px; top: 0; width: 32%; height: 1px; border: 0; background: linear-gradient(90deg, var(--accent), transparent); }
[data-theme="glass"] .widget-card::after { right: 14px; bottom: 0; width: 22%; height: 1px; border: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7)); }
[data-theme="glass"] .title-card { border-radius: 18px; padding-left: 30px; background: linear-gradient(90deg, rgba(56,189,248,.16), transparent); }
[data-theme="glass"] .camera-frame-card { border-radius: 22px; border-color: rgba(186,230,253,.5); box-shadow: inset 0 0 70px rgba(56,189,248,.055); }
[data-theme="glass"] .camera-frame-top, [data-theme="glass"] .camera-frame-footer { border-color: rgba(186,230,253,.4); border-radius: 12px; background: rgba(8,20,31,.72); backdrop-filter: blur(16px); }
[data-theme="glass"] .pill, [data-theme="glass"] .ticker-label { border-radius: 10px; }

[data-theme="arcade"] { --ink: #f8ffe9; --muted: #aab59b; --black: rgba(5,9,3,.96); --rule: rgba(183,255,60,.76); }
[data-theme="arcade"] .widget-shell { font-family: "Courier New", monospace; }
[data-theme="arcade"] .widget-card { border: 2px solid var(--accent); background: repeating-linear-gradient(0deg, rgba(183,255,60,.025) 0 2px, transparent 2px 5px), rgba(4,8,3,.96); box-shadow: 7px 7px 0 #f43fb4; clip-path: polygon(0 10px, 10px 10px, 10px 0, calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 10px calc(100% - 10px), 0 calc(100% - 10px)); }
[data-theme="arcade"] .widget-card::before, [data-theme="arcade"] .widget-card::after { width: 12px; height: 12px; border-color: #f43fb4; }
[data-theme="arcade"] .display-title, [data-theme="arcade"] .clock-value, [data-theme="arcade"] .countdown-value, [data-theme="arcade"] .stat-card > strong, [data-theme="arcade"] .system-metric b { font-family: "Courier New", monospace; font-weight: 900; text-shadow: 3px 3px 0 #f43fb4; }
[data-theme="arcade"] .title-card { clip-path: none; box-shadow: none; }
[data-theme="arcade"] .camera-frame-card { border: 3px solid var(--accent); box-shadow: 9px 9px 0 #f43fb4; }
[data-theme="arcade"] .camera-frame-top, [data-theme="arcade"] .camera-frame-footer { border: 2px solid var(--accent); background: #071004; }
[data-theme="arcade"] .ticker-label, [data-theme="arcade"] .pill { color: #071004; box-shadow: 4px 4px 0 #f43fb4; }
