/* Workspace visual system; loaded after the legacy editor styles. */
:root {
  --bg-primary: #0b0c0e; --bg-secondary: #121417; --bg-tertiary: #191c20;
  --accent-primary: #f15b64; --accent-secondary: #d94450;
  --text-primary: #f0f1f3; --text-secondary: #9298a3; --border-color: #292d34;
  --success: #55c99d; --error: #fa6976; --warning: #e7bf67; --info: #79b8eb;
  --workspace-width: 248px;
  color-scheme: dark;
}
body { padding: 0; background: var(--bg-primary); font-size: 14px; }
body::before, .btn::before, .custom-dropdown-button::before { display: none !important; }
body, button, input, select, textarea { font-family: 'Segoe UI', Arial, sans-serif; letter-spacing: 0 !important; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent-primary) !important; outline-offset: 4px; }
.app-shell { min-height: 100dvh; background: var(--bg-primary); }
.app-shell .sidebar {
  width: var(--workspace-width); height: 100dvh; padding: 0 14px 18px !important;
  background: #0e1013; border-right: 1px solid var(--border-color); gap: 0;
  backdrop-filter: none; transition: width 240ms ease, transform 240ms ease;
  transform: translateX(0);
}
.sidebar-top { min-height: 76px; height: 76px; display: flex; align-items: center; border-bottom: 1px solid var(--border-color); margin-bottom: 24px; }
.app-shell .sidebar-brand { display: flex; padding: 0; gap: 10px; border-radius: 4px; }
.sidebar-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; }
.app-shell .sidebar-title { display: inline; font-size: 18px; color: var(--text-primary); }
.sidebar-nav { padding: 0; gap: 7px; }
.nav-caption { font-size: 10px; font-weight: 700; color: #747b87; padding: 0 10px 14px; white-space: nowrap; }
.sidebar-nav .nav-btn {
  justify-content: flex-start;
  min-height: 48px; border-radius: 6px; padding: 10px 12px; gap: 13px;
  color: var(--text-secondary); font-size: 14px; font-weight: 500; position: relative;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.sidebar-nav .nav-btn .nav-text { display: inline; }
.sidebar-nav .nav-btn .nav-ico { display: inline-flex; }
.nav-ico { font: 11px/1 Consolas, monospace; width: 27px; height: 27px; flex: 0 0 27px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #2b3038; border-radius: 4px; }
.sidebar-nav .nav-btn:hover { color: #fff; background: #191c21; border-color: #2c3037; }
.sidebar-nav .nav-btn.active { background: #24171c; border-color: #503039; color: #fff; box-shadow: none; }
.sidebar-nav .nav-btn.active::after { content: ''; position: absolute; width: 3px; height: 22px; left: -1px; top: 12px; background: var(--accent-primary); border-radius: 2px; }
.sidebar-nav .nav-btn.active .nav-ico { color: var(--accent-primary); border-color: #71353f; background: #321c24; }
.sidebar-footer { border-color: var(--border-color); padding-top: 16px; }
.sidebar-link { font-size: 12px; border: 1px solid var(--border-color); border-radius: 5px; }
.sidebar-mini-note { color: #6f7682; font-size: 11px; padding-left: 12px; }
.app-shell .sidebar-toggle-floating {
  display: block;
  position: fixed; z-index: 60; top: 24px; left: 205px; right: auto; width: 28px; height: 28px;
  padding: 0; background: #171a1f; border: 1px solid var(--border-color); border-radius: 5px;
  color: #9ca4b0; font-size: 25px; line-height: 1; box-shadow: none;
  transition: left 240ms ease, background 180ms ease;
}
.sidebar-toggle-floating::before, .sidebar-toggle-floating::after { display: none !important; }
.app-shell .main-shell { margin-left: var(--workspace-width); width: calc(100% - var(--workspace-width)); overflow: visible; transition: margin-left 240ms ease, width 240ms ease; }
.main-shell .workspace-bar {
  position: sticky; top: 0; z-index: 30; min-height: 76px; padding: 0 32px;
  display: flex; align-items: center; gap: 16px; background: rgba(11,12,14,.95);
  backdrop-filter: blur(16px); border: 0; border-bottom: 1px solid var(--border-color);
  border-radius: 0; box-shadow: none;
}
.workspace-breadcrumb { display: flex; gap: 14px; align-items: center; font-size: 12px; min-width: 0; }
.workspace-breadcrumb > span { color: var(--text-secondary); }
.workspace-breadcrumb strong { color: #e5e7eb; font-weight: 600; }
.workspace-badge { margin-left: auto; font: 10px Consolas, monospace; color: #aaa; padding: 6px 8px; border: 1px solid var(--border-color); border-radius: 4px; white-space: nowrap; }
.app-shell .main-shell .container { max-width: 1600px; width: 100%; padding: 32px; margin: 0 auto; }
.app-shell.sidebar-collapsed .sidebar { width: 76px; padding: 0 10px 18px !important; }
.app-shell.sidebar-collapsed .main-shell { margin-left: 76px; width: calc(100% - 76px); }
.app-shell.sidebar-collapsed .sidebar-title, .app-shell.sidebar-collapsed .nav-caption, .app-shell.sidebar-collapsed .nav-text, .app-shell.sidebar-collapsed .sidebar-mini-note { display: none !important; }
.app-shell.sidebar-collapsed .sidebar-brand { display: flex; }
.app-shell.sidebar-collapsed .sidebar-top { justify-content: center; margin-bottom: 46px; }
.app-shell.sidebar-collapsed .sidebar-nav .nav-btn { padding: 10px; justify-content: center; }
.app-shell.sidebar-collapsed .sidebar-footer { display: flex !important; }
.app-shell.sidebar-collapsed .sidebar-link { padding: 8px; justify-content: center; }
.app-shell.sidebar-collapsed .sidebar-toggle-floating { left: 24px; top: 87px; }
.chrome-button { width: 36px; height: 36px; border: 1px solid var(--border-color); border-radius: 5px; background: #171a1f; color: #fff; cursor: pointer; font-size: 18px; }
.mobile-menu-toggle, .menu-backdrop { display: none; }
.workspace-intro { padding: 20px 0 32px; border-bottom: 1px solid var(--border-color); }
.workspace-eyebrow { color: var(--accent-primary); font-size: 11px; font-weight: 700; }
.workspace-intro h1 { font-size: 48px; line-height: 1.2; margin: 14px 0 10px; font-weight: 750; color: #f4f4f6; }
.brand-dot { color: var(--accent-primary); }
.workspace-intro p { font-size: 19px; color: #a6acb6; }
.workspace-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; font: 11px Consolas, monospace; color: #737d8a; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 18px; }
.workspace-heading h2 { font-size: 19px; font-weight: 600; color: #e9ebee; }
.workspace-heading > span { color: #727b88; font: 12px Consolas, monospace; }
.tool-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.tool-card {
  min-width: 0; min-height: 258px; text-align: left; padding: 22px; position: relative; overflow: hidden;
  border: 1px solid var(--border-color); border-radius: 8px; background: #13161a; color: #eee;
  cursor: pointer; display: flex; flex-direction: column; align-items: flex-start;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}
.tool-card:hover { transform: translateY(-4px); border-color: #7b3a44; background: #1b171c; }
.tool-card:active { transform: translateY(-1px); }
.tool-card-top { display: flex; width: 100%; justify-content: space-between; align-items: center; }
.tool-number { font: 12px Consolas, monospace; color: #777f8a; }
.tool-arrow { font-size: 20px; color: #878e9a; transition: transform 200ms ease, color 200ms ease; }
.tool-card:hover .tool-arrow { transform: translate(2px,-2px); color: var(--accent-primary); }
.tool-symbol svg { width: 36px; height: 36px; stroke-width: 1.5; }
.tool-arrow svg { width: 20px; height: 20px; }
.chrome-button svg { width: 20px; height: 20px; }
.tool-logo { width: 38px; height: 38px; object-fit: contain; margin: 26px 0 20px; }
.tool-symbol { height: 38px; margin: 26px 0 20px; font-size: 34px; line-height: 38px; color: #74b9bf; }
.tool-card:nth-child(3) .tool-symbol { color: #ecac73; }
.tool-card:nth-child(4) .tool-symbol { color: #b9adcf; }
.tool-card h3 { font-size: 19px; line-height: 1.4; margin-bottom: 7px; }
.tool-card p { font-size: 12px; line-height: 1.6; color: #969eaa; margin-bottom: 20px; }
.tool-tag { margin-top: auto; font: 10px/1.5 Consolas, monospace; color: #727b87; }
.workspace-bottom { margin-top: 36px; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border-color); font-size: 11px; color: #737b87; }
.workspace-bottom a { color: #b4bac3; text-decoration: none; }
.section.active { animation: workspace-enter 260ms ease both; }
@keyframes workspace-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.tool-card { animation: workspace-enter 360ms ease backwards; }
.tool-card:nth-child(2) { animation-delay: 45ms; }
.tool-card:nth-child(3) { animation-delay: 90ms; }
.tool-card:nth-child(4) { animation-delay: 135ms; }
.btn, .ghost-btn, .link-btn {
  border-radius: 5px; font-size: 13px; font-weight: 600; min-height: 40px; box-shadow: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; letter-spacing: 0;
}
.btn:hover { transform: translateY(-1px); box-shadow: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: #c94250; border: 1px solid #df5261; color: #fff; }
.btn-primary:hover { background: #df5261; }
.btn-secondary, .btn-outline, .ghost-btn { background: #1b1e24; border: 1px solid #343a44; color: #d6dbe3; }
.btn-secondary:hover, .btn-outline:hover { background: #262b33; border-color: #545e6f; }
.btn-success { background: #203b32; color: #87e3be; border: 1px solid #35624e; }
.btn-danger { background: #402128; color: #ffa4ae; border: 1px solid #71353f; }
.btn-info { background: #213445; color: #b7d8f4; border: 1px solid #3a5b75; }
.btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.upload-icon svg, .empty-icon svg { width: 42px; height: 42px; stroke-width: 1.3; color: #b5818d; }
.app-shell .game-selector-section { background: #121519; border: 1px solid var(--border-color); border-radius: 6px; padding: 20px; gap: 18px; box-shadow: none; }
.app-shell .selector-group label { color: #b4bbc6; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.app-shell .custom-dropdown-button, #generatorSection .custom-dropdown-button, .app-shell .game-select {
  background: #1a1e24; color: #e0e4e9; border: 1px solid #343b46; border-radius: 5px;
  min-height: 44px; font-size: 13px; box-shadow: none; padding: 12px 14px;
}
.app-shell .custom-dropdown-button:hover, .app-shell .custom-dropdown-button.active { background: #232730; border-color: #86505c; box-shadow: none; }
.custom-dropdown-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-shell .custom-dropdown-arrow { color: #f15b64; }
.app-shell .custom-dropdown-arrow svg { fill: currentColor; }
.app-shell .custom-dropdown-arrow path { fill: #f15b64; }
.app-shell .terminal-trader-hint { background: #352128; border-color: #70404b; }
.app-shell .terminal-trader-hint::after { display: none; background: #242930; border-color: #485362; }
.app-shell .terminal-trader-hint:hover::after, .app-shell .terminal-trader-hint:focus::after { display: block; }
.app-shell .custom-dropdown-list { background: #1a1e24; border: 1px solid #414957; border-radius: 6px; padding: 5px; box-shadow: 0 14px 36px #0008; transition: opacity 140ms ease, transform 140ms ease; }
.app-shell .custom-dropdown-item { padding: 11px 12px; border: 0; border-radius: 3px; font-size: 13px; color: #bbc2ce; overflow-wrap: anywhere; }
.app-shell .custom-dropdown-item:hover { background: #292f38; color: white; }
.app-shell .custom-dropdown-item.selected { background: #432731; color: #fff; }
.app-shell input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), .app-shell textarea, .app-shell select {
  background: #101317; border-color: #343b46; border-radius: 5px; color: #e3e7ec; box-shadow: none;
}
.app-shell input:focus, .app-shell textarea:focus { border-color: #da6372; box-shadow: 0 0 0 3px #ef5b6412; }
.app-shell input[type=checkbox], .app-shell input[type=radio], .app-shell input[type=range] { accent-color: #e25a67; }
.app-shell .config-editor, .app-shell .config-preview, .app-shell .converter-panel,
.app-shell .validator-container, .app-shell .texture-container { background: transparent; border-radius: 0; box-shadow: none; }
.app-shell .converter-container { max-width: none; }
.app-shell .validator-container, .app-shell .texture-container { padding: 0; }
.app-shell .validator-header, .app-shell .texture-header { text-align: left; margin-bottom: 28px; }
.app-shell .converter-header h2, .app-shell .validator-header h2, .app-shell .texture-header h2 { display: flex; align-items: center; gap: 12px; }
.converter-header h2 svg, .validator-header h2 svg, .texture-header h2 svg { width: 24px; height: 24px; stroke-width: 1.5; color: #f07b86; }
.app-shell .validator-subtitle, .app-shell .texture-subtitle { font-size: 13px; }
.app-shell .validator-toolbar, .app-shell .texture-controls { background: #161a20; border: 1px solid var(--border-color); border-radius: 6px; padding: 16px; }
.app-shell .validator-editor-wrapper { border: 1px solid #353e4b; border-radius: 6px; }
.app-shell .xml-editor { font-size: 13px; line-height: 1.7; padding: 40px 18px 18px; }
.app-shell .texture-upload-area { background: #13171c; border: 1px dashed #465161; border-radius: 6px; }
.app-shell .texture-upload-area:hover { background: #21191e; border-color: #d56572; }
.app-shell .preview-card, .app-shell .results-header, .app-shell .validator-results { border-radius: 6px; background: #161a20; border-color: var(--border-color); }
.app-shell .editor-header { background: transparent; border-bottom: 1px solid var(--border-color); padding-bottom: 18px; }
#generatorSection .editor-header h2 { font-size: 23px; color: #e1e5ec; }
.app-shell .converter-header h2, .app-shell .validator-header h2, .app-shell .texture-header h2 { font-size: 26px; color: #f0f1f3; background: none; -webkit-text-fill-color: currentColor; }
.app-shell .converter-subtitle { color: #949daa; font-size: 13px; max-width: 1000px; }
.app-shell .converter-info-grid { display: block; }
.app-shell .converter-info-card { border: 0; border-left: 2px solid #e15a68; background: #14171c; border-radius: 0; padding: 15px 20px; }
.app-shell .converter-info-card h3 { font-size: 15px; }
.app-shell .converter-upload, .app-shell .upload-area { background: #13171c; border: 1px dashed #465161; border-radius: 6px; transition: background 180ms ease, border-color 180ms ease; }
.app-shell .converter-upload:hover, .app-shell .upload-area:hover, .app-shell .converter-upload.drag-over { border-color: #d56572; background: #21191e; }
.app-shell .upload-link, .app-shell .upload-icon { color: #e27884; }
.app-shell .empty-state { background: transparent; box-shadow: none; border: 0; padding: 60px 24px; }
.app-shell .empty-state h2, .app-shell .empty-state h3 { color: #b6becb; font-size: 23px; font-style: normal; }
.app-shell .config-form, .app-shell .form-section { background: #14171b; border-color: var(--border-color); border-radius: 6px; }
.app-shell table { background: #13161a; border-color: var(--border-color); }
.app-shell th { background: #20252d; color: #cbd2dd; }
.app-shell td { border-color: #2a3039; }
.app-shell ::-webkit-scrollbar { width: 7px; height: 7px; }
.app-shell ::-webkit-scrollbar-thumb { background: #414954; border-radius: 3px; }
.app-shell ::-webkit-scrollbar-track { background: #101216; }
@media (max-width: 1200px) {
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tool-card { min-height: 236px; }
}
@media (max-width: 760px) {
  .app-shell .sidebar, .app-shell.sidebar-collapsed .sidebar { width: 248px; padding: 0 14px 18px !important; transform: translateX(-100%); z-index: 80; }
  .app-shell.menu-open .sidebar { transform: translateX(0); }
  .app-shell .main-shell, .app-shell.sidebar-collapsed .main-shell { margin-left: 0; width: 100%; }
  .app-shell .sidebar-toggle-floating { display: none; }
  .app-shell .sidebar-title, .app-shell.sidebar-collapsed .sidebar-title, .app-shell.sidebar-collapsed .nav-text, .app-shell.sidebar-collapsed .nav-caption, .app-shell.sidebar-collapsed .sidebar-mini-note { display: inline !important; }
  .app-shell.sidebar-collapsed .sidebar-top { justify-content: flex-start; margin-bottom: 24px; }
  .app-shell.sidebar-collapsed .sidebar-nav .nav-btn, .app-shell.sidebar-collapsed .sidebar-link { justify-content: flex-start; }
  .mobile-menu-toggle { display: inline-grid; place-items: center; flex-shrink: 0; }
  .main-shell .workspace-bar { min-height: 64px; padding: 0 16px; gap: 12px; }
  .workspace-breadcrumb { gap: 9px; font-size: 11px; }
  .workspace-badge { display: none; }
  .app-shell .main-shell .container { padding: 20px 16px; }
  .workspace-intro { padding-top: 14px; }
  .workspace-intro h1 { font-size: 36px; }
  .workspace-intro p { font-size: 16px; }
  .workspace-eyebrow { font-size: 9px; }
  .tool-grid { gap: 10px; }
  .tool-card { padding: 16px; min-height: 240px; }
  .tool-card h3 { font-size: 17px; }
  .tool-card p { font-size: 11px; }
  .tool-tag { font-size: 9px; overflow-wrap: anywhere; }
  .workspace-bottom { flex-wrap: wrap; }
  .game-selector-section, .converter-controls { flex-wrap: wrap; }
  .selector-group { min-width: 0 !important; width: 100%; }
  .converter-controls .selector-group { flex: 1 1 100%; }
  .config-layout, .editor-layout { display: flex; flex-direction: column; }
  .app-shell .converter-upload { padding: 30px 15px; }
  .app-shell .converter-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .toolbar-right, .toolbar-left { flex-wrap: wrap; }
  .app-shell .terminal-trader-hint::after { position: fixed; left: 16px; right: 16px; bottom: 20px; top: auto; width: auto; min-width: 0; max-width: none; }
  .app-shell .terminal-trader-category-actions { grid-template-columns: minmax(0, 1fr); }
  .menu-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; width: 100%; height: 100dvh; z-index: 75; border: 0; border-radius: 0; background: #0009; backdrop-filter: blur(3px); animation: workspace-enter 180ms ease; }
  body:has(.menu-open) { overflow: hidden; }
}
@media (max-width: 360px) { .tool-grid { grid-template-columns: 1fr; } .tool-card { min-height: 215px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Overview: catalog, activity and live totals. */
#homeSection .workspace-intro {
  position: relative; isolation: isolate; overflow: hidden; min-height: 268px;
  padding: 28px 32px 30px; border: 0; background: #161b20;
}
.overview-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; z-index: -2; }
#homeSection .workspace-intro::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#0b0c0ee8 0%,#0b0c0e9c 45%,#0b0c0e18 100%); z-index: -1; }
#homeSection .workspace-intro h1 { font-size: 42px; margin: 10px 0 5px; }
#homeSection .workspace-intro p { color: #d1d6dd; font-size: 17px; }
#homeSection .workspace-meta { margin-top: 15px; color: #bbc2cc; }
.overview-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.overview-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--border-color); padding: 22px 0; }
.overview-stats > div { display: grid; grid-template-columns: 25px auto; gap: 2px 14px; padding: 0 24px; border-right: 1px solid var(--border-color); align-items: center; }
.overview-stats > div:first-child { padding-left: 0; }
.overview-stats > div:last-child { border-right: 0; }
.overview-stats svg { grid-row: span 2; width: 23px; height: 23px; color: #dc7b88; stroke-width: 1.5; }
.overview-stats > div:nth-child(2) svg { color: #76b6b9; }
.overview-stats > div:nth-child(3) svg { color: #d7b178; }
.overview-stats > div:nth-child(4) svg { color: #b4b1d2; }
.overview-stats strong { font-size: 25px; font-weight: 600; line-height: 1.2; }
.overview-stats span { color: #929daa; font-size: 11px; }
#homeSection .tool-card { min-height: 200px; padding: 18px 20px; }
#homeSection .tool-logo, #homeSection .tool-symbol { margin: 16px 0 12px; height: 30px; width: 30px; }
#homeSection .tool-symbol svg { width: 30px; height: 30px; }
#homeSection .tool-card h3 { font-size: 17px; }
#homeSection .tool-card p { margin-bottom: 12px; }
.overview-content { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(260px,1fr); gap: 32px; margin-top: 14px; }
.overview-catalog, .overview-recent { min-width: 0; }
.overview-recent { border-left: 1px solid var(--border-color); padding-left: 28px; }
.overview-content .workspace-heading { min-height: 76px; padding: 26px 0 18px; }
.overview-content .workspace-heading h2 { font-size: 17px; }
.overview-catalog-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.overview-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border: 1px solid #343b46; border-radius: 5px; background: #12161b; padding: 0 12px; height: 40px; }
.overview-search:focus-within { border-color: #d56574; }
.overview-search svg { width: 16px; height: 16px; color: #8e9aa8; flex-shrink: 0; }
.app-shell .overview-search input[type=search] { background: transparent; border: 0; outline: none; min-width: 0; width: 100%; padding: 8px 0; font-size: 12px; box-shadow: none; }
.app-shell .overview-search input[type=search]:focus-visible { outline: none !important; }
.overview-filter { display: flex; gap: 3px; padding: 3px; border: 1px solid #343b46; border-radius: 5px; height: 40px; }
.overview-filter button { padding: 0 11px; background: transparent; border: 0; border-radius: 3px; color: #969fab; font-size: 11px; white-space: nowrap; cursor: pointer; transition: background 150ms ease, color 150ms ease; }
.overview-filter button[aria-pressed=true] { background: #39232c; color: #ffc1ca; }
.overview-game-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.overview-game { display: grid; grid-template-columns: minmax(0,1fr) 18px; text-align: left; min-width: 0; padding: 0 12px 12px; gap: 10px; border: 1px solid #2c333d; border-radius: 6px; overflow: hidden; background: #14181e; color: #e6e9ed; cursor: pointer; transition: border-color 170ms ease, transform 170ms ease; animation: workspace-enter 260ms ease backwards; animation-delay: var(--tile-delay,0ms); }
.overview-game:hover { border-color: #a25361; transform: translateY(-2px); }
.overview-game-media { position: relative; grid-column: 1 / -1; aspect-ratio: 460 / 180; display: block; margin: 0 -12px; overflow: hidden; background: #222c34; }
.overview-game-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.overview-game:hover img { transform: scale(1.035); }
.overview-game-initials { position: absolute; inset: 0; display: grid; place-items: center; color: #99b5c3; font-size: 32px; font-weight: 700; }
.overview-game-text { display: grid; gap: 4px; min-width: 0; }
.overview-game-text strong { font-size: 13px; overflow-wrap: anywhere; }
.overview-game-text small { color: #8d98a7; font-size: 10px; }
.overview-game > svg { width: 16px; height: 16px; color: #9ba5b3; margin-top: 1px; }
.overview-show-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; width: 100%; min-height: 38px; border: 1px solid #343b46; border-radius: 5px; color: #b5becb; background: #14181e; cursor: pointer; font-size: 12px; }
.overview-show-all svg { width: 15px; height: 15px; }
.overview-show-all:hover { background: #242932; }
.overview-empty { color: #8b97a6; font-size: 12px; line-height: 1.7; padding: 18px 0; }
.overview-empty:empty { display: none; }
.overview-recent-file { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 65px; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid #2b323b; color: #d7dde5; cursor: pointer; text-align: left; transition: color 160ms ease; }
.overview-recent-file:hover { color: #fa9aaa; }
.overview-recent-file > svg { width: 18px; height: 18px; flex: 0 0 18px; color: #a37b88; }
.overview-recent-file > svg:last-child { width: 14px; height: 14px; margin-left: auto; color: #7b8798; }
.overview-recent-file > span { display: grid; gap: 4px; min-width: 0; }
.overview-recent-file strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.overview-recent-file small { color: #7f8b9b; font-size: 10px; }
.overview-formats { border-top: 1px solid var(--border-color); padding-top: 22px; margin-top: 24px; }
#overviewFormatTags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
#overviewFormatTags span { font: 10px Consolas, monospace; color: #a6b3c3; background: #1c242c; border: 1px solid #323e4b; padding: 6px 8px; border-radius: 3px; }
.overview-terminal { display: flex; align-items: center; gap: 12px; padding: 22px 0; margin-top: 24px; border-top: 1px solid var(--border-color); }
.overview-terminal > svg { width: 22px; height: 22px; color: #d6a476; flex-shrink: 0; }
.overview-terminal > div { display: grid; gap: 6px; min-width: 0; }
.overview-terminal strong { font-size: 13px; }
.overview-terminal span { font-size: 10px; color: #8d99a9; }
.overview-terminal button { margin-left: auto; flex-shrink: 0; }
.overview-terminal button svg, #overviewClearRecent svg { width: 16px; height: 16px; }
.overview-show-all[hidden], #overviewGamesEmpty[hidden], #overviewClearRecent[hidden] { display: none; }
@media (min-width: 1600px) { .overview-game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1100px) {
  .overview-content { grid-template-columns: minmax(0,1fr); }
  .overview-recent { border-left: 0; border-top: 1px solid var(--border-color); padding-left: 0; }
}
@media (max-width: 760px) {
  #homeSection .workspace-intro { min-height: 272px; padding: 22px 18px; }
  #homeSection .workspace-intro h1 { font-size: 34px; }
  .overview-cover { object-position: 60% center; }
  .overview-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 0; }
  .overview-stats > div { padding: 0 12px; gap: 2px 10px; }
  .overview-stats > div:nth-child(odd) { padding-left: 0; }
  .overview-stats > div:nth-child(even) { border-right: 0; }
  .overview-stats strong { font-size: 23px; }
  #homeSection .tool-card { min-height: 193px; padding: 15px; }
  .overview-content { gap: 18px; }
  .overview-catalog-toolbar { flex-wrap: wrap; }
  .overview-search { flex-basis: 100%; }
  .overview-game-grid { gap: 10px; }
  .overview-game-text strong { font-size: 12px; }
  .overview-game-text small { font-size: 9px; line-height: 1.5; }
  .overview-game-media { aspect-ratio: 460 / 215; }
}
@media (prefers-reduced-motion: reduce) {
  .overview-game { animation: none; } .overview-game, .overview-game-media img { transition: none; }
}

/* Game backdrop carousel and restrained technical detailing. */
#homeSection .workspace-intro { padding-top: 46px; padding-bottom: 18px; }
.overview-cover { opacity: 0; transition: opacity 800ms ease; }
.overview-cover.is-active { opacity: 1; }
.hero-frame { position: absolute; inset: 16px; pointer-events: none; display: flex; justify-content: space-between; align-items: flex-start; color: #c9ced990; font: 9px Consolas, monospace; }
.hero-frame::before, .hero-frame::after { content: ''; position: absolute; bottom: 0; width: 18px; height: 18px; border-bottom: 1px solid #ffffff42; }
.hero-frame::before { left: 0; border-left: 1px solid #ffffff42; }
.hero-frame::after { right: 0; border-right: 1px solid #ffffff42; }
.hero-frame > span { border-top: 1px solid #ffffff42; padding-top: 7px; }
.hero-frame > span:last-child { border-color: #ed788b; color: #f5bbc5; }
.hero-carousel-bar { position: relative; display: grid; grid-template-columns: minmax(100px,150px) minmax(0,1fr) auto; gap: 20px; align-items: center; margin-top: 30px; padding: 16px 0 12px; border-top: 1px solid #ffffff2b; }
.hero-game-label { display: grid; gap: 4px; min-width: 0; }
.hero-game-label > span { font: 9px Consolas, monospace; color: #c9cdd5; }
.hero-game-label > strong { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.hero-game-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hero-game-picker button { position: relative; min-height: 30px; padding: 7px 9px; background: #101419a8; border: 1px solid #ffffff27; border-radius: 3px; color: #bfc7d3; cursor: pointer; font-size: 10px; transition: background 160ms ease, border-color 160ms ease; }
.hero-game-picker button:hover { background: #34232ad9; color: #fff; border-color: #b26274; }
.hero-game-picker button[aria-pressed=true] { background: #592734d9; border-color: #ef8a9b; color: #ffe4e9; }
.hero-carousel-controls { display: flex; gap: 6px; }
.hero-carousel-controls .chrome-button { width: 30px; height: 30px; background: #0e131bb8; border-color: #ffffff35; }
.hero-carousel-controls .chrome-button svg { width: 16px; height: 16px; }
.hero-carousel-controls .chrome-button:hover { background: #47232f; border-color: #f19aaa; }
.hero-slide-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #ffffff1a; overflow: hidden; }
.hero-slide-progress > span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: #f07c91; }
.overview-stats > div { position: relative; }
.overview-stats > div::after { content: ''; position: absolute; bottom: -22px; left: 24px; width: 34px; height: 2px; background: #d66d80; opacity: .65; }
.overview-stats > div:first-child::after { left: 0; }
.overview-stats > div:nth-child(2)::after { background: #7bbfc1; }
.overview-stats > div:nth-child(3)::after { background: #d7b178; }
.overview-stats > div:nth-child(4)::after { background: #b4b1d2; }
.overview-section-heading h2 { display: flex; align-items: center; gap: 12px; }
.overview-section-heading h2::before { content: ''; width: 4px; height: 17px; border-top: 2px solid #e9768b; border-bottom: 2px solid #e9768b; border-left: 2px solid #e9768b; }
#homeSection .tool-card::after { content: ''; position: absolute; right: 12px; bottom: 12px; width: 12px; height: 12px; border-right: 1px solid #465261; border-bottom: 1px solid #465261; transition: border-color 180ms ease; }
#homeSection .tool-card:hover::after { border-color: #e7889a; }
#homeSection .tool-card .tool-number { display: inline-flex; align-items: center; gap: 8px; }
#homeSection .tool-card .tool-number::after { content: ''; width: 22px; height: 1px; background: #414b59; }
.overview-game-media::after { content: ''; position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-top: 1px solid #ffffffe0; border-right: 1px solid #ffffffe0; pointer-events: none; }
.overview-formats .workspace-eyebrow { display: flex; gap: 10px; align-items: center; }
.overview-formats .workspace-eyebrow::before { content: ''; width: 6px; height: 6px; border: 1px solid #ef7b90; transform: rotate(45deg); }
@media (max-width: 1100px) {
  .hero-carousel-bar { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
  .hero-game-picker { grid-column: 1 / -1; grid-row: 2; }
  .hero-carousel-controls { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) {
  #homeSection .workspace-intro { padding-top: 42px; padding-bottom: 18px; }
  .hero-frame { inset: 12px; font-size: 8px; }
  .hero-carousel-bar { margin-top: 22px; }
  .hero-game-picker { gap: 5px; }
  .hero-game-picker button { padding: 7px 8px; font-size: 9px; }
  .overview-stats > div::after { bottom: -8px; left: 12px; width: 24px; height: 1px; }
  .overview-stats > div:nth-child(odd)::after { left: 0; }
}
@media (prefers-reduced-motion: reduce) { .overview-cover { transition: none; } }
