:root {
  --ink: #1f2522;
  --muted: #5f6864;
  --paper: #fbfaf6;
  --paper-strong: #ffffff;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: #d9ddd5;
  --teal: #2a6a61;
  --teal-deep: #143a33;
  --coral: #e65c41;
  --gold: #e2b349;
  --green-soft: #eaf1eb;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --on-accent: #ffffff;
  --on-teal: #fbfaf6;
  --body-background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(230, 92, 65, 0.06), transparent 26%),
    linear-gradient(180deg, #fdfbf7 0%, #f6f4ee 46%, #f2f1ea 100%);
  --header-bg: rgba(251, 250, 246, 0.82);
  --header-border: rgba(217, 221, 213, 0.7);
  --nav-menu-bg: rgba(255, 255, 255, 0.98);
  --nav-control-bg: rgba(255, 255, 255, 0.72);
  --nav-control-border: rgba(31, 37, 34, 0.12);
  --nav-hover-bg: rgba(39, 93, 85, 0.09);
  --button-secondary-bg: rgba(255, 255, 255, 0.84);
  --button-secondary-border: rgba(31, 37, 34, 0.16);
  --button-light-bg: rgba(255, 255, 255, 0.1);
  --button-light-border: rgba(255, 255, 255, 0.34);
  --field-bg: #ffffff;
  --field-border: rgba(31, 37, 34, 0.16);
  --soft-panel-bg: rgba(255, 255, 255, 0.42);
  --soft-tint-bg: rgba(39, 93, 85, 0.06);
  --max-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #b6c5bf;
  --paper: #0f1815;
  --paper-strong: #16231f;
  --surface: rgba(15, 24, 21, 0.78);
  --surface-strong: rgba(22, 35, 31, 0.94);
  --line: rgba(220, 252, 231, 0.14);
  --teal: #5eead4;
  --teal-deep: #0f3a33;
  --on-teal: #06251f;
  --coral: #fb8066;
  --gold: #f6c453;
  --green-soft: rgba(20, 83, 45, 0.28);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.42);
  --shadow-xl: 0 34px 80px rgba(0, 0, 0, 0.52);
  --body-background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(251, 128, 102, 0.1), transparent 30%),
    linear-gradient(180deg, #07110f 0%, #0d1714 46%, #111c18 100%);
  --header-bg: rgba(8, 16, 14, 0.82);
  --header-border: rgba(220, 252, 231, 0.12);
  --nav-menu-bg: rgba(15, 24, 21, 0.98);
  --nav-control-bg: rgba(255, 255, 255, 0.06);
  --nav-control-border: rgba(220, 252, 231, 0.14);
  --nav-hover-bg: rgba(94, 234, 212, 0.12);
  --button-secondary-bg: rgba(255, 255, 255, 0.08);
  --button-secondary-border: rgba(220, 252, 231, 0.18);
  --button-light-bg: rgba(255, 255, 255, 0.1);
  --button-light-border: rgba(220, 252, 231, 0.22);
  --field-bg: rgba(13, 23, 20, 0.88);
  --field-border: rgba(220, 252, 231, 0.16);
  --soft-panel-bg: rgba(255, 255, 255, 0.05);
  --soft-tint-bg: rgba(94, 234, 212, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--body-background);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  color: var(--on-accent);
  background: var(--teal-deep);
  border-radius: 6px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 5vw;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.1) rotate(-5deg);
}

.brand-text {
  overflow: hidden;
  max-width: 310px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  border: 1px solid var(--nav-control-border);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  color: var(--ink);
  background: var(--nav-control-bg);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(39, 93, 85, 0.32);
  background: var(--nav-hover-bg);
  transform: translateY(-1px);
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible {
  border-color: rgba(94, 234, 212, 0.34);
}

.theme-toggle svg {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-toggle-moon svg {
  fill: currentColor;
  stroke-width: 0;
}

.theme-toggle-icon {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  opacity: 0.62;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.theme-toggle[data-theme-mode="light"] .theme-toggle-sun,
.theme-toggle[data-theme-mode="dark"] .theme-toggle-moon {
  color: var(--teal);
  opacity: 1;
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  width: 2.3rem;
  height: 1.2rem;
  border: 1px solid var(--nav-control-border);
  border-radius: 999px;
  background: rgba(39, 93, 85, 0.1);
}

.theme-toggle-thumb {
  position: absolute;
  top: 50%;
  left: 0.15rem;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.theme-toggle[data-theme-mode="dark"] .theme-toggle-thumb {
  transform: translate(1.05rem, -50%);
}

.theme-toggle-text {
  min-width: 2.35rem;
  text-align: left;
}

.lang-switcher {
  position: relative;
  margin-right: 0.35rem;
  border: 1px solid var(--nav-control-border);
  border-radius: 999px;
  background: var(--nav-control-bg);
}

.lang-switcher::marker,
.lang-switcher summary::-webkit-details-marker {
  display: none;
}

.lang-switcher-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  list-style: none;
  padding: 0.55rem 0.85rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.lang-switcher-summary::marker {
  display: none;
}

.lang-switcher-summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.lang-switcher-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  display: grid;
  gap: 0.35rem;
  min-width: 11rem;
  padding: 0.5rem;
  border: 1px solid var(--nav-control-border);
  border-radius: 16px;
  background: var(--nav-menu-bg);
  box-shadow: var(--shadow-lg);
  z-index: 12;
}

.lang-switcher:not([open]) .lang-switcher-menu {
  display: none;
}

.lang-option {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover,
.lang-option:focus-visible,
.lang-option.is-active {
  background: var(--nav-hover-bg);
}

.site-nav a {
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: var(--nav-hover-bg);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 999px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 132px);
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 7rem 5vw 5.5rem;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: auto;
  pointer-events: none;
  content: "";
  z-index: -1;
  filter: blur(18px);
  opacity: 0.55;
}

.hero::before {
  top: 12%;
  left: 7%;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, rgba(6, 182, 212, 0.08) 40%, transparent 72%);
  animation: hero-drift-a 16s ease-in-out infinite alternate;
}

.hero::after {
  right: -2%;
  bottom: 5%;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 92, 65, 0.22) 0%, rgba(226, 179, 73, 0.1) 34%, transparent 72%);
  animation: hero-drift-b 20s ease-in-out infinite alternate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.82) 38%, rgba(251, 250, 246, 0.22) 72%),
    linear-gradient(0deg, rgba(251, 250, 246, 0.42), rgba(251, 250, 246, 0.04));
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 760px;
  padding: clamp(1.35rem, 2.8vw, 2rem);
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1) 40%, transparent 68%),
    var(--surface);
  box-shadow: 0 30px 70px -30px rgba(31, 37, 34, 0.38);
  backdrop-filter: blur(16px);
  animation: hero-lift 700ms ease-out both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.04;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.65rem, 7.2vw, 5.4rem);
}

.hero-subheading {
  max-width: 38ch;
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  border-left: 4px solid var(--coral);
  color: var(--teal-deep);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.45;
}

.hero-copy {
  max-width: 650px;
  margin: 1.2rem 0 0;
  color: #3f4743;
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0.82rem 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

@keyframes hero-drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  to {
    transform: translate3d(3rem, -1.5rem, 0) scale(1.08);
  }
}

@keyframes hero-drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2.5rem, -2rem, 0) scale(1.1);
  }
}

