:root {
  --bg: #f4f5f9;
  --panel: #ffffff;
  --ink: #10212b;
  --muted: #5f7281;
  --line: #d5dce3;
  --brand: #0b546e;
  --brand-2: #0f7a88;
  --warn: #7e2a12;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 10%, #fef9f2 0, #eef3f8 38%, #e8eef4 100%);
}

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

.sidebar {
  background: linear-gradient(180deg, #093447 0%, #0f2637 100%);
  color: #f5fbff;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand {
  margin-bottom: 20px;
}

.brand h1 {
  margin: 0;
  font-size: 1.05rem;
}

.brand p {
  margin: 6px 0 0;
  color: #b8d3e3;
  font-size: 0.85rem;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav a {
  color: #c9deea;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.93rem;
}

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

.content {
  padding: 22px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

h2,
h3,
h4 {
  margin-top: 0;
}

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

.grid {
  display: grid;
  gap: 12px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fdfefe;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--muted);
}

.stat .value {
  margin-top: 4px;
  font-size: 1.4rem;
  font-weight: 700;
}

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

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 8px;
  font-size: 0.92rem;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c7d3dd;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

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

form.inline {
  display: grid;
  gap: 8px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--brand);
  color: white;
  cursor: pointer;
}

button.secondary {
  background: #edf2f6;
  color: #18303e;
  border-color: #cfd8df;
}

button.warn {
  background: #fff1ed;
  color: var(--warn);
  border-color: #f2c7bb;
}

.code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  background: #f2f6f9;
  border-radius: 6px;
  padding: 2px 6px;
}

.notice {
  border: 1px solid #d7e2eb;
  background: #f5fbff;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}
