:root {
  color-scheme: light;
  --ink: #101727;
  --ink-muted: #4c566f;
  --bg: #fffcf9;
  --panel: #fffcf9;
  --accent: #d3754a;
  --accent-dark: #b25833;
  --accent-soft: #f4c9b2;
  --sage: #5b7b6d;
  --sage-soft: #d6e3da;
  --danger: #a83b33;
  --warn: #c8871c;
  --brand: #25604a;
  --shadow: 0 25px 60px rgba(16, 23, 39, 0.15);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --card-border: rgba(16, 23, 39, 0.08);
  --gradient: none;
  --login-ink: #182026;
  --login-warm: #e7d5c2;
  --login-deep: #2b5a4a;
  --login-sand: #f6efe6;
  --login-rose: #d6845d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  padding: 0 0 48px;
}

body.booting .site-header,
body.booting .site-footer,
body.booting #app {
  visibility: hidden;
}

.boot-loader {
  position: fixed;
  inset: 0;
  background: #fffcf9;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  z-index: 3000;
}

.boot-loader.open {
  opacity: 1;
  pointer-events: auto;
}

body.booting .boot-loader {
  opacity: 1;
  pointer-events: auto;
}

.boot-loader-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}

.boot-dots {
  display: inline-flex;
  width: 1.8em;
  justify-content: flex-start;
}

.boot-dots span {
  opacity: 0;
  animation: bootDot 1.2s infinite;
}

.boot-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.boot-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

body.is-landing {
  padding-top: 0;
}

body.is-login {
  background: radial-gradient(circle at top left, #ffffff 0%, var(--login-sand) 45%, #f2e9de 100%);
  color: var(--login-ink);
  padding-top: 0;
}

.bg-glow {
  display: none;
}

.site-header {
  display: grid;
  gap: 0;
  align-items: start;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--brand);
  color: #fff;
  padding: 14px clamp(20px, 4vw, 48px);
  margin: 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.brand-title {
  display: none;
}

.global-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.global-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.mobile-menu-wrap {
  position: relative;
  display: none;
}

.mobile-menu-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 4px;
  place-content: center;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
}

.mobile-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(16, 23, 39, 0.12);
  box-shadow: 0 16px 36px rgba(16, 23, 39, 0.18);
  padding: 8px;
  display: none;
  z-index: 15;
}

.mobile-menu-wrap.open .mobile-menu-dropdown {
  display: grid;
  gap: 4px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.avatar-menu {
  position: relative;
}

.notification-menu {
  position: relative;
}

.notification-button {
  position: relative;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.notification-button img {
  width: 24px;
  height: 24px;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d3754a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(380px, calc(100vw - 24px));
  max-height: 420px;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(16, 23, 39, 0.12);
  box-shadow: 0 16px 36px rgba(16, 23, 39, 0.18);
  padding: 16px;
  display: none;
  z-index: 20;
}

.notification-menu.open .notification-dropdown {
  display: grid;
  gap: 18px;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-header p {
  font-family: "Google Sans", "Product Sans", "Arial", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  width: 100%;
  text-align: left;
  color: var(--ink);
}

.notification-section {
  display: grid;
  gap: 8px;
}

.notification-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.notification-item {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(16, 23, 39, 0.1);
  border-radius: 10px;
  padding: 8px;
}

.notification-item.accepted-item {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.notification-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
}

.notification-title strong {
  color: var(--ink);
}

.notification-meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-empty {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.notification-empty .card-meta {
  text-align: center;
}

.notification-refresh-center {
  margin-top: auto;
}

.notification-loading {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.avatar-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.avatar-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(16, 23, 39, 0.12);
  box-shadow: 0 16px 36px rgba(16, 23, 39, 0.18);
  padding: 8px;
  display: none;
  z-index: 10;
}

.avatar-menu.open .avatar-dropdown {
  display: grid;
  gap: 4px;
}

.dropdown-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: 10px;
  cursor: pointer;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.dropdown-item:hover {
  background: rgba(16, 23, 39, 0.06);
}

.dropdown-item.danger {
  color: var(--danger);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--card-border);
  padding: 12px clamp(20px, 4vw, 48px) 0;
}

.primary-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  padding: 6px 2px 14px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  font-size: 0.95rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--ink);
  border-color: var(--brand);
}

.primary-nav.hidden {
  display: none;
}

body.is-login .global-actions,
body.is-login .primary-nav {
  display: none;
}

body.is-login .site-header {
  margin-bottom: 0;
}

body.pre-login .site-header,
body.pre-login .site-footer {
  visibility: hidden;
  pointer-events: none;
}

.primary-nav a.has-badge {
  position: relative;
  padding-right: 20px;
}

.tab-badge {
  position: absolute;
  top: 50%;
  right: -2px;
  transform: translateY(calc(-50% - 4px));
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #b4372f;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
}

.page {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 clamp(20px, 4vw, 48px);
}

.fade-in {
  animation: fadeIn 0.45s ease;
}

.hero {
  display: grid;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project-summary {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
}

.project-summary-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.project-summary-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 16px;
}

.project-summary-bottom {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  gap: 16px;
  align-items: end;
}

.account-summary-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
  gap: 16px;
  align-items: end;
  margin-top: 16px;
}

