@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-soft: #f2f2f2;
  --surface-raised: #ffffff;
  --border: #dedede;
  --border-strong: #cfcfcf;
  --text: #111827;
  --heading: #1f2933;
  --muted: #626a73;
  --faint: #8b949e;
  --blue: #0969ff;
  --blue-soft: #e8f1ff;
  --orange: #f48120;
  --green: #0a9b56;
  --green-soft: #e7f6ee;
  --red: #e22f3e;
  --red-soft: #fff0f1;
  --yellow: #b77900;
  --yellow-soft: #fff4d6;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --topbar-height: 72px;
  --sidebar-width: 286px;
  --module-content-width: 100%;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: #151820;
  --surface-soft: #1b1f28;
  --surface-raised: #1a1e27;
  --border: #2a2f39;
  --border-strong: #3a414d;
  --text: #e9eef5;
  --heading: #f6f8fb;
  --muted: #a8b1bd;
  --faint: #77808d;
  --blue: #4c8dff;
  --blue-soft: #14243d;
  --orange: #ff8a2a;
  --green: #4ed18a;
  --green-soft: #123021;
  --red: #ff6673;
  --red-soft: #35191e;
  --yellow: #ffd166;
  --yellow-soft: #362b14;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@keyframes surface-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes line-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes surface-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes line-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong,
b {
  font-weight: 600;
}

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.chevron-icon {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--faint);
}

.brand-logo-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.16);
}

.flash {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 18px;
  color: var(--text);
  background: var(--surface);
}

.flash.success {
  border-color: rgba(10, 155, 86, 0.25);
  background: var(--green-soft);
}

.flash.error {
  border-color: rgba(226, 47, 62, 0.25);
  background: var(--red-soft);
}

.flash.info {
  border-color: rgba(9, 105, 255, 0.25);
  background: var(--blue-soft);
}

.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 64%, transparent), transparent 42%),
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--blue-soft) 48%, transparent), transparent 38%),
    var(--bg);
}

.auth-body::before {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 5px;
  content: "";
  background: #0b335a;
}

.auth-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 58px 24px 34px;
}

.auth-theme-toggle {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 3;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
}

.auth-card {
  position: relative;
  width: min(410px, calc(100vw - 32px));
  overflow: hidden;
  padding: 34px 34px 30px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow:
    0 24px 70px rgba(16, 24, 40, 0.08),
    var(--shadow);
  animation: surface-in 320ms ease both;
}

.auth-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--orange), var(--blue));
}

html[data-theme="dark"] .auth-card {
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.28),
    var(--shadow);
}

.register-page .auth-card {
  width: min(520px, calc(100vw - 32px));
}

.auth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  font-weight: 600;
}

.auth-brand .brand-logo-mark {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.auth-card h1 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 27px;
  font-weight: 560;
  line-height: 1.12;
}

.auth-subtitle {
  max-width: 330px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.secondary-button,
.icon-box,
.icon-only,
.square-link {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.auth-form {
  display: grid;
  gap: 17px;
}

label {
  display: grid;
  gap: 9px;
  color: var(--text);
  font-weight: 500;
}

label span {
  display: flex;
  justify-content: space-between;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: 0;
  padding: 9px 12px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.auth-card input {
  min-height: 44px;
  background: color-mix(in srgb, var(--surface-raised) 72%, var(--surface));
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(9, 105, 255, 0.14);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--faint);
  transform: translateY(-50%);
}

.password-field button:hover {
  color: var(--text);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.auth-card .primary-button {
  min-height: 44px;
}

.primary-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.primary-button:hover {
  text-decoration: none;
  filter: brightness(0.97);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(9, 105, 255, 0.16);
}

.secondary-button {
  background: var(--surface);
  color: var(--text);
}

.secondary-button:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
}

.full {
  width: 100%;
}

.auth-switch,
.terms {
  margin: 22px 0 0;
  color: var(--muted);
  text-align: center;
}

.terms {
  max-width: 360px;
  margin-top: 16px;
  line-height: 1.45;
}

.project-row strong,
.profile-line strong,
.table-project strong {
  font-weight: 500;
}

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

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

.app-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}

.account-brand {
  display: flex;
  align-items: center;
  width: var(--sidebar-width);
  height: 100%;
  gap: 22px;
  padding: 0 17px;
  border-right: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.account-brand:hover {
  text-decoration: none;
}

.account-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
}

.plain-action,
.theme-button,
.avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 600;
}

.plain-action .icon {
  color: var(--faint);
}

.theme-button {
  min-width: 66px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.avatar-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
}

.sidebar {
  position: fixed;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  z-index: 9;
  width: var(--sidebar-width);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 17px 28px;
}

.quick-search {
  display: flex;
  align-items: center;
  height: 40px;
  gap: 10px;
  margin-bottom: 22px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.quick-search .icon {
  color: var(--faint);
}

.quick-search input {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.quick-search span {
  color: var(--faint);
  font-size: 14px;
  white-space: nowrap;
}

.module-nav,
.side-groups {
  display: grid;
  gap: 4px;
}

.billing-nav {
  margin-top: 18px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.nav-section {
  margin: 22px 14px 10px;
  color: var(--heading);
  font-size: 15px;
  font-weight: 400;
}

.module-link,
.ghost-nav {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 39px;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--heading);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.module-link:hover {
  text-decoration: none;
  transform: translateX(1px);
}

.module-link .icon,
.ghost-nav .icon {
  color: var(--faint);
}

.module-link.active {
  background: var(--surface-soft);
  color: #000000;
}

html[data-theme="dark"] .module-link.active {
  color: #ffffff;
}

.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 16px) 50px 56px;
}

.notice-banner {
  display: flex;
  align-items: center;
  min-height: 50px;
  gap: 13px;
  margin-bottom: 56px;
  padding: 0 20px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: #0347bc;
}

html[data-theme="dark"] .notice-banner {
  color: #9cc0ff;
}

.notice-banner span {
  flex: 1;
}

.notice-banner strong {
  color: #063fc4;
  white-space: nowrap;
}

html[data-theme="dark"] .notice-banner strong {
  color: #d4e3ff;
}

.notice-banner button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  background: transparent;
  color: currentColor;
}

.page-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
}

.page-title-row h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(28px, 2.25vw, 36px);
  font-weight: 600;
  line-height: 1.1;
}

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

.icon-box,
.icon-only,
.square-link {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--text);
}

.icon-only {
  width: 34px;
  height: 34px;
}

.square-link {
  width: 34px;
  height: 34px;
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-soft) 38%, transparent), transparent 45%),
    var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
  animation: surface-in 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pricing-hero h2 {
  max-width: 780px;
  margin: 0;
  color: var(--heading);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 580;
  line-height: 1.04;
}

.pricing-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.pricing-hero-card {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-raised) 84%, transparent);
}

.pricing-hero-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pricing-hero-card span:not(.status-pill) {
  color: var(--muted);
  font-size: 13px;
}

.pricing-hero-card strong {
  color: var(--heading);
  font-size: 13px;
  font-weight: 580;
  text-align: right;
}

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

.pricing-plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  min-height: 486px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 20%, transparent), transparent 38%),
    var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.pricing-plan:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 22%, var(--border));
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.07);
}

