:root {
  --ink: #0a0d10;
  --slate: #61666e;
  --line: #e2e3e5;
  --paper: #f5f5f4;
  --panel: #ffffff;
  --hair: rgba(255,255,255,0.10);
  --hair-strong: rgba(255,255,255,0.16);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Inter', -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

h1, h2 {
  font-family: 'Sora', sans-serif;
  margin: 0;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- Login screen ---------- */

.center-screen {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}

.login-card {
  background: var(--panel);
  border-radius: 4px;
  padding: 52px 46px;
  text-align: center;
  max-width: 360px;
}

.login-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
}

.login-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-card h1 {
  font-size: 19px;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.login-card p {
  color: var(--slate);
  font-size: 13.5px;
  margin: 0 0 28px;
}

.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 11px 24px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* ---------- App shell ---------- */

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

.sidebar {
  background: var(--ink);
  color: #d8d9db;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--hair);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 22px 20px;
  border-bottom: 1px solid var(--hair);
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: #fff;
  letter-spacing: 0.3px;
}

.brand-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #7d818a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.report-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
}

.report-list-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6c7078;
  padding: 0 10px 8px;
}

.report-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 3px;
  padding: 11px 12px;
  margin-bottom: 1px;
  color: #b6b9bf;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.report-item:hover {
  background: var(--hair);
  color: #fff;
}

.report-item.active {
  background: var(--hair-strong);
  border-left-color: #fff;
  color: #fff;
}

.report-item .r-name {
  font-size: 13.5px;
  font-weight: 500;
  display: block;
}

.report-item .r-desc {
  font-size: 11.5px;
  color: #83878e;
  display: block;
  margin-top: 2px;
  line-height: 1.4;
}

.report-item.active .r-desc {
  color: #b6b9bf;
}

.sidebar-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--hair);
}

.user-box {
  font-size: 12px;
  color: #9fa3aa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-box a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #6c7078;
}

/* ---------- Main area ---------- */

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 24px 30px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.main-header h1 {
  font-size: 18px;
  letter-spacing: 0.1px;
}

.report-desc {
  font-size: 13px;
  color: var(--slate);
  margin: 4px 0 0;
}

.status-msg {
  font-size: 12px;
  color: var(--slate);
  font-family: 'IBM Plex Mono', monospace;
}

.report-container {
  flex: 1;
  margin: 20px 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: none;
}

.report-container.visible {
  display: block;
}

.empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 14px;
}
