:root {
  --lkcd-primary: var(--primary, #008060);
  --lkcd-primary-dark: var(--primary-dark, #00694f);
  --lkcd-primary-soft: #eaf8f3;
  --lkcd-navy: #0f172a;
  --lkcd-text: #1e293b;
  --lkcd-muted: #64748b;
  --lkcd-line: #e2e8f0;
  --lkcd-bg: #f4f7f9;
  --lkcd-surface: #ffffff;
  --lkcd-danger: #b42318;
  --lkcd-warning: #b54708;
  --lkcd-blue: #175cd3;
  --lkcd-radius: 20px;
  --lkcd-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

body.lkcd-account-page {
  margin: 0;
  background: var(--lkcd-bg);
}

body.lkcd-account-page > header,
body.lkcd-account-page > footer.footer,
body.lkcd-account-page > .walink {
  display: none !important;
}

body.lkcd-account-page .lk-account-main {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
}

body.lkcd-account-page .lk-account-main > article,
body.lkcd-account-page .lk-account-main .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

body.lkcd-account-page .lk-account-main > article > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lkcd-auth-shell,
.lkcd-dashboard {
  color: var(--lkcd-text);
  font-family: inherit;
}

.lkcd-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* Login */
.lkcd-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 8% 8%, rgba(0, 128, 96, 0.13), transparent 28%),
    radial-gradient(circle at 92% 92%, rgba(15, 23, 42, 0.08), transparent 30%),
    #f5f8f7;
  box-sizing: border-box;
}

.lkcd-auth-layout {
  width: min(1120px, 100%);
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.14);
}

.lkcd-auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 5vw, 64px);
  overflow: hidden;
  color: #fff;
  background: var(--lkcd-navy);
}

.lkcd-auth-showcase::before,
.lkcd-auth-showcase::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.lkcd-auth-showcase::before {
  width: 360px;
  height: 360px;
  right: -160px;
  top: -130px;
  background: rgba(0, 128, 96, 0.22);
}

.lkcd-auth-showcase::after {
  width: 240px;
  height: 240px;
  left: -120px;
  bottom: -110px;
  border: 42px solid rgba(255, 255, 255, 0.04);
}

.lkcd-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.lkcd-brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--lkcd-primary);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  box-shadow: 0 12px 30px rgba(0, 128, 96, 0.3);
}

.lkcd-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.lkcd-brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.lkcd-brand small {
  color: inherit;
  opacity: 0.62;
  font-size: 0.76rem;
}

.lkcd-auth-message {
  position: relative;
  z-index: 1;
  margin: auto 0 32px;
}

.lkcd-eyebrow,
.lkcd-auth-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lkcd-eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #c8f5e5;
}

.lkcd-auth-kicker {
  padding: 0;
  color: var(--lkcd-primary-dark);
}

.lkcd-auth-message h2 {
  max-width: 560px;
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.lkcd-auth-message p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.75;
}

.lkcd-auth-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.lkcd-auth-benefits > div,
.lkcd-auth-support {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.lkcd-auth-benefits .lkcd-icon,
.lkcd-auth-support .lkcd-icon {
  width: 23px;
  height: 23px;
  margin-top: 2px;
  color: #67e5b8;
}

.lkcd-auth-benefits span,
.lkcd-auth-support span {
  display: grid;
  gap: 3px;
}

.lkcd-auth-benefits strong,
.lkcd-auth-support strong {
  color: #fff;
  font-size: 0.94rem;
}

.lkcd-auth-benefits small,
.lkcd-auth-support small {
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
}

.lkcd-auth-support {
  position: relative;
  z-index: 1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lkcd-auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 70px);
  background: #fff;
}

.lkcd-auth-card-centered {
  width: min(520px, 100%);
  min-height: auto;
  align-items: center;
  text-align: center;
  border: 1px solid var(--lkcd-line);
  border-radius: 28px;
  box-shadow: var(--lkcd-shadow);
}

.lkcd-auth-copy {
  margin-bottom: 28px;
}

.lkcd-auth-copy h1,
.lkcd-auth-card-centered h1 {
  margin: 10px 0 10px;
  color: var(--lkcd-navy);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.lkcd-auth-copy p,
.lkcd-auth-card-centered p {
  margin: 0;
  color: var(--lkcd-muted);
  line-height: 1.72;
}

.lkcd-success-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lkcd-primary-soft);
  color: var(--lkcd-primary-dark);
}