@keyframes hero-lift {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.button-primary {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  box-shadow: 0 16px 28px -16px rgba(39, 93, 85, 0.62);
}

.button-primary:hover {
  box-shadow: 0 20px 34px -14px rgba(39, 93, 85, 0.66);
  filter: brightness(1.05);
}

.button-secondary {
  color: var(--ink);
  background: var(--button-secondary-bg);
  border-color: var(--button-secondary-border);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-light {
  color: var(--on-accent);
  border-color: var(--button-light-border);
  background: var(--button-light-bg);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.4rem 0 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid rgba(31, 37, 34, 0.12);
}

.hero-points div {
  min-width: 0;
  padding: 1rem 1rem 0.9rem;
  border: 1px solid rgba(31, 37, 34, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 26px -20px rgba(31, 37, 34, 0.45);
}

.hero-points dt {
  margin: 0;
  font-weight: 900;
}

.hero-points dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.section {
  padding: 7rem 5vw;
}

.section-inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.section-work {
  padding-top: 4.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    var(--paper-strong);
}

.section-categories {
  background:
    radial-gradient(circle at top right, rgba(42, 106, 97, 0.08), transparent 28%),
    linear-gradient(180deg, #f4f4ef 0%, #eef0ea 100%);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.8rem;
}

.section-heading.narrow {
  max-width: 680px;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 4.4vw, 3.25rem);
}

.section-heading p:not(.eyebrow) {
  margin: 1.05rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.category-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 2rem;
  align-items: end;
}

.category-heading p:not(.eyebrow) {
  margin: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.category-card {
  position: relative;
  min-width: 0;
  min-height: 500px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  cursor: pointer;
  perspective: 1100px;
  --card-accent: #2563eb;
  --card-accent-rgb: 37, 99, 235;
  --card-accent-soft: rgba(var(--card-accent-rgb), 0.1);
  --card-accent-border: rgba(var(--card-accent-rgb), 0.24);
  --card-back-base: #eff6ff;
}

.category-card-development {
  --card-accent: #2563eb;
  --card-accent-rgb: 37, 99, 235;
  --card-back-base: #eff6ff;
}

.category-card-testing {
  --card-accent: #16a34a;
  --card-accent-rgb: 22, 163, 74;
  --card-back-base: #f0fdf4;
}

.category-card-data {
  --card-accent: #d97706;
  --card-accent-rgb: 217, 119, 6;
  --card-back-base: #fffbeb;
}

.category-card-ai {
  --card-accent: #7c3aed;
  --card-accent-rgb: 124, 58, 237;
  --card-back-base: #f5f3ff;
}

.category-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover .category-card-inner,
.category-card:focus .category-card-inner,
.category-card:focus-within .category-card-inner {
  transform: rotateY(180deg);
}

.category-face {
  position: absolute;
  inset: 0;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 22px;
  padding: 1.25rem;
  background: var(--surface-strong);
  box-shadow: 0 18px 38px -24px rgba(31, 37, 34, 0.48);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.category-card:hover .category-face,
.category-card:focus .category-face,
.category-card:focus-within .category-face {
  border-color: var(--card-accent-border);
  box-shadow: 0 26px 52px -26px rgba(31, 37, 34, 0.54);
}

.category-front {
  justify-content: flex-start;
}

.category-service-media {
  height: 118px;
  margin: 0.15rem 0 1rem;
  overflow: hidden;
  border: 1px solid rgba(var(--card-accent-rgb), 0.18);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(var(--card-accent-rgb), 0.08)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.category-service-media picture,
.category-service-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.category-service-media img {
  object-fit: cover;
}

.category-back {
  display: grid;
  grid-template-rows: 156px minmax(0, 1fr);
  gap: 0.72rem;
  padding: 0.92rem;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(var(--card-accent-rgb), 0.14), rgba(255, 255, 255, 0.88) 44%),
    var(--card-back-base);
  transform: rotateY(180deg);
}

.category-back-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--card-accent-rgb), 0.22);
  border-radius: 16px;
  padding: 0.7rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(var(--card-accent-rgb), 0.08)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.category-back-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  height: auto;
  padding: 0;
  background: transparent;
}

.category-back-kicker {
  margin: 0;
  color: var(--card-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.category-back-content h4 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.1;
}

.category-back-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.category-back-points {
  display: grid;
  gap: 0.38rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-back-points li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(var(--card-accent-rgb), 0.16);
  border-radius: 12px;
  padding: 0.38rem 0.5rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.79rem;
  font-weight: 800;
  line-height: 1.25;
}

.category-back-points li::before {
  display: block;
  flex: 0 0 0.46rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: var(--card-accent);
  content: "";
}

.category-proof-line {
  margin: 0;
  border: 1px solid rgba(var(--card-accent-rgb), 0.18);
  border-radius: 12px;
  padding: 0.48rem 0.55rem;
  color: #27302c;
  background: rgba(var(--card-accent-rgb), 0.09);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.category-back-cta {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--card-accent-rgb), 0.2);
  border-radius: 999px;
  padding: 0.52rem 0.85rem;
  color: #ffffff;
  background: var(--card-accent);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.category-back-cta:hover,
.category-back-cta:focus-visible {
  box-shadow: 0 12px 28px -18px rgba(var(--card-accent-rgb), 0.75);
  transform: translateY(-1px);
}

.category-back-cta:focus-visible {
  outline: 3px solid rgba(var(--card-accent-rgb), 0.28);
  outline-offset: 3px;
}

.proof-visual {
  display: grid;
  gap: 0.45rem;
}

.proof-visual-header,
.proof-browser,
.proof-quality-top,
.proof-chat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.proof-visual-header span,
.proof-chat span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.proof-visual-header strong,
.proof-quality-top strong {
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  color: var(--card-accent);
  background: rgba(var(--card-accent-rgb), 0.11);
  font-size: 0.72rem;
  font-weight: 900;
}

.proof-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.proof-kpi-row span {
  min-width: 0;
  border: 1px solid rgba(var(--card-accent-rgb), 0.14);
  border-radius: 10px;
  padding: 0.36rem 0.42rem;
  background: rgba(255, 255, 255, 0.76);
}

.proof-kpi-row strong,
.proof-kpi-row small {
  display: block;
}

.proof-kpi-row strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
}

.proof-kpi-row small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.proof-chart {
  display: flex;
  min-height: 34px;
  align-items: end;
  gap: 0.32rem;
  border-radius: 10px;
  padding: 0.32rem;
  background: rgba(var(--card-accent-rgb), 0.08);
}

.proof-bar {
  flex: 1;
  border-radius: 999px 999px 4px 4px;
  background: var(--card-accent);
}

.proof-bar-one {
  height: 42%;
}

.proof-bar-two {
  height: 72%;
}

.proof-bar-three {
  height: 55%;
}

.proof-bar-four {
  height: 88%;
}

.proof-browser {
  justify-content: flex-start;
  border: 1px solid rgba(var(--card-accent-rgb), 0.18);
  border-radius: 10px;
  padding: 0.38rem;
  background: #ffffff;
}

.proof-browser span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(var(--card-accent-rgb), 0.28);
}

.proof-code {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  color: #1f2937;
  background: rgba(17, 24, 39, 0.06);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-wrap;
}

.proof-flow,
.proof-check-row,
.proof-ai-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.proof-flow span,
.proof-check-row span,
.proof-ai-badges span {
  flex: 1 1 auto;
  min-width: max-content;
  border: 1px solid rgba(var(--card-accent-rgb), 0.16);
  border-radius: 999px;
  padding: 0.25rem 0.42rem;
  color: var(--card-accent);
  background: rgba(var(--card-accent-rgb), 0.09);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.proof-quality-top {
  border: 1px solid rgba(var(--card-accent-rgb), 0.16);
  border-radius: 12px;
  padding: 0.45rem 0.52rem;
  background: rgba(255, 255, 255, 0.78);
}

.proof-quality-top strong {
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.05rem;
}

.proof-quality-top span {
  color: var(--card-accent);
  font-size: 0.7rem;
  font-weight: 900;
}

.proof-severity-bars {
  display: grid;
  gap: 0.28rem;
}

.proof-severity-bars span {
  display: block;
  height: 0.44rem;
  border-radius: 999px;
  background: var(--card-accent);
}

.severity-low {
  width: 48%;
  opacity: 0.42;
}

.severity-medium {
  width: 72%;
  opacity: 0.66;
}

.severity-high {
  width: 92%;
}

.proof-chat {
  align-items: flex-start;
  border: 1px solid rgba(var(--card-accent-rgb), 0.16);
  border-radius: 12px;
  padding: 0.46rem 0.55rem;
  background: rgba(255, 255, 255, 0.78);
}

.proof-chat p {
  margin: 0;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
}

.category-back-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  color: var(--on-accent);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: var(--card-back-label-bg);
}

.category-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-count {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.9;
}

.category-type {
  border: 1px solid var(--card-accent-border);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  color: var(--card-accent);
  background: var(--card-accent-soft);
  font-size: 0.75rem;
  font-weight: 900;
}

.category-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.category-card p {
  margin: 0.7rem 0 1.15rem;
  color: var(--muted);
  line-height: 1.68;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.category-tags li {
  max-width: 100%;
  border: 1px solid rgba(31, 37, 34, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.58rem;
  color: #3f4743;
  background: rgba(251, 250, 246, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.project-accordion {
  display: grid;
  gap: 0.9rem;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 34px -24px rgba(31, 37, 34, 0.48);
  overflow: hidden;
}

.accordion-trigger {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 0;
  padding: 1.35rem 1.4rem;
  color: var(--ink);
  background: var(--paper-strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.accordion-trigger:hover,
.accordion-trigger:focus-visible,
.accordion-trigger[aria-expanded="true"] {
  background: var(--green-soft);
}

.accordion-trigger strong {
  display: block;
  margin-top: 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  line-height: 1.15;
}

.accordion-kicker {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
}

.accordion-count {
  border: 1px solid rgba(39, 93, 85, 0.18);
  border-radius: 999px;
  padding: 0.32rem 0.64rem;
  color: var(--teal);
  background: rgba(39, 93, 85, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.accordion-panel {
  padding: 1.1rem 1.1rem 1.25rem;
  border-top: 1px solid var(--line);
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.repo-card {
  display: flex;
  min-width: 0;
  min-height: 245px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 30px -24px rgba(31, 37, 34, 0.42);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.repo-card:hover,
.repo-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(42, 106, 97, 0.26);
  box-shadow: 0 24px 42px -24px rgba(31, 37, 34, 0.5);
}

.repo-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.repo-name {
  min-width: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(39, 93, 85, 0.28);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.repo-visibility,
.repo-signal {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.repo-visibility {
  border: 1px solid rgba(39, 93, 85, 0.18);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  color: var(--teal);
  background: rgba(39, 93, 85, 0.08);
}

.repo-original {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.repo-card p {
  margin: 0.95rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.72;
}

.repo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.15rem 0 0.9rem;
  width: 100%;
}

.repo-detail-link,
.repo-source-link,
.repo-source-note {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.55rem;
  min-height: 2.05rem;
  width: 100%;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.repo-detail-link {
  color: var(--on-teal);
  background: var(--teal);
  border: 1px solid var(--teal);
  text-decoration: none;
}

.repo-source-link {
  border: 1px solid var(--teal);
  color: var(--teal);
  background: transparent;
  text-decoration: none;
}

.repo-detail-link:hover,
.repo-detail-link:focus-visible {
  background: var(--teal-deep);
  color: #fbfaf6;
  outline: none;
}

.repo-source-link:hover,
.repo-source-link:focus-visible {
  background: color-mix(in srgb, var(--teal) 22%, transparent);
  color: #fbfaf6;
  outline: none;
}

.repo-detail-link:focus-visible,
.repo-source-link:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 34%, transparent);
}

.repo-source-note {
  color: var(--teal-deep);
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.repo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: auto 0 0.8rem;
  padding: 0;
  list-style: none;
}

.repo-tags li {
  max-width: 100%;
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 999px;
  padding: 0.3rem 0.58rem;
  color: #48504c;
  background: rgba(241, 243, 237, 0.88);
  font-size: 0.74rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.repo-detail-page {
  min-height: 100vh;
  background: var(--surface);
}

.detail-header,
.repo-detail-main {
  width: min(1220px, calc(100% - 2rem));
  margin-inline: auto;
}

.repo-detail-main {
  padding: 2rem 0 4rem;
}

.repo-detail-hero {
  padding: clamp(2.2rem, 4.8vw, 4.8rem) 0 clamp(1.8rem, 3.6vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.repo-detail-hero-grid {
  display: grid;
  align-items: start;
  gap: clamp(1rem, 2.8vw, 2.2rem);
  grid-template-columns: minmax(0, 1.52fr) 1px minmax(0, 0.95fr);
}

.repo-detail-hero-copy {
  min-width: 0;
}

.repo-detail-hero-copy .eyebrow {
  margin-bottom: 0.75rem;
}

.repo-detail-hero h1 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  max-width: min(100%, 18ch);
}

.repo-detail-summary {
  max-width: 72ch;
  color: var(--muted);
  margin: 0;
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.repo-detail-purpose {
  margin: 0.95rem 0 0;
  color: var(--teal);
  font-weight: 800;
  line-height: 1.45;
}

.repo-detail-hero-divider {
  width: 1px;
  min-height: 100%;
  border-radius: 999px;
  background: var(--line);
  opacity: 0.6;
}

.repo-detail-hero-sidebar {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.repo-detail-hero-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: var(--paper);
}

.repo-detail-hero-panel h2 {
  margin: 0 0 0.72rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.25;
}

.repo-detail-actions-panel {
  display: grid;
  gap: 0.65rem;
}

.repo-detail-actions-panel .detail-button,
.repo-detail-actions-panel .detail-button-disabled {
  width: 100%;
  margin: 0;
  min-height: 47px;
  border-radius: 12px;
  padding: 0.65rem 0.95rem;
  font-size: 0.94rem;
  line-height: 1.1;
  text-decoration: none;
}

.repo-detail-actions-panel .detail-button {
  color: var(--on-teal);
  background: var(--teal);
  border: 1px solid transparent;
  text-align: center;
}

.repo-detail-actions-panel .detail-button:hover,
.repo-detail-actions-panel .detail-button:focus-visible {
  background: var(--teal-deep);
  color: var(--on-accent);
  text-decoration: none;
}

.repo-detail-actions-panel .detail-button.secondary {
  border: 1px solid color-mix(in srgb, var(--teal) 65%, transparent);
  background: transparent;
  color: var(--teal);
}

.repo-detail-actions-panel .detail-button.secondary:hover,
.repo-detail-actions-panel .detail-button.secondary:focus-visible {
  background: var(--soft-panel-bg);
  text-decoration: none;
}

.repo-detail-actions-panel .detail-button:visited {
  text-decoration: none;
}

.repo-detail-actions-panel .detail-button-disabled {
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--soft-panel-bg);
  cursor: not-allowed;
}

.repo-detail-hero-sidebar .detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.repo-detail-hero-sidebar .detail-meta span {
  border: 1px solid rgba(31, 37, 34, 0.14);
  border-radius: 999px;
  padding: 0.36rem 0.64rem;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.repo-detail-capabilities {
  padding: 2.2rem 0 0.8rem;
}

.repo-detail-capabilities .eyebrow {
  margin-bottom: 0.45rem;
}

.repo-detail-capabilities h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
}

.repo-framework-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.repo-capability-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: var(--paper);
}

.repo-capability-card__icon {
  display: inline-flex;
  margin-bottom: 0.6rem;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--soft-panel-bg);
  font-size: 1.05rem;
}

.repo-capability-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.repo-capability-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}

.detail-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  background: var(--paper);
}

.detail-panel-wide {
  grid-column: 1 / -1;
}

.detail-panel h2 {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.detail-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.repo-tech-highlights-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.repo-tech-highlight-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  background: var(--paper);
}

.repo-tech-highlight-card__icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  border-radius: 999px;
  background: var(--soft-panel-bg);
  font-size: 0.95rem;
}

.repo-tech-highlight-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  line-height: 1.28;
}

.repo-tech-highlight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.56;
}

.repo-evidence-grid {
  display: grid;
  gap: 0.75rem;
}

.repo-evidence-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) minmax(0, 1fr);
  gap: 0.55rem 1rem;
  padding: 0.2rem 0;
}

.repo-evidence-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.repo-evidence-row dd {
  margin: 0;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.repo-evidence-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.detail-tag-list,
.detail-signal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.repo-evidence-tags li,
.detail-tag-list li,
.detail-signal-list li {
  border: 1px solid rgba(31, 37, 34, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.56rem;
  color: #48504c;
  background: rgba(241, 243, 237, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.repo-evidence-paths {
  margin: 0;
  padding: 0.1rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.36rem;
}

.repo-evidence-paths li {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.repo-evidence-paths code {
  min-width: 0;
  width: 100%;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  background: var(--soft-panel-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-word;
}

.detail-note {
  min-width: 0;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-size: 0.85rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  color: var(--muted);
  background: rgba(31, 37, 34, 0.06);
}

.repo-detail-cta {
  margin: 1.4rem 0 0;
  padding: 1.45rem 0 0.2rem;
  max-width: 900px;
}

.repo-detail-cta h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3.9vw, 2.15rem);
  line-height: 1.12;
  font-family: Georgia, "Times New Roman", serif;
}

.repo-detail-cta p {
  color: var(--muted);
  margin: 0;
  line-height: 1.62;
}

.project-brief-page {
  min-height: 100vh;
  background: var(--surface);
}

.project-brief-page .detail-header {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.3rem 0 0.75rem;
}

.project-brief-page .project-brief-header__inner {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.72rem 1rem;
}

.project-brief-page .project-brief-header__group {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.project-brief-page .project-brief-header__group--left {
  justify-content: flex-start;
}

.project-brief-page .project-brief-header__group--center {
  justify-content: center;
}

.project-brief-page .project-brief-header__group--right {
  justify-content: flex-end;
}

.project-brief-page .project-brief-header__group--left,
.project-brief-page .project-brief-header__group--center,
.project-brief-page .project-brief-header__group--right,
.project-brief-page .project-brief-header__group--left .detail-back-link,
.project-brief-page .project-brief-header__group--center .detail-back-link,
.project-brief-page .project-brief-header__group--right .detail-back-link {
  white-space: nowrap;
}

.project-brief-page .detail-header > .theme-toggle {
  grid-column: 3;
  justify-self: end;
  margin-left: 0.2rem;
  align-self: center;
  min-height: 2.08rem;
}

.project-brief-page .detail-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.08rem;
  padding: 0.28rem 0.64rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--teal) 48%, transparent);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(39, 93, 85, 0.06);
  white-space: nowrap;
}

.project-brief-page .detail-back-link[hidden] {
  display: none;
}

.project-brief-page .detail-back-link:hover,
.project-brief-page .detail-back-link:focus-visible {
  background: color-mix(in srgb, var(--teal) 20%, transparent);
}

.project-brief-page .detail-back-current {
  cursor: default;
  pointer-events: none;
}

.project-brief-page .detail-back-link[aria-current="page"] {
  color: var(--muted);
  background: rgba(20, 28, 22, 0.05);
  border-color: rgba(20, 28, 22, 0.2);
}

.project-brief-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  font-size: 0.96rem;
  text-decoration: none;
  white-space: nowrap;
}

.project-brief-brand img {
  border-radius: 7px;
}

.project-brief-user {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.project-brief-user[hidden] {
  display: none;
}

.project-brief-user-avatar {
  display: inline-grid;
  flex-shrink: 0;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 16%, transparent);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.project-brief-user-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-brief-logout {
  border-color: color-mix(in srgb, var(--coral) 48%, transparent);
  color: var(--coral);
  background: rgba(230, 92, 65, 0.06);
}

.project-brief-logout:hover,
.project-brief-logout:focus-visible {
  background: color-mix(in srgb, var(--coral) 18%, transparent);
}

.project-brief-main {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.4rem 0 4rem;
}

.project-brief-hero {
  display: grid;
  justify-items: center;
  max-width: none;
  padding: clamp(1.2rem, 3.4vw, 2.4rem) 0 1.75rem;
  text-align: center;
}

.project-brief-hero h1 {
  width: 100%;
  max-width: 1120px;
  margin: 0.2rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.project-brief-hero p {
  width: 100%;
  max-width: 880px;
  color: var(--muted);
  font-size: 1.12rem;
}

.project-brief-hero .project-brief-public-note {
  max-width: 760px;
  border: 1px solid rgba(39, 93, 85, 0.18);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--teal-deep);
  background: rgba(219, 232, 220, 0.62);
  font-size: 0.98rem;
  font-weight: 750;
}

.project-brief-public-note a {
  color: var(--teal);
  font-weight: 900;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.project-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(31, 37, 34, 0.08);
}

.project-form.is-auth-locked {
  opacity: 0.55;
  filter: saturate(0.82);
}

.project-form.is-auth-checking {
  display: none;
}

.project-brief-auth-gate {
  margin: 0.5rem 0 1rem;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 650;
}

.project-brief-page.project-brief-auth-loading .project-brief-auth-gate {
  min-height: 2.25rem;
  display: inline-grid;
  place-items: center;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.project-submitted-main {
  display: grid;
  place-items: start center;
  width: min(920px, calc(100% - 2rem));
  min-height: calc(100vh - 6rem);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4.5rem) 0;
}

.project-submitted-card {
  display: grid;
  gap: 1rem;
  width: 100%;
  border: 1px solid rgba(39, 93, 85, 0.2);
  border-radius: 8px;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(31, 37, 34, 0.1);
}

.project-submitted-icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  color: var(--on-accent);
  background: var(--teal);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.project-submitted-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1;
}

.project-submitted-lede {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.project-submitted-details {
  border: 1px solid rgba(39, 93, 85, 0.16);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(219, 232, 220, 0.4);
}

.project-submitted-details h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
}

.project-submitted-details dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.project-submitted-details div {
  display: grid;
  grid-template-columns: minmax(9rem, 0.34fr) 1fr;
  gap: 0.75rem;
  align-items: start;
  border-bottom: 1px solid rgba(39, 93, 85, 0.12);
  padding-bottom: 0.65rem;
}

.project-submitted-details div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.project-submitted-details dt {
  color: var(--muted);
  font-weight: 900;
}

.project-submitted-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.project-submitted-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: var(--teal-deep);
  background: rgba(39, 93, 85, 0.12);
  font-size: 0.9rem;
}

.project-submitted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.form-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.form-stepper li {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper-strong);
  font-size: 0.72rem;
  font-weight: 900;
  overflow: hidden;
}

.stepper-button {
  display: grid;
  width: 100%;
  min-height: 100%;
  min-width: 0;
  gap: 0.35rem;
  border: 0;
  padding: 0.65rem;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.stepper-button:hover {
  background: rgba(39, 93, 85, 0.06);
}

.stepper-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.form-stepper strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-stepper small {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.18rem 0.42rem;
  color: var(--muted);
  background: rgba(31, 37, 34, 0.06);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.form-stepper span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(39, 93, 85, 0.08);
}

.form-stepper li.is-active {
  border-color: rgba(39, 93, 85, 0.28);
  color: var(--ink);
  background: rgba(39, 93, 85, 0.07);
}

.form-stepper li.is-active span,
.form-stepper li.is-complete span {
  color: var(--on-accent);
  background: var(--teal);
}

.form-stepper li.is-incomplete span {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.22);
}

.form-stepper li.is-active.is-incomplete span {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.42);
}

.form-stepper li.is-complete {
  border-color: rgba(20, 184, 166, 0.24);
  color: var(--teal);
  background: rgba(39, 93, 85, 0.06);
}

.form-stepper li.is-incomplete {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
}

.form-stepper li.is-attention {
  border-color: rgba(207, 98, 75, 0.34);
  color: var(--coral);
  background: rgba(207, 98, 75, 0.07);
}

.form-stepper li.is-active.is-incomplete {
  border-color: rgba(239, 68, 68, 0.6);
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.2);
}

.form-stepper li.is-attention span {
  color: var(--on-accent);
  background: var(--coral);
}

.form-stepper li.is-complete small {
  color: var(--teal);
  background: rgba(39, 93, 85, 0.1);
}

.form-stepper li.is-attention small {
  color: var(--coral);
  background: rgba(207, 98, 75, 0.12);
}

.form-stepper li.is-incomplete small {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.24);
}

