/* Final presentation layer. All portal modules, IDs and data/action hooks are retained. */
:root { --ink: #171824; --dark: #171824; --muted: #6d6e80; --paper: #f7f7fc; --line: #e4e4f0; --accent: #635bff; --radius: 4px; }
body { background: var(--paper); font-size: 15px; line-height: 1.7; color: var(--ink); }
h1, h2, h3 { letter-spacing: -.035em; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input, textarea, select { border-color: #b8b8c7; border-radius: 4px; font-size: 15px; padding: 12px; background: #fff; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px #635bff1a; }
input::placeholder, textarea::placeholder { color: #747586; }
label { font-size: 14px; }
.sidebar { --ink: #f6f6ff; --muted: #b6b5cb; --line: #343545; width: 216px; padding: 32px 20px 24px; background: var(--dark); color: var(--ink); border-right: 1px solid var(--line); }
.brand-symbol { width: 30px; height: 30px; }
.brand-wordmark { color: var(--ink); font-size: 27px; letter-spacing: -.065em; line-height: 1.1; }
.brand small { font-size: 9px; color: var(--muted); letter-spacing: .08em; font-weight: 450; margin-top: 7px; }
.workspace-label { margin: 45px 10px 12px; color: var(--muted); font-size: 11px; letter-spacing: 0; }
.workspace-label span { display: none; }
.nav-item { color: #b6b5cb; font-size: 14px; font-weight: 500; padding: 12px 10px; min-height: 48px; border-radius: 3px; margin-block: 3px; gap: 12px; }
.nav-item:hover { color: var(--ink); background: #272837; }
.nav-item.active { --muted: #fff; color: var(--ink); background: #635bff; font-weight: 650; }
.nav-icon { display: inline-flex; width: 19px; height: 19px; align-items: center; }
.nav-icon svg { width: 19px; height: 19px; }
.nav-count, .active .nav-count { color: var(--muted); background: transparent; font-size: 12px; padding: 0 3px; }
.sidebar-note { margin-top: auto; margin-bottom: 0; padding: 20px 10px 0; border-color: var(--line); }
.sidebar-note strong, .sidebar-note p, .sidebar-bottom, .live-dot, .eyebrow { display: none; }
.sidebar-note a { color: var(--ink); font-size: 13px; margin: 0; min-height: 44px; display: flex; align-items: center; }
.app-shell { margin-left: 216px; }
.topbar { min-height: 84px; height: auto; padding: 20px 48px; background: transparent; border-color: var(--line); }
.breadcrumb, .breadcrumb strong { color: var(--muted); font-size: 12px; }
.breadcrumb span { color: #747586; }
.account-actions { gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
#account-name { color: var(--ink); font-size: 13px; }
.button { min-height: 46px; border-radius: 4px; font-size: 14px; font-weight: 550; gap: 16px; padding: 11px 18px; transition: background-color 160ms ease, color 160ms ease; }
.button:hover { transform: none; }
.button-dark:hover { background: #333445; }
.button-small { min-height: 40px; font-size: 13px; padding: 8px 14px; }
.button-outline { border-color: #b9b6cd; background: transparent; }
.button-outline:hover { background: #eeedfa; }
.text-button { color: #5d5b7d; font-size: 13px; font-weight: 500; min-height: 44px; padding-block: 10px; }
.text-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.language-picker { background: transparent; border: 0; padding: 8px 25px 8px 8px; font-size: 13px; color: #5d5b7d; border-radius: 0; min-height: 44px; }
.language-picker:focus, .language-picker:focus-visible { outline: none; box-shadow: none; border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 5px; }
main { max-width: 1352px; padding: 48px 48px 24px; }
.hero { min-height: 0; background: transparent; border: 0; border-radius: 0; overflow: visible; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 64px; padding: 32px 0 56px; align-items: start; }
.hero-copy { padding: 0; }
.hero h1 { font-size: clamp(36px, 3.4vw, 54px); line-height: 1.22; letter-spacing: -.055em; font-weight: 650; margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.hero h1 span { color: var(--accent); }
.hero-copy>p { font-size: 15px; line-height: 1.9; color: var(--muted); margin-top: 24px; word-break: keep-all; }
.hero-button { margin-top: 32px; min-width: 190px; }
.hero-caption { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 14px; }
.hero-art { display: none; }
.overview-process { border-top: 1px solid #747586; min-width: 0; }
.overview-process .steps-grid { display: block; }
.overview-process .step-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 22px 0 22px 44px; position: relative; }
.overview-process .step-number { position: absolute; left: 0; top: 22px; border: 0; width: auto; height: auto; border-radius: 0; font-size: 12px; font-weight: 450; color: var(--muted); }
.overview-process .step-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.5; font-weight: 550; }
.overview-process .step-card p { font-size: 13px; min-height: 0; color: var(--muted); line-height: 1.8; }
.overview-process .step-tag { background: transparent; padding: 0; margin-top: 10px; border-radius: 0; font-size: 12px; color: #6d6e80; }
.value-strip { border-top: 1px solid var(--line); padding: 32px 0; gap: 32px; }
.value-strip>div { padding: 0; }
.value-strip>div>span { display: none; }
.value-strip strong { font-size: 14px; font-weight: 550; }
.value-strip p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 8px; }
.faq-row { margin-top: 0; padding: 28px 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.faq-row h3 { font-size: 16px; font-weight: 550; }
.faq-row p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.page-heading { align-items: flex-end; margin-bottom: 32px; }
.page-heading h1 { font-size: 34px; margin: 0; font-weight: 600; }
.page-heading p { font-size: 14px; color: var(--muted); margin-top: 12px; }
.stats-grid { gap: 0; border-block: 1px solid var(--line); }
.stat-card { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; padding: 22px 24px; }
.stat-card:first-child { padding-left: 0; }
.stat-card:last-child { border-right: 0; }
.stat-card>span { font-size: 13px; color: var(--muted); }
.stat-card strong { font-size: 36px; font-weight: 450; line-height: 1.3; margin-block: 10px; }
.stat-card small { font-size: 12px; color: var(--muted); }
.list-toolbar { margin-block: 28px 12px; }
.list-toolbar h2 { font-size: 17px; font-weight: 550; }
.list-toolbar h2 span { color: var(--muted); }
.empty-state { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 60px 20px; background: transparent; }
.empty-icon, .game-avatar, .guide-icon, .preview-avatar, .metric-symbol { display: none; }
.empty-state h2 { margin-top: 0; font-size: 21px; font-weight: 550; }
.empty-state p { color: var(--muted); font-size: 14px; }
.game-list { gap: 0; }
.game-card { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; padding: 26px 0; border: 0; border-top: 1px solid var(--line); background: transparent; border-radius: 0; }
.game-info h3 { font-size: 22px; font-weight: 550; margin-block: 5px; }
.game-meta, .game-note { font-size: 13px; color: var(--muted); }
.game-actions { gap: 16px; flex-wrap: wrap; align-items: center; }
.game-actions .text-button { border: 0; border-radius: 0; background: transparent; padding: 10px 0; }
.badge { border-radius: 2px; font-size: 12px; font-weight: 500; padding: 2px 8px; }
.badge-approved { color: #28533e; background: #e3ece4; }
.badge-pending { color: #625027; background: #ece7d9; }
.badge-rejected { color: #8b3932; background: #f3e4df; }
.analytics-panel { border-top-color: var(--line); padding-top: 20px; margin-top: 0; }
.analytics-summary { color: var(--ink); font-size: 14px; min-height: 44px; }
.analytics-summary>span:before { content: none; }
.panel, .review-card { background: #fff; border-color: var(--line); border-radius: 4px; box-shadow: none; }
.form-layout { gap: 40px; }
.form-guide { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 20px 0 0; }
.form-guide h3 { font-size: 17px; font-weight: 550; }
.form-guide p, .form-guide li, .form-guide strong { font-size: 13px; color: #6a6478; line-height: 1.9; }
.guide-footer { display: none; }
.field-help, .field-footer, .form-actions>span { font-size: 13px; color: var(--muted); }
.form-section-heading h2 { font-size: 19px; font-weight: 550; }
.form-section-heading p { color: var(--muted); font-size: 13px; }
.form-section-heading>span { color: var(--muted); border: 0; border-radius: 0; background: transparent; }
.file-limits { border: 0; background: #f7f7fc; border-radius: 4px; }
.file-limits span, .build-details p { color: var(--muted); font-size: 12px; }
.checkbox-label { font-size: 13px; color: #5d5b7d; }
.checkbox-label input { accent-color: var(--accent); }
.guide-hero { padding: 10px 0 32px; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; }
.guide-hero h1 { font-size: 44px; font-weight: 600; line-height: 1.3; margin: 0 0 20px; }
.guide-hero h1>span { color: var(--ink); }
.guide-hero>p { font-size: 15px; color: var(--muted); }
.guide-hero-tags { gap: 20px; margin-top: 20px; }
.guide-hero-tags>span { padding: 0; border: 0; border-radius: 0; background: transparent; color: #6c6587; font-size: 13px; }
.guide-jump-links { background: var(--paper); border-color: var(--line); border-radius: 0; }
.guide-jump-links a { border-radius: 0; font-size: 13px; color: #5d5b7d; min-height: 44px; }
.guide-section { border-color: var(--line); }
.guide-section-label { color: var(--muted); font-size: 12px; }
.guide-section h2 { font-size: 24px; font-weight: 550; }
.guide-section p, .guide-section li { color: #6a6478; font-size: 14px; line-height: 1.9; }
.guide-callout, .guide-file-example, .guide-rules article { border-color: var(--line); border-radius: 3px; background: #efedff; }
.guide-file-example pre { color: #5d5b7d; background: #eeedff; border-color: var(--line); }
.guide-rules article>span { color: var(--muted); border: 0; border-radius: 0; background: transparent; }
.guide-cta { background: #eeedff; border: 0; border-radius: 0; padding: 28px; }
.guide-cta h2 { font-size: 24px; font-weight: 550; margin: 0; }
.review-card h2 { font-size: 22px; }
.review-card p, .review-notice { font-size: 14px; color: #6a6478; }
.review-notice { background: #efedff; border-color: var(--line); border-radius: 3px; }
.review-details { font-size: 13px; grid-template-columns: 140px minmax(0,1fr); }
.review-details dt { color: var(--muted); }
dialog { border-radius: 6px; border-color: var(--line); box-shadow: 0 16px 64px #17182424; }
dialog::backdrop { background: #17182466; backdrop-filter: none; }
.dialog-close { border: 0; background: transparent; color: var(--muted); }
#auth-dialog h2 { font-size: 28px; font-weight: 550; }
#auth-dialog>p { color: var(--muted); font-size: 14px; }
.auth-symbol { margin-bottom: 24px; }
.auth-switch { font-size: 13px; color: var(--muted); }
.preview-dialog { border-radius: 5px; }
.preview-placeholder { border-color: var(--line); border-radius: 3px; background: #f7f7fc; }
.preview-placeholder strong { color: var(--ink); font-size: 24px; }
.preview-placeholder p, .preview-help, .preview-footer { color: var(--muted); font-size: 13px; }
.page-footer { border-color: var(--line); color: var(--muted); font-size: 12px; margin-top: 36px; padding-top: 20px; }
/* Analytics retain their data and interaction modules, with a quieter visual hierarchy. */
.analytics-dashboard { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 28px; }
.dashboard-kicker { display: none; }
.dashboard-heading h3 { color: var(--ink); font-size: 24px; font-weight: 550; }
.dashboard-heading p, .dashboard-meta, .dashboard-update, .dashboard-total-label { color: var(--muted); font-size: 12px; }
.dashboard-update:before { display: none; }
.dashboard-metrics { gap: 0; border-block: 1px solid var(--line); }
.dashboard-metric { border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 20px 16px; background: transparent; }
.dashboard-metric:last-child { border-right: 0; }
.dashboard-metric-label { color: var(--muted); font-size: 12px; }
.dashboard-metric-value { color: var(--ink); font-size: 30px; font-weight: 500; }
.metric-totalPlayMillis .dashboard-metric-value, .metric-averagePlayMillis .dashboard-metric-value { font-size: 23px; }
.dashboard-chart-card { padding: 24px 0 0; border: 0; border-radius: 0; background: transparent; }
.dashboard-chart-heading h4 { font-size: 17px; color: var(--ink); font-weight: 550; }
.dashboard-chart-heading p, .chart-footer, .dashboard-footnote, .insight-help { color: var(--muted); font-size: 12px; }
.analytics-buckets { border: 1px solid var(--line); border-radius: 3px; background: transparent; padding: 2px; gap: 2px; }
.bucket-button { border-radius: 2px; min-height: 40px; padding: 8px 15px; color: #5d5b7d; font-size: 13px; }
.bucket-button.selected { background: #e8e4ff; color: var(--ink); }
.bucket-button:hover:not(.selected) { background: #f1efff; color: var(--ink); }
.chart-metric-tabs { gap: 20px; border-color: var(--line); }
.chart-metric-tab { border-radius: 0; padding: 10px 0; font-size: 13px; min-height: 44px; color: var(--muted); }
.chart-metric-tab.selected { background: transparent; color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.chart-metric-tab:hover { background: transparent; color: var(--accent); }
.chart-axis, .chart-unit { fill: #737082; font-size: 11px; }
.chart-line { stroke: #8b75d8; }
.analytics-chart-svg>path:not(.chart-line) { fill: #8b75d80c; }
.chart-footer { border-color: var(--line); }
.chart-footer .text-button { font-size: 12px; color: #5d5b7d; }
.dashboard-companion { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 16px 0 16px 24px; }
.dashboard-companion h4, .platform-total strong, .platform-row strong, .peak-day strong { color: var(--ink); }
.platform-name, .platform-total span, .platform-row small, .platform-note, .peak-day>span, .peak-day small { color: var(--muted); font-size: 12px; }
.platform-dot { display: none; }
.platform-android { background: #77b8ab; }
.platform-ios { background: #a895dc; }
.chart-tooltip { background: #fff; border-color: #d7cdea; border-radius: 3px; box-shadow: 0 4px 12px #17182412; }
.chart-tooltip span, .chart-tooltip small { color: var(--muted); font-size: 11px; }
.chart-tooltip strong { color: var(--ink); }
.analytics-data-table { border-radius: 3px; border-color: var(--line); }
.analytics-data-table table, .analytics-data-table caption, .analytics-data-table th, .analytics-data-table td { font-size: 12px; color: #6c6587; border-color: var(--line); }
.analytics-data-table caption, .analytics-data-table thead th { background: #f6f3fb; }
.skeleton-metrics, .skeleton-chart { background: #f0edf6; border-radius: 3px; animation: none; border-color: var(--line); }
@media (min-width: 1500px) { .hero h1 { font-size: 58px; } }
@media (max-width: 1100px) {
  main { padding: 36px 32px 24px; }
  .topbar { padding-inline: 32px; }
  .hero { gap: 32px; }
  .hero h1 { font-size: 36px; }
  .dashboard-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-metric { border-bottom: 1px solid var(--line); }
  .dashboard-metric:nth-child(3) { border-right: 0; }
}
@media (max-width: 850px) {
  .sidebar { position: static; width: auto; padding: 20px 24px 12px; border-right: 0; border-bottom: 1px solid var(--line); display: block; }
  .sidebar .brand { width: fit-content; }
  .brand small { display: none; }
  .workspace-label, .sidebar-note { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
  .nav-item { width: auto; padding: 10px 12px; font-size: 13px; margin: 0; gap: 7px; }
  .nav-icon { width: 17px; height: 17px; }
  .app-shell { margin-left: 0; }
  .topbar { padding: 16px 24px; gap: 12px; min-height: 68px; flex-wrap: wrap; }
  main { padding: 32px 24px 20px; }
  .hero { padding-top: 20px; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .value-strip { gap: 24px; }
  .form-layout { gap: 24px; }
  .dashboard-chart-layout { grid-template-columns: minmax(0,1fr); }
  .dashboard-companion { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
}
@media (max-width: 600px) {
  .sidebar { padding: 20px 20px 12px; }
  .sidebar nav { gap: 2px; }
  .nav-item { padding: 9px; font-size: 12px; min-height: 44px; gap: 6px; }
  .nav-icon { display: none; }
  .topbar { padding: 12px 20px; }
  .breadcrumb { display: none; }
  .account-actions { width: 100%; justify-content: flex-start; gap: 14px; }
  .language-picker { margin-right: auto; }
  main { padding: 28px 20px 20px; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 44px; padding-block: 16px 32px; }
  .hero h1 { font-size: 37px; }
  .hero-copy>p { font-size: 14px; }
  .hero-caption { font-size: 12px; }
  .overview-process .step-card { padding-block: 20px; }
  .overview-process .step-card h3 { font-size: 16px; }
  .value-strip { grid-template-columns: minmax(0,1fr); gap: 24px; padding-block: 28px; }
  .faq-row { align-items: flex-start; flex-direction: column; padding-block: 24px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 30px; }
  .review-details { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .review-details dd { margin-bottom: 10px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card { padding: 18px; border-bottom: 1px solid var(--line); }
  .stat-card:nth-child(odd) { padding-left: 0; }
  .stat-card:nth-child(even) { border-right: 0; }
  .stat-card small { font-size: 11px; }
  .game-card { grid-template-columns: minmax(0,1fr); gap: 16px; padding-block: 24px; }
  .game-info h3 { font-size: 21px; }
  .game-actions { grid-column: 1; gap: 18px; }
  .form-guide { margin-top: 24px; }
  .game-form { padding: 22px 16px; }
  .guide-hero h1 { font-size: 36px; }
  .guide-section h2 { font-size: 22px; }
  .guide-section p, .guide-section li { font-size: 14px; }
  .guide-jump-links a { font-size: 12px; }
  .guide-hero-tags { gap: 12px; }
  .guide-hero-tags>span { font-size: 12px; }
  .guide-cta { padding: 24px 20px; }
  .analytics-dashboard { padding: 20px 16px; margin-inline: 0; }
  .dashboard-heading h3 { font-size: 21px; }
  .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-metric { padding: 16px 12px; }
  .dashboard-metric:nth-child(3) { border-right: 1px solid var(--line); }
  .dashboard-metric:nth-child(even), .dashboard-metric:last-child { border-right: 0; }
  .dashboard-metric-value { font-size: 27px; }
  .metric-totalPlayMillis .dashboard-metric-value, .metric-averagePlayMillis .dashboard-metric-value { font-size: 21px; }
  .chart-metric-tabs { gap: 16px; flex-wrap: wrap; }
  .chart-metric-tab { font-size: 12px; }
  .dashboard-meta { font-size: 12px; }
  .dashboard-chart-card { padding-top: 16px; }
  .dashboard-chart-heading h4 { font-size: 16px; }
  .dashboard-chart-heading>.analytics-buckets { margin-left: 0; }
  .bucket-button { min-height: 44px; }
  .dashboard-footnote { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