.lkcd-success-icon .lkcd-icon {
  width: 30px;
  height: 30px;
}

.lkcd-login-form label,
.lkcd-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--lkcd-navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.lkcd-login-form p {
  margin: 0 0 18px;
}

.lkcd-login-form input[type="text"],
.lkcd-login-form input[type="password"],
.lkcd-form input[type="text"],
.lkcd-form input[type="email"],
.lkcd-form input[type="password"],
.lkcd-form input[type="url"],
.lkcd-form input[type="date"],
.lkcd-form input[type="number"],
.lkcd-form input[type="file"],
.lkcd-form textarea,
.lkcd-form select,
.lkcd-project-switcher select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfd9e3;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--lkcd-navy);
  font: inherit;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lkcd-form textarea {
  min-height: 120px;
  resize: vertical;
}

.lkcd-login-form input:focus,
.lkcd-form input:focus,
.lkcd-form textarea:focus,
.lkcd-form select:focus,
.lkcd-project-switcher select:focus {
  border-color: var(--lkcd-primary);
  box-shadow: 0 0 0 4px rgba(0, 128, 96, 0.11);
}

.lkcd-login-form .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}

.lkcd-login-form .login-submit {
  margin-bottom: 0;
}

.lkcd-login-form .button-primary,
.lkcd-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--lkcd-primary);
  border-radius: 12px;
  background: var(--lkcd-primary);
  color: #fff !important;
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 128, 96, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lkcd-login-form .button-primary {
  width: 100%;
  min-height: 52px;
}

.lkcd-button:hover,
.lkcd-login-form .button-primary:hover {
  transform: translateY(-1px);
  background: var(--lkcd-primary-dark);
  box-shadow: 0 16px 34px rgba(0, 128, 96, 0.25);
}

.lkcd-button-secondary {
  border-color: #cfd9e3;
  background: #fff;
  color: var(--lkcd-navy) !important;
  box-shadow: none;
}

.lkcd-button-secondary:hover {
  background: #f8fafc;
  color: var(--lkcd-primary-dark) !important;
  box-shadow: none;
}

.lkcd-button-ghost {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  box-shadow: none;
}

.lkcd-button-ghost:hover {
  background: rgba(255, 255, 255, 0.17);
  box-shadow: none;
}

.lkcd-button-small {
  min-height: 40px;
  padding: 8px 15px;
}

.lkcd-auth-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.lkcd-auth-links a,
.lkcd-text-link,
.lkcd-file-link,
.lkcd-files a {
  color: var(--lkcd-primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.lkcd-auth-links a:hover,
.lkcd-text-link:hover,
.lkcd-file-link:hover,
.lkcd-files a:hover {
  text-decoration: underline;
}

.lkcd-auth-security {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--lkcd-line);
  color: var(--lkcd-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.lkcd-auth-security .lkcd-icon {
  width: 16px;
  height: 16px;
}

/* Notices */
.lkcd-notice {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--lkcd-line);
  border-radius: 12px;
  background: #f8fafc;
  line-height: 1.55;
}

.lkcd-notice-success {
  border-color: #abefc6;
  background: #ecfdf3;
  color: #067647;
}

.lkcd-notice-error {
  border-color: #fecdca;
  background: #fef3f2;
  color: var(--lkcd-danger);
}

.lkcd-notice-info {
  border-color: #b2ddff;
  background: #eff8ff;
  color: var(--lkcd-blue);
}

.lkcd-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

/* Dashboard application shell */
.lkcd-app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  background: var(--lkcd-bg);
}

.lkcd-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 20px;
  overflow-y: auto;
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  background: var(--lkcd-navy);
  color: #fff;
  box-sizing: border-box;
}

.lkcd-brand-sidebar {
  margin: 0 8px 28px;
}

.lkcd-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.lkcd-sidebar-profile > span:last-child,
.lkcd-topbar-user > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.lkcd-sidebar-profile strong,
.lkcd-topbar-user strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.91rem;
}

.lkcd-sidebar-profile small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.73rem;
}