.form-stepper li.is-active.is-incomplete small {
  color: #fda4af;
  background: rgba(248, 113, 113, 0.32);
}

.form-step[hidden] {
  display: none;
}

.draft-utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(39, 93, 85, 0.14);
  border-radius: 8px;
  margin: -0.35rem 0 1.25rem;
  padding: 0.75rem 0.85rem;
  background: rgba(39, 93, 85, 0.05);
}

.draft-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.35;
}

.draft-clear-button {
  min-height: 38px;
  padding: 0.58rem 0.78rem;
  font-size: 0.78rem;
}

.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.form-step-heading {
  margin-bottom: 1rem;
}

.form-step-heading p {
  margin: 0 0 0.25rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
}

.form-step-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.step-inline-summary {
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 8px;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  background: var(--paper-strong);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.step-inline-summary.is-complete {
  border-color: rgba(39, 93, 85, 0.2);
  color: var(--teal);
  background: rgba(39, 93, 85, 0.07);
}

.step-inline-summary.is-incomplete {
  border-color: rgba(194, 145, 61, 0.26);
  color: #725420;
  background: rgba(194, 145, 61, 0.09);
}

.step-inline-summary.is-attention {
  border-color: rgba(207, 98, 75, 0.28);
  color: var(--coral);
  background: rgba(207, 98, 75, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  grid-column: span 2;
  min-width: 0;
  gap: 0.45rem;
  border-top: 1px solid rgba(31, 37, 34, 0.12);
  padding-top: 1rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.form-field:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 0;
}

.form-field-wide:nth-child(2) {
  border-top: 1px solid rgba(31, 37, 34, 0.12);
  padding-top: 1rem;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-company-field {
  align-self: start;
  gap: 0.35rem;
  padding-top: 0.9rem;
}

.form-company-field input:not([type="checkbox"]):not([type="hidden"]) {
  min-height: 58px;
}

.form-field input:not([type="checkbox"]):not([type="hidden"]),
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.78rem 0.85rem;
  color: var(--ink);
  background: var(--paper-strong);
  font: inherit;
  font-weight: 600;
}

.form-help {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.project-type-field {
  gap: 0.65rem;
}

.project-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.project-type-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: var(--paper-strong);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.project-type-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.project-type-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-type-option:has(input:checked) {
  border-color: rgba(39, 93, 85, 0.34);
  background: rgba(39, 93, 85, 0.08);
}

.project-type-option:has(input[aria-invalid="true"]) {
  border-color: var(--coral);
  background: rgba(207, 98, 75, 0.08);
  box-shadow: 0 0 0 3px rgba(207, 98, 75, 0.12);
}

.project-type-option input[aria-invalid="true"] {
  box-shadow: none;
}

.project-type-option:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.assistant-tools,
.budget-control,
.phone-control {
  display: flex;
  min-width: 0;
  gap: 0.55rem;
}

.assistant-tools {
  flex-wrap: wrap;
}

.assistant-tool-button {
  min-height: 42px;
  border: 1px solid rgba(39, 93, 85, 0.2);
  border-radius: 8px;
  padding: 0.62rem 0.8rem;
  color: var(--teal);
  background: rgba(39, 93, 85, 0.07);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.assistant-tool-button:hover {
  background: rgba(39, 93, 85, 0.12);
}

.phone-control {
  align-items: stretch;
}

.phone-control select {
  flex: 0 0 220px;
}

.phone-control input {
  flex: 1 1 auto;
}

.phone-control button {
  flex: 0 0 auto;
}

.phone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone-list li {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(39, 93, 85, 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.35rem 0.28rem 0.62rem;
  color: var(--teal);
  background: rgba(39, 93, 85, 0.07);
  font-size: 0.82rem;
  font-weight: 900;
}

.phone-list button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--on-accent);
  background: var(--teal);
  cursor: pointer;
}

.budget-control select {
  flex: 0 0 170px;
  min-width: 170px;
}

.budget-control input {
  flex: 1 1 auto;
}

.project-plan-builder {
  position: relative;
  display: grid;
  gap: 1rem;
}

.project-plan-rows {
  display: grid;
  gap: 1rem;
}

.project-plan-row {
  display: grid;
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--paper-strong);
}

.project-plan-row h3 {
  margin: 0;
  color: var(--teal);
  font-size: 0.98rem;
  line-height: 1.2;
}

.project-plan-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0.9rem;
}

.project-plan-controls .form-field {
  border-top: 0;
  padding-top: 0;
}

.budget-total {
  border: 1px solid rgba(39, 93, 85, 0.2);
  border-radius: 8px;
  margin: 0;
  padding: 0.9rem 1rem;
  color: var(--teal);
  background: rgba(39, 93, 85, 0.07);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.timeline-field {
  position: relative;
  z-index: 4;
}

.calendar-control {
  position: relative;
  display: block;
  min-width: 0;
}

.calendar-widget {
  display: grid;
  width: min(360px, 100%);
  gap: 0.5rem;
  margin-top: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: var(--paper-strong);
  box-shadow: 0 18px 44px rgba(31, 37, 34, 0.16);
}

.calendar-widget[hidden] {
  display: none;
}

.calendar-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 0.45rem;
  align-items: center;
}

.calendar-header strong {
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.2;
}

.calendar-nav,
.calendar-day {
  border: 1px solid rgba(39, 93, 85, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(39, 93, 85, 0.05);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.calendar-nav {
  width: 38px;
  height: 38px;
  padding: 0;
}

.calendar-nav:hover,
.calendar-day:hover,
.calendar-day:focus-visible {
  border-color: rgba(39, 93, 85, 0.34);
  background: rgba(39, 93, 85, 0.12);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  min-height: 38px;
  padding: 0.28rem 0.2rem;
  font-size: 0.82rem;
}

.calendar-day.is-muted {
  color: #89918d;
  background: rgba(31, 37, 34, 0.03);
}

.calendar-day.is-disabled,
.calendar-day:disabled {
  border-color: rgba(31, 37, 34, 0.08);
  color: rgba(31, 37, 34, 0.32);
  background: rgba(31, 37, 34, 0.04);
  cursor: not-allowed;
  box-shadow: none;
}

.calendar-day.is-today {
  border-color: rgba(207, 98, 75, 0.42);
  color: var(--coral);
}

.calendar-day.is-selected {
  border-color: var(--teal);
  color: var(--on-accent);
  background: var(--teal);
  box-shadow: 0 10px 22px rgba(39, 93, 85, 0.18);
}

.form-field textarea {
  resize: vertical;
}

.form-field input:not([type="checkbox"]):not([type="hidden"]):focus,
.form-field select:focus,
.form-field textarea:focus,
.assistant-tool-button:focus-visible,
.calendar-nav:focus-visible,
.calendar-day:focus-visible,
.upload-input:focus-visible + .upload-scan-status,
.upload-input:focus-visible ~ .upload-list {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.form-field input:not([type="checkbox"]):not([type="hidden"])[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(207, 98, 75, 0.12);
}

.form-error {
  min-height: 1.1rem;
  margin: 0;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.form-error:empty {
  display: none;
}

.upload-box {
  display: grid;
  gap: 0.35rem;
  border: 1px dashed rgba(39, 93, 85, 0.42);
  border-radius: 8px;
  padding: 1.15rem;
  background: rgba(39, 93, 85, 0.06);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.upload-box.is-dragging {
  border-color: var(--teal);
  background: rgba(39, 93, 85, 0.12);
  box-shadow: 0 16px 34px rgba(39, 93, 85, 0.16);
  transform: translateY(-2px);
}

.upload-box.is-scanning {
  border-color: rgba(194, 145, 61, 0.64);
  background: rgba(194, 145, 61, 0.1);
}

.upload-box.has-accepted {
  border-color: rgba(39, 93, 85, 0.48);
  background: rgba(39, 93, 85, 0.08);
}

.upload-box.has-blocked {
  border-color: rgba(207, 98, 75, 0.52);
  background: rgba(207, 98, 75, 0.08);
}

.upload-box strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.15;
}

.upload-box small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.upload-input {
  width: 100%;
  margin-top: 0.65rem;
}

.upload-scan-status {
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 8px;
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.75rem;
  color: var(--muted);
  background: var(--paper-strong);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.upload-scan-status.is-pending,
.upload-scan-status.is-dragging,
.upload-scan-status.is-scanning {
  border-color: rgba(194, 145, 61, 0.3);
  color: #725420;
  background: rgba(194, 145, 61, 0.1);
}

.upload-scan-status.is-accepted {
  border-color: rgba(39, 93, 85, 0.22);
  color: var(--teal);
  background: rgba(39, 93, 85, 0.07);
}

.upload-scan-status.is-blocked {
  border-color: rgba(207, 98, 75, 0.28);
  color: var(--coral);
  background: rgba(207, 98, 75, 0.08);
}

.upload-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.upload-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 8px;
  padding: 0.58rem 0.7rem;
  color: var(--muted);
  background: var(--paper-strong);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.upload-list li.is-accepted {
  border-color: rgba(39, 93, 85, 0.2);
  background: rgba(39, 93, 85, 0.06);
}

.upload-list li.is-blocked {
  border-color: rgba(207, 98, 75, 0.28);
  background: rgba(207, 98, 75, 0.08);
}

.upload-file-status {
  color: var(--teal);
  font-weight: 900;
}

.upload-list li.is-blocked .upload-file-status {
  color: var(--coral);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-top: 1px solid rgba(31, 37, 34, 0.12);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.form-actions [hidden] {
  display: none;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--teal);
  font-weight: 900;
}

.submission-status-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border: 1px solid rgba(39, 93, 85, 0.22);
  border-radius: 8px;
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  background: rgba(219, 232, 220, 0.68);
  color: var(--teal-deep);
  box-shadow: 0 14px 32px rgba(31, 37, 34, 0.08);
}

.submission-status-card[hidden] {
  display: none;
}

.submission-status-card.is-success {
  border-color: rgba(39, 93, 85, 0.22);
  background: rgba(219, 232, 220, 0.68);
  color: var(--teal-deep);
}

.submission-status-card.is-error {
  border-color: rgba(166, 58, 58, 0.28);
  background: rgba(255, 237, 232, 0.88);
  color: #7d2828;
}

.submission-status-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--on-accent);
  background: var(--teal);
  font-weight: 900;
  line-height: 1;
}

.submission-status-card.is-error .submission-status-icon {
  background: #b64040;
}

.submission-status-content {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.submission-status-content strong {
  color: inherit;
  font-size: 1.02rem;
}

.submission-status-content span,
.submission-status-content small {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.submission-status-content small {
  font-weight: 800;
}

.email-fallback-status {
  border: 1px solid rgba(39, 93, 85, 0.18);
  border-radius: 8px;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  color: var(--teal-deep);
  background: rgba(219, 232, 220, 0.56);
}

.email-fallback-status[hidden] {
  display: none;
}

.email-fallback-status strong {
  display: block;
  margin-bottom: 0.35rem;
}

.email-fallback-status p,
.email-fallback-status ul {
  margin: 0;
}

.email-fallback-status ul {
  padding-left: 1.15rem;
}

.email-fallback-status li {
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}

.admin-main {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0 4rem;
}

.admin-hero {
  display: grid;
  gap: 1rem;
  border-bottom: 1px solid rgba(31, 37, 34, 0.12);
  padding-bottom: clamp(1.5rem, 4vw, 2.4rem);
}

.admin-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 0.95;
}

.admin-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 700;
}

.admin-panel {
  display: grid;
  gap: 1rem;
  border-radius: 8px;
  outline: 2px solid transparent;
  outline-offset: 0.45rem;
  padding-top: clamp(1.5rem, 4vw, 2.4rem);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    outline-color 220ms ease;
}

.admin-panel.is-target-highlighted {
  background: rgba(194, 145, 61, 0.08);
  box-shadow: 0 0 0 8px rgba(194, 145, 61, 0.08);
  outline-color: rgba(194, 145, 61, 0.52);
}

.admin-panel-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.admin-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.admin-copy-toast {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 40;
  display: grid;
  gap: 0.45rem;
  max-width: min(22rem, calc(100vw - 2rem));
  border: 1px solid rgba(39, 93, 85, 0.28);
  border-radius: 8px;
  margin: 0;
  padding: 0.85rem 2.75rem 0.85rem 1rem;
  background: var(--teal);
  box-shadow: 0 18px 44px rgba(31, 37, 34, 0.22);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.admin-copy-toast-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: inline-grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1;
}

.admin-copy-toast-close:hover,
.admin-copy-toast-close:focus-visible {
  background: rgba(255, 255, 255, 0.26);
}

.admin-copy-toast-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 1000;
}

.admin-copy-toast-body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.admin-copy-toast code {
  display: block;
  max-width: 100%;
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-copy-toast code:empty {
  display: none;
}

.admin-copy-toast-action {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 1000;
  line-height: 1.1;
}

.admin-copy-toast-action:hover,
.admin-copy-toast-action:focus-visible {
  background: rgba(255, 255, 255, 0.26);
}

.admin-copy-toast-action[hidden] {
  display: none;
}

.admin-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-copy-toast.is-error {
  border-color: rgba(207, 98, 75, 0.38);
  background: var(--coral);
}

.admin-copy-toast[hidden] {
  display: none;
}

.admin-panel-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.admin-shared-view-label {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: fit-content;
  border: 1px solid rgba(39, 93, 85, 0.22);
  border-radius: 999px;
  margin-top: 0.55rem;
  padding: 0.28rem 0.55rem;
  background: rgba(39, 93, 85, 0.08);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.admin-shared-view-label [data-admin-shared-view-summary] {
  color: var(--ink);
  overflow-wrap: anywhere;
  text-transform: none;
}

.admin-shared-view-label [data-admin-shared-view-summary]:not(:empty)::before {
  color: var(--muted);
  content: "· ";
}

.admin-shared-view-clear {
  border: 1px solid rgba(39, 93, 85, 0.24);
  border-radius: 999px;
  padding: 0.18rem 0.42rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: none;
}

.admin-shared-view-clear:hover,
.admin-shared-view-clear:focus-visible {
  border-color: rgba(188, 93, 76, 0.42);
  color: var(--coral);
}

.admin-shared-view-label[hidden] {
  display: none;
}

.admin-status,
.admin-empty-state {
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 8px;
  margin: 0;
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  background: var(--paper-strong);
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-empty-state {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.admin-empty-state[hidden] {
  display: none;
}

.admin-empty-state strong {
  color: var(--ink);
}

.admin-empty-state p {
  margin: 0;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-overview-card {
  appearance: none;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 8px;
  padding: 0.9rem;
  background: var(--paper-strong);
  box-shadow: 0 12px 24px rgba(31, 37, 34, 0.06);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.admin-overview-card:hover,
.admin-overview-card:focus-visible {
  border-color: rgba(188, 93, 76, 0.42);
  box-shadow: 0 18px 34px rgba(31, 37, 34, 0.12);
  transform: translateY(-2px);
}

.admin-overview-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-overview-card strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.admin-overview-card-static {
  cursor: default;
}

.admin-overview-card-static:hover,
.admin-overview-card-static:focus-visible {
  border-color: rgba(31, 37, 34, 0.1);
  box-shadow: 0 12px 24px rgba(31, 37, 34, 0.06);
  transform: none;
}

.admin-chat-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.admin-chat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: baseline;
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  background: var(--paper-strong);
}

.admin-chat-row strong {
  font-family: Georgia, "Times New Roman", serif;
}

.admin-chat-row .admin-chat-row-status {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted);
}

.admin-overview-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.admin-submission-list,
.admin-audit-list {
  display: grid;
  gap: 1rem;
}

.admin-submission-card,
.admin-audit-card {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: var(--paper-strong);
  box-shadow: 0 14px 30px rgba(31, 37, 34, 0.08);
}

.admin-audit-card {
  gap: 0.8rem;
  box-shadow: none;
}

.admin-audit-card .admin-submission-header h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.15;
  text-transform: capitalize;
}

.admin-audit-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-submission-filters,
.admin-audit-filters,
.admin-retention-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.42);
}

.admin-submission-filters {
  grid-template-columns: minmax(16rem, 2fr) repeat(2, minmax(12rem, 1fr)) auto;
}

.admin-submission-search-field,
.admin-submission-sort-field {
  grid-column: auto;
}

.admin-submission-filters label,
.admin-audit-filters label,
.admin-retention-form label {
  display: grid;
  gap: 0.32rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-submission-filters select,
.admin-submission-filters input,
.admin-audit-filters select,
.admin-audit-filters input,
.admin-retention-form select,
.admin-retention-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(31, 37, 34, 0.16);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: var(--paper-strong);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  text-transform: none;
}

.admin-submission-filter-actions,
.admin-audit-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-audit-filter-actions {
  grid-column: 1 / -1;
}

.admin-submission-filter-actions {
  align-items: end;
}

.admin-bulk-actions {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto minmax(12rem, 1.2fr);
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(39, 93, 85, 0.16);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(39, 93, 85, 0.06);
}

.admin-bulk-actions label {
  display: grid;
  gap: 0.32rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-bulk-actions select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(31, 37, 34, 0.16);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: var(--paper-strong);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  text-transform: none;
}

.admin-bulk-select-all {
  display: inline-flex !important;
  flex-direction: row;
  gap: 0.5rem !important;
  align-items: center;
  color: var(--ink) !important;
  white-space: nowrap;
}

.admin-bulk-select-all input,
.admin-submission-select input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--teal);
}

.admin-bulk-status {
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-pagination {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto minmax(12rem, auto) auto;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.36);
}

.admin-pagination label {
  display: grid;
  gap: 0.32rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-pagination select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(31, 37, 34, 0.16);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  background: var(--paper-strong);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
}

.admin-pagination-status {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.admin-retention-summary {
  display: grid;
  gap: 1rem;
}

.admin-retention-grid {
  border-top: 1px solid rgba(31, 37, 34, 0.12);
  padding-top: 1rem;
}

.admin-submission-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: start;
  justify-content: space-between;
}

.admin-submission-title-group {
  flex: 1 1 18rem;
  min-width: 0;
}

.admin-submission-select {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-submission-header h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.05;
}

.admin-submission-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-notification-badge {
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  background: rgba(31, 37, 34, 0.05);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-notification-badge.is-sent {
  border-color: rgba(39, 93, 85, 0.22);
  color: var(--teal);
  background: rgba(39, 93, 85, 0.08);
}

.admin-notification-badge.is-failed {
  border-color: rgba(207, 98, 75, 0.28);
  color: var(--coral);
  background: rgba(207, 98, 75, 0.08);
}

.admin-notification-badge.is-unconfigured {
  border-color: rgba(194, 145, 61, 0.3);
  color: #725420;
  background: rgba(194, 145, 61, 0.1);
}

.admin-submission-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.admin-submission-meta div {
  min-width: 0;
  border-top: 1px solid rgba(31, 37, 34, 0.1);
  padding-top: 0.55rem;
}

.admin-submission-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-submission-meta dd {
  margin: 0.16rem 0 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-submission-excerpts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-submission-excerpts p,
.admin-file-list {
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 8px;
  margin: 0;
  padding: 0.75rem;
  color: var(--muted);
  background: rgba(39, 93, 85, 0.04);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.45;
}

.admin-submission-excerpts strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-file-list {
  display: grid;
  gap: 0.35rem;
  list-style: none;
}

.admin-file-list li {
  overflow-wrap: anywhere;
}

.admin-submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.admin-detail-panel {
  display: grid;
  gap: 1rem;
  border-top: 1px solid rgba(31, 37, 34, 0.12);
  padding-top: 1rem;
}

.admin-detail-panel[hidden] {
  display: none;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-detail-grid > div,
.admin-detail-text p {
  min-width: 0;
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 8px;
  margin: 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.42);
}

.admin-detail-grid dt,
.admin-detail-grid strong,
.admin-detail-text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-detail-grid dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.admin-detail-grid ul {
  display: grid;
  gap: 0.32rem;
  margin: 0;
  padding-left: 1rem;
  color: var(--ink);
  font-weight: 800;
}

.admin-detail-text {
  display: grid;
  gap: 0.7rem;
}

.admin-detail-text p {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-resend-button {
  width: fit-content;
}

.confirmation-modal {
  width: min(520px, calc(100% - 2rem));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.auth-gate-modal {
  width: min(980px, calc(100% - 2rem));
}

.confirmation-modal::backdrop {
  background: rgba(31, 37, 34, 0.48);
  backdrop-filter: blur(4px);
}

.confirmation-modal-panel {
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(31, 37, 34, 0.12);
  border-radius: 8px;
  padding: clamp(1rem, 4vw, 1.35rem);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(31, 37, 34, 0.22);
}

.auth-gate-modal[open] .confirmation-modal-panel {
  animation: none;
}

.auth-gate-modal .confirmation-modal-panel {
  gap: 1rem;
}

.auth-gate-frame-shell {
  overflow: hidden;
  border: 1px solid rgba(31, 37, 34, 0.1);
  border-radius: 8px;
  background: var(--ink);
}

.auth-gate-frame {
  display: block;
  width: 100%;
  min-height: min(74vh, 780px);
  border: 0;
  background: var(--ink);
}

.confirmation-modal-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  line-height: 1.05;
}

.confirmation-modal-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.confirmation-document-checklist {
  display: grid;
  gap: 0.7rem;
  border: 1px solid rgba(39, 93, 85, 0.18);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(39, 93, 85, 0.06);
}

.confirmation-document-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.confirmation-document-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirmation-document-checklist ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.confirmation-document-checklist li {
  border-top: 1px solid rgba(31, 37, 34, 0.1);
  padding-top: 0.55rem;
}

.confirmation-document-checklist li:first-child {
  border-top: 0;
  padding-top: 0;
}

.confirmation-document-checklist label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: var(--ink);
  cursor: pointer;
}

.confirmation-document-checklist input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.12rem 0 0;
  accent-color: var(--teal);
}

.confirmation-document-checklist strong,
.confirmation-document-checklist small {
  display: block;
}

.confirmation-document-checklist strong {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.confirmation-document-checklist small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-weight: 800;
}

.confirmation-modal-panel .confirmation-document-status {
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 900;
}

.confirmation-document-checklist.is-complete {
  border-color: rgba(39, 93, 85, 0.34);
  background: rgba(39, 93, 85, 0.1);
}

.confirmation-document-checklist.is-complete .confirmation-document-status {
  color: var(--teal);
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  border-top: 1px solid rgba(31, 37, 34, 0.1);
  padding-top: 1rem;
}

.review-summary {
  display: grid;
  gap: 1rem;
}

.review-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  overflow: hidden;
}

.review-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(31, 37, 34, 0.1);
  padding: 1rem;
  background: rgba(39, 93, 85, 0.04);
}