.pricing-plan.featured {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blue-soft) 30%, transparent), transparent 36%),
    var(--surface);
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--border));
  border-radius: 7px;
  background: color-mix(in srgb, var(--blue-soft) 54%, transparent);
  color: var(--blue);
  font-size: 11px;
  font-weight: 560;
}

.pricing-plan h2 {
  margin: 16px 0 0;
  color: var(--heading);
  font-size: 22px;
  font-weight: 520;
  line-height: 1.16;
}

.pricing-plan p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.58;
}

.pricing-price {
  display: grid;
  gap: 5px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--border);
}

.pricing-price strong {
  color: var(--heading);
  font-size: 34px;
  font-weight: 540;
  line-height: 1;
}

.pricing-price span {
  color: var(--muted);
  font-size: 12.5px;
}

.pricing-features {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pricing-features li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.48;
}

.pricing-features .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--green);
}

.pricing-plan .primary-button,
.pricing-plan .secondary-button {
  min-height: 38px;
  font-size: 13px;
  font-weight: 560;
}

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.pricing-note h2 {
  margin: 0;
  color: var(--heading);
  font-size: 20px;
  font-weight: 580;
}

.pricing-note p {
  max-width: 900px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.analytics-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.analytics-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.metric-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--module-content-width);
  margin-bottom: 22px;
}

.metric-panel,
.content-card,
.summary-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.metric-panel header {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
}

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

.metric-split > div {
  position: relative;
  min-height: 106px;
  padding: 16px 18px;
  overflow: hidden;
}

.metric-split > div + div {
  border-left: 1px solid var(--border);
}

.metric-panel p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.metric-panel strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #000000;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

html[data-theme="dark"] .metric-panel strong {
  color: #ffffff;
}

.metric-panel strong span {
  font-size: 15px;
  font-weight: 400;
}

.metric-panel small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.positive {
  color: var(--green) !important;
}

.warning {
  color: var(--red) !important;
}

.mini-chart {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34px;
  opacity: 0.8;
  background:
    linear-gradient(140deg, transparent 0 12%, var(--blue) 12% 13%, transparent 13% 31%, var(--blue) 31% 32%, transparent 32% 60%, var(--blue) 60% 61%, transparent 61%),
    linear-gradient(to top, rgba(9, 105, 255, 0.16), transparent);
}

.mini-chart.spike {
  clip-path: polygon(0 88%, 12% 90%, 25% 80%, 43% 86%, 59% 72%, 67% 86%, 76% 10%, 82% 92%, 100% 76%, 100% 100%, 0 100%);
  background: var(--blue);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--module-content-width);
}

.content-card {
  min-height: 224px;
  overflow: hidden;
}

.next-card {
  min-height: 160px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.card-title h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
}

.card-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.count-pill {
  display: inline-grid;
  min-width: 26px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.card-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-list {
  padding: 12px 15px;
}

.project-row {
  display: grid;
  grid-template-columns: 30px minmax(150px, 1fr) 150px 56px;
  align-items: center;
  min-height: 54px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.project-row:last-child {
  border-bottom: 0;
}

.status-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
}

.status-check .icon {
  width: 13px;
  height: 13px;
}

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

.project-row small {
  margin-top: 3px;
  color: var(--muted);
}

.sparkline {
  height: 32px;
  background:
    linear-gradient(120deg, transparent 8%, rgba(9, 105, 255, 0.22) 8% 10%, transparent 10% 20%, rgba(9, 105, 255, 0.44) 20% 22%, transparent 22% 36%, rgba(9, 105, 255, 0.5) 36% 38%, transparent 38% 62%, var(--blue) 62% 64%, transparent 64% 74%, rgba(9, 105, 255, 0.4) 74% 76%, transparent 76%),
    linear-gradient(to top, rgba(9, 105, 255, 0.08), transparent);
}

.profile-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.large-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--heading);
  font-weight: 600;
}

.profile-line strong,
.profile-line small {
  display: block;
}

.profile-line small {
  margin-top: 4px;
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 20px 24px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  font-weight: 600;
}

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

.shield-illustration {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 34px auto 18px;
  color: var(--faint);
}

.shield-illustration .icon {
  width: 42px;
  height: 42px;
}

.center-card h3 {
  margin: 0 auto 8px;
  max-width: 320px;
  font-size: 18px;
  font-weight: 600;
}

.center-card p {
  max-width: 390px;
  margin: 0 auto 20px;
  color: var(--muted);
}

.step-list {
  display: grid;
  gap: 16px;
  padding: 24px 20px;
}

.step-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.step-list .icon {
  color: var(--green);
}

.dashboard-module {
  display: grid;
  gap: 24px;
}

.dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
}

.dashboard-intro h2 {
  margin: 0;
  color: var(--heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.dashboard-intro p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-intro-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-intro-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 50%, transparent);
  color: var(--muted);
  font-size: 12px;
}

.dashboard-intro-meta .icon {
  width: 14px;
  height: 14px;
}

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

.dashboard-kpi,
.dashboard-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
}

.dashboard-kpi {
  display: flex;
  min-height: 108px;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
}

.dashboard-kpi-icon,
.dashboard-project-icon,
.dashboard-note-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
  color: var(--muted);
}

.dashboard-kpi-icon.success {
  color: var(--green);
}

.dashboard-kpi-icon.blue {
  color: var(--blue);
}

.dashboard-kpi-icon.amber {
  color: var(--yellow);
}

.dashboard-kpi p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.dashboard-kpi strong {
  display: block;
  color: var(--heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.dashboard-kpi small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.dashboard-card {
  overflow: hidden;
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.dashboard-card-header.compact {
  min-height: 50px;
  padding: 14px 18px;
}

.dashboard-card-header h3 {
  margin: 0;
  color: var(--heading);
  font-size: 15px;
  font-weight: 500;
}

.dashboard-card-header p,
.dashboard-muted {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-card-action {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.dashboard-project-list {
  display: grid;
  padding: 12px;
}

.dashboard-project-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: background 140ms ease;
}

.dashboard-project-item + .dashboard-project-item {
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.dashboard-project-item:hover {
  background: color-mix(in srgb, var(--surface-soft) 42%, transparent);
  text-decoration: none;
}

.dashboard-project-item strong,
.dashboard-project-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-project-item strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.dashboard-project-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-side {
  display: grid;
  gap: 22px;
}

.dashboard-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.dashboard-profile strong,
.dashboard-profile small {
  display: block;
}

.dashboard-profile strong {
  font-weight: 500;
}

.dashboard-profile small {
  max-width: 240px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px 18px 18px;
}

.dashboard-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-facts dt {
  color: var(--muted);
}

.dashboard-facts dd {
  margin: 0;
  font-weight: 500;
}

.dashboard-task-list {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.dashboard-task-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.dashboard-task-list .icon {
  color: var(--green);
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 22px;
}

.activity-feed {
  display: grid;
  gap: 0;
  padding: 4px 18px 18px;
}

.activity-feed div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--border);
}

.activity-feed div:last-child {
  border-bottom: 0;
}

.activity-feed div > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.activity-feed p {
  margin: 0;
}

.activity-feed small {
  color: var(--muted);
}

.dashboard-note-card {
  display: flex;
  min-height: 146px;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
}

.dashboard-note-card h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 15px;
  font-weight: 500;
}

.dashboard-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-empty {
  padding: 24px;
  color: var(--muted);
}

.client-dashboard {
  gap: 26px;
}

.workspace-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: 26px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
}

.workspace-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.workspace-hero h2 {
  margin: 0;
  color: var(--heading);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
}

.workspace-hero p:not(.workspace-kicker) {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.workspace-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.workspace-status-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-soft) 38%, transparent);
}

