:root {
  --vessel-green: #1d9e75;
  --vessel-green-2: #4dd7aa;
  --progress-blue: #2477d4;
  --ink: #0c1b2e;
  --muted: #5f6b66;
  --soft: #f6faf8;
  --surface: #ffffff;
  --line: #dce8e3;
  --warning: #f2b84b;
  --warning-bg: #fff6e4;
  --danger: #d85c4a;
  --danger-bg: #fdecea;
  --blue-bg: #eaf3ff;
  --green-bg: #edf8f4;
  --shadow: 0 18px 48px rgba(12, 27, 46, 0.08);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f3f7f5;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1 {
  margin: 18px 0 18px;
  max-width: 820px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.app-shell {
  min-height: 100vh;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
}

.brand-lockup img {
  width: 42px;
  height: 39px;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 20px;
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-product {
  margin-top: 1px;
  color: var(--vessel-green);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--vessel-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  background:
    radial-gradient(circle at 82% 8%, rgba(38, 139, 216, 0.13), transparent 32%),
    radial-gradient(circle at 16% 82%, rgba(29, 158, 117, 0.2), transparent 34%),
    #070b0a;
  color: #eef8f4;
  overflow: hidden;
}

.auth-brand-pane {
  position: relative;
  min-height: 100dvh;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(140deg, rgba(10, 18, 16, 0.62), rgba(10, 18, 16, 0.16)),
    radial-gradient(circle at 32% 32%, rgba(35, 188, 139, 0.19), transparent 30%),
    #090d0c;
}

.auth-brand-pane::after {
  content: "";
  position: absolute;
  inset: auto -14% -9% -4%;
  height: 42%;
  background:
    repeating-radial-gradient(ellipse at 10% 100%, rgba(210, 246, 233, 0.2) 0 1px, transparent 2px 14px);
  opacity: 0.22;
  transform: rotate(8deg);
}

.auth-brand-lockup {
  position: relative;
  z-index: 1;
}

.auth-brand-lockup img {
  width: min(210px, 38vw);
  height: auto;
  object-fit: contain;
}

.auth-orbit {
  position: absolute;
  inset: 18% 8% 22% 5%;
  pointer-events: none;
  opacity: 0.48;
}

.auth-orbit span {
  position: absolute;
  width: 78%;
  height: 44%;
  border-top: 1px solid rgba(221, 247, 237, 0.18);
  border-radius: 100% 100% 0 0;
  transform: rotate(14deg);
  transform-origin: left bottom;
}

.auth-orbit span:nth-child(2) {
  top: 18%;
  left: 10%;
  width: 70%;
  opacity: 0.62;
}

.auth-orbit span:nth-child(3) {
  top: 35%;
  left: 20%;
  width: 62%;
  opacity: 0.36;
}

.auth-brand-pane blockquote {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
  color: #f4fffb;
}

.auth-brand-pane blockquote p {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.1vw, 42px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: 0;
}

.auth-brand-pane blockquote cite {
  color: rgba(238, 248, 244, 0.68);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
}

.login-panel {
  width: min(100% - 48px, 430px);
  align-self: center;
  justify-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.login-panel-head {
  margin-bottom: 22px;
}

.panel-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--vessel-green-2);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-title {
  margin: 0;
  max-width: 430px;
  color: #f5fffb;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.03;
  font-weight: 720;
}

.login-panel-head p,
.login-helper {
  color: rgba(238, 248, 244, 0.66);
  font-size: 14px;
  line-height: 1.6;
}

.login-panel-head p {
  margin: 12px 0 0;
}

.social-auth-list {
  display: grid;
  gap: 10px;
}

.social-auth-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(245, 250, 248, 0.94);
  color: #07110e;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-auth-button span {
  font-size: 16px;
  font-weight: 760;
}

.social-auth-button:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: rgba(238, 248, 244, 0.54);
  font-size: 12px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

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

.login-form label {
  color: rgba(238, 248, 244, 0.76);
  font-size: 12px;
  font-weight: 620;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  margin-bottom: 6px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5fffb;
  outline: 0;
  transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.login-form input::placeholder {
  color: rgba(238, 248, 244, 0.42);
}

.login-form input:focus {
  border-color: rgba(77, 215, 170, 0.56);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(29, 158, 117, 0.14);
}

.password-reset-link {
  justify-self: end;
  min-height: 28px;
  margin: -4px 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(77, 215, 170, 0.86);
  font-size: 12px;
  font-weight: 650;
  transition: color 180ms ease, opacity 180ms ease;
}

.password-reset-link:hover {
  color: #89f3cf;
}

.password-reset-link:disabled {
  cursor: wait;
  opacity: 0.58;
}

.login-submit {
  min-height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d9e75, #2477d4);
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  filter: saturate(1.07);
  box-shadow: 0 18px 42px rgba(29, 158, 117, 0.28);
}

.login-submit:disabled,
.social-auth-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.login-error {
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(216, 92, 74, 0.35);
  border-radius: 10px;
  background: rgba(216, 92, 74, 0.12);
  color: #ffc9c0;
  font-size: 13px;
  line-height: 1.45;
}

.login-notice {
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(77, 215, 170, 0.34);
  border-radius: 10px;
  background: rgba(29, 158, 117, 0.13);
  color: #b9f7df;
  font-size: 13px;
  line-height: 1.45;
}

.login-helper {
  margin: 18px 0 0;
}

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

.panel-title {
  margin: 0 0 8px;
  font-size: 24px;
}

.panel-copy {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.role-grid {
  display: grid;
  gap: 12px;
}

.role-button,
.primary-button,
.secondary-button,
.icon-button,
.ghost-button,
.status-action {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.role-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.icon-button:focus-visible,
.ghost-button:focus-visible,
.status-action:focus-visible,
.tab:focus-visible {
  outline: 3px solid rgba(36, 119, 212, 0.28);
  outline-offset: 2px;
}

.role-button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
}

.role-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(12, 27, 46, 0.08);
}

.role-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--vessel-green);
  background: var(--green-bg);
}

.role-button strong {
  display: block;
  margin-bottom: 3px;
}

.role-button span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.nav-list {
  display: grid;
  gap: 6px;
  margin-top: 34px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 650;
}

.nav-item.active {
  color: var(--ink);
  background: var(--soft);
}

.nav-button {
  width: 100%;
  border: 0;
  text-align: left;
}

.nav-chevron {
  margin-left: auto;
  transition: transform 240ms ease;
}

.nav-button[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.project-nav {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 4px 0 0 16px;
  padding: 8px 0 4px 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 360ms cubic-bezier(.22, 1, .36, 1), opacity 240ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.project-nav::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(29, 158, 117, 0.28), rgba(29, 158, 117, 0.05));
}

.project-nav.open {
  max-height: 280px;
  opacity: 1;
  transform: translateY(0);
}

.project-nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 4px;
  align-items: center;
}

