* { box-sizing: border-box; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.card { border: 1px solid rgb(226 232 240); border-radius: 8px; background: white; box-shadow: 0 10px 30px rgb(15 23 42 / 0.05); }
.dark .card { border-color: rgb(30 41 59); background: rgb(15 23 42); }
.nav-link { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: 8px; color: rgb(71 85 105); font-weight: 600; }
.nav-link:hover { background: rgb(241 245 249); color: rgb(15 23 42); }
.dark .nav-link { color: rgb(203 213 225); }
.dark .nav-link:hover { background: rgb(30 41 59); color: white; }
.nav-active { background: rgb(236 253 245); color: rgb(4 120 87); }
.dark .nav-active { background: rgb(6 78 59 / .45); color: rgb(110 231 183); }
.mobile-nav { display: flex; min-height: 64px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; }
.btn-primary, .btn-secondary, .btn-danger, .icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 8px; font-weight: 700; transition: .15s ease; white-space: nowrap; }
.btn-primary { min-height: 40px; padding: .6rem 1rem; background: rgb(5 150 105); color: white; }
.btn-primary:hover { background: rgb(4 120 87); }
.btn-secondary { min-height: 40px; padding: .55rem .85rem; border: 1px solid rgb(226 232 240); background: white; color: rgb(51 65 85); }
.btn-secondary:hover { background: rgb(248 250 252); }
.btn-danger { min-height: 36px; padding: .45rem .75rem; background: rgb(254 242 242); color: rgb(185 28 28); }
.icon-btn { width: 40px; height: 40px; border: 1px solid rgb(226 232 240); background: white; color: rgb(51 65 85); }
.dark .btn-secondary, .dark .icon-btn { border-color: rgb(51 65 85); background: rgb(15 23 42); color: rgb(226 232 240); }
.input, .select, .textarea { width: 100%; border-radius: 8px; border: 1px solid rgb(203 213 225); background: white; padding: .62rem .75rem; color: rgb(15 23 42); outline: none; }
.textarea { min-height: 90px; }
.input:focus, .select:focus, .textarea:focus { border-color: rgb(5 150 105); box-shadow: 0 0 0 3px rgb(16 185 129 / .15); }
.dark .input, .dark .select, .dark .textarea { border-color: rgb(51 65 85); background: rgb(2 6 23); color: white; }
.label { display: block; margin-bottom: .35rem; font-size: .83rem; font-weight: 700; color: rgb(71 85 105); }
.dark .label { color: rgb(203 213 225); }
.table-wrap { overflow-x: auto; border: 1px solid rgb(226 232 240); border-radius: 8px; background: white; }
.dark .table-wrap { border-color: rgb(30 41 59); background: rgb(15 23 42); }
table { width: 100%; border-collapse: collapse; }
th { background: rgb(248 250 252); color: rgb(71 85 105); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
td, th { padding: .85rem 1rem; border-bottom: 1px solid rgb(226 232 240); }
tr:last-child td { border-bottom: 0; }
.dark th { background: rgb(30 41 59); color: rgb(203 213 225); }
.dark td, .dark th { border-color: rgb(30 41 59); }
.progress { height: 10px; overflow: hidden; border-radius: 999px; background: rgb(226 232 240); }
.progress > span { display: block; height: 100%; border-radius: 999px; background: rgb(5 150 105); }
@media (max-width: 760px) {
  .responsive-table table, .responsive-table thead, .responsive-table tbody, .responsive-table th, .responsive-table td, .responsive-table tr { display: block; }
  .responsive-table thead { display: none; }
  .responsive-table tr { padding: .8rem; border-bottom: 1px solid rgb(226 232 240); }
  .responsive-table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .35rem 0; }
  .responsive-table td::before { content: attr(data-label); color: rgb(100 116 139); font-weight: 700; }
}
