@font-face {
  font-family: "ES Klarheit Kurrent";
  src:
    local("ES Klarheit Kurrent Regular TRIAL"),
    local("ES Klarheit Kurrent TRIAL"),
    url("https://cdn.pvdesignusa.com/global/fonts/ES%20Klarheit%20Kurrent%20-%20Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ES Klarheit Kurrent TRIAL";
  src:
    local("ES Klarheit Kurrent Regular TRIAL"),
    local("ES Klarheit Kurrent TRIAL"),
    url("https://cdn.pvdesignusa.com/global/fonts/ES%20Klarheit%20Kurrent%20-%20Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ES Klarheit Grotesk";
  src:
    local("ES Klarheit Grotesk Book TRIAL"),
    local("ES Klarheit Grotesk TRIAL Book"),
    url("https://cdn.pvdesignusa.com/global/fonts/ES%20Klarheit%20Grotesk%20-%20Book.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ES Klarheit Grotesk TRIAL Book";
  src:
    local("ES Klarheit Grotesk Book TRIAL"),
    local("ES Klarheit Grotesk TRIAL Book"),
    url("https://cdn.pvdesignusa.com/global/fonts/ES%20Klarheit%20Grotesk%20-%20Book.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ES Klarheit Grotesk Semibold";
  src:
    local("ES Klarheit Grotesk Semibold TRIAL"),
    local("ES Klarheit Grotesk TRIAL SmBd"),
    url("https://cdn.pvdesignusa.com/global/fonts/ES%20Klarheit%20Grotesk%20-%20Semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "ES Klarheit Grotesk Semibold TRIAL";
  src:
    local("ES Klarheit Grotesk Semibold TRIAL"),
    local("ES Klarheit Grotesk TRIAL SmBd"),
    url("https://cdn.pvdesignusa.com/global/fonts/ES%20Klarheit%20Grotesk%20-%20Semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --page-bg: #ffffff;
  --page-bg-strong: #ffffff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-soft: #f2f2f2;
  --surface-softer: #d4dee7;
  --text-strong: #161616;
  --text-muted: #aaaaaa;
  --text-faint: #797979;
  --border-soft: rgba(22, 22, 22, 0.08);
  --border-strong: rgba(22, 22, 22, 0.14);
  --shadow-card: 0 38px 80px rgba(16, 16, 16, 0.09);
  --shadow-soft: 0 14px 28px rgba(16, 16, 16, 0.07);
  --radius-shell: 30px;
  --radius-panel: 24px;
  --radius-field: 18px;
  --radius-pill: 999px;
  --max-width: 1320px;
  --auth-card-height: 935px;
  --auth-panel-width: 420px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  color: var(--text-strong);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-strong) 100%);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

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

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.screen {
  position: relative;
  min-height: 100vh;
  padding: clamp(16px, 3vw, 32px);
  overflow: hidden;
}

.screen::before,
.screen::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.85;
  pointer-events: none;
}

.screen::before {
  top: -120px;
  right: min(6vw, 72px);
  width: clamp(240px, 30vw, 420px);
  height: clamp(240px, 30vw, 420px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 72%);
}

.screen::after {
  display: none;
}

.screen--loading {
  background: #ffffff;
}

.screen--loading::before,
.screen--loading::after {
  display: none;
}

.screen--loading .loading-stage {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - clamp(32px, 6vw, 64px));
  justify-content: center;
}

.auth-stage,
.loading-stage {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  min-height: calc(100vh - clamp(32px, 6vw, 64px));
  display: flex;
  flex-direction: column;
}

.dashboard-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - clamp(32px, 6vw, 64px));
  display: flex;
  flex-direction: column;
}

.auth-card,
.dashboard-card,
.loading-card {
  background: var(--surface);
}

.auth-card {
  width: 100%;
  margin: 0 auto;
  height: -webkit-fill-available;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--auth-panel-width);
  gap: clamp(24px, 4vw, 42px);
  align-items: stretch;
  animation: rise 0.55s ease both;
}