.lkcd-avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--lkcd-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.lkcd-project-switcher {
  margin: 0 0 18px;
  padding: 0 5px;
}

.lkcd-project-switcher label {
  display: block;
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

.lkcd-select-wrap > .lkcd-icon {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: rgba(255, 255, 255, 0.65);
  transform: translateY(-50%);
  pointer-events: none;
}

.lkcd-project-switcher select {
  min-height: 44px;
  padding: 9px 30px 9px 38px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 750;
}

.lkcd-project-switcher select option {
  color: var(--lkcd-navy);
}

.lkcd-tabs {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 5px;
}

.lkcd-tabs a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 780;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.lkcd-tabs a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.lkcd-tabs a.is-active {
  color: #fff;
  background: var(--lkcd-primary);
  box-shadow: 0 10px 24px rgba(0, 128, 96, 0.23);
}

.lkcd-tabs .lkcd-icon {
  width: 19px;
  height: 19px;
}

.lkcd-sidebar-bottom {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
}

.lkcd-support-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
}

.lkcd-support-card .lkcd-icon {
  color: #67e5b8;
}

.lkcd-support-card strong {
  display: block;
  font-size: 0.84rem;
}

.lkcd-support-card p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  line-height: 1.5;
}

.lkcd-logout-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 760;
}

.lkcd-logout-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.lkcd-app-main {
  min-width: 0;
}

.lkcd-topbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px clamp(24px, 4vw, 50px);
  border-bottom: 1px solid var(--lkcd-line);
  background: rgba(255, 255, 255, 0.94);
  box-sizing: border-box;
}

.lkcd-topbar-copy h1 {
  margin: 4px 0 4px;
  color: var(--lkcd-navy);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.lkcd-topbar-copy p {
  margin: 0;
  color: var(--lkcd-muted);
  font-size: 0.88rem;
}

.lkcd-breadcrumb {
  color: var(--lkcd-primary-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.lkcd-topbar-user {
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
}

.lkcd-topbar-user small {
  max-width: 210px;
  overflow: hidden;
  color: var(--lkcd-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
}

.lkcd-dashboard-body {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  box-sizing: border-box;
}

.lkcd-mobile-project-label {
  display: none;
}

.lkcd-panel {
  min-width: 0;
}

/* Dashboard overview */
.lkcd-project-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--lkcd-navy);
  color: #fff;
  box-shadow: var(--lkcd-shadow);
}

.lkcd-project-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -190px;
  border: 48px solid rgba(0, 128, 96, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.lkcd-project-hero-copy,
.lkcd-progress-ring {
  position: relative;
  z-index: 1;
}

.lkcd-project-meta-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.lkcd-project-id {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.77rem;
  font-weight: 750;
}

.lkcd-project-kicker {
  display: block;
  margin-bottom: 7px;
  color: #67e5b8;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lkcd-project-hero h2 {
  max-width: 760px;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.lkcd-project-hero p {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

.lkcd-progress-ring {
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--lkcd-primary) var(--lkcd-progress), rgba(255, 255, 255, 0.12) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lkcd-progress-ring::before {
  content: "";
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--lkcd-navy);
}

.lkcd-progress-ring div {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
}

.lkcd-progress-ring strong {
  color: #fff;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.lkcd-progress-ring span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
}

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

.lkcd-project-hero .lkcd-status {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lkcd-stage-card,
.lkcd-card,
.lkcd-metric-card,
.lkcd-form,
.lkcd-revision-card,
.lkcd-files {
  border: 1px solid var(--lkcd-line);
  background: var(--lkcd-surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.045);
}

.lkcd-stage-card {
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: var(--lkcd-radius);
}

.lkcd-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.lkcd-card-heading > div {
  display: grid;
  gap: 3px;
}

.lkcd-card-heading > div > span {
  color: var(--lkcd-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lkcd-card-heading h3 {
  margin: 0;
  color: var(--lkcd-navy);
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.lkcd-card-heading > strong {
  color: var(--lkcd-primary-dark);
  font-size: 0.82rem;
}

.lkcd-card-heading > .lkcd-icon {
  color: var(--lkcd-primary);
}

.lkcd-stage-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.lkcd-stage-list::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 18px;
  height: 2px;
  background: var(--lkcd-line);
}

.lkcd-stage-list li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: #94a3b8;
}

.lkcd-stage-list li > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--lkcd-line);
  border-radius: 50%;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.lkcd-stage-list li strong {
  font-size: 0.76rem;
}

.lkcd-stage-list li.is-complete,
.lkcd-stage-list li.is-current {
  color: var(--lkcd-primary-dark);
}

.lkcd-stage-list li.is-complete > span,
.lkcd-stage-list li.is-current > span {
  border-color: var(--lkcd-primary);
  background: var(--lkcd-primary);
  color: #fff;
}

.lkcd-stage-list li.is-current > span {
  box-shadow: 0 0 0 6px rgba(0, 128, 96, 0.11);
}

.lkcd-stage-list .lkcd-icon {
  width: 17px;
  height: 17px;
}

.lkcd-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.lkcd-metric-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  border-radius: 17px;
}

.lkcd-metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--lkcd-primary-soft);
  color: var(--lkcd-primary-dark);
}

.lkcd-metric-icon .lkcd-icon {
  width: 21px;
  height: 21px;
}

.lkcd-metric-card > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.lkcd-metric-card small,
.lkcd-metric-card span {
  color: var(--lkcd-muted);
  font-size: 0.73rem;
}

.lkcd-metric-card strong {
  overflow-wrap: anywhere;
  color: var(--lkcd-navy);
  font-size: 1rem;
  line-height: 1.35;
}

.lkcd-payment-paid {
  color: #067647 !important;
}

.lkcd-payment-unpaid {
  color: var(--lkcd-danger) !important;
}

.lkcd-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
  margin-top: 18px;
}

.lkcd-overview-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.lkcd-card {
  min-width: 0;
  padding: 24px;
  border-radius: var(--lkcd-radius);
}

.lkcd-detail-list {
  margin: 0;
}

.lkcd-detail-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #eef2f6;
}

