/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --bg:           #0b090e;
  --surface:      #130f17;
  --surface-2:    #1b1620;
  --surface-3:    #221d29;
  --border:       #272131;
  --border-light: #332a3c;
  --text:         #ece8f5;
  --text-muted:   #908aaa;
  --text-hint:    #524e65;
  --accent:       #a17af0;
  --accent-hover: #b894f5;
  --accent-dim:   rgba(161,122,240,.13);
  --accent-border:rgba(161,122,240,.25);
  --danger:       #e05555;
  --danger-hover: #f07070;
  --danger-dim:   rgba(224,85,85,.12);
  --danger-border:rgba(224,85,85,.25);
  --success:      #3fb87a;
  --success-dim:  rgba(63,184,122,.11);
  --success-border:rgba(63,184,122,.28);
  --warning:      #e09030;
  --warning-dim:  rgba(224,144,48,.12);
  --warning-border:rgba(224,144,48,.28);
  --radius:       10px;
  --radius-sm:    6px;
  --radius-xs:    4px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.4);
  --shadow:       0 4px 16px rgba(0,0,0,.5);
  --tr:           .14s ease;
  --sidebar-w:    224px;
  --topbar-h:     52px;
  --acc-bar-h:    44px;
  --font:         'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:         'JetBrains Mono','Fira Code','Cascadia Code',Consolas,monospace;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

html,body {
  height:100%;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  overscroll-behavior:none;
}
a { text-decoration:none; color:inherit; }
input,button,select,textarea { font-family:inherit; font-size:inherit; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.hidden        { display:none !important; }
#app           { display:flex; }
.flex-1        { flex:1; min-width:0; }
.w-full        { width:100%; }
.text-sm       { font-size:13px; }
.text-xs       { font-size:11px; }
.text-muted    { color:var(--text-muted); }
.text-hint     { color:var(--text-hint); }
.text-success  { color:var(--success); }
.text-error    { color:var(--danger); }
.mt-xs         { margin-top:6px; }
.mt-sm         { margin-top:10px; }
.mb-sm         { margin-bottom:10px; }
.p-md          { padding:16px; }
.mono          { font-family:var(--mono); font-size:12px; }

/* ── Login ────────────────────────────────────────────────────────────────── */
.login-page {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg);
  padding:24px;
}
.login-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:40px 36px;
  width:100%;
  max-width:380px;
  box-shadow:var(--shadow);
}
.login-logo {
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:30px;
  font-size:24px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text);
}
.logo-accent { color:var(--accent); }

/* ── Layout ───────────────────────────────────────────────────────────────── */
#app { display:flex; flex-direction:column; height:100vh; overflow:hidden; }

/* Topbar */
.topbar {
  display:none;
  position:fixed;
  top:0; left:0; right:0;
  height:var(--topbar-h);
  background:var(--surface);
  border-bottom:1px solid var(--border);
  z-index:200;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
  flex-shrink:0;
}
.topbar-title {
  font-size:15px; font-weight:900;
  letter-spacing:.12em; text-transform:uppercase;
  cursor:pointer; user-select:none;
}
.hamburger {
  background:transparent; border:none; color:var(--text);
  padding:8px; border-radius:var(--radius-sm);
  cursor:pointer; display:flex; align-items:center;
  touch-action:manipulation;
}
.hamburger:hover { background:var(--surface-2); }
.btn-icon {
  background:transparent; border:none; color:var(--text-muted);
  padding:8px; border-radius:var(--radius-sm); cursor:pointer;
  display:flex; align-items:center;
  touch-action:manipulation;
}
.btn-icon:hover { color:var(--text); background:var(--surface-2); }

/* Sidebar overlay */
.sidebar-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.65); z-index:299;
}
.sidebar-overlay.visible { display:block; }

.layout { display:flex; flex:1; overflow:hidden; }

/* Sidebar */
.sidebar {
  width:var(--sidebar-w);
  flex-shrink:0;
  background:var(--surface);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  padding:16px 10px;
  overflow-y:auto;
}
.sidebar-logo {
  display:flex; align-items:center; gap:5px;
  padding:2px 10px 16px;
  font-size:14px; font-weight:900;
  letter-spacing:.14em; text-transform:uppercase;
  border-bottom:1px solid var(--border);
  margin-bottom:10px; flex-shrink:0;
  color:var(--text); cursor:pointer;
  user-select:none;
}
.sidebar-logo:hover .logo-accent { opacity:.8; }
.nav-links { display:flex; flex-direction:column; gap:1px; flex:1; }
.nav-item {
  display:flex; align-items:center; gap:9px;
  padding:8px 12px;
  border-radius:var(--radius-sm);
  color:var(--text-muted); font-size:13px; font-weight:500;
  transition:background var(--tr), color var(--tr);
  cursor:pointer; text-decoration:none;
  touch-action:manipulation; user-select:none;
}
.nav-item svg { flex-shrink:0; opacity:.8; }
.nav-item:hover { background:var(--surface-2); color:var(--text); }
.nav-item:hover svg { opacity:1; }
.nav-item.active { background:var(--accent-dim); color:var(--accent); }
.nav-item.active svg { opacity:1; }
.nav-logout {
  display:flex; align-items:center; gap:8px;
  padding:8px 12px; margin-top:auto; padding-top:14px;
  border-top:1px solid var(--border);
  background:transparent; border-right:none; border-left:none; border-bottom:none;
  color:var(--text-muted); font-size:13px; font-weight:500;
  cursor:pointer; border-radius:var(--radius-sm);
  width:100%; text-align:left; user-select:none;
  touch-action:manipulation;
}
.nav-logout:hover { background:var(--danger-dim); color:var(--danger); }