.workspace-status-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.workspace-status-card div,
.billing-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workspace-status-card dt,
.billing-summary span {
  color: var(--muted);
}

.workspace-status-card dd,
.billing-summary strong {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

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

.workspace-metric {
  display: grid;
  min-height: 128px;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.dashboard-kpi-icon.green {
  color: var(--green);
}

.dashboard-kpi-icon.neutral {
  color: var(--muted);
}

.workspace-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.workspace-metric strong {
  display: block;
  margin-top: 7px;
  color: var(--heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.workspace-metric small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.workspace-focus-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workspace-focus-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.025);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.workspace-focus-item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--blue) 18%, var(--border));
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.055);
}

.workspace-focus-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.workspace-focus-item strong {
  display: block;
  margin-top: 6px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.workspace-focus-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.client-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.82fr);
  gap: 22px;
  align-items: start;
}

.client-dashboard-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.client-dashboard-side {
  display: grid;
  gap: 22px;
}

.client-project-grid {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.active-projects-panel .client-project-grid {
  padding: 0;
}

.client-project-preview {
  display: grid;
  gap: 18px;
  padding: 20px 22px 22px;
  background: var(--surface);
}

.client-project-preview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

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

.client-project-preview-actions .status-pill {
  min-width: 94px;
}

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

.client-project-progress-row strong {
  color: var(--heading);
  font-size: 13px;
  font-weight: 650;
}

.client-project-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-soft) 28%, transparent);
}

.client-project-card.featured {
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: start;
}

.client-project-card.featured .client-progress,
.client-project-card.featured .client-project-meta,
.client-project-card.featured .client-open-button {
  grid-column: 1 / -1;
}

.client-project-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.client-project-main h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-project-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.client-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.client-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.client-project-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.client-project-meta.clean {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 2px;
}

.client-project-meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-project-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.client-project-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-open-button {
  justify-self: start;
  min-height: 34px;
  font-size: 12px;
}

.billing-summary {
  display: grid;
  gap: 13px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.included-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px 18px;
}

.included-services span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.included-services .icon {
  color: var(--green);
}

.notification-list {
  display: grid;
  padding: 8px;
}

.notification-item,
.quick-action {
  color: var(--text);
  text-decoration: none;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
}

.notification-item:hover,
.quick-action:hover {
  background: color-mix(in srgb, var(--surface-soft) 42%, transparent);
  text-decoration: none;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--blue) 22%, var(--border));
  box-shadow: 0 12px 22px rgba(16, 24, 40, 0.06);
}

.notification-item > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--blue);
}

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

.notification-item strong {
  font-weight: 500;
}

.notification-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.client-activity-feed,
.schedule-list {
  display: grid;
  padding: 8px 18px 18px;
}

.client-activity-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.client-activity-item:last-child,
.schedule-item:last-child {
  border-bottom: 0;
}

.client-activity-item > span {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.client-activity-item p,
.schedule-item strong {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

.client-activity-item small,
.client-activity-item time,
.schedule-item span,
.schedule-item small {
  color: var(--muted);
  font-size: 12px;
}

.client-activity-item time {
  white-space: nowrap;
}

.schedule-item {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.quick-action {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 28%, transparent);
  font-size: 12px;
  font-weight: 500;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.quick-action .icon {
  color: var(--blue);
}

.project-sidebar-nav {
  margin-top: 14px;
}

.project-tree {
  display: grid;
  gap: 8px;
}

.project-tree-item {
  display: grid;
  gap: 6px;
}

.project-tree-link,
.project-subnav-link {
  display: flex;
  align-items: center;
  min-height: 38px;
  gap: 10px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--heading);
  text-decoration: none;
}

.project-tree-link:hover,
.project-subnav-link:hover {
  background: color-mix(in srgb, var(--surface-soft) 55%, transparent);
  text-decoration: none;
}

.project-tree-link.active {
  background: var(--surface-soft);
}

.project-tree-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--blue);
}

.project-tree-link .chevron-icon {
  transition: transform 160ms ease;
}

.project-tree-item.expanded .project-tree-link .chevron-icon {
  transform: rotate(90deg);
}

.project-subnav {
  display: grid;
  gap: 4px;
  margin-left: 14px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.project-subnav-link {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.project-subnav-link.active {
  background: color-mix(in srgb, var(--blue-soft) 68%, transparent);
  color: var(--blue);
}

.project-workspace-page {
  display: grid;
  gap: 22px;
}

.workspace-project-switcher,
.workspace-module-shell,
.workspace-panel,
.workspace-empty-state {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: surface-in 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.workspace-module-shell:has(.module-empty-panel) {
  overflow: hidden;
}

.workspace-module-shell:has(.module-empty-panel) > .workspace-module-header {
  min-height: auto;
  border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent);
}

.workspace-project-switcher {
  overflow: hidden;
}

.workspace-project-switcher > .workspace-panel-header,
.workspace-module-shell > .workspace-module-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.workspace-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 22px 22px;
}

.workspace-project-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 32%, transparent);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.workspace-project-card:hover {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--border));
  background: color-mix(in srgb, var(--blue-soft) 52%, transparent);
  text-decoration: none;
  transform: translateY(-1px);
}

.workspace-project-card.active {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--border));
  background: color-mix(in srgb, var(--blue-soft) 66%, transparent);
}

.workspace-project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workspace-project-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--blue);
}

.workspace-project-card strong,
.workspace-overview-stat strong,
.workspace-detail-card strong,
.workspace-team-card strong,
.workspace-list-row strong,
.workspace-feed-meta strong,
.analytics-bar-meta strong {
  color: var(--text);
  font-weight: 500;
}

.workspace-project-card p,
.workspace-overview-stat small,
.workspace-detail-card small,
.workspace-inline-block small,
.workspace-list-row small,
.workspace-team-card small,
.workspace-feed-item p,
.workspace-feed-foot small,
.workspace-footnote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workspace-project-card p {
  margin: 0;
}

.workspace-project-card small {
  color: var(--faint);
}

.project-workspace-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.74fr);
  gap: 20px;
  align-items: stretch;
}

.project-workspace-hero-main {
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 58%, transparent), var(--surface));
  box-shadow: var(--shadow);
}

.project-workspace-hero-main h2 {
  margin: 0;
  color: var(--heading);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.08;
}

.project-workspace-hero-main p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.project-status-card {
  min-height: 100%;
}

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

