:root {
  --access-canvas: #f3f0e9;
  --access-canvas-2: #ebe7dd;
  --access-paper: #fffdf8;
  --access-paper-2: #f7f4ed;
  --access-ink: #16211d;
  --access-muted: #66716b;
  --access-line: rgba(22, 33, 29, 0.13);
  --access-line-strong: rgba(22, 33, 29, 0.22);
  --access-forest: #1d6258;
  --access-forest-dark: #154a43;
  --access-forest-soft: #e5f0ed;
  --access-brass: #ad7442;
  --access-danger: #a84f3c;
  --access-shadow: 0 24px 70px rgba(25, 38, 33, 0.1);
  --access-serif: "Spectral", Georgia, serif;
  --access-sans: "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --access-canvas: #0e1512;
  --access-canvas-2: #121b18;
  --access-paper: #17211e;
  --access-paper-2: #1d2925;
  --access-ink: #edf2ee;
  --access-muted: #a5b1ab;
  --access-line: rgba(232, 240, 235, 0.13);
  --access-line-strong: rgba(232, 240, 235, 0.23);
  --access-forest: #68bfae;
  --access-forest-dark: #8bd2c4;
  --access-forest-soft: #1c3832;
  --access-brass: #d3a16b;
  --access-danger: #e1846e;
  --access-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

body.access-body,
body.customer-entry {
  margin: 0;
  min-height: 100vh;
  color: var(--access-ink);
  font-family: var(--access-sans);
  background:
    radial-gradient(circle at 8% -8%, color-mix(in srgb, var(--access-brass) 14%, transparent), transparent 31rem),
    radial-gradient(circle at 94% 92%, color-mix(in srgb, var(--access-forest) 9%, transparent), transparent 34rem),
    var(--access-canvas);
  transition: color 180ms ease, background-color 180ms ease;
}

a { color: var(--access-forest); }

.access-page {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
}

.access-page-auth {
  width: min(560px, calc(100% - 32px));
  display: grid;
  min-height: 100vh;
  align-content: center;
  padding-block: clamp(20px, 5vh, 56px);
}

.access-card,
.public-intro {
  border: 1px solid var(--access-line);
  background: color-mix(in srgb, var(--access-paper) 96%, transparent);
  box-shadow: var(--access-shadow);
}

.access-card {
  padding: clamp(24px, 5vw, 42px);
  border-radius: 24px;
  animation: access-rise 420ms cubic-bezier(.2, .8, .2, 1) both;
}

.access-brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.access-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--access-ink);
  text-decoration: none;
  font: 700 1.05rem/1 var(--access-serif);
  letter-spacing: 0.015em;
}

.access-brand img { width: 34px; height: 34px; }

.access-eyebrow {
  display: block;
  margin: 34px 0 12px;
  color: var(--access-brass);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-card h1,
.public-intro h1 {
  margin: 0;
  max-width: 17ch;
  color: var(--access-ink);
  font-family: var(--access-serif);
  font-size: clamp(2.7rem, 5.7vw, 5.8rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.access-card h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }

.access-lead {
  margin: 20px 0 0;
  max-width: 58ch;
  color: var(--access-muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.access-form { display: grid; gap: 17px; margin-top: 28px; }
.access-field { display: grid; gap: 8px; }

.access-field > span,
.access-field > label {
  color: var(--access-ink);
  font-size: 0.82rem;
  font-weight: 760;
}

.access-field input,
.access-field textarea {
  width: 100%;
  border: 1px solid var(--access-line-strong);
  border-radius: 13px;
  padding: 13px 14px;
  color: var(--access-ink);
  background: var(--access-paper-2);
  font: inherit;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.access-field textarea { min-height: 92px; resize: vertical; }

.access-password-control {
  position: relative;
  width: 100%;
}

.access-password-control input { padding-right: 58px; }

.access-password-control .password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
}

.access-field input:focus,
.access-field textarea:focus {
  outline: none;
  border-color: var(--access-forest);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--access-forest) 17%, transparent);
  background: var(--access-paper);
}

.access-card [hidden] { display: none !important; }

.access-form-help {
  margin-top: -8px;
  text-align: right;
  font-size: 0.9rem;
}

.access-form-help a {
  color: var(--access-forest-dark);
  font-weight: 760;
  text-underline-offset: 3px;
}

.access-inline-links,
.updates-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
}

.access-inline-links {
  margin-bottom: -8px;
}

.access-inline-links a,
.updates-navigation a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 4px;
  color: var(--access-forest-dark);
  font-size: 0.93rem;
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.access-password-rules {
  margin-top: 22px;
  border: 1px solid var(--access-line);
  border-radius: 13px;
  padding: 12px 14px;
  color: var(--access-muted);
  background: var(--access-paper-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.access-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--access-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.access-check input { margin-top: 3px; accent-color: var(--access-forest); }

.access-button,
.access-link-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 12px 18px;
  color: #fff;
  background: #1d6258;
  font: 760 0.96rem/1 var(--access-sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(29, 98, 88, 0.18);
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.access-button:hover,
.access-link-button:hover {
  background: #154a43;
  box-shadow: 0 13px 28px rgba(29, 98, 88, 0.24);
  transform: translateY(-1px);
}

.access-home-link {
  width: 100%;
  margin-top: 14px;
  color: var(--access-forest-dark);
  background: var(--access-paper-2);
  border-color: var(--access-line);
  box-shadow: none;
}

.access-home-link:hover {
  color: var(--access-forest-dark);
  background: var(--access-forest-soft);
  box-shadow: none;
}

.access-button:disabled { cursor: wait; opacity: 0.68; transform: none; }
.access-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: var(--access-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.access-auth-divider::before,
.access-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--access-line);
}
.access-google-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--access-line-strong);
  border-radius: 13px;
  color: var(--access-ink);
  background: var(--access-paper-2);
  font-size: 0.94rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.access-google-button:hover {
  border-color: var(--access-forest);
  background: var(--access-forest-soft);
  transform: translateY(-1px);
}
.access-google-mark {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #4285f4 0 30%, #34a853 30% 53%, #fbbc05 53% 75%, #ea4335 75%);
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
}
.access-button:focus-visible,
.access-link-button:focus-visible,
.access-google-button:focus-visible,
.access-form-help a:focus-visible,
.access-contact a:focus-visible,
.access-inline-links a:focus-visible,
.updates-navigation a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--access-brass) 58%, transparent);
  outline-offset: 3px;
}

