:root {
  --bg: #f6f1e8;
  --surface: rgba(255, 255, 255, 0.85);
  --ink: #132a2c;
  --muted: #5e6f70;
  --brand: #0f7a6c;
  --brand-strong: #09584f;
  --accent: #e88b2f;
  --line: rgba(19, 42, 44, 0.12);
  --shadow: 0 16px 48px rgba(19, 42, 44, 0.08);
  font-family: "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(232, 139, 47, 0.24), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 122, 108, 0.24), transparent 35%),
    var(--bg);
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.auth-shell {
  max-width: 560px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.auth-panel {
  width: 100%;
}

.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  margin-bottom: 20px;
}

.hero.compact {
  padding-bottom: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-strong);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3.3rem);
  margin-bottom: 12px;
}

h2 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.lede,
.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.button-secondary {
  background: var(--accent);
}

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

.button-disabled {
  background: rgba(19, 42, 44, 0.16);
  color: rgba(19, 42, 44, 0.62);
  cursor: not-allowed;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 20px;
}

.panel {
  padding: 22px;
}

.notice {
  margin-bottom: 20px;
  color: var(--brand-strong);
}

.notice-inline {
  margin-bottom: 16px;
  color: var(--brand-strong);
}

.checklist {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.item {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(19, 42, 44, 0.05);
}

.item.done {
  background: rgba(15, 122, 108, 0.14);
}

.stack {
  display: grid;
  gap: 16px;
}

label span {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

.secret-box,
.wrap {
  overflow-wrap: anywhere;
}

.secret-box {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 42, 44, 0.05);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-ok {
  color: var(--brand-strong);
  font-weight: 700;
}

.status-warn {
  color: #9b5d1a;
  font-weight: 700;
}

.table-list {
  display: grid;
  gap: 10px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
}

.history-main,
.history-meta {
  display: grid;
  gap: 6px;
}

.history-meta {
  justify-items: end;
  color: var(--muted);
  font-size: 0.92rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 122, 108, 0.14);
  color: var(--brand-strong);
  font-weight: 700;
}

.row-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
}

.row-link span {
  display: grid;
  gap: 4px;
}

.transcript {
  display: grid;
  gap: 12px;
}

.turn {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.speaker {
  font-weight: 700;
}

.notes {
  white-space: pre-wrap;
  font: inherit;
  color: var(--ink);
}

h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .shell {
    padding: 20px 14px 40px;
  }

  .hero,
  .panel {
    padding: 18px;
  }

  .history-row {
    grid-template-columns: 1fr;
  }

  .history-meta {
    justify-items: start;
  }
}