.workspace-overview-stat {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workspace-overview-stat span,
.workspace-detail-card p,
.workspace-list-row.stack > div + .status-pill,
.workspace-inline-block p,
.workspace-team-card p {
  color: var(--muted);
}

.workspace-overview-stat strong {
  font-size: 16px;
}

.workspace-overview-stat strong,
.emphasis-card strong {
  line-height: 1.3;
}

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

.module-focus-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 54%, transparent), color-mix(in srgb, var(--surface-soft) 16%, transparent));
  box-shadow: var(--shadow);
}

.module-focus-card span {
  color: var(--muted);
}

.module-focus-card strong {
  color: var(--heading);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.28;
}

.module-focus-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.billing-hero-panel,
.payment-history-panel,
.file-history-panel {
  grid-column: 1 / -1;
}

.workspace-panel,
.workspace-detail-card,
.module-focus-card,
.premium-folder-card {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.workspace-panel:hover,
.workspace-detail-card:hover,
.module-focus-card:hover,
.premium-folder-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 18%, var(--border));
  box-shadow: 0 18px 34px rgba(8, 15, 32, 0.08);
}

.billing-hero-layout,
.file-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: 20px;
  padding: 20px;
}

.billing-primary-card,
.file-hero-card,
.billing-side-stack,
.file-hero-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.billing-primary-card,
.file-hero-card,
.billing-side-card,
.file-side-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 48%, transparent), color-mix(in srgb, var(--surface-soft) 18%, transparent));
}

.billing-checkout-hero {
  gap: 18px;
  padding: 24px;
  border-color: color-mix(in srgb, var(--blue) 18%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue-soft) 52%, transparent), color-mix(in srgb, var(--surface-soft) 14%, transparent));
}

.billing-primary-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.billing-kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.billing-primary-head h4,
.file-hero-card h4 {
  margin: 0;
  color: var(--heading);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.15;
}

.billing-amount-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.billing-amount-row strong {
  color: var(--heading);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
}

.billing-amount-row small {
  color: var(--muted);
  font-size: 12px;
}

.billing-summary-copy,
.file-hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.billing-meta-grid,
.file-meta-grid,
.mini-version-list {
  display: grid;
  gap: 12px;
}

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

.billing-meta-grid.compact,
.file-meta-grid.compact {
  gap: 14px 18px;
}

.billing-meta-grid div,
.file-meta-grid div,
.mini-version-list div {
  display: grid;
  gap: 4px;
}

.billing-meta-grid span,
.file-meta-grid span,
.payment-history-meta span:first-child {
  color: var(--muted);
}

.billing-meta-grid strong,
.file-meta-grid strong,
.mini-version-list strong {
  color: var(--text);
  font-weight: 500;
}

.mini-version-list small,
.file-side-list li,
.billing-side-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.billing-side-card {
  gap: 12px;
}

.billing-side-card span,
.file-side-card span {
  color: var(--muted);
  font-size: 12px;
}

.billing-side-card strong {
  color: var(--heading);
  font-size: 18px;
  font-weight: 500;
}

.billing-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.billing-summary-card strong,
.file-summary-card strong {
  font-size: 14px;
  font-weight: 500;
}

.invoice-checkout-actions,
.payment-history-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-history-list,
.premium-file-list {
  padding-top: 6px;
}

.payment-history-row,
.premium-file-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.billing-history-row {
  min-height: 72px;
}

.billing-history-copy,
.file-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-history-copy {
  display: grid;
  gap: 6px;
}

.payment-history-meta {
  justify-content: flex-end;
}

.payment-history-meta > span:first-child {
  color: var(--heading);
  font-size: 13px;
  font-weight: 500;
}

.premium-folders {
  padding: 18px 20px 20px;
}

.premium-folder-card {
  min-height: 140px;
  gap: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 58%, transparent), color-mix(in srgb, var(--surface-soft) 14%, transparent));
}

.library-card-link,
.review-row-link {
  color: inherit;
  text-decoration: none;
}

.library-card-link:hover,
.review-row-link:hover {
  text-decoration: none;
}

.library-card-link.active,
.review-row-link.active {
  border-color: color-mix(in srgb, var(--blue) 28%, var(--border));
  background: color-mix(in srgb, var(--blue-soft) 16%, transparent);
  box-shadow: 0 16px 28px rgba(18, 84, 255, 0.08);
}

.empty-library-card {
  align-content: center;
}

.file-delivery-hero {
  gap: 18px;
  padding: 24px;
  border-color: color-mix(in srgb, var(--blue) 14%, var(--border));
}

.files-workspace {
  display: grid;
  gap: 16px;
  padding: 16px 18px 18px;
}

.files-delivery-hero {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(250px, 0.42fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--border));
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-soft) 44%, transparent), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 42%, transparent), color-mix(in srgb, var(--surface) 94%, transparent));
  box-shadow: var(--shadow);
}

.files-delivery-hero.is-empty {
  border-color: var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 34%, transparent), var(--surface));
}

.files-hero-icon,
.files-library-icon,
.files-file-icon {
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue-soft) 58%, var(--surface));
  color: var(--blue);
}

.files-hero-icon {
  width: 58px;
  height: 58px;
}

.files-library-icon,
.files-file-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.files-hero-copy {
  display: grid;
  gap: 9px;
}

.files-hero-copy h3 {
  margin: 0;
  color: var(--heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.16;
}

.files-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.files-hero-actions,
.files-waiting-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.files-waiting-note {
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 1px dashed color-mix(in srgb, var(--border) 92%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--muted);
  font-size: 12px;
}

.files-waiting-note .icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.files-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.files-hero-meta div {
  display: grid;
  gap: 4px;
}

.files-hero-meta span,
.files-row-actions span {
  color: var(--muted);
  font-size: 11px;
}

.files-hero-meta strong {
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.files-browser-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.files-library-list,
.files-download-list {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.files-library-card,
.files-download-row {
  display: grid;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.files-library-card {
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  align-items: center;
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 30%, transparent);
}

.files-library-card:hover,
.files-library-card.active,
.files-download-row:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--blue) 24%, var(--border));
  background: color-mix(in srgb, var(--blue-soft) 14%, transparent);
  box-shadow: 0 12px 22px rgba(8, 15, 32, 0.06);
  text-decoration: none;
}

.files-library-card strong,
.files-library-card small,
.files-download-row strong,
.files-download-row small {
  display: block;
}

.files-library-card strong,
.files-download-row strong {
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
}

.files-library-card small,
.files-download-row small,
.files-download-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.files-library-card em {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--blue);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.files-download-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 74px;
  padding: 13px;
  border: 1px solid transparent;
  border-bottom-color: var(--border);
  border-radius: 10px;
}

.files-download-row:last-child {
  border-bottom-color: transparent;
}

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

.review-thread-feed {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 12px;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 35%, transparent) transparent;
}

.review-thread-feed::-webkit-scrollbar {
  width: 8px;
}

.review-thread-feed::-webkit-scrollbar-track {
  background: transparent;
}

.review-thread-feed::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 30%, transparent);
}

.review-response-form {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
}

.review-response-form label {
  display: grid;
  gap: 8px;
}

.review-response-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.review-response-form textarea {
  min-height: 112px;
  resize: vertical;
}

.review-response-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-decision-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--green) 34%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--green-soft) 56%, transparent);
  color: var(--green);
  font-size: 12px;
  font-weight: 620;
}

