/* Оформление служебной аналитики: крупные показатели, спокойные таблицы и видимый фокус. */
:root { color-scheme: dark; --surface: #19231f; --line: #35473d; --muted: #a9b8ad; --green: #c8e99a; --blue: #9ecbdf; }
form.toolbar { flex-direction: row; } .toolbar label, .toolbar button, .pagination button, .tabs button, .account-actions button { margin-top: 0; } .card.wide-card { max-width: none; }
body { margin: 0; color: #edf0e7; background: #101713; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--green); } button, input, select { font: inherit; } button { cursor: pointer; } button:disabled { opacity: .4; cursor: default; } :focus-visible { outline: 3px solid #a6d9ff; outline-offset: 3px; }
.topbar { border-bottom: 1px solid var(--line); background: #16221c; padding: 17px max(24px, calc((100vw - 1520px)/2)); display: flex; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; font-size: 19px; letter-spacing: .09em; font-weight: 850; color: var(--green); } .brand span { color: var(--muted); font-size: 14px; font-weight: 450; letter-spacing: normal; margin-left: 14px; } .topbar nav { display: flex; gap: 22px; }
.content { max-width: 1520px; width: auto; padding: 28px 24px 60px; margin: 0 auto; } h1 { margin: 2px 0 7px; font-size: 32px; line-height: 1.2; } h2 { font-size: 20px; margin: 0 0 12px; } p { margin: 0 0 16px; } .muted, .hint, .field-hint { color: var(--muted); font-size: 14px; }
.page-heading, .panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; } .page-heading { margin-bottom: 22px; } .eyebrow { color: var(--green); font-size: 11px; letter-spacing: .15em; margin: 0 0 8px; font-weight: 750; } .account-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
button, .button-link { border: 1px solid #aac381; background: var(--green); color: #1e2e1b; padding: 9px 16px; border-radius: 8px; font-weight: 700; min-height: 42px; } button:hover { filter: brightness(1.08); } .secondary { background: #25362c; color: #e4eade; border-color: #465d4d; }
input, select, textarea { background: #111b15; border: 1px solid #4a5b4e; border-radius: 7px; color: #edf0e7; padding: 9px 10px; min-width: 0; } input[type="checkbox"] { accent-color: var(--green); width: 18px; height: 18px; } label { font-size: 13px; color: var(--muted); }
.toolbar { display: flex; align-items: end; gap: 13px; flex-wrap: wrap; margin: 0 0 22px; } .toolbar label { display: flex; flex-direction: column; gap: 5px; } .toolbar .check-label { flex-direction: row; align-items: center; padding: 10px 0; } .quick-dates { display: flex; gap: 5px; } .quick-dates button { background: #1c2a21; color: #c9d4c8; border-color: #40533e; } .quick-dates button.selected { background: var(--green); color: #1e2e1b; }
.metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0 0 22px; } .metric-card { padding: 17px 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; } .metric-label { color: var(--muted); font-size: 13px; } .metric-value { display: block; font-size: 31px; font-weight: 800; line-height: 1.3; margin: 8px 0 3px; font-variant-numeric: tabular-nums; } .metric-note { color: var(--muted); font-size: 12px; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } .panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 23px; margin-bottom: 22px; min-width: 0; box-shadow: 0 3px 0 #0b110e; } .card { max-width: 550px; margin: 0 auto 24px; } .card form { display: grid; gap: 12px; } .badge { border-radius: 20px; background: #263829; color: var(--green); padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.funnel-step { display: grid; grid-template-columns: 28px 1fr 150px; align-items: center; gap: 12px; margin: 18px 0; } .step-number { border: 1px solid #4a6046; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 12px; } .step-label { font-size: 14px; display: flex; justify-content: space-between; gap: 8px; } .step-count { font-size: 18px; font-weight: 750; text-align: right; } .step-count small { display: block; font-size: 11px; font-weight: 450; color: var(--muted); } .step-count .step-loss { color: #e8ab9c; } progress { display: block; width: 100%; height: 7px; margin: 6px 0 0; border: 0; border-radius: 5px; background: #2e3d31; accent-color: var(--green); } progress::-webkit-progress-bar { background: #2e3d31; border-radius: 5px; } progress::-webkit-progress-value { background: var(--green); border-radius: 5px; }
.retention-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; } .retention-grid .metric-value { color: var(--blue); } .table-scroll { overflow: auto; } table { width: 100%; border-collapse: collapse; font-size: 13px; } th, td { border-bottom: 1px solid #344239; padding: 11px 12px; text-align: left; white-space: nowrap; vertical-align: top; } th { color: #baccb9; background: #1e2b22; font-size: 12px; position: sticky; top: 0; z-index: 1; } tbody tr:hover { background: #223227; } td { max-width: 350px; overflow: hidden; text-overflow: ellipsis; } .empty { padding: 28px; text-align: center; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 6px 0 18px; padding-bottom: 5px; } .tabs button { background: transparent; border-color: transparent; color: var(--muted); white-space: nowrap; } .tabs button[aria-selected="true"] { background: #33472b; color: var(--green); border-color: #526743; } .pagination { display: flex; align-items: center; justify-content: end; gap: 12px; padding-top: 16px; font-size: 13px; color: var(--muted); } #page-description { margin-right: auto; } .pagination label { display: flex; align-items: center; gap: 8px; } .footer-note { margin-top: 15px; font-size: 12px; }
#analytics-message { min-height: 0; margin: 0; } #analytics-message:not(:empty) { padding: 12px 16px; background: #3a3023; border: 1px solid #8c6b3c; border-radius: 8px; margin-bottom: 20px; } .error { color: #ffb7a2; } .ok { color: var(--green); }
.demo-notice { padding: 12px 16px; border: 1px solid #a77c52; border-radius: 8px; background: #403424; color: #ffe3bd; font-weight: 650; }
.history-summary { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 14px 0 18px; font-weight: 700; } .history-summary span { padding: 9px 12px; border-radius: 8px; background: #243329; }
dialog { color: #edf0e7; background: #18221c; border: 1px solid #56654f; border-radius: 14px; max-width: 1200px; width: calc(100vw - 80px); max-height: 88vh; padding: 26px; } dialog::backdrop { background: #050906c9; } .player-properties { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 15px 0 25px; } .player-properties dt { color: var(--muted); font-size: 11px; } .player-properties dd { margin: 2px 0 8px; font-size: 14px; overflow-wrap: anywhere; } .detail-section { margin-top: 25px; } details summary { cursor: pointer; color: var(--blue); } pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-width: 400px; } [hidden] { display: none !important; }
@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(3, 1fr); } .overview-grid { grid-template-columns: 1fr; } .page-heading { align-items: start; } .account-actions { max-width: 230px; } }
@media (max-width: 650px) { .content { padding: 20px 12px; } .topbar { padding: 14px; } .topbar nav { font-size: 12px; gap: 10px; } .brand span { display: none; } h1 { font-size: 25px; } .metric-grid { grid-template-columns: repeat(2, 1fr); } .metric-card { padding: 13px; } .metric-value { font-size: 27px; } .panel { padding: 15px; } .page-heading { flex-direction: column; } .account-actions { max-width: none; } .player-properties { grid-template-columns: repeat(2, 1fr); } .pagination { flex-wrap: wrap; } dialog { width: calc(100vw - 24px); padding: 14px; } }