.lkcd-detail-list > div:last-child {
  border-bottom: 0;
}

.lkcd-detail-list dt {
  color: var(--lkcd-muted);
  font-size: 0.82rem;
}

.lkcd-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--lkcd-navy);
  font-size: 0.86rem;
  font-weight: 780;
  text-align: right;
}

.lkcd-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  font-size: 0.84rem;
}

.lkcd-text-link .lkcd-icon {
  width: 16px;
  height: 16px;
}

.lkcd-note-card {
  margin: 0;
  border-color: #bce8d7;
  background: var(--lkcd-primary-soft);
  box-shadow: none;
}

.lkcd-note-card p {
  margin: 0;
  color: #285849;
  line-height: 1.75;
}

.lkcd-activity-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lkcd-activity-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 13px;
  bottom: 13px;
  width: 1px;
  background: var(--lkcd-line);
}

.lkcd-activity-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 13px;
  padding: 0 0 20px;
}

.lkcd-activity-timeline li:last-child {
  padding-bottom: 0;
}

.lkcd-timeline-dot {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 0 0 1px var(--lkcd-line);
  box-sizing: border-box;
}

.lkcd-activity-timeline li:first-child .lkcd-timeline-dot {
  width: 22px;
  height: 22px;
  margin-left: -1px;
  border: 0;
  background: var(--lkcd-primary);
  color: #fff;
  box-shadow: 0 0 0 5px var(--lkcd-primary-soft);
}

.lkcd-timeline-dot .lkcd-icon {
  width: 13px;
  height: 13px;
}

.lkcd-activity-timeline li > div {
  display: grid;
  gap: 4px;
}

.lkcd-activity-timeline strong {
  color: var(--lkcd-navy);
  font-size: 0.84rem;
  line-height: 1.5;
}

.lkcd-activity-timeline time {
  color: var(--lkcd-muted);
  font-size: 0.72rem;
}

.lkcd-mini-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  color: var(--lkcd-muted);
}

.lkcd-mini-empty .lkcd-icon {
  width: 34px;
  height: 34px;
  color: #94a3b8;
}

.lkcd-mini-empty p {
  max-width: 270px;
  margin: 0;
  line-height: 1.6;
}

/* Status chips */
.lkcd-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.73rem;
  font-weight: 900;
  white-space: nowrap;
}

.lkcd-status-completed,
.lkcd-status-online {
  background: #ecfdf3;
  color: #067647;
}