.review-section-title {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.review-section-title p {
  margin: 0;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
}

.review-section h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.1;
}

.review-edit-button {
  flex: 0 0 auto;
  border: 1px solid rgba(39, 93, 85, 0.2);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  color: var(--teal);
  background: rgba(39, 93, 85, 0.07);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.review-edit-button:hover,
.review-edit-button:focus-visible {
  background: rgba(39, 93, 85, 0.13);
}

.review-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
}

.review-detail {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  border-top: 1px solid rgba(31, 37, 34, 0.08);
  padding: 0.9rem 1rem;
}

.review-detail:nth-child(-n + 2) {
  border-top: 0;
}

.review-detail-wide {
  grid-column: 1 / -1;
}

.review-detail dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
}

.review-detail dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.review-long-text {
  white-space: pre-wrap;
}

.review-value-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding-left: 1.1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card,
.capability-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.project-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 1.35rem;
  box-shadow: none;
}

.project-card-featured {
  background: var(--green-soft);
  border-color: rgba(39, 93, 85, 0.22);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.project-meta span {
  border: 1px solid rgba(39, 93, 85, 0.18);
  border-radius: 999px;
  padding: 0.26rem 0.55rem;
  background: rgba(255, 255, 255, 0.56);
}

.project-card h3,
.capability-card h3,
.process-list h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.18;
}