.project-nav-row.selected .project-nav-link {
  color: var(--vessel-green);
  font-weight: 720;
  background: rgba(29, 158, 117, 0.08);
}

.project-nav-link,
.create-project-btn,
.project-config-btn {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.project-nav-link {
  padding: 0 8px;
  text-align: left;
  color: #60736c;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.18;
}

.project-config-btn {
  display: grid;
  place-items: center;
  color: #879690;
  opacity: 0.78;
}

.project-config-btn:hover,
.project-nav-link:hover,
.create-project-btn:hover {
  background: rgba(29, 158, 117, 0.08);
  color: var(--ink);
}

.create-project-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: flex-start;
  width: calc(100% - 4px);
  margin: 5px 0 0;
  padding: 0 9px;
  border: 1px dashed rgba(29, 158, 117, 0.26);
  background: rgba(29, 158, 117, 0.035);
  color: var(--vessel-green);
  font-size: 13px;
  font-weight: 680;
  text-transform: none;
}

.sidebar-footer {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.user-account {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(12, 27, 46, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    rgba(245, 250, 248, 0.62);
  color: var(--ink);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.user-account:hover,
.sidebar-footer.open .user-account {
  border-color: rgba(29, 158, 117, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 28px rgba(12, 27, 46, 0.065);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(29, 158, 117, 0.12);
  color: var(--vessel-green);
  font-size: 12px;
  font-weight: 820;
}

.user-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.user-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-caret {
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.sidebar-footer.open .user-caret {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  display: grid;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: max-height 260ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.sidebar-footer.open .user-menu {
  max-height: 150px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-menu button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.46);
  color: #40524b;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}

.user-menu button:hover {
  background: rgba(29, 158, 117, 0.08);
  color: var(--ink);
}

.user-menu .danger-menu-action {
  color: #b33b48;
}

.user-menu .danger-menu-action:hover {
  background: rgba(179, 59, 72, 0.09);
  color: #8c2431;
}

.danger-button {
  min-height: 42px;
  border: 1px solid rgba(179, 59, 72, 0.22);
  border-radius: 14px;
  background: rgba(179, 59, 72, 0.08);
  color: #9f2d3a;
  font-weight: 760;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.danger-button:hover {
  transform: translateY(-1px);
  border-color: rgba(179, 59, 72, 0.34);
  background: rgba(179, 59, 72, 0.12);
}

.content {
  min-width: 0;
  padding: 30px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.topbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(12, 27, 46, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 10px 22px rgba(12, 27, 46, 0.055);
  cursor: default;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.notification-bell.has-alert {
  color: #9a6108;
  background: rgba(255, 247, 228, 0.72);
  border-color: rgba(242, 184, 75, 0.28);
}

.notification-bell:hover,
.notification-bell:focus-visible {
  z-index: 100;
  transform: translateY(-1px);
  outline: none;
  background: rgba(255, 255, 255, 0.82);
}

.notification-bell span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e39b19;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 18px;
  box-shadow: 0 8px 16px rgba(227, 155, 25, 0.24);
}

.notification-bell::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 2200;
  width: max-content;
  max-width: min(260px, calc(100vw - 48px));
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(12, 27, 46, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.notification-bell:hover::after,
.notification-bell:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.primary-button {
  padding: 0 16px;
  color: #fff;
  background: var(--vessel-green);
  font-weight: 750;
}

.secondary-button,
.ghost-button {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.secondary-button svg {
  flex: 0 0 auto;
}

.compact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
  gap: 6px;
}

.compact-action svg {
  width: 15px;
  height: 15px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.section,
.summary-card,
.invoice-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.section {
  padding: 20px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  padding: 16px;
}

.summary-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-value {
  margin-top: 8px;
  font-size: 25px;
  font-weight: 760;
}

.progress-panel {
  position: relative;
  overflow: visible;
}

.progress-panel:has(.milestone:hover),
.progress-panel:has(.milestone:focus-within) {
  z-index: 900;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.progress-header h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.progress-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.progress-score {
  text-align: right;
}

.progress-score strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.progress-score span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mega-progress {
  position: relative;
  height: 154px;
  padding-top: 52px;
  overflow: visible;
}

.track,
.done-track,
.valid-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 58px;
  height: 22px;
  border-radius: 999px;
}

.track {
  background: #e9efec;
}

.done-track,
.valid-track {
  width: 0;
  right: auto;
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.done-track {
  background: var(--progress-blue);
}

.valid-track {
  background: var(--vessel-green);
}

.milestone {
  position: absolute;
  top: 10px;
  z-index: 4;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 96px;
}

.milestone.lane-1 {
  top: 86px;
}

.milestone-pin {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #d9e2de;
  color: var(--muted);
  box-shadow: 0 8px 16px rgba(12, 27, 46, 0.12);
}

.milestone.done .milestone-pin {
  background: var(--progress-blue);
  color: #fff;
}

.milestone.validated .milestone-pin {
  background: var(--vessel-green);
  color: #fff;
}

.milestone.invoice .milestone-pin {
  background: var(--warning);
  color: #5d3b00;
}

.milestone-label {
  max-width: 100px;
  min-height: 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.milestone.lane-1 .milestone-label {
  order: -1;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 750;
}

.tab.active {
  border-color: rgba(29, 158, 117, 0.35);
  background: var(--green-bg);
  color: var(--ink);
}

.backlog {
  display: grid;
  gap: 10px;
}

.group {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: visible;
}

.group-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border: 0;
  background: #fff;
  text-align: left;
}

.chevron {
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 180ms ease;
}

.group.collapsed .chevron {
  transform: rotate(-90deg);
}

.group-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  font-weight: 760;
}

.group-meta {
  color: var(--muted);
  font-size: 13px;
}

.group-weight {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mini-bar {
  width: 92px;
  height: 8px;
  border-radius: 999px;
  background: #e9efec;
  overflow: hidden;
}

.mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--vessel-green);
}

.activity-list {
  position: relative;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  overflow: visible;
}

.group.collapsed .activity-list {
  max-height: 0;
  opacity: 0;
  padding: 0 10px 0 46px;
  overflow: hidden;
  pointer-events: none;
}

.activity {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
  border-top: 1px solid #edf3f0;
}

.activity:first-child {
  border-top: 0;
}

.activity-name {
  font-weight: 700;
}

.activity-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.activity-actions {
  position: relative;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef1f4;
  color: var(--muted);
}

.status-dot.progress {
  background: var(--blue-bg);
  color: var(--progress-blue);
}

.status-dot.ready {
  background: #fff6e4;
  color: #9a681d;
}

.status-dot.validated,
.status-dot.done {
  background: var(--green-bg);
  color: var(--vessel-green);
}

.status-dot.rejected {
  background: var(--danger-bg);
  color: var(--danger);
}

.status-action {
  padding: 0 12px;
  min-height: 36px;
  background: var(--blue-bg);
  color: var(--progress-blue);
  font-size: 13px;
  font-weight: 800;
}

.status-action.green {
  background: var(--green-bg);
  color: var(--vessel-green);
}

.status-action.orange {
  background: var(--warning-bg);
  color: #8a5b0f;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.notification-list,
.invoice-list,
.contact-list,
.project-list {
  display: grid;
  gap: 10px;
}

.alert-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(12, 27, 46, 0.055);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(246, 250, 249, 0.34)),
    rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.alert-row:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 158, 117, 0.13);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(243, 250, 247, 0.42)),
    rgba(255, 255, 255, 0.34);
  box-shadow: 0 10px 24px rgba(12, 27, 46, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.alert-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--vessel-green);
  background: rgba(29, 158, 117, 0.1);
  box-shadow: inset 0 0 0 1px rgba(29, 158, 117, 0.08);
}

.payment-alert .alert-icon {
  color: #a06a12;
  background: rgba(242, 184, 75, 0.13);
  box-shadow: inset 0 0 0 1px rgba(242, 184, 75, 0.14);
}

.quiet-alert .alert-icon {
  color: rgba(12, 27, 46, 0.56);
  background: rgba(12, 27, 46, 0.045);
  box-shadow: inset 0 0 0 1px rgba(12, 27, 46, 0.04);
}

.alert-icon svg {
  width: 17px;
  height: 17px;
}

.alert-copy {
  min-width: 0;
}

.alert-copy strong,
.alert-copy small {
  display: block;
}

.alert-copy strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.18;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.alert-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(12, 27, 46, 0.055);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: rgba(12, 27, 46, 0.58);
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}

.validation-alert .alert-chip {
  color: var(--vessel-green);
  background: rgba(29, 158, 117, 0.08);
  border-color: rgba(29, 158, 117, 0.12);
}

.payment-alert .alert-chip {
  color: #91600f;
  background: rgba(242, 184, 75, 0.12);
  border-color: rgba(242, 184, 75, 0.18);
}

.note {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.note.payment-alert {
  border: 1px solid rgba(242, 184, 75, 0.24);
  background: rgba(255, 247, 228, 0.72);
  color: #78500e;
}

.invoice-card {
  padding: 14px;
}

.invoice-card.pending {
  border-color: rgba(242, 184, 75, 0.55);
  background: var(--warning-bg);
}

.invoice-card.paid {
  border-color: rgba(29, 158, 117, 0.35);
  background: var(--green-bg);
}

.invoice-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.invoice-amount {
  font-size: 22px;
  font-weight: 780;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge.green {
  background: var(--green-bg);
  color: var(--vessel-green);
}

.badge.blue {
  background: var(--blue-bg);
  color: var(--progress-blue);
}

.badge.orange {
  background: var(--warning-bg);
  color: #8a5b0f;
}

.badge.red {
  background: var(--danger-bg);
  color: var(--danger);
}

.chart-placeholder {
  min-height: 340px;
  display: grid;
  gap: 12px;
  align-content: center;
}

.gantt-panel {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 44px rgba(12, 27, 46, 0.06);
  backdrop-filter: blur(18px);
}

.gantt-axis {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 10px;
}

.gantt-axis div {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.gantt-body {
  display: grid;
  gap: 12px;
}

.gantt-group {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 8px 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
}

.gantt-label {
  display: grid;
  align-content: center;
  min-height: 34px;
}

.gantt-label span {
  color: var(--muted);
  font-size: 12px;
}

.activity-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.gantt-lane {
  position: relative;
  min-height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(12,27,46,.05) 1px, transparent 1px) 0 0 / 16.66% 100%;
}

.gantt-bar {
  position: absolute;
  top: 5px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
}

.gantt-bar.group-pending,
.gantt-bar.activity-pending {
  background: rgba(232, 238, 235, 0.9);
}

.gantt-bar.group-progress,
.gantt-bar.activity-progress {
  background: rgba(36, 119, 212, 0.2);
  color: var(--progress-blue);
}

.gantt-bar.activity-ready {
  background: rgba(242, 184, 75, 0.24);
  color: #8a5b0f;
}

.gantt-bar.group-validated,
.gantt-bar.activity-done,
.gantt-bar.activity-validated {
  background: rgba(29, 158, 117, 0.22);
  color: var(--vessel-green);
}

.gantt-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.gantt-track {
  height: 26px;
  border-radius: 999px;
  background: #e9efec;
  overflow: hidden;
}

.gantt-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--progress-blue), var(--vessel-green));
}

.client-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.project-card {
  padding: 16px;
}

.project-card.selected {
  border-color: rgba(29, 158, 117, 0.5);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 27, 46, 0.48);
}

.modal {
  width: min(640px, 100%);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(12, 27, 46, 0.22);
}

.modal-header,
.modal-body,
.modal-footer {
  padding: 18px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
}

.modal-body {
  display: grid;
  gap: 14px;
}

.modal-body textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.hidden {
  display: none !important;
}

svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .login-screen,
  .workspace,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .login-screen {
    overflow: auto;
  }

  .auth-brand-pane {
    min-height: 320px;
    padding: 28px;
  }

  .auth-brand-pane blockquote p {
    font-size: 26px;
  }

  .login-panel {
    width: min(100% - 36px, 430px);
    padding: 42px 0 56px;
  }

  .sidebar {
    position: static;
    height: auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }

  .nav-list,
  .sidebar-footer {
    display: none;
  }

  .summary-strip,
  .client-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .auth-brand-pane {
    min-height: 230px;
  }

  .auth-brand-lockup img {
    width: 168px;
  }

  .auth-brand-pane blockquote p {
    font-size: 22px;
  }

  .login-panel {
    width: min(100% - 28px, 430px);
    padding: 30px 0 44px;
  }

  .login-title {
    font-size: 30px;
  }

  .content {
    padding: 18px;
  }

  .topbar,
  .progress-header {
    display: grid;
  }

  .progress-score {
    text-align: left;
  }

  .summary-strip,
  .client-projects {
    grid-template-columns: 1fr;
  }

  .activity,
  .group-toggle {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .activity-actions,
  .group-weight {
    grid-column: 2;
    justify-content: flex-start;
  }

  .milestone {
    width: 74px;
  }

  .milestone-label {
    display: none;
  }
}

/* Minimal floating SaaS prototype */
.workspace {
  background:
    radial-gradient(circle at 78% 8%, rgba(29, 158, 117, 0.1), transparent 24%),
    linear-gradient(180deg, #f7fbf9 0%, #eef5f2 100%);
}

.content {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.topbar {
  margin-bottom: 22px;
}

.view-switch-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 30px;
}

.view-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 236px;
  min-height: 60px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    rgba(244, 251, 248, 0.46);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -12px 22px rgba(12, 27, 46, 0.035),
    0 18px 42px rgba(12, 27, 46, 0.12);
  backdrop-filter: blur(22px) saturate(1.24);
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
  user-select: none;
}

.view-switch::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 48%, rgba(29, 158, 117, 0.08));
  pointer-events: none;
}

.view-switch:focus-visible {
  outline: 3px solid rgba(36, 119, 212, 0.24);
  outline-offset: 4px;
}

.switch-label {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
  transition: color 220ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.switch-label.active {
  color: var(--ink);
  font-weight: 760;
  transform: translateY(-1px);
}

.switch-thumb {
  position: absolute;
  z-index: 1;
  inset: 5px auto 5px 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 12px 28px rgba(12, 27, 46, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 -8px 18px rgba(12, 27, 46, 0.05);
  transition: transform 420ms cubic-bezier(.2, .9, .2, 1);
}

.switch-thumb.right {
  transform: translateX(100%);
}

.view-panel {
  animation: softSwap 360ms cubic-bezier(.22, 1, .36, 1);
}

@keyframes softSwap {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.float-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.glass-section,
.backlog-section,
.invoices-section {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 44px rgba(12, 27, 46, 0.06);
  backdrop-filter: blur(18px);
}

.report-panel {
  position: relative;
  overflow: visible;
  padding: 18px;
  border: 1px solid rgba(12, 27, 46, 0.06);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(240, 248, 245, 0.38)),
    rgba(255, 255, 255, 0.36);
  box-shadow: 0 18px 46px rgba(12, 27, 46, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.12);
}

.report-panel::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(29, 158, 117, 0.34), rgba(36, 119, 212, 0.12), transparent);
}

.report-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.report-panel-head > div {
  min-width: 0;
}

.panel-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--vessel-green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-panel-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.16;
  font-weight: 790;
}

