:root { color-scheme: light; --bg: #f6f7f4; --surface: #ffffff; --surface-2: #eeefe9; --ink: #1f2420; --muted: #697069; --border: #d7dbd2; --green: #247857; --green-dark: #155f42; --green-soft: #dff3e9; --amber: #b87516; --amber-soft: #fff1d6; --red: #b54343; --red-soft: #ffe4e4; --blue: #2d6d9d; --blue-soft: #deeff8; --shadow: 0 18px 50px rgba(31, 36, 32, 0.1); --radius: 8px; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } * { box-sizing: border-box; } body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); } button, input, select { font: inherit; } button { cursor: pointer; } svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; } .icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; } .app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; } .rail { position: sticky; top: 0; height: 100vh; padding: 20px 16px; background: #1e241f; color: #f7f8f4; border-right: 1px solid #111611; } .brand { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 28px; } .brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, 0.18); background: #2b6f50; border-radius: 8px; font-weight: 800; } .brand strong { display: block; font-size: 16px; } .brand span { display: block; margin-top: 2px; color: #b8c2ba; font-size: 12px; } .nav-list { display: grid; gap: 6px; } .nav-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; color: #cbd3cc; text-decoration: none; border-radius: 8px; } .nav-link:hover, .nav-link.is-active { background: rgba(255, 255, 255, 0.09); color: #ffffff; } .main { min-width: 0; padding: 28px; } .topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; } .eyebrow { margin: 0 0 6px; color: var(--green-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; } h1, h2 { margin: 0; letter-spacing: 0; } h1 { font-size: 30px; line-height: 1.12; } h2 { font-size: 18px; line-height: 1.2; } .topbar-actions { display: flex; align-items: center; gap: 10px; } .icon-button, .primary-button, .ghost-button, .row-button, .mini-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 8px; font-weight: 700; } .icon-button { width: 38px; padding: 0; } .primary-button { padding: 0 14px; border-color: var(--green-dark); background: var(--green); color: #ffffff; } .ghost-button, .row-button, .mini-button { padding: 0 12px; } .mini-button { min-height: 32px; font-size: 13px; } .row-button.is-primary { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); } .status-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; } .metric { min-width: 0; padding: 16px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(31, 36, 32, 0.04); } .metric span, .metric em { display: block; color: var(--muted); font-size: 12px; font-style: normal; } .metric strong { display: block; margin: 7px 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 21px; } .toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 14px; } .search-box { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; } .search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); } .segmented { display: flex; padding: 4px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 8px; } .segmented button { min-height: 32px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); border-radius: 6px; font-weight: 700; } .segmented button.is-selected { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(31, 36, 32, 0.08); } .game-grid { display: grid; gap: 12px; } .game-card { display: grid; grid-template-columns: minmax(250px, 1.2fr) minmax(380px, 1.6fr) minmax(260px, 0.9fr); gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(31, 36, 32, 0.04); } .game-title { display: flex; gap: 12px; min-width: 0; } .cover { display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; color: #ffffff; background: linear-gradient(135deg, #2d6d9d, #247857); border-radius: 8px; font-size: 13px; font-weight: 800; } .game-title h3 { margin: 0 0 5px; overflow-wrap: anywhere; font-size: 16px; letter-spacing: 0; } .subline { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; } .pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); border-radius: 999px; font-size: 12px; font-weight: 800; } .pill.ok { border-color: #b7dec9; background: var(--green-soft); color: var(--green-dark); } .pill.warn { border-color: #f0cd91; background: var(--amber-soft); color: #81500b; } .pill.external { border-color: #b7d8e8; background: var(--blue-soft); color: #1e547a; } .pill.shadow { border-color: #d0c4eb; background: #eee8fb; color: #584080; } .pill.blocked { border-color: #f0b8b8; background: var(--red-soft); color: var(--red); } .source-path { margin-top: 8px; max-width: 100%; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; } .version-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .version-box { min-width: 0; padding: 10px; background: #f8f9f6; border: 1px solid var(--border); border-radius: 8px; } .version-box span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; } .version-box strong { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; } .controls { display: grid; gap: 10px; } .control-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(86px, 0.65fr); gap: 8px; } .control-row select, .control-row input { min-width: 0; min-height: 36px; padding: 0 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 8px; } .actions-row { display: flex; flex-wrap: wrap; gap: 8px; } .split-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr); gap: 12px; margin-top: 22px; } .panel, .log-panel { padding: 16px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); } .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; } .queue-list { display: grid; gap: 10px; } .queue-item { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; align-items: center; padding: 12px; background: #f8f9f6; border: 1px solid var(--border); border-radius: 8px; } .queue-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; } .queue-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; } .progress { height: 8px; margin-top: 10px; overflow: hidden; background: #e3e6de; border-radius: 999px; } .progress > i { display: block; width: 0%; height: 100%; background: linear-gradient(90deg, var(--green), var(--blue)); } .settings-grid { display: grid; gap: 12px; } .field { display: grid; gap: 6px; } .field span, .allowlist > span, .source-policy > span { color: var(--muted); font-size: 12px; font-weight: 700; } .field input, .field select { min-height: 38px; padding: 0 10px; border: 1px solid var(--border); background: #f8f9f6; color: var(--ink); border-radius: 8px; } .switch-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid var(--border); background: #f8f9f6; border-radius: 8px; } .switch-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); } .switch-row strong, .switch-row em { display: block; } .switch-row strong { font-size: 14px; } .switch-row em { margin-top: 2px; color: var(--muted); font-size: 12px; font-style: normal; } .allowlist { display: grid; gap: 8px; margin-top: 14px; } .source-policy { display: grid; gap: 8px; margin-top: 14px; } .allowlist div { display: flex; flex-wrap: wrap; gap: 6px; } .source-policy > div { display: grid; gap: 8px; } .policy-row { display: grid; grid-template-columns: 110px minmax(100px, 0.8fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px; background: #f8f9f6; border: 1px solid var(--border); border-radius: 8px; } .policy-row strong { font-size: 13px; } .policy-row em { overflow: hidden; color: var(--muted); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; } .host-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; background: var(--blue-soft); color: #1e547a; border-radius: 999px; font-size: 12px; font-weight: 800; } .log-panel { margin-top: 12px; } pre { min-height: 150px; max-height: 280px; margin: 0; padding: 12px; overflow: auto; background: #1f2420; color: #e9eee8; border-radius: 8px; font-size: 12px; line-height: 1.55; } .empty-state { padding: 18px; border: 1px dashed var(--border); background: var(--surface); color: var(--muted); border-radius: 8px; text-align: center; } .toast { position: fixed; right: 18px; bottom: 18px; z-index: 10; max-width: min(420px, calc(100vw - 36px)); padding: 12px 14px; color: #ffffff; background: #1f2420; border-radius: 8px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; } .toast.is-visible { opacity: 1; transform: translateY(0); } @media (max-width: 1180px) { .app-shell { grid-template-columns: 1fr; } .rail { position: static; height: auto; display: flex; align-items: center; justify-content: space-between; } .brand { margin: 0; } .nav-list { display: flex; flex-wrap: wrap; } .game-card { grid-template-columns: 1fr; } .split-band, .status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 760px) { .main { padding: 18px; } .rail { align-items: flex-start; flex-direction: column; gap: 14px; } .topbar { align-items: stretch; flex-direction: column; } .topbar-actions { justify-content: flex-start; } h1 { font-size: 24px; } .toolbar, .split-band, .status-strip, .version-grid, .policy-row { grid-template-columns: 1fr; } .policy-row em { white-space: normal; } .segmented { overflow-x: auto; } .segmented button { flex: 0 0 auto; } }