/* Website-only additions on top of the desktop app's own stylesheet (app-theme.css). */
[hidden] { display: none !important; }
#app[hidden] { display: none !important; }

.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--paper); padding: 24px; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; width: 380px; max-width: 100%; box-shadow: var(--shadow-lg); }
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; color: var(--heading); margin-bottom: 22px; }
.auth-brand img { width: 48px; height: 48px; }
.auth-title { font-weight: 800; font-size: 20px; color: var(--heading); margin-bottom: 4px; }
.auth-card .help { margin: 0 0 16px; color: #000; }
.auth-card .field input { width: 100%; }
.auth-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; }
.auth-links a, .view a { color: var(--heading); font-weight: 700; }
.auth-err { color: var(--bad); font-size: 14px; font-weight: 600; min-height: 1em; margin-top: 12px; }
.btn.wide { width: 100%; justify-content: center; margin-top: 6px; }

.tb-who { color: #fff; font-size: 14px; font-weight: 600; margin-right: 6px; white-space: nowrap; }
.tb-who small { opacity: .8; font-weight: 500; }
.topbar .tb-row { padding: 9px 16px; }
.content { height: auto; }

.stat-row .stat { flex: 1 1 200px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .field { margin: 0; }
.toolbar input[type=search], .toolbar select, .toolbar input[type=text] { padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; font: inherit; font-size: 14px; background: #fff; }
table.grid { width: 100%; background: #fff; }
.card > table.grid { border-radius: 0 0 12px 12px; }
tr.click { cursor: pointer; } tr.click:hover td { background: #F3F6FC; }
.empty-box { padding: 28px; text-align: center; color: #000; }
#view-root .pill.Won { background: #DCFCE7; color: #14532D; }
#view-root .pill.Lost { background: #FEE2E2; color: #7F1D1D; }
#view-root .pill.Pending { background: #E0E7FF; color: #1E3A8A; }
#view-root .pill.active { background: #DCFCE7; color: #14532D; }
#view-root .pill.suspended { background: #FEE2E2; color: #7F1D1D; }
.btn-danger { color: var(--bad) !important; }

.modal-overlay { position: fixed; inset: 0; background: rgba(13, 17, 23, .55); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); width: 640px; max-width: 100%; max-height: 88vh; overflow: auto; }
.modal-card .card-head h3 { color: var(--heading) !important; }
.modal-card .field input, .modal-card .field select, .modal-card .field textarea { width: 100%; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 14.5px; }
.kv b { color: var(--heading); }
@media (max-width: 800px) { .field-row, .field-row3 { grid-template-columns: 1fr; } .view { padding: 20px 14px 60px; } }
