:root { color-scheme: dark; --ink: #f7f9ff; --muted: #9ca7bd; --line: #26324a; --panel: #10192a; --bg: #080d18; --accent: #5eead4; }
[hidden] { display:none !important; }
.icon-input { display:grid; gap:9px; min-width:0; margin:0; padding:12px; border:1px solid var(--line); border-radius:9px; }.icon-input legend { padding:0 5px; color:var(--muted); font-size:.8rem; }.icon-input small { color:var(--muted); font-size:.76rem; }.icon-preview { display:flex; align-items:center; gap:9px; min-height:36px; color:var(--muted); font-size:.76rem; }.icon-preview img { width:36px; height:36px; border-radius:9px; object-fit:cover; background:#1c2940; }
.nav-button,.form-stack button,.form-grid button { border:1px solid #3187a9; border-radius:9px; background:#193a54; color:var(--accent); cursor:pointer; font:inherit; font-weight:700; padding:9px 12px; }.nav-button { margin-left:auto; }.auth-shell { max-width:560px; padding-top:72px; }.brand-link { color:var(--accent); text-decoration:none; font-weight:700; }.auth-card { margin-top:24px; padding:28px; border:1px solid var(--line); border-radius:18px; background:var(--panel); }.auth-card h1 { font-size:2.3rem; }.form-stack,.form-grid { display:grid; gap:13px; margin-top:22px; }.form-stack label,.form-grid label { display:grid; gap:6px; color:var(--muted); font-size:.8rem; }.form-stack input,.form-grid input { color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:9px; padding:10px; }.form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.form-grid .check { display:flex; align-items:center; gap:8px; }.notice { padding:10px; border-left:3px solid #f9c74f; background:#24251c; color:#f6df9a; font-size:.85rem; }.admin-grid { display:grid; grid-template-columns:1fr; gap:14px; margin-top:28px; }.secondary { border:1px solid var(--line) !important; background:transparent !important; color:var(--muted) !important; }.small-button { padding:5px 8px !important; font-size:.75rem !important; margin-right:6px; }.game-icon { width:26px; height:26px; border-radius:7px; object-fit:cover; vertical-align:middle; margin-right:8px; background:#1c2940; }
.password-control { display:flex; position:relative; width:100%; }.password-control input { width:100%; padding-right:44px !important; }.password-toggle { position:absolute; top:50%; right:4px; display:grid; width:36px; height:calc(100% - 8px); min-height:32px; place-items:center; transform:translateY(-50%); border:0; border-radius:7px; background:transparent; color:var(--muted); cursor:pointer; padding:0 !important; }.password-toggle:hover,.password-toggle:focus-visible { background:#193a54; color:var(--accent); outline:none; }.password-toggle svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.9; }.user-edit-dialog { width:min(460px, calc(100% - 28px)); padding:0; border:1px solid #3187a9; border-radius:16px; background:var(--panel); color:var(--ink); box-shadow:0 24px 80px #000c; }.user-edit-dialog::backdrop { background:#030814b8; }.user-edit-dialog form { margin:0; padding:22px; }.dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }.dialog-head h2 { font-size:1.2rem; }.dialog-head .eyebrow { margin-bottom:5px; }.dialog-head .secondary { padding:6px 9px; }.field-help { color:var(--muted); font-size:.75rem; font-weight:400; }.dialog-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }.dialog-actions button { flex:1; }
@media (max-width:700px) { .form-grid { grid-template-columns:1fr; }.nav-button { margin-left:0; } }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 80% -20%, #17365a 0, transparent 35%), var(--bg); color: var(--ink); font: 16px/1.45 Inter, ui-sans-serif, system-ui, sans-serif; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 80px; }
.site-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 36px; }.site-nav a { border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .82rem; font-weight: 700; padding: 8px 13px; text-decoration: none; }.site-nav a:hover, .site-nav a.active { background: #193a54; border-color: #3187a9; color: var(--accent); }.language { color: var(--muted); display: flex; align-items: center; font-size: .78rem; gap: 7px; margin-left: auto; }.language select { padding: 6px 8px; }
header, .panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.eyebrow { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 10px; }
h1 { font-size: clamp(2.2rem, 5vw, 4.1rem); letter-spacing: -.06em; margin: 0; }
h2 { font-size: 1rem; margin: 0; letter-spacing: -.01em; }
.subtle, small, .panel-head span { color: var(--muted); font-size: .85rem; }
.period { color: var(--muted); font-size: .8rem; display: grid; gap: 6px; }
select { color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.cards, .insight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 38px 0 14px; }
.health-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }.health-grid article { min-height: 118px; }
article, .panel, .empty { border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 86%, transparent); border-radius: 16px; }
article { padding: 18px; min-height: 132px; display: flex; flex-direction: column; }
article span { color: var(--muted); font-size: .8rem; } article strong { font-size: clamp(1.55rem, 3vw, 2.35rem); letter-spacing: -.06em; margin: 12px 0 3px; } article small { margin-top: auto; }
.panel { margin-top: 14px; padding: 20px; }.panel-head { align-items: center; margin-bottom: 18px; }.panel-head > div { display: grid; gap: 4px; }
.metric-switch { display: flex; gap: 6px; }.metric { border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: .78rem; padding: 6px 9px; }.metric:hover, .metric.active { background: #193a54; border-color: #3187a9; color: var(--accent); }
.comparison-metric-control { min-width: 250px; }.metric-picker { position: relative; }.metric-picker summary { cursor: pointer; min-height: 42px; padding: 10px 34px 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); list-style: none; }.metric-picker summary::-webkit-details-marker { display: none; }.metric-picker summary::after { content: "⌄"; position: absolute; right: 12px; }.metric-picker[open] summary { border-color: #3187a9; }.metric-picker-popover { position: absolute; z-index: 10; width: min(440px, calc(100vw - 48px)); max-height: 430px; margin-top: 5px; padding: 8px; border: 1px solid #3187a9; border-radius: 10px; background: var(--panel); box-shadow: 0 14px 30px #0009; }.metric-picker-options { max-height: 340px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }.metric-picker-options label { display: flex !important; align-items: center; gap: 9px; min-height: 42px; padding: 7px 8px; border-radius: 7px; color: var(--ink) !important; font-size: .82rem !important; cursor: pointer; }.metric-picker-options label:hover { background: #193a54; }.metric-picker-options input { width: 18px !important; min-width: 18px !important; height: 18px; accent-color: var(--accent); }.metric-picker-actions { display:flex; gap:8px; padding:8px 0 0; }.metric-picker-actions button { flex:1; min-height:42px; border:1px solid #3187a9; border-radius:8px; background:#193a54; color:var(--accent); font:inherit; font-weight:700; }
.chart { height: 250px; display: flex; align-items: end; gap: max(3px, .5%); border-bottom: 1px solid var(--line); padding: 0 4px; }.bar { flex: 1; min-width: 4px; background: linear-gradient(#5eead4, #2487b8); border-radius: 5px 5px 0 0; position: relative; }.bar:hover::after { content: attr(data-label); position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 6px; border-radius: 5px; background: #06101e; color: #fff; font-size: .72rem; z-index: 1; }
.chart-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .76rem; padding-top: 7px; }.insight-grid { grid-template-columns: repeat(4, 1fr); margin: 14px 0 0; }.insight { min-height: 116px; }.insight strong { font-size: 1.7rem; }
.events-list { display: grid; gap: 10px; }.event { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr auto; align-items: center; gap: 12px; font-size: .9rem; }.track { height: 8px; background: #1c2940; border-radius: 8px; overflow: hidden; }.fill { height: 100%; background: var(--accent); border-radius: inherit; }.event b { font-variant-numeric: tabular-nums; }
.level-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }.level-summary article { min-height: 108px; }.level-table-wrap { overflow-x: auto; }.level-table { width: 100%; border-collapse: collapse; font-size: .88rem; }.level-table th, .level-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }.level-table th { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }.level-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }.level-table th:not(:first-child) { text-align: right; }
.ltv-summary article { min-height: 192px; }.ltv-summary-values { display: grid; gap: 8px; margin: 12px 0 5px; }.ltv-summary-value { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }.ltv-summary-value span { font-size: .78rem; }.ltv-summary-value strong { margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.6rem); letter-spacing: -.04em; }.ltv-summary-value.total strong { color: var(--accent); font-size: clamp(1.35rem, 2.7vw, 1.9rem); }.level-chart-controls { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:0 0 14px; }.level-chart-controls label { display:grid; gap:5px; color:var(--muted); font-size:.75rem; }.chart-type-switch { display:flex; gap:6px; }.level-metric-chart { height:310px; padding:4px 0; border:1px solid var(--line); border-radius:12px; background:color-mix(in srgb, var(--bg) 68%, transparent); overflow:hidden; }.level-metric-chart svg { width:100%; height:100%; display:block; }.level-chart-grid { stroke:var(--line); stroke-width:1; }.level-chart-axis { fill:var(--muted); font:12px Inter,ui-sans-serif,system-ui,sans-serif; }.level-chart-bar { fill:#2aa59d; opacity:.88; }.level-chart-bar:hover { fill:#5eead4; opacity:1; }.level-chart-line { fill:none; stroke:#5eead4; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }.level-chart-dot { fill:#10192a; stroke:#5eead4; stroke-width:2; }.level-chart-dot:hover { fill:#5eead4; }.chart-note { margin:8px 0 16px; color:var(--muted); font-size:.78rem; }.table-sort { appearance:none; border:0; padding:0; background:none; color:inherit; cursor:pointer; font:inherit; font-weight:inherit; letter-spacing:inherit; text-transform:inherit; }.table-sort::after { content:attr(data-direction); color:var(--accent); }.table-sort:hover,.table-sort.active { color:var(--accent); }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }.funnel-step { min-height: 112px; position: relative; overflow: hidden; }.funnel-step:nth-child(2) { border-color: #267f70; }.funnel-step:nth-child(3) { border-color: #a56443; }.funnel-step:nth-child(4) { border-color: #53627f; }.priority { font-size: .75rem; font-weight: 800; }.priority.critical { color: #ff8a65; }.priority.high { color: #f9c74f; }.priority.watch { color: var(--muted); }.priority.low-volume { color: #8fa3b8; }.priority.pass { color: #5eead4; }.priority.warn { color: #f9c74f; }
.health-notes { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }.health-notes article { min-height:150px; gap:8px; }.health-notes strong { font-size:1rem; letter-spacing:0; margin:0; color:var(--accent); }.health-notes span { line-height:1.5; }
.dashboard-controls { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:0 0 14px; padding:14px; border:1px solid var(--line); border-radius:14px; background:color-mix(in srgb, var(--panel) 75%, transparent); }.dashboard-controls label { display:grid; gap:5px; color:var(--muted); font-size:.75rem; }.dashboard-controls input { min-width:210px; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:9px; padding:8px 10px; }.dashboard-controls button { border:1px solid #3187a9; border-radius:9px; background:#193a54; color:var(--accent); cursor:pointer; font-weight:700; padding:9px 12px; }.dashboard-controls small { margin-left:auto; }.table-link { color:var(--accent); text-decoration:none; font-weight:700; }.table-link:hover { text-decoration:underline; }
.retention-summary { grid-template-columns:repeat(4,1fr); margin-top:20px; }.retention-table-wrap { max-height:68vh; }.retention-table { min-width:max-content; }.retention-table th:first-child,.retention-table td:first-child { position:sticky; left:0; z-index:2; background:#10192a; }.retention-table th:nth-child(2),.retention-table td:nth-child(2) { position:sticky; left:116px; z-index:2; background:#10192a; }.retention-table thead th { position:sticky; top:0; z-index:3; background:#10192a; }.retention-table thead th:first-child,.retention-table thead th:nth-child(2) { z-index:4; }.retention-table tfoot th { position:sticky; bottom:0; z-index:3; background:#15233a; color:var(--accent); }.retention-cell { min-width:64px; }.retention-cell.not-mature { color:#64748b; }.retention-note { color:var(--muted); font-size:.82rem; margin:0 0 12px; }
.comparison-entity-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:20px 0; }.comparison-entity-cards article { min-height:112px; }.comparison-entity-cards article:first-child { border-color:#287d8d; }.comparison-entity-cards article:nth-child(2) { border-color:#7556a5; }.comparison-caveats { color:var(--muted); display:grid; gap:8px; margin:0; padding-left:20px; }.comparison-caveat-panel { margin-bottom:20px; }
.comparison-table .comparison-delta--positive { color:#5eead4; font-weight:700; }.comparison-table .comparison-delta--negative { color:#fb7185; font-weight:700; }
.deep-dive-controls { display: flex; gap: 10px; align-items: flex-end; }.deep-dive-controls #level-select { max-width: 260px; }.step-risk-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }.step-risk { min-height: 132px; gap: 5px; }.step-risk strong { color: #ffb58d; font-size: 1rem; letter-spacing: 0; margin: 0; }.step-risk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.step-risk small { line-height: 1.35; }.risk-value { color: #ffb58d; font-weight: 700; }
.empty { margin-top: 34px; padding: 32px; }.empty h2 { font-size: 1.35rem; }.empty p { color: var(--muted); }
.portfolio-totals { grid-template-columns: repeat(3, 1fr); }.game-filters { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:20px; }.game-toggle { display:flex; align-items:center; gap:7px; border:1px solid var(--line); border-radius:999px; padding:7px 11px; color:var(--muted); font-size:.82rem; cursor:pointer; }.game-toggle i { width:8px; height:8px; border-radius:50%; }.line-chart { display:grid; gap:14px; min-height:180px; }.chart-lane { display:grid; grid-template-columns:160px 1fr; gap:14px; align-items:center; }.chart-lane > span { font-size:.8rem; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.mini-bars { display:flex; align-items:end; gap:2px; height:72px; border-bottom:1px solid var(--line); }.mini-bars i { flex:1; min-width:2px; opacity:.85; border-radius:2px 2px 0 0; }.game-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:14px; }.game-card { min-height:130px; display:flex; flex-direction:column; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--panel); color:var(--ink); text-decoration:none; }.game-card:hover { border-color:#3187a9; transform:translateY(-1px); }.game-card span,.game-card small { color:var(--muted); font-size:.78rem; }.game-card strong { font-size:1.25rem; margin:12px 0; }.game-card small { margin-top:auto; }
.sync-form { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-bottom:12px; }.sync-form label { display:grid; gap:5px; color:var(--muted); font-size:.78rem; }.sync-form input,.sync-form select,.sync-form button { min-height:36px; }.sync-form button,.level-table button { border:1px solid #3187a9; border-radius:8px; background:#193a54; color:var(--accent); padding:7px 10px; cursor:pointer; }
@media (max-width: 700px) { main { width: min(100% - 24px, 1180px); padding-top: 24px; } .site-nav { margin-bottom: 28px; flex-wrap: wrap; } header { flex-direction: column; } .cards, .level-summary, .funnel, .health-grid, .comparison-entity-cards { grid-template-columns: repeat(2, 1fr); margin-top: 28px; } .level-summary, .funnel, .health-grid { margin-top: 0; }.insight-grid, .health-notes { grid-template-columns: 1fr; }.panel-head { align-items: flex-start; flex-direction: column; }.panel-head > span { text-align: left; } article { min-height: 112px; padding: 15px; }.panel { padding: 16px; }.chart { height: 190px; }.level-metric-chart { height:230px; }.event { grid-template-columns: 100px 1fr auto; gap: 8px; font-size: .8rem; }.level-table { font-size: .8rem; }.level-table th, .level-table td { padding: 10px 8px; } .language { margin-left: 0; } .deep-dive-controls { width: 100%; } .deep-dive-controls .period { flex: 1; } .deep-dive-controls #level-select { max-width: 100%; width: 100%; } .step-risk-list { grid-template-columns: 1fr; } .dashboard-controls { align-items:stretch; }.dashboard-controls label { width:100%; }.dashboard-controls input,.dashboard-controls select,.dashboard-controls button { width:100%; }.dashboard-controls small { margin-left:0; } .retention-summary { grid-template-columns:repeat(2,1fr); }.retention-table th:nth-child(2),.retention-table td:nth-child(2) { left:92px; } }