.panel-count {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(29, 158, 117, 0.13);
  border-radius: 12px;
  background: rgba(29, 158, 117, 0.08);
  color: var(--vessel-green);
  font-size: 12px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.floating-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin: 18px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head h3,
.glass-section h3 {
  margin: 0;
  font-size: 20px;
}

.section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.progress-panel {
  padding: 6px 0 0;
}

.progress-header {
  max-width: 880px;
  margin: 0 auto 18px;
  text-align: center;
  display: block;
}

.progress-header h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.mega-progress {
  width: min(100%, 1120px);
  height: 260px;
  margin: 0 auto;
  padding-top: 76px;
}

.track,
.done-track,
.valid-track {
  top: 78px;
  height: 96px;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -1px 0 rgba(12, 27, 46, 0.08),
    0 18px 44px rgba(11, 68, 51, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.track {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18)),
    linear-gradient(90deg, rgba(27, 154, 111, 0.08), rgba(18, 110, 88, 0.13) 48%, rgba(27, 154, 111, 0.06)),
    #dbe8e2;
  border: 1px solid rgba(10, 50, 39, 0.08);
}

.done-track {
  background:
    radial-gradient(ellipse at 18% 24%, rgba(83, 184, 238, 0.5) 0 16%, transparent 48%),
    radial-gradient(ellipse at 82% 62%, rgba(11, 89, 194, 0.44) 0 18%, transparent 54%),
    linear-gradient(115deg, rgba(102, 214, 245, 0.18), transparent 34%, rgba(19, 91, 193, 0.2) 72%, transparent),
    linear-gradient(180deg, #1b88de 0%, #0f73ce 48%, #0c5cad 100%);
  background-size: 150% 170%, 160% 155%, 220% 100%, 100% 100%;
  background-blend-mode: screen, multiply, soft-light, normal;
  animation: livingGradient 12s ease-in-out infinite alternate;
  border: 1px solid rgba(57, 164, 233, 0.34);
}

.valid-track {
  background:
    radial-gradient(ellipse at 18% 24%, rgba(103, 224, 170, 0.48) 0 16%, transparent 48%),
    radial-gradient(ellipse at 82% 62%, rgba(4, 100, 73, 0.5) 0 18%, transparent 54%),
    linear-gradient(115deg, rgba(106, 233, 180, 0.2), transparent 34%, rgba(12, 111, 83, 0.22) 72%, transparent),
    linear-gradient(180deg, #22b889 0%, #139b75 48%, #0b7d61 100%);
  background-size: 150% 170%, 160% 155%, 220% 100%, 100% 100%;
  background-blend-mode: screen, multiply, soft-light, normal;
  animation: livingGradient 12s ease-in-out infinite alternate;
  border: 1px solid rgba(50, 196, 141, 0.36);
}

.done-track::before,
.valid-track::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 50%, transparent);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.done-track::after,
.valid-track::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  border-radius: 17px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 -18px 34px rgba(5, 45, 36, 0.12);
  pointer-events: none;
}

.progress-shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.progress-percent {
  position: absolute;
  inset: 78px 0 auto;
  z-index: 5;
  height: 96px;
  display: grid;
  place-items: center;
  color: #fff;
  text-shadow: 0 1px 12px rgba(12, 27, 46, 0.42);
  font-size: 22px;
  font-weight: 850;
}

@keyframes livingGradient {
  from {
    background-position: -10% 22%, 92% 46%, 34% 118%, 0% 50%, 0 0;
  }
  to {
    background-position: 92% 12%, 4% 62%, 84% 86%, 100% 50%, 0 0;
  }
}

.milestone {
  top: 42px;
}

.milestone.lane-1 {
  top: 184px;
}

.milestone-pin {
  width: 38px;
  height: 38px;
}

.milestone-label {
  min-height: 0;
  color: var(--ink);
  font-size: 11px;
}

.backlog-section {
  margin-top: 18px;
  position: relative;
  z-index: 1;
  padding: 6px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.backlog-section .section-head {
  width: min(100%, 1120px);
  margin: 0 auto 14px;
}

.backlog {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.backlog-section:has(.icon-state-btn:hover),
.backlog-section:has(.icon-state-btn:focus-visible) {
  z-index: 900;
}

.group {
  border: 1px solid rgba(12, 27, 46, 0.055);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 14px 34px rgba(12, 27, 46, 0.045);
  overflow: visible;
}

.group + .group {
  margin-top: 12px;
}

.group-toggle {
  position: relative;
  min-height: 82px;
  padding: 14px 16px 14px 14px;
  border-radius: 16px;
  border: 0;
  background: transparent;
  transition: background 180ms ease, transform 180ms ease;
}

.group-toggle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: rgba(105, 119, 113, 0.32);
}

.group-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
}

.group-pending .group-toggle {
  background: rgba(244, 247, 245, 0.56);
}

.group-pending .group-toggle::before {
  background: rgba(121, 133, 128, 0.36);
}

.group-progress .group-toggle {
  background: rgba(36, 119, 212, 0.075);
}

.group-progress .group-toggle::before {
  background: var(--progress-blue);
}

.group-validated .group-toggle {
  background: rgba(29, 158, 117, 0.09);
}

.group-validated .group-toggle::before {
  background: var(--vessel-green);
}

.group-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.group-title {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: 0;
}

.group-meta {
  color: #73837d;
  font-size: 12px;
  font-weight: 560;
}

.group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.group-weight {
  align-self: center;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(12, 27, 46, 0.04);
}

.mini-bar {
  width: 84px;
  height: 6px;
  background: rgba(12, 27, 46, 0.06);
}

.activity-list {
  border-top: 0;
  gap: 7px;
  padding: 12px 10px 12px 46px;
  max-height: 1200px;
  opacity: 1;
  overflow: visible;
  transition: max-height 420ms cubic-bezier(.22, 1, .36, 1), opacity 260ms ease, padding 260ms ease;
}

.activity {
  width: 100%;
  min-height: 62px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 10px 12px;
  border: 1px solid rgba(12, 27, 46, 0.035);
  border-radius: 12px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.activity:hover {
  transform: translateY(-1px);
  border-color: rgba(12, 27, 46, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 10px 22px rgba(12, 27, 46, 0.045);
}

.activity-pending {
  background: rgba(245, 248, 246, 0.74);
}

.activity-progress {
  background: rgba(36, 119, 212, 0.085);
}

.activity-ready {
  background: rgba(242, 184, 75, 0.12);
}

.activity-done,
.activity-validated {
  background: rgba(29, 158, 117, 0.105);
}

.activity-rejected {
  background: rgba(216, 92, 74, 0.12);
}

.activity-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 730;
  line-height: 1.25;
}

.activity-meta {
  margin-top: 3px;
  color: #6f8079;
  font-size: 12px;
  line-height: 1.35;
}

.status-dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow:
    inset 0 0 0 1px rgba(12, 27, 46, 0.055),
    0 8px 16px rgba(12, 27, 46, 0.04);
}

.icon-state-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(12, 27, 46, 0.055),
    0 6px 14px rgba(12, 27, 46, 0.035);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.icon-state-btn:hover {
  z-index: 120;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(12, 27, 46, 0.08),
    0 10px 20px rgba(12, 27, 46, 0.07);
}

.icon-state-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 2000;
  width: max-content;
  max-width: min(420px, calc(100vw - 48px));
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(12, 27, 46, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 650;
  white-space: normal;
  text-wrap: pretty;
  box-shadow: 0 14px 26px rgba(12, 27, 46, 0.2);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.icon-state-btn:hover::after,
.icon-state-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.group:has(.icon-state-btn:hover),
.group:has(.icon-state-btn:focus-visible),
.activity:has(.icon-state-btn:hover),
.activity:has(.icon-state-btn:focus-visible) {
  z-index: 100;
}

.icon-state-btn.neutral {
  color: var(--muted);
}

.icon-state-btn.blue {
  background: rgba(36, 119, 212, 0.1);
  color: var(--progress-blue);
}

.icon-state-btn.green {
  background: rgba(29, 158, 117, 0.12);
  color: var(--vessel-green);
}

.team-list {
  display: grid;
  gap: 9px;
}

.team-person {
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(12, 27, 46, 0.052);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(246, 250, 249, 0.32)),
    rgba(255, 255, 255, 0.28);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.team-person:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 158, 117, 0.13);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(242, 249, 247, 0.42)),
    rgba(255, 255, 255, 0.34);
  box-shadow: 0 10px 24px rgba(12, 27, 46, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.team-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  align-self: center;
  border-radius: 13px;
  color: var(--vessel-green);
  background: rgba(29, 158, 117, 0.1);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(29, 158, 117, 0.09);
}