.review-decision-note svg {
  width: 14px;
  height: 14px;
}

.admin-summary-grid,
.admin-grid {
  gap: 22px;
}

.admin-hero {
  margin-bottom: 22px;
}

.admin-top-nav .module-focus-card {
  text-decoration: none;
}

.admin-top-nav .module-focus-card.active {
  border-color: color-mix(in srgb, var(--blue) 28%, var(--border));
  background: color-mix(in srgb, var(--blue-soft) 14%, transparent);
}

.admin-form-grid,
.admin-inline-form {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.admin-form-row {
  display: grid;
  gap: 14px;
}

.admin-form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form-grid label,
.admin-inline-form label {
  display: grid;
  gap: 8px;
}

.admin-form-grid span,
.admin-inline-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.admin-card-feed {
  padding: 16px 18px 18px;
}

.admin-inline-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-button {
  border-color: color-mix(in srgb, var(--red) 26%, var(--border));
  color: var(--red);
}

.danger-button:hover {
  background: color-mix(in srgb, var(--red-soft) 36%, transparent);
}

.admin-filter-panel {
  margin-bottom: 22px;
}

.admin-filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 20px;
}

.premium-file-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workspace-module-shell {
  overflow: hidden;
}

.workspace-module-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.workspace-module-header h3,
.workspace-panel-header h3,
.workspace-detail-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 15px;
  font-weight: 500;
}

.workspace-module-header p,
.workspace-panel-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.workspace-module-grid {
  display: grid;
  gap: 18px;
  padding: 20px 22px 22px;
}

.workspace-module-grid.two-up {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-panel {
  overflow: hidden;
}

.workspace-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.workspace-detail-grid,
.workspace-mini-metrics,
.workspace-folder-grid,
.workspace-team-grid {
  display: grid;
  gap: 14px;
}

.workspace-detail-grid,
.workspace-mini-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-detail-grid.compact-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.workspace-detail-card,
.workspace-team-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 28%, transparent);
}

.emphasis-card {
  gap: 8px;
  min-height: 124px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 62%, transparent), color-mix(in srgb, var(--surface-soft) 18%, transparent));
}

.emphasis-card strong {
  font-size: 18px;
  font-weight: 500;
}

.workspace-inline-block {
  display: grid;
  gap: 6px;
}

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

.team-inline-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-inline-item > span,
.workspace-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue-soft) 76%, transparent);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

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

.workspace-action-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px 20px;
}

.workspace-action-list.polished-actions .quick-action {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--surface);
}

.workspace-action-list.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-footnote {
  margin: 0;
  padding: 0 20px 20px;
}

.phase-timeline,
.milestone-list,
.workspace-feed,
.workspace-list,
.analytics-bar-list {
  display: grid;
  padding: 8px 20px 20px;
}

.timeline-item,
.milestone-item,
.workspace-list-row,
.workspace-feed-item {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background-color 150ms ease;
}

.workspace-list-row:hover,
.workspace-feed-item:hover {
  background: color-mix(in srgb, var(--surface-soft) 22%, transparent);
}

.timeline-item,
.workspace-list-row,
.milestone-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
}

.workspace-list-row.stack {
  grid-template-columns: minmax(0, 1fr) auto;
}

.workspace-list-row:last-child,
.workspace-feed-item:last-child,
.timeline-item:last-child,
.milestone-item:last-child {
  border-bottom: 0;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--border-strong);
}

.timeline-dot.completed,
.timeline-dot.complete,
.timeline-dot.active-phase,
.timeline-dot.active {
  background: var(--blue);
}

.workspace-feed-meta,
.workspace-feed-foot,
.analytics-bar-meta,
.workspace-team-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-feed-item {
  padding: 16px 0;
}

.workspace-feed-item.polished-feed-item {
  gap: 12px;
  padding: 18px 0;
}

.workspace-feed-item p {
  margin: 0;
}

.workspace-feed-note,
.text-link {
  color: var(--muted);
  font-size: 12px;
}

.text-link {
  color: var(--blue);
  font-weight: 500;
}

.attachment-pill {
  display: inline-grid;
  place-items: center;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 38%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.analytics-bar-row {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.analytics-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.analytics-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transform-origin: left center;
  animation: line-fill 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.progress-command-center {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.progress-health-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--blue) 18%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-soft) 54%, transparent), transparent 44%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 46%, transparent), color-mix(in srgb, var(--surface) 92%, transparent));
}

.progress-health-copy {
  display: grid;
  gap: 7px;
}

.progress-health-copy h3 {
  margin: 0;
  color: var(--heading);
  font-size: 20px;
  font-weight: 550;
  line-height: 1.18;
}

.progress-health-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.progress-health-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.progress-health-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 66%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.progress-ring-card {
  display: grid;
  place-items: center;
  justify-self: end;
}

.progress-ring {
  display: grid;
  width: 108px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 58%, transparent 59%),
    conic-gradient(var(--blue) calc(var(--progress) * 1%), color-mix(in srgb, var(--border) 70%, transparent) 0);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent);
  animation: surface-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.progress-ring strong,
.progress-ring span {
  grid-area: 1 / 1;
}

.progress-ring strong {
  margin-top: -8px;
  color: var(--heading);
  font-size: 22px;
  font-weight: 650;
}

.progress-ring span {
  margin-top: 31px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.progress-insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.progress-insight-card {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 34%, transparent);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.progress-insight-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 24%, var(--border));
  box-shadow: 0 16px 28px rgba(8, 15, 32, 0.07);
}

.progress-insight-card span,
.progress-insight-card small {
  color: var(--muted);
}

.progress-insight-card strong {
  color: var(--heading);
  font-size: 22px;
  font-weight: 620;
  line-height: 1;
}

.progress-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32%;
  gap: 14px;
  align-items: start;
}

.progress-main-stack,
.progress-side-stack {
  display: grid;
  gap: 14px;
}

.progress-timeline,
.progress-task-list,
.progress-signal-list,
.progress-readiness-list {
  display: grid;
  padding: 8px 16px 16px;
}

.progress-timeline-row,
.progress-task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.progress-task-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.progress-timeline-row:last-child,
.progress-task-row:last-child {
  border-bottom: 0;
}

.progress-timeline-row strong,
.progress-task-row strong {
  display: block;
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
}