.project-summary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
}

.project-summary h1,
.project-summary .hero-title {
  font-family: "Google Sans", "Product Sans", "Arial", sans-serif !important;
  font-size: 2rem !important;
  line-height: 1.1;
  margin-top: 8px;
}

.project-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
}

.project-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.project-subtabs {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0;
}

.project-subtabs a {
  text-decoration: none;
  color: var(--ink-muted);
  padding-bottom: 12px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
}

.project-subtabs a.active {
  color: var(--ink);
  border-color: var(--brand);
}

.project-panel {
  margin-top: 20px;
}

.project-panel .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.overview-strip {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1fr);
  gap: 32px;
  padding: 20px 8px 8px;
  align-items: start;
}

.overview-left {
  display: grid;
  gap: 16px;
  padding-right: 24px;
  border-right: 1px solid rgba(16, 23, 39, 0.08);
}

.overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.overview-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.overview-title .hero-title {
  margin: 0 !important;
}

.overview-title h1 {
  font-family: "Google Sans", "Product Sans", "Arial", sans-serif !important;
  font-size: 2rem !important;
  line-height: 1.1;
}

.overview-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 96, 74, 0.16);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
}

.overview-address {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  padding-top: 12px;
}

.is-overview .overview-address {
  padding-top: 0;
}

.overview-quote {
  display: grid;
  gap: 4px;
}

.overview-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.overview-divider {
  color: var(--ink);
  font-weight: 600;
}

.overview-right {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.overview-card {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 15px 35px rgba(16, 23, 39, 0.08);
  display: grid;
  gap: 12px;
}

.btn.dark {
  background: #1f1f1f;
  color: #fff;
  box-shadow: 0 12px 30px rgba(16, 23, 39, 0.2);
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--sage);
}

.hero h1 {
  font-family: "Google Sans", "Product Sans", "Arial", sans-serif;
  font-size: 2rem;
  margin-top: 8px;
}

.hero-title {
  font-family: "Google Sans", "Product Sans", "Arial", sans-serif !important;
  font-size: 2.6rem !important;
  line-height: 1.1;
  margin-top: 8px;
}

.hero-subtitle {
  color: var(--ink-muted);
  max-width: 520px;
  font-size: 0.8rem;
  padding-top: 12px;
}

.hero-meta {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.label {
  color: var(--ink-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.value {
  font-size: 1.1rem;
  font-weight: 600;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-clauses {
  gap: 28px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.toggle-group {
  display: inline-flex;
  gap: 8px;
}

.toggle-group .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  font-family: "Space Grotesk", system-ui, sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(16, 23, 39, 0.18);
}

button {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  background: #c9ced7;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--card-border);
  box-shadow: none;
}

.btn.ghost:disabled {
  background: #eef1f5;
  color: #9aa3b2;
  border-color: #d5dbe5;
  cursor: not-allowed;
}

.login-shell {
  position: relative;
  z-index: 1;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
  gap: 32px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(24, 32, 38, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-shell::before,
.login-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.6;
}

.login-shell::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(214, 132, 93, 0.35) 0%, rgba(214, 132, 93, 0) 70%);
  top: -120px;
  left: -100px;
}

.login-shell::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(43, 90, 74, 0.28) 0%, rgba(43, 90, 74, 0) 70%);
  bottom: -160px;
  right: -140px;
}

.login-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  padding-right: 10px;
}