/* Main */
.main { flex:1; display:flex; flex-direction:column; overflow:hidden; }

/* Account bar */
.account-bar {
  display:flex; align-items:center; gap:4px;
  padding:0 20px;
  height:var(--acc-bar-h);
  background:var(--surface);
  border-bottom:1px solid var(--border);
  flex-shrink:0; overflow-x:auto; overflow-y:hidden; scrollbar-width:none;
}
.account-bar::-webkit-scrollbar { display:none; }
.account-tabs {
  display:flex; align-items:center; gap:2px; flex:1;
  overflow-x:auto; scrollbar-width:none;
}
.account-tabs::-webkit-scrollbar { display:none; }
.account-tab {
  display:flex; align-items:center; gap:6px;
  padding:5px 11px;
  border-radius:100px;
  font-size:12px; font-weight:500;
  white-space:nowrap; cursor:pointer;
  background:transparent; border:1px solid transparent;
  color:var(--text-muted); transition:all var(--tr);
  touch-action:manipulation; user-select:none;
}
.account-tab:hover { background:var(--surface-2); color:var(--text); border-color:var(--border); }
.account-tab.active {
  background:var(--accent-dim); border-color:var(--accent-border);
  color:var(--accent);
}
.account-tab .status-dot { width:6px; height:6px; flex-shrink:0; }
.add-acc-btn { flex-shrink:0; white-space:nowrap; margin-left:4px; }

/* Pages */
.page { display:none; flex-direction:column; flex:1; overflow:hidden; }
.page.active { display:flex; }

/* Page header */
.page-header {
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:10px;
  padding:24px 26px 0; flex-shrink:0;
}
.page-header h1 {
  font-size:18px; font-weight:900;
  letter-spacing:.1em; text-transform:uppercase;
  color:var(--text);
}

/* Page body */
.page-body {
  flex:1; overflow-y:auto;
  padding:18px 26px 28px;
  display:flex; flex-direction:column; gap:14px;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px 22px;
}
.card-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:12px;
}
/* Dashboard-Karten breiter auf Desktop */
#dash-grid {
  grid-template-columns:repeat(auto-fill,minmax(400px,1fr));
  gap:14px;
}
.card-title {
  font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.07em;
  color:var(--text-muted); margin-bottom:14px;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.field { display:flex; flex-direction:column; gap:5px; }
.field label {
  font-size:11px; font-weight:700;
  color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em;
}
.form-row { display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }
.form-error {
  background:var(--danger-dim); border:1px solid var(--danger-border);
  color:var(--danger); border-radius:var(--radius-sm);
  padding:8px 12px; font-size:12.5px; margin-top:8px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="search"] {
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:8px 12px;
  color:var(--text);
  outline:none;
  transition:border-color var(--tr), box-shadow var(--tr);
  font-size:16px;
  touch-action:manipulation;
  width:100%;
}
input:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-dim);
}
input::placeholder { color:var(--text-hint); }
input:disabled { opacity:.5; cursor:not-allowed; }

.select-input {
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:8px 12px;
  color:var(--text);
  outline:none; font-size:14px;
  cursor:pointer; width:100%;
  transition:border-color var(--tr);
}
.select-input:focus { border-color:var(--accent); }

.search-wrap { position:relative; margin-bottom:12px; }
.search-wrap svg {
  position:absolute; left:11px; top:50%;
  transform:translateY(-50%); color:var(--text-hint); pointer-events:none;
}
.search-wrap input { padding-left:36px; }