.progress-timeline-row small,
.progress-task-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.progress-task-row > div:last-child {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.progress-signal-row {
  display: grid;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.progress-signal-row:last-child {
  border-bottom: 0;
}

.progress-signal-row > div:first-child,
.progress-readiness-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-signal-row strong,
.progress-readiness-list strong {
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
}

.progress-signal-row span,
.progress-readiness-list span {
  color: var(--muted);
  font-size: 12px;
}

.progress-readiness-list {
  gap: 0;
}

.progress-readiness-list div {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.progress-readiness-list div:last-child {
  border-bottom: 0;
}

.workspace-team-card {
  align-content: start;
}

.workspace-team-card p {
  margin: -3px 0 0;
  font-size: 12px;
}

.workspace-team-foot a {
  font-size: 12px;
}

.project-billing-summary {
  border-bottom: 0;
}

.payment-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

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

.workspace-empty-state {
  display: grid;
  gap: 12px;
  place-items: start;
  max-width: 760px;
  padding: 28px;
}

.workspace-empty-state h2,
.workspace-empty-state p {
  margin: 0;
}

.workspace-empty-state h2 {
  color: var(--heading);
  font-size: 28px;
  font-weight: 500;
}

.module-empty-panel {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 40px 24px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 10px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 38%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
  text-align: center;
}

.module-empty-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, color-mix(in srgb, var(--border) 36%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 26%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  opacity: 0.34;
}

.module-empty-visual {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue-soft) 54%, var(--surface));
  color: var(--blue);
  box-shadow: 0 14px 28px rgba(9, 105, 255, 0.1);
}

.module-empty-visual .icon {
  width: 24px;
  height: 24px;
}

.module-empty-copy {
  position: relative;
  display: grid;
  gap: 9px;
  max-width: 540px;
}

.module-empty-copy h3 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
  font-weight: 600;
}

.module-empty-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.module-empty-lines {
  position: relative;
  display: grid;
  width: min(360px, 82%);
  gap: 8px;
  opacity: 0.72;
}

.module-empty-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 84%, var(--border));
}

.module-empty-lines span:nth-child(2) {
  width: 74%;
  justify-self: center;
}

.module-empty-lines span:nth-child(3) {
  width: 52%;
  justify-self: center;
}

.inline-empty-row {
  display: grid;
  gap: 6px;
  margin: 12px 0 4px;
  padding: 22px;
  border: 1px dashed color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 30%, transparent);
  text-align: center;
}

.inline-empty-row strong {
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
}

.inline-empty-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.quick-action-grid.compact {
  max-width: 520px;
  padding: 0;
}

.project-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--module-content-width);
  margin-bottom: 22px;
}

.summary-card {
  min-height: 104px;
  padding: 18px 20px;
}

.summary-card span {
  color: var(--muted);
  font-weight: 500;
}

.summary-card strong {
  display: block;
  margin-top: 12px;
  color: var(--heading);
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
}

.projects-board {
  max-width: var(--module-content-width);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
}

.projects-board-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.projects-board-header h2 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.projects-board-header p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.directory-create-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 12.5px;
}

.directory-create-button .icon {
  width: 15px;
  height: 15px;
}

.project-directory {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
}

.directory-head,
.directory-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.55fr) minmax(180px, 0.7fr) minmax(120px, 0.36fr) minmax(130px, 0.38fr);
  align-items: center;
}

.directory-head {
  min-height: 46px;
  padding: 0 22px;
  background: color-mix(in srgb, var(--surface-soft) 58%, transparent);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
}

.directory-row {
  min-height: 78px;
  padding: 0 22px;
  border-top: 1px solid var(--border);
  transition: background 140ms ease;
}

.directory-row:hover {
  background: color-mix(in srgb, var(--surface-soft) 34%, transparent);
}

.directory-project {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.directory-project strong,
.directory-project small {
  display: block;
}

.directory-project strong {
  color: var(--text);
  font-weight: 500;
}

.directory-project small {
  max-width: 560px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.directory-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
  color: var(--blue);
}

.directory-icon .icon {
  width: 15px;
  height: 15px;
}

.directory-domain,
.directory-date {
  color: var(--text);
  font-size: 13px;
}

.directory-empty {
  border-top: 1px solid var(--border);
}

.projects-panel {
  max-width: var(--module-content-width);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.projects-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 26px 22px;
  border-bottom: 1px solid var(--border);
}

.projects-panel-header h2 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.projects-panel-header p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.projects-panel-create {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 13px;
}

.projects-panel-create .icon {
  width: 15px;
  height: 15px;
}

.projects-table-wrap {
  padding: 18px 22px 24px;
}

.projects-table {
  width: 100%;
  min-width: 820px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  table-layout: fixed;
}

.projects-table .project-col {
  width: 46%;
}

.projects-table .domain-col {
  width: 23%;
}

.projects-table .status-col {
  width: 13%;
}

.projects-table .updated-col {
  width: 18%;
}

.projects-table th,
.projects-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.projects-table th {
  height: 44px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--surface-soft) 62%, transparent);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
}

.projects-table td {
  height: 76px;
  padding: 14px 20px;
  color: var(--text);
}

.projects-table tbody tr:last-child td {
  border-bottom: 0;
}

.projects-table tbody tr {
  transition: background 140ms ease;
}

.projects-table tbody tr:hover {
  background: color-mix(in srgb, var(--surface-soft) 35%, transparent);
}

