* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0e0f13;
  color: #e6e6e6;
  min-height: 100vh;
}
.screen { max-width: 480px; margin: 0 auto; padding: 24px 16px; }
.screen.hidden { display: none; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.topbar h1 { font-size: 20px; margin: 0; }
h1 { font-size: 22px; margin: 0 0 16px; }

.card {
  background: #17181f;
  border: 1px solid #2a2c36;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

label { display: block; font-size: 13px; color: #9a9ba5; margin-bottom: 6px; }

input[type="text"], input[type="password"] {
  width: 100%;
  background: #0e0f13;
  border: 1px solid #33353f;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 15px;
  margin-bottom: 10px;
}

.input-row { display: flex; gap: 8px; }
.input-row input { margin-bottom: 0; }

.dropdown {
  position: relative;
  margin-top: -6px;
  margin-bottom: 10px;
  max-height: 200px;
  overflow-y: auto;
  background: #0e0f13;
  border: 1px solid #33353f;
  border-radius: 8px;
}
.dropdown.hidden { display: none; }
.dropdown-item { padding: 8px 12px; cursor: pointer; font-size: 14px; }
.dropdown-item:hover, .dropdown-item.active { background: #23252e; }

button {
  background: #4c6ef5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
}
button:hover { background: #3b5bdb; }
#logout-btn { background: #2a2c36; font-size: 13px; padding: 6px 12px; }

.error { color: #ff6b6b; font-size: 13px; margin: 8px 0 0; min-height: 16px; }

.market-name { font-size: 15px; color: #9a9ba5; margin-bottom: 12px; word-break: break-word; }

.prob-display { display: flex; gap: 12px; margin-bottom: 16px; }
.prob-block { flex: 1; text-align: center; border-radius: 10px; padding: 16px 8px; }
.prob-block.yes { background: rgba(64, 192, 87, 0.12); border: 1px solid rgba(64, 192, 87, 0.4); }
.prob-block.no { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.4); }
.prob-label { font-size: 12px; letter-spacing: 1px; color: #9a9ba5; margin-bottom: 6px; }
.prob-value { font-size: 28px; font-weight: 700; }
.prob-block.yes .prob-value { color: #40c057; }
.prob-block.no .prob-value { color: #ff6b6b; }

.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.detail-table td { padding: 6px 0; border-top: 1px solid #23252e; }
.detail-table td:first-child { color: #9a9ba5; }
.detail-table td:last-child { text-align: right; }

.refresh-status { text-align: center; font-size: 12px; color: #6a6b75; margin-top: 12px; }