.guard-input {
  font-family:var(--mono); letter-spacing:.25em;
  text-transform:uppercase; font-size:18px; text-align:center;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
button {
  cursor:pointer; border:none;
  border-radius:var(--radius-sm);
  padding:8px 15px;
  font-weight:600; font-size:13px;
  transition:background var(--tr), opacity var(--tr), color var(--tr), border-color var(--tr);
  display:inline-flex; align-items:center; gap:6px;
  white-space:nowrap; touch-action:manipulation;
  user-select:none;
}
button:disabled { opacity:.45; cursor:not-allowed; pointer-events:none; }
.btn { }
.btn-primary { background:var(--accent); color:#fff; }
.btn-primary:hover { background:var(--accent-hover); }
.btn-danger  { background:var(--danger-dim);  color:var(--danger);  border:1px solid transparent; }
.btn-danger:hover  { background:var(--danger);  color:#fff; }
.btn-warning { background:var(--warning-dim); color:var(--warning); border:1px solid transparent; }
.btn-warning:hover { background:var(--warning); color:#fff; }
.btn-success { background:var(--success-dim); color:var(--success); border:1px solid transparent; }
.btn-success:hover { background:var(--success); color:#fff; }
.btn-ghost { background:transparent; color:var(--text-muted); border:1px solid transparent; }
.btn-ghost:hover { background:var(--surface-2); color:var(--text); border-color:var(--border); }
.btn-secondary { background:var(--surface-3); color:var(--text); border:1px solid var(--border); }
.btn-secondary:hover { background:var(--surface-2); border-color:var(--border-light); }
.btn-sm { padding:5px 11px; font-size:12px; }
.btn-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }

/* ── Badge ────────────────────────────────────────────────────────────────── */
.badge {
  display:inline-flex; align-items:center;
  background:var(--surface-3); border:1px solid var(--border);
  border-radius:100px; padding:2px 8px;
  font-size:10px; font-weight:700; letter-spacing:.03em;
  color:var(--text-muted); vertical-align:middle; white-space:nowrap;
}
.badge-err  { background:var(--danger-dim);  color:var(--danger);  border-color:var(--danger-border); }
.badge-warn { background:var(--warning-dim); color:var(--warning); border-color:var(--warning-border); }

/* ── Status dot ───────────────────────────────────────────────────────────── */
.status-dot {
  width:7px; height:7px; border-radius:50%;
  background:var(--text-hint); display:inline-block; flex-shrink:0;
}
.status-dot.online      { background:var(--success); box-shadow:0 0 6px rgba(63,184,122,.6); }
.status-dot.offline     { background:var(--text-hint); }
.status-dot.paused      { background:var(--warning); }
.status-dot.not-idling  { background:var(--danger); }
.status-dot.reconnecting{ background:var(--warning); animation:pulse-dot 1s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1}50%{opacity:.3} }

/* ── Dashboard cards ──────────────────────────────────────────────────────── */
.dash-empty {
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; padding:48px;
  grid-column:1/-1; text-align:center;
}
.dash-account-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px 18px;
  display:flex; flex-direction:column; gap:12px;
  transition:border-color var(--tr);
}
.dash-account-card.online      { border-color:var(--success-border); }
.dash-account-card.idling      { border-color:var(--success-border); background:linear-gradient(135deg,rgba(63,184,122,.04) 0%,transparent 60%); }
.dash-account-card.reconnecting{ border-color:var(--warning-border); }
.dash-account-card.game-paused { border-color:var(--warning-border); background:linear-gradient(135deg,rgba(224,144,48,.04) 0%,transparent 60%); }
.dash-account-card.not-idling  { border-color:var(--danger-border); background:linear-gradient(135deg,rgba(224,85,85,.03) 0%,transparent 60%); }
/* Drag & Drop */
.dash-account-card[draggable="true"] { user-select:none; }
.dash-account-card.dragging    { opacity:.4; outline:2px dashed var(--border-light); outline-offset:-2px; }
.dash-account-card.drag-over-before { border-top:2px solid var(--accent); }
.dash-account-card.drag-over-after  { border-bottom:2px solid var(--accent); }
/* Drag-Handle: nur beim Hover sichtbar, cursor:grab nur dort */
.dash-drag-handle {
  display:flex; align-items:center; flex-shrink:0;
  color:var(--text-hint); cursor:grab;
  opacity:0; transition:opacity var(--tr);
  padding:2px 3px; border-radius:3px;
}
.dash-account-card:hover .dash-drag-handle { opacity:1; }
.dash-drag-handle:hover { color:var(--text-muted); background:var(--surface-3); }

.dash-card-header { display:flex; align-items:center; gap:12px; }
.dash-avatar-wrap {
  position:relative; flex-shrink:0;
  width:40px; height:40px;
}
.dash-avatar {
  width:40px; height:40px; border-radius:50%;
  object-fit:cover; display:block;
  border:2px solid var(--border);
}
.dash-avatar-fallback {
  width:40px; height:40px; border-radius:50%;
  background:var(--surface-3); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-muted);
}
.dash-avatar-dot {
  position:absolute; bottom:0; right:0;
  width:10px; height:10px;
  border:2px solid var(--surface);
  border-radius:50%;
}
.dash-avatar-dot.online       { background:var(--success); }
.dash-avatar-dot.offline      { background:var(--text-hint); }
.dash-avatar-dot.reconnecting { background:var(--warning); animation:pulse-dot 1s infinite; }
.dash-avatar-dot.paused       { background:var(--warning); }
.dash-avatar-dot.not-idling   { background:var(--danger); }
.dash-avatar-dot.stopped      { background:var(--danger); }
.dash-status-text.stopped     { color:var(--success); }

.dash-header-info { flex:1; min-width:0; }
.dash-username { font-weight:700; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; letter-spacing:-.01em; }
a.dash-username { color:var(--text); text-decoration:none; }
a.dash-username:hover { color:var(--accent); }
.dash-profile-link { display:block; }
.dash-avatar-wrap.dash-profile-link:hover .dash-avatar { border-color:var(--accent); }
.dash-avatar-wrap.dash-profile-link:hover .dash-avatar-fallback { border-color:var(--accent); }
.dash-profile-link:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:50%; }
.dash-status-line { display:flex; align-items:center; gap:6px; margin-top:2px; flex-wrap:wrap; }
.dash-status-text { font-size:11px; font-weight:600; }
.dash-status-text.online       { color:var(--success); }
.dash-status-text.offline      { color:var(--text-hint); }
.dash-status-text.reconnecting { color:var(--warning); }
.dash-status-text.paused       { color:var(--warning); }
.dash-status-text.not-idling   { color:var(--danger); }
.dash-steamid { font-size:10px; color:var(--text-hint); font-family:var(--mono); }
.dash-badges  { display:flex; gap:4px; flex-shrink:0; }

.dash-no-idle { font-size:12px; color:var(--text-hint); }

.dash-idle-section { display:flex; flex-direction:column; gap:6px; }
.dash-section-label {
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:var(--success);
  display:flex; align-items:center; gap:6px;
}
/* Gesamtanzahl der idlenden Spiele rechts im Section-Label */
.dash-chip-count {
  margin-left:auto; font-size:10px; font-family:var(--mono);
  color:var(--text-hint); flex-shrink:0;
}

/* Expand/Collapse-Button unter den Chips */
.btn-chip-expand {
  display:block; width:100%; margin-top:4px;
  background:none; border:1px dashed var(--border); border-radius:6px;
  color:var(--text-muted); font-size:11px; padding:4px 0; cursor:pointer;
  transition:border-color var(--tr), color var(--tr);
}
.btn-chip-expand:hover { border-color:var(--border-light); color:var(--text); }