.lkcd-status-in_progress,
.lkcd-status-waiting_review,
.lkcd-status-materials_received {
  background: #eff8ff;
  color: var(--lkcd-blue);
}

.lkcd-status-revision,
.lkcd-status-waiting_materials {
  background: #fff6ed;
  color: var(--lkcd-warning);
}

.lkcd-status-waiting_payment {
  background: #fef3f2;
  color: var(--lkcd-danger);
}

/* Forms, materials, revisions, account */
.lkcd-section-head {
  margin-bottom: 22px;
}

.lkcd-section-head h3 {
  margin: 0 0 7px;
  color: var(--lkcd-navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.lkcd-section-head p {
  margin: 0;
  color: var(--lkcd-muted);
  line-height: 1.65;
}

.lkcd-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--lkcd-radius);
}

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

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

.lkcd-field small {
  display: block;
  margin-top: 7px;
  color: var(--lkcd-muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

.lkcd-files {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--lkcd-radius);
}

.lkcd-files h4,
.lkcd-revision-list h4 {
  margin: 0 0 14px;
  color: var(--lkcd-navy);
  font-size: 1.05rem;
}

.lkcd-files ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lkcd-files li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 14px;
  border: 1px solid var(--lkcd-line);
  border-radius: 12px;
  background: #f8fafc;
}

.lkcd-files li span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.lkcd-files li strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--lkcd-navy);
  font-size: 0.84rem;
}

.lkcd-files li small {
  color: var(--lkcd-muted);
  font-size: 0.72rem;
}

.lkcd-revision-list {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}

.lkcd-revision-card {
  padding: 20px;
  border-radius: 16px;
}

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

.lkcd-revision-head > div {
  display: grid;
  gap: 4px;
}

.lkcd-revision-head strong {
  color: var(--lkcd-navy);
}

.lkcd-revision-head time {
  color: var(--lkcd-muted);
  font-size: 0.76rem;
}

.lkcd-revision-card > p {
  color: #475569;
  line-height: 1.72;
}

.lkcd-admin-response {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--lkcd-primary-soft);
}

.lkcd-admin-response p {
  margin: 5px 0 0;
}

.lkcd-empty {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 50px 20px;
  text-align: center;
}

.lkcd-empty h3 {
  margin: 0 0 10px;
  color: var(--lkcd-navy);
  font-size: 1.8rem;
}

.lkcd-empty p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--lkcd-muted);
  line-height: 1.75;
}

/* Theme account links */
.nav-account {
  border-radius: 999px !important;
  background: var(--lkcd-primary) !important;
  color: #fff !important;
}

.footer-account-link {
  font-weight: 800;
}

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

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

@media (max-width: 1024px) {
  .lkcd-app-shell {
    grid-template-columns: 1fr;
  }

  .lkcd-sidebar {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 18px 22px 12px;
    overflow: visible;
    border-right: 0;
  }

  .lkcd-sidebar-top {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr);
    align-items: center;
    gap: 18px;
  }

  .lkcd-brand-sidebar {
    margin: 0;
  }

  .lkcd-sidebar-profile {
    display: none;
  }

  .lkcd-project-switcher {
    justify-self: end;
    width: min(360px, 100%);
    margin: 0;
    padding: 0;
  }

  .lkcd-project-switcher label {
    display: none;
  }

  .lkcd-tabs {
    grid-template-columns: repeat(4, minmax(max-content, 1fr));
    gap: 7px;
    margin-top: 14px;
    overflow-x: auto;
  }

  .lkcd-tabs a {
    justify-content: center;
    white-space: nowrap;
  }

  .lkcd-tabs a:hover {
    transform: none;
  }

  .lkcd-sidebar-bottom {
    display: none;
  }

  .lkcd-topbar {
    min-height: 100px;
  }

  .lkcd-auth-layout {
    grid-template-columns: 1fr;
    width: min(680px, 100%);
  }

  .lkcd-auth-showcase {
    min-height: 410px;
  }

  .lkcd-auth-message {
    margin: 56px 0 28px;
  }

  .lkcd-auth-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lkcd-auth-support {
    display: none;
  }
}