.auth-media {
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #d8d1c9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.auth-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-panel {
  width: var(--auth-panel-width);
  min-width: var(--auth-panel-width);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 22px);
}

.auth-panel__inner {
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-logo {
  width: auto;
  height: 60px;
}

.auth-title {
  margin: 32px 0 14px;
  font-family: "ES Klarheit Kurrent", Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-synthesis: none;
}

.auth-subtitle {
  margin: 0 0 30px;
  color: var(--text-strong);
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0;
  max-width: 25rem;
}

.verify-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: -8px 0 24px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.3;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 22, 0.04);
}

.verify-email span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.field-group--full {
  grid-column: 1 / -1;
}

.field-label {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.field {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--surface-soft);
  color: #000000;
  font-size: 1rem;
  letter-spacing: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

[data-auth-form="login"] .field {
  text-align: center;
}

.field::placeholder {
  color: var(--text-faint);
  letter-spacing: 0;
}

.field:hover,
.code-input:hover {
  background: #f2f2f2;
}

.field:focus {
  outline: none;
  border-color: rgba(22, 22, 22, 0.1);
  box-shadow: 0 0 0 4px rgba(22, 22, 22, 0.05);
}

.address-autocomplete {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 30;
  min-width: 100%;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.address-suggestions.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.address-suggestions__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.address-suggestion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  text-align: left;
}

.address-suggestion:hover,
.address-suggestion.is-active,
.address-suggestion:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.address-suggestion__primary {
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.address-suggestion__secondary {
  color: var(--text-faint);
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.phone-field {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--surface-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.phone-field:hover {
  background: #f2f2f2;
}

.phone-field:focus-within {
  border-color: rgba(22, 22, 22, 0.1);
  box-shadow: 0 0 0 4px rgba(22, 22, 22, 0.05);
}

.phone-field__prefix {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.phone-field__input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 0 0 0 12px;
  border: 0;
  background: transparent;
  color: #000000;
  font-size: 1rem;
  letter-spacing: 0;
}

.phone-field__input::placeholder {
  color: var(--text-faint);
  letter-spacing: 0;
}

.phone-field__input:focus {
  outline: none;
}

.primary-button,
.secondary-button,
.user-menu__item,
.avatar-button {
  transition: transform 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, outline-color 0.18s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 16px 22px;
  border: 0;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.primary-button:hover:enabled,
.secondary-button:hover:enabled {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.9;
}

.button__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.primary-button.is-loading .button__spinner {
  display: inline-block;
}

.form-feedback {
  min-height: 1.35rem;
  margin: 2px 0 0;
  color: #c15037;
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-feedback.is-success {
  color: #3f7150;
}

.verify-code-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.code-input {
  width: 100%;
  height: 74px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: #f2f2f2;
  color: #000000;
  text-align: center;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.code-input:focus {
  outline: none;
  border-color: rgba(22, 22, 22, 0.1);
  box-shadow: 0 0 0 4px rgba(22, 22, 22, 0.05);
  transform: translateY(-1px);
}

.helper-copy {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.resend-link {
  align-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.resend-link:hover:not(:disabled) {
  color: var(--text-strong);
}

.resend-link:disabled {
  cursor: default;
  opacity: 0.72;
}

.app-footer {
  padding: 20px 12px 4px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.loading-card {
  width: min(100%, 460px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: rise 0.45s ease both;
}

.loading-model {
  width: min(54vw, 300px);
  height: min(54vw, 300px);
  min-width: 180px;
  min-height: 180px;
  margin: 0 auto;
}

.loading-model__canvas,
.loading-model__fallback {
  width: 100%;
  height: 100%;
  display: block;
}

.loading-model__canvas {
  border-radius: 0;
}

.loading-model__fallback {
  object-fit: contain;
}

.dashboard-card {
  flex: 1;
  border-radius: 0;
  padding: clamp(20px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  animation: rise 0.55s ease both;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dashboard-brand--internal {
  gap: 24px;
}

.dashboard-brand__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.dashboard-brand img {
  width: 50px;
  height: auto;
  flex: 0 0 auto;
}

.dashboard-brand span {
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.dashboard-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.dashboard-nav__link {
  color: #000000;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
  opacity: 0.62;
  transition: opacity 0.18s ease;
}

.dashboard-nav__link.is-active,
.dashboard-nav__link:hover {
  opacity: 1;
}

.user-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.user-company {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  color: var(--text-strong);
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  letter-spacing: 0;
}

.avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.avatar-button:focus-visible,
.user-menu__item:focus-visible {
  outline: 2px solid rgba(22, 22, 22, 0.18);
  outline-offset: 2px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ececec;
  color: #111111;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
}

.user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 148px;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.user-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.user-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 0.9rem;
  text-align: left;
}

.user-menu__item:hover {
  background: var(--surface-soft);
}

.dashboard-main {
  flex: 1;
  padding: clamp(48px, 7vh, 82px) 0 0;
}

.dashboard-projects {
  width: 100%;
}

.dashboard-projects__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 58px;
}

.dashboard-projects__header--row .dashboard-title {
  margin: 0;
}

.dashboard-projects__header--admin {
  margin-bottom: 32px;
}

.dashboard-client-selector {
  position: relative;
  min-width: 0;
}

.dashboard-client-selector__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000000;
  cursor: pointer;
  font-family: "ES Klarheit Kurrent", Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-synthesis: none;
}

.dashboard-client-selector__button:disabled {
  cursor: default;
  opacity: 0.5;
}

.dashboard-client-selector__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #000000;
}

.dashboard-client-selector__chevron svg {
  width: 16px;
  height: 16px;
}

.dashboard-client-selector__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  display: none;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 0;
  border: 1px solid #dadada;
  background: #ffffff;
  z-index: 20;
}

.dashboard-client-selector__menu.is-open {
  display: block;
}

.dashboard-client-selector__item {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: #000000;
  cursor: pointer;
  text-align: left;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.dashboard-client-selector__item.is-active,
.dashboard-client-selector__item:hover {
  background: #f2f2f2;
}

.dashboard-feedback {
  min-height: 24px;
  margin: 0 0 14px;
  color: #000000;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  visibility: hidden;
}

.dashboard-feedback.is-visible {
  visibility: visible;
}

.projects-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.projects-table {
  min-width: 1180px;
}

.projects-table--admin {
  min-width: 1440px;
}

.projects-table--staff {
  min-width: 1288px;
}

.projects-table__row {
  display: grid;
  grid-template-columns: 190px 120px minmax(280px, 1.5fr) 150px 150px 180px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid #dadada;
  min-width: 0;
}

.projects-table__row--admin {
  grid-template-columns: 180px 120px minmax(260px, 1.6fr) 150px 190px 172px 172px;
}

.projects-table__row--staff {
  grid-template-columns: minmax(140px, 1fr) minmax(160px, 1fr) minmax(300px, 1.45fr) 172px 172px 172px;
}

.projects-table__row--head {
  padding-top: 0;
  padding-bottom: 22px;
}

.projects-table__heading {
  color: #000000;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.projects-table__cell {
  min-width: 0;
  color: #000000;
  font-family: "ES Klarheit Grotesk Semibold TRIAL", "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.projects-table__cell--empty {
  grid-column: 1 / -1;
}

.projects-table__address {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.projects-table__address-line {
  margin: 0;
}

.projects-table__link,
.projects-table__link:visited {
  color: #000000;
  font-family: "ES Klarheit Grotesk Semibold TRIAL", "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.projects-table__link--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.projects-table__link-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: block;
}

.projects-table__link--placeholder {
  opacity: 1;
  cursor: default;
}

.projects-table__text {
  display: inline-block;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: #000000;
  font-family: "ES Klarheit Grotesk Semibold TRIAL", "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.project-status__dot {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

.project-status__dot--submitted {
  background: #ff8b6b;
}

.project-status__dot--on-hold {
  background: #eabb2c;
}

.project-status__dot--ready {
  background: #1da479;
}

.project-status__dot--rejected {
  background: #ff3700;
}

.admin-upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 172px;
  min-height: 52px;
  padding: 14px 18px;
  border: 0;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
  font-family: "ES Klarheit Grotesk Semibold TRIAL", "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
}

.admin-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.admin-status-select-wrap {
  position: relative;
  display: inline-flex;
  width: 172px;
}

.admin-status-select-wrap--staff,
.admin-status-select-wrap--staff-form {
  width: 172px;
}

.admin-status-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #111111;
  border-bottom: 2px solid #111111;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.admin-status-select {
  width: 172px;
  min-height: 52px;
  padding: 0 46px 0 18px;
  border: 1px solid #dadada;
  background: #ffffff;
  color: #000000;
  font-family: "ES Klarheit Grotesk Semibold TRIAL", "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  appearance: none;
}

.admin-status-readonly {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #000000;
  font-family: "ES Klarheit Grotesk Semibold TRIAL", "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

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

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
}

.admin-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100% - 32px, 420px);
  padding: 30px;
  border: 1px solid #dadada;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.admin-modal__title {
  font-family: "ES Klarheit Kurrent", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.admin-modal__action {
  width: 100%;
}

.admin-modal__copy {
  width: 100%;
  margin: 0;
  color: #000000;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
}

.admin-modal__actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-modal__secondary {
  width: 100%;
}

.staff-delete-button {
  width: 172px;
  min-height: 52px;
}

.staff-created-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.staff-created-card__line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  color: #000000;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.staff-created-card__line span {
  color: var(--text-muted);
}

.staff-created-card__line strong {
  font-family: "ES Klarheit Grotesk Semibold TRIAL", "ES Klarheit Grotesk", system-ui, sans-serif;
  font-weight: 600;
}

.staff-created-card__copy {
  width: 100%;
}

.projects-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 28px 0;
  border-top: 1px solid #dadada;
  border-bottom: 1px solid #dadada;
  border-radius: 0;
  text-align: center;
}

.projects-empty__copy {
  max-width: 30rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.dashboard-main--wizard {
  display: block;
  padding: clamp(28px, 4vw, 40px) 0 0;
}

.wizard-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(24px, 4vw, 40px);
  min-height: min(76vh, 860px);
}

.wizard-card--staff-new {
  grid-template-columns: minmax(360px, 0.92fr);
  justify-content: center;
}

.wizard-media {
  border-radius: 0;
  overflow: hidden;
  background: #d8d1c9;
}

.wizard-media--solid {
  background: #ff7d00;
}

.wizard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wizard-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 18px);
}

.wizard-panel__inner {
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dashboard-main--details {
  padding-top: clamp(28px, 4vw, 40px);
}

.project-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--auth-panel-width);
  gap: clamp(24px, 4vw, 40px);
  min-height: min(76vh, 860px);
}

.project-detail-media {
  min-width: 0;
  background: #f2f2f2;
}

.project-detail-map {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  border: 0;
  background: #f2f2f2;
}

.project-detail-map--empty {
  display: grid;
  place-items: center;
  color: #000000;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
}

.project-detail-panel {
  width: var(--auth-panel-width);
  min-width: var(--auth-panel-width);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 18px);
}

.project-detail-panel__inner {
  width: min(100%, 390px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.project-detail-back {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #000000;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.project-detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-detail-item__label {
  color: #000000;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
}

.project-detail-item__value {
  color: #000000;
  font-family: "ES Klarheit Grotesk Semibold TRIAL", "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

.project-detail-item__value--stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-detail-item__value--stack p {
  margin: 0;
}

.project-detail-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.project-detail-download {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  color: #000000;
  font-family: "ES Klarheit Grotesk Semibold TRIAL", "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-detail-download--disabled {
  opacity: 0.42;
  pointer-events: none;
}

.wizard-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 28px;
}

.wizard-progress__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #d9d9d9;
}

.wizard-progress__dot.is-active {
  background: #000000;
}

.wizard-subtitle {
  color: var(--text-strong);
  max-width: none;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.wizard-panel__inner .field-label,
.wizard-panel__inner .field,
.wizard-panel__inner .field::placeholder,
.wizard-panel__inner .wizard-select,
.wizard-panel__inner .address-suggestion__primary,
.wizard-panel__inner .address-suggestion__secondary,
.wizard-panel__inner .upload-dropzone__title,
.wizard-panel__inner .empty-photos,
.wizard-panel__inner .review-label,
.wizard-panel__inner .review-value {
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
}

.project-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.email-suffix-field {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid transparent;
  background: var(--surface-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.email-suffix-field:hover {
  background: #f2f2f2;
}

.email-suffix-field:focus-within {
  border-color: rgba(22, 22, 22, 0.1);
  box-shadow: 0 0 0 4px rgba(22, 22, 22, 0.05);
}

.email-suffix-field__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000000;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.email-suffix-field__input:focus {
  outline: none;
}

.email-suffix-field__suffix {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.field--textarea {
  min-height: 220px;
  padding: 18px 20px;
  border-radius: 0;
  resize: vertical;
}

.wizard-select-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 6px;
}

.wizard-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wizard-select-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-strong);
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.wizard-select-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}

.wizard-select-icon img,
.wizard-select-icon svg {
  width: 28px;
  height: 28px;
}

.wizard-select-wrap {
  position: relative;
}

.wizard-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 10px;
  height: 10px;
  border-right: 3px solid #111111;
  border-bottom: 3px solid #111111;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.wizard-select {
  width: 100%;
  min-height: 60px;
  padding: 0 52px 0 24px;
  border: 0;
  border-radius: 0;
  background: #f2f2f2;
  color: #000000;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
  appearance: none;
  cursor: pointer;
}

.wizard-select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(22, 22, 22, 0.05);
}

.file-input {
  display: none;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: 218px;
  padding: 32px 24px;
  border: 2px dashed #dadada;
  border-radius: 28px;
  background: #ffffff;
  color: var(--text-strong);
  cursor: pointer;
  text-align: center;
  box-shadow: none;
}

.upload-dropzone.is-dragover {
  border-color: #cfcfcf;
  background: #ffffff;
}

.upload-dropzone__icon {
  width: 34px;
  height: 34px;
}

.upload-dropzone__title {
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1.04rem;
  line-height: 1.35;
}

.photo-uploader {
  width: 100%;
}

.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: flex-start;
}

.photo-card {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  max-width: 112px;
  height: 112px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  background: var(--surface-soft);
}

.photo-card__preview,
.photo-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.photo-card__placeholder {
  background: #e3e3e3;
}

.photo-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.26);
  backdrop-filter: blur(1px);
}

