:root {
  --bg: #f6f3ee;
  --panel: rgba(255,255,255,0.9);
  --panel-border: rgba(28, 36, 44, 0.08);
  --ink: #1b232b;
  --muted: #5b6b78;
  --accent: #0d8f87;
  --accent-2: #f08b39;
  --danger: #c44747;
  --ok: #2a8f52;
  --shadow: 0 20px 60px rgba(17, 28, 39, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(240,139,57,0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(13,143,135,0.15), transparent 30%),
    linear-gradient(180deg, #fbf8f3 0%, #f2efe7 100%);
  color: var(--ink);
}
a { color: inherit; }
button, input, textarea, select {
  font: inherit;
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}
.sidebar {
  padding: 28px 22px;
  background: rgba(255,255,255,0.55);
  border-right: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
}
.brand {
  margin-bottom: 28px;
}
.brand h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
}
.brand p {
  color: var(--muted);
  margin: 10px 0 0;
}
.nav-link {
  display: block;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  transition: 0.2s ease;
}
.nav-link.active,
.nav-link:hover {
  color: var(--ink);
  background: rgba(13,143,135,0.09);
}
.content {
  padding: 28px;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.header h2 { margin: 0; font-size: 32px; }
.header p { margin: 8px 0 0; color: var(--muted); }
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.card-value {
  font-size: 36px;
  font-weight: 700;
  margin: 10px 0 0;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.input, .textarea, .select {
  width: 100%;
  border: 1px solid rgba(27,35,43,0.12);
  background: rgba(255,255,255,0.92);
  padding: 12px 14px;
  border-radius: 14px;
  outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(13,143,135,0.6);
  box-shadow: 0 0 0 4px rgba(13,143,135,0.12);
}
.button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  background: var(--accent);
  color: white;
  font-weight: 600;
}
.button.secondary {
  background: rgba(27,35,43,0.08);
  color: var(--ink);
}
.button.warn { background: var(--accent-2); }
.button.danger { background: var(--danger); }
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(27,35,43,0.08);
  vertical-align: top;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.open { background: rgba(240,139,57,0.18); color: #8a4f16; }
.badge.in_review { background: rgba(13,143,135,0.15); color: #0b625d; }
.badge.resolved { background: rgba(42,143,82,0.16); color: #216940; }
.badge.rejected { background: rgba(196,71,71,0.16); color: #7c3030; }
.muted { color: var(--muted); }
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: min(460px, 100%);
}
.form-grid {
  display: grid;
  gap: 14px;
}
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}
.list {
  display: grid;
  gap: 12px;
}
.list-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(27,35,43,0.08);
}
pre.code {
  white-space: pre-wrap;
  word-break: break-word;
  background: #10161d;
  color: #edf2f7;
  border-radius: 18px;
  padding: 14px;
  overflow: auto;
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--panel-border); }
  .two-col { grid-template-columns: 1fr; }
}