.team-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.team-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-person strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  flex: 0 0 auto;
}

.team-contact-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.54);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(12, 27, 46, 0.055);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.team-contact-button svg {
  width: 15px;
  height: 15px;
}

.team-contact-button:hover,
.team-contact-button:focus-visible {
  z-index: 140;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(12, 27, 46, 0.08),
    0 10px 20px rgba(12, 27, 46, 0.07);
}

.team-contact-button.mail:hover,
.team-contact-button.mail:focus-visible {
  color: var(--progress-blue);
}

.team-contact-button.whatsapp:hover,
.team-contact-button.whatsapp:focus-visible {
  color: var(--vessel-green);
}

.team-contact-button::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 2200;
  width: max-content;
  max-width: min(220px, calc(100vw - 48px));
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(12, 27, 46, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.team-contact-button:hover::after,
.team-contact-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.team-main small,
.invoice-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.team-main small {
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoices-section {
  margin-top: 18px;
  padding: 6px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.invoices-section .section-head,
.invoices-section .invoice-list {
  width: min(100%, 1120px);
  margin-left: auto;
  margin-right: auto;
}

.invoices-section .section-head {
  margin-bottom: 14px;
}

.invoice-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 272px));
  justify-content: space-between;
  gap: 22px;
  perspective: 1200px;
}