.photo-card__loader {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.photo-card__overlay-label {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 0.78rem;
}

.photo-card__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.78);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 16, 16, 0.18);
}

.photo-add-tile {
  display: grid;
  place-items: center;
  flex: 0 0 112px;
  width: 112px;
  max-width: 112px;
  height: 112px;
  padding: 0;
  border: 2px dashed #dadada;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
}

.photo-add-tile.is-dragover,
.photo-add-tile:hover:not(:disabled) {
  border-color: #cfcfcf;
}

.photo-add-tile:disabled {
  cursor: wait;
  opacity: 0.72;
}

.photo-add-tile__plus {
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.photo-card__remove svg,
.photo-card__status svg {
  width: 14px;
  height: 14px;
}

.photo-card__status {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(16, 16, 16, 0.18);
}

.photo-card__status--success {
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
}

.photo-card--error .photo-card__overlay {
  background: rgba(133, 21, 21, 0.26);
}

.review-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  align-items: flex-start;
}

.review-photo {
  width: 72px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  background: #e8e8e8;
}

.review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface-soft);
}

.review-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.review-row--stack {
  flex-direction: column;
  align-items: flex-start;
}

.review-label {
  color: var(--text-faint);
  font-size: 0.82rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-value {
  color: var(--text-strong);
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: right;
}

.review-row--stack .review-value {
  text-align: left;
}

.dashboard-hero {
  width: min(100%, 680px);
  text-align: center;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.2;
}

.dashboard-title {
  margin: 0 0 16px;
  font-family: "ES Klarheit Kurrent", Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-synthesis: none;
}

.dashboard-copy {
  width: min(100%, 34rem);
  margin: 0 auto 30px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 22px;
  border: 0;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
  font-family: "ES Klarheit Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.coming-soon-card {
  margin-top: 16px;
  padding: 24px 24px 26px;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(246, 244, 240, 0.9), rgba(255, 255, 255, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.coming-soon-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .auth-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - clamp(32px, 6vw, 64px));
  }

  .wizard-card,
  .project-detail-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-media {
    min-height: 320px;
    height: 320px;
  }

  .wizard-media {
    min-height: 320px;
  }

  .project-detail-map {
    min-height: 320px;
  }

  .auth-panel {
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 10px 6px 6px;
  }

  .wizard-panel {
    padding: 10px 6px 6px;
  }

  .project-detail-panel {
    width: 100%;
    min-width: 0;
    padding: 10px 6px 6px;
  }

  .dashboard-nav {
    gap: 18px;
  }

  .projects-table--staff {
    min-width: 1288px;
  }
}

