* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  padding: 1rem;
  color: #24292e;
  font-size: 0.85rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: #24292e;
  line-height: 1.2;
}
h1 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #d1d5db;
}
h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
p {
  margin-bottom: 0.75rem;
}
a {
  color: #24292e;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover {
  color: #2c3338;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e1e4e8;
  padding: 1.5rem;
}
.container-sm {
  max-width: 600px;
}
.container-lg {
  max-width: 1200px;
}
header {
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e1e4e8;
  margin-bottom: 1rem;
}
.section {
  background: #ffffff;
  padding: 1rem;
  border: 1px solid #e1e4e8;
  margin-bottom: 0.75rem;
}
.loading {
  text-align: center;
  color: #586069;
  padding: 1.5rem;
  font-size: 0.9rem;
}
nav {
  background: #ffffff;
  border-bottom: 1px solid #e1e4e8;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
nav .nav-brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: #24292e;
}
nav .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
nav .nav-links a {
  color: #24292e;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  transition: background 0.15s;
  font-size: 0.85rem;
}
nav .nav-links a:hover {
  background: #f6f8fa;
}
nav .nav-links a.active {
  background: #24292e;
  color: white;
}
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  nav .nav-links {
    width: 100%;
  }
}
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #24292e;
  color: white;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.btn:hover {
  background: #2c3338;
}
.btn:active {
  background: #1b1f23;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-secondary {
  background: #6a737d;
  color: white;
}
.btn-secondary:hover {
  background: #586069;
}
.btn-danger {
  background: #ef4444;
}
.btn-danger:hover {
  background: #cb2431;
}
.btn-accent {
  background: #3b82f6;
}
.btn-accent:hover {
  background: #2563eb;
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}
.btn-block {
  width: 100%;
  display: block;
}
.form-group {
  margin-bottom: 0.75rem;
}
.form-label {
  display: block;
  margin-bottom: 0.3rem;
  color: #24292e;
  font-weight: 500;
  font-size: 0.85rem;
}
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  transition: border-color 0.15s;
}
.form-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #586069;
}
.form-input:disabled,
input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="url"]:disabled,
input[type="number"]:disabled,
textarea:disabled,
select:disabled {
  background: #f6f8fa;
  cursor: not-allowed;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 0.25rem;
}
.form-error {
  background: #fee;
  color: #c33;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  border-left: 3px solid #c33;
}
.form-success {
  background: #efe;
  color: #3b82f6;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  border-left: 3px solid #3b82f6;
}
.card {
  background: #24292e;
  color: white;
  padding: 1rem;
  border: 1px solid #d1d5db;
  text-decoration: none;
  transition: background 0.15s;
  display: block;
}
.card:hover {
  background: #2c3338;
}
.card .card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.card .card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.card .card-description {
  font-size: 0.8rem;
  opacity: 0.85;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.info-card {
  background: #f6f8fa;
  padding: 1rem;
  border-left: 3px solid #24292e;
  margin-bottom: 1.5rem;
}
.info-card h2,
.info-card h3 {
  color: #24292e;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  border-bottom: none;
}
.info-card p {
  color: #586069;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.info-card p:last-child {
  margin-bottom: 0;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal .modal-content {
  background: #ffffff;
  padding: 1.5rem;
  border: 1px solid #d1d5db;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal .modal-header {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #24292e;
}
.modal .modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.table-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.table-list .table-row {
  background: #ffffff;
  border-bottom: 1px solid #e1e4e8;
  padding: 0.4rem 0.75rem;
  transition: background-color 0.15s;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.table-list .table-row:hover {
  background-color: #f6f8fa;
}
.table-list .table-row:hover .row-actions {
  opacity: 1;
}
.table-list .table-row .row-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #d1d5db;
  padding: 0.1rem;
  transition: color 0.15s;
}
.table-list .table-row .row-icon:hover {
  color: #fbbf24;
}
.table-list .table-row .row-icon.active {
  color: #fbbf24;
  opacity: 1;
}
.table-list .table-row .row-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.table-list .table-row .row-content .row-title {
  font-weight: 400;
  color: #24292e;
  font-size: 0.85rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table-list .table-row .row-meta {
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
  align-items: center;
}
.table-list .table-row .row-actions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.table-list .table-row .row-actions button {
  background: none;
  border: none;
  cursor: pointer;
  color: #586069;
  font-size: 0.8rem;
  padding: 0.15rem 0.3rem;
  transition: all 0.15s;
}
.table-list .table-row .row-actions button:hover {
  background: #e1e4e8;
  color: #24292e;
}
.table-list .table-row .row-actions button.delete:hover {
  background: #fee;
  color: #c33;
}
.badge {
  background: #e1e4e8;
  color: #586069;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 400;
  white-space: nowrap;
}
.mt-0 {
  margin-top: 0 !important;
}
.mt-sm {
  margin-top: 0.5rem !important;
}
.mt-md {
  margin-top: 0.75rem !important;
}
.mt-lg {
  margin-top: 1rem !important;
}
.mt-xl {
  margin-top: 1.5rem !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-sm {
  margin-bottom: 0.5rem !important;
}
.mb-md {
  margin-bottom: 0.75rem !important;
}
.mb-lg {
  margin-bottom: 1rem !important;
}
.mb-xl {
  margin-bottom: 1.5rem !important;
}
.p-0 {
  padding: 0 !important;
}
.p-sm {
  padding: 0.5rem !important;
}
.p-md {
  padding: 0.75rem !important;
}
.p-lg {
  padding: 1rem !important;
}
.p-xl {
  padding: 1.5rem !important;
}
.d-none {
  display: none !important;
}
.d-block {
  display: block !important;
}
.d-flex {
  display: flex !important;
}
.d-grid {
  display: grid !important;
}
.flex-row {
  flex-direction: row;
}
.flex-column {
  flex-direction: column;
}
.justify-start {
  justify-content: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.align-start {
  align-items: flex-start;
}
.align-center {
  align-items: center;
}
.align-end {
  align-items: flex-end;
}
.gap-sm {
  gap: 0.5rem;
}
.gap-md {
  gap: 0.75rem;
}
.gap-lg {
  gap: 1rem;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-primary {
  color: #24292e;
}
.text-secondary {
  color: #586069;
}
.text-muted {
  color: #6a737d;
}
.font-bold {
  font-weight: 600;
}
.font-normal {
  font-weight: 400;
}
.w-full {
  width: 100%;
}
.w-auto {
  width: auto;
}
