:root {
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: #17212b;
  background: #f3f6f8;
  line-height: 1.45;
}

* { box-sizing: border-box; }

body { margin: 0; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #102b3f;
  color: white;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.brand { font-size: 1.35rem; font-weight: 750; letter-spacing: .02em; }
.subtitle { opacity: .78; font-size: .92rem; }
.session { display: flex; gap: 1rem; align-items: center; }

main { max-width: 1500px; margin: 0 auto; padding: 1.5rem; }

.panel {
  background: white;
  border: 1px solid #d9e2e8;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 5px 18px rgba(16,43,63,.06);
}

.narrow { max-width: 480px; margin: 3rem auto; }
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

h1, h2, h3 { margin-top: 0; }
h2 { margin-bottom: .25rem; }
h3 { margin-top: 1.1rem; margin-bottom: .45rem; }
p { color: #526371; }

label {
  display: block;
  font-weight: 650;
  margin-bottom: .9rem;
}

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: .35rem;
  border: 1px solid #b8c6d0;
  border-radius: 7px;
  padding: .7rem .75rem;
  font: inherit;
  background: white;
}

textarea, pre { font-family: Consolas, ui-monospace, monospace; }

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(25,116,171,.16);
  border-color: #1974ab;
}

button {
  border: 0;
  border-radius: 7px;
  padding: .7rem 1rem;
  background: #156b9b;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button:hover { filter: brightness(.94); }
button.secondary { background: #e5edf2; color: #173247; }
button.danger { background: #a93636; }
button.approve { background: #247a43; }

.hidden { display: none !important; }
.hint { color: #617483; font-size: .9rem; }
.message { min-height: 1.4rem; margin-top: .7rem; white-space: pre-wrap; }
.message.error { color: #a12626; }
.message.success { color: #247a43; }

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.request-list {
  display: grid;
  gap: .65rem;
  max-height: 760px;
  overflow: auto;
  padding-right: .25rem;
}

.request-card {
  border: 1px solid #dbe4ea;
  border-left: 5px solid #6a8799;
  border-radius: 8px;
  padding: .85rem;
  cursor: pointer;
  background: #fbfcfd;
}

.request-card:hover { border-color: #85a6ba; }
.request-card strong { display: block; }
.request-card .meta { color: #617483; font-size: .86rem; margin-top: .35rem; }

.status-1 { border-left-color: #778899; }
.status-2 { border-left-color: #146fa4; }
.status-3 { border-left-color: #d58a17; }
.status-4 { border-left-color: #875fbd; }
.status-5 { border-left-color: #26804a; }
.status-6 { border-left-color: #b23b3b; }
.status-7 { border-left-color: #145c35; }
.status-8 { border-left-color: #666; }

#details-panel { margin-top: 1.25rem; }

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f7f9;
  border: 1px solid #dce5eb;
  border-radius: 8px;
  padding: .85rem;
  max-height: 440px;
  overflow: auto;
}

.governance {
  display: grid;
  gap: .5rem;
  background: #f7f9fa;
  border-radius: 8px;
  padding: .85rem;
}

.governance-row {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: .75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

@media (max-width: 950px) {
  .grid.two { grid-template-columns: 1fr; }
  .topbar { padding: 1rem; }
  main { padding: 1rem; }
}
