:root {
  --bg: #0f171d;
  --panel: #18232c;
  --panel-2: #202d37;
  --line: #31414e;
  --text: #e9eff3;
  --muted: #97a6b2;
  --brand: #f2a93b;
  --green: #2fb36d;
  --blue: #4d9de0;
  --red: #e05260;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Segoe UI, Arial, sans-serif; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { min-height: 44px; border: 0; border-radius: 6px; cursor: pointer; background: var(--panel-2); color: var(--text); padding: 0 14px; }
button.primary { background: var(--brand); color: #111820; font-weight: 700; }
button.danger { background: rgba(224, 82, 96, .18); color: #ff9aa4; }
button:disabled { opacity: .5; cursor: wait; }
button.is-loading { animation: refreshPulse .45s ease-in-out infinite alternate; }
button.is-clicked {
  animation: buttonPressPulse .32s ease-in-out infinite alternate;
  box-shadow: inset 0 0 0 999px rgba(0,0,0,.12);
  filter: saturate(.85);
  transform: translateY(1px);
}
button.is-clicked:disabled { cursor: wait; opacity: .72; }
input, select, textarea { width: 100%; background: #111a21; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
textarea { min-height: 96px; resize: vertical; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 18px; }
.login-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.brand-lockup { display: flex; align-items: center; min-width: 104px; }
.brand-logo { display: block; width: 122px; max-width: 100%; height: auto; object-fit: contain; }
.app-shell { min-height: 100vh; padding-bottom: 72px; }
.topbar { position: sticky; top: 0; z-index: 5; height: 62px; border-bottom: 1px solid var(--line); background: #111a21; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.content { padding: 16px; display: grid; gap: 14px; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; height: 66px; background: #111a21; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 6; }
.bottom-nav button { border-radius: 0; min-height: 64px; background: transparent; color: var(--muted); font-size: 12px; padding: 4px; }
.bottom-nav button.active { color: var(--brand); background: rgba(242,169,59,.08); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card, .form-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.metric strong { display: block; font-size: 28px; }
.metric span, .label, .muted { color: var(--muted); }
.job-card { display: grid; gap: 10px; }
.job-title { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: 12px; color: var(--muted); background: #273641; white-space: nowrap; }
.badge.assigned { background: rgba(242,169,59,.14); color: var(--brand); }
.badge.accepted, .badge.in_progress { background: rgba(77,157,224,.14); color: #65b6ff; }
.badge.completed, .badge.approved, .badge.resolved { background: rgba(47,179,109,.14); color: #50d98c; }
.badge.high, .badge.critical, .badge.declined, .badge.cancelled, .badge.expired { background: rgba(224,82,96,.16); color: #ff8490; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.record-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.record-row:last-child { border-bottom: 0; }
.record-row p { margin: 0; }
.record-row button { flex: 0 0 auto; min-height: 36px; padding: 0 10px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.tabs button { white-space: nowrap; }
.fields { display: grid; gap: 10px; }
.alert { border-left: 3px solid var(--brand); background: var(--panel); padding: 12px 14px; color: var(--muted); border-radius: 6px; }
.hidden { display: none !important; }
@keyframes refreshPulse {
  from { background: var(--panel-2); color: var(--text); }
  to { background: var(--brand); color: #111820; }
}
@keyframes buttonPressPulse {
  from { filter: brightness(.82) saturate(.9); }
  to { filter: brightness(1.08) saturate(1.05); }
}
@media (min-width: 720px) {
  .app-shell { max-width: 760px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