.project-card p,
.capability-card p,
.process-list p,
.contact-panel p {
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.2rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.project-list li {
  position: relative;
  padding-left: 1.05rem;
  color: #48504c;
}

.project-list li::before {
  position: absolute;
  left: 0;
  color: var(--coral);
  content: "/";
  font-weight: 900;
}

.text-link {
  margin-top: auto;
  color: var(--teal);
  font-weight: 900;
  text-decoration-color: rgba(39, 93, 85, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link-muted {
  color: var(--muted);
  text-decoration: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.capability-card {
  padding: 1.2rem;
  background: var(--paper-strong);
}

.section-process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(122deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.02) 30%, transparent 52%),
    linear-gradient(248deg, rgba(217, 119, 6, 0.12) 0%, rgba(217, 119, 6, 0.03) 34%, transparent 58%),
    linear-gradient(180deg, #fbfaf6 0%, #f1f4ee 48%, #f8f7f1 100%);
}

.section-process::before,
.section-process::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.section-process::before {
  z-index: -2;
  background-image:
    linear-gradient(rgba(31, 37, 34, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 37, 34, 0.04) 1px, transparent 1px),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(42, 106, 97, 0.035) 39px, transparent 40px);
  background-position: center;
  background-size: 52px 52px, 52px 52px, 140px 140px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 88%, transparent 100%);
  opacity: 0.82;
}

.section-process::after {
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg width='1440' height='640' viewBox='0 0 1440 640' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-80 190C90 64 238 291 402 160C566 29 675 217 848 132C1021 47 1136 252 1520 86' stroke='%232a6a61' stroke-opacity='.24' stroke-width='2'/%3E%3Cpath d='M-60 408C143 301 264 487 438 367C612 247 753 446 921 312C1089 178 1216 393 1500 246' stroke='%23d97706' stroke-opacity='.2' stroke-width='2'/%3E%3Cpath d='M80 90L238 164L392 140L548 238L712 205L878 288L1040 244L1220 340L1360 318' stroke='%232563eb' stroke-opacity='.16' stroke-width='1.5' stroke-dasharray='7 12'/%3E%3Cg fill='%232a6a61' fill-opacity='.22'%3E%3Ccircle cx='238' cy='164' r='5'/%3E%3Ccircle cx='548' cy='238' r='5'/%3E%3Ccircle cx='878' cy='288' r='5'/%3E%3Ccircle cx='1220' cy='340' r='5'/%3E%3C/g%3E%3Cg fill='%23d97706' fill-opacity='.2'%3E%3Ccircle cx='402' cy='160' r='4'/%3E%3Ccircle cx='848' cy='132' r='4'/%3E%3Ccircle cx='921' cy='312' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: max(1120px, 100%) auto;
  opacity: 0.95;
}

.section-process .section-inner {
  position: relative;
  z-index: 1;
}

.section-process .section-heading {
  position: relative;
}

.section-process .section-heading::after {
  display: block;
  width: min(100%, 560px);
  height: 1px;
  margin-top: 1.35rem;
  background: linear-gradient(90deg, rgba(230, 92, 65, 0.54), rgba(42, 106, 97, 0.26), transparent);
  content: "";
}

.process-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(31, 37, 34, 0.12);
}

.process-list::before {
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 44px;
  width: 2px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(230, 92, 65, 0.72), rgba(42, 106, 97, 0.62), rgba(37, 99, 235, 0.5));
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.42);
  content: "";
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(31, 37, 34, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18) 46%, transparent 76%);
}

.process-list li::before {
  position: absolute;
  top: 1.78rem;
  left: 38px;
  width: 14px;
  height: 14px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 1px rgba(230, 92, 65, 0.35), 0 10px 22px -14px rgba(31, 37, 34, 0.45);
  content: "";
}

.process-list li:nth-child(2)::before {
  background: #d97706;
}

.process-list li:nth-child(3)::before {
  background: var(--teal);
}

.process-list li:nth-child(4)::before {
  background: #2563eb;
}

.process-list span {
  color: var(--coral);
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.process-list p {
  max-width: 720px;
  margin: 0.45rem 0 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  padding: clamp(2.25rem, 5vw, 4rem) 5vw 1.7rem;
  color: #dcebe5;
  background:
    linear-gradient(155deg, #07120f 0%, #0f261f 52%, #112c25 100%);
  border-top: 1px solid rgba(185, 242, 219, 0.24);
  font-size: 0.92rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, transparent 30%, rgba(94, 234, 212, 0.12) 50%, transparent 70%);
  transform: translateX(-65%);
  animation: footer-sheen 9s ease-in-out infinite;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 196, 83, 0.56), rgba(94, 234, 212, 0.5), transparent);
}

@keyframes footer-sheen {
  0%,
  42% {
    transform: translateX(-65%);
  }
  100% {
    transform: translateX(65%);
  }
}

