:root { font-family: system-ui, sans-serif; }
body { margin: 0; background: #0b0b0f; color: #eee; }
header { padding: 12px; border-bottom: 1px solid #222; background: #0f0f16; position: sticky; top: 0; }
.title { font-weight: 800; font-size: 18px; }
.subtitle { opacity: 0.7; margin-top: 4px; font-size: 12px; }

.toprow { display:flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
#userBox { font-size: 12px; opacity: 0.9; }
.authlinks a { color: #7aa2ff; text-decoration: none; font-size: 12px; margin-left: 10px; }
.authlinks { white-space: nowrap; }

.tabs { display:flex; gap:8px; margin-top: 10px; flex-wrap: wrap; }
.tabBtn { background: #1c1c2c; color: #eee; border: 1px solid #2d2d45; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 12px; }
.tabBtn.active { border-color: #7aa2ff; }

.panel { padding: 12px; border-bottom: 1px solid #1f1f2a; }
.panelTitle { font-weight: 800; margin-bottom: 8px; }

.row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px; border: 1px solid #222; border-radius: 10px; margin-bottom: 8px; background: #10101a; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; opacity: 0.85; font-size: 12px; margin-top: 4px; }
.badge { padding: 2px 8px; border-radius: 999px; background: #1b1b2a; border: 1px solid #2a2a3d; }

.buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
button { background: #1c1c2c; color: #eee; border: 1px solid #2d2d45; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
button:disabled { opacity: 0.4; cursor: not-allowed; }
button.danger { border-color: #5a2a2a; background: #231014; }
button.good { border-color: #2a5a3a; background: #102318; }

.barWrap { margin-top: 10px; }
.barLabel { display: flex; justify-content: space-between; font-size: 12px; opacity: 0.8; margin-bottom: 4px; }
.barOuter { width: 100%; height: 10px; border: 1px solid #2a2a3d; border-radius: 999px; overflow: hidden; background: #0b0b10; }
.barInner { height: 100%; width: 0%; background: #7aa2ff; }

.formRow { display:flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
label { font-size: 12px; opacity: 0.8; }
input, select { padding: 8px; border-radius: 8px; border: 1px solid #2d2d45; background: #0f0f16; color: #eee; outline: none; }
.hidden { display:none; }
.hint { font-size: 12px; opacity: 0.7; margin-top: 8px; }

#toast { position: fixed; left: 10px; bottom: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(20,20,30,0.9); border: 1px solid #2a2a3d; display: none; font-size: 12px; max-width: 90vw; }