.projects-table-project {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.project-table-link,
.project-mobile-link {
  color: inherit;
  text-decoration: none;
}

.project-table-link:hover,
.project-mobile-link:hover {
  text-decoration: none;
}

.projects-table-project strong,
.projects-table-project small {
  display: block;
}

.projects-table-project strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projects-table-project small {
  overflow: hidden;
  max-width: 560px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projects-table-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
  color: var(--blue);
}

.projects-table-icon .icon {
  width: 15px;
  height: 15px;
}

.projects-table-domain,
.projects-table-date {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projects-mobile-list {
  display: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  max-width: 120px;
  min-height: 28px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.status-pill.active {
  border-color: color-mix(in srgb, var(--green) 24%, transparent);
  background: color-mix(in srgb, var(--green-soft) 74%, transparent);
  color: var(--green);
}

.status-pill.planning {
  border-color: color-mix(in srgb, var(--yellow) 24%, transparent);
  background: color-mix(in srgb, var(--yellow-soft) 76%, transparent);
  color: var(--yellow);
}

.status-pill.paused {
  border-color: color-mix(in srgb, var(--red) 22%, transparent);
  background: color-mix(in srgb, var(--red-soft) 76%, transparent);
  color: var(--red);
}

.status-pill.complete,
.status-pill.completed,
.status-pill.approved,
.status-pill.answered,
.status-pill.online,
.status-pill.available,
.status-pill.private,
.status-pill.paid {
  border-color: color-mix(in srgb, var(--green) 24%, transparent);
  background: color-mix(in srgb, var(--green-soft) 74%, transparent);
  color: var(--green);
}

.status-pill.current,
.status-pill.open,
.status-pill.reviewing,
.status-pill.designing,
.status-pill.building,
.status-pill.active-phase,
.status-pill.next-milestone,
.status-pill.delivery,
.status-pill.ready-to-complete,
.status-pill.default {
  border-color: color-mix(in srgb, var(--blue) 24%, transparent);
  background: color-mix(in srgb, var(--blue-soft) 76%, transparent);
  color: var(--blue);
}

.status-pill.upcoming,
.status-pill.optional,
.status-pill.awaiting-response,
.status-pill.waiting-on-client,
.status-pill.coming-soon,
.status-pill.scheduled {
  border-color: color-mix(in srgb, var(--yellow) 24%, transparent);
  background: color-mix(in srgb, var(--yellow-soft) 76%, transparent);
  color: var(--yellow);
}

.status-pill.needs-revision,
.status-pill.denied,
.status-pill.rejected {
  border-color: color-mix(in srgb, var(--red) 22%, transparent);
  background: color-mix(in srgb, var(--red-soft) 76%, transparent);
  color: var(--red);
}

.empty-state {
  padding: 28px 20px;
  color: var(--muted);
}

.modal {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(15, 17, 21, 0.55);
}

.modal-card {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-card header,
.modal-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-card h2,
.modal-card .eyebrow {
  margin: 0;
}

.modal-card .eyebrow {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-sidebar-tree .project-tree {
  gap: 10px;
}

.admin-project-listing {
  gap: 10px;
}

.admin-project-node {
  display: grid;
  gap: 6px;
}

.admin-project-owner {
  margin-left: 12px;
  color: var(--muted);
  font-size: 11px;
}

.admin-project-panels {
  margin-left: 10px;
}

.admin-users-grid,
.admin-project-detail-grid,
.admin-project-master-list {
  display: grid;
  gap: 18px;
}

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

.admin-user-card,
.admin-project-row {
  overflow: hidden;
}

.admin-project-edit-grid {
  padding: 18px 20px;
}

.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  padding: 0 20px 20px;
}

.admin-project-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-project-detail-grid > .workspace-panel {
  min-height: 100%;
}

.admin-sublist {
  padding-top: 14px;
}

.compact-empty {
  min-height: 0;
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 270px;
    --module-content-width: 100%;
  }

  .main-content {
    padding-right: 28px;
    padding-left: 28px;
  }

  .metric-panels,
  .module-grid {
    grid-template-columns: 1fr;
  }

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

  .dashboard-workspace,
  .dashboard-lower-grid,
  .workspace-hero,
  .client-dashboard-grid,
  .client-dashboard-bottom {
    grid-template-columns: 1fr;
  }

  .project-workspace-hero,
  .payment-grid,
  .support-grid,
  .reviews-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .billing-hero-layout,
  .file-hero-layout,
  .files-delivery-hero,
  .files-browser-grid,
  .progress-body-grid {
    grid-template-columns: 1fr;
  }

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

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

  .workspace-project-grid,
  .module-focus-grid,
  .workspace-overview-strip,
  .workspace-detail-grid,
  .workspace-mini-metrics,
  .workspace-folder-grid,
  .workspace-team-grid,
  .admin-form-row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .pricing-plan {
    min-height: auto;
  }
}

@media (max-width: 840px) {
  :root {
    --sidebar-width: 0px;
  }

  .app-topbar {
    position: sticky;
  }

  .account-brand {
    width: auto;
    max-width: 54vw;
    border-right: 0;
  }

  .global-actions {
    gap: 8px;
    padding: 0 12px;
  }

  .plain-action span {
    display: none;
  }

  .sidebar {
    position: static;
    width: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .side-groups {
    display: none;
  }

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

  .project-sidebar-nav {
    margin-top: 16px;
  }

  .nav-section {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .main-content {
    margin-left: 0;
    padding: 20px 16px 36px;
  }

  .notice-banner,
  .page-title-row,
  .analytics-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .page-actions {
    flex-wrap: wrap;
  }

  .metric-split,
  .project-summary {
    grid-template-columns: 1fr;
  }

  .metric-split > div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .dashboard-intro {
    grid-template-columns: 1fr;
  }

  .dashboard-intro-meta {
    justify-content: flex-start;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .workspace-metrics {
    grid-template-columns: 1fr;
  }

  .pricing-hero,
  .pricing-note {
    padding: 22px;
  }

  .pricing-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-hero {
    padding: 22px;
  }

  .workspace-status-card div,
  .billing-summary div,
  .client-project-meta div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .workspace-status-card dd,
  .billing-summary strong,
  .client-project-meta dd {
    text-align: left;
  }

  .workspace-module-header,
  .workspace-list-row,
  .timeline-item,
  .milestone-item,
  .progress-health-panel,
  .progress-timeline-row,
  .progress-task-row,
  .workspace-feed-meta,
  .workspace-feed-foot,
  .analytics-bar-meta,
  .workspace-team-foot {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .billing-meta-grid,
  .file-meta-grid {
    grid-template-columns: 1fr;
  }

  .workspace-feed-meta,
  .workspace-feed-foot,
  .analytics-bar-meta,
  .workspace-team-foot {
    flex-direction: column;
  }

  .client-project-card.featured,
  .client-project-meta {
    grid-template-columns: 1fr;
  }

  .client-activity-item {
    grid-template-columns: 9px minmax(0, 1fr);
  }

  .client-activity-item time {
    grid-column: 2;
  }

  .quick-action-grid,
  .included-services {
    grid-template-columns: 1fr;
  }

  .workspace-project-grid,
  .module-focus-grid,
  .workspace-overview-strip,
  .workspace-detail-grid,
  .workspace-mini-metrics,
  .workspace-folder-grid,
  .workspace-team-grid,
  .progress-insight-grid,
  .workspace-action-list,
  .workspace-action-list.two,
  .admin-form-row.two {
    grid-template-columns: 1fr;
  }

  .progress-ring-card,
  .progress-task-row > div:last-child,
  .files-row-actions {
    justify-self: start;
    justify-items: start;
  }

  .files-download-row,
  .files-library-card,
  .files-hero-meta {
    grid-template-columns: 1fr;
  }

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

  .workspace-module-header,
  .project-workspace-hero-main,
  .workspace-project-switcher > .workspace-panel-header,
  .workspace-module-shell > .workspace-module-header,
  .workspace-module-grid,
  .progress-command-center {
    padding-left: 18px;
    padding-right: 18px;
  }

  .projects-panel-header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 20px 20px;
  }

  .projects-panel-create {
    justify-self: start;
  }

  .projects-table-wrap {
    padding: 16px 18px 20px;
  }

  .projects-table {
    display: none;
  }

  .projects-mobile-list {
    display: grid;
    gap: 10px;
  }

.projects-mobile-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
  }

  .projects-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
  font-size: 12px;
}

.folder-card {
  min-height: 138px;
  align-content: start;
}

.folder-card p {
  margin: 6px 0 0;
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
}

.polished-file-list .file-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.file-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.file-row-meta {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.admin-sidebar-tree .project-tree {
  gap: 10px;
}

.admin-project-listing {
  gap: 10px;
}

.admin-project-node {
  display: grid;
  gap: 6px;
}

.admin-project-owner {
  margin-left: 12px;
  color: var(--muted);
  font-size: 11px;
}

.admin-project-panels {
  margin-left: 10px;
}

.admin-users-grid,
.admin-project-detail-grid,
.admin-project-master-list {
  display: grid;
  gap: 18px;
}

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

.admin-user-card,
.admin-project-row {
  overflow: hidden;
}

.admin-actions-row {
  display: flex;
  justify-content: flex-start;
  padding: 0 20px 20px;
}

.admin-project-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-project-detail-grid > .workspace-panel {
  min-height: 100%;
}

.admin-sublist {
  padding-top: 14px;
}

.compact-empty {
  min-height: 0;
}

.admin-console-module {
  display: grid;
  gap: 22px;
}

.admin-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.admin-kpi-card {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 26%, var(--border));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.admin-kpi-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.admin-kpi-card strong {
  color: var(--heading);
  font-size: 34px;
  font-weight: 650;
  line-height: 1;
}

.admin-kpi-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-management-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.65fr);
  gap: 22px;
  align-items: start;
}

.projects-layout {
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.7fr);
}

.admin-create-panel,
.admin-directory-panel,
.redesigned-filter {
  overflow: hidden;
  border-radius: 8px;
}

.admin-create-panel {
  position: sticky;
  top: 96px;
}

.admin-create-form {
  padding: 18px 22px 22px;
}

.admin-form-grid.compact {
  padding: 16px;
  gap: 12px;
}

.admin-submit-button {
  justify-self: start;
  margin-top: 2px;
}

.admin-directory-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-record-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 54%, transparent), transparent 140px),
    var(--surface);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.admin-record-card > .workspace-panel-header.admin-record-main {
  padding: 0;
  border-bottom: 0;
}

.admin-record-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--blue) 22%, var(--border));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.admin-record-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.admin-record-identity {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.admin-avatar,
.admin-project-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.admin-project-icon svg {
  width: 18px;
  height: 18px;
}

.admin-record-identity h3 {
  margin: 0;
  color: var(--heading);
  font-size: 15px;
  font-weight: 650;
}

.admin-record-identity p {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.admin-record-identity small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.admin-record-meta {
  min-width: 164px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
}

.admin-soft-chip,
.admin-owner-chip,
.admin-current-note {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.admin-owner-chip {
  min-width: 118px;
  color: var(--heading);
}

.admin-current-note {
  align-self: center;
}

.admin-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-edit-drawer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.admin-edit-drawer summary {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  list-style: none;
  transition: color 160ms ease;
}

.admin-edit-drawer summary::-webkit-details-marker {
  display: none;
}

.admin-edit-drawer summary svg {
  width: 15px;
  height: 15px;
}

.admin-edit-drawer summary:hover {
  color: var(--blue);
}

.admin-edit-drawer[open] summary {
  color: var(--heading);
  margin-bottom: 12px;
}

.admin-project-edit-grid {
  padding: 0;
}

.redesigned-filter {
  margin-bottom: 0;
}

.redesigned-filter .admin-filter-links {
  padding: 0 18px 18px;
}

.admin-filter-links .secondary-button {
  min-height: 34px;
}

.admin-filter-links .active-filter {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--border));
  background: color-mix(in srgb, var(--blue-soft) 55%, var(--surface));
  color: var(--blue);
}

.admin-empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 64%, transparent);
  text-align: center;
}

