:root {
  --wp-teal: #0d5c63;
  --wp-teal-600: #0a4a50;
  --wp-teal-100: #d7eef0;
  --wp-terracotta: #c75b39;
  --wp-gold: #d4a017;
  --wp-ink: #12202a;
  --wp-muted: #5b6b74;
  --wp-line: #e6dfd4;
  --wp-bg: #f4f0e8;
  --wp-card: #fffdf9;
  --wp-shadow: 0 10px 30px rgba(18, 32, 42, 0.08);
  --wp-radius: 16px;
  --tap: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--wp-ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #dceeee 0%, transparent 50%),
    var(--wp-bg);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--wp-teal);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--wp-line);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.wordmark {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(100%, 280px);
}

.login-wordmark {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 1.15rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--wp-teal-600);
  font-weight: 650;
  text-decoration: none;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--wp-teal-100);
}

.nav-logout {
  display: inline;
  margin: 0;
}

.nav-logout button,
button.danger {
  min-height: var(--tap);
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--wp-terracotta);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.site-main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.75rem 1.15rem 4rem;
}

.site-main.wide {
  max-width: 64rem;
}

.hero {
  background: var(--wp-card);
  border: 1px solid var(--wp-line);
  border-radius: 24px;
  box-shadow: var(--wp-shadow);
  padding: 1.6rem 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
}

.tagline,
.panel h2,
h1,
h2 {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
}

.tagline {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 650;
  color: var(--wp-teal);
  letter-spacing: -0.015em;
}

.req {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #fde8e2;
  color: var(--wp-terracotta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.rule {
  margin: 0.2rem 0 0.45rem;
  color: var(--wp-muted);
  font-size: 0.88rem;
}

.lede {
  margin: 0 0 1rem;
  line-height: 1.55;
  color: var(--wp-muted);
}

.meta {
  margin: 0;
  font-size: 0.95rem;
}

.meta a {
  color: var(--wp-teal);
  font-weight: 650;
}

.auth-card {
  background: var(--wp-card);
  border: 1px solid var(--wp-line);
  border-radius: 24px;
  box-shadow: var(--wp-shadow);
  padding: 1.5rem 1.25rem 1.4rem;
}

.auth-form label,
.field label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-weight: 650;
}

.auth-form input,
.auth-form select,
.auth-form textarea,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.65rem 0.75rem;
  border: 1px solid #d5cdc1;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.auth-form input:focus,
.field input:focus,
.field select:focus {
  outline: 3px solid var(--wp-teal-100);
  border-color: var(--wp-teal);
}

.auth-form button,
.primary,
.wizard-actions button {
  margin-top: 0.35rem;
  min-height: var(--tap);
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 12px;
  background: var(--wp-teal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-form button:hover,
.primary:hover {
  background: var(--wp-teal-600);
}

.auth-form button:disabled,
.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-form .errorlist,
.field-error {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--wp-terracotta);
  font-size: 0.92rem;
}

.crumb {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--wp-muted);
}

.crumb a {
  color: var(--wp-teal);
  text-decoration: none;
  font-weight: 650;
}

.panel {
  background: var(--wp-card);
  border: 1px solid var(--wp-line);
  border-radius: var(--wp-radius);
  box-shadow: var(--wp-shadow);
  padding: 1.15rem 1.15rem 1.25rem;
  margin: 0 0 1.15rem;
}

.panel h2 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  color: var(--wp-teal);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.85rem;
  padding: 0;
  list-style: none;
}

.card-grid a,
.action-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 7.5rem;
  padding: 1.1rem 1rem;
  background: var(--wp-card);
  border: 1px solid var(--wp-line);
  border-radius: var(--wp-radius);
  box-shadow: var(--wp-shadow);
  color: var(--wp-ink);
  text-decoration: none;
}

.card-grid a:hover,
.action-card:hover {
  border-color: var(--wp-teal);
  transform: translateY(-1px);
}

.card-grid strong {
  font-size: 1.05rem;
}

.card-grid span,
.action-card span {
  color: var(--wp-teal);
  font-weight: 750;
}

.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--wp-card);
  border-radius: 12px;
  overflow: hidden;
}

.data th,
.data td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--wp-line);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  min-height: var(--tap);
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
}

.flash {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.flash li {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: var(--wp-teal-100);
}

.flash-error {
  background: #fde8e2;
  color: var(--wp-terracotta);
}

.wizard-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.progress {
  height: 8px;
  background: #e7e1d7;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 1rem;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--wp-teal), #17838c);
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.wizard-actions button.secondary,
.secondary {
  background: #fff;
  color: var(--wp-teal);
  border: 1.5px solid var(--wp-teal);
}

.field {
  margin: 0.85rem 0;
}

.readonly-card,
.confirm-card {
  padding: 0.85rem 0.9rem;
  background: #f7fbfb;
  border-left: 4px solid var(--wp-gold);
  border-radius: 10px;
}

.confirm-card {
  border: 1px solid var(--wp-line);
  border-left: 4px solid var(--wp-teal);
  margin-top: 0.6rem;
}

.user-chip {
  font-size: 0.85rem;
  color: var(--wp-muted);
  padding-right: 0.4rem;
}

.empty-state {
  padding: 1.2rem;
  background: var(--wp-card);
  border-radius: var(--wp-radius);
  border: 1px dashed #d2c9bb;
  color: var(--wp-muted);
}

@media (max-width: 640px) {
  .site-main {
    padding-top: 1.2rem;
  }

  .tagline {
    font-size: 1.4rem;
  }
}

@media print {
  .site-nav,
  .no-print,
  .nav-logout,
  .flash {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
