:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #070b16; color: #f2f5ff; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% -5%, #1a2c63 0, transparent 34rem), #070b16; }
body.authenticated .auth-screen { display: none; } body:not(.authenticated) .app-shell { display: none; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #8b8d91; }
.auth-card { width: min(420px, 100%); padding: 30px; border: 1px solid #b8bac0; border-radius: 16px; color: #f5f7fb; background: #25272c; box-shadow: 0 24px 70px #0007; }.auth-card h1 { margin-bottom: 8px; }.auth-description { color: #d0d3d9; line-height: 1.45; }.auth-form label { margin-top: 16px; }.auth-form .primary-button { width: 100%; }.auth-error { min-height: 1.4em; margin: 15px 0 0; color: #ff9b9b; }.auth-card .text-button { margin-top: 12px; padding-left: 0; color: #9dbdff; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1440px, 100%); margin: auto; padding: 0 28px 36px; }
.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #25304c; }
.brand { color: #fff; text-decoration: none; letter-spacing: .12em; font-size: 15px; font-weight: 800; }
nav { display: flex; gap: 6px; }
.language-picker { position: relative; }
.language-toggle { min-width: 112px; padding: 10px 12px; border: 1px solid #344566; border-radius: 9px; color: #eaf0ff; background: #10182a; font-weight: 700; }
.language-options { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; display: none; min-width: 158px; overflow: hidden; border: 1px solid #405272; border-radius: 9px; background: #10182a; box-shadow: 0 15px 32px #0009; }
.language-options.open { display: block; }.language-option { display: block; width: 100%; padding: 10px 12px; border: 0; color: #eaf0ff; background: transparent; text-align: left; }.language-option:hover, .language-option.active { background: #243250; }
.nav-button, .secondary-button, .text-button { color: #acb8d6; background: transparent; border: 0; padding: 10px 13px; border-radius: 9px; font-weight: 650; }
.nav-button:hover, .nav-button.active { color: #fff; background: #19223b; }
.tab-panel { display: none; padding-top: 38px; }
.tab-panel.active { display: block; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 28px; }
.section-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.section-heading.compact { align-items: flex-start; }
.eyebrow { color: #8fa5d8; font-size: 11px; letter-spacing: .14em; font-weight: 800; margin: 0 0 7px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 43px); letter-spacing: -.04em; margin-bottom: 0; }
h2 { font-size: 18px; margin-bottom: 22px; }
.bubble-board { position: relative; height: min(68vh, 740px); min-height: 460px; overflow: hidden; border: 1px solid #263657; border-radius: 12px; background: #090b0f; box-shadow: inset 0 0 90px #15234a55; }
#bubble-canvas { display: block; width: 100%; height: 100%; touch-action: manipulation; }
.bubble-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble-label { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; width: var(--diameter); height: var(--diameter); color: #fff; text-align: center; will-change: transform; }
.bubble-label strong, .bubble-label span { display: block; max-width: 86%; line-height: 1.04; }
.bubble-label strong { overflow: hidden; overflow-wrap: normal; word-break: normal; font-size: var(--name-size); font-weight: 800; }
.bubble-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble-label span { margin-top: 4px; font-size: var(--score-size); font-weight: 650; }
.heatmap-board { position: absolute; inset: 0; display: none; overflow: hidden; background: #0b0e12; }
.bubble-board.style-heatmap #bubble-canvas { display: none; }
.bubble-board.style-heatmap .bubble-labels { display: none; }
.bubble-board.style-heatmap .heatmap-board { display: block; }
.heatmap-tile { position: absolute; display: grid; place-content: center; min-width: 0; min-height: 0; padding: 5px; overflow: hidden; text-align: center; color: #fff; border: 1px solid #ffffffd9; box-shadow: inset 0 0 0 1px #00000018; cursor: pointer; }
.heatmap-tile strong, .heatmap-tile span { max-width: 92%; }
.heatmap-tile strong { line-height: 1.04; overflow-wrap: normal; word-break: normal; font-size: var(--name-size); }
.heatmap-tile span { margin-top: 3px; white-space: nowrap; font-size: var(--value-size); font-weight: 650; }
.board-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.board-empty.hidden { display: none; }
.fullscreen-exit { display: none; position: absolute; z-index: 2; right: 18px; top: 18px; border: 1px solid #526586; border-radius: 9px; color: #fff; background: #121b2dd9; padding: 10px 13px; font-weight: 700; }
.bubble-board:fullscreen, .bubble-board.pseudo-fullscreen { width: 100vw; height: 100vh; min-height: 0; border: 0; border-radius: 0; }
.bubble-board:fullscreen .fullscreen-exit, .bubble-board.pseudo-fullscreen .fullscreen-exit { display: block; }
.bubble-board.pseudo-fullscreen { position: fixed; z-index: 1000; inset: 0; }
.hint { color: #8291b6; margin: 14px 4px; font-size: 14px; }
.admin-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr); gap: 20px; align-items: start; }
.card { background: #10182a; border: 1px solid #273552; border-radius: 16px; padding: 24px; }
label { display: block; color: #b9c5df; font-size: 14px; font-weight: 650; margin: 18px 0 7px; }
label span { color: #7181a8; font-weight: 400; }
input, select { width: 100%; padding: 12px 13px; border: 1px solid #344566; color: #f7f9ff; border-radius: 9px; outline: none; background: #09101f; }
input:focus, select:focus { border-color: #6f98ff; box-shadow: 0 0 0 3px #547de633; }
.person-picker { position: relative; }
.person-options { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; right: 0; display: none; max-height: 218px; overflow-y: auto; border: 1px solid #415678; border-radius: 9px; background: #0b1324; box-shadow: 0 14px 28px #0008; }
.person-options.open { display: block; }
.person-option { width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid #23304b; color: #eff4ff; background: transparent; text-align: left; }
.person-option:last-child { border-bottom: 0; }.person-option:hover, .person-option:focus { color: #fff; background: #22304d; outline: none; }
.person-option.empty { color: #8c9bbb; cursor: default; }
.primary-button { margin-top: 23px; padding: 12px 16px; border: 0; border-radius: 9px; color: #06101e; background: #79a7ff; font-weight: 800; }
.secondary-button { border: 1px solid #344566; }
.form-actions { display: flex; align-items: center; gap: 6px; }
.text-button { margin-top: 23px; }
.hidden { display: none; }
.person-row, .result-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid #23304b; }
.person-row:last-child, .result-row:last-child { border-bottom: 0; }
.person-meta, .result-meta { color: #8a9abe; font-size: 13px; margin: 4px 0 0; }
.row-actions { display: flex; flex-shrink: 0; gap: 2px; }
.icon-button { border: 0; padding: 8px; border-radius: 8px; color: #aab9d9; background: transparent; }
.icon-button:hover { background: #1e2a44; color: white; }
.empty-state { color: #8291b6; padding: 12px 0; }
.style-options { display: grid; grid-template-columns: repeat(2, minmax(240px, 390px)); gap: 18px; }
.style-option { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 16px; margin: 0; padding: 16px; border: 1px solid #2b3a5b; border-radius: 14px; background: #10182a; cursor: pointer; }
.style-option:has(input:checked) { border-color: #79a7ff; box-shadow: 0 0 0 2px #79a7ff2e; }
.style-option input { position: absolute; opacity: 0; pointer-events: none; }
.style-option strong, .style-option small { display: block; }
.style-option small { margin-top: 5px; color: #8d9bbb; line-height: 1.35; }
.style-preview { position: relative; display: block; height: 76px; overflow: hidden; border-radius: 8px; background: #080c16; }
.style-preview i { position: absolute; display: block; }
.bubbles-preview i { border-radius: 50%; background: radial-gradient(circle at 35% 25%, #ffffff6b, #38b85b 38%, #08170b 78%); }
.bubbles-preview i:nth-child(1) { width: 52px; height: 52px; left: 7px; top: 12px; }.bubbles-preview i:nth-child(2) { width: 38px; height: 38px; left: 52px; top: 5px; background: radial-gradient(circle at 35% 25%, #ffffff6b, #d7bd28 38%, #1b1805 78%); }.bubbles-preview i:nth-child(3) { width: 31px; height: 31px; left: 67px; bottom: 4px; background: radial-gradient(circle at 35% 25%, #ffffff6b, #e33b32 38%, #1c0605 78%); }
.heatmap-preview { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; gap: 2px; }.heatmap-preview i { position: static; background: #40bf7e; }.heatmap-preview i:nth-child(1) { grid-row: span 3; }.heatmap-preview i:nth-child(2) { grid-row: span 2; background: #6ecb8d; }.heatmap-preview i:nth-child(3) { background: #d4c84e; }.heatmap-preview i:nth-child(4) { background: #e67a38; }.heatmap-preview i:nth-child(5) { background: #da4944; }.heatmap-preview i:nth-child(6) { background: #5fc98b; }
dialog { color: #f3f6ff; width: min(440px, calc(100vw - 32px)); background: #111a2e; border: 1px solid #3b4d75; border-radius: 16px; padding: 28px; box-shadow: 0 24px 100px #000a; }
dialog::backdrop { background: #01040dcc; }
.dialog-close { position: absolute; top: 10px; right: 13px; font-size: 27px; line-height: 1; border: 0; color: #adbad6; background: transparent; }
.dialog-score { font-size: 28px; font-weight: 800; color: #8fb4ff; }
.history-item { padding: 11px 0; border-top: 1px solid #273654; color: #c8d2e9; }
@media (max-width: 700px) { .app-shell { padding: 0 16px 26px; } .topbar { min-height: 70px; align-items: flex-start; padding-top: 16px; flex-direction: column; gap: 8px; } nav { width: 100%; justify-content: space-between; overflow-x: auto; } .language-picker { position: absolute; top: 16px; right: 16px; } .language-toggle { min-width: 0; padding: 8px 10px; } .nav-button { padding: 8px; font-size: 14px; } .section-heading { align-items: flex-start; flex-direction: column; } .section-actions { justify-content: flex-start; } .bubble-board { min-height: 490px; height: 64vh; } .admin-grid, .style-options { grid-template-columns: 1fr; } }
