:root {
  color-scheme: dark;
  --bg: #0c0e12;
  --panel: #161b22;
  --line: #2d333b;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #d4a24c;
  --danger: #f85149;
  --ok: #3fb950;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 14px/1.4 "Segoe UI", sans-serif; }
button, input, select { font: inherit; color: inherit; }
.app.locked .workspace { display: none; }
.topbar { display: flex; justify-content: center; padding: 12px 20px 0; }
.topbar-toolbar { width: min(1100px, 100%); display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.mascot { border: 0; background: transparent; padding: 0; cursor: pointer; }
.mascot img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
.head-search { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.head-search input { flex: 1; border: 0; background: transparent; outline: none; }
.lang-switch { position: relative; }
.lang-current { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.lang-menu { position: absolute; right: 0; top: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; display: grid; min-width: 120px; z-index: 2; }
.lang-menu button { background: transparent; border: 0; text-align: left; padding: 8px 12px; cursor: pointer; }
.tabs { display: flex; gap: 4px; width: min(1100px, calc(100% - 40px)); margin: 12px auto 0; border-bottom: 1px solid var(--line); }
.tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 12px; cursor: pointer; }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.workspace { width: min(1100px, calc(100% - 40px)); margin: 16px auto 40px; }
.cards { display: flex; gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 140px; }
.card b { display: block; font-size: 22px; }
.card span { color: var(--muted); }
.toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.toolbar button, .row-actions button, .pager button { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; }
td img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; background: #000; }
td input, td select { width: 100%; background: #0d1117; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--muted); }
.empty { color: var(--muted); padding: 28px 0; }
.sync-note { color: var(--muted); margin: 8px 0 0; }
.part-list { margin: 8px 0 16px 24px; }
.hint { color: var(--danger); min-height: 1.2em; }