.site-footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.45rem, 3vw, 2.15rem);
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.site-footer p,
.site-footer h2,
.site-footer h3 {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

.footer-kicker {
  color: #9ff2dc;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(185, 242, 219, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(94, 234, 212, 0.06));
  box-shadow: 0 22px 54px -38px rgba(0, 0, 0, 0.86);
}

.footer-cta h2 {
  margin-top: 0.18rem;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.08;
}

.footer-cta p:not(.footer-kicker) {
  max-width: 58ch;
  margin-top: 0.35rem;
  color: rgba(220, 235, 229, 0.78);
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.footer-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.74rem 1rem;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.footer-button:hover,
.footer-button:focus-visible {
  transform: translateY(-1px);
}

.site-footer .footer-button-primary {
  color: #041611;
  border-color: rgba(223, 252, 245, 0.92);
  background: linear-gradient(135deg, #f4fff9 0%, #c4f6e8 100%);
  box-shadow: 0 16px 32px -22px rgba(223, 252, 245, 0.92);
}

.site-footer .footer-button-primary:visited {
  color: #041611;
}

.site-footer .footer-button-primary:hover,
.site-footer .footer-button-primary:focus-visible {
  background: linear-gradient(135deg, #ffffff 0%, #d5fbef 100%);
  color: #041611;
}

.footer-button-secondary {
  color: #f7fffc;
  border-color: rgba(220, 252, 231, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.footer-button-secondary:hover,
.footer-button-secondary:focus-visible {
  border-color: rgba(246, 196, 83, 0.56);
  background: rgba(246, 196, 83, 0.12);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 1.08fr) minmax(120px, 0.58fr) minmax(140px, 0.68fr) minmax(560px, 1.95fr);
  gap: clamp(1.25rem, 2.4vw, 2rem);
  align-items: start;
}

.footer-brand,
.footer-group,
.footer-newsletter {
  min-width: 0;
}

.footer-brand {
  display: grid;
  gap: 0.85rem;
}

.footer-brand-mark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.72rem;
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 900;
  text-decoration: none;
}

.footer-brand-mark img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.24rem;
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.85);
}

.footer-brand p {
  max-width: 35ch;
  color: rgba(220, 235, 229, 0.74);
  font-size: 0.93rem;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(220, 252, 231, 0.16);
  border-radius: 999px;
  color: #c8f7e9;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: #ffffff;
  border-color: rgba(159, 242, 220, 0.48);
  background: rgba(94, 234, 212, 0.12);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 0.54rem;
}

.footer-group h3 {
  margin-bottom: 0.12rem;
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.2;
}

.footer-group a {
  width: fit-content;
  max-width: 100%;
  color: rgba(220, 235, 229, 0.68);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-engagement {
  display: grid;
  grid-template-columns: minmax(200px, 0.82fr) minmax(320px, 1.18fr);
  gap: 1rem;
  min-width: 0;
}

.footer-contact-link {
  display: grid;
  grid-template-columns: 1.05rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-contact-link span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer-contact-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.footer-newsletter {
  display: grid;
  gap: 0.72rem;
  padding: 1rem;
  border: 1px solid rgba(220, 252, 231, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: 0 18px 46px -34px rgba(0, 0, 0, 0.9);
}

.footer-newsletter h3 {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.32;
}

.footer-newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.footer-newsletter-form input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(220, 252, 231, 0.2);
  border-radius: 8px;
  padding: 0 0.85rem;
  color: #ffffff;
  background: rgba(3, 16, 13, 0.52);
  font: inherit;
  font-size: 0.88rem;
}

.footer-newsletter-form input::placeholder {
  color: rgba(220, 235, 229, 0.58);
}

.footer-newsletter-form button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 0;
  border-radius: 8px;
  padding: 0.68rem 0.82rem;
  color: #06221c;
  background: #dffcf5;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.footer-newsletter-form button:hover,
.footer-newsletter-form button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.footer-newsletter-form button svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.55fr) auto;
  gap: 1rem;
  align-items: center;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(220, 252, 231, 0.13);
  color: rgba(220, 235, 229, 0.68);
  font-size: 0.78rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.95rem;
}

.footer-legal a {
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #ffffff;
}

.footer-preferences {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.footer-language-select {
  max-width: 100%;
  height: 40px;
  border: 1px solid rgba(220, 252, 231, 0.18);
  border-radius: 8px;
  padding: 0 0.72rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.footer-language-select option {
  color: #1f2522;
}

.site-footer-theme .theme-toggle {
  min-height: 40px;
  border-radius: 8px;
  border-color: rgba(220, 252, 231, 0.18);
  padding: 0.32rem 0.55rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.site-footer-theme .theme-toggle:hover,
.site-footer-theme .theme-toggle:focus-visible {
  border-color: rgba(159, 242, 220, 0.48);
  background: rgba(94, 234, 212, 0.12);
}

.site-footer-theme .theme-toggle-track {
  border-color: rgba(220, 252, 231, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.footer-back-top {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(220, 252, 231, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.footer-back-top:hover,
.footer-back-top:focus-visible {
  border-color: rgba(246, 196, 83, 0.56);
  background: rgba(246, 196, 83, 0.12);
  transform: translateY(-1px);
}

.footer-back-top svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

@media (max-width: 1260px) {
  .footer-main {
    grid-template-columns: minmax(220px, 1.2fr) minmax(140px, 0.8fr) minmax(150px, 0.8fr);
  }

  .footer-engagement {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  }
}

@media (max-width: 820px) {
  .footer-cta,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-cta-actions,
  .footer-preferences {
    justify-content: flex-start;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand,
  .footer-engagement {
    grid-column: 1 / -1;
  }

  .footer-engagement {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 2.15rem 1rem 1.45rem;
  }

  .footer-cta,
  .footer-newsletter {
    padding: 0.9rem;
  }

  .footer-cta-actions,
  .footer-main,
  .footer-newsletter-form {
    grid-template-columns: 1fr;
  }

  .footer-button,
  .footer-newsletter-form button {
    width: 100%;
  }

  .footer-newsletter-form button {
    justify-self: stretch;
  }
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 3.9rem;
  }

  .hero-subheading {
    font-size: 1.08rem;
  }

  .section-heading h2 {
    font-size: 2.55rem;
  }

  .project-grid,
  .category-heading,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .repo-detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .repo-detail-hero-divider {
    display: none;
  }

  .repo-detail-hero-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .repo-detail-actions-panel {
    grid-column: 1 / -1;
  }

  .repo-framework-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repo-tech-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-heading p:not(.eyebrow) {
    margin: 0;
  }

  .project-card {
    min-height: 0;
  }

}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding: 0 1rem;
  }

  .repo-detail-main {
    width: min(calc(100% - 1rem), 740px);
  }

  .repo-detail-hero-sidebar {
    grid-template-columns: 1fr;
  }

  .repo-framework-grid,
  .repo-tech-highlights-grid {
    grid-template-columns: 1fr;
  }

  .brand-text {
    max-width: 210px;
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.25rem;
    padding: 0.65rem;
    background: var(--nav-menu-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 44px;
    padding: 0.7rem 0.85rem;
  }

  .site-nav .theme-toggle,
  .site-nav .lang-switcher {
    width: 100%;
    margin-right: 0;
  }

  .site-nav .theme-toggle,
  .site-nav .lang-switcher-summary {
    justify-content: center;
  }

  .accordion-trigger {
    grid-template-columns: 1fr;
  }

  .accordion-trigger strong {
    font-size: 1.22rem;
  }

  .accordion-count {
    width: fit-content;
  }

  .hero {
    min-height: auto;
    padding: 5rem 1rem 3.2rem;
  }

  .hero-content {
    max-width: calc(100vw - 2rem);
    padding: 1rem;
  }

  .hero-media {
    object-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.86) 58%, rgba(251, 250, 246, 0.46) 100%),
      linear-gradient(0deg, rgba(251, 250, 246, 0.58), rgba(251, 250, 246, 0.1));
  }

  .hero h1 {
    max-width: 9ch;
    font-size: 3rem;
  }

  .hero-subheading {
    max-width: 100%;
    margin-top: 0.7rem;
    padding-left: 0.8rem;
    font-size: 1rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project-submitted-details div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .project-submitted-actions {
    flex-direction: column;
  }

  .hero-points,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .hero-points {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-top: 1.5rem;
  }

  .hero-points div:nth-child(3) {
    grid-column: auto;
  }

  .hero-points div {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
    align-items: baseline;
  }

  .hero-points dt {
    font-size: 0.9rem;
  }

  .hero-points dd {
    margin: 0;
    font-size: 0.78rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .site-footer {
    padding: 2.15rem 1rem 1.45rem;
  }

  .section-work {
    padding-top: 2.5rem;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }

  .project-card,
  .capability-card {
    padding: 1rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 470px;
    aspect-ratio: 4 / 5;
  }

  .category-service-media {
    height: 108px;
    margin-bottom: 0.85rem;
  }

  .category-back {
    grid-template-rows: 140px minmax(0, 1fr);
    gap: 0.62rem;
    padding: 0.78rem;
  }

  .category-back-visual {
    padding: 0.6rem;
  }

  .category-back-points {
    gap: 0.3rem;
  }

  .category-back-points li,
  .category-proof-line {
    font-size: 0.77rem;
  }

  .category-back-cta {
    min-height: 2.15rem;
    font-size: 0.78rem;
  }

  .repo-grid {
    grid-template-columns: 1fr;
  }

  .repo-card {
    min-height: 0;
  }

  .detail-header {
    flex-direction: column;
  }

  .detail-header,
  .repo-detail-main {
    width: min(calc(100% - 1.5rem), 860px);
    margin-inline: auto;
  }

  .repo-detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .repo-detail-hero-divider {
    display: none;
  }

  .repo-detail-hero-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repo-detail-actions-panel {
    grid-column: 1 / -1;
  }

  .detail-meta,
  .detail-actions {
    align-items: stretch;
  }

  .detail-button,
  .detail-note {
    width: 100%;
    text-align: center;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .project-brief-page .detail-header {
    width: min(calc(100% - 1.5rem), 1180px);
    padding: 1.1rem 0 0.7rem;
  }

  .project-brief-page .project-brief-header__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    gap: 0.62rem 0.85rem;
  }

  .project-brief-page .project-brief-header__group--left,
  .project-brief-page .project-brief-header__group--right {
    justify-content: flex-start;
  }

  .project-brief-page .project-brief-header__group--center {
    justify-content: flex-start;
  }

  .project-brief-page .project-brief-header__group--left {
    grid-column: 1;
    grid-row: 1;
  }

  .project-brief-page .detail-header > .theme-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .project-brief-page .project-brief-header__group--center {
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
  }

  .project-brief-page .project-brief-header__group--right {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .project-brief-main {
    width: min(calc(100% - 1.5rem), 560px);
    margin-inline: auto;
  }

  .admin-main {
    width: min(calc(100% - 1.5rem), 560px);
    margin-inline: auto;
  }

  .project-brief-hero h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .admin-hero h1 {
    font-size: 2.4rem;
    line-height: 1;
  }

  .form-stepper {
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .form-stepper li {
    min-width: 110px;
  }

  .draft-utility {
    align-items: stretch;
  }

  .draft-clear-button {
    width: 100%;
  }

  .admin-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-submission-header {
    flex-direction: column;
  }

  .admin-submission-meta,
  .admin-audit-meta,
  .admin-submission-excerpts,
    .admin-detail-grid,
    .admin-submission-filters,
    .admin-bulk-actions,
    .admin-pagination,
    .admin-audit-filters,
    .admin-retention-form {
      grid-template-columns: 1fr;
  }

  .admin-submission-actions,
  .admin-submission-filter-actions,
  .admin-audit-filter-actions,
  .admin-resend-button {
    width: 100%;
  }

  .admin-bulk-actions .button {
    width: 100%;
  }

  .admin-pagination .button {
    width: 100%;
  }

  .admin-pagination-status {
    white-space: normal;
  }

  .admin-submission-filter-actions .button {
    width: 100%;
  }

  .confirmation-actions {
    flex-direction: column-reverse;
  }

  .confirmation-actions .button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field {
    grid-column: 1 / -1;
  }

  .form-field:nth-child(2) {
    border-top: 1px solid rgba(31, 37, 34, 0.12);
    padding-top: 1rem;
  }

  .project-type-options {
    grid-template-columns: 1fr;
  }

  .project-plan-controls {
    grid-template-columns: 1fr;
  }

  .review-summary {
    grid-template-columns: 1fr;
  }

  .review-section-header {
    flex-direction: column;
  }

  .review-edit-button {
    width: 100%;
  }

  .review-detail-list {
    grid-template-columns: 1fr;
  }

  .review-detail:nth-child(2) {
    border-top: 1px solid rgba(31, 37, 34, 0.08);
  }

  .review-detail-wide {
    grid-column: auto;
  }

  .budget-control {
    flex-direction: column;
  }

  .phone-control {
    flex-direction: column;
  }

  .phone-control select,
  .phone-control button {
    flex-basis: auto;
  }

  .calendar-widget {
    width: 100%;
    padding: 0.7rem;
  }

  .calendar-header {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .calendar-nav {
    width: 38px;
    height: 38px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 0.25rem;
  }

  .calendar-day {
    min-height: 38px;
    font-size: 0.8rem;
  }

  .budget-control select {
    flex-basis: auto;
  }

  .assistant-tool-button {
    flex: 1 1 100%;
  }

  .upload-list li {
    flex-direction: column;
    gap: 0.15rem;
  }

  .repo-detail-hero h1 {
    font-size: 1.9rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .category-count {
    font-size: 2.45rem;
  }

  .process-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

@media (max-width: 380px) {
  .brand-text {
    max-width: 160px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .section-heading h2 {
    font-size: 1.85rem;
  }
}

@media (max-width: 480px) {
  .project-brief-page .detail-header {
    width: min(calc(100% - 1rem), 560px);
    padding: 0.95rem 0 0.7rem;
  }

  .project-brief-page .project-brief-header__inner {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 0.75rem;
  }

  .project-brief-page .project-brief-header__group--left,
  .project-brief-page .project-brief-header__group--center,
  .project-brief-page .project-brief-header__group--right {
    flex-wrap: wrap;
  }

  .project-brief-page .detail-header > .theme-toggle {
    justify-self: end;
    width: auto;
  }

  .project-brief-page .project-brief-header__group--left {
    grid-row: 1;
  }

  .project-brief-page .project-brief-header__group--center,
  .project-brief-page .project-brief-header__group--right {
    grid-row: 2;
  }

  .project-brief-page .project-brief-header__group--center {
    justify-content: flex-start;
  }

  .project-brief-page .project-brief-header__group--right {
    justify-content: flex-start;
    grid-column: 2;
    grid-row: 2;
  }

  .detail-header,
  .repo-detail-main {
    width: min(calc(100% - 1rem), 560px);
  }

  .repo-detail-hero h1 {
    font-size: clamp(2rem, 10vw, 2.3rem);
    max-width: none;
    line-height: 1.08;
  }

  .repo-detail-hero-grid {
    gap: 1rem;
  }

  .repo-detail-hero-sidebar {
    grid-template-columns: 1fr;
  }

  .repo-framework-grid {
    grid-template-columns: 1fr;
  }

  .repo-tech-highlights-grid {
    grid-template-columns: 1fr;
  }

  .repo-evidence-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .detail-panel {
    padding: 1rem;
  }
}

/* Authentication Page Styles */
.auth-page {
  background-color: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-container {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 450px;
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  border: none;
  background: none;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-tab.active {
  color: var(--teal);
  background: rgba(39, 93, 85, 0.05);
  box-shadow: inset 0 -2px 0 var(--teal);
}

.auth-section {
  padding: 2rem;
}

.auth-form h2 {
  margin: 0 0 0.5rem;
  font-family: Georgia, serif;
  color: var(--ink);
}

.auth-form p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-submit {
  width: 100%;
  margin-top: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--line);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.auth-divider span {
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--muted);
}

.auth-passkey {
  width: 100%;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.social-logins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.social-login-btn {
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.social-login-btn:hover {
  background: var(--paper);
}

.social-login-btn.google { border-color: #DB4437; color: #DB4437; }
.social-login-btn.facebook { border-color: #4267B2; color: #4267B2; }
.social-login-btn.apple { border-color: #000; color: #000; }

.auth-page.embedded-auth .site-header,
.auth-page.embedded-auth .site-footer {
  display: none;
}

.auth-page.embedded-auth .auth-main {
  min-height: 100vh;
  padding: 0.75rem;
}

.auth-page.embedded-auth .auth-container {
  width: min(790px, calc(100vw - 1rem));
  padding: 0.95rem;
}

.auth-page.embedded-auth .auth-decoration {
  display: none;
}

.auth-main {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(0.9rem, 3vw, 1.25rem) clamp(1.25rem, 3.5vw, 2rem);
}

.auth-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.auth-star {
  position: absolute;
  left: var(--x);
  bottom: -1.6rem;
  width: calc(0.24rem + (var(--size) * 0.22rem));
  height: calc(0.24rem + (var(--size) * 0.22rem));
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 30%, rgba(125, 211, 252, 0.95) 45%, rgba(56, 189, 248, 0.5) 60%, transparent 76%);
  box-shadow:
    0 0 10px rgba(125, 211, 252, 0.82),
    0 0 24px rgba(56, 189, 248, 0.32);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1);
  animation:
    auth-rise var(--duration) linear infinite,
    auth-twinkle 2.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.auth-star::before {
  content: "";
  position: absolute;
  inset: -0.65rem;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.62), transparent 68%);
  filter: blur(1px);
  opacity: 0.7;
}

.auth-node {
  position: absolute;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.75);
  animation: auth-pulse 4s ease-in-out infinite;
}

.auth-node-a {
  top: 6rem;
  right: 18%;
}

.auth-node-b {
  top: 20rem;
  left: 12%;
  animation-delay: -1.6s;
}

.auth-container {
  position: relative;
  z-index: 1;
}

.auth-container {
  width: min(790px, calc(100vw - 1rem));
  max-width: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-strong);
  box-shadow: var(--shadow-lg);
  padding: clamp(0.95rem, 1.5vw, 1.25rem);
}

.auth-intro {
  display: grid;
  gap: 0.5rem;
}

.auth-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.auth-intro-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-lede {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(39, 93, 85, 0.05);
}

.auth-tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-tab:hover,
.auth-tab:focus-visible {
  transform: translateY(-1px);
}

.auth-tab.active {
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.auth-section {
  margin-top: 0.8rem;
}

.auth-form {
  display: grid;
  gap: 0.8rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.auth-field {
  display: grid;
  gap: 0.5rem;
  color: var(--ink);
}

.auth-field > span {
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 0.95rem 1rem;
}

.auth-field input::placeholder {
  color: #7a837f;
}

.auth-field input:focus {
  border-color: rgba(39, 93, 85, 0.45);
  outline: 2px solid rgba(39, 93, 85, 0.18);
  outline-offset: 2px;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 3rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
  cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: rgba(39, 93, 85, 0.08);
  color: var(--ink);
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--teal);
}

.auth-submit {
  justify-self: start;
}

.auth-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-social {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.auth-social-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-social-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.auth-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 42px;
  border: 1px solid rgba(31, 37, 34, 0.12);
  border-radius: 14px;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.auth-social-button:hover,
.auth-social-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(39, 93, 85, 0.28);
  background: rgba(39, 93, 85, 0.08);
}

.auth-social-icon {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

.auth-social-icon-google {
  color: #f8fafc;
  background: linear-gradient(135deg, #ea4335 0%, #fbbc05 33%, #34a853 66%, #4285f4 100%);
}

.auth-social-icon-linkedin {
  color: #eff6ff;
  background: #0a66c2;
}

.auth-social-icon-github {
  color: #f8fafc;
  background: #111827;
}

.auth-social-button.google {
  color: var(--ink);
}

.auth-social-button.linkedin {
  color: var(--ink);
}

.auth-social-button.github {
  color: var(--ink);
}

.auth-status {
  min-height: 1.25rem;
  grid-area: status;
  margin: 0;
  color: var(--muted);
}

.auth-status[data-state="error"] {
  color: var(--coral);
}

/* Verification Page */
.verification-hero {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 1.25rem;
  padding: 1.25rem 0 0.5rem;
}

.verification-orbit {
  position: absolute;
  inset: 0.5rem 15% 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 28%, rgba(56, 189, 248, 0.22), transparent 22%),
    radial-gradient(circle at 78% 26%, rgba(34, 197, 94, 0.2), transparent 20%),
    radial-gradient(circle at 50% 72%, rgba(37, 99, 235, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  filter: blur(2px);
  opacity: 0.9;
}

.verification-card {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.verification-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 1rem 1rem 0;
}

.verification-badge,
.verification-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.verification-badge {
  color: var(--teal);
  background: rgba(39, 93, 85, 0.08);
  border: 1px solid rgba(39, 93, 85, 0.18);
}

.verification-status-pill {
  color: var(--teal-deep);
  background: rgba(226, 179, 73, 0.18);
  border: 1px solid rgba(226, 179, 73, 0.22);
}

.verification-card-body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1rem 1.25rem;
}

.verification-kicker {
  margin: 0;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.verification-card-body h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.05;
}

.verification-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@keyframes auth-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -74vh, 0) scale(1.05);
  }
}

@keyframes auth-twinkle {
  0%,
  100% {
    filter: brightness(0.92);
  }

  50% {
    filter: brightness(1.22);
  }
}

@keyframes auth-pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.9;
  }
}

@keyframes auth-gate-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-container {
    padding: 1rem;
  }

  .verification-hero {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .verification-orbit {
    inset: 0.25rem 4% 0;
    border-radius: 20px;
  }

  .verification-card-top {
    align-items: flex-start;
  }

  .verification-card-body {
    padding: 0.9rem 0.9rem 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .category-card-inner {
    transition-duration: 0.01ms;
  }

  .admin-panel,
  .admin-copy-toast {
    transition: none !important;
  }

  .admin-copy-toast {
    transform: none !important;
  }

  .admin-copy-toast.is-visible {
    transform: none !important;
  }

  .auth-social-button {
    transition: none !important;
  }

  .hero::before,
  .hero::after,
  .hero-content {
    animation: none !important;
  }
}

@media print {
  @page {
    margin: 0.65in;
  }

  body,
  .project-brief-page {
    color: #111;
    background: #fff;
  }

  .skip-link,
  .detail-header,
  .project-brief-hero,
  .form-stepper,
  .draft-utility,
  .form-actions,
  .form-status,
  .site-footer,
  .confirmation-modal {
    display: none !important;
  }

  .project-brief-main {
    width: 100%;
    padding: 0;
  }

  .project-form {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: #fff;
    box-shadow: none;
  }

  .form-step:not(.is-active) {
    display: none !important;
  }

  .form-step-heading {
    border-bottom: 2px solid #111;
    margin-bottom: 0.35in;
    padding-bottom: 0.12in;
  }

  .form-step-heading p,
  .step-inline-summary {
    display: none;
  }

  .form-step-heading h2 {
    color: #111;
    font-size: 24pt;
  }

  .review-summary {
    gap: 0.18in;
  }

  .review-section {
    break-inside: avoid;
    border: 1px solid #bbb;
    background: #fff;
  }

  .review-section-header {
    border-bottom: 1px solid #bbb;
    padding: 0.14in;
    background: #f5f5f5;
  }

  .review-section-title p {
    color: #555;
  }

  .review-section h3 {
    color: #111;
    font-size: 15pt;
  }

  .review-edit-button {
    display: none;
  }

  .review-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-detail {
    border-top-color: #ddd;
    padding: 0.12in 0.14in;
  }

  .review-detail dt,
  .review-detail dd {
    color: #111;
  }
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Floating Social Media Buttons */
.social-sidebar {
  position: fixed;
  bottom: 24px;
  right: 84px; /* Positioned to the left of the chatbot toggle */
  z-index: 1000;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-button:hover {
  background-color: var(--teal);
  color: var(--on-accent);
  transform: translateY(-8px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.social-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .social-sidebar {
    bottom: 15px;
    right: 70px;
    gap: 8px;
  }

  .social-button {
    width: 40px;
    height: 40px;
  }
}

/* Chatbot UI */
.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 1001;
  width: 380px;
  max-width: calc(100vw - 48px);
  display: flex;
  flex-direction: column;
  background-color: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(30px) scale(0.95);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
}

.chatbot-container.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  padding: 12px 16px;
  background-color: var(--teal);
  color: var(--on-teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1rem;
  font-family: Georgia, serif;
}

.chatbot-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-new-chat,
.chatbot-handoff {
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 0.7rem;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.9;
}

.chatbot-new-chat:hover,
.chatbot-handoff:hover {
  opacity: 1;
}

.chatbot-new-chat:disabled,
.chatbot-handoff:disabled {
  opacity: 0.5;
  cursor: default;
}

.chatbot-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--green-soft);
  color: var(--ink);
  font-size: 0.82rem;
}

.chatbot-banner-confirm,
.chatbot-banner-dismiss {
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}

.chatbot-banner-confirm {
  background-color: var(--teal);
  color: var(--on-teal);
}

.chatbot-banner-dismiss {
  background: none;
  color: inherit;
  text-decoration: underline;
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  max-height: 560px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  max-width: 85%;
  line-height: 1.4;
}

.chat-message.bot {
  background-color: var(--green-soft);
  align-self: flex-start;
  color: var(--ink);
}

.chat-message.bot p {
  margin: 0 0 0.5em;
}

.chat-message.bot p:last-child {
  margin-bottom: 0;
}

.chat-message.bot ul,
.chat-message.bot ol {
  margin: 0 0 0.5em;
  padding-left: 1.2em;
}

.chat-message.bot ul:last-child,
.chat-message.bot ol:last-child {
  margin-bottom: 0;
}

.chat-message.bot li {
  margin: 0.15em 0;
}

.chat-message-feedback {
  display: flex;
  gap: 6px;
  margin-top: -6px;
  align-self: flex-start;
}

.chat-message-feedback button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.55;
  padding: 0 2px;
}

.chat-message-feedback button:hover:not(:disabled) {
  opacity: 0.9;
}

.chat-message-feedback button.is-selected {
  opacity: 1;
}

.chat-message-feedback button:disabled {
  cursor: default;
}

.chat-message.bot strong {
  font-weight: 800;
}

.chat-message.bot code {
  background: rgba(39, 93, 85, 0.12);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.88em;
}

.chat-message.user {
  background-color: var(--teal);
  color: var(--on-teal);
  align-self: flex-end;
}

.chatbot-input-area {
  padding: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
}

.chatbot-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
}

.chatbot-send {
  background-color: var(--teal);
  color: var(--on-teal);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--on-accent);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-toggle:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-xl);
}

.chatbot-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .chatbot-container {
    bottom: 80px;
    right: 15px;
    width: calc(100vw - 30px);
    max-height: 70vh;
  }

  .chatbot-toggle {
    bottom: 15px;
    right: 15px;
  }
}

html[data-theme="dark"] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 17, 15, 0.92) 0%, rgba(7, 17, 15, 0.78) 42%, rgba(7, 17, 15, 0.18) 76%),
    linear-gradient(0deg, rgba(7, 17, 15, 0.58), rgba(7, 17, 15, 0.08));
}

html[data-theme="dark"] .hero-content,
html[data-theme="dark"] .hero-points div {
  border-color: rgba(220, 252, 231, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03) 42%, transparent 70%),
    var(--surface);
}

html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .hero-subheading,
html[data-theme="dark"] .project-list li,
html[data-theme="dark"] .repo-card p,
html[data-theme="dark"] .detail-note,
html[data-theme="dark"] .repo-source-note {
  color: var(--muted);
}

html[data-theme="dark"] .section-work {
  background:
    radial-gradient(circle at top left, rgba(94, 234, 212, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(12, 24, 21, 0.98), rgba(15, 27, 24, 0.94));
}

html[data-theme="dark"] .section-categories {
  background:
    radial-gradient(circle at top right, rgba(94, 234, 212, 0.12), transparent 30%),
    linear-gradient(180deg, #0d1714 0%, #121f1b 100%);
}

html[data-theme="dark"] .section-process {
  background:
    linear-gradient(122deg, rgba(94, 234, 212, 0.12) 0%, rgba(94, 234, 212, 0.03) 32%, transparent 54%),
    linear-gradient(248deg, rgba(251, 128, 102, 0.13) 0%, rgba(251, 128, 102, 0.04) 34%, transparent 58%),
    linear-gradient(180deg, #0c1512 0%, #101d19 48%, #0d1714 100%);
}

html[data-theme="dark"] .category-service-media,
html[data-theme="dark"] .category-back-visual,
html[data-theme="dark"] .proof-browser,
html[data-theme="dark"] .proof-kpi-row span,
html[data-theme="dark"] .proof-quality-top,
html[data-theme="dark"] .proof-chat,
html[data-theme="dark"] .proof-ai-flow,
html[data-theme="dark"] .category-back-points li,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .capability-card,
html[data-theme="dark"] .repo-capability-card,
html[data-theme="dark"] .repo-card,
html[data-theme="dark"] .detail-panel,
html[data-theme="dark"] .repo-detail-hero-panel,
html[data-theme="dark"] .repo-tech-highlight-card,
html[data-theme="dark"] .project-form,
html[data-theme="dark"] .project-submitted-card,
html[data-theme="dark"] .form-stepper li,
html[data-theme="dark"] .project-plan-row,
html[data-theme="dark"] .calendar-widget,
html[data-theme="dark"] .upload-scan-status,
html[data-theme="dark"] .upload-list li,
html[data-theme="dark"] .review-section,
html[data-theme="dark"] .admin-status,
html[data-theme="dark"] .admin-empty-state,
html[data-theme="dark"] .admin-overview-card,
html[data-theme="dark"] .admin-submission-card,
html[data-theme="dark"] .admin-audit-card,
html[data-theme="dark"] .confirmation-modal-panel,
html[data-theme="dark"] .chatbot-container,
html[data-theme="dark"] .social-button {
  border-color: var(--line);
  background: var(--paper-strong);
  color: var(--ink);
}

html[data-theme="dark"] .category-back {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(var(--card-accent-rgb), 0.22), rgba(22, 35, 31, 0.92) 44%),
    var(--paper-strong);
}

html[data-theme="dark"] .category-proof-line,
html[data-theme="dark"] .budget-total,
html[data-theme="dark"] .draft-utility,
html[data-theme="dark"] .confirmation-document-checklist,
html[data-theme="dark"] .admin-bulk-actions,
html[data-theme="dark"] .admin-submission-excerpts p,
html[data-theme="dark"] .admin-file-list,
html[data-theme="dark"] .admin-detail-grid > div,
html[data-theme="dark"] .admin-detail-text p,
html[data-theme="dark"] .email-fallback-status,
html[data-theme="dark"] .project-submitted-details {
  border-color: rgba(94, 234, 212, 0.18);
  background: var(--soft-tint-bg);
  color: var(--ink);
}

html[data-theme="dark"] .category-tags li,
html[data-theme="dark"] .repo-tags li,
html[data-theme="dark"] .detail-tag-list li,
html[data-theme="dark"] .detail-signal-list li,
html[data-theme="dark"] .repo-evidence-tags li,
html[data-theme="dark"] .detail-meta span,
html[data-theme="dark"] .project-meta span,
html[data-theme="dark"] .form-stepper small,
html[data-theme="dark"] .phone-list li {
  border-color: rgba(220, 252, 231, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

html[data-theme="dark"] .form-stepper li.is-complete {
  border-color: rgba(94, 234, 212, 0.32);
  color: #ccfbf1;
  background: rgba(20, 184, 166, 0.12);
}

html[data-theme="dark"] .form-stepper li.is-incomplete {
  border-color: rgba(248, 113, 113, 0.52);
  color: #fecaca;
  background: rgba(248, 113, 113, 0.14);
}

html[data-theme="dark"] .form-stepper li.is-active.is-incomplete {
  border-color: rgba(248, 113, 113, 0.62);
  color: #fee2e2;
  background: rgba(248, 113, 113, 0.2);
}

html[data-theme="dark"] .form-stepper li.is-complete small {
  color: #86efac;
  background: rgba(20, 184, 166, 0.2);
}

html[data-theme="dark"] .form-stepper li.is-incomplete small {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.26);
}

html[data-theme="dark"] .form-stepper li.is-active.is-incomplete small {
  color: #fee2e2;
  background: rgba(248, 113, 113, 0.34);
}

html[data-theme="dark"] .category-card:hover .category-face,
html[data-theme="dark"] .category-card:focus .category-face,
html[data-theme="dark"] .category-card:focus-within .category-face,
html[data-theme="dark"] .repo-card:hover,
html[data-theme="dark"] .repo-card:focus-within,
html[data-theme="dark"] .admin-overview-card:hover,
html[data-theme="dark"] .admin-overview-card:focus-visible {
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.74);
}

html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .form-field input:not([type="checkbox"]):not([type="hidden"]),
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .form-field textarea,
html[data-theme="dark"] .admin-submission-filters select,
html[data-theme="dark"] .admin-submission-filters input,
html[data-theme="dark"] .admin-audit-filters select,
html[data-theme="dark"] .admin-audit-filters input,
html[data-theme="dark"] .admin-retention-form select,
html[data-theme="dark"] .admin-retention-form input,
html[data-theme="dark"] .admin-bulk-actions select,
html[data-theme="dark"] .admin-pagination select,
html[data-theme="dark"] .chatbot-input {
  border-color: var(--field-border);
  color: var(--ink);
  background: var(--field-bg);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(182, 197, 191, 0.72);
}

html[data-theme="dark"] .project-type-option,
html[data-theme="dark"] .step-inline-summary,
html[data-theme="dark"] .admin-submission-filters,
html[data-theme="dark"] .admin-audit-filters,
html[data-theme="dark"] .admin-retention-form,
html[data-theme="dark"] .admin-pagination {
  border-color: var(--line);
  background: var(--soft-panel-bg);
  color: var(--ink);
}

html[data-theme="dark"] .step-inline-summary.is-incomplete,
html[data-theme="dark"] .upload-scan-status.is-pending,
html[data-theme="dark"] .upload-scan-status.is-dragging,
html[data-theme="dark"] .upload-scan-status.is-scanning,
html[data-theme="dark"] .admin-notification-badge.is-unconfigured {
  border-color: rgba(246, 196, 83, 0.32);
  background: rgba(246, 196, 83, 0.1);
  color: #fde68a;
}

html[data-theme="dark"] .submission-status-card.is-success,
html[data-theme="dark"] .upload-scan-status.is-accepted {
  border-color: rgba(94, 234, 212, 0.26);
  background: rgba(20, 184, 166, 0.14);
  color: #ccfbf1;
}

html[data-theme="dark"] .submission-status-card.is-error,
html[data-theme="dark"] .upload-scan-status.is-blocked,
html[data-theme="dark"] .upload-list li.is-blocked {
  border-color: rgba(251, 128, 102, 0.32);
  background: rgba(251, 128, 102, 0.12);
  color: #fecaca;
}

html[data-theme="dark"] .site-footer {
  background:
    linear-gradient(180deg, rgba(16, 29, 25, 0.98), rgba(10, 18, 16, 0.98)),
    var(--paper);
  border-top-color: var(--line);
}


@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-toggle-thumb {
    transition: none !important;
  }
}

/* Auth page polish */
.auth-page {
  --auth-bg: #052018;
  --auth-bg-deep: #03150f;
  --auth-card: rgba(6, 33, 24, 0.9);
  --auth-card-strong: rgba(244, 255, 249, 0.98);
  --auth-panel: rgba(9, 73, 50, 0.68);
  --auth-border: rgba(167, 243, 208, 0.24);
  --auth-border-strong: rgba(110, 231, 183, 0.5);
  --auth-text: #f4fff9;
  --auth-muted: #bddfce;
  --auth-form-text: #153528;
  --auth-form-muted: #5d7569;
  --auth-accent: #34d399;
  --auth-accent-strong: #10b981;
  --auth-accent-deep: #047857;
  --auth-error: #b42318;
  --auth-error-soft: #fef3f2;
  --auth-success: #027a48;
  min-height: 100dvh;
  color: var(--auth-text);
  background:
    linear-gradient(120deg, rgba(52, 211, 153, 0.1) 0 1px, transparent 1px 46px),
    linear-gradient(30deg, rgba(167, 243, 208, 0.08) 0 1px, transparent 1px 52px),
    linear-gradient(145deg, #03150f 0%, #063823 54%, #09251b 100%);
}

.auth-page .site-header {
  background: rgba(3, 21, 15, 0.86);
  border-bottom-color: rgba(167, 243, 208, 0.16);
}

.auth-page .brand,
.auth-page .site-nav a {
  color: #ecfdf5;
}

.auth-page .site-nav a:hover,
.auth-page .site-nav a.is-active {
  color: #ffffff;
  background: rgba(52, 211, 153, 0.14);
}

.auth-page .nav-toggle {
  border-color: rgba(167, 243, 208, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.auth-page .nav-toggle span {
  background: #ecfdf5;
}

html[data-theme="light"] .auth-page {
  color: var(--ink);
  background: var(--body-background);
}

html[data-theme="light"] .auth-page .site-header {
  background: var(--header-bg);
  border-bottom-color: var(--header-border);
}

html[data-theme="light"] .auth-page .brand,
html[data-theme="light"] .auth-page .site-nav a {
  color: var(--ink);
}

html[data-theme="light"] .auth-page .site-nav a:hover,
html[data-theme="light"] .auth-page .site-nav a.is-active {
  color: var(--ink);
  background: var(--nav-hover-bg);
}

html[data-theme="light"] .auth-page .nav-toggle {
  border-color: var(--line);
  background: var(--paper-strong);
}

html[data-theme="light"] .auth-page .nav-toggle span {
  background: var(--ink);
}

.auth-main {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2rem);
  overflow: visible;
}

.auth-decoration {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(236, 253, 245, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(236, 253, 245, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.32;
  overflow: hidden;
}

.auth-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(420px, 540px);
  width: min(1040px, 100%);
  max-width: 1040px;
  min-height: 0;
  padding: 0;
  overflow: visible;
  color: var(--auth-text);
  border: 1px solid var(--auth-border);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--auth-card);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

.auth-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 19px 0 0 19px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 95, 70, 0.5)),
    var(--auth-panel);
}

.auth-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.auth-card-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.auth-brand-copy,
.auth-trust-list {
  display: grid;
  gap: 0.85rem;
}

.auth-kicker {
  margin: 0;
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-brand-heading {
  max-width: 12ch;
  margin: 0;
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.auth-brand-copy p,
.auth-trust-list {
  max-width: 34ch;
  margin: 0;
  color: var(--auth-muted);
}

.auth-trust-list {
  list-style: none;
  padding: 0;
}

.auth-trust-list li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: #d1fae5;
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-trust-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(167, 243, 208, 0.35);
}

.auth-trust-icon::after {
  content: "";
  width: 0.42rem;
  height: 0.24rem;
  border-left: 2px solid #a7f3d0;
  border-bottom: 2px solid #a7f3d0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.auth-form-panel {
  display: grid;
  align-content: center;
  gap: 1rem;
  min-width: 0;
  max-width: 560px;
  width: 100%;
  justify-self: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--auth-form-text);
  border-radius: 0 19px 19px 0;
  background: var(--auth-card-strong);
}

.auth-intro {
  display: grid;
  gap: 0.35rem;
}

.auth-intro-title {
  margin: 0;
  color: var(--auth-form-text);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-lede {
  max-width: 46ch;
  margin: 0;
  color: var(--auth-form-muted);
  line-height: 1.55;
}

.auth-tabs,
.auth-section,
.auth-form,
.auth-social,
.auth-status {
  width: 100%;
  max-width: 520px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 0.35rem 0 0;
  padding: 0.25rem;
  border: 1px solid rgba(4, 120, 87, 0.16);
  border-radius: 10px;
  background: #ecfdf5;
}

.auth-tab {
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #47675a;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.auth-tab:hover {
  color: var(--auth-accent-deep);
  background: rgba(16, 185, 129, 0.08);
}

.auth-tab:focus-visible {
  outline: 3px solid rgba(52, 211, 153, 0.45);
  outline-offset: 2px;
}

.auth-tab.active {
  color: #033d2a;
  border-color: rgba(4, 120, 87, 0.18);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(4, 120, 87, 0.12);
}

.auth-section {
  margin-top: 0.15rem;
}

.auth-section[hidden] {
  display: none;
}

.auth-form {
  display: grid;
  gap: 0.8rem;
}

.auth-field {
  display: grid;
  gap: 0.38rem;
  color: var(--auth-form-text);
}

.auth-field label,
.auth-label-row label {
  color: #244537;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-link,
.auth-check a {
  color: #047857;
  font-weight: 800;
  text-decoration: none;
}

.auth-link:hover,
.auth-check a:hover {
  text-decoration: underline;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 0.78rem 0.9rem;
  color: var(--auth-form-text);
  border: 1px solid rgba(5, 95, 70, 0.22);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.auth-field input::placeholder {
  color: #8ca099;
}

.auth-field input:hover {
  border-color: rgba(5, 150, 105, 0.42);
}

.auth-field input:focus {
  border-color: var(--auth-accent-strong);
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(52, 211, 153, 0.24),
    0 1px 0 rgba(6, 95, 70, 0.04);
}

.auth-field input[aria-invalid="true"] {
  border-color: #d92d20;
  background: var(--auth-error-soft);
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.auth-field input:disabled {
  color: #6b7b74;
  background: #f3f7f5;
  cursor: not-allowed;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 3rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: #376052;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.auth-password-toggle:hover {
  color: #034d35;
  background: #ecfdf5;
}

.auth-password-toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.35);
}

.auth-eye {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-eye-closed,
.auth-password-toggle.is-revealed .auth-eye-open {
  display: none;
}

.auth-password-toggle.is-revealed .auth-eye-closed {
  display: block;
}

.auth-check {
  position: relative;
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.62rem;
  align-items: start;
  color: var(--auth-form-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-check input {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  opacity: 0;
}

.auth-check-mark {
  position: relative;
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  border: 1px solid rgba(5, 95, 70, 0.34);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.05);
}

.auth-check input:checked + .auth-check-mark {
  border-color: var(--auth-accent-deep);
  background: var(--auth-accent-deep);
}

.auth-check input:checked + .auth-check-mark::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.18rem;
  width: 0.3rem;
  height: 0.55rem;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.auth-check input:focus-visible + .auth-check-mark {
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28);
}

.auth-error {
  min-height: 1rem;
  color: var(--auth-error);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.auth-check-error {
  margin-top: -0.55rem;
}

.auth-submit {
  position: relative;
  justify-self: stretch;
  width: 100%;
  min-height: 48px;
  margin-top: 0.2rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  box-shadow: 0 18px 30px -16px rgba(4, 120, 87, 0.78);
}

.auth-submit:hover:not(:disabled) {
  box-shadow: 0 22px 34px -16px rgba(4, 120, 87, 0.86);
}

.auth-submit:focus-visible {
  outline: 3px solid rgba(52, 211, 153, 0.5);
  outline-offset: 3px;
}

.auth-submit:disabled {
  opacity: 0.62;
  filter: saturate(0.68);
}

.auth-form.is-loading .auth-submit {
  opacity: 1;
}

.auth-help {
  margin: 0;
  color: var(--auth-form-muted);
  font-size: 0.88rem;
}

.auth-social {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(5, 95, 70, 0.14);
}

.auth-social-label {
  margin: 0;
  color: var(--auth-form-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.auth-social-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.auth-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 40px;
  padding: 0.55rem 0.6rem;
  color: #204539;
  border: 1px solid rgba(5, 95, 70, 0.16);
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.auth-social-button:hover,
.auth-social-button:focus-visible {
  color: #033d2a;
  border-color: rgba(4, 120, 87, 0.34);
  background: #ecfdf5;
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.1);
}

.auth-social-icon {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  color: #064e3b;
  border-radius: 999px;
  background: #d1fae5;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
}

.auth-social-icon-linkedin {
  color: #ffffff;
  background: #0a66c2;
}

.auth-social-icon-github {
  color: #ffffff;
  background: #111827;
}

.auth-status {
  min-height: 1.35rem;
  grid-area: auto;
  margin: 0;
  color: var(--auth-form-muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.auth-status[data-state="error"] {
  color: var(--auth-error);
}

.auth-status[data-state="loading"] {
  color: #047857;
}

.auth-status[data-state="success"] {
  color: var(--auth-success);
}

.auth-page.embedded-auth .site-header,
.auth-page.embedded-auth .site-footer {
  display: none;
}

.auth-page.embedded-auth .auth-main {
  min-height: 100dvh;
  padding: 1rem;
}

.auth-page.embedded-auth .auth-container {
  grid-template-columns: 1fr;
  width: min(560px, 100%);
  max-width: 560px;
}

.auth-page.embedded-auth .auth-brand-panel,
.auth-page.embedded-auth .auth-decoration {
  display: none;
}

.auth-page.embedded-auth .auth-form-panel {
  border-radius: 19px;
}

@media (max-width: 900px) {
  .auth-main {
    align-items: flex-start;
    padding-top: clamp(1.25rem, 5vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 6vw, 3rem);
  }

  .auth-container {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .auth-brand-panel {
    gap: 1.4rem;
    border-radius: 19px 19px 0 0;
  }

  .auth-brand-heading {
    max-width: 16ch;
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .auth-trust-list {
    max-width: none;
  }

  .auth-form-panel {
    max-width: none;
    border-radius: 0 0 19px 19px;
  }
}

@media (max-width: 560px) {
  .auth-main {
    min-height: auto;
    padding: 1rem;
  }

  .auth-container {
    border-radius: 16px;
  }

  .auth-brand-panel,
  .auth-form-panel {
    padding: 1.25rem;
  }

  .auth-brand-panel {
    border-radius: 15px 15px 0 0;
  }

  .auth-form-panel {
    border-radius: 0 0 15px 15px;
  }

  .auth-social-buttons {
    grid-template-columns: 1fr;
  }

  .auth-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}