.login-brand h1 {
  font-family: "Google Sans", "Product Sans", "Arial", sans-serif;
  font-size: 2rem;
  line-height: 1.05;
  color: var(--login-ink);
  margin: 10px 0;
}

.login-brand p {
  color: rgba(24, 32, 38, 0.7);
  max-width: 420px;
  font-size: 1rem;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(43, 90, 74, 0.12);
  color: var(--login-deep);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.login-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 18px;
}

.login-illustration {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

.login-metrics div {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid rgba(24, 32, 38, 0.08);
  display: grid;
  gap: 8px;
  animation: fadeIn 0.6s ease;
}

.metric-label {
  color: rgba(24, 32, 38, 0.6);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--login-ink);
}

.login-footnote {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(24, 32, 38, 0.65);
  font-size: 0.9rem;
}

.login-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  border: 1px solid rgba(24, 32, 38, 0.08);
  box-shadow: 0 20px 45px rgba(24, 32, 38, 0.12);
  display: grid;
  gap: 24px;
  animation: fadeIn 0.6s ease;
}

.login-card.login-card-single {
  width: min(430px, 100%);
}

.admin-login-wrap {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
}

.login-card-header h2 {
  font-family: "Google Sans", "Product Sans", "Arial", sans-serif;
  font-size: 1.9rem;
  margin-bottom: 6px;
}

.login-card-header p {
  color: rgba(24, 32, 38, 0.6);
  font-size: 0.95rem;
}

.login-form {
  display: grid;
  gap: 16px;
}

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

.password-field input {
  width: 100%;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.password-toggle img {
  width: 20px;
  height: 20px;
  display: block;
}

.login-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(24, 32, 38, 0.7);
  min-width: 170px;
}

.checkbox input {
  accent-color: var(--login-deep);
}

.login-row .link {
  min-width: 130px;
  text-align: left;
}

