:root {
  --primary: #467b96;
  --accent: #f2b705;
  --bg: #f5f5f5;
  --text: #333;
  --muted: #8a8f98;
  --border: #e5e5e5;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

aside {
  background: #292d33;
  color: #fff;
  padding: 20px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--accent);
  color: #1f2429;
  font-weight: 800;
}

.brand strong { display:block; }

nav { display: grid; gap: 6px; }

nav a {
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a.active,
nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

main { padding: 24px; }

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: 26px; }
h2 { margin-bottom: 12px; font-size: 18px; }

.muted { color: var(--muted); }

.button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #252525;
  min-height: 36px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.card,
.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(41, 45, 51, 0.08);
}

.card { padding: 16px; }
.card strong { display: block; margin-top: 10px; font-size: 26px; }

.panel {
  padding: 16px;
  margin-bottom: 16px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 36px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}

textarea { min-height: 80px; resize: vertical; }

label.field {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #4a5058;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 11px 10px;
  text-align: left;
}

th {
  background: #fafafa;
  color: #6a7078;
  font-size: 12px;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  background: #fff3c2;
  color: #7a5a00;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.status.ok { background: #d8f1d3; color: #2d6a1f; }
.status.warn { background: #ffe1cf; color: #8a3b00; }
.status.info { background: #d6e7f5; color: #1f4a73; }

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  aside { position: sticky; top: 0; z-index: 10; }
  .grid, .row { grid-template-columns: 1fr; }
}
