:root {
  color-scheme: light;
  --bg: #f6f3ea;
  --ink: #16202a;
  --muted: #5d6772;
  --panel: rgba(255, 252, 245, 0.95);
  --line: rgba(22, 32, 42, 0.12);
  --accent: #0e6b61;
  --accent-strong: #094b44;
  --danger: #9b2c2c;
  --shadow: 0 24px 60px rgba(22, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(14, 107, 97, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(195, 115, 45, 0.14), transparent 30%),
    linear-gradient(180deg, #fbf7ef, var(--bg));
}

a {
  color: var(--accent-strong);
}

.auth-shell,
.dashboard-shell {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.auth-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.auth-card {
  width: min(440px, 100%);
  margin: 8vh auto 0;
  padding: 32px;
}

.auth-mark {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

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

.error {
  color: var(--danger);
  background: rgba(155, 44, 44, 0.08);
  border: 1px solid rgba(155, 44, 44, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form span,
th {
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  color: var(--ink);
}

button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(14, 107, 97, 0.22);
}

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.panel {
  padding: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}

.copy-link-button {
  min-width: 116px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 0.88rem;
  box-shadow: none;
}

.copy-link-button[data-copied="true"] {
  background: linear-gradient(135deg, #355c48, #1c3b31);
}

.copy-feedback {
  min-height: 1.4em;
  margin: 16px 0 0;
  color: var(--muted);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 0.92rem;
}

.copy-feedback[data-state="error"] {
  color: var(--danger);
}

@media (max-width: 700px) {
  .dashboard-header {
    align-items: start;
    flex-direction: column;
  }

  th:nth-child(3),
  td:nth-child(3),
  th:nth-child(4),
  td:nth-child(4) {
    display: none;
  }

  th:nth-child(5),
  td:nth-child(5) {
    display: table-cell;
  }
}