.login-submit {
  background: var(--login-deep);
  box-shadow: 0 16px 30px rgba(43, 90, 74, 0.3);
  font-family: "Space Grotesk", system-ui, sans-serif;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.login-submit.is-loading,
.login-submit.is-loading:disabled {
  background: #c7d3ce;
  color: #ffffff;
  box-shadow: none;
}

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

.inline-dots {
  display: inline-flex;
  width: 1.8em;
  justify-content: flex-start;
}

.inline-dots span {
  opacity: 0;
  animation: bootDot 1.2s infinite;
}

.inline-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.inline-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(24, 32, 38, 0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(24, 32, 38, 0.1);
}

.login-alt {
  border-radius: 14px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.login-google {
  border-color: rgba(16, 23, 39, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-logo {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.google-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.login-terms {
  font-size: 0.8rem;
  color: rgba(24, 32, 38, 0.55);
}

.landing-hero {
  position: relative;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.landing-hero-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 23, 39, 0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.landing-hero-image {
  display: block;
  width: 100%;
  height: min(200px, 24vw);
  max-height: 200px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #d96d36 0%, #803a24 100%);
}

.landing {
  padding: 32px 0;
}

.landing h1 {
  font-family: "Google Sans", "Product Sans", "Arial", sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.landing .project-card {
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(16, 23, 39, 0.1);
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  position: relative;
  isolation: isolate;
  cursor: pointer;
}

.landing .project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(16, 23, 39, 0.12);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: -1;
  pointer-events: none;
}

.landing .project-card.card-hovered::after {
  opacity: 1;
  transform: translateY(0);
}

.landing .project-card.card-pressed::after {
  opacity: 0.7;
  transform: translateY(1px);
}

.project-title {
  background: #f3f0eb;
  color: var(--ink-muted);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 1rem;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.landing .project-card.create span:not(.new-project-icon-wrap) {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 1rem;
  background: #f3f0eb;
  color: var(--ink-muted);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.landing .project-card.card-hovered .project-title {
  background: #edf2ef;
  color: #3a5d51;
}

.landing .project-card.create span.label-hovered {
  background: #edf2ef;
  color: #3a5d51;
}

.landing .project-card.create {
  border-style: dashed;
  border-color: #b3b3b3;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.landing .project-card img {
  width: 84px;
  height: 84px;
}

.new-project-icon-wrap {
  width: 48px;
  height: 48px;
  margin-top: 20px;
  display: grid;
  place-items: center;
}

.new-project-icon {
  width: 48px;
  height: 48px;
}

.new-project-icon .new-project-icon-circle {
  transition: fill 0.22s ease;
}

.landing .project-card.create.create-icon-hovered .new-project-icon-circle {
  fill: #a0c1b4;
}

.landing .project-card-link {
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
  text-decoration: none;
  color: inherit;
}

.landing .card-menu-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(16, 23, 39, 0.08);
  color: var(--ink-muted);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.landing .card-menu {
  position: absolute;
  top: 44px;
  right: 10px;
  min-width: 160px;
  background: #fff;
  border: 1px solid rgba(16, 23, 39, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(16, 23, 39, 0.15);
  padding: 6px;
  display: none;
  z-index: 3;
}

.landing .project-card.open .card-menu {
  display: grid;
  gap: 4px;
}


.create-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.section-header h2 {
  font-family: "Google Sans", "Product Sans", "Arial", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.section-header p {
  color: var(--ink-muted);
  max-width: 520px;
}

.timeline-heading p {
  margin-top: 2px;
}

.link {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.timeline-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 4px;
  border-radius: 999px;
  background: #e6e1da;
}

.toggle-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.toggle-btn.active {
  background: #111;
  color: #fff;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.3);
  transform: none;
}

.toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.toggle-icon-img {
  width: 18px;
  height: 18px;
  display: block;
}


.view-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-dark);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

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

.card-stack,
.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 15px 35px rgba(16, 23, 39, 0.08);
  animation: cardRise 0.6s ease;
}

.empty-state {
  padding: 28px 18px 30px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(16, 23, 39, 0.18);
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.empty-state-image {
  height: 180px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 4px auto 24px;
  display: block;
}

.empty-state-cta {
  margin-top: 20px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: var(--login-deep);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  font-family: "Space Grotesk", system-ui, sans-serif;
  cursor: pointer;
}



.card-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
  gap: 8px;
}

.card-title {
  font-weight: 600;
  font-size: 1rem;
}

.kv-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.kv-list p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.card-subtitle {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.card-meta {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.error {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #c62828;
}

.ok {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #1b5e20;
}

.modal-feedback {
  margin: 0;
  font-size: 0.9rem;
}

.modal-feedback.error {
  color: #c62828;
}

.modal-feedback.success {
  color: #1b5e20;
}

.section-actions {
  display: flex;
  justify-content: flex-end;
}

.card-body {
  margin-top: 12px;
  color: var(--ink-muted);
}

.pill {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  align-items: center;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 600;
}

.pill-danger {
  background: rgba(168, 59, 51, 0.15);
  color: var(--danger);
}

.pill-paused {
  background: rgba(91, 123, 109, 0.18);
  color: var(--sage);
}

.pill-warn {
  background: rgba(200, 135, 28, 0.15);
  color: var(--warn);
}

.timeline {
  display: grid;
  gap: 18px;
  border-left: 2px solid rgba(16, 23, 39, 0.08);
  padding-left: 18px;
}

.timeline.compact .timeline-content {
  background: rgba(255, 255, 255, 0.8);
}

.timeline-item {
  position: relative;
  padding-left: 12px;
}

.timeline-marker {
  position: absolute;
  left: -25px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--card-border);
}

.timeline-item.done .timeline-marker {
  background: var(--sage);
  border-color: var(--sage);
}

.timeline-item.active .timeline-marker {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(211, 117, 74, 0.15);
}

.timeline-content {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.timeline-title {
  font-weight: 600;
}

.timeline-range,
.timeline-owner {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.gantt {
  display: grid;
  gap: 16px;
  overflow-x: auto;
}

.gantt-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.gantt-header {
  display: grid;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.gantt-week,
.gantt-day {
  text-align: center;
  padding: 6px 0;
  border-left: 1px solid rgba(16, 23, 39, 0.08);
}

.gantt-week {
  display: grid;
  gap: 4px;
  font-weight: 600;
}

.gantt-day small {
  display: block;
  font-size: 0.65rem;
  color: var(--ink-muted);
}

.gantt-corner {
  border-right: 1px solid rgba(16, 23, 39, 0.08);
}

.gantt-label {
  padding-right: 12px;
}

.gantt-grid {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 48px;
}

.gantt-cell {
  border-left: 1px solid rgba(16, 23, 39, 0.08);
  min-height: 48px;
}

.gantt-bar {
  position: absolute;
  top: 11px;
  height: 26px;
  background: #25604a;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.7rem;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.gantt-row.is-current {
  background: rgba(37, 96, 74, 0.12);
}

.wide-card {
  width: 100%;
}

.attachment-section {
  margin-top: 12px;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.attachment-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.attachment-card img {
  width: 100%;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.attachment-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.link-button {
  border: none;
  background: none;
  color: var(--accent-dark);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.contract-row {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.contract-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.form-field small {
  color: var(--ink-muted);
}

.list {
  display: grid;
  gap: 14px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
}

.list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-item-right {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  text-align: right;
}

.site-footer {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  padding: 0 clamp(20px, 4vw, 48px);
}

.footer-divider {
  width: 1px;
  height: 12px;
  background: var(--card-border);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 23, 39, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.modal.open {
  display: flex;
}

.onboarding-modal {
  animation: onboardingOverlayFade 0.22s ease both;
}

.onboarding-modal.onboarding-preload {
  opacity: 0;
  pointer-events: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 23, 39, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 30;
}

.image-modal.open {
  display: flex;
}

.image-modal-card {
  position: relative;
  background: var(--panel);
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: min(900px, 90vw);
  max-height: 85vh;
}

.image-modal-card img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
}

.image-modal-card .icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
}

.document-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 23, 39, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 35;
}

.document-modal.open {
  display: flex;
}

.document-modal-card {
  width: min(980px, 95vw);
  height: min(760px, 88vh);
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.document-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
}

.document-modal-header h3 {
  margin: 0;
}

.document-modal-body {
  padding: 12px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
}

.document-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.modal-card {
  width: min(640px, 100%);
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.create-project-wizard {
  width: calc(100vw - 48px);
  height: calc(100vh - 48px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  position: relative;
  animation: cardRise 0.26s ease both;
}

.create-project-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
}

.create-project-wizard-form {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(360px, 1fr);
}

.create-project-wizard-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  color: var(--login-ink);
  padding: 40px 34px;
  display: grid;
  align-content: start;
  gap: 24px;
  border-right: 1px solid rgba(24, 32, 38, 0.08);
}

.create-project-wizard-panel .login-badge {
  background: rgba(43, 90, 74, 0.12);
  color: var(--login-deep);
}

.create-project-wizard-panel .login-brand h1 {
  font-family: "Google Sans", "Product Sans", "Arial", sans-serif;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.08;
}

.create-project-wizard-panel .login-brand p {
  color: rgba(24, 32, 38, 0.7);
}

.create-project-wizard-panel .login-illustration {
  max-width: 520px;
  width: 100%;
  justify-self: start;
  margin-top: 4px;
}

.create-project-wizard-fields {
  padding: 32px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  overflow: auto;
}

.create-project-wizard-header h2 {
  font-family: "Google Sans", "Product Sans", "Arial", sans-serif;
  font-size: 1.35rem;
}

.create-project-wizard-fields .form-grid {
  align-content: start;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-button {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-muted);
}

.edit-project-button {
  width: 24px;
  height: 24px;
  font-size: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.edit-project-button img {
  width: 18px;
  height: 18px;
  display: block;
}

.modal-form {
  display: grid;
  gap: 16px;
}

.modal-scroll {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-field {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234c566f' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.form-field textarea {
  resize: vertical;
}

.collaborator-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px auto;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 10px;
  row-gap: 6px;
}

.collaborator-label {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.collaborator-label-spacer {
  display: block;
}

.collaborator-role-select {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  padding-right: 34px;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234c566f' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.collaborator-save-btn {
  margin-bottom: 0;
  align-self: end;
}

.collaborator-user-value {
  margin-top: 0;
  align-self: center;
}

.collaborator-role-pill {
  margin-top: 0;
  align-self: center;
}

.pending-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pending-invite-content .card-title {
  margin: 0;
}

.pending-invite-content .card-meta {
  margin-top: 4px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-actions .btn {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

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

@keyframes onboardingOverlayFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes bootDot {
  0%, 20% {
    opacity: 0;
  }
  40%, 100% {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .global-nav {
    flex-direction: row;
    align-items: center;
  }

  .global-actions {
    width: auto;
    justify-content: flex-end;
  }

  .mobile-menu-wrap {
    display: block;
  }

  .global-link {
    display: none;
  }

  .avatar-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    max-width: calc(100vw - 32px);
    z-index: 1200;
  }

  .notification-dropdown {
    position: fixed;
    left: 8px;
    right: 8px;
    top: 72px;
    width: auto;
    max-width: none;
    max-height: min(70vh, calc(100dvh - 88px));
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    z-index: 1200;
  }

  .primary-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 18px;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .primary-nav.can-scroll-left {
    box-shadow: inset 24px 0 16px -16px #e5e2de;
  }

  .primary-nav.can-scroll-right {
    box-shadow: inset -24px 0 16px -16px #e5e2de;
  }

  .primary-nav.can-scroll-left.can-scroll-right {
    box-shadow:
      inset 24px 0 16px -16px #e5e2de,
      inset -24px 0 16px -16px #e5e2de;
  }

  .primary-nav a {
    white-space: nowrap;
    padding-bottom: 14px;
    margin-bottom: -1px;
  }

  .project-subtabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 18px;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .project-subtabs::-webkit-scrollbar {
    display: none;
  }

  .project-subtabs a {
    white-space: nowrap;
    padding-bottom: 12px;
    margin-bottom: -1px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .login-illustration {
    max-width: 100%;
  }

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

  .overview-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(16, 23, 39, 0.08);
    padding-bottom: 20px;
  }

  .overview-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
  }

  .overview-title .overview-tag {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
  }

  .overview-title .hero-title {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin: 0 !important;
  }

  .overview-title .edit-project-button {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }


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

  .project-summary-meta {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .project-summary-bottom {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .account-summary-bottom {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .section-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .section-header .link {
    white-space: nowrap;
  }

  .header-actions {
    width: auto;
    justify-content: flex-end;
  }

  .modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 16px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 32px);
    padding: 18px;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .create-project-wizard {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
  }

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

  .create-project-wizard-panel {
    padding: 28px 22px;
    gap: 14px;
    border-right: none;
    border-bottom: 1px solid rgba(24, 32, 38, 0.08);
  }

  .create-project-wizard-panel .login-illustration {
    max-width: 100%;
  }

  .create-project-wizard-fields {
    padding: 20px 18px 18px;
  }

  .modal-form {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
  }

  .modal-scroll {
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
  }

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

  .modal-scroll .form-grid > * {
    min-width: 0;
  }

  .modal-scroll .form-field {
    min-width: 0;
  }

  .modal-scroll .form-field input,
  .modal-scroll .form-field select,
  .modal-scroll .form-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .modal-scroll .form-field input[type="date"] {
    min-width: 0;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
  }

  .modal-scroll .form-field input[type="time"] {
    min-width: 0;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
  }

  .modal-actions {
    background: var(--panel);
    padding-top: 10px;
    border-top: 1px solid var(--card-border);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 24px;
  }

  .primary-nav {
    gap: 12px;
  }

  .primary-nav a {
    font-size: 0.85rem;
  }

  .gantt-row {
    grid-template-columns: 200px minmax(520px, 1fr);
    min-width: max-content;
    width: max-content;
  }

  .gantt-header {
    min-width: max-content;
    width: max-content;
  }

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