.invoice-list::before {
  content: "";
  position: absolute;
  inset: 16% 0 -12%;
  z-index: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 18%, rgba(123, 166, 183, 0.11), transparent 34%),
    radial-gradient(circle at 50% 110%, rgba(204, 142, 198, 0.12), transparent 38%),
    radial-gradient(circle at 90% 28%, rgba(29, 158, 117, 0.06), transparent 32%);
  filter: blur(34px);
  opacity: 0.54;
  pointer-events: none;
}

.invoice-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  aspect-ratio: 3 / 2;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(120, 132, 141, 0.22)),
    rgba(134, 147, 156, 0.26);
  color: var(--ink);
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(12, 27, 46, 0.04),
    0 16px 34px rgba(12, 27, 46, 0.075);
  backdrop-filter: blur(26px) saturate(1.35) contrast(1.02);
  -webkit-backdrop-filter: blur(26px) saturate(1.35) contrast(1.02);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1), box-shadow 260ms ease, border-color 260ms ease;
}

.invoice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.3) 0%, transparent 35%),
    linear-gradient(294deg, rgba(12, 27, 46, 0.04), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.invoice-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 42%, rgba(255, 255, 255, 0.09));
  pointer-events: none;
}

.invoice-card:hover {
  transform: translateY(-4px) rotateX(.7deg) rotateY(-.8deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 24px 48px rgba(12, 27, 46, 0.12);
}

.invoice-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(118, 132, 142, 0.045), rgba(102, 115, 124, 0.13));
  filter: none;
  opacity: 1;
  animation: invoiceGlassDrift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

.invoice-card.pending .invoice-glow {
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(118, 132, 142, 0.045), rgba(102, 115, 124, 0.13));
}

.invoice-card.pending {
  border-color: rgba(208, 143, 24, 0.34);
}

.invoice-card.paid {
  border-color: rgba(29, 158, 117, 0.34);
}