.dash-idle-chips { display:flex; flex-direction:column; gap:5px; }
.dash-idle-chip {
  display:flex; align-items:center; gap:8px;
  background:var(--success-dim); border:1px solid var(--success-border);
  border-radius:8px; padding:5px 8px 5px 5px;
  font-size:12px; font-weight:500; overflow:hidden;
  width:100%;
}
.dash-idle-chip.paused {
  background:var(--warning-dim); border-color:var(--warning-border);
}
.dash-idle-chip.stopped {
  background:var(--danger-dim); border-color:var(--danger-border); opacity:.75;
}
/* Manuell pausiertes Spiel: gedimmt, Accent-Rand */
.dash-idle-chip.chip-idle-paused {
  opacity:.6; border-color:var(--accent-border); background:var(--accent-dim);
}
.chip-img {
  width:38px; height:38px; border-radius:5px;
  object-fit:cover; object-position:top center;
  flex-shrink:0; display:block;
  background:var(--surface-3);
}
.chip-body {
  display:flex; flex-direction:column; gap:1px; min-width:0; flex:1;
}
.chip-name-row {
  display:flex; align-items:center; gap:5px;
}
.chip-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; min-width:0; }
.chip-id   { font-size:10px; color:var(--text-hint); font-family:var(--mono); flex-shrink:0; }
.chip-meta {
  display:flex; align-items:center; flex-wrap:wrap; gap:4px;
  font-size:10px; font-weight:400; color:var(--text-muted);
}
.chip-sep  { color:var(--text-hint); }
.chip-time { white-space:nowrap; }
/* Boost-Zeit: lokal getrackt, sofort aktuell → farbig hervorgehoben */
.chip-boost { color:var(--accent); font-weight:600; }
/* Steam-Spielzeit: träge von Steam aktualisiert → gedämpft als Referenz */
.chip-steam { color:var(--text-hint); font-size:9px; }
/* Per-Game Pause/Fortsetzen-Button */
.chip-pause-btn {
  flex-shrink:0; width:28px; height:28px; margin-left:6px;
  display:flex; align-items:center; justify-content:center;
  background:none; border:1px solid var(--border); border-radius:4px;
  color:var(--text-hint); cursor:pointer; padding:0;
  transition:background var(--tr), color var(--tr), border-color var(--tr);
}
.chip-pause-btn:hover { background:var(--surface-3); color:var(--text); border-color:var(--border-light); }
/* Im pausierten Chip: Play-Button hervorgehoben */
.dash-idle-chip.chip-idle-paused .chip-pause-btn {
  color:var(--accent); border-color:var(--accent-border);
}
.dash-idle-chip.chip-idle-paused .chip-pause-btn:hover {
  background:var(--accent-dim); color:var(--accent-hover);
}

.dash-actions     { display:flex; flex-direction:column; gap:6px; margin-top:auto; }
.dash-action-row  { display:flex; gap:6px; flex-wrap:wrap; }
.dash-hours-exhausted {
  font-size:11px; padding:8px 10px; border-radius:var(--radius-sm);
  background:var(--danger-dim); border:1px solid var(--danger-border); color:var(--danger);
}

/* Pulse animation */
.idle-pulse-sm {
  width:6px; height:6px; border-radius:50%;
  background:var(--success); flex-shrink:0;
  animation:pulse-dot 2s infinite;
}
.idle-pulse-sm.stopped { background:var(--danger); animation:none; opacity:.75; }
.idle-pulse {
  width:8px; height:8px; border-radius:50%;
  background:var(--success); flex-shrink:0;
  animation:pulse-dot 2s infinite;
}
.idle-pulse.stopped { background:var(--danger); animation:none; opacity:.7; }

/* ── Account list ─────────────────────────────────────────────────────────── */
.accounts-list-inner { display:flex; flex-direction:column; }
.account-row {
  display:flex; align-items:center; gap:14px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.account-row:last-child { border-bottom:none; }
.account-avatar {
  width:40px; height:40px; border-radius:50%;
  background:var(--surface-3); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-muted); flex-shrink:0; overflow:hidden;
}
.account-avatar-img {
  width:100%; height:100%; object-fit:cover; display:block;
}
.account-info { flex:1; min-width:0; }
.account-name { font-weight:600; font-size:14px; letter-spacing:-.01em; }
a.account-name { color:var(--text); text-decoration:none; }
a.account-name:hover { color:var(--accent); }
.account-avatar.dash-profile-link:hover .account-avatar-img { border-color:var(--accent); }
.account-meta { display:flex; align-items:center; gap:7px; margin-top:3px; color:var(--text-muted); font-size:12px; }
.account-actions { display:flex; gap:6px; flex-shrink:0; }

