/*
 * SPDX-FileCopyrightText: 2026 Arnold Bagabaldo
 * SPDX-License-Identifier: LicenseRef-GoOffice-Proprietary
 */

:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe7f0;
  --blue: #0365ac;
  --green: #0e7c66;
  --gold: #d99a21;
  --danger: #b42318;
  --bg: #eef6fb;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(238, 246, 251, 0.96), rgba(245, 250, 252, 0.92)),
    url("/assets/hero-sovereign-office-cloud.png") center / cover fixed;
}

.assistant-shell {
  width: min(1120px, calc(100% - 2rem));
  min-height: 100svh;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.assistant-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.brand img {
  width: clamp(150px, 18vw, 220px);
  height: auto;
}

.hero-card,
.assistant-card,
.metric-card {
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.hero-card {
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

p {
  max-width: 740px;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.metric-card {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 1rem;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metric-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.assistant-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2.3vw, 1.5rem);
}

.card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.success {
  color: #065f46;
  background: #d1fae5;
}

.status-pill.warning {
  color: #92400e;
  background: #fef3c7;
}

.status-pill.danger {
  color: #991b1b;
  background: #fee2e2;
}

.warning-box,
.key-confirm {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  color: #075985;
  background: #f0f9ff;
  line-height: 1.5;
}

.key-confirm {
  border-color: #fed7aa;
  color: #7c2d12;
  background: #fff7ed;
}

.key-confirm label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.key-field {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 850;
}

.key-field textarea {
  width: 100%;
  min-height: 180px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.is-hidden {
  display: none !important;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe7f0;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 180ms ease;
}

.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--blue);
  background: var(--white);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.ghost {
  border-color: var(--line);
}

.button.danger {
  color: var(--danger);
}

.button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.event-log {
  display: grid;
  gap: 0.45rem;
  max-height: 260px;
  overflow: auto;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.event-log strong {
  color: var(--ink);
}

@media (max-width: 820px) {
  .status-grid,
  .card-heading {
    grid-template-columns: 1fr;
  }

  .status-pill {
    justify-self: start;
  }

  .assistant-actions .button {
    flex: 1 1 100%;
  }
}