@keyframes invoiceGlassDrift {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(-2deg) scale(1);
  }
  to {
    transform: translate3d(2%, 1%, 0) rotate(2deg) scale(1.035);
  }
}

.upload-invoice-card {
  border: 1px dashed rgba(29, 158, 117, 0.36);
  color: var(--vessel-green);
}

.upload-invoice-card small {
  color: var(--muted);
}

.invoice-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--vessel-green);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 8px 16px rgba(12, 27, 46, 0.055);
  transform: translateZ(14px);
}

.invoice-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.invoice-accent {
  position: absolute;
  left: 15px;
  right: 15px;
  top: 0;
  z-index: 3;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: rgba(255, 255, 255, 0.28);
}

.invoice-card.paid .invoice-accent,
.upload-invoice-card .invoice-accent {
  background: linear-gradient(90deg, transparent, rgba(29, 158, 117, 0.72), transparent);
}

.invoice-card.pending .invoice-accent {
  background: linear-gradient(90deg, transparent, rgba(208, 143, 24, 0.72), transparent);
}

.invoice-body {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  gap: 5px;
  min-width: 0;
  transform: translateZ(10px);
}

.invoice-body strong {
  display: -webkit-box;
  max-width: none;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 720;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.invoice-body small {
  color: rgba(72, 88, 82, 0.78);
  font-size: 10.5px;
  line-height: 1.25;
}

.invoice-status {
  width: max-content;
  min-height: 21px;
  padding: 0 8px;
  font-size: 10.5px;
  font-weight: 760;
}

.invoice-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-right: 74px;
  align-self: end;
  margin-top: 0;
}

.upload-invoice-card .invoice-foot {
  padding-right: 0;
}

.invoice-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0;
  white-space: normal;
}

.invoice-amount-label {
  white-space: nowrap;
}

.invoice-tax-label {
  color: rgba(12, 27, 46, 0.74);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.invoice-date {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-preview {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.invoice-preview span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--vessel-green);
}

.invoice-side {
  display: none;
}

.invoice-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 8;
  display: flex;
  padding: 3px;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.invoice-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  box-shadow:
    inset 0 0 0 1px rgba(12, 27, 46, 0.06),
    0 10px 18px rgba(12, 27, 46, 0.055);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.invoice-action:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(12, 27, 46, 0.08),
    0 14px 24px rgba(12, 27, 46, 0.09);
}

.invoice-action.success {
  color: var(--vessel-green);
}

.invoice-action.danger {
  color: var(--danger);
}

.invoice-action::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  z-index: 20;
  width: max-content;
  max-width: 220px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(12, 27, 46, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.invoice-action:hover::after,
.invoice-action:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.config-screen:not(.config-workspace) {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 44px rgba(12, 27, 46, 0.06);
  backdrop-filter: blur(18px);
}

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

.config-panel {
  display: grid;
  gap: 8px;
}

.config-panel h4 {
  margin: 0 0 8px;
}

.config-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  text-align: left;
}

.config-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
}

.wide-modal {
  width: min(760px, 100%);
}

.segmented-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(12, 27, 46, 0.05);
}

.segmented-choice button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented-choice button.active {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(12, 27, 46, 0.08);
}

.clients-screen {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 44px rgba(12, 27, 46, 0.05);
  backdrop-filter: blur(18px);
}

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

.client-card {
  display: grid;
  gap: 18px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(12, 27, 46, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.client-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.client-card-head strong,
.client-card-head small {
  display: block;
}

.client-card-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.client-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(29, 158, 117, 0.12);
  color: var(--vessel-green);
  font-size: 12px;
  font-weight: 850;
}

.client-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.client-metrics span {
  display: grid;
  gap: 2px;
}

.client-metrics small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.client-total {
  font-size: 22px;
  font-weight: 850;
}

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

.danger-light {
  color: var(--danger);
}

.profile-screen {
  display: grid;
  gap: 18px;
}

.wizard-screen {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.wizard-rail {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(12, 27, 46, 0.055);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(18px);
}

.wizard-rail span {
  min-height: 34px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.wizard-rail span.active {
  background: rgba(29, 158, 117, 0.1);
  color: var(--vessel-green);
}

.wizard-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(12, 27, 46, 0.065);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 18px 44px rgba(12, 27, 46, 0.045);
  backdrop-filter: blur(18px);
}

.wizard-copy h3 {
  margin: 7px 0 6px;
  font-size: 28px;
}

.wizard-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.wizard-form,
.ai-intake-shell {
  display: grid;
  gap: 14px;
}

.wizard-form > label,
.ai-intake-shell textarea {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.wizard-form input,
.wizard-form textarea,
.ai-intake-shell textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(12, 27, 46, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 0 12px;
}

.ai-intake-shell textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
}

.wizard-chat-log {
  display: grid;
  gap: 10px;
}

.wizard-message {
  max-width: 78%;
  padding: 12px 14px;
  border: 1px solid rgba(12, 27, 46, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.wizard-message.user {
  justify-self: end;
  background: rgba(36, 119, 212, 0.09);
}

.wizard-message.assistant {
  justify-self: start;
  background: rgba(29, 158, 117, 0.08);
}

.wizard-message strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
}

.wizard-message p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.wizard-upload-line {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.wizard-upload-line input {
  min-height: 44px;
  padding: 10px;
  border: 1px dashed rgba(12, 27, 46, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.32);
}

.wizard-mini-gantt,
.wizard-summary-grid {
  display: grid;
  gap: 10px;
}

.wizard-gantt-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(12, 27, 46, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.3);
}

.wizard-gantt-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(92px, 0.65fr)) auto;
  gap: 8px;
  align-items: center;
}

.wizard-gantt-row input {
  min-height: 38px;
  border: 1px solid rgba(12, 27, 46, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 0 10px;
}

.wizard-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wizard-summary-grid span {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(12, 27, 46, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.34);
}

.wizard-summary-grid strong {
  color: var(--ink);
  font-size: 18px;
}

.wizard-summary-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.billing-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.billing-choice legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.billing-choice-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(12, 27, 46, 0.065);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.billing-choice-card input {
  position: absolute;
  inset: 12px 12px auto auto;
  width: 16px;
  min-height: 16px;
}

.billing-choice-card:has(input:checked) {
  border-color: rgba(29, 158, 117, 0.32);
  background: rgba(29, 158, 117, 0.08);
}

.billing-choice-card strong {
  color: var(--ink);
  font-size: 14px;
}

.billing-choice-card small {
  max-width: 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.wizard-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.profile-hero,
.profile-panel {
  border: 1px solid rgba(12, 27, 46, 0.065);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 18px 44px rgba(12, 27, 46, 0.045);
  backdrop-filter: blur(18px);
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.profile-hero h3 {
  margin: 6px 0 4px;
  font-size: 26px;
}

.profile-hero p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.profile-panel {
  padding: 18px;
}

.payment-status,
.payment-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(29, 158, 117, 0.11);
  color: var(--vessel-green);
  font-size: 12px;
  font-weight: 820;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.payment-card-row,
.empty-profile-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(12, 27, 46, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.36);
}

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

.payment-card-row strong,
.empty-profile-note strong {
  color: var(--ink);
  font-size: 14px;
}

.payment-card-row small,
.empty-profile-note small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.usage-panel {
  display: grid;
  gap: 14px;
}

.usage-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(12, 27, 46, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.32);
}

.usage-meter strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.usage-meter small,
.usage-meter > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.usage-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(12, 27, 46, 0.08);
}

.usage-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(29, 158, 117, 0.9), rgba(36, 119, 212, 0.82));
}