/* ── Games list ───────────────────────────────────────────────────────────── */
.games-list { display:flex; flex-direction:column; gap:5px; max-height:70vh; overflow-y:auto; overflow-x:hidden; }
.game-row {
  display:flex; align-items:center; gap:11px;
  padding:9px 11px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  transition:border-color var(--tr), background var(--tr);
}
.game-row:hover       { border-color:var(--border-light); }
.game-row.idling      { border-color:var(--success-border); background:var(--success-dim); }
.game-row.in-selection{ border-color:var(--accent-border);  background:var(--accent-dim); }
.game-row.gc-title    { border-color:var(--warning-border); }
.game-img {
  width:80px; height:30px; border-radius:var(--radius-xs);
  background:var(--surface-3); flex-shrink:0; object-fit:cover;
}
.game-name { font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.game-meta { display:flex; align-items:center; gap:7px; margin-top:2px; }
.game-id { font-size:10px; color:var(--text-hint); font-family:var(--mono); }
.game-playtime { font-size:10px; color:var(--text-hint); }
.gc-badge {
  display:inline-flex; align-items:center;
  background:var(--warning-dim); color:var(--warning);
  border:1px solid var(--warning-border); border-radius:3px;
  font-size:9px; font-weight:800; padding:1px 5px;
  font-family:var(--mono); cursor:help; flex-shrink:0;
}
.idle-toggle {
  width:32px; height:32px; min-height:unset; padding:0; border-radius:50%;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.idle-toggle.start { background:var(--accent-dim); color:var(--accent); }
.idle-toggle.start:hover { background:var(--accent); color:#fff; }
.idle-toggle.stop { background:var(--success-dim); color:var(--success); }
.idle-toggle.stop:hover { background:var(--success); color:#fff; }

/* ── Idle split layout ────────────────────────────────────────────────────── */
.idle-split-layout {
  display:flex; gap:16px; align-items:flex-start;
}
.idle-queue-panel {
  flex:1 1 0; min-width:0;
}
.idle-games-panel {
  flex:1 1 0; min-width:0;
}
.idle-panel-hdr {
  display:flex; align-items:center; justify-content:space-between;
}
.idle-count-badge {
  font-size:11px; font-weight:600; font-variant-numeric:tabular-nums;
  padding:2px 8px; border-radius:999px;
  background:var(--surface-3); color:var(--text-muted);
  border:1px solid var(--border);
}
.idle-count-badge.at-limit {
  background:rgba(239,68,68,.15); color:#f87171;
  border-color:rgba(239,68,68,.3);
}
@media (max-width:900px) {
  .idle-split-layout { flex-direction:column; }
  .idle-queue-panel  { width:100%; }
  .idle-games-panel  { width:100%; }
}

/* ── Idle active list ─────────────────────────────────────────────────────── */
.idle-active-list { display:flex; flex-direction:column; gap:7px; }
.idle-active-row {
  display:flex; align-items:center; gap:11px;
  padding:8px 12px;
  background:var(--success-dim); border:1px solid var(--success-border);
  border-radius:var(--radius-sm);
}
.idle-active-row.stopped {
  background:var(--danger-dim); border-color:var(--danger-border);
}
.idle-name { font-size:13px; font-weight:600; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.idle-id { font-size:11px; color:var(--text-hint); font-family:var(--mono); }

/* ── Radio / Checkbox ─────────────────────────────────────────────────────── */
.radio-group { display:flex; flex-direction:column; gap:8px; }
.radio-label {
  display:flex; align-items:center; gap:8px;
  font-size:13px; cursor:pointer; user-select:none;
}
.radio-label input[type="radio"]    { accent-color:var(--accent); flex-shrink:0; }
.radio-label input[type="checkbox"] { accent-color:var(--accent); flex-shrink:0; }

/* ── Persona state warning ────────────────────────────────────────────────── */
.persona-warning {
  margin-top:10px;
  background:var(--warning-dim); border:1px solid var(--warning-border);
  color:var(--warning); border-radius:var(--radius-sm);
  padding:10px 13px; font-size:12px; line-height:1.6;
}
#auto-resume-label.ar-disabled {
  opacity:.45; cursor:not-allowed; pointer-events:none;
}
#auto-resume-label.ar-disabled input { pointer-events:none; }

/* ── Console ──────────────────────────────────────────────────────────────── */
.log-output {
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:12px 14px;
  font-family:var(--mono); font-size:12px; line-height:1.7;
  height:min(60vh,500px); overflow-y:auto;
  white-space:pre-wrap; word-break:break-all; margin-bottom:10px;
}
.log-line { display:block; }
.log-daemon { color:#b09cf5; }
.log-send { color:#6fcf97; }
.log-stderr { color:var(--danger); }
.log-system { color:var(--text-muted); }
.log-result { color:var(--success); }
.log-error-line { color:var(--danger); }
.log-ts { color:var(--text-hint); user-select:none; }
.log-acc { color:var(--warning); font-weight:700; }
.console-input-row { display:flex; gap:8px; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast {
  position:fixed; bottom:22px; right:22px;
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--radius); padding:11px 16px;
  font-size:13px; font-weight:500;
  box-shadow:var(--shadow); z-index:9999; max-width:320px;
  animation:toast-in .18s ease;
}
.toast.error   { border-left:3px solid var(--danger);  color:var(--text); }
.toast.info    { border-left:3px solid var(--accent);  color:var(--text); }
.toast.success { border-left:3px solid var(--success); color:var(--text); }
@keyframes toast-in { from{transform:translateX(16px);opacity:0} to{transform:translateX(0);opacity:1} }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--border-light); }

/* ── Guard input ──────────────────────────────────────────────────────────── */
.guard-input {
  font-family:var(--mono); letter-spacing:.22em;
  text-transform:uppercase; font-size:18px; text-align:center;
}
.guard-input-lg { font-size:22px; letter-spacing:.28em; width:100%; }

/* ── Guard modal overlay ──────────────────────────────────────────────────── */
.guard-modal-overlay {
  position:fixed; inset:0; z-index:9000;
  background:rgba(0,0,0,.72);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  backdrop-filter:blur(4px);
}
.guard-modal-overlay.hidden { display:none; }
.guard-modal-card {
  background:var(--surface-2); border:1px solid var(--accent-border);
  border-radius:var(--radius); padding:28px 28px 24px;
  max-width:440px; width:100%;
  box-shadow:0 16px 48px rgba(0,0,0,.7), 0 0 0 1px var(--accent-border);
  animation:modal-in .18s ease;
}
@keyframes modal-in {
  from { transform:scale(.94); opacity:0; }
  to   { transform:scale(1);   opacity:1; }
}
.guard-modal-header {
  display:flex; align-items:center; gap:10px;
  color:var(--accent); font-weight:600; font-size:16px;
  margin-bottom:14px;
}
.guard-modal-header svg { color:var(--accent); flex-shrink:0; }
.guard-modal-header span { flex:1; }
.guard-modal-account {
  font-size:13px; color:var(--text-muted);
  background:var(--surface-3); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:8px 12px;
  margin-bottom:12px; font-family:var(--mono);
}
.guard-modal-input-row {
  display:flex; gap:10px; align-items:flex-end;
}
.guard-modal-input-row .guard-input { flex:1; min-width:0; }

/* Bestätigungs-Modus (SDA/Mobile App) */
.guard-confirm-steps {
  display:flex; flex-direction:column; gap:10px; margin-bottom:16px;
}
.guard-confirm-step {
  display:flex; align-items:flex-start; gap:10px;
  font-size:13px; color:var(--text);
}
.guard-step-num {
  display:flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:50%;
  background:var(--accent-dim); border:1px solid var(--accent-border);
  color:var(--accent); font-size:11px; font-weight:700; flex-shrink:0;
}
.guard-confirm-waiting {
  display:flex; align-items:center; gap:10px;
  color:var(--text-muted); font-size:13px;
  background:var(--surface-3); border-radius:var(--radius-sm);
  padding:12px 14px;
}
.guard-spinner {
  width:18px; height:18px; border-radius:50%;
  border:2px solid var(--border); border-top-color:var(--accent);
  animation:spin .7s linear infinite; flex-shrink:0;
}
@keyframes spin { to { transform:rotate(360deg); } }
.guard-switch-btn {
  width:100%; margin-top:14px;
  font-size:12px; color:var(--text-muted);
  text-align:center; padding:7px 12px;
  border:1px dashed var(--border); border-radius:var(--radius-sm);
}
.guard-switch-btn:hover { color:var(--accent); border-color:var(--accent-border); background:var(--accent-dim); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width:768px) {
  .topbar { display:flex; }
  .sidebar {
    position:fixed; top:0; left:0; bottom:0;
    width:256px; z-index:300;
    transform:translateX(-100%);
    transition:transform .22s ease;
  }
  .sidebar.open { transform:translateX(0); box-shadow:6px 0 30px rgba(0,0,0,.6); }
  .layout { padding-top:var(--topbar-h); }
  .page-header { padding:16px 16px 0; }
  .page-header h1 { font-size:16px; }
  .page-body { padding:14px 16px 24px; }
  .account-bar { padding:0 12px; }
  .account-tab { padding:3px 10px; font-size:11px; gap:5px; min-height:0; }
  .account-tab .status-dot { width:5px; height:5px; }
  .card-grid, #dash-grid { grid-template-columns:1fr; }
  .card { padding:16px; }
  .form-row { flex-direction:column; }
  .form-row > * { width:100%; }
  .form-row > button { width:auto; }
  .account-actions { flex-wrap:wrap; }
  button,.nav-item { min-height:44px; }
  .btn-sm { min-height:36px; }
  .idle-toggle { min-height:unset; width:36px; height:36px; } /* rund bleiben, nicht oval */
  .chip-pause-btn { min-height:unset; width:32px; height:32px; } /* nicht von button-min-height verzerrt */
  .log-output { height:45vh; }
  .games-list { max-height:55vh; }
}
@media (max-width:420px) {
  .page-header { padding:12px 12px 0; }
  .page-body { padding:12px 12px 20px; }
  .account-bar { padding:0 8px; }
  .account-tab { padding:3px 8px; font-size:11px; min-height:0; }
  .card { padding:14px; }
}

/* ── Inventar ──────────────────────────────────────────────────────────────── */
.inv-preset-bar {
  display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px;
}
.inv-preset-btn {
  padding:5px 14px; border-radius:20px; border:1px solid var(--border-light);
  background:var(--surface-2); color:var(--text-muted); font-size:12px; cursor:pointer;
  transition:background var(--tr), color var(--tr), border-color var(--tr);
}
.inv-preset-btn:hover { background:var(--surface-3); color:var(--text); border-color:var(--accent-border); }
.inv-preset-btn.active { background:var(--accent-dim); color:var(--accent); border-color:var(--accent-border); }

.inv-loading, .inv-error, .inv-empty {
  padding:32px 16px; text-align:center; color:var(--text-muted); font-size:13px;
}
.inv-error { color:var(--danger); }

/* ── Inventar-Controls (Suche + Sortierung) ──────────────────────────────── */
.inv-controls {
  display:flex; flex-direction:column; gap:8px; margin-bottom:10px;
}
.inv-controls-row { display:flex; gap:8px; }
.inv-search-wrap { width:100%; }
#inv-search {
  width:100%; box-sizing:border-box;
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--radius-sm); color:var(--text);
  padding:8px 12px; font-size:13px;
  transition:border-color var(--tr),background var(--tr);
}
#inv-search::placeholder { color:var(--text-hint); }
#inv-search:focus { outline:none; border-color:var(--accent-border); background:var(--surface-3); }
/* Alle Inventar-Dropdowns teilen denselben Stil – passend zur restlichen UI */
#inv-game, #inv-type, #inv-sort {
  flex:1; min-width:0;
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--radius-sm); color:var(--text);
  padding:8px 10px; font-size:12px; cursor:pointer;
  transition:border-color var(--tr),background var(--tr);
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 10px center;
  padding-right:28px;
}
#inv-game:focus, #inv-type:focus, #inv-sort:focus {
  outline:none; border-color:var(--accent-border); background-color:var(--surface-3);
}
#inv-game option, #inv-type option, #inv-sort option { background:var(--surface-2); color:var(--text); }

