:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #627080;
  --line: #dfe5ea;
  --panel: #ffffff;
  --soft: #f4f7f9;
  --brand: #00875a;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--soft); }
a { color: inherit; text-decoration: none; }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
.topbar { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin-bottom: 24px; }
.brand { font-size: 24px; font-weight: 800; }
.nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 34px rgba(18, 32, 45, .08); }
.login { width: min(420px, calc(100% - 32px)); margin: 8vh auto; padding: 26px; }
.content { padding: 22px; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.button.danger { color: #fff; border-color: var(--danger); background: var(--danger); }
.muted { color: var(--muted); }
.alert { padding: 12px 14px; border: 1px solid #b7e3d0; background: #ecf8f2; color: #006f4a; border-radius: 8px; margin-bottom: 14px; }
.error { border-color: #fecaca; background: #fff1f2; color: #9f1239; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 13px; color: var(--muted); }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; }
input, textarea, select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
.full { grid-column: 1 / -1; }
.check-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.check-row label { display: flex; grid-template-columns: none; align-items: center; gap: 8px; }
.check-row input { width: auto; min-height: auto; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 6px 0; }
}
