:root {
  --brand-azure: #2a5a84;
  --brand-azure-dark: #1f4668;
  --brand-terracotta: #c95b36;
  --brand-surface: #f9f6f0;
  --brand-cream: #fdfbf7;
  --brand-border: #e8e2d8;
  --font: 'Century Gothic', CenturyGothic, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: #1e293b;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(42, 90, 132, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 91, 54, 0.08), transparent),
    var(--brand-surface);
}

.shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.top {
  margin-bottom: 1.5rem;
}

.brand {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-azure);
}

.sub {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: #64748b;
}

.card {
  background: var(--brand-cream);
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px -12px rgba(42, 90, 132, 0.14);
}

.login-card {
  max-width: 420px;
  padding: 1.5rem;
}

.login-card h1,
.inbox-toolbar h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--brand-azure-dark);
}

.lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #64748b;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.field input {
  min-height: 2.6rem;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
}

.btn-primary,
.btn-ghost {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
}

.btn-primary {
  color: #fff;
  background: var(--brand-azure);
  border: none;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--brand-azure-dark);
}

.btn-ghost {
  color: var(--brand-azure);
  background: transparent;
  border: 1px solid var(--brand-border);
}

.error {
  color: #b91c1c;
  font-size: 0.85rem;
}

.inbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab {
  font: inherit;
  cursor: pointer;
  min-height: 2.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  background: transparent;
  color: var(--brand-azure);
  font-weight: 700;
  font-size: 0.85rem;
}

.tab.is-active {
  background: var(--brand-azure);
  border-color: var(--brand-azure);
  color: #fff;
}

.inbox-actions {
  display: flex;
  gap: 0.5rem;
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1rem;
}

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

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list button {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  font: inherit;
  cursor: pointer;
  background: var(--brand-cream);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
}

.list button.is-active {
  border-color: var(--brand-azure);
  box-shadow: 0 0 0 2px rgba(42, 90, 132, 0.15);
}

.list-kind {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-terracotta);
  margin-bottom: 0.25rem;
}

.list-kind.is-alert {
  color: #b91c1c;
}

.list-kind.is-mod {
  color: var(--brand-azure);
}

.list-title {
  margin: 0;
  font-size: 0.95rem;
  color: var(--brand-azure-dark);
}

.list-time {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.detail {
  padding: 1.25rem;
  min-height: 200px;
}

.detail-kind {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-terracotta);
}

.detail h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--brand-azure-dark);
}

.detail-meta {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
}

.detail-body {
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.detail-raw {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.7rem;
  overflow: auto;
  background: #f1efe8;
  border-radius: 8px;
  color: #475569;
}

.empty {
  color: #64748b;
}