/* ── Inventar-Sektionen ──────────────────────────────────────────────────── */
.inv-section { margin-bottom:24px; }
.inv-section-header {
  display:flex; align-items:center; gap:8px;
  margin-bottom:10px; padding-bottom:8px; border-bottom:1px solid var(--border);
}
.inv-section-name { flex:1; font-size:13px; font-weight:600; color:var(--text); }
.inv-section-stats { font-size:11px; color:var(--text-muted); font-family:var(--mono); }

/* ── Inventar-Grid und Karten ────────────────────────────────────────────── */
.inv-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
  gap:8px;
}
.inv-card {
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:8px;
  display:flex; flex-direction:column; gap:6px;
  transition:border-color var(--tr);
}
.inv-card:hover { border-color:var(--border-light); }
.inv-card-img-wrap {
  position:relative; width:100%; aspect-ratio:1;
  display:flex; align-items:center; justify-content:center;
  background:var(--surface-3); border-radius:4px; overflow:hidden;
}
.inv-card-img-wrap img { width:100%; height:100%; object-fit:contain; }
.inv-card-count {
  position:absolute; top:3px; right:3px;
  background:rgba(0,0,0,.76); border-radius:4px;
  color:#fff; font-size:10px; font-weight:700; font-family:var(--mono);
  padding:1px 5px; pointer-events:none;
}
.inv-card-body { display:flex; flex-direction:column; gap:2px; }
.inv-card-name {
  font-size:11px; font-weight:500; color:var(--text); line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; word-break:break-word;
}
/* Typ + Wear-Badge nebeneinander */
.inv-card-meta { display:flex; align-items:center; gap:4px; flex-wrap:wrap; min-height:14px; }
.inv-card-type { font-size:10px; color:var(--text-hint); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; min-width:0; }
.inv-card-price { font-size:11px; font-family:var(--mono); color:var(--accent); font-weight:600; }
.inv-card-price.loading { color:var(--text-hint); }
.inv-card-price.unmarketable { color:var(--text-hint); font-size:10px; font-weight:400; }