.admin-empty-state strong {
  color: var(--heading);
  font-size: 15px;
}

.admin-empty-state span {
  color: var(--muted);
  font-size: 13px;
}

.admin-project-workspace {
  display: grid;
  gap: 22px;
}

.admin-workbench-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-soft) 28%, transparent), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.admin-workbench-hero.compact {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
}

.admin-workbench-hero h2 {
  margin: 8px 0 10px;
  color: var(--heading);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.1;
}

.admin-workbench-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.admin-hero-stat-grid.narrow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.admin-data-stat {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.admin-data-stat span,
.admin-invoice-feature span,
.admin-secret-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.admin-data-stat strong {
  color: var(--heading);
  font-size: 24px;
  font-weight: 650;
}

.admin-data-stat small,
.admin-invoice-feature small,
.admin-secret-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-workbench-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.admin-workbench-grid .span-2 {
  grid-column: span 2;
}

.admin-editor-panel,
.admin-list-panel,
.admin-api-card {
  border-radius: 8px;
}

.admin-form-tight {
  padding: 18px 20px 20px;
}

.admin-invoice-feature,
.admin-secret-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.admin-invoice-feature strong,
.admin-secret-card strong {
  color: var(--heading);
  font-size: 26px;
  font-weight: 680;
}

.file-feature strong {
  font-size: 20px;
  line-height: 1.25;
}

.admin-clean-list,
.admin-timeline-list {
  display: grid;
  gap: 0;
  padding: 8px 20px 20px;
}

.admin-list-row,
.admin-timeline-row {
  display: grid;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.admin-list-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-list-row:has(.admin-project-icon) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-timeline-row {
  grid-template-columns: auto minmax(0, 1fr);
}

.admin-list-row:last-child,
.admin-timeline-row:last-child {
  border-bottom: 0;
}

.admin-list-row strong,
.admin-timeline-row strong {
  color: var(--heading);
  font-size: 14px;
  font-weight: 650;
}

.admin-list-row p,
.admin-timeline-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-list-row small,
.admin-timeline-row small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

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

.admin-row-stack {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.admin-money {
  color: var(--heading);
  font-size: 18px;
  font-weight: 700;
}

.admin-list-empty {
  min-height: 136px;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 60%, transparent);
  text-align: center;
}

.admin-list-empty strong {
  color: var(--heading);
  font-size: 14px;
}

.admin-list-empty span {
  max-width: 360px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-api-body {
  display: grid;
  gap: 16px;
  padding: 18px 20px 20px;
}

.api-secret-line {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.api-secret-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.api-secret-line code,
.admin-api-body pre code,
.admin-endpoint-list code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.api-secret-line code {
  overflow-wrap: anywhere;
  color: var(--heading);
  font-size: 13px;
}

.admin-api-body pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, #0f172a 94%, var(--surface));
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.65;
}

.admin-endpoint-list {
  display: grid;
  gap: 0;
  padding: 8px 20px 20px;
}

.admin-endpoint-list div {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.admin-endpoint-list div:last-child {
  border-bottom: 0;
}

.admin-endpoint-list code {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--heading);
  font-size: 12px;
}

.admin-endpoint-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1200px) {
  .admin-metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-management-layout,
  .projects-layout {
    grid-template-columns: 1fr;
  }

  .admin-workbench-hero,
  .admin-workbench-hero.compact,
  .admin-workbench-grid {
    grid-template-columns: 1fr;
  }

  .admin-workbench-grid .span-2 {
    grid-column: auto;
  }

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

  .admin-create-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .admin-metric-row,
  .admin-form-row.two,
  .admin-form-row.three,
  .admin-endpoint-list div {
    grid-template-columns: 1fr;
  }

  .admin-record-main,
  .project-record-main {
    grid-template-columns: 1fr;
  }

  .admin-list-row,
  .admin-list-row:has(.admin-project-icon) {
    grid-template-columns: 1fr;
  }

  .admin-record-meta {
    min-width: 0;
    align-items: flex-start;
  }

  .admin-row-stack {
    justify-items: start;
  }

  .client-project-preview-top,
  .client-project-preview-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .client-project-preview-top {
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .auth-page {
    padding: 36px 12px 24px;
  }

  .auth-card {
    padding: 28px 20px 32px;
    border-radius: 12px;
  }

  .form-grid.two,
  .module-nav {
    grid-template-columns: 1fr;
  }

  .project-subnav {
    margin-left: 10px;
    padding-left: 14px;
  }

  .quick-search span {
    display: none;
  }

  .page-title-row h1 {
    font-size: 28px;
  }

  .project-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .project-row .sparkline,
  .project-row > span:last-child {
    display: none;
  }

  .project-workspace-hero-main h2,
  .workspace-empty-state h2 {
    font-size: 26px;
  }
}
