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

:root {
  --bg: #1e1e2e;
  --panel: #181825;
  --surface: #252535;
  --surface-hover: #2a2a3e;
  --border: #313244;
  --border-strong: #45475a;
  --text: #cdd6f4;
  --text-secondary: #a6adc8;
  --text-muted: #6c7086;
  --input-bg: #313244;
  --accent: #cba6f7;
  --green: #a6e3a1;
  --red: #f38ba8;
  --yellow: #f9e2af;
  --blue: #89b4fa;
  --teal: #94e2d5;
  --orange: #fab387;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13px;
  background: var(--panel);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

#app {
  display: flex;
  height: 100vh;
  background: var(--panel);
  position: relative;
}

.hidden { display: none !important; }

/* ---- Activity bar (far left) ---- */
.activity-bar {
  width: 48px;
  background: #181825;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 4px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.ab-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.ab-icon:hover, .ab-icon.active { background: #45475a; color: var(--text); }
.ab-icon.active::before {
  content: ''; position: absolute;
  left: -6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--accent); border-radius: 2px;
}
.ab-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: white;
  font-size: 9px; font-weight: 600;
  padding: 1px 4px; border-radius: 8px;
  min-width: 14px; text-align: center; line-height: 1.2;
}

/* ---- Sidebar ---- */
.sidebar {
  width: 230px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.sidebar-section { padding: 8px 0; }
.sidebar-title {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  padding: 10px 12px 6px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.sidebar-item {
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  display: flex; align-items: center; gap: 8px;
  margin: 1px 4px;
  border-radius: 4px;
  transition: background 0.1s;
}
.sidebar-item:hover { background: var(--surface); }
.sidebar-item.active { background: #45475a; }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-accent { background: var(--accent); }
.dot-green { background: var(--green); }
.dot-blue { background: var(--blue); }
.dot-orange { background: var(--orange); }
.dot-yellow { background: var(--yellow); }
.dot-red { background: var(--red); }
.dot-muted { background: var(--text-muted); }
.sidebar-badge {
  margin-left: auto;
  background: #45475a;
  color: var(--text-secondary);
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 8px;
  font-weight: 500;
}
.sidebar-badge.highlight { background: var(--red); color: white; }
.sidebar-footer {
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bg);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---- Main area ---- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.tab-bar {
  display: flex;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
}
.tab {
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  transition: background 0.1s, color 0.1s;
}
.tab:hover { color: var(--text); background: var(--bg); }
.tab.active { color: var(--text); background: var(--bg); border-top: 1px solid var(--accent); }
.content-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.content-wrap::-webkit-scrollbar { width: 6px; }
.content-wrap::-webkit-scrollbar-thumb { background: #45475a; border-radius: 3px; }
.content { padding: 18px; }
.section-title {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.muted { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }

/* ---- Header actions ---- */
.header-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 12px; flex-wrap: wrap;
}
.search-input {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 10px;
  color: var(--text);
  font-size: 12px;
  width: 220px;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---- Deal cards ---- */
.deal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.deal-card:hover { border-color: var(--accent); background: var(--surface); }
.deal-card.strategic { border-left: 3px solid var(--orange); }
.deal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; gap: 8px; flex-wrap: wrap;
}
.deal-id {
  font-size: 10px; color: var(--accent); font-weight: 600;
  font-family: 'JetBrains Mono', 'Cascadia Code', monospace;
}
.deal-customer {
  font-size: 13px; font-weight: 500; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.strategic-star { color: var(--orange); font-size: 11px; }
.deal-desc { font-size: 11px; color: var(--text-secondary); margin-top: 3px; line-height: 1.4; }
.deal-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; font-size: 10px; color: var(--text-muted);
  flex-wrap: wrap;
}
.deal-meta .sep { opacity: 0.4; }
.classification {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cls-bau { background: #1e3a2e; color: var(--green); }
.cls-high-volume { background: #2e2e4a; color: var(--blue); }
.cls-strategic { background: #4a2e1e; color: var(--orange); }
.cls-rfp { background: #4a1e3a; color: var(--accent); }
.cls-fallback { background: #3a3a1e; color: var(--yellow); }
.cls-pending { background: var(--surface); color: var(--text-muted); }

.score-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px; font-weight: 600;
}
.score-bar {
  width: 30px; height: 4px;
  background: var(--input-bg);
  border-radius: 2px;
  overflow: hidden;
}
.score-fill { height: 100%; border-radius: 2px; }

.sla-indicator {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; padding: 2px 7px;
  border-radius: 10px; font-weight: 500;
}
.sla-ok { background: #1e3a2e; color: var(--green); }
.sla-warn { background: #3a2e1e; color: var(--yellow); }
.sla-breach { background: #3a1e1e; color: var(--red); }

.tag { font-size: 10px; padding: 2px 8px; border-radius: 10px; display: inline-block; }
.tag-priority-high { background: #3a1e1e; color: var(--red); }
.tag-priority-med { background: #3a2e1e; color: var(--yellow); }
.tag-priority-low { background: #1e2e3a; color: var(--blue); }

.account-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface); color: var(--orange);
  font-size: 10px; padding: 2px 8px;
  border-radius: 10px; border: 1px solid var(--orange);
}

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
label .req { color: var(--red); }
input, select, textarea {
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 70px; }
select option { background: var(--bg); }

/* ---- Buttons ---- */
.btn {
  padding: 6px 14px;
  border-radius: 5px;
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { opacity: 0.85; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-warning { background: var(--orange); color: var(--bg); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-danger:hover { background: #3a1e1e; }
.btn-sm { padding: 4px 10px; font-size: 11px; }

.divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

/* ---- Detail view ---- */
.back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}
.back-btn:hover { background: var(--surface); color: var(--text); }
.detail-row {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.detail-label {
  font-size: 11px;
  color: var(--text-muted);
  width: 120px;
  flex-shrink: 0;
  padding-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-value {
  font-size: 12px;
  color: var(--text);
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.banner {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 11px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.banner-warn { background: #3a3a1e; border: 1px solid var(--yellow); color: var(--yellow); }
.banner-info { background: #2e2e4a; border: 1px solid var(--blue); color: var(--blue); }
.banner-strategic { background: #4a2e1e; border: 1px solid var(--orange); color: var(--orange); }

.comment-box {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.comment-author {
  font-size: 11px; font-weight: 600; color: var(--accent);
  margin-bottom: 4px;
}
.comment-time { color: var(--text-muted); font-weight: 400; margin-left: 6px; font-size: 10px; }
.comment-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; white-space: pre-wrap; }

.checklist-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px;
  background: var(--input-bg);
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.checklist-item:hover { background: #3a3a4e; }
.checklist-check {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: all 0.15s;
}
.checklist-item.done .checklist-check { background: var(--green); border-color: var(--green); }
.checklist-item.done .checklist-check::after {
  content: '✓'; color: var(--bg); font-size: 11px; font-weight: 700;
}
.checklist-body { flex: 1; min-width: 0; }
.checklist-label { font-size: 12px; color: var(--text); }
.checklist-item.done .checklist-label {
  text-decoration: line-through;
  color: var(--text-muted);
}
.checklist-hint { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ---- Dashboard ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.stat-label {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
}
.stat-value {
  font-size: 24px;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1;
}
.stat-value.accent { color: var(--accent); }
.stat-value.green { color: var(--green); }
.stat-value.yellow { color: var(--yellow); }
.stat-value.blue { color: var(--blue); }
.stat-change { font-size: 10px; margin-top: 4px; color: var(--text-muted); }

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.chart-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}
.chart-row {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 8px; font-size: 11px;
}
.chart-label {
  width: 110px; color: var(--text-secondary);
  text-align: right; flex-shrink: 0;
}
.chart-bar-wrap {
  flex: 1; background: var(--input-bg);
  border-radius: 3px; height: 16px;
  overflow: hidden;
  display: flex; align-items: center; padding: 0 6px;
  min-width: 40px;
}
.chart-bar { height: 10px; border-radius: 2px; transition: width 0.4s; }
.chart-val {
  width: 60px; color: var(--text-muted);
  font-size: 10px; flex-shrink: 0;
}
.activity-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-body { flex: 1; font-size: 12px; color: var(--text-secondary); }
.activity-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ---- Empty + loading states ---- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 32px; margin-bottom: 12px; }
.empty-state p { font-size: 12px; }

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 12px;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 20px; right: 20px;
  background: var(--green); color: var(--bg);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 100;
  transform: translateY(10px);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.warn { background: var(--orange); }
.toast.error { background: var(--red); color: white; }

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
  overflow-y: auto;
}
.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  padding: 24px;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.modal-title { font-size: 15px; font-weight: 600; }

/* ---- Qualification wizard ---- */
.qual-wizard {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.qual-step {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.qual-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.qual-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.qual-body { flex: 1; min-width: 0; }
.qual-question { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.qual-hint { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5; }
.radio-group { display: flex; gap: 6px; flex-wrap: wrap; }
.radio-btn {
  padding: 6px 12px;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.radio-btn:hover { border-color: var(--accent); color: var(--text); }
.radio-btn.selected {
  background: var(--accent); color: var(--bg);
  border-color: var(--accent); font-weight: 500;
}
.score-display {
  background: var(--input-bg);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  margin-top: 12px;
}
.score-big { font-size: 32px; font-weight: 600; color: var(--accent); }
.score-verdict {
  font-size: 11px; color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.routing-display {
  background: var(--input-bg);
  border-radius: 6px;
  padding: 12px;
  margin-top: 10px;
}
.routing-label {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.routing-path { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.routing-step {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.routing-step.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface);
  font-weight: 500;
}
.arrow { color: var(--text-muted); font-size: 10px; }

/* ---- Accounts ---- */
.account-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.account-name { font-size: 13px; font-weight: 500; color: var(--text); }
.account-domain {
  font-size: 11px; color: var(--text-muted);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}
.account-note {
  font-size: 10px; color: var(--text-muted);
  margin-top: 3px; font-style: italic;
}

/* ---- Rules settings ---- */
.rule-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.rule-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.rule-hint {
  font-size: 11px; color: var(--text-muted);
  margin-bottom: 10px; line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .form-grid, .stats-grid, .chart-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { width: 190px; }
}
@media (max-width: 640px) {
  .form-grid, .stats-grid, .chart-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ============================================================
   Bid Workflow (milestone board) + Login
   ============================================================ */
.wf-lockbanner { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; margin-bottom: 12px; }
#wf-hardfilter { color: var(--text-secondary); }

.wf-toolbar { display: flex; justify-content: flex-end; min-height: 0; margin-bottom: 6px; }
.wf-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }

.wf-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.wf-table th, .wf-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.wf-table thead .wf-head th {
  position: sticky; top: 0; background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em;
}
.wf-table .wf-filter-row th { background: var(--panel); padding: 4px 6px; }
.wf-table tbody tr:hover { background: var(--surface-hover); }
.wf-table tbody td { color: var(--text-secondary); }
.wf-mono { font-family: monospace; font-size: 11px; color: var(--text-muted); }
.wf-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.wf-muted { color: var(--text-muted); }
.wf-empty { text-align: center; color: var(--text-muted); padding: 24px; }

.wf-filter {
  width: 100%; min-width: 90px; box-sizing: border-box;
  background: var(--input-bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 4px; padding: 4px 6px; font-size: 11px;
}
.wf-filter:focus { outline: none; border-color: var(--accent); }
.wf-milestone {
  background: var(--input-bg); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 4px; padding: 4px 6px; font-size: 11px; min-width: 240px; max-width: 320px;
}
.wf-milestone:focus { outline: none; border-color: var(--accent); }
.wf-milestone:disabled { opacity: 0.5; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.login-card {
  width: 100%; max-width: 340px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 26px; display: flex; flex-direction: column;
}
.login-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; color: var(--text); }
.login-sub { color: var(--text-muted); font-size: 12px; margin: 4px 0 20px; }
.login-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 5px; }
.login-input {
  background: var(--input-bg); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 6px; padding: 9px 11px; font-size: 13px; margin-bottom: 14px;
}
.login-input:focus { outline: none; border-color: var(--accent); }
.login-error { color: var(--red); font-size: 12px; min-height: 16px; margin-bottom: 8px; }
.login-btn { width: 100%; justify-content: center; padding: 10px; }

/* Generic modal card (used by the change-password dialog) */
.modal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  padding: 24px;
}
.modal-card .login-input { margin-bottom: 12px; }

/* Bid Workflow view selector + editable account input */
.wf-view-select {
  background: var(--input-bg); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 500; min-width: 240px;
}
.wf-view-select:focus { outline: none; border-color: var(--accent); }
.wf-account {
  width: 100%; min-width: 160px; box-sizing: border-box;
  background: var(--input-bg); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 4px; padding: 4px 6px; font-size: 11px;
}
.wf-account:focus { outline: none; border-color: var(--accent); }
.wf-account:disabled { opacity: 0.5; }

/* Login SSO button + divider */
.sso-btn { width: 100%; justify-content: center; text-decoration: none; margin-bottom: 4px; }
.login-divider { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 11px; margin: 12px 0; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
