:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #12161b;
  --surface-2: #171c22;
  --line: #2a3038;
  --text: #f4f1ea;
  --muted: #a6adb7;
  --gold: #d4ae62;
  --gold-soft: #f0d79a;
  --ok: #6fcf97;
  --warn: #f2c66d;
  --danger: #ff7b7b;
  --info: #8ab4ff;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, rgba(212,174,98,.08), transparent 28rem),
    linear-gradient(180deg, #0b0d10 0%, #0d1014 100%);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--gold-soft);
  text-underline-offset: 3px;
}

a:hover { color: #fff4d0; }

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

body > main > p:first-child,
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -.02em;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 760;
}

h2 {
  margin-top: 30px;
  font-size: 1.28rem;
}

h3 { margin-top: 22px; }

p { color: var(--text); }

small { color: var(--muted); }

section,
nav[aria-label="Operations"] {
  margin-top: 22px;
}

section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18,22,27,.88);
  box-shadow: var(--shadow);
}

nav[aria-label="Operations"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

nav[aria-label="Operations"] p {
  margin: 0;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23,28,34,.96), rgba(16,20,25,.96));
  color: var(--muted);
}

nav[aria-label="Operations"] a {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 760;
  text-decoration: none;
}

nav[aria-label="Operations"] a::after {
  content: " →";
  color: var(--gold);
}

#work-summary p {
  margin: 10px 0 0;
  color: var(--muted);
}

#work-summary strong {
  color: var(--gold-soft);
  font-size: 1.05rem;
}

form {
  margin: 14px 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .92rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1116;
  color: var(--text);
  padding: 10px 12px;
}

textarea { resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(212,174,98,.35);
  border-color: var(--gold);
}

button {
  border: 1px solid #7d6638;
  border-radius: 10px;
  background: linear-gradient(180deg, #d4ae62, #b88e42);
  color: #111;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

button:hover { filter: brightness(1.06); }

form[action="/api/auth/sign-out"] {
  margin-top: 28px;
}

form[action="/api/auth/sign-out"] button {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

th, td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  color: var(--gold-soft);
  background: var(--surface-2);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

td { color: #e8e5de; }

tr:last-child td { border-bottom: 0; }

[role="alert"] {
  padding: 12px 14px;
  border: 1px solid rgba(255,123,123,.38);
  border-radius: 10px;
  background: rgba(255,123,123,.08);
  color: #ffc2c2;
}

[role="status"] {
  padding: 12px 14px;
  border: 1px solid rgba(111,207,151,.35);
  border-radius: 10px;
  background: rgba(111,207,151,.08);
  color: #bff0d2;
}

body > main > p:nth-of-type(2) {
  color: var(--muted);
}

@media (max-width: 760px) {
  main {
    width: min(100% - 22px, 1180px);
    padding-top: 24px;
  }

  nav[aria-label="Operations"] {
    grid-template-columns: 1fr;
  }

  nav[aria-label="Operations"] p {
    min-height: auto;
  }

  section {
    padding: 17px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