.access-alert {
  display: none;
  margin-top: 18px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.access-alert-error {
  color: var(--access-danger);
  background: color-mix(in srgb, var(--access-danger) 10%, var(--access-paper));
  border: 1px solid color-mix(in srgb, var(--access-danger) 34%, transparent);
}

.access-alert-ok {
  color: var(--access-forest);
  background: var(--access-forest-soft);
  border: 1px solid color-mix(in srgb, var(--access-forest) 34%, transparent);
}

.access-contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--access-line);
  color: var(--access-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.access-contact strong { color: var(--access-ink); }
.access-contact a { font-weight: 700; text-underline-offset: 3px; }
.access-destination { min-height: 1.2em; margin: 14px 0 0; color: var(--access-muted); font-size: 0.82rem; }
.access-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }

body.customer-entry:not(.u2c-authenticated-preview) .access-page {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.62fr);
  gap: 24px;
  min-height: 100svh;
  align-items: stretch;
}

.public-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: calc(100svh - 48px);
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  padding: clamp(30px, 5.5vw, 72px);
  animation: access-rise 420ms cubic-bezier(.2, .8, .2, 1) both;
}

.public-intro::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.55;
  background:
    linear-gradient(120deg, transparent 0 64%, color-mix(in srgb, var(--access-forest) 5%, transparent) 64%),
    repeating-linear-gradient(90deg, transparent 0 87px, color-mix(in srgb, var(--access-ink) 3%, transparent) 88px 89px);
  pointer-events: none;
}

.public-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-150px, -7vw, -70px);
  bottom: clamp(-190px, -10vw, -95px);
  width: clamp(320px, 32vw, 510px);
  aspect-ratio: 1;
  border: clamp(42px, 5vw, 78px) solid color-mix(in srgb, var(--access-forest) 8%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.public-intro-copy {
  position: relative;
  z-index: 1;
  margin: auto 0 clamp(12px, 3vh, 36px);
}

.public-intro .access-lead { max-width: 54ch; font-size: clamp(1rem, 1.6vw, 1.18rem); }

.public-intro h1 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 4.35vw, 4.45rem);
  line-height: 1.02;
}

body.customer-entry:not(.u2c-authenticated-preview) #user-surface {
  display: grid;
  min-width: 0;
  align-items: center;
  margin: 0;
}

body.u2c-authenticated-preview .public-intro { display: none; }
body.u2c-authenticated-preview .access-page { width: min(1680px, calc(100% - 24px)); padding: 12px 0 24px; }
body.u2c-authenticated-preview #user-surface { margin-top: 0; }

@keyframes access-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  body.customer-entry:not(.u2c-authenticated-preview) .access-page {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 28px));
    min-height: auto;
  }
  .public-intro { min-height: 560px; }
  .public-intro h1 { max-width: 15ch; }
}

