html { color-scheme: dark; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top left, rgba(8, 145, 178, .12), transparent 36rem), rgb(2 6 23); }
.panel { border: 1px solid rgb(30 41 59); background: linear-gradient(180deg, rgba(15, 23, 42, .9), rgba(15, 23, 42, .68)); border-radius: 8px; padding: 1.25rem; box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.panel:hover { border-color: rgba(71, 85, 105, .9); }
.mini-card { border: 1px solid rgb(30 41 59); background: rgba(2, 6, 23, .72); border-radius: 8px; padding: .9rem; min-height: 5rem; }
.mini-card span { display: block; font-size: .75rem; color: rgb(148 163 184); }
.mini-card strong { display: block; margin-top: .25rem; color: white; font-weight: 650; }
.input { width: 100%; border: 1px solid rgb(51 65 85); background: rgba(2, 6, 23, .82); border-radius: 8px; padding: .7rem .85rem; color: white; outline: none; min-height: 2.75rem; }
.input::placeholder { color: rgb(100 116 139); }
.input:focus { border-color: rgb(34 211 238); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; border-radius: 8px; background: rgb(6 182 212); padding: .55rem .9rem; font-weight: 650; color: rgb(8 47 73); transition: .18s ease; }
.btn-primary:hover { background: rgb(103 232 249); transform: translateY(-1px); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; border-radius: 8px; border: 1px solid rgb(51 65 85); background: rgba(15, 23, 42, .72); padding: .55rem .9rem; font-weight: 600; color: rgb(226 232 240); transition: .18s ease; }
.btn-secondary:hover { border-color: rgb(34 211 238); color: white; transform: translateY(-1px); }
.nav-link { display: block; white-space: nowrap; border-radius: 8px; padding: .7rem .85rem; color: rgb(148 163 184); font-size: .92rem; border: 1px solid transparent; }
.nav-link:hover, .nav-active { background: rgb(15 23 42); color: white; border-color: rgb(30 41 59); }
.nav-active { box-shadow: inset 3px 0 0 rgb(34 211 238); }
.status-badge { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(34, 211, 238, .25); border-radius: 999px; background: rgba(8, 145, 178, .12); color: rgb(165 243 252); padding: .25rem .6rem; font-size: .72rem; font-weight: 650; white-space: nowrap; }
.status-new, .status-draft, .status-active { border-color: rgba(34, 211, 238, .3); background: rgba(8, 145, 178, .14); color: rgb(165 243 252); }
.status-needs-info, .status-overdue, .status-urgent, .status-high { border-color: rgba(251, 113, 133, .35); background: rgba(127, 29, 29, .22); color: rgb(253 164 175); }
.status-quoted, .status-sent, .status-prospect, .status-medium { border-color: rgba(250, 204, 21, .35); background: rgba(113, 63, 18, .22); color: rgb(254 240 138); }
.status-scheduled, .status-in-progress { border-color: rgba(96, 165, 250, .35); background: rgba(30, 58, 138, .24); color: rgb(191 219 254); }
.status-completed, .status-accepted, .status-paid, .status-done, .status-low { border-color: rgba(52, 211, 153, .35); background: rgba(6, 78, 59, .2); color: rgb(167 243 208); }
.status-cancelled, .status-declined, .status-expired, .status-inactive { border-color: rgba(148, 163, 184, .28); background: rgba(51, 65, 85, .22); color: rgb(203 213 225); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-head h2 { font-size: 1rem; font-weight: 700; color: white; }
.section-head a { color: rgb(103 232 249); font-size: .85rem; }
.empty-state { border: 1px dashed rgb(51 65 85); background: rgba(2, 6, 23, .42); border-radius: 8px; padding: 2rem; text-align: center; }
table { border-collapse: collapse; }
th { font-weight: 650; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgb(148 163 184) 50%), linear-gradient(135deg, rgb(148 163 184) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.25rem; }
@media (max-width: 640px) {
  .panel { padding: 1rem; }
  .btn-primary, .btn-secondary { width: 100%; }
}