.config-workspace {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
}

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

.config-actions .secondary-button,
.config-actions .primary-button,
.config-actions .danger-button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
}

.config-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  letter-spacing: 0;
  white-space: nowrap;
}

.config-action-button svg {
  width: 15px;
  height: 15px;
}

.billing-config-section {
  display: grid;
  gap: 14px;
}

.locked-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(29, 158, 117, 0.14);
  border-radius: 999px;
  background: rgba(29, 158, 117, 0.08);
  color: var(--vessel-green);
  font-size: 11px;
  font-weight: 820;
}

.pro-pill {
  color: #2477d4;
  border-color: rgba(36, 119, 212, 0.14);
  background: rgba(36, 119, 212, 0.08);
}

.locked-pill svg {
  width: 14px;
  height: 14px;
}

.billing-edit-list {
  display: grid;
  gap: 10px;
}

.billing-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 112px minmax(160px, 0.5fr);
  align-items: end;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(12, 27, 46, 0.065);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(240, 248, 245, 0.34)),
    rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.billing-edit-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.billing-edit-row input,
.billing-edit-row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(12, 27, 46, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 0 10px;
}

.destructive-warning {
  padding: 16px;
  border: 1px solid rgba(179, 59, 72, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(179, 59, 72, 0.1), rgba(255, 255, 255, 0.44));
  color: #7f2630;
  line-height: 1.45;
}

.config-hero,
.config-section {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(12, 27, 46, 0.07);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(241, 248, 246, 0.42)),
    rgba(255, 255, 255, 0.36);
  box-shadow: 0 20px 54px rgba(12, 27, 46, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.12);
}

.config-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 23px 24px;
}

.config-hero > div {
  min-width: 0;
}

.config-hero::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(29, 158, 117, 0.42), rgba(36, 119, 212, 0.18), transparent);
}

.config-kicker {
  color: var(--vessel-green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.config-hero h3 {
  margin: 6px 0 4px;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: 0;
}

.config-hero p {
  margin: 0;
  color: var(--muted);
}

.config-section {
  padding: 20px;
}

.config-section .section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-bottom: 16px;
}

.config-section .section-head > div {
  min-width: 0;
}

.config-section .section-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 790;
  letter-spacing: 0;
}

.config-section .section-head span {
  color: rgba(76, 91, 90, 0.86);
  font-size: 12px;
  font-weight: 680;
}

.config-section .section-head > span,
.section-actions > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(12, 27, 46, 0.055);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
  white-space: nowrap;
}

.section-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.config-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.editable-gantt,
.inline-edit-list,
.access-list,
.material-edit-list {
  display: grid;
  gap: 12px;
}

.editable-gantt-group {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(12, 27, 46, 0.06);
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(232, 244, 240, 0.26)),
    rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gantt-ungrouped-tray {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(12, 27, 46, 0.11);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(235, 241, 239, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.gantt-ungrouped-tray.has-items {
  border-style: solid;
}

.gantt-ungrouped-tray.active {
  border-color: rgba(29, 158, 117, 0.34);
  background: linear-gradient(135deg, rgba(29, 158, 117, 0.1), rgba(255, 255, 255, 0.36));
  box-shadow: inset 0 0 0 1px rgba(29, 158, 117, 0.08);
}

.ungrouped-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 4px 0;
  color: rgba(12, 27, 46, 0.72);
}

.ungrouped-head span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.ungrouped-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.ungrouped-list {
  display: grid;
  gap: 7px;
}

.editable-gantt-group.dragging,
.activity-row.dragging {
  opacity: 0.58;
  transform: scale(0.995);
}

.editable-gantt-group.drag-over,
.editable-gantt-group.activity-drop-active {
  border-radius: 16px;
  border-color: rgba(36, 119, 212, 0.22);
  background: linear-gradient(135deg, rgba(36, 119, 212, 0.11), rgba(255, 255, 255, 0.34));
  box-shadow: inset 0 0 0 1px rgba(36, 119, 212, 0.08);
}

.editable-gantt-row,
.inline-edit-row,
.material-edit-row {
  display: grid;
  grid-template-columns: 32px minmax(180px, 1.3fr) repeat(3, minmax(92px, 0.7fr)) minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(12, 27, 46, 0.055);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(246, 250, 249, 0.32)),
    rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.editable-gantt-row:hover {
  border-color: rgba(29, 158, 117, 0.13);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(242, 249, 247, 0.42)),
    rgba(255, 255, 255, 0.34);
  box-shadow: 0 10px 28px rgba(12, 27, 46, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.editable-gantt-row.group-row {
  background:
    linear-gradient(135deg, rgba(29, 158, 117, 0.105), rgba(255, 255, 255, 0.38)),
    rgba(29, 158, 117, 0.035);
  border-color: rgba(29, 158, 117, 0.13);
}

.editable-gantt-row.activity-row {
  margin-left: 28px;
}

.editable-gantt-row.activity-row.loose-row {
  margin-left: 0;
}

.inline-edit-row,
.material-edit-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.44);
  color: rgba(12, 27, 46, 0.34);
  font-size: 13px;
  font-weight: 850;
  cursor: grab;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.drag-handle svg,
.drag-handle * {
  pointer-events: none;
}

.drag-handle:hover {
  background: rgba(29, 158, 117, 0.1);
  color: var(--vessel-green);
  transform: translateY(-1px);
}

.drag-handle:active {
  cursor: grabbing;
}

.icon-state-btn.active {
  color: var(--vessel-green);
  background: rgba(29, 158, 117, 0.12);
}

.material-edit-row {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr) minmax(0, 1fr);
}

.material-add-button {
  flex: 0 0 auto;
  min-width: 108px;
  padding-inline: 12px;
  white-space: nowrap;
}

.editable-gantt-row input,
.editable-gantt-row select,
.inline-edit-row input,
.theme-grid input,
.theme-grid select,
.material-edit-row input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  text-overflow: ellipsis;
}

.editable-gantt-row input:focus,
.editable-gantt-row select:focus,
.inline-edit-row input:focus,
.theme-grid input:focus,
.theme-grid select:focus,
.material-edit-row input:focus {
  border-color: rgba(29, 158, 117, 0.24);
  background: rgba(255, 255, 255, 0.76);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.08);
}