@media (max-width: 640px) {
  .access-page,
  .access-page-auth { width: min(100% - 20px, 560px); padding: 10px 0; }
  .access-page-auth { min-height: calc(100vh - 20px); }
  .access-card,
  .public-intro { padding: 22px; border-radius: 19px; }
  .public-intro { min-height: 470px; }
  .public-intro h1 {
    font-size: clamp(2.35rem, 10vw, 3rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }
  .public-intro-copy { margin-top: 74px; }
  .access-brand-row { align-items: flex-start; }
  body.u2c-authenticated-preview .access-page { width: min(100% - 12px, 1680px); padding-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media (prefers-contrast: more) {
  .access-card,
  .public-intro,
  .access-field input,
  .access-field textarea,
  .password-visibility-toggle { border-width: 2px; }
}

.access-inline-links .updates-entry-link,
.access-inline-links .contacts-entry-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--access-line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--access-forest-dark);
  background: var(--access-paper-2);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.updates-entry-link svg { width: 18px; height: 18px; flex: 0 0 auto; }

.updates-entry-link svg path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.access-inline-links .updates-entry-link:hover,
.access-inline-links .contacts-entry-link:hover {
  border-color: color-mix(in srgb, var(--access-forest) 42%, var(--access-line));
  background: var(--access-forest-soft);
  transform: translateY(-1px);
}

.access-inline-links .updates-entry-link:focus-visible,
.access-inline-links .contacts-entry-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--access-brass) 72%, transparent);
  outline-offset: 3px;
}

.access-page.access-page-updates {
  display: block;
  width: min(860px, calc(100% - 32px));
  min-height: 100vh;
  padding-block: clamp(24px, 7vh, 76px);
}

.updates-card { padding: clamp(25px, 5vw, 48px); }
.updates-card .access-eyebrow { margin-top: 38px; }
.updates-title-row { display: flex; align-items: center; gap: 15px; }
.updates-title-row h1 { flex: 1 1 auto; }
.updates-title-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--access-brass) 30%, var(--access-line));
  border-radius: 16px;
  color: var(--access-forest-dark);
  background: var(--access-forest-soft);
}
.updates-title-icon svg { width: 25px; height: 25px; }
.updates-title-icon path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.updates-card h1 {
  max-width: none;
  font-size: clamp(2.25rem, 5.5vw, 3.35rem);
  line-height: 1.04;
}
.updates-card .access-lead { max-width: 58ch; }

.updates-feed {
  margin-top: 34px;
  border-top: 1px solid var(--access-line);
  padding-top: 26px;
}

.updates-feed h2 {
  margin: 0 0 15px;
  color: var(--access-ink);
  font: 600 clamp(1.3rem, 3vw, 1.65rem)/1.2 var(--access-serif);
  letter-spacing: -0.02em;
}

.updates-empty-state {
  display: flex;
  min-height: 122px;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--access-line);
  border-radius: 18px;
  padding: 20px;
  background: var(--access-paper-2);
}

.updates-empty-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--access-forest) 24%, var(--access-line));
  border-radius: 14px;
  color: var(--access-forest-dark);
  background: var(--access-forest-soft);
}

.updates-empty-icon svg { width: 21px; height: 21px; }
.updates-empty-icon path,
.updates-empty-icon circle { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.updates-empty-title {
  margin: 1px 0 4px;
  color: var(--access-ink);
  font-weight: 760;
  line-height: 1.45;
}

.updates-empty-copy {
  margin: 0;
  color: var(--access-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.updates-navigation {
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}

.updates-navigation a {
  display: inline-flex;
  min-height: 48px;
  flex: 1 1 190px;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--access-line-strong);
  border-radius: 14px;
  padding: 9px 15px;
  color: var(--access-forest-dark);
  background: var(--access-paper-2);
  font-size: 0.93rem;
  text-decoration: none;
  white-space: normal;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.updates-navigation a:last-child {
  border-color: var(--access-forest);
  color: var(--access-paper);
  background: var(--access-forest);
}

.updates-navigation a:hover { transform: translateY(-1px); }
.updates-navigation a:first-child:hover { background: var(--access-forest-soft); }
.updates-navigation a:last-child:hover { background: var(--access-forest-dark); }
.updates-navigation a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.updates-navigation a path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.updates-navigation a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--access-brass) 72%, transparent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .access-page.access-page-updates {
    width: min(100% - 20px, 560px);
    min-height: calc(100vh - 20px);
    padding-block: 10px;
  }
  .updates-card { padding: 23px 20px; }
  .updates-card .access-eyebrow { margin-top: 30px; }
  .updates-title-row { gap: 12px; }
  .updates-title-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
  .updates-title-icon svg { width: 22px; height: 22px; }
  .updates-empty-state { gap: 12px; padding: 16px; }
  .updates-navigation a { flex-basis: 145px; }
}

@media (prefers-reduced-motion: reduce) {
  .updates-entry-link,
  .updates-navigation a { transition: none !important; }
}