/* Klickbare Karte → Steam Market */
.inv-card-link { cursor:pointer; }
.inv-card-link:hover { border-color:var(--accent) !important; box-shadow:0 0 0 1px var(--accent)22; }

/* Wear-Badge (CS2-Zustand) */
.inv-wear-badge {
  display:inline-block; font-size:9px; font-weight:700; font-family:var(--mono);
  padding:1px 4px; border-radius:3px; letter-spacing:.04em;
  flex-shrink:0; line-height:1.6;
}
/* Fallback-Farben, falls Steam kein color-Tag liefert */
.inv-wear-fn { background:rgba(74,222,128,.18); color:#4ade80; }
.inv-wear-mw { background:rgba(96,165,250,.18); color:#60a5fa; }
.inv-wear-ft { background:rgba(250,204,21,.18);  color:#facc15; }
.inv-wear-ww { background:rgba(249,115,22,.18);  color:#f97316; }
.inv-wear-bs { background:rgba(156,163,175,.18); color:#9ca3af; }

/* ── Gesamt-Leiste ───────────────────────────────────────────────────────── */
.inv-total-bar {
  display:flex; align-items:center; gap:10px; padding:8px 14px;
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--radius); margin-bottom:10px; font-size:12px;
}
.inv-total-label {
  color:var(--text-muted); font-weight:600; text-transform:uppercase;
  font-size:10px; letter-spacing:.05em; flex-shrink:0;
}
.inv-total-value { color:var(--text); font-family:var(--mono); font-size:13px; font-weight:600; }
.dash-inv-value { font-size:11px; color:var(--accent); font-family:var(--mono); margin-top:2px; }

@media (max-width:420px) {
  .inv-grid { grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); gap:6px; }
  .inv-card { padding:6px; }
}

/* ── Login-Link ──────────────────────────────────────────────────────────── */
.link { color:var(--accent); text-decoration:none; }
.link:hover { color:var(--accent-hover); text-decoration:underline; }

/* ── Sidebar User-Info ───────────────────────────────────────────────────── */
.sidebar-user-info { padding:8px 10px 4px; }
.sidebar-user { display:flex; flex-direction:column; gap:4px; }
.sidebar-user-name { font-size:12px; font-weight:600; color:var(--text); }
.sidebar-user-role {
  display:inline-flex; align-items:center;
  font-size:9px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:1px 6px; border-radius:20px; width:fit-content;
}
.role-admin { background:var(--accent-dim); color:var(--accent); border:1px solid var(--accent-border); }
.role-user  { background:var(--surface-3); color:var(--text-muted); border:1px solid var(--border); }
.sidebar-user-hours {
  font-size:10px; color:var(--text-muted);
  display:flex; align-items:center; gap:4px; margin-top:2px;
}

/* ── Admin Panel ─────────────────────────────────────────────────────────── */
/* Stats-Dashboard */
.admin-stats-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px;
}
.admin-stat-card {
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--radius); padding:14px 16px;
  display:flex; flex-direction:column; gap:3px;
}
.admin-stat-label { font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:.07em; color:var(--text-hint); }
.admin-stat-value { font-size:26px; font-weight:700; font-family:var(--mono);
  color:var(--text); line-height:1.1; }
.admin-stat-sub   { font-size:11px; color:var(--text-muted); margin-top:2px; }
.admin-stat-card.accent { border-color:var(--accent-border); background:var(--accent-dim); }
.admin-stat-card.accent .admin-stat-value { color:var(--accent); }
.admin-stat-card.warn   { border-color:var(--warning-border); background:var(--warning-dim); }
.admin-stat-card.warn   .admin-stat-value { color:var(--warning); }

/* Suchfeld */
.admin-search-input {
  width:100%; box-sizing:border-box; margin:0 0 10px;
  background:var(--surface-3); border:1px solid var(--border);
  border-radius:var(--radius-sm); color:var(--text);
  padding:8px 12px; font-size:13px;
}
.admin-search-input:focus { outline:none; border-color:var(--accent-border); }

/* User-Cards */
.admin-user-list { display:flex; flex-direction:column; gap:8px; }
.admin-user-card {
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--radius); padding:14px 16px;
  display:flex; flex-direction:column; gap:10px;
}
.admin-user-card:hover { border-color:var(--border-light); }
.admin-user-header {
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.admin-user-identity { display:flex; flex-direction:column; gap:3px; min-width:0; }
.admin-user-name { font-size:14px; font-weight:600; color:var(--text); }
.admin-user-email { font-size:11px; color:var(--text-hint); }
.admin-user-dropdowns { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.admin-select {
  background:var(--surface-3); border:1px solid var(--border);
  border-radius:var(--radius-sm); color:var(--text);
  padding:5px 8px; font-size:12px; cursor:pointer; appearance:auto;
}
.admin-select:focus { outline:none; border-color:var(--accent-border); }
.admin-user-body {
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px;
}
.admin-user-stat { display:flex; flex-direction:column; gap:2px; }
.admin-user-stat-label { font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-hint); }
.admin-user-stat-value { display:flex; align-items:center; gap:5px; font-size:13px; font-family:var(--mono); }
.admin-input {
  background:var(--surface-3); border:1px solid var(--border);
  border-radius:var(--radius-xs); color:var(--text);
  padding:4px 6px; font-size:12px; font-family:var(--mono);
  width:72px; box-sizing:border-box;
}
.admin-input.narrow { width:54px; }
.admin-input:focus { outline:none; border-color:var(--accent-border); }
.admin-user-footer { display:flex; gap:6px; flex-wrap:wrap; padding-top:2px; border-top:1px solid var(--border); }
.admin-steam-pills { display:flex; flex-wrap:wrap; gap:4px; margin-top:2px; }
.admin-steam-pill {
  font-size:10px; padding:2px 7px; border-radius:999px;
  background:var(--surface-3); border:1px solid var(--border); color:var(--text-muted);
}
.admin-steam-pill.idling  { border-color:var(--accent-border);  color:var(--accent);  background:var(--accent-dim); }
.admin-steam-pill.paused  { border-color:var(--warning-border); color:var(--warning); background:var(--warning-dim); }
.admin-steam-pill.stopped { border-color:var(--border); color:var(--text-hint); background:var(--surface-3); }

.badge-success { background:var(--success-dim); color:var(--success); border:1px solid var(--success-border); }
.badge-warning { background:var(--warning-dim); color:var(--warning); border:1px solid var(--warning-border); }
.badge-danger  { background:var(--danger-dim);  color:var(--danger);  border:1px solid var(--danger-border); }

@media (max-width:700px) {
  .admin-stats-grid  { grid-template-columns:1fr 1fr; }
  .admin-user-body   { grid-template-columns:1fr 1fr; }
}
@media (max-width:480px) {
  .admin-stats-grid  { grid-template-columns:1fr; }
  .admin-user-body   { grid-template-columns:1fr; }
}

/* ── Splash Screen ───────────────────────────────────────────────────────── */
#splash {
  position:fixed; inset:0; z-index:9999;
  background:var(--bg);
  display:flex; align-items:center; justify-content:center;
  pointer-events:none;
  /* Dismiss wird per JS ausgelöst, sobald App bereit + Min-Zeit erreicht */
}
#splash.splash-out {
  animation:splash-dismiss .45s ease-in both;
}
.splash-inner {
  display:flex; flex-direction:column; align-items:center; gap:24px;
}
.splash-icon {
  position:relative;
  animation:splash-icon-pop .55s cubic-bezier(.34,1.56,.64,1) both;
}
.splash-icon svg {
  display:block;
  filter:drop-shadow(0 0 28px rgba(161,122,240,.8))
         drop-shadow(0 0 8px rgba(161,122,240,.4));
}
.splash-icon::after {
  content:'';
  position:absolute;
  inset:-18px;
  border:2px solid rgba(161,122,240,.55);
  border-radius:50%;
  animation:splash-ring .55s ease-out .28s both;
}
.splash-wordmark {
  font-size:30px; font-weight:900;
  letter-spacing:.18em; text-transform:uppercase;
  color:var(--text);
  animation:splash-text-rise .3s ease-out .3s both;
}
.splash-wordmark .logo-accent { color:var(--accent); }

@keyframes splash-icon-pop {
  0%   { opacity:0; transform:scale(.28); }
  65%  { opacity:1; transform:scale(1.1); }
  100% { opacity:1; transform:scale(1); }
}
@keyframes splash-ring {
  0%   { opacity:.7; transform:scale(.5); }
  100% { opacity:0;  transform:scale(2); }
}
@keyframes splash-text-rise {
  0%   { opacity:0; transform:translateY(10px); }
  100% { opacity:1; transform:translateY(0); }
}
@keyframes splash-dismiss {
  0%   { opacity:1; }
  100% { opacity:0; }
}