.gantt-activity-dropzone,
.gantt-root-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-left: 28px;
  border: 1px dashed rgba(36, 119, 212, 0.16);
  border-radius: 14px;
  background: rgba(36, 119, 212, 0.035);
  color: rgba(12, 27, 46, 0.42);
  font-size: 11px;
  font-weight: 760;
  opacity: 0.72;
  transition: opacity 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.gantt-root-dropzone {
  margin-left: 0;
  min-height: 30px;
  border-color: rgba(29, 158, 117, 0.14);
  background: rgba(29, 158, 117, 0.035);
}

.gantt-activity-dropzone.active,
.editable-gantt-group.activity-drop-active .gantt-activity-dropzone,
.gantt-ungrouped-tray.active .gantt-root-dropzone {
  opacity: 1;
  border-color: rgba(36, 119, 212, 0.34);
  background: rgba(36, 119, 212, 0.09);
  color: #2477d4;
}

.gantt-ungrouped-tray.active .gantt-root-dropzone {
  border-color: rgba(29, 158, 117, 0.34);
  background: rgba(29, 158, 117, 0.09);
  color: var(--vessel-green);
}

.gantt-drag-preview,
.native-gantt-drag-image {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(520px, calc(100vw - 40px));
  padding: 11px 14px;
  border: 1px solid rgba(29, 158, 117, 0.22);
  border-radius: 15px;
  background: rgba(247, 252, 250, 0.86);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(12, 27, 46, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.gantt-drag-preview strong,
.native-gantt-drag-image strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-drag-preview span {
  display: inline-flex;
  color: var(--vessel-green);
}

.native-gantt-drag-image {
  transform: translate(-200vw, -200vh);
}

.theme-grid label:last-child {
  grid-column: 1 / -1;
}

.theme-grid input[type="file"] {
  width: 100%;
  font-size: 11px;
}

.group-row {
  padding: 8px;
  border-radius: 14px;
  background: rgba(29, 158, 117, 0.08);
}

.activity-row {
  padding-left: 18px;
}

.mini-bar {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(12, 27, 46, 0.08);
}

.mini-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--vessel-green);
}

.activity-progress i,
.group-progress i {
  background: var(--progress-blue);
}

.activity-pending i,
.group-pending i {
  background: rgba(12, 27, 46, 0.25);
}

.activity-ready i {
  background: #d89a2b;
}

.access-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(12, 27, 46, 0.055);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(244, 249, 247, 0.34)),
    rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.access-row strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.access-type {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.access-type.client {
  color: var(--vessel-green);
  background: rgba(29, 158, 117, 0.1);
}

.access-type.team {
  color: var(--progress-blue);
  background: rgba(36, 119, 212, 0.1);
}

.row-actions {
  display: inline-flex;
  gap: 6px;
}

.config-section .row-actions {
  align-items: center;
  justify-content: flex-end;
}

.config-section .icon-state-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  color: rgba(12, 27, 46, 0.58);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 0 0 1px rgba(12, 27, 46, 0.07);
}

.config-section .icon-state-btn:hover,
.config-section .icon-state-btn:focus-visible {
  color: var(--vessel-green);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(29, 158, 117, 0.18), 0 10px 20px rgba(12, 27, 46, 0.055);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.theme-grid label {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(12, 27, 46, 0.055);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(244, 249, 247, 0.32)),
    rgba(255, 255, 255, 0.24);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.extra-materials-section {
  margin-top: 18px;
  padding: 0;
}

.material-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.material-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(12, 27, 46, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
  text-decoration: none;
}

.material-item > span:first-child {
  color: var(--vessel-green);
}

.material-item strong,
.material-item small {
  display: block;
}

.material-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .floating-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid,
  .config-two-col,
  .profile-grid,
  .material-list {
    grid-template-columns: 1fr;
  }

  .editable-gantt-row,
  .inline-edit-row,
  .material-edit-row,
  .access-row {
    grid-template-columns: 1fr;
  }

  .config-hero,
  .profile-hero {
    display: grid;
    gap: 14px;
  }

  .config-actions {
    justify-content: flex-start;
  }

  .config-section .section-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .editable-gantt-row.activity-row {
    margin-left: 14px;
  }

  .billing-edit-row {
    grid-template-columns: 1fr;
  }

  .wizard-screen {
    grid-template-columns: 1fr;
  }

  .wizard-rail {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .billing-choice {
    grid-template-columns: 1fr;
  }

  .invoice-list {
    grid-template-columns: repeat(2, 272px);
    justify-content: center;
  }

  .config-grid,
  .gantt-axis,
  .gantt-group {
    grid-template-columns: 1fr;
  }

  .mega-progress {
    height: 300px;
  }

  .milestone.lane-1 {
    top: 216px;
  }
}

@media (max-width: 640px) {
  .team-person {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .team-name-line {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .team-actions {
    justify-content: flex-start;
  }

  .team-main small {
    max-width: calc(100vw - 112px);
  }

  .clients-screen,
  .config-section,
  .config-hero,
  .profile-panel,
  .profile-hero {
    border-radius: 14px;
    padding: 14px;
  }

  .config-hero::before {
    left: 14px;
    right: 14px;
  }

  .config-actions {
    width: 100%;
  }

  .config-action-button {
    flex: 1 1 104px;
  }

  .editable-gantt-row.activity-row {
    margin-left: 0;
  }

  .gantt-activity-dropzone {
    margin-left: 0;
  }

  .theme-grid,
  .client-metrics {
    grid-template-columns: 1fr;
  }

  .invoice-list {
    grid-template-columns: minmax(0, 340px);
  }

  .invoice-card {
    width: 100%;
  }
}

/* Progress milestone icons: icon-only with glass tooltip */
.milestone {
  width: 44px;
}

.milestone:hover,
.milestone:focus-within {
  z-index: 120;
}

.milestone-pin {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(12, 27, 46, 0.42);
  box-shadow: none;
  backdrop-filter: none;
  transition: color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.milestone-pin svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 8px 12px rgba(12, 27, 46, 0.12));
}

.milestone.invoice .milestone-pin {
  background: transparent;
  color: #b57911;
}

.milestone.validated .milestone-pin {
  background: transparent;
  color: var(--vessel-green);
}

.milestone.done .milestone-pin {
  background: transparent;
  color: var(--progress-blue);
}

.milestone:hover .milestone-pin,
.milestone:focus-within .milestone-pin {
  filter: saturate(1.16);
  transform: translateY(-2px) scale(1.08);
}

.milestone-label {
  display: none;
}

.milestone::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 2000;
  width: max-content;
  max-width: 180px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 16px 32px rgba(12, 27, 46, 0.14);
  backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.milestone:hover::after,
.milestone:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.milestone.lane-1::after {
  top: calc(100% + 12px);
  bottom: auto;
}