@media (max-width: 760px) {
  .lkcd-auth-shell {
    padding: 0;
    background: #fff;
  }

  .lkcd-auth-layout {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .lkcd-auth-showcase {
    min-height: auto;
    padding: 28px 22px 34px;
  }

  .lkcd-auth-message {
    margin: 44px 0 0;
  }

  .lkcd-auth-message h2 {
    font-size: 2.25rem;
  }

  .lkcd-auth-benefits {
    display: none;
  }

  .lkcd-auth-card {
    padding: 36px 22px 48px;
  }

  .lkcd-auth-links {
    flex-direction: column;
  }

  .lkcd-sidebar {
    padding: 15px 14px 10px;
  }

  .lkcd-sidebar-top {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .lkcd-brand-sidebar {
    margin-left: 4px;
  }

  .lkcd-brand-sidebar .lkcd-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .lkcd-project-switcher {
    justify-self: stretch;
    width: 100%;
  }

  .lkcd-tabs {
    grid-template-columns: repeat(4, minmax(122px, 1fr));
    margin-right: -14px;
    padding-right: 14px;
  }

  .lkcd-tabs a {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .lkcd-topbar {
    min-height: auto;
    padding: 20px 18px;
  }

  .lkcd-topbar-user {
    display: none;
  }

  .lkcd-topbar-copy p {
    display: none;
  }

  .lkcd-dashboard-body {
    padding: 18px 14px 30px;
  }

  .lkcd-mobile-project-label {
    display: grid;
    gap: 2px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--lkcd-line);
    border-radius: 12px;
    background: #fff;
  }

  .lkcd-mobile-project-label span {
    color: var(--lkcd-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .lkcd-mobile-project-label strong {
    overflow-wrap: anywhere;
    color: var(--lkcd-navy);
    font-size: 0.9rem;
  }

  .lkcd-project-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .lkcd-progress-ring {
    width: 112px;
    height: 112px;
  }

  .lkcd-progress-ring::before {
    width: 84px;
    height: 84px;
  }

  .lkcd-progress-ring strong {
    font-size: 1.35rem;
  }

  .lkcd-link-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lkcd-link-actions .lkcd-button {
    width: 100%;
    box-sizing: border-box;
  }

  .lkcd-stage-card {
    overflow-x: auto;
    padding: 19px 17px;
  }

  .lkcd-stage-list {
    min-width: 590px;
  }

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

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

  .lkcd-card,
  .lkcd-form,
  .lkcd-files {
    padding: 19px 17px;
    border-radius: 17px;
  }

  .lkcd-detail-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .lkcd-detail-list dd {
    text-align: left;
  }

  .lkcd-files li,
  .lkcd-revision-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v1.1.1 — Mobile containment and revision form improvements */
html:has(body.lkcd-account-page) {
  margin-top: 0 !important;
  max-width: 100%;
  overflow-x: hidden;
}

body.lkcd-account-page {
  max-width: 100%;
  overflow-x: hidden;
}

body.lkcd-account-page #wpadminbar {
  display: none !important;
}

body.lkcd-account-page main.container,
body.lkcd-account-page main.lk-account-main,
body.lkcd-account-page .lk-account-main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: hidden;
}

body.lkcd-account-page .lk-account-main > article,
body.lkcd-account-page .lk-account-main > article > .entry-content,
body.lkcd-account-page .entry-content > .lkcd-dashboard {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.lkcd-account-page .lk-account-main > article > h1,
body.lkcd-account-page .lk-account-main .entry-title {
  display: none !important;
}

.lkcd-app-shell,
.lkcd-app-main,
.lkcd-sidebar,
.lkcd-sidebar-top,
.lkcd-tabs,
.lkcd-topbar,
.lkcd-dashboard-body,
.lkcd-panel,
.lkcd-form,
.lkcd-field {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.lkcd-brand-sidebar,
.lkcd-brand-sidebar > span:last-child {
  min-width: 0;
  max-width: 100%;
}

.lkcd-brand-sidebar > span:last-child {
  overflow: hidden;
}

.lkcd-brand-sidebar strong,
.lkcd-brand-sidebar small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lkcd-section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--lkcd-primary-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lkcd-inline-help {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.lkcd-inline-help .lkcd-icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.lkcd-inline-help > span {
  display: grid;
  gap: 3px;
}

.lkcd-inline-help strong,
.lkcd-inline-help small {
  display: block;
}

.lkcd-inline-help small {
  color: inherit;
  opacity: 0.78;
  line-height: 1.5;
}

.lkcd-revision-form {
  border: 1px solid var(--lkcd-line);
  background: var(--lkcd-surface);
  box-shadow: var(--lkcd-shadow);
}

.lkcd-revision-form .lkcd-form-action {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

.lkcd-revision-form .lkcd-form-action .lkcd-button {
  min-width: 230px;
}

.lkcd-revision-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--lkcd-muted);
  font-size: 0.8rem;
}

.lkcd-revision-reference a {
  color: var(--lkcd-primary-dark);
  font-weight: 800;
}

@media (max-width: 760px) {
  body.lkcd-account-page .lk-account-main,
  body.lkcd-account-page .lk-account-main > article,
  body.lkcd-account-page .lk-account-main .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .lkcd-app-shell {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .lkcd-sidebar {
    width: 100%;
    max-width: 100vw;
    padding: 14px;
    overflow: hidden;
  }

  .lkcd-sidebar-top {
    width: 100%;
  }

  .lkcd-brand-sidebar {
    width: 100%;
    margin: 0;
  }

  .lkcd-brand-sidebar > span:last-child {
    max-width: calc(100vw - 86px);
  }

  .lkcd-brand-sidebar strong {
    font-size: 0.94rem;
  }

  .lkcd-project-switcher,
  .lkcd-project-switcher .lkcd-select-wrap,
  .lkcd-project-switcher select {
    width: 100%;
    max-width: 100%;
  }

  .lkcd-tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 13px 0 0;
    padding: 0;
    overflow: visible;
  }

  .lkcd-tabs a {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    justify-content: flex-start;
    gap: 8px;
    padding: 9px 10px;
    white-space: normal;
    line-height: 1.25;
    text-align: left;
  }

  .lkcd-tabs a span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .lkcd-topbar {
    width: 100%;
    max-width: 100%;
    padding: 17px 15px;
  }

  .lkcd-topbar-copy {
    min-width: 0;
  }

  .lkcd-topbar-copy h1 {
    margin-top: 5px;
    font-size: 1.45rem;
    overflow-wrap: anywhere;
  }

  .lkcd-breadcrumb {
    font-size: 0.68rem;
  }

  .lkcd-dashboard-body {
    width: 100%;
    max-width: 100%;
    padding: 16px 12px 28px;
    overflow: hidden;
  }

  .lkcd-section-head {
    margin-bottom: 16px;
  }

  .lkcd-section-head h3 {
    font-size: 1.5rem;
  }

  .lkcd-section-head p {
    font-size: 0.9rem;
  }

  .lkcd-form,
  .lkcd-revision-form,
  .lkcd-files,
  .lkcd-card {
    width: 100%;
    max-width: 100%;
    padding: 17px 14px;
  }

  .lkcd-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lkcd-field-spacer {
    display: none;
  }

  .lkcd-form input[type="text"],
  .lkcd-form input[type="email"],
  .lkcd-form input[type="password"],
  .lkcd-form input[type="url"],
  .lkcd-form input[type="date"],
  .lkcd-form input[type="number"],
  .lkcd-form input[type="file"],
  .lkcd-form textarea,
  .lkcd-form select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .lkcd-form input[type="file"] {
    min-height: 48px;
    padding: 10px;
    font-size: 0.78rem;
  }

  .lkcd-revision-form .lkcd-form-action,
  .lkcd-revision-form .lkcd-form-action .lkcd-button {
    width: 100%;
    min-width: 0;
  }

  .lkcd-inline-help {
    padding: 13px;
  }

  .lkcd-revision-reference {
    align-items: flex-start;
    flex-direction: column;
  }

  .lkcd-empty {
    min-height: 300px;
    padding: 32px 18px;
    text-align: center;
  }
}

@media (max-width: 330px) {
  .lkcd-tabs {
    grid-template-columns: 1fr;
  }

  .lkcd-brand-sidebar > span:last-child {
    max-width: calc(100vw - 78px);
  }
}

.lkcd-empty .lkcd-success-icon {
  margin-bottom: 14px;
}

.lkcd-empty .lkcd-button {
  margin-top: 20px;
}
