:root {
  --bg: #10151c;
  --panel: #1a222d;
  --border: #2a3544;
  --text: #e8eef6;
  --muted: #8b9bb0;
  --accent: #2f9e6b;
  --danger: #e85d5d;
  font-family: "Segoe UI", Candara, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(47, 158, 107, 0.18), transparent 55%),
    linear-gradient(180deg, #121820, var(--bg));
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--danger); min-height: 1.2em; }

.login-panel {
  max-width: 380px;
  margin: 12vh auto;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.login-panel h1 { margin: 0 0 4px; font-size: 22px; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  margin: 12px 0;
}
input, textarea, select, button {
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #111820;
  color: var(--text);
  padding: 10px 12px;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
textarea { resize: vertical; }
button {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
button.ghost { background: #243041; }
button.small { padding: 6px 10px; font-size: 12px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(18, 24, 32, 0.85);
  backdrop-filter: blur(8px);
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 18px;
  padding: 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

.panel-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px 20px;
}
.panel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.panel-card h2 { margin: 0; font-size: 18px; }
.subhead {
  margin: 22px 0 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.office-list, .release-list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #121820;
}
.row .meta { font-size: 12px; color: var(--muted); }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(47, 158, 107, 0.2);
  color: #7ddeb3;
  align-self: start;
}
.badge-muted {
  background: rgba(139, 155, 176, 0.18);
  color: var(--muted);
}
.links { font-size: 12px; }
.links a { color: #9fd6b8; }
.key-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.access-key {
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  background: #0d1218;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