@media (max-width: 640px) {
  .screen {
    padding: 14px;
  }

  .dashboard-card,
  .loading-card {
    border-radius: 0;
  }

  .dashboard-card {
    padding: 16px;
  }

  .dashboard-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .dashboard-brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .dashboard-brand--internal {
    gap: 16px;
  }

  .dashboard-nav {
    gap: 14px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-nav__link {
    flex: 0 0 auto;
  }

  .user-menu-wrap {
    margin-left: auto;
    justify-content: flex-end;
    gap: 0;
  }

  .user-company {
    display: none;
  }

  .avatar {
    width: 34px;
    height: 34px;
    font-size: 0.94rem;
  }

  .auth-title,
  .dashboard-title {
    letter-spacing: -0.03em;
  }

  .verify-code-grid {
    gap: 10px;
  }

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

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

  .auth-media {
    display: none;
  }

  .auth-card {
    min-height: calc(100vh - 28px);
  }

  .wizard-media {
    display: none;
  }

  .wizard-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-detail-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wizard-panel {
    padding-top: 0;
  }

  .project-detail-panel {
    padding-top: 16px;
  }

  .dashboard-projects__header {
    align-items: center;
    gap: 18px;
    margin-bottom: 34px;
  }

  .dashboard-projects__header--admin {
    align-items: flex-start;
  }

  .dashboard-client-selector__button {
    font-size: 2.25rem;
  }

  .projects-table {
    min-width: 980px;
  }

  .projects-table--admin {
    min-width: 1280px;
  }

  .projects-table--staff {
    min-width: 1288px;
  }

  .projects-table__row {
    grid-template-columns: 180px 110px 260px 140px 140px 160px;
  }

  .projects-table__row--admin {
    grid-template-columns: 170px 110px 250px 140px 180px 172px 172px;
  }

  .projects-table__row--staff {
    grid-template-columns: 150px 160px 260px 172px 172px 172px;
  }

  .field-group--full {
    grid-column: auto;
  }

  .code-input {
    height: 64px;
    border-radius: 0;
    font-size: 1.7rem;
  }

  .user-company {
    max-width: 180px;
  }

  .wizard-select-row,
  .review-row {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-select-wrap {
    width: 100%;
  }

  .review-card {
    text-align: center;
  }

  .review-row,
  .review-row--stack {
    align-items: center;
    gap: 12px;
  }

  .review-label,
  .review-value,
  .review-row--stack .review-value {
    text-align: center;
  }

  .review-photo-grid {
    justify-content: center;
  }

  .project-detail-photos {
    justify-content: center;
  }

  .photo-card {
    flex-basis: 96px;
    width: 96px;
    max-width: 96px;
    height: 96px;
    border-radius: 0;
  }

  .photo-add-tile {
    flex-basis: 96px;
    width: 96px;
    max-width: 96px;
    height: 96px;
    border-radius: 0;
  }

  .photo-card__preview,
  .photo-card__placeholder {
    border-radius: 0;
  }
}